Codeunit 18123065 EOS Duty Stamp Mgt.

Codeunit 18123065 EOS Duty Stamp Mgt.

Methods

AddDutyStampsToServiceInvoiceCrMemo

procedure AddDutyStampsToServiceInvoiceCrMemo(var ServiceHeader: Record "Service Header"): Boolean

Add Duty Stamps To Service Invoice/Cr. Memo

Parameters / Return Value

  • ServiceHeader Record "Service Header"

    Record “Service Header”

  • Returns Boolean

    Ture equals success


AddDutyStampsToSalesInvoice

procedure AddDutyStampsToSalesInvoice(var SalesHeader: Record "Sales Header"): Boolean

Add Duty Stamps To Sales Invoice/Credit Memo

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    Record “Sales Header”

  • Returns Boolean

    True equals success


AddDutyStampsToPrepaymentSalesInvoice

procedure AddDutyStampsToPrepaymentSalesInvoice(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; Action: option Insert,Delete; DocumentType: Option Invoice,"Credit Memo"): Boolean

Parameters / Return Value

  • SalesHeader Record "Sales Header"

  • SalesLine Record "Sales Line"

  • Action option

    Insert (0) , Delete (1)

  • DocumentType Option

    Invoice (0) , "Credit Memo" (1)

  • Returns Boolean


DutyStampsExistsOnSalesInvoice

procedure DutyStampsExistsOnSalesInvoice(var SalesHeader: Record "Sales Header"): Boolean

Check if Duty Stamps Exists On Sales Invoice

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    Record “Sales Header”

  • Returns Boolean

    true equals Exist


Events

OnBeforeAddDutyStampsToPrepaymentSalesInvoice

local procedure OnBeforeAddDutyStampsToPrepaymentSalesInvoice(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; Action: option Insert,Delete; DocumentType: Option Invoice,"Credit Memo"; var IsHandled: Boolean)

Runs before duty stamp line in handled for sales document

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    Sales header to process

  • SalesLine Record "Sales Line"

    Sales line recordset to process

  • Action option

    Insert (0) , Delete (1)

    Insert: triggered before standard prepayment routine, adds duty stamp record to order; Delete: triggered after standard prepayment routine, deletes duty stamp record to order

  • DocumentType Option

    Invoice (0) , "Credit Memo" (1)

    Prepayment document type

  • IsHandled Boolean

    If returned true, no following standard code will be executed


OnBeforeAddDutyStampsToSalesInvoice

local procedure OnBeforeAddDutyStampsToSalesInvoice(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean)

Runs before duty stamp line in handled for sales document

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    Sales header to process

  • IsHandled Boolean

    If returned true, no following standard code will be executed


OnBeforeAddDutyStampsToServiceInvoice

local procedure OnBeforeAddDutyStampsToServiceInvoice(var ServiceHeader: Record "Service Header"; var IsHandled: Boolean)

Runs before duty stamp line in handled for service document

Parameters / Return Value

  • ServiceHeader Record "Service Header"

    Service header to process

  • IsHandled Boolean

    If returned true, no following standard code will be executed


OnAfterAddDutyStampsToSalesInvoice

local procedure OnAfterAddDutyStampsToSalesInvoice(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line")

Raised after creating the Duty Stamp line for sales documents.

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    Document header

  • SalesLine Record "Sales Line"

    Duty Stamp line that has been created



EOS Labs -