Codeunit 18123045 EOS Outb. EDoc. Mgt.
Codeunit 18123045 EOS Outb. EDoc. Mgt.
Gather all functions related to transliteration feature
Methods
CreateSendElectrDocFromPostedDoc
procedure CreateSendElectrDocFromPostedDoc(RecRef: RecordRef;CreateFile: Boolean;Send2IXFE: Boolean) Result: Boolean
Create and Send the Electronic Document From Posted Doc
Parameters / Return Value
RecRef
RecordRefThe Document
CreateFile
BooleanIf true, create the file
Send2IXFE
BooleanIf True send to IX FE the created document
Returns
Booleantrue equals success
SetRecRef
procedure SetRecRef(VAR RecRef: RecordRef)
Set the RecRef that need to create the XML (handle only Sales/Service Invoice/Cr.Memo)
Parameters / Return Value
RecRef
RecordRefRecordRef
SetAction
procedure SetAction(newAction: option Create,Send)
Set Action: could be create or Send (send will also create the document)
Parameters / Return Value
newAction
optionCreate(0) ,Send(1)option Create,Send
OnValidateEDocType
procedure OnValidateEDocType(var RecRef: RecordRef; HideDialog: Boolean): Boolean
Parameters / Return Value
RecRef
RecordRefHideDialog
BooleanReturns
Boolean
Is1.6ExportFormat
PROCEDURE "Is1.6ExportFormat"(RefDate: Date; HideDialog: Boolean): Boolean
Parameters / Return Value
RefDate
DateHideDialog
BooleanReturns
Boolean
GetTDDefault
PROCEDURE GetTDDefault(RecRef: RecordRef) EDocType: Code[5]
Parameters / Return Value
RecRef
RecordRefReturns
Code[5]
GetDiscRoundingPrecision
PROCEDURE GetDiscRoundingPrecision() RounPrec: Decimal
Parameters / Return Value
- Returns
Decimal
FormatSpecsCheck
PROCEDURE FormatSpecsCheck(RecRef: RecordRef; HideDialog: Boolean): Boolean
Parameters / Return Value
RecRef
RecordRefHideDialog
BooleanReturns
Boolean
FormatVATNatureCheck
PROCEDURE FormatVATNatureCheck(VATTransNatureCode: Code[4])
Parameters / Return Value
- VATTransNatureCode
Code[4]
FormatDutyStampCheck
PROCEDURE FormatDutyStampCheck(Hidedialog: Boolean): Boolean
Parameters / Return Value
Hidedialog
BooleanReturns
Boolean
Events
OnAfterEDocCreated
local procedure OnAfterEDocCreated(var RecRef: RecordRef)
On After EDoc Created
Parameters / Return Value
RecRef
RecordRefThe header of the document (it can be Sales Order, Service Order, Sales Cr.Memo, Service Cr.Memo)
OnBeforeRunEDocFileSending
local procedure OnBeforeRunEDocFileSending(var RecRef: RecordRef; var Result: Boolean; var IsHandled: Boolean)
Raised before global XML document sending
Parameters / Return Value
RecRef
RecordRefDocument you’re processing
Result
BooleanReturn value of the function
IsHandled
BooleanNo following standard app code will be executed
OnAfterRunEDocFileSending
local procedure OnAfterRunEDocFileSending(var RecRef: RecordRef; var Result: Boolean)
Raised after global XML document sending
Parameters / Return Value
RecRef
RecordRefDocument you’re processing
Result
BooleanReturn value of the function
OnBeforeValidateEDocType
local procedure OnBeforeValidateEDocType(var RecRef: RecordRef; HideDialog: Boolean; var Handled: Boolean)
Raised before validating electr. doc. type on sales or service document
Parameters / Return Value
RecRef
RecordRefThe header of the sales or service document
HideDialog
BooleanSpecifies if dialog should be suppressed
Handled
BooleanNo following standard code will be executed
OnAfterValidateEDocType
local procedure OnAfterValidateEDocType(var RecRef: RecordRef; HideDialog: Boolean)
Raised after validating electr. doc. type on sales or service document
Parameters / Return Value
RecRef
RecordRefThe header of the sales or service document
HideDialog
BooleanSpecifies if dialog should be suppressed
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.