Codeunit 18008255 EOS VED Sales Handlers

Codeunit 18008255 EOS VED Sales Handlers

Sales event handlers for VAT Exemption Declarations

Methods

FindVATExemptions

procedure FindVATExemptions(var SalesHeader: Record "Sales Header")

Updates all VAT exemptions for the given sales document.

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    The sales header to update.


UpdateDocumentLine

procedure UpdateDocumentLine(var SalesLine: Record "Sales Line")

Parameters / Return Value

  • SalesLine Record "Sales Line"

GetSalesShptVatExemptions

procedure GetSalesShptVatExemptions(SalesLine: Record "Sales Line"; var TmpVatExemption: Record "EOS VAT Exemption")

Parameters / Return Value

  • SalesLine Record "Sales Line"

  • TmpVatExemption Record "EOS VAT Exemption"


GetSalesShptVatExemptions

procedure GetSalesShptVatExemptions(SalesHeader: Record "Sales Header"; var TmpVatExemption: Record "EOS VAT Exemption")

Parameters / Return Value

  • SalesHeader Record "Sales Header"

  • TmpVatExemption Record "EOS VAT Exemption"


GetReturnRcptVatExemptions

procedure GetReturnRcptVatExemptions(SalesLine: Record "Sales Line"; var TmpVatExemption: Record "EOS VAT Exemption")

Parameters / Return Value

  • SalesLine Record "Sales Line"

  • TmpVatExemption Record "EOS VAT Exemption"


GetReturnRcptVatExemptions

procedure GetReturnRcptVatExemptions(SalesHeader: Record "Sales Header"; var TmpVatExemption: Record "EOS VAT Exemption")

Parameters / Return Value

  • SalesHeader Record "Sales Header"

  • TmpVatExemption Record "EOS VAT Exemption"


LookupVATExemption

procedure LookupVATExemption(SalesHeader: Record "Sales Header"; var TextValue: Text): Boolean

Parameters / Return Value

  • SalesHeader Record "Sales Header"

  • TextValue Text

  • Returns Boolean


LookupVATExemption

procedure LookupVATExemption(SalesLine: Record "Sales Line"; var TextValue: Text): Boolean

Parameters / Return Value

  • SalesLine Record "Sales Line"

  • TextValue Text

  • Returns Boolean


VerifyVatExemptionsUI

procedure VerifyVatExemptionsUI(SalesHeader: Record "Sales Header")

Parameters / Return Value

  • SalesHeader Record "Sales Header"

VerifyVatExemptions

procedure VerifyVatExemptions(SalesHeader: Record "Sales Header"; var ErrorMessage: Record "Error Message")

Parameters / Return Value

  • SalesHeader Record "Sales Header"

  • ErrorMessage Record "Error Message"


Events

OnBefore_OnBeforeInsertInvLineFromShptLineVATExemption

local procedure OnBefore_OnBeforeInsertInvLineFromShptLineVATExemption(SalesShptLine: Record "Sales Shipment Line"; SalesLine: Record "Sales Line"; var isHandled: Boolean)

This event is raised on the OnBeforeInsertInvLineFromShptLine event subscriber and allows you to skip code in it

Parameters / Return Value

  • SalesShptLine Record "Sales Shipment Line"

    Sales Shipment Line to read

  • SalesLine Record "Sales Line"

    Sales Line to write

  • isHandled Boolean

    if set to true skips OnBeforeInsertInvLineFromRcptLine code



EOS Labs -