Codeunit 18123043 EOS FE Data
Codeunit 18123043 EOS FE Data
Codeunit use only by the codeunit FE Writer. Gather all the data for the XML
Methods
getIdPaese
procedure getIdPaese(): Code[10]
Parameters / Return Value
- Returns
Code[10]
getCodicePaese
procedure getCodicePaese(): Code[20]
Parameters / Return Value
- Returns
Code[20]
getCodiceDest
procedure getCodiceDest(): Code[7]
Parameters / Return Value
- Returns
Code[7]
GetTrasmissionType
procedure GetTrasmissionType() Result: Text
Parameters / Return Value
- Returns
Text[]
fillPECDest
procedure fillPECDest(var PECAddress: Text): Boolean
Parameters / Return Value
PECAddress
Text[]Returns
Boolean
getCustomerCF
procedure getCustomerCF() CF: Text
Parameters / Return Value
- Returns
Text[]
getCustomerDenominazione
procedure getCustomerDenominazione(): Text
Parameters / Return Value
- Returns
Text[]
getCustomerSedeData
procedure getCustomerSedeData(var Address: Text; var PostCode: Text; var City: Text; var County: Text; var Nation: Text)
Parameters / Return Value
Address
Text[]PostCode
Text[]City
Text[]County
Text[]Nation
Text[]
custHasVatRegNo
procedure custHasVatRegNo(var IdPaese: Text; var VatRegNo: Text): Boolean
Parameters / Return Value
IdPaese
Text[]VatRegNo
Text[]Returns
Boolean
custHasTaxRepresentative
procedure custHasTaxRepresentative(var IdPaese: Text; var IdCodice: Text; var Denominazione: Text): Boolean
Parameters / Return Value
IdPaese
Text[]IdCodice
Text[]Denominazione
Text[]Returns
Boolean
custHasFixedEstabl
procedure custHasFixedEstabl(var Indirizzo: Text;var CAP: Text;var Comune: Text;var Provincia: Text;var Nazione: Text): Boolean
Parameters / Return Value
Indirizzo
Text[]CAP
Text[]Comune
Text[]Provincia
Text[]Nazione
Text[]Returns
Boolean
custHasFixedEstabl
procedure custHasFixedEstabl(var IdPaese: Text; var IdCodice: Text; var Denominazione: Text): Boolean
Parameters / Return Value
IdPaese
Text[]IdCodice
Text[]Denominazione
Text[]Returns
Boolean
isForeignCustomer
procedure isForeignCustomer(): Boolean
Parameters / Return Value
- Returns
Boolean
hasSoggettoEmittente
procedure hasSoggettoEmittente(var SoggettoEmittente: Text): Boolean
Parameters / Return Value
SoggettoEmittente
Text[]Returns
Boolean
hasTransmissionIntermediaryVendor
procedure hasTransmissionIntermediaryVendor(var IdPaese: Text; var IdCodice: Text; var CodiceFiscale: Text; var Denominazione: Text): Boolean
Parameters / Return Value
IdPaese
Text[]IdCodice
Text[]CodiceFiscale
Text[]Denominazione
Text[]Returns
Boolean
getCedentePrestatoreData
procedure getCedentePrestatoreData(var idPaese: Text; var CodicePaese: Text; var CF: Text; var denominazione: Text; var RF: Text)
Parameters / Return Value
idPaese
Text[]CodicePaese
Text[]CF
Text[]denominazione
Text[]RF
Text[]
getSedeData
procedure getSedeData(var Indirizzo: Text; var CAP: Text; var Comune: Text; var Provincia: Text; var Nazione: Text)
Parameters / Return Value
Indirizzo
Text[]CAP
Text[]Comune
Text[]Provincia
Text[]Nazione
Text[]
getIscrizioneREAData
procedure getIscrizioneREAData(var Ufficio: Text; var NumeroREA: Text; var CapitaleSociale: Text; var SocioUnico: Text; var inLiquidazione: Text)
Parameters / Return Value
Ufficio
Text[]NumeroREA
Text[]CapitaleSociale
Text[]SocioUnico
Text[]inLiquidazione
Text[]
getContactData
procedure getContactData(var Telefono: Text; var Fax: Text; var Email: Text)
Parameters / Return Value
Telefono
Text[]Fax
Text[]Email
Text[]
hasRiferimentoAmministrazione
procedure hasRiferimentoAmministrazione(var AccountNo: Text): Boolean
Parameters / Return Value
AccountNo
Text[]Returns
Boolean
hasIscrizioneREA
procedure hasIscrizioneREA(): Boolean
Parameters / Return Value
- Returns
Boolean
hasContactSection
procedure hasContactSection(): Boolean
Parameters / Return Value
- Returns
Boolean
isIT
procedure isIT(): Boolean
Parameters / Return Value
- Returns
Boolean
getCausaleTags
procedure getCausaleTags(var CausaleList: List of [Text]; var CausaleConai: Text; var CausaleDutyStamp: Text)
Parameters / Return Value
CausaleList
List[Text]CausaleConai
Text[]CausaleDutyStamp
Text[]
getDocumentNo
procedure getDocumentNo(var Numero: Text)
Parameters / Return Value
- Numero
Text[]
getGeneralData
procedure getGeneralData(var TipoDocumento: Text; var Divisa: Text; var Data: Text; var Numero: Text; var ImportoBollo: Text; var ImportoTotaleDocumento: Text)
Parameters / Return Value
TipoDocumento
Text[]Divisa
Text[]Data
Text[]Numero
Text[]ImportoBollo
Text[]ImportoTotaleDocumento
Text[]
IsFreeGood
procedure IsFreeGood(RecRefLine: RecordRef): Boolean
Parameters / Return Value
RecRefLine
RecordRefReturns
Boolean
NormalizeDocNo
procedure NormalizeDocNo(docNo: code[20]): Text
Parameters / Return Value
docNo
code[20]Returns
Text[]
FormatDate
procedure FormatDate(d: date): Text
Parameters / Return Value
d
dateReturns
Text[]
PopulateBuffers
procedure PopulateBuffers(var RifLineNoBuffer: Record "EOS RifLineNo Buffer"; var OrderNoBuffer: Record "EOS RifLineNo Buffer"; var ShptNoBuffer: Record "EOS RifLineNo Buffer")
Parameters / Return Value
RifLineNoBuffer
Record "EOS RifLineNo Buffer"OrderNoBuffer
Record "EOS RifLineNo Buffer"ShptNoBuffer
Record "EOS RifLineNo Buffer"
hasDirectOrder
procedure hasDirectOrder(var NumeroOrd: Text; var DataOrd: Date; var CIG: Code[15]; var CUP: Code[15]; var CodiceCommessaConvenzione: Text[100]) hasValue: Boolean
Parameters / Return Value
NumeroOrd
Text[]DataOrd
DateCIG
Code[15]CUP
Code[15]CodiceCommessaConvenzione
Text[100]Returns
Boolean
NeedBalancingLine
procedure NeedBalancingLine(DocNo: code[20]; lineNo: Integer): Boolean
Parameters / Return Value
DocNo
code[20]lineNo
IntegerReturns
Boolean
NeedBalancingLinePerc
procedure NeedBalancingLinePerc(LineRecRef: RecordRef): Boolean
Parameters / Return Value
LineRecRef
RecordRefReturns
Boolean
IsSplitPaymentLine
procedure IsSplitPaymentLine(LineRecRef: RecordRef): Boolean
Parameters / Return Value
LineRecRef
RecordRefReturns
Boolean
IsSplitVATSetup
procedure IsSplitVATSetup(VATEntry: Record "VAT Entry"): Boolean
Parameters / Return Value
VATEntry
Record "VAT Entry"Returns
Boolean
getRelDocsTagsForCurrDoc
procedure getRelDocsTagsForCurrDoc(var ElectrDocRelatedDocsTMP: Record "EOS Outb. EDoc. Related Docs." temporary): Boolean
Parameters / Return Value
ElectrDocRelatedDocsTMP
Record "EOS Outb. EDoc. Related Docs."Returns
Boolean
UpdateDocRelatedLines
procedure UpdateDocRelatedLines(var ElectrDocRelatedDocsTMP: Record "EOS Outb. EDoc. Related Docs." temporary)
Parameters / Return Value
- ElectrDocRelatedDocsTMP
Record "EOS Outb. EDoc. Related Docs."
getRelDocsLineTagsForCurrDoc
procedure getRelDocsLineTagsForCurrDoc(var EOSEDocRelDocLines: Record "EOS EDoc. Rel. Doc. Lines"): Boolean
Parameters / Return Value
EOSEDocRelDocLines
Record "EOS EDoc. Rel. Doc. Lines"Returns
Boolean
hasDirectShipment
procedure hasDirectShipment(var NumeroDDT: Text; var DataDDT: Text) hasValue: Boolean
Parameters / Return Value
NumeroDDT
Text[]DataDDT
Text[]Returns
Boolean
filterLineNoBufferOrder
procedure filterLineNoBufferOrder(var RifNrLineaBufferOrder: Record "EOS RifLineNo Buffer"; LineRecRef: RecordRef)
Parameters / Return Value
RifNrLineaBufferOrder
Record "EOS RifLineNo Buffer"LineRecRef
RecordRef
prepareCurrLine
procedure prepareCurrLine(var line: RecordRef; var writeSeparateDiscLines: Boolean; var WriteSeparateFullVATLine: Boolean; UpdateDiscount: Boolean; UpdateFullVAT: Boolean)
Parameters / Return Value
line
RecordRefwriteSeparateDiscLines
BooleanWriteSeparateFullVATLine
BooleanUpdateDiscount
BooleanUpdateFullVAT
Boolean
getInvoiceLines
procedure getInvoiceLines(var lines: RecordRef)
Parameters / Return Value
- lines
RecordRef
hasAmount
procedure hasAmount(var line: RecordRef): Boolean
Parameters / Return Value
line
RecordRefReturns
Boolean
getItemValue
procedure getItemValue(LineRecRef: RecordRef; var CodiceValore: Text): Boolean
Parameters / Return Value
LineRecRef
RecordRefCodiceValore
Text[]Returns
Boolean
getCrossRefItem
procedure getCrossRefItem(LineRecRef: RecordRef; var CodiceValore: List of [Text]) HasValue: Boolean
Parameters / Return Value
LineRecRef
RecordRefCodiceValore
List[Text]Returns
Boolean
GetDescription
procedure GetDescription(LineRecRef: RecordRef): Text
Parameters / Return Value
LineRecRef
RecordRefReturns
Text[]
getQuantity
procedure getQuantity(LineRecRef: RecordRef): Text
Parameters / Return Value
LineRecRef
RecordRefReturns
Text[]
getQuantityDec
procedure getQuantityDec(LineRecRef: RecordRef): Decimal
Parameters / Return Value
LineRecRef
RecordRefReturns
Decimal
getUoM
procedure getUoM(LineRecRef: RecordRef; var UoM: Text): Boolean
Parameters / Return Value
LineRecRef
RecordRefUoM
Text[]Returns
Boolean
getPrezzoUnitario
procedure getPrezzoUnitario(LineRecRef: RecordRef): Text
Parameters / Return Value
LineRecRef
RecordRefReturns
Text[]
FormatAmount8
procedure FormatAmount8(InAmount: Decimal): Text[30]
Parameters / Return Value
InAmount
DecimalReturns
Text[30]
GeValueExclVAT
procedure GeValueExclVAT(PricesInclVAT: Boolean; CurrencyCode: Code[10]; VATPerc: Decimal; Value: Decimal): Decimal
Parameters / Return Value
PricesInclVAT
BooleanCurrencyCode
Code[10]VATPerc
DecimalValue
DecimalReturns
Decimal
getScontoMaggiorazione
procedure getScontoMaggiorazione(LineRecRef: RecordRef; var tipo: Text; var importo: Text) hasSconto: Boolean
Parameters / Return Value
LineRecRef
RecordReftipo
Text[]importo
Text[]Returns
Boolean
getScontoMaggiorazionePerc
procedure getScontoMaggiorazionePerc(LineRecRef: RecordRef; var tipo: array[10] of Text; var Perc: array[10] of Text) hasSconto: Boolean
Parameters / Return Value
LineRecRef
RecordReftipo
Text[]Perc
Text[]Returns
Boolean
getScontoMaggiorazionePerc
procedure getScontoMaggiorazionePerc(LineRecRef: RecordRef; var tipo: array[10] of Text; var Perc: array[10] of Text; var LastArrayIndex: Integer) hasSconto: Boolean
Parameters / Return Value
LineRecRef
RecordReftipo
Text[]Perc
Text[]LastArrayIndex
IntegerReturns
Boolean
getPrezzoTot
procedure getPrezzoTot(LineRecRef: RecordRef): Text
Parameters / Return Value
LineRecRef
RecordRefReturns
Text[]
getAliquotaIVA
procedure getAliquotaIVA(LineRecRef: RecordRef) VATPercTxt: Text
Parameters / Return Value
LineRecRef
RecordRefReturns
Text[]
getVATClause
procedure getVATClause(LineRecRef: RecordRef; var VATClauseCode: Code[20]; var VATClauseDescr: Text) HasVATClause: Boolean
Parameters / Return Value
LineRecRef
RecordRefVATClauseCode
Code[20]VATClauseDescr
Text[]Returns
Boolean
getHasZeroAliquotaIVA
procedure getHasZeroAliquotaIVA(LineRecRef: RecordRef) IsZeroVAT: Boolean
Parameters / Return Value
LineRecRef
RecordRefReturns
Boolean
getNatura
procedure getNatura(LineRecRef: RecordRef) Natura: Text
Parameters / Return Value
LineRecRef
RecordRefReturns
Text[]
hasDescrLines
procedure hasDescrLines(LineRecRef: RecordRef; var descList: list of [Text]) HasLines: Boolean
Parameters / Return Value
LineRecRef
RecordRefdescList
list[Text]Returns
Boolean
isForeignCurrency
procedure isForeignCurrency(): Boolean
Parameters / Return Value
- Returns
Boolean
getFCYAmount
procedure getFCYAmount(line: RecordRef): Text
Parameters / Return Value
line
RecordRefReturns
Text[]
getFCYLineAmount
procedure getFCYLineAmount(line: RecordRef): Text
Parameters / Return Value
line
RecordRefReturns
Text[]
isLastLine
procedure isLastLine(line: RecordRef): Boolean
Parameters / Return Value
line
RecordRefReturns
Boolean
getAltriDatiGestionaliFCYData
procedure getAltriDatiGestionaliFCYData(var ImpLFtVal: Text; var ImpNFtVal: Text; var IvaVal: Text; var TotFattVal: Text; var DivDoc: Text; var EurDiv: Text)
Parameters / Return Value
ImpLFtVal
Text[]ImpNFtVal
Text[]IvaVal
Text[]TotFattVal
Text[]DivDoc
Text[]EurDiv
Text[]
prepareDiscLine
procedure prepareDiscLine(var DiscInvoiceLine: RecordRef; LineRecRef: RecordRef)
Parameters / Return Value
DiscInvoiceLine
RecordRefLineRecRef
RecordRef
hasNegativeAmount
procedure hasNegativeAmount(line: RecordRef): Boolean
Parameters / Return Value
line
RecordRefReturns
Boolean
isPureDiscount
procedure isPureDiscount(line: RecordRef)
Parameters / Return Value
- line
RecordRef
initializeDiscLine
procedure initializeDiscLine(var line: RecordRef; var DiscountType: Text; var DiscountDescr: Text)
Parameters / Return Value
line
RecordRefDiscountType
Text[]DiscountDescr
Text[]
prepareFullVATLines
procedure prepareFullVATLines(var VATInvoiceLine: RecordRef; LineRecRef: RecordRef)
Parameters / Return Value
VATInvoiceLine
RecordRefLineRecRef
RecordRef
getFullVATDescr
procedure getFullVATDescr(line: RecordRef): Text
Parameters / Return Value
line
RecordRefReturns
Text[]
GetVatEntryLines
procedure GetVatEntryLines(var TempVATEntry: Record "VAT Entry")
Parameters / Return Value
- TempVATEntry
Record "VAT Entry"
GetVatEntryLinesFromDocLines
procedure GetVatEntryLinesFromDocLines(var TempVATEntry: Record "VAT Entry")
Parameters / Return Value
- TempVATEntry
Record "VAT Entry"
getVATNatura
procedure getVATNatura(TempVATEntry: Record "VAT Entry"): Text
Parameters / Return Value
TempVATEntry
Record "VAT Entry"Returns
Text[]
getImponibile
procedure getImponibile(TempVATEntry: Record "VAT Entry"): Text
Parameters / Return Value
TempVATEntry
Record "VAT Entry"Returns
Text[]
getImposta
procedure getImposta(TempVATEntry: Record "VAT Entry") VATAmountTxt: Text
Parameters / Return Value
TempVATEntry
Record "VAT Entry"Returns
Text[]
getEsigibilita
procedure getEsigibilita(TempVATEntry: Record "VAT Entry"): Text
Parameters / Return Value
TempVATEntry
Record "VAT Entry"Returns
Text[]
GetRiferimentoNormativo
procedure GetRiferimentoNormativo(TempVATEntry: Record "VAT Entry") VATNatureDescription: Text
Parameters / Return Value
TempVATEntry
Record "VAT Entry"Returns
Text[]
getCondizioniPagamento
procedure getCondizioniPagamento() CondPag: Text
Parameters / Return Value
- Returns
Text[]
getCurrencyCode
procedure getCurrencyCode() CurrCode: Text
Parameters / Return Value
- Returns
Text[]
getCustLedgEntries
procedure getCustLedgEntries(var CustLedgEntry: Record "Cust. Ledger Entry")
Parameters / Return Value
- CustLedgEntry
Record "Cust. Ledger Entry"
getPaymentCode
procedure getPaymentCode(): Text
Parameters / Return Value
- Returns
Text[]
formatScadenza
procedure formatScadenza(duedate: Date): Text
Parameters / Return Value
duedate
DateReturns
Text[]
getImportoPagamento
procedure getImportoPagamento(CustLedgerEntry: Record "Cust. Ledger Entry"): Text
Parameters / Return Value
CustLedgerEntry
Record "Cust. Ledger Entry"Returns
Text[]
hasBankRelFields
procedure hasBankRelFields(var IstitutoFinanziario: Text; var IBAN: Text; var ABI: Text; var CAB: Text; var BIC: Text) hasValue: Boolean
Parameters / Return Value
IstitutoFinanziario
Text[]IBAN
Text[]ABI
Text[]CAB
Text[]BIC
Text[]Returns
Boolean
insertOrderData
procedure insertOrderData(): Boolean
Parameters / Return Value
- Returns
Boolean
insertShipmentData
procedure insertShipmentData(): Boolean
Parameters / Return Value
- Returns
Boolean
hasAttachment
procedure hasAttachment(var RecordLink: Record "Record Link"): Boolean
Parameters / Return Value
RecordLink
Record "Record Link"Returns
Boolean
hasAttachment
procedure hasAttachment(var DocumentAttachment: Record "Document Attachment"): Boolean
Parameters / Return Value
DocumentAttachment
Record "Document Attachment"Returns
Boolean
getAttachmentMedia
procedure getAttachmentMedia(DocAttach: Record "Document Attachment"; var documentEncoded: Text) HasAttachment: Boolean
Parameters / Return Value
DocAttach
Record "Document Attachment"documentEncoded
Text[]Returns
Boolean
getRecordLink
procedure getRecordLink(RecLink: Record "Record Link"; var documentEncoded: Text; var filename: Text; var fileExt: Text) HasAttachment: Boolean
Parameters / Return Value
RecLink
Record "Record Link"documentEncoded
Text[]filename
Text[]fileExt
Text[]Returns
Boolean
getReport
procedure getReport(ReportSelections: Record "Report Selections"; var documentEncoded: Text; var filename: Text; var fileExt: Text): Boolean
Parameters / Return Value
ReportSelections
Record "Report Selections"documentEncoded
Text[]filename
Text[]fileExt
Text[]Returns
Boolean
includePDF
procedure includePDF(var TempReportSelections: Record "Report Selections" temporary): Boolean
Parameters / Return Value
TempReportSelections
Record "Report Selections"Returns
Boolean
initializeFEData
procedure initializeFEData(document: Variant; var ProgressiveFileID: Code[5])
Parameters / Return Value
document
VariantProgressiveFileID
Code[5]
GetAddItemCode
procedure GetAddItemCode(): Boolean
Parameters / Return Value
- Returns
Boolean
EventParams
procedure EventParams(var header: RecordRef; var line: RecordRef)
Parameters / Return Value
header
RecordRefline
RecordRef
getHeader
procedure getHeader(var header: RecordRef)
Parameters / Return Value
- header
RecordRef
setHeader
procedure setHeader(header: RecordRef)
Parameters / Return Value
- header
RecordRef
setLineRecRef
procedure setLineRecRef(LineRecRef: RecordRef)
Parameters / Return Value
- LineRecRef
RecordRef
IsLineDiscountByAmount
procedure IsLineDiscountByAmount(): Boolean
Parameters / Return Value
- Returns
Boolean
IsLineDiscountByPerc
procedure IsLineDiscountByPerc(): Boolean
Parameters / Return Value
- Returns
Boolean
Events
OnBeforeGetDirectShipmentData
local procedure OnBeforeGetDirectShipmentData(HeaderRecRef: RecordRef; var NumeroDDT: Text; var DataDDT: Text; var hasValue: Boolean; var IsHandled: Boolean)
Use this event if you want to add custom logics during the check of mandatory fields before generating the XML
Parameters / Return Value
HeaderRecRef
RecordRefHeader record
NumeroDDT
Text[]Return DDT number to export
DataDDT
Text[]Return DDT date to export
hasValue
BooleanReturn value, specifies if document has a direct shipment
IsHandled
BooleanNo following standard code will be executed
OnAfterGetDirectShipmentData
local procedure OnAfterGetDirectShipmentData(HeaderRecRef: RecordRef; var NumeroDDT: Text; var DataDDT: Text; var hasValue: Boolean)
Use this event if you want to add custom logics during the check of mandatory fields before generating the XML
Parameters / Return Value
HeaderRecRef
RecordRefHeader record
NumeroDDT
Text[]Return DDT number to export
DataDDT
Text[]Return DDT date to export
hasValue
BooleanReturn value, specifies if document has a direct shipment
OnGetAliquotaIVA
local procedure OnGetAliquotaIVA(LineRecRef: RecordRef; var VATPercTxt: Text)
Parameters / Return Value
LineRecRef
RecordRefVATPercTxt
Text[]
OnGetHasZeroAliquotaIVA
local procedure OnGetHasZeroAliquotaIVA(LineRecRef: RecordRef; var IsZeroVAT: Boolean)
Parameters / Return Value
LineRecRef
RecordRefIsZeroVAT
Boolean
OnGetNatura
local procedure OnGetNatura(LineRecRef: RecordRef; var Natura: Text)
Parameters / Return Value
LineRecRef
RecordRefNatura
Text[]
OnBeforeProcessDescrLines
local procedure OnBeforeProcessDescrLines(LineRecRef: RecordRef; var DescrLineRecRef: RecordRef; var Handled: Boolean)
Raised before description lines in document (means actual document line with type comment or blank) are processed to be exported in relation to a item, g/l account, … line
Parameters / Return Value
LineRecRef
RecordRefMain document line (i.e. Item line)
DescrLineRecRef
RecordRefFiltered description line record. Do not modify filters in this event, just modify description line data if needed
Handled
BooleanNo standard app code will be executed
OnBeforeProcessSingleDescrLine
local procedure OnBeforeProcessSingleDescrLine(LineRecRef: RecordRef; var DescrLineRecRef: RecordRef; var Handled: Boolean)
Raised before a single description line in document (means actual document line with type comment or blank) is processed to be exported in relation to a item, g/l account, … line
Parameters / Return Value
LineRecRef
RecordRefMain document line (i.e. Item line)
DescrLineRecRef
RecordRefFiltered description line record. Do not modify filters in this event, just modify description line data if needed
Handled
BooleanNo standard app code will be executed
OnGetImposta
local procedure OnGetImposta(LineRecRef: RecordRef; var VATAmountTxt: Boolean)
Parameters / Return Value
LineRecRef
RecordRefVATAmountTxt
Boolean
OnBeforeGetVATExemptionDescription
local procedure OnBeforeGetVATExemptionDescription(HeaderRecRef: RecordRef; CustomerNo: Code[20]; DocumentDate: Date; VATExemption: Record "VAT Exemption"; var VATExemptionDescription: Text[50]; var IsHandled: Boolean; TempVATEntry: Record "VAT Entry")
Parameters / Return Value
HeaderRecRef
RecordRefCustomerNo
Code[20]DocumentDate
DateVATExemption
Record "VAT Exemption"VATExemptionDescription
Text[50]IsHandled
BooleanTempVATEntry
Record "VAT Entry"
OnAfterGetVATExemptionDescription
local procedure OnAfterGetVATExemptionDescription(HeaderRecRef: RecordRef; CustomerNo: Code[20]; DocumentDate: Date; VATExemption: Record "VAT Exemption"; var VATExemptionDescription: Text[50]; TempVATEntry: Record "VAT Entry")
Parameters / Return Value
HeaderRecRef
RecordRefCustomerNo
Code[20]DocumentDate
DateVATExemption
Record "VAT Exemption"VATExemptionDescription
Text[50]TempVATEntry
Record "VAT Entry"
OnBeforePopulateIstitutoFinanziarioData
local procedure OnBeforePopulateIstitutoFinanziarioData(HeaderRecRef: RecordRef; var IstitutoFinanziario: Text; var IBAN: Text; var ABI: Text; var CAB: Text; var BIC: Text; var hasValue: Boolean; var IsHandled: Boolean)
Parameters / Return Value
HeaderRecRef
RecordRefIstitutoFinanziario
Text[]IBAN
Text[]ABI
Text[]CAB
Text[]BIC
Text[]hasValue
BooleanIsHandled
Boolean
OnAfterPopulateIstitutoFinanziarioData
local procedure OnAfterPopulateIstitutoFinanziarioData(HeaderRecRef: RecordRef; var IstitutoFinanziario: Text; var IBAN: Text; var ABI: Text; var CAB: Text; var BIC: Text; var hasValue: Boolean)
Parameters / Return Value
HeaderRecRef
RecordRefIstitutoFinanziario
Text[]IBAN
Text[]ABI
Text[]CAB
Text[]BIC
Text[]hasValue
Boolean
OnBeforegetAttachmentMedia
local procedure OnBeforegetAttachmentMedia(DocAttach: Record "Document Attachment"; var documentEncoded: Text; var HasAttachment: Boolean; var IsHandled: Boolean)
Parameters / Return Value
DocAttach
Record "Document Attachment"documentEncoded
Text[]HasAttachment
BooleanIsHandled
Boolean
OnAftergetAttachmentMedia
local procedure OnAftergetAttachmentMedia(DocAttach: Record "Document Attachment"; var documentEncoded: Text; var HasAttachment: Boolean)
Parameters / Return Value
DocAttach
Record "Document Attachment"documentEncoded
Text[]HasAttachment
Boolean
OnBeforegetRecordLink
local procedure OnBeforegetRecordLink(RecLink: Record "Record Link"; var documentEncoded: Text; var filename: Text; var fileExt: Text; var HasAttachment: Boolean; var IsHandled: Boolean)
Parameters / Return Value
RecLink
Record "Record Link"documentEncoded
Text[]filename
Text[]fileExt
Text[]HasAttachment
BooleanIsHandled
Boolean
OnAftergetgetRecordLink
local procedure OnAftergetgetRecordLink(RecLink: Record "Record Link"; var documentEncoded: Text; var filename: Text; var fileExt: Text; var HasAttachment: Boolean)
Parameters / Return Value
RecLink
Record "Record Link"documentEncoded
Text[]filename
Text[]fileExt
Text[]HasAttachment
Boolean
OnBeforeCheck_Related_CWS_Exists
local procedure OnBeforeCheck_Related_CWS_Exists(header: RecordRef;line: RecordRef;var XmlWriter: Codeunit "EOS Xml Writer";var elementName: Text[250];id: Text;var Value: Text;var IsHandled: Boolean)
Runs before seeking CWS related to posted sales shipment. If found, will be exported CWS no. instead of standard shipment no.
Parameters / Return Value
header
RecordRefsame as OnBeforeAddStartTag
line
RecordRefsame as OnBeforeAddStartTag
XmlWriter
Codeunit "EOS Xml Writer"same as OnBeforeAddStartTag
elementName
Text[250]same as OnBeforeAddStartTag
id
Text[]same as OnBeforeAddStartTag
Value
Text[]The Value of element. If empty it won’t be added
IsHandled
BooleanIf true, no following standard app code will be executed
OnAfterCheck_Related_CWS_Exists
local procedure OnAfterCheck_Related_CWS_Exists(header: RecordRef;line: RecordRef;var XmlWriter: Codeunit "EOS Xml Writer";var elementName: Text[250];id: Text;var Value: Text)
Runs after seeking CWS related to posted sales shipment. If found, will be exported CWS no. instead of standard shipment no.
Parameters / Return Value
header
RecordRefsame as OnBeforeAddStartTag
line
RecordRefsame as OnBeforeAddStartTag
XmlWriter
Codeunit "EOS Xml Writer"same as OnBeforeAddStartTag
elementName
Text[250]same as OnBeforeAddStartTag
id
Text[]same as OnBeforeAddStartTag
Value
Text[]The Value of element. If empty it won’t be added
OnAfterCheckMandatoryFields
local procedure OnAfterCheckMandatoryFields(Customer: Record Customer;TransmissionIntermediaryVendor: Record Vendor;HeaderRecRef: RecordRef;CustTaxRepresentative: Record Customer temporary)
Use this event if you want to add custom logics during the check of mandatory fields before generating the XML
Parameters / Return Value
Customer
Record "Customer"Record Customer
TransmissionIntermediaryVendor
Record "Vendor"Record Vendor
HeaderRecRef
RecordRefRecordRef
CustTaxRepresentative
Record "Customer"Record Customer
OnBeforeCheckMandatoryFields
local procedure OnBeforeCheckMandatoryFields(Customer: Record Customer;TransmissionIntermediaryVendor: Record Vendor;HeaderRecRef: RecordRef;CustTaxRepresentative: Record Customer temporary; var handled: Boolean)
If you want to overide the logics behind the check for mandatory fields, use this event to make your own. Remember to set handled to true in order to bypass the standard logics
Parameters / Return Value
Customer
Record "Customer"Record Customer
TransmissionIntermediaryVendor
Record "Vendor"Record Vendor
HeaderRecRef
RecordRefRecordRef
CustTaxRepresentative
Record "Customer"Record Customer
handled
BooleanBoolean
OnBeforeCollectDescrLines
local procedure OnBeforeCollectDescrLines(LineRecRef: RecordRef; var descList: list of [Text]; var HasLines: Boolean; var Handled: Boolean)
Raised when collecting descriptive lines to export in XML into AltriDatiGestionali tag
Parameters / Return Value
LineRecRef
RecordRefProduct document line you are processing, from this line will be identified related description lines
descList
list[Text]Return list of texts that will be exported
HasLines
BooleanReturn value, true means export descriprion lines, False means skip
Handled
Booleanif true, skips standard code
OnAfterCollectDescrLines
local procedure OnAfterCollectDescrLines(LineRecRef: RecordRef; var descList: list of [Text]; var HasLines: Boolean)
Raised after collecting descriptive lines to export in XML into AltriDatiGestionali tag
Parameters / Return Value
LineRecRef
RecordRefProduct document line you are processing, from this line will be identified related description lines
descList
list[Text]Return list of texts that will be exported
HasLines
BooleanReturn value, true means export descriprion lines, False means skip
OnBeforeGetReportAttachment
local procedure OnBeforeGetReportAttachment(EOSOutbEDocGroupSetup: Record "EOS Outb. EDoc. Group Setup"; ReportSelections: Record "Report Selections"; var documentEncoded: Text; var filename: Text; var fileExt: Text; HeaderRecRef: recordref; var Handled: Boolean)
Raised before creating PDF attachment to include in xml file
Parameters / Return Value
EOSOutbEDocGroupSetup
Record "EOS Outb. EDoc. Group Setup"Reference setup group
ReportSelections
Record "Report Selections"Report selection record cointaining report to print
documentEncoded
Text[]Variable to fill with attachment in base64 format
filename
Text[]Attachment file name
fileExt
Text[]Attachment file extension
HeaderRecRef
recordrefHeader recordref
Handled
Booleanif true, skips standard code
OnAfterGetReportAttachment
local procedure OnAfterGetReportAttachment(EOSOutbEDocGroupSetup: Record "EOS Outb. EDoc. Group Setup"; ReportSelections: Record "Report Selections"; var documentEncoded: Text; var filename: Text; var fileExt: Text; HeaderRecRef: recordref)
Raised after creating PDF attachment to include in xml file
Parameters / Return Value
EOSOutbEDocGroupSetup
Record "EOS Outb. EDoc. Group Setup"Reference setup group
ReportSelections
Record "Report Selections"Report selection record cointaining report to print
documentEncoded
Text[]filename
Text[]Attachment file name
fileExt
Text[]Attachment file extension
HeaderRecRef
recordrefHeader recordref
OnBeforeRunReportAttachment
local procedure OnBeforeRunReportAttachment(EOSOutbEDocGroupSetup: Record "EOS Outb. EDoc. Group Setup"; ReportSelections: Record "Report Selections")
Raised before executing retrieved report to create PDF attachment to include in xml file
Parameters / Return Value
EOSOutbEDocGroupSetup
Record "EOS Outb. EDoc. Group Setup"Reference setup group
ReportSelections
Record "Report Selections"Report selection record cointaining report to print
OnBeforeGetRiferimentoNormativoWithHeader
procedure OnBeforeGetRiferimentoNormativoWithHeader(TempVATEntry: Record "VAT Entry"; var RiferimentoNormativoText: Text; var IsHandled: Boolean; header: RecordRef)
Parameters / Return Value
TempVATEntry
Record "VAT Entry"RiferimentoNormativoText
Text[]IsHandled
Booleanheader
RecordRef
OnAfterGetRiferimentoNormativoWithHeader
procedure OnAfterGetRiferimentoNormativoWithHeader(TempVATEntry: Record "VAT Entry"; var RiferimentoNormativoText: Text; header: RecordRef)
Parameters / Return Value
TempVATEntry
Record "VAT Entry"RiferimentoNormativoText
Text[]header
RecordRef
OnBeforeForcePECExport
local procedure OnBeforeForcePECExport(CustNo: Code[20]; header: RecordRef; var Result: Boolean; var IsHandled: Boolean)
Parameters / Return Value
CustNo
Code[20]header
RecordRefResult
BooleanIsHandled
Boolean
OnAfterForcePECExport
local procedure OnAfterForcePECExport(CustNo: Code[20]; header: RecordRef; var Result: Boolean)
Parameters / Return Value
CustNo
Code[20]header
RecordRefResult
Boolean
OnBeforePopulateBuffers
local procedure OnBeforePopulateBuffers(HeaderRecRef: RecordRef; var RifLineNoBuffer: Record "EOS RifLineNo Buffer"; var OrderNoBuffer: Record "EOS RifLineNo Buffer"; var ShptNoBuffer: Record "EOS RifLineNo Buffer"; var IsHandled: Boolean)
Raised before RifLineNoBuffer (buffer that links ), OrderNoBuffer (buffer for DatiOrdineAcquisto) and ShptNoBuffer (buffer for DatiDDT) are poputaled
Parameters / Return Value
HeaderRecRef
RecordRefDocument header
RifLineNoBuffer
Record "EOS RifLineNo Buffer"Buffer related to document lines. Details: | Field | Value | |———————————- |———————————————————————————- | | “EOS Primary” | PK | | “EOS Inv. No.” | Posted Invoice/Cr. Memo document no. | | “EOS Inv. Line No.” | Posted Invoice/Cr. Memo document line | | “EOS Rif. Line No.” | Line no. in the XML file (tag NumeroLinea) |
OrderNoBuffer
Record "EOS RifLineNo Buffer"Buffer related to DatiOrdineAcquisto. Details: | Field | Value | |———————————- |———————————————————————————- | | “EOS Primary” | PK | | “EOS Inv. No.” | Posted Invoice/Cr. Memo document no. | | “EOS Inv. Line No.” | Posted Invoice/Cr. Memo document line | | “EOS Doc No.” | IdDocumento in DatiOrdineAcquisto section | | “EOS Data” | Data in DatiOrdineAcquisto section | | “EOS Codice CIG” | CodiceCIG in DatiOrdineAcquisto section | | “EOS Codice CUP” | CodiceCUP in DatiOrdineAcquisto section |
ShptNoBuffer
Record "EOS RifLineNo Buffer"Buffer related to DatiDDT. Details: | Field | Value | |———————————- |———————————————————————————- | | “EOS Primary” | PK | | “EOS Inv. No.” | Posted Invoice/Cr. Memo document no. | | “EOS Inv. Line No.” | Posted Invoice/Cr. Memo document line | | “EOS Doc No.” | NumeroDDT in DatiDDT section | | “EOS Data” | DataDDT in DatiDDT section |
IsHandled
Booleanif true, skips standard code
OnAfterPopulateBuffers
local procedure OnAfterPopulateBuffers(HeaderRecRef: RecordRef; var RifLineNoBuffer: Record "EOS RifLineNo Buffer"; var OrderNoBuffer: Record "EOS RifLineNo Buffer"; var ShptNoBuffer: Record "EOS RifLineNo Buffer")
Raised after RifLineNoBuffer (buffer with all document line), OrderNoBuffer (buffer for DatiOrdineAcquisto) and ShptNoBuffer (buffer for DatiDDT) are poputaled
Parameters / Return Value
HeaderRecRef
RecordRefDocument header
RifLineNoBuffer
Record "EOS RifLineNo Buffer"Buffer related to document lines. Details: | Field | Value | |———————————- |———————————————————————————- | | “EOS Primary” | PK | | “EOS Inv. No.” | Posted Invoice/Cr. Memo document no. | | “EOS Inv. Line No.” | Posted Invoice/Cr. Memo document line | | “EOS Rif. Line No.” | Line no. in the XML file (tag NumeroLinea) |
OrderNoBuffer
Record "EOS RifLineNo Buffer"Buffer related to DatiOrdineAcquisto. Details: | Field | Value | |———————————- |———————————————————————————- | | “EOS Primary” | PK | | “EOS Inv. No.” | Posted Invoice/Cr. Memo document no. | | “EOS Inv. Line No.” | Posted Invoice/Cr. Memo document line | | “EOS Doc No.” | IdDocumento in DatiOrdineAcquisto section | | “EOS Data” | Data in DatiOrdineAcquisto section | | “EOS Codice CIG” | CodiceCIG in DatiOrdineAcquisto section | | “EOS Codice CUP” | CodiceCUP in DatiOrdineAcquisto section |
ShptNoBuffer
Record "EOS RifLineNo Buffer"Buffer related to DatiDDT. Details: | Field | Value | |———————————- |———————————————————————————- | | “EOS Primary” | PK | | “EOS Inv. No.” | Posted Invoice/Cr. Memo document no. | | “EOS Inv. Line No.” | Posted Invoice/Cr. Memo document line | | “EOS Doc No.” | NumeroDDT in DatiDDT section | | “EOS Data” | DataDDT in DatiDDT section |
OnAfterPopulateRifLineNo
local procedure OnAfterPopulateRifLineNo(HeaderRecRef: RecordRef; LineRecRef: RecordRef; var RifLineNoBuffer: Record "EOS RifLineNo Buffer")
Parameters / Return Value
HeaderRecRef
RecordRefLineRecRef
RecordRefRifLineNoBuffer
Record "EOS RifLineNo Buffer"
OnAfterPopulateShipmentData
local procedure OnAfterPopulateShipmentData(HeaderRecRef: RecordRef; LineRecRef: RecordRef; var OrderNoBuffer: Record "EOS RifLineNo Buffer")
Parameters / Return Value
HeaderRecRef
RecordRefLineRecRef
RecordRefOrderNoBuffer
Record "EOS RifLineNo Buffer"
OnAfterPopulateOrderData
local procedure OnAfterPopulateOrderData(HeaderRecRef: RecordRef; LineRecRef: RecordRef; var OrderNoBuffer: Record "EOS RifLineNo Buffer")
Parameters / Return Value
HeaderRecRef
RecordRefLineRecRef
RecordRefOrderNoBuffer
Record "EOS RifLineNo Buffer"
OnAfterPopulateOrderDataFirstLine
local procedure OnAfterPopulateOrderDataFirstLine(HeaderRecRef: RecordRef; LineRecRef: RecordRef; var OrderNoBuffer: Record "EOS RifLineNo Buffer")
Raised before creating the first line of the document referred to Document Data.
Parameters / Return Value
HeaderRecRef
RecordRefDocument header
LineRecRef
RecordRefDocument line
OrderNoBuffer
Record "EOS RifLineNo Buffer"Buffer related to DatiOrdineAcquisto
OnBeforeinitializeDiscLine
local procedure OnBeforeinitializeDiscLine(var line: RecordRef; var DiscountType: Text; var DiscountDescr: Text; var IsHandled: Boolean)
Parameters / Return Value
line
RecordRefDiscountType
Text[]DiscountDescr
Text[]IsHandled
Boolean
OnAfterinitializeDiscLine
local procedure OnAfterinitializeDiscLine(var line: RecordRef; var DiscountType: Text; var DiscountDescr: Text)
Parameters / Return Value
line
RecordRefDiscountType
Text[]DiscountDescr
Text[]
OnAfterGetAltriDatiGestionaliFCYData
local procedure OnAfterGetAltriDatiGestionaliFCYData(var ImpLFtVal: Text; var ImpNFtVal: Text; var IvaVal: Text; var TotFattVal: Text; var DivDoc: Text; var EurDiv: Text)
Raised after getting AltriDatiGestionaliFCY data. This event can be used to modify the values of the parameters before they are used in the XML generation.
Parameters / Return Value
ImpLFtVal
Text[]ImpNFtVal
Text[]IvaVal
Text[]TotFattVal
Text[]DivDoc
Text[]EurDiv
Text[]
OnAfterGetOrderData
local procedure OnAfterGetOrderData(TableRecRef: RecordRef; var docNo: Code[20]; var Data: Date; var CodiceCUP: Code[15]; var CodiceCIG: Code[15]; var CodiceCommessaConvenzione: Text[100])
Integration event that is raised after retrieving order data from a table record. Allows subscribers to modify or extend the extracted order information.
Parameters / Return Value
TableRecRef
RecordRefRecord reference to the source table containing order data, this reference can contain either the header record or the line record
docNo
Code[20]Document number extracted from the order (can be modified by subscribers)
Data
DateDate extracted from the order (can be modified by subscribers)
CodiceCUP
Code[15]CUP code (Codice Unico di Progetto) extracted from the order (can be modified by subscribers)
CodiceCIG
Code[15]CIG code (Codice Identificativo Gara) extracted from the order (can be modified by subscribers)
CodiceCommessaConvenzione
Text[100]Commission/Convention code extracted from the order (can be modified by subscribers)
Feedback
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.