Codeunit 18123052 EOS FE Writer
Codeunit 18123052 EOS FE Writer
Methods
CreateFEfor
procedure CreateFEfor(Document: Variant; var FE: Codeunit "Temp Blob")
Start the creation of the XML for the document given
Parameters / Return Value
- Document - Variant- The document: Handle Only Sales/Service Invoice/Cr. Memo Header 
- FE - Codeunit "Temp Blob"- The XML is saved to a Blob 
GetLastProgressiveID
procedure GetLastProgressiveID(): Code[20]
Parameters / Return Value
- Returns Code[20]
Events
OnBeforeCreateXML
local procedure OnBeforeCreateXML(var Document: Variant; var tempBlob: Codeunit "Temp Blob"; var handled: Boolean)
If you want to modify something before creating the XML or if you want to generate your own XML use this
Parameters / Return Value
- Document - Variant- the Document that need the XML 
- tempBlob - Codeunit "Temp Blob"- The XML need to be saved to a BLOB 
- handled - Boolean- If True then bypass the standard code (no XML generated) 
OnBeforeAddStartTag
local procedure OnBeforeAddStartTag(header: RecordRef; line: RecordRef; var elementName: Text[250]; id: Text; var insert: Boolean; var XmlWriter: Codeunit "EOS Xml Writer")
On Before Add Start Tag <start>
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- line - RecordRef- Record - For Tag - “EOS RifLineNo Buffer” here will be populated with order data - Name ‘DatiOrdineAcquisto’ ID ‘2.1.2’ - “EOS Outb. EDoc. Related Docs.” will be populated by related docs - Name ‘DatiContratto’,‘DatiConvenzione’,‘DatiFattureCollegate’,‘DatiOrdineAcquisto’,‘DatiRicezione’,‘DatiSAL’,‘DatiDDT’ ID ‘2.1.3’,‘2.1.4’,‘2.1.6’,‘2.1.2’,‘2.1.5’,‘2.1.7’,‘2.1.8’ - “EOS RifLineNo Buffer” here will be populated with shipment data - Name ‘DatiDDT’ ID ‘2.1.8’ - Invoice Line (it is inside repeat) It will be used also for the roundig line (Discount and VatLine) - Name ‘DettaglioLinee’ ID ‘2.2.1’-‘2.2.1.X’ - VAT Entry (it is inside repeat) - Name ‘DatiRiepilogo’ ID ‘2.2.2’ - ‘2.2.2.X’ - “Cust. Ledger Entry” - Name ‘DettaglioPagamento’ ID ‘2.4.2’ 
- elementName - Text[250]- the name of the element 
- id - Text[]- The id given by “Tracciato Tabellare” 
- insert - Boolean- If true it will be added 
- XmlWriter - Codeunit "EOS Xml Writer"- If needed you can add other fields 
OnAfterAddStartTag
local procedure OnAfterAddStartTag(header: RecordRef; line: RecordRef; elementName: Text[250]; id: Text; var XmlWriter: Codeunit "EOS Xml Writer")
On After Add Start Tag
Parameters / Return Value
- header - RecordRef- same as OnBeforeAddStartTag 
- line - RecordRef- same as OnBeforeAddStartTag 
- elementName - Text[250]- same as OnBeforeAddStartTag 
- id - Text[]- same as OnBeforeAddStartTag 
- XmlWriter - Codeunit "EOS Xml Writer"- same as OnBeforeAddStartTag 
OnBeforeAddElementText
local procedure OnBeforeAddElementText(header: RecordRef; line: RecordRef; var elementName: Text[250]; id: Text; var Value: Text; var XmlWriter: Codeunit "EOS Xml Writer")
On Before Add Element Text <elementName>Value</elementName>
Parameters / Return Value
- header - RecordRef- same as OnBeforeAddStartTag 
- line - RecordRef- 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 
- XmlWriter - Codeunit "EOS Xml Writer"- same as OnBeforeAddStartTag 
OnBeforeAddElementBigText
local procedure OnBeforeAddElementBigText(header: RecordRef; line: RecordRef; var elementName: Text[250]; id: Text; var Value: BigText; var XmlWriter: Codeunit "EOS Xml Writer")
On Before Add Element Big Text - it used only by the tag ‘Attachment’ with ID ‘2.5.5’.
Parameters / Return Value
- header - RecordRef- same of OnBeforeAddElementText 
- line - RecordRef- same of OnBeforeAddElementText 
- elementName - Text[250]- same of OnBeforeAddElementText 
- id - Text[]- same of OnBeforeAddElementText 
- Value - BigText- same of OnBeforeAddElementText, this time it is - BigText
- XmlWriter - Codeunit "EOS Xml Writer"- same of OnBeforeAddElementText 
OnAfterAddElement
local procedure OnAfterAddElement(header: RecordRef; line: RecordRef; elementName: Text[250]; id: Text; var XmlWriter: Codeunit "EOS Xml Writer")
On After Add Element
Parameters / Return Value
- header - RecordRef- same of OnBeforeAddStartTag 
- line - RecordRef- same of OnBeforeAddStartTag 
- elementName - Text[250]- same of OnBeforeAddStartTag 
- id - Text[]- same of OnBeforeAddStartTag 
- XmlWriter - Codeunit "EOS Xml Writer"- same of OnBeforeAddStartTag 
OnBeforeWriteEndTag
local procedure OnBeforeWriteEndTag(header: RecordRef; line: RecordRef; var elementName: Text[250]; id: Text; var insert: Boolean; var XmlWriter: Codeunit "EOS Xml Writer")
On Before Write End Tag </elementName>
Parameters / Return Value
- header - RecordRef- same of OnBeforeAddStartTag 
- line - RecordRef- same of OnBeforeAddStartTag 
- elementName - Text[250]- same of OnBeforeAddStartTag 
- id - Text[]- same of OnBeforeAddStartTag 
- insert - Boolean- same of OnBeforeAddStartTag 
- XmlWriter - Codeunit "EOS Xml Writer"- same of OnBeforeAddStartTag 
OnAfterWriteEndTag
local procedure OnAfterWriteEndTag(header: RecordRef; line: RecordRef; elementName: Text[250]; id: Text; var XmlWriter: Codeunit "EOS Xml Writer")
On After Write End Tag
Parameters / Return Value
- header - RecordRef- same of OnBeforeAddStartTag 
- line - RecordRef- same of OnBeforeAddStartTag 
- elementName - Text[250]- same of OnBeforeAddStartTag 
- id - Text[]- same of OnBeforeAddStartTag 
- XmlWriter - Codeunit "EOS Xml Writer"- same of OnBeforeAddStartTag 
OnAddTaxRepresentative_1_3
local procedure OnAddTaxRepresentative_1_3(header: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer")
Needed if you want to add Tax Representative Tags (ID 1.3.X)
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
OnAddDatiTrasporto_2_1_9
local procedure OnAddDatiTrasporto_2_1_9(header: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer")
Needed if you want to add Dati Trasporto (ID 2.1.9.X)
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
OnAddFatturaPrincipale_2_1_10
local procedure OnAddFatturaPrincipale_2_1_10(header: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer")
Needed if you want to add Fattura Principale (ID 2.1.10.X)
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
OnAddDatiVeicoli_2_3
local procedure OnAddDatiVeicoli_2_3(header: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer")
Needed if you want to add Dati Veicoli (ID 2.3.X)
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
OnAddStabileOrganizzazione_1_2_3
local procedure OnAddStabileOrganizzazione_1_2_3(header: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer")
Needed if you want to add Stabile Organizzazione (ID 1.2.3.X)
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
OnAddStabileOrganizzazione_1_4_3
local procedure OnAddStabileOrganizzazione_1_4_3(header: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer"; var IsHandled: Boolean)
Needed if you want to add Stabile Organizzazione (ID 1.4.3.X)
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
- IsHandled - Boolean- if true then skip the standard logics 
OnAddDatiCassaPrevidenziale_2_1_1_7
local procedure OnAddDatiCassaPrevidenziale_2_1_1_7(header: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer")
Needed if you want to add Dati Cassa Previdenziale (ID 2.1.1.7.X)
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
OnAddScontoMaggiorazione_2_1_1_8
local procedure OnAddScontoMaggiorazione_2_1_1_8(header: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer")
Needed if you want to add Sconto Maggiorazione (ID 2.1.1.8.X)
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
OnAddAltriDatiGestionali_2_2_1_16
local procedure OnAddAltriDatiGestionali_2_2_1_16(header: RecordRef; line: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer")
Needed if you want to add Altri Dati Gestionali (ID 2.1.1.16.X)
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- line - RecordRef
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
OnBeforeWriteAttachments
local procedure OnBeforeWriteAttachments(header: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer"; var handled: Boolean)
If you want to modify the standard logic of Attachments section
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
- handled - Boolean- if true then skip the default 
OnAfterWriteAttachments
local procedure OnAfterWriteAttachments(header: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer")
If you want to Add custom logic to the Attachments section
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
OnBeforeWritePaymentData
local procedure OnBeforeWritePaymentData(header: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer"; var handled: Boolean)
If you want to modify the standard logic to the Payment Data section
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
- handled - Boolean- If true then skip standard logics 
OnAfterWritePaymentData
local procedure OnAfterWritePaymentData(header: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer")
If you want to Add custom logic to the Payment Data section
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
OnBeforeAddCausaleTags
local procedure OnBeforeAddCausaleTags(header: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer"; var handled: Boolean)
If you want to modify the standard logic to the Causale section
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
- handled - Boolean- If true then skip standard logics 
OnAfterAddCausaleTags
local procedure OnAfterAddCausaleTags(header: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer")
If you want to Add custom logic to the Causale section
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
OnBeforeWriteLineVATData
local procedure OnBeforeWriteLineVATData(header: RecordRef; CurrVatEntryLine: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer"; var handled: Boolean)
If you want to modify the standard logic to then Line VAT Data section
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- CurrVatEntryLine - RecordRef- The current Vat Entry 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
- handled - Boolean- If true then skip standard logics 
OnAfterWriteLineVATData
local procedure OnAfterWriteLineVATData(header: RecordRef; CurrVatEntryLine: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer")
If you want to add custom logics to then Line VAT Data section
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- CurrVatEntryLine - RecordRef- The current Vat Entry 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
OnBeforeWriteRoundingLineDisc
local procedure OnBeforeWriteRoundingLineDisc(header: RecordRef; line: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer"; var handled: Boolean)
On Before Write Rounding Line Discount
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- line - RecordRef- This contains data for rounding 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
- handled - Boolean- if true then skip standard logic 
OnAfterWriteRoundingLineDisc
local procedure OnAfterWriteRoundingLineDisc(header: RecordRef; line: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer")
If you want to add custom logic to the Rounding Line Discount section
Parameters / Return Value
- header - RecordRef- same as OnBeforeWriteRoundingLineDisc 
- line - RecordRef- same as OnBeforeWriteRoundingLineDisc 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
OnBeforeWriteRoundingVATLines
local procedure OnBeforeWriteRoundingVATLines(header: RecordRef; line: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer"; var handled: Boolean)
On Before Write Rounding VAT Lines
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- line - RecordRef- This contains data for rounding 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
- handled - Boolean- if true then skip standard logic 
OnAfterWriteRoundingVATLines
local procedure OnAfterWriteRoundingVATLines(header: RecordRef; line: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer")
If you want to add custom logic to the Rounding VAT Lines section
Parameters / Return Value
- header - RecordRef- same as OnBeforeWriteRoundingLineDisc 
- line - RecordRef- same as OnBeforeWriteRoundingLineDisc 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
OnBeforeWriteLineDataWithLineNo
local procedure OnBeforeWriteLineDataWithLineNo(header: RecordRef; line: RecordRef; var LineNo: Integer; var XmlWriter: Codeunit "EOS Xml Writer"; var handled: Boolean)
If you want to replace standard logics to Line Data
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- line - RecordRef- The line of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- LineNo - Integer- Number that will be used in NumeroLinea tag 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
- handled - Boolean- if true then skip the standard logics 
OnAfterWriteLineDataWithVarLineNo
local procedure OnAfterWriteLineDataWithVarLineNo(header: RecordRef; line: RecordRef; var LineNo: Integer; var XmlWriter: Codeunit "EOS Xml Writer")
If you want to add custom logics logics to Line Data
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- line - RecordRef- The line of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- LineNo - Integer- Number that has been used in NumeroLinea tag. This parameter is now passed as reference (var) allowing better customizations and avoiding “NumeroLinea” duplicates 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
OnBeforeWriteDatiDDT_2_1_8
local procedure OnBeforeWriteDatiDDT_2_1_8(header: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer"; var handled: Boolean)
On Before Write DatiDDT (ID 2.1.8.X)
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
- handled - Boolean- if true then skip the standard logics 
OnAfterWriteDatiDDT_2_1_8
local procedure OnAfterWriteDatiDDT_2_1_8(header: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer")
On After Write DatiDDT (ID 2.1.8.X)
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
OnBeforeWriteElectrDocRelDocsTags
local procedure OnBeforeWriteElectrDocRelDocsTags(header: RecordRef; ElectrDocRelatedDocsTMP: Record "EOS Outb. EDoc. Related Docs."; var XmlWriter: Codeunit "EOS Xml Writer"; var handled: Boolean)
On Before Write Electronic Document Related Documents Tags
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- ElectrDocRelatedDocsTMP - Record "EOS Outb. EDoc. Related Docs."- A buffer table and it can be filled with: DatiOrdineAcquisto, DatiContratto, DatiConvenzione, DatiRicezione, DatiFattureCollegate, DatiSAL, DatiDDT, Causale 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
- handled - Boolean- if true then skip the standard logics 
OnBeforeGroupingElectrDocRelDocsTags
local procedure OnBeforeGroupingElectrDocRelDocsTags(header: RecordRef; var ElectrDocRelatedDocsTMP: Record "EOS Outb. EDoc. Related Docs."; var XmlWriter: Codeunit "EOS Xml Writer"; var handled: Boolean)
On Before Grouping Electronic Document Related Documents Tags
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- ElectrDocRelatedDocsTMP - Record "EOS Outb. EDoc. Related Docs."- A buffer table and it can be filled with: DatiOrdineAcquisto, DatiContratto, DatiConvenzione, DatiRicezione, DatiFattureCollegate, DatiSAL, DatiDDT, Causale 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
- handled - Boolean- if true then skip the extraction of data in xml 
OnAfterWriteElectrDocRelDocsTags
local procedure OnAfterWriteElectrDocRelDocsTags(header: RecordRef; ElectrDocRelatedDocsTMP: Record "EOS Outb. EDoc. Related Docs."; var XmlWriter: Codeunit "EOS Xml Writer")
On After Write Electronic Document Related Documents Tags
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- ElectrDocRelatedDocsTMP - Record "EOS Outb. EDoc. Related Docs."- A buffer table and it can be filled with: DatiOrdineAcquisto, DatiContratto, DatiConvenzione, DatiRicezione, DatiFattureCollegate, DatiSAL, DatiDDT, Causale 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
OnBeforewriteDatiOrdineAcquisto_2_1_2
local procedure OnBeforewriteDatiOrdineAcquisto_2_1_2(header: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer"; var handled: Boolean)
On Before write Dati Ordine Acquisto (2.1.2.X)
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
- handled - Boolean- if true then skip the standard logics 
OnAfterwriteDatiOrdineAcquisto_2_1_2
local procedure OnAfterwriteDatiOrdineAcquisto_2_1_2(header: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer")
On After write Dati Ordine Acquisto (2.1.2.X)
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
OnBeforewriteDatiGenerali_2_1
local procedure OnBeforewriteDatiGenerali_2_1(header: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer"; var handled: Boolean)
On Before write Dati Generali (2.1.X)
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
- handled - Boolean- if true then skip the standard logics 
OnAfterwriteDatiGenerali_2_1
local procedure OnAfterwriteDatiGenerali_2_1(header: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer")
On After write Dati Generali (2.1.X)
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
OnBeforeAddDatiRitenuta_2_1_1_5
local procedure OnBeforeAddDatiRitenuta_2_1_1_5(header: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer"; var handled: Boolean)
Raised before writing the tag DatiRitenuta (2.1.1.5.x)
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
- handled - Boolean- if true then skip the standard logics 
OnAfterAddDatiRitenuta_2_1_1_5
local procedure OnAfterAddDatiRitenuta_2_1_1_5(header: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer")
Raised after writing the tag DatiRitenuta (2.1.1.5.x)
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
OnBeforeWriteSoggettoEmittente_1_6
local procedure OnBeforeWriteSoggettoEmittente_1_6(header: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer"; var handled: Boolean)
On Before Write Soggetto Emittente (1.6.X)
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
- handled - Boolean- if true then skip the standard logics 
OnAfterWriteSoggettoEmittente_1_6
local procedure OnAfterWriteSoggettoEmittente_1_6(header: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer")
On After Write Soggetto Emittente (1.6.X)
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
OnBeforeWriteThirdSubject_1_5
local procedure OnBeforeWriteThirdSubject_1_5(header: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer"; var handled: Boolean)
On Before Write Third Subject (1.5.X)
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
- handled - Boolean- if true then skip the standard logics 
OnAfterWriteThirdSubject_1_5
local procedure OnAfterWriteThirdSubject_1_5(header: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer")
On After Write Third Subject (1.5.X)
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
OnBeforeWriteCessionarioCommittente_1_4
local procedure OnBeforeWriteCessionarioCommittente_1_4(header: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer"; var handled: Boolean)
On Before Write Cessionario Committente (1.4.X)
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
- handled - Boolean- if true then skip the standard logics 
OnAfterWriteCessionarioCommittente_1_4
local procedure OnAfterWriteCessionarioCommittente_1_4(header: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer")
On After Write Cessionario Committente (1.4.X)
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
OnBeforeWriteCedentePrestatore_1_2
local procedure OnBeforeWriteCedentePrestatore_1_2(header: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer"; var handled: Boolean)
On Before Write Cedente Prestatore (1.2.X)
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
- handled - Boolean- if true then skip the standard logics 
OnAfterWriteCedentePrestatore_1_2
local procedure OnAfterWriteCedentePrestatore_1_2(header: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer")
On After Write Cedente Prestatore (1.2.X)
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
OnBeforeWriteDatiTrasmissione_1_1
local procedure OnBeforeWriteDatiTrasmissione_1_1(header: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer"; var handled: Boolean)
On Before Write Dati Trasmissione (1.1.X)
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
- handled - Boolean- if true then skip the standard logics 
OnAfterWriteDatiTrasmissione_1_1
local procedure OnAfterWriteDatiTrasmissione_1_1(header: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer")
On After Write Dati Trasmissione (1.1.X)
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
OnFillElectrDocRelatedDocsBuffer
local procedure OnFillElectrDocRelatedDocsBuffer(header: RecordRef; var ElectrDocRelatedDocsTMP: Record "EOS Outb. EDoc. Related Docs.")
If you want to add something to the Related Tags section, fil this buffer
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- ElectrDocRelatedDocsTMP - Record "EOS Outb. EDoc. Related Docs."- The buffer to fill 
OnBeforeAddCodiceArticolo
local procedure OnBeforeAddCodiceArticolo(header: RecordRef; line: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer"; var handled: Boolean)
If you want to replace standard logic to the tags CodiceArticolo with id ‘2.2.1.3.X’
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- line - RecordRef- The current line of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
- handled - Boolean- if true skip the standard logic 
OnAfterAddCodiceArticolo
local procedure OnAfterAddCodiceArticolo(header: RecordRef; line: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer")
If you want to add something after the tag CodiceArticolo with id ‘2.2.1.3.X’
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- line - RecordRef- The current line of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
OnWriteLineDiscDataOnBeforeAddCodiceArticolo
local procedure OnWriteLineDiscDataOnBeforeAddCodiceArticolo(header: RecordRef; line: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer"; var handled: Boolean)
If you want to replace standard logic to the tags CodiceArticolo with id ‘2.2.1.3.X’ in the discount line.
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- line - RecordRef- The current line of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
- handled - Boolean- if true skip the standard logic 
OnWriteLineDiscDataOnAfterAddCodiceArticolo
local procedure OnWriteLineDiscDataOnAfterAddCodiceArticolo(header: RecordRef; line: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer")
If you want to add something after the tag CodiceArticolo with id ‘2.2.1.3.X’ in the discount line.
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- line - RecordRef- The current line of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
OnCheckOrderDataMandatory
local procedure OnCheckOrderDataMandatory(Header: RecordRef)
Parameters / Return Value
- Header RecordRef
OnCheckDatiGenerali
local procedure OnCheckDatiGenerali(Header: RecordRef; var OrderNoBuffer: Record "EOS RifLineNo Buffer" temporary)
Parameters / Return Value
- Header - RecordRef
- OrderNoBuffer - Record "EOS RifLineNo Buffer"
OnCheckDatiBeniServizi
local procedure OnCheckDatiBeniServizi(Header: RecordRef; Line: RecordRef)
Parameters / Return Value
- Header - RecordRef
- Line - RecordRef
OnAfterCreateXML
local procedure OnAfterCreateXML(var Document: Variant; var tempBlob: Codeunit "Temp Blob")
Parameters / Return Value
- Document - Variant
- tempBlob - Codeunit "Temp Blob"
OnBeforeWriteCodiceArticoloGroup
procedure OnBeforeWriteCodiceArticoloGroup(line: RecordRef; var CodiceTipoTxt: Text[35]; var CodiceValoreTxt: Text[35])
Parameters / Return Value
- line - RecordRef
- CodiceTipoTxt - Text[35]
- CodiceValoreTxt - Text[35]
OnBeforeWriteRiferimentoNormativo
procedure OnBeforeWriteRiferimentoNormativo(line: RecordRef; var CodiceTipoTxt: Text[35]; var CodiceValoreTxt: Text[35])
Parameters / Return Value
- line - RecordRef
- CodiceTipoTxt - Text[35]
- CodiceValoreTxt - Text[35]
OnBeforeLoopWriteLineData
local procedure OnBeforeLoopWriteLineData(header: RecordRef; var line: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer"; var IsHandled: Boolean)
Raised before looping line recordref to write DettaglioLinee group
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- line - RecordRef- Filtered line recordset” 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
- IsHandled - Boolean- if true then skip the standard logics 
OnAfterLoopWriteLineData
local procedure OnAfterLoopWriteLineData(header: RecordRef; var line: RecordRef; var XmlWriter: Codeunit "EOS Xml Writer")
Raised after looping line recordref to write DettaglioLinee group
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- line - RecordRef- Filtered line recordset” 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
OnBeforeLoopWriteVATLineData
local procedure OnBeforeLoopWriteVATLineData(header: RecordRef; var TempVATEntry: Record "VAT Entry" temporary; var XmlWriter: Codeunit "EOS Xml Writer"; var IsHandled: Boolean)
Raised before looping TempVATEntry to write DatiRiepilogo group
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- TempVATEntry - Record "VAT Entry"- Filtered recordset to write” 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
- IsHandled - Boolean- if true then skip the standard logics 
OnAfterLoopWriteVATLineData
local procedure OnAfterLoopWriteVATLineData(header: RecordRef; var TempVATEntry: Record "VAT Entry" temporary; var XmlWriter: Codeunit "EOS Xml Writer")
Raised after looping TempVATEntry to write DatiRiepilogo group
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- TempVATEntry - Record "VAT Entry"- Filtered recordset to write” 
- XmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
OnBeforeWriteDatiOrdineAcquistoFromBufferLine_2_1_2
local procedure OnBeforeWriteDatiOrdineAcquistoFromBufferLine_2_1_2(header: RecordRef; OrderNoBuffer: Record "EOS RifLineNo Buffer" temporary; EOSXmlWriter: Codeunit "EOS Xml Writer"; var Bufferhandled: Boolean)
Raised before writing the tag Dati Ordine Acquisto (2.1.2.X)
Parameters / Return Value
- header - RecordRef- The header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo) 
- OrderNoBuffer - Record "EOS RifLineNo Buffer"- A buffer table to fill with order number 
- EOSXmlWriter - Codeunit "EOS Xml Writer"- Codeunit “EOS Xml Writer” 
- Bufferhandled - Boolean- if true then skip the standard logics 
OnBeforePopulateDettaglioLineeScontoMaggiorazione
procedure OnBeforePopulateDettaglioLineeScontoMaggiorazione(line: RecordRef; writeSeparateDiscLines: Boolean; var DiscType: array[10] of Text; var DiscAmount: array[10] of Text; var Perc: array[10] of Text; var LastArrayIndex: Integer; var handled: Boolean)
Parameters / Return Value
- line - RecordRef
- writeSeparateDiscLines - Boolean
- DiscType - Text[]
- DiscAmount - Text[]
- Perc - Text[]
- LastArrayIndex - Integer
- handled - Boolean
OnAfterPopulateDettaglioLineeScontoMaggiorazione
procedure OnAfterPopulateDettaglioLineeScontoMaggiorazione(line: RecordRef; writeSeparateDiscLines: Boolean; var DiscType: array[10] of Text; var DiscAmount: array[10] of Text; var Perc: array[10] of Text; var LastArrayIndex: Integer)
Parameters / Return Value
- line - RecordRef
- writeSeparateDiscLines - Boolean
- DiscType - Text[]
- DiscAmount - Text[]
- Perc - Text[]
- LastArrayIndex - Integer
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.