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).
procedure Register(var Section: Record "EOS Adv Reporting Sections")
Record "EOS Adv Reporting Sections"
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")
Position Enum "EOS AdvRpt Layout Position"
DocumentHeader RecordRef
DocumentLine RecordRef
Header Record "EOS Report Buffer Header"
Line Record "EOS Report Buffer Line"
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.
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.
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.
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.
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.