Codeunit 18123004 EOS063 Outb. Purch. EDoc. Mgt.
Gather all functions related to purchase outbound documents
procedure CreateSendElectrDocFromPostedDoc(RecRef: RecordRef;CreateFile: Boolean;Send2IXFE: Boolean) Result: Boolean
Create and Send the Electronic Document From Posted Doc
RecRef RecordRef
The Document
CreateFile Boolean
If true, create the file
Send2IXFE Boolean
If True send to IX FE the created document
Returns Boolean
true equals success
procedure SetRecRef(VAR RecRef: RecordRef)
Set the RecRef that need to create the XML (handle only Purchase Invoice/Cr.Memo)
RecRef RecordRef
RecordRef
procedure SetAction(newAction: option Create,Send)
Set Action: could be create or Send (send will also create the document)
newAction option
Create
(0) , Send
(1)
option Create,Send
PROCEDURE "Is1.6ExportFormat"(HideDialog: Boolean): Boolean
HideDialog Boolean
Returns Boolean
PROCEDURE GetTDDefault(RecRef: RecordRef) EDocType: Code[5]
RecRef RecordRef
Returns Code[5]
procedure IsForeignVendor(RecRef: RecordRef): Boolean
RecRef RecordRef
Returns Boolean
procedure GetSelfInvoice_IDSDI(PurchaseHeader: Record "Purchase Header") IDSDI: BigInteger
PurchaseHeader Record "Purchase Header"
Returns BigInteger
procedure ReferredToDocumentItSelf(PurchaseHeader: Record "Purchase Header"): Boolean
PurchaseHeader Record "Purchase Header"
Returns Boolean
local procedure OnBeforeRunEDocFileSending(var RecRef: RecordRef; var IsHandled: Boolean)
Raised before global XML document sending
RecRef RecordRef
Document you’re processing
IsHandled Boolean
No following standard app code will be executed
local procedure OnAfterRunEDocFileSending(var RecRef: RecordRef)
Raised after global XML document sending
RecRef RecordRef
Document you’re processing
local procedure OnAfterEDocCreated(var RecRef: RecordRef; EOS063OutbPEDocData: Record "EOS063 Outb. P. EDoc. Data")
On After EDoc Created
RecRef RecordRef
The header of the document (it can be Purchase Cr.Memo, Purchase Invoice)
EOS063OutbPEDocData Record "EOS063 Outb. P. EDoc. Data"
Table containing info about created file
local procedure OnBefore_GetSelfInvoice_IDSDI(PurchaseHeader: Record "Purchase Header"; var IDSDI: BigInteger; var IsHandled: Boolean)
Raised before retrieving related ID SDI from applied document
PurchaseHeader Record "Purchase Header"
Reference document
IDSDI BigInteger
Return ID SDI value
IsHandled Boolean
if true then skip the standard logics
local procedure OnAfter_GetSelfInvoice_IDSDI(PurchaseHeader: Record "Purchase Header"; var IDSDI: BigInteger)
Raised after retrieving related ID SDI from applied document
PurchaseHeader Record "Purchase Header"
Reference document
IDSDI BigInteger
Return ID SDI value
local procedure OnAfterEDocFileNameAssignation(EOS063OutbPEDocData: Record "EOS063 Outb. P. EDoc. Data"; var NewEDocDataFileName: Text[30])
Raised after assigning the Filename field to the OutbPEDocData record
EOS063OutbPEDocData Record "EOS063 Outb. P. EDoc. Data"
Outbond purchase Electronic Document data record
NewEDocDataFileName Text[30]
New Electronic Document data Filename
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.