Codeunit 18122070 EOS009 LE Tax Representative

Codeunit 18122070 EOS009 LE Tax Representative

This is the layout extension handler for adding the Tax Representative.

Methods

Register

procedure Register(var Section: Record "EOS Adv Reporting Sections")

Parameters / Return Value

  • Section Record "EOS Adv Reporting Sections"

Execute

procedure Execute(Position: Enum "EOS AdvRpt Layout Position"; DocumentHeader: RecordRef; DocumentLine: RecordRef; var Header: Record "EOS Report Buffer Header"; var Line: Record "EOS Report Buffer Line")

Parameters / Return Value

  • Position Enum "EOS AdvRpt Layout Position"

  • DocumentHeader RecordRef

  • DocumentLine RecordRef

  • Header Record "EOS Report Buffer Header"

  • Line Record "EOS Report Buffer Line"


Events

OnAfterGetCustomer

local procedure OnAfterGetCustomer(DocumentHeader: RecordRef; DocumentLine: RecordRef; var CustomerRepres: Record Customer)

Raised to allow customization of the customer retrieval logic. This will be executed after the customer has already been retrieved from the document header. If this event does not produce a customer with a tax representative, the tax representative will not be printed.

Parameters / Return Value

  • DocumentHeader RecordRef

    The document header record reference.

  • DocumentLine RecordRef

    The document line record reference.

  • CustomerRepres Record "Customer"

    The customer to print as the tax representative.


OnAfterFormatTaxRepresentativeAddress

local procedure OnAfterFormatTaxRepresentativeAddress(DocumentHeader: RecordRef; DocumentLine: RecordRef; Customer: Record Customer; CustomerRepres: Record Customer; ContactRepres: Record Contact; var TaxRepresentativeLines: List of [Text[100]])

Raised to allow customization of the formatting of the tax representative. This will be executed after the tax representative has been formatted.

Parameters / Return Value

  • DocumentHeader RecordRef

    The document header record reference.

  • DocumentLine RecordRef

    The document line record reference.

  • Customer Record "Customer"

    the customer of the document containing the tax representative.

  • CustomerRepres Record "Customer"

    if Tax Representative Type of the paramenter Customer is Customer this customer record containing the tax representative.

  • ContactRepres Record "Contact"

    if Tax Representative Type of the paramenter Customer is Contact this contact record containing the tax representative.

  • TaxRepresentativeLines List[Text]

    The list of lines to print for the tax representative.



EOS Labs -