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 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


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 RecordRef

    RecordRef


SetAction

procedure SetAction(newAction: option Create,Send)

Set Action: could be create or Send (send will also create the document)

Parameters / Return Value

  • newAction option

    Create (0) , Send (1)

    option Create,Send


OnValidateEDocType

procedure OnValidateEDocType(var RecRef: RecordRef; HideDialog: Boolean): Boolean

Parameters / Return Value

  • RecRef RecordRef

  • HideDialog Boolean

  • Returns Boolean


Is1.6ExportFormat

PROCEDURE "Is1.6ExportFormat"(RefDate: Date; HideDialog: Boolean): Boolean

Parameters / Return Value

  • RefDate Date

  • HideDialog Boolean

  • Returns Boolean


GetTDDefault

PROCEDURE GetTDDefault(RecRef: RecordRef) EDocType: Code[5]

Parameters / Return Value

  • RecRef RecordRef

  • Returns Code[5]


GetDiscRoundingPrecision

PROCEDURE GetDiscRoundingPrecision() RounPrec: Decimal

Parameters / Return Value

  • Returns Decimal

FormatSpecsCheck

PROCEDURE FormatSpecsCheck(RecRef: RecordRef; HideDialog: Boolean): Boolean

Parameters / Return Value

  • RecRef RecordRef

  • HideDialog Boolean

  • Returns Boolean


FormatVATNatureCheck

PROCEDURE FormatVATNatureCheck(VATTransNatureCode: Code[4])

Parameters / Return Value

  • VATTransNatureCode Code[4]

FormatDutyStampCheck

PROCEDURE FormatDutyStampCheck(Hidedialog: Boolean): Boolean

Parameters / Return Value

  • Hidedialog Boolean

  • Returns Boolean


Events

OnAfterEDocCreated

local procedure OnAfterEDocCreated(var RecRef: RecordRef)

On After EDoc Created

Parameters / Return Value

  • RecRef RecordRef

    The 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 RecordRef

    Document you’re processing

  • Result Boolean

    Return value of the function

  • IsHandled Boolean

    No 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 RecordRef

    Document you’re processing

  • Result Boolean

    Return 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 RecordRef

    The header of the sales or service document

  • HideDialog Boolean

    Specifies if dialog should be suppressed

  • Handled Boolean

    No 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 RecordRef

    The header of the sales or service document

  • HideDialog Boolean

    Specifies if dialog should be suppressed



EOS Labs -