Codeunit 18122022 EOS009 LE Country Of Origin

Codeunit 18122022 EOS009 LE Country Of Origin

This is the layout extension handler for adding the country of origin of an item (or any line in general).

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

OnAfterGetCountryOfOrigin

local procedure OnAfterGetCountryOfOrigin(DocumentHeader: RecordRef; DocumentLine: RecordRef; var Country: Record "Country/Region"; var IsHandled: Boolean)

Raised to allow customization of the country of origin retrieval logic. This will be executed after the country of origin has been retrieved from the item record (if applicable). If no country is specifed (Country.Code = ‘'), then nothing will be printed.

Parameters / Return Value

  • DocumentHeader RecordRef

  • DocumentLine RecordRef

  • Country Record "Country/Region"

    The country/region record to be filled.

  • IsHandled Boolean

    Gets or sets a value indicating whether the event has been handled.


OnAfterFormatCountryOfOrigin

local procedure OnAfterFormatCountryOfOrigin(DocumentHeader: RecordRef; DocumentLine: RecordRef; Header: Record "EOS Report Buffer Header"; var Line: Record "EOS Report Buffer Line"; Country: Record "Country/Region")

Raised to allow customization of the country of origin formatting logic. This will be executed after the default logic has been applied to the line. If after this the field “EOS Description” is empty, then nothing will be printed.

Parameters / Return Value

  • DocumentHeader RecordRef

  • DocumentLine RecordRef

  • Header Record "EOS Report Buffer Header"

    The header of the report buffer.

  • Line Record "EOS Report Buffer Line"

    The line to be formatted.

  • Country Record "Country/Region"

    The country/region record to be used for formatting.



EOS Labs -