Codeunit 18123050 EOS Inb. Electr. Doc. Mgt.

Codeunit 18123050 EOS Inb. Electr. Doc. Mgt.

Methods

RunBatchProcess

procedure RunBatchProcess(HideDialog: Boolean)

Run the import from IX-FE and, if it is installed the Folder Support bridge extension, from file system

Parameters / Return Value

  • HideDialog Boolean

    true equals hide


SelectXMLFile

procedure SelectXMLFile(URL: Text[250])

import an XML or a P7M file

Parameters / Return Value

  • URL Text[250]

    the url of the file. if blank then ask the user to import a file


ImportXMLZipStream

procedure ImportXMLZipStream(ZippedXMLInStream: InStream; var TotalFileCount: Integer; var ProcessedFileCount: Integer): Guid

Import a zip stream containing XML or P7M files. This method returns the Import Batch Guid.

Parameters / Return Value

  • ZippedXMLInStream InStream

    An already Open Instream Zip content

  • TotalFileCount Integer

    It’s the count of the files inside the zip (value returned by the method)

  • ProcessedFileCount Integer

    Successfully processed File Counter (value returned by the method)

  • Returns Guid


ImportXMLZip

procedure ImportXMLZip(URL: Text[250])

Import a zip contaning XML or P7M files.

Parameters / Return Value

  • URL Text[250]

    the url of the archive. if blank then ask the user to import a zip


GetFilesFromEOSFE

procedure GetFilesFromEOSFE(ReturnError: Boolean; PerformImport: Boolean)

Get Files From IXFE

Parameters / Return Value

  • ReturnError Boolean

    if true then, in case of error, thorw it

  • PerformImport Boolean

    if true then import the files


LoadElectrDocFromXML

procedure LoadElectrDocFromXML(FileName: Text[250]; tempBlob: Codeunit "Temp Blob"; EOSFEInbLotEntryNo: Integer) RetValue: Boolean

Load Electronic Document From XML

Parameters / Return Value

  • FileName Text[250]

    the file name

  • tempBlob Codeunit "Temp Blob"

    Blob where the XML where saved

  • EOSFEInbLotEntryNo Integer

    Integer

  • Returns Boolean

    Flase, has errors


FillXMLBuffer

procedure FillXMLBuffer(var XMLBuffer: Record "XML Buffer"; tempBlob: Codeunit "Temp Blob"; FileName: Text[250])

Fill XML Buffer

Parameters / Return Value

  • XMLBuffer Record "XML Buffer"

    Record “XML Buffer”

  • tempBlob Codeunit "Temp Blob"

    Blob with the imported XML

  • FileName Text[250]

    FileName


ProcessBuffer

procedure ProcessBuffer(var XMLBuffer: Record "XML Buffer"): Guid

Process XML Buffer

Parameters / Return Value

  • XMLBuffer Record "XML Buffer"

    Record “XML Buffer”

  • Returns Guid

    Import Guid


ReloadXML

procedure ReloadXML(var IncElectrDocHeader: Record "EOS Inb. EDoc. Header"; HideDialog: Boolean)

Reload XML

Parameters / Return Value

  • IncElectrDocHeader Record "EOS Inb. EDoc. Header"

    Record “EOS Inb. EDoc. Header”

  • HideDialog Boolean

    true, hide the dialog


ValidateIncomingData

procedure ValidateIncomingData(var IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header"; AskConfirm: Boolean)

Validate Incoming Data

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

    Record “EOS Inb. EDoc. Header”

  • AskConfirm Boolean

    if true, show a confirm


ValidateIncomingHeader

procedure ValidateIncomingHeader(IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header")

Validate Incoming Header

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

    Record “EOS Inb. EDoc. Header”


RefuseIncomingHeader

procedure RefuseIncomingHeader(var IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header"; AskConfirm: Boolean; ForceEOSFE: Boolean)

Refuse the Incoming Document

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

    Record “EOS Inb. EDoc. Header”

  • AskConfirm Boolean

    if true, ask to the users

  • ForceEOSFE Boolean

    Boolean


RestoreIncomingHeader

procedure RestoreIncomingHeader(var IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header"; AskConfirm: Boolean)

Restore Incoming Document

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

    Record “EOS Inb. EDoc. Header”

  • AskConfirm Boolean

    if true, ask to the user


ProcessIncomingData

procedure ProcessIncomingData(var IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header"; CalledFromBatchProcess: Boolean)

Process Incoming Data: Execute entire validation/creation process

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

    Record “EOS Inb. EDoc. Header”

  • CalledFromBatchProcess Boolean

    if true, hide all the dialogs


HideRefusedIncHeader

procedure HideRefusedIncHeader(var IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header"; AskConfirm: Boolean; NewValue: Boolean)

Hide or show Refused Incoming Documents

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

    Record “EOS Inb. EDoc. Header”

  • AskConfirm Boolean

    if true, ask to the user

  • NewValue Boolean

    true then hide, false show


CreateElectronicDocument

procedure CreateElectronicDocument(var IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header"; CalledFromBatchProcess: Boolean)

Create Electronic Document

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

    Record “EOS Inb. EDoc. Header”

  • CalledFromBatchProcess Boolean

    if true, hide dialogs


CreateElectronicDocumentHeader

procedure CreateElectronicDocumentHeader(IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header")

Create Electronic Document Header

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

    Record “EOS Inb. EDoc. Header”


ValidateElectronicDocument

procedure ValidateElectronicDocument(var ElectronicDocPreviewHeader: Record "EOS Inb. EDoc. Preview Header"; AskConfirm: Boolean)

Validate Electronic Document

Parameters / Return Value

  • ElectronicDocPreviewHeader Record "EOS Inb. EDoc. Preview Header"

    Record “EOS Inb. EDoc. Preview Header”

  • AskConfirm Boolean

    if true, ask to the user


ValidateElectronicHeader

procedure ValidateElectronicHeader(ElectronicDocPreviewHeader: Record "EOS Inb. EDoc. Preview Header")

Validate Electronic Header

Parameters / Return Value

  • ElectronicDocPreviewHeader Record "EOS Inb. EDoc. Preview Header"

    Record “EOS Inb. EDoc. Preview Header”


CreateTempNAVDocument

procedure CreateTempNAVDocument(var ElectronicDocPreviewHeader: Record "EOS Inb. EDoc. Preview Header"; CalledFromBatchProcess: Boolean)

Create Temp NAV Document

Parameters / Return Value

  • ElectronicDocPreviewHeader Record "EOS Inb. EDoc. Preview Header"

    Record “EOS Inb. EDoc. Preview Header”

  • CalledFromBatchProcess Boolean

    if true, hide dialogs


CreateTempNAVHeader

procedure CreateTempNAVHeader(ElectronicDocPreviewHeader: Record "EOS Inb. EDoc. Preview Header")

This procedure creates the purchase document from the preview

Parameters / Return Value

  • ElectronicDocPreviewHeader Record "EOS Inb. EDoc. Preview Header"

    Record “EOS Inb. EDoc. Preview Header”


CreatePurchLineFromPostedDoc

procedure CreatePurchLineFromPostedDoc(ElectronicDocPreviewLine: Record "EOS Inb. EDoc. Preview Line"; var PurchaseLine: Record "Purchase Line")

Create Purchase Line From Posted Document

Parameters / Return Value

  • ElectronicDocPreviewLine Record "EOS Inb. EDoc. Preview Line"

    Record “EOS Inb. EDoc. Preview Line”

  • PurchaseLine Record "Purchase Line"

    Record “Purchase Line”


LinkTempNAVDocument

procedure LinkTempNAVDocument(var ElectronicDocPreviewHeader: Record "EOS Inb. EDoc. Preview Header"; ForceDocumentType2Link: Integer; ForceDocumentNo2Link: Code[20]; Ask: Boolean)

Link Temp NAV Document to current Electronic document

Parameters / Return Value

  • ElectronicDocPreviewHeader Record "EOS Inb. EDoc. Preview Header"

    Record “EOS Inb. EDoc. Preview Header”

  • ForceDocumentType2Link Integer

    Document type to link

  • ForceDocumentNo2Link Code[20]

    Document No. to link

  • Ask Boolean

    if true ask to user


UnLinkTempNAVDocument

procedure UnLinkTempNAVDocument(var ElectronicDocPreviewHeader: Record "EOS Inb. EDoc. Preview Header"; Ask: Boolean)

remove the link to purchase document

Parameters / Return Value

  • ElectronicDocPreviewHeader Record "EOS Inb. EDoc. Preview Header"

    Record “EOS Inb. EDoc. Preview Header”

  • Ask Boolean

    if true ask to the user


LinkPostedNAVDocument

procedure LinkPostedNAVDocument(var ElectronicDocPreviewHeader: Record "EOS Inb. EDoc. Preview Header"; Ask: Boolean)

link purchase document to current electr. document preview

Parameters / Return Value

  • ElectronicDocPreviewHeader Record "EOS Inb. EDoc. Preview Header"

    Record “EOS Inb. EDoc. Preview Header”

  • Ask Boolean

    if true ask to the user


UnLinkPostedNAVDocument

procedure UnLinkPostedNAVDocument(var ElectronicDocPreviewHeader: Record "EOS Inb. EDoc. Preview Header"; Ask: Boolean)

remove the link to posted purchase document

Parameters / Return Value

  • ElectronicDocPreviewHeader Record "EOS Inb. EDoc. Preview Header"

    Record “EOS Inb. EDoc. Preview Header”

  • Ask Boolean

    if true ask to the user


BuildPostedLinesBuffer

procedure BuildPostedLinesBuffer(ElectronicDocPreviewHeader: Record "EOS Inb. EDoc. Preview Header"; var ElectrDocReconBuffer: Record "EOS Inb. EDoc. Recon. Buffer" temporary; var ElectrDocReconDetail: Record "EOS Inb. EDoc. Recon. Detail" temporary)

Parameters / Return Value

  • ElectronicDocPreviewHeader Record "EOS Inb. EDoc. Preview Header"

  • ElectrDocReconBuffer Record "EOS Inb. EDoc. Recon. Buffer"

  • ElectrDocReconDetail Record "EOS Inb. EDoc. Recon. Detail"


MatchEDocPrevineVsPstdDocs

procedure MatchEDocPrevineVsPstdDocs(var ElectrDocReconBuffer: Record "EOS Inb. EDoc. Recon. Buffer" temporary; var ElectronicDocPreviewLine: Record "EOS Inb. EDoc. Preview Line"; ForceMatch: Boolean)

Link specific posted document line to selected document preview line

Parameters / Return Value

  • ElectrDocReconBuffer Record "EOS Inb. EDoc. Recon. Buffer"

    Record “EOS Inb. EDoc. Recon. Buffer”

  • ElectronicDocPreviewLine Record "EOS Inb. EDoc. Preview Line"

    Record “EOS Inb. EDoc. Preview Line”

  • ForceMatch Boolean

    if true force the match


UnLinkElectrDocPreviewLine

procedure UnLinkElectrDocPreviewLine(var ElectronicDocPreviewLine: Record "EOS Inb. EDoc. Preview Line")

Unlink selected record from posted document

Parameters / Return Value

  • ElectronicDocPreviewLine Record "EOS Inb. EDoc. Preview Line"

    Record “EOS Inb. EDoc. Preview Line”


AddElectrDocPreviewLine

procedure AddElectrDocPreviewLine(ElectrDocReconBuffer: Record "EOS Inb. EDoc. Recon. Buffer" temporary; inElectronicDocPreviewLine: Record "EOS Inb. EDoc. Preview Line")

Add specifc posted document line to selected document preview

Parameters / Return Value

  • ElectrDocReconBuffer Record "EOS Inb. EDoc. Recon. Buffer"

    Record “EOS Inb. EDoc. Recon. Buffer”

  • inElectronicDocPreviewLine Record "EOS Inb. EDoc. Preview Line"

    Record “EOS Inb. EDoc. Preview Line”


AddBlankElectrDocPreviewLine

procedure AddBlankElectrDocPreviewLine(SourceDocEntryNo: Integer)

Adds manual blank line to document

Parameters / Return Value

  • SourceDocEntryNo Integer

    Integer


SetHideDialog

procedure SetHideDialog(NewValue: Boolean)

Set Hide Dialog

Parameters / Return Value

  • NewValue Boolean

    if true hide dialogs


SetBatchProcess

procedure SetBatchProcess(NewValue: Boolean; NewBatchGUID: Guid)

Set Batch Process

Parameters / Return Value

  • NewValue Boolean

    if true, it is batch

  • NewBatchGUID Guid

    instance guid


CreateMissingVendor

procedure CreateMissingVendor(var ElectronicDocPreviewHeader: Record "EOS Inb. EDoc. Preview Header")

If no existing vendor has been recognized with given VAT reg. no., creates a new entity

Parameters / Return Value

  • ElectronicDocPreviewHeader Record "EOS Inb. EDoc. Preview Header"

    Record “EOS Inb. EDoc. Preview Header”


Events

FillNPDataPurchLine

local procedure FillNPDataPurchLine(var ElectronicDocPreviewLine: Record "EOS Inb. EDoc. Preview Line"; PurchaseLine: Record "Purchase Line")

Runs when a new record of Preview Line is created and filled with purchase line data

Parameters / Return Value

  • ElectronicDocPreviewLine Record "EOS Inb. EDoc. Preview Line"

    New preview line record

  • PurchaseLine Record "Purchase Line"

    Source purchase line record


FillNPDataEDocLine

local procedure FillNPDataEDocLine(var PurchaseLine: Record "Purchase Line"; ElectronicDocPreviewLine: Record "EOS Inb. EDoc. Preview Line")

Parameters / Return Value

  • PurchaseLine Record "Purchase Line"

  • ElectronicDocPreviewLine Record "EOS Inb. EDoc. Preview Line"


OnBeforeCheckSelfInvoice

local procedure OnBeforeCheckSelfInvoice(IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header"; var handled: Boolean)

Runs before recipient checks are performed (EI0043)

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

    Header record that is processed for data validation

  • handled Boolean

    If returned true, no following standard code will be executed


OnAfterCheckSelfInvoice

local procedure OnAfterCheckSelfInvoice(IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header")

Runs after recipient checks are performed (EI0043)

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

    Header record that is processed for data validation


OnBeforeCheckBankAccount

local procedure OnBeforeCheckBankAccount(ElectronicDocPreviewHeader: Record "EOS Inb. EDoc. Preview Header"; var ElectronicDocPreviewLine: Record "EOS Inb. EDoc. Preview Line"; var handled: Boolean)

Runs before the bank account checks are performed (EI0014)

Parameters / Return Value

  • ElectronicDocPreviewHeader Record "EOS Inb. EDoc. Preview Header"

    Header record that is processed for data validation

  • ElectronicDocPreviewLine Record "EOS Inb. EDoc. Preview Line"

    Line record that is processed for data validation

  • handled Boolean

    If returned true, no following standard code will be executed


OnAfterCheckBankAccount

local procedure OnAfterCheckBankAccount(ElectronicDocPreviewHeader: Record "EOS Inb. EDoc. Preview Header"; var ElectronicDocPreviewLine: Record "EOS Inb. EDoc. Preview Line")

Runs after the bank account checks are performed (EI0014)

Parameters / Return Value

  • ElectronicDocPreviewHeader Record "EOS Inb. EDoc. Preview Header"

    Header record that is processed for data validation

  • ElectronicDocPreviewLine Record "EOS Inb. EDoc. Preview Line"

    Line record that is processed for data validation


OnBeforeCheckRecipient

local procedure OnBeforeCheckRecipient(IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header"; var handled: Boolean)

Runs before recipient checks are performed (EI0001)

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

    Header record that is processed for data validation

  • handled Boolean

    If returned true, no following standard code will be executed


OnAfterCheckRecipient

local procedure OnAfterCheckRecipient(IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header")

Runs after recipient checks are performed (EI0001)

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

    Header record that is processed for data validation


OnBeforeCheckRecipientData

local procedure OnBeforeCheckRecipientData(IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header"; var handled: Boolean)

Runs before recipient secondary data (i.e. name, address, …) checks are performed (EI0033)

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

    Header record that is processed for data validation

  • handled Boolean

    If returned true, no following standard code will be executed


OnAfterCheckRecipientData

local procedure OnAfterCheckRecipientData(IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header")

Runs after recipient secondary data (i.e. name, address, …) checks are performed (EI0033)

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

    Header record that is processed for data validation


OnBeforeCheckSender

local procedure OnBeforeCheckSender(IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header"; var handled: Boolean)

Runs before sender data are matched versus existing vendors (EI0005)

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

    Header record that is processed for data validation

  • handled Boolean

    If returned true, no following standard code will be executed


OnAfterCheckSender

local procedure OnAfterCheckSender(IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header")

Runs after sender data are matched versus existing vendors (EI0005)

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

    Header record that is processed for data validation


OnBeforeCheckDocumentType

local procedure OnBeforeCheckDocumentType(IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header"; var handled: Boolean)

Runs before is checked that received document type is handled (EI0002)

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

    Header record that is processed for data validation

  • handled Boolean

    If returned true, no following standard code will be executed


OnAfterCheckDocumentType

local procedure OnAfterCheckDocumentType(IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header")

Runs after is checked that received document type is handled (EI0002)

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

    Header record that is processed for data validation


OnBeforeCheckVersion

local procedure OnBeforeCheckVersion(IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header"; var handled: Boolean)

Runs before is checked that received version (i.e. FPR12) is handled (EI0004)

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

    Header record that is processed for data validation

  • handled Boolean

    If returned true, no following standard code will be executed


OnAfterCheckVersion

local procedure OnAfterCheckVersion(IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header")

Runs after is checked that received version (i.e. FPR12) is handled (EI0004)

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

    Header record that is processed for data validation


OnBeforeCheckFileExists

local procedure OnBeforeCheckFileExists(IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header"; var handled: Boolean)

Runs before is checked if received file results already imported (EI0003)

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

    Header record that is processed for data validation

  • handled Boolean

    If returned true, no following standard code will be executed


OnAfterCheckFileExists

local procedure OnAfterCheckFileExists(IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header")

Runs after is checked if received file results already imported (EI0003)

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

    Header record that is processed for data validation


OnBeforeCheckEOSFEData

local procedure OnBeforeCheckEOSFEData(IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header"; var handled: Boolean)

Runs before is checked that received file is valid and accepted in IXFE portal (EI0030/EI0031)

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

    Header record that is processed for data validation

  • handled Boolean

    If returned true, no following standard code will be executed


OnAfterCheckEOSFEData

local procedure OnAfterCheckEOSFEData(IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header")

Runs after is checked that received file is valid and accepted in IXFE portal (EI0030/EI0031)

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

    Header record that is processed for data validation


OnBeforeCheckMultipleNumeroLinea

local procedure OnBeforeCheckMultipleNumeroLinea(IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header"; var handled: Boolean)

Runs before is checked that received file contains duplicated NumeroLinea values (EI0034)

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

    Header record that is processed for data validation

  • handled Boolean

    If returned true, no following standard code will be executed


OnAfterCheckMultipleNumeroLinea

local procedure OnAfterCheckMultipleNumeroLinea(IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header")

Runs after is checked that received file contains duplicated NumeroLinea values (EI0034)

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

    Header record that is processed for data validation


OnBeforeValidateIncomingData

local procedure OnBeforeValidateIncomingData(var IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header"; var handled: Boolean)

Runs before whole validation process for Inbound Document (header and lines) is performed

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

    Header record that is processed for data validation

  • handled Boolean

    If returned true, no following standard code will be executed


OnAfterValidateIncomingData

local procedure OnAfterValidateIncomingData(var IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header")

Runs after whole validation process for Inbound Document (header and lines) is performed

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

    Header record that is processed for data validation


OnBeforeValidateIncomingHeader

local procedure OnBeforeValidateIncomingHeader(var IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header"; var handled: Boolean)

Runs before whole validation process for Inbound Document Header is performed

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

    Header record that is processed for data validation

  • handled Boolean

    If returned true, no following standard code will be executed


OnAfterValidateIncomingHeader

local procedure OnAfterValidateIncomingHeader(var IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header")

Runs after whole validation process for Inbound Document Header is performed

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

    Header record that is processed for data validation


OnValidateIncomingLine

local procedure OnValidateIncomingLine(IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header"; var IncomingElectrDocLine: Record "EOS Inb. EDoc. Line")

Runs when every Inbound Document Line is validated

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

    Header record that is processed for data validation

  • IncomingElectrDocLine Record "EOS Inb. EDoc. Line"

    Line record that is processed for data validation


OnBeforeCreateElectronicDocument

local procedure OnBeforeCreateElectronicDocument(var IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header"; CalledFromBarchProcess: Boolean; var handled: Boolean)

Runs before an Inbound Document is processed to generate an Electr. Document Preview

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

    Header record that is processed for preview creation

  • CalledFromBarchProcess Boolean

    Identifies if process was manually executed (with UI) or derived from scheduled batch

  • handled Boolean

    If returned true, no following standard code will be executed


OnAfterCreateElectronicDocument

local procedure OnAfterCreateElectronicDocument(var IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header"; CalledFromBarchProcess: Boolean; GlobalBatchGUID: Guid)

Runs after an Inbound Document is processed to generate an Electr. Document Preview

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

    Header record that is processed for preview creation

  • CalledFromBarchProcess Boolean

    Identifies if process was manually executed (with UI) or derived from scheduled batch

  • GlobalBatchGUID Guid

    Unique GUID referred to specific process. You can filter Electr. Document Preview by EOS Process ID to identify records that has been generated in current run


OnBeforeCreateElectronicDocumentHeader

local procedure OnBeforeCreateElectronicDocumentHeader(var IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header"; var handled: Boolean)

Runs before an Electr. Document Preview is generated from an Inbound Document

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

    Header record that is processed for preview creation

  • handled Boolean

    If returned true, no following standard code will be executed


OnAfterCreateElectronicDocumentHeader

local procedure OnAfterCreateElectronicDocumentHeader(var IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header"; var ElectronicDocumentHeader: Record "EOS Inb. EDoc. Preview Header")

Runs after an Electr. Document Preview is generated from an Inbound Document

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

    Header record that is processed for preview creation

  • ElectronicDocumentHeader Record "EOS Inb. EDoc. Preview Header"

    Generated Electr. Document Preview


OnBeforeCreateElectronicDocumentLine

local procedure OnBeforeCreateElectronicDocumentLine(IncomingElectrDocLine: Record "EOS Inb. EDoc. Line";var ElectronicDocumentHeader: Record "EOS Inb. EDoc. Preview Header";var NextLineNo: array[20] of Integer;var handled: Boolean)

Runs before an Electr. Document Preview Line is generated from an Inbound Document Line

Parameters / Return Value

  • IncomingElectrDocLine Record "EOS Inb. EDoc. Line"

    Line record that is processed for preview creation

  • ElectronicDocumentHeader Record "EOS Inb. EDoc. Preview Header"

    Generated Electr. Document Preview Header

  • NextLineNo Integer

    Array 20 of integer with Line No. values grouped by Line type (i.e. DatiBeniServizi, DatiPagamento, …)

  • handled Boolean

    If returned true, no following standard code will be executed


OnAfterCreateElectronicDocumentLine

local procedure OnAfterCreateElectronicDocumentLine(IncomingElectrDocLine: Record "EOS Inb. EDoc. Line";var ElectronicDocumentHeader: Record "EOS Inb. EDoc. Preview Header";var ElectronicDocumentLine: Record "EOS Inb. EDoc. Preview Line")

Runs after an Electr. Document Preview Line is generated from an Inbound Document Line

Parameters / Return Value

  • IncomingElectrDocLine Record "EOS Inb. EDoc. Line"

    Line record that is processed for preview creation

  • ElectronicDocumentHeader Record "EOS Inb. EDoc. Preview Header"

    Generated Electr. Document Preview Header

  • ElectronicDocumentLine Record "EOS Inb. EDoc. Preview Line"

    Generated Electr. Document Preview Line


OnBeforeCreateTempNAVHeader

local procedure OnBeforeCreateTempNAVHeader(var ElectronicDocPreviewHeader: Record "EOS Inb. EDoc. Preview Header"; var handled: Boolean)

Runs before a Purchase Document Header is generated from an Electr. Document Preview

Parameters / Return Value

  • ElectronicDocPreviewHeader Record "EOS Inb. EDoc. Preview Header"

    Header record that is processed for preview creation

  • handled Boolean

    If returned true, no following standard code will be executed


OnAfterCreateTempNAVHeader

local procedure OnAfterCreateTempNAVHeader(var ElectronicDocPreviewHeader: Record "EOS Inb. EDoc. Preview Header"; var PurchaseHeader: Record "Purchase Header")

Runs after a Purchase Document is generated from an Electr. Document Preview

Parameters / Return Value

  • ElectronicDocPreviewHeader Record "EOS Inb. EDoc. Preview Header"

    Header record that is processed for preview creation

  • PurchaseHeader Record "Purchase Header"

    Generated Purchase Header


OnBeforeCreateTempNAVDocument

local procedure OnBeforeCreateTempNAVDocument(var ElectronicDocPreviewHeader: Record "EOS Inb. EDoc. Preview Header";CalledFromBarchProcess: Boolean;var handled: Boolean)

Runs before a Purchase Document is generated from an Electr. Document Preview

Parameters / Return Value

  • ElectronicDocPreviewHeader Record "EOS Inb. EDoc. Preview Header"

    Header record that is processed for document creation

  • CalledFromBarchProcess Boolean

    Identifies if process was manually executed (with UI) or derived from scheduled batch

  • handled Boolean

    If returned true, no following standard code will be executed


OnAfterCreateTempNAVDocument

local procedure OnAfterCreateTempNAVDocument(var ElectronicDocPreviewHeader: Record "EOS Inb. EDoc. Preview Header";CalledFromBarchProcess: Boolean; GlobalBatchGUID: Guid)

Runs after a Purchase Document is generated from an Electr. Document Preview

Parameters / Return Value

  • ElectronicDocPreviewHeader Record "EOS Inb. EDoc. Preview Header"

    Header record that is processed for document creation

  • CalledFromBarchProcess Boolean

    Identifies if process was manually executed (with UI) or derived from scheduled batch

  • GlobalBatchGUID Guid

    Unique GUID referred to specific process. You can filter Electr. Document Preview by EOS Process ID to identify records that has been processed in current run


OnBeforeCreateTempNAVLine

local procedure OnBeforeCreateTempNAVLine(var ElectronicDocPreviewLine: Record "EOS Inb. EDoc. Preview Line";PurchaseHeader: Record "Purchase Header";var handled: Boolean)

Runs before a Purchase Document Line is generated from an Electr. Document Preview

Parameters / Return Value

  • ElectronicDocPreviewLine Record "EOS Inb. EDoc. Preview Line"

    Header record that is processed for preview creation

  • PurchaseHeader Record "Purchase Header"

    Purchase header new line refers to

  • handled Boolean

    If returned true, no following standard code will be executed


OnBeforeInsertPurchLine

local procedure OnBeforeInsertPurchLine(var PurchaseLine: Record "Purchase Line"; ElectronicDocPreviewLine: Record "EOS Inb. EDoc. Preview Line")

Runs before a Purchase Line is generated from an Electr. Document Preview

Parameters / Return Value

  • PurchaseLine Record "Purchase Line"

    Generated Purchase Line

  • ElectronicDocPreviewLine Record "EOS Inb. EDoc. Preview Line"

    Line record that is processed for purchase line creation


OnAfterInsertPurchLine

local procedure OnAfterInsertPurchLine(var PurchaseLine: Record "Purchase Line"; ElectronicDocPreviewLine: Record "EOS Inb. EDoc. Preview Line")

Runs after a Purchase Line is generated from an Electr. Document Preview

Parameters / Return Value

  • PurchaseLine Record "Purchase Line"

    Generated Purchase Line

  • ElectronicDocPreviewLine Record "EOS Inb. EDoc. Preview Line"

    Line record that is processed for purchase line creation


OnAfterCreateTempNAVLine

local procedure OnAfterCreateTempNAVLine(var ElectronicDocPreviewLine: Record "EOS Inb. EDoc. Preview Line";PurchaseHeader: Record "Purchase Header";var PurchaseLine: Record "Purchase Line")

Runs after an Purchase Line is generated from an Electr. Document Preview

Parameters / Return Value

  • ElectronicDocPreviewLine Record "EOS Inb. EDoc. Preview Line"

    Line record that is processed for purchase document creation

  • PurchaseHeader Record "Purchase Header"

    Generated Electr. Document Preview Header

  • PurchaseLine Record "Purchase Line"

    Generated Purchase Line


OnBeforeCreateWithhTax

local procedure OnBeforeCreateWithhTax(PurchaseHeader: Record "Purchase Header"; ElectronicDocPreviewHeader: Record "EOS Inb. EDoc. Preview Header"; var handled: Boolean)

Runs before Withh. data are filled for created purchase header

Parameters / Return Value

  • PurchaseHeader Record "Purchase Header"

    Purchase document header processing

  • ElectronicDocPreviewHeader Record "EOS Inb. EDoc. Preview Header"

    Source Electr. Document Preview Header

  • handled Boolean

    If returned true, no following standard code will be executed


OnAfterCreateWithhTax

local procedure OnAfterCreateWithhTax(PurchaseHeader: Record "Purchase Header"; ElectronicDocPreviewHeader: Record "EOS Inb. EDoc. Preview Header")

Runs after Withh. data are filled for created purchase header

Parameters / Return Value

  • PurchaseHeader Record "Purchase Header"

    Purchase document header processing

  • ElectronicDocPreviewHeader Record "EOS Inb. EDoc. Preview Header"

    Source Electr. Document Preview Header


OnBeforeCreatePaymentLines

local procedure OnBeforeCreatePaymentLines(PurchaseHeader: Record "Purchase Header";ElectronicDocPreviewHeader: Record "EOS Inb. EDoc. Preview Header";var handled: Boolean)

Parameters / Return Value

  • PurchaseHeader Record "Purchase Header"

  • ElectronicDocPreviewHeader Record "EOS Inb. EDoc. Preview Header"

  • handled Boolean


OnAfterCreatePaymentLines

local procedure OnAfterCreatePaymentLines(var PurchaseHeader: Record "Purchase Header";ElectronicDocPreviewHeader: Record "EOS Inb. EDoc. Preview Header")

Runs after payment data are filled for created purchase header

Parameters / Return Value

  • PurchaseHeader Record "Purchase Header"

    Purchase document header processing

  • ElectronicDocPreviewHeader Record "EOS Inb. EDoc. Preview Header"

    Source Electr. Document Preview Header


OnBeforeLinkTempNAVDocument

local procedure OnBeforeLinkTempNAVDocument(var ElectronicDocPreviewHeader: Record "EOS Inb. EDoc. Preview Header";ForceDocumentType2Link: Integer;ForceDocumentNo2Link: Code[20];var handled: Boolean)

Runs before purchase document is manually linked to a Preview Header

Parameters / Return Value

  • ElectronicDocPreviewHeader Record "EOS Inb. EDoc. Preview Header"

    Processing Electr. Document Preview Header

  • ForceDocumentType2Link Integer

    Document no. of purchase document to link

  • ForceDocumentNo2Link Code[20]

  • handled Boolean

    If returned true, no following standard code will be executed


OnAfterLinkTempNAVDocument

local procedure OnAfterLinkTempNAVDocument(var ElectronicDocPreviewHeader: Record "EOS Inb. EDoc. Preview Header";ForceDocumentType2Link: Integer;ForceDocumentNo2Link: Code[20])

Runs after purchase document is manually linked to a Preview Header

Parameters / Return Value

  • ElectronicDocPreviewHeader Record "EOS Inb. EDoc. Preview Header"

    Processing Electr. Document Preview Header

  • ForceDocumentType2Link Integer

    Document no. of purchase document to link

  • ForceDocumentNo2Link Code[20]


OnBeforeUnLinkTempNAVDocument

local procedure OnBeforeUnLinkTempNAVDocument(var ElectronicDocPreviewHeader: Record "EOS Inb. EDoc. Preview Header"; var handled: Boolean)

Runs before purchase document is manually unlinked to a Preview Header

Parameters / Return Value

  • ElectronicDocPreviewHeader Record "EOS Inb. EDoc. Preview Header"

    Processing Electr. Document Preview Header

  • handled Boolean

    If returned true, no following standard code will be executed


OnAfterUnLinkTempNAVDocument

local procedure OnAfterUnLinkTempNAVDocument(var ElectronicDocPreviewHeader: Record "EOS Inb. EDoc. Preview Header")

Runs after purchase document is manually unlinked to a Preview Header

Parameters / Return Value

  • ElectronicDocPreviewHeader Record "EOS Inb. EDoc. Preview Header"

    Processing Electr. Document Preview Header


OnBeforeLinkPostedNAVDocument

local procedure OnBeforeLinkPostedNAVDocument(var ElectronicDocPreviewHeader: Record "EOS Inb. EDoc. Preview Header"; var handled: Boolean)

Runs before posted purchase document is manually linked to a Preview Header

Parameters / Return Value

  • ElectronicDocPreviewHeader Record "EOS Inb. EDoc. Preview Header"

    Processing Electr. Document Preview Header

  • handled Boolean

    If returned true, no following standard code will be executed


OnAfterLinkPostedNAVDocument

local procedure OnAfterLinkPostedNAVDocument(var ElectronicDocPreviewHeader: Record "EOS Inb. EDoc. Preview Header")

Runs after posted purchase document is manually linked to a Preview Header

Parameters / Return Value

  • ElectronicDocPreviewHeader Record "EOS Inb. EDoc. Preview Header"

    Processing Electr. Document Preview Header


OnBeforeUnLinkPostedNAVDocument

local procedure OnBeforeUnLinkPostedNAVDocument(var ElectronicDocPreviewHeader: Record "EOS Inb. EDoc. Preview Header"; var handled: Boolean)

Runs before posted purchase document is manually unlinked to a Preview Header

Parameters / Return Value

  • ElectronicDocPreviewHeader Record "EOS Inb. EDoc. Preview Header"

    Processing Electr. Document Preview Header

  • handled Boolean

    If returned true, no following standard code will be executed


OnAfterUnLinkPostedNAVDocument

local procedure OnAfterUnLinkPostedNAVDocument(var ElectronicDocPreviewHeader: Record "EOS Inb. EDoc. Preview Header")

Runs after posted purchase document is manually unlinked to a Preview Header

Parameters / Return Value

  • ElectronicDocPreviewHeader Record "EOS Inb. EDoc. Preview Header"

    Processing Electr. Document Preview Header


OnBeforeRatePostedDocsFound

local procedure OnBeforeRatePostedDocsFound(var ElectrDocReconBuffer: Record "EOS Inb. EDoc. Recon. Buffer" temporary;var ElectrDocReconDetail: Record "EOS Inb. EDoc. Recon. Detail" temporary;ElectronicDocPreviewLine: Record "EOS Inb. EDoc. Preview Line";var LineRating: Integer;var handled: Boolean)

Runs before posted purchase document is manually unlinked to a Preview Header

Parameters / Return Value

  • ElectrDocReconBuffer Record "EOS Inb. EDoc. Recon. Buffer"

    Temp Buffer containig posed documents data to rate and link to preview line

  • ElectrDocReconDetail Record "EOS Inb. EDoc. Recon. Detail"

    Temp Buffer containig detail of rating (one line per single criteria)

  • ElectronicDocPreviewLine Record "EOS Inb. EDoc. Preview Line"

    Processing Preview line

  • LineRating Integer

    Total rating

  • handled Boolean

    If returned true, no following standard code will be executed


OnAfterRatePostedDocsFound

local procedure OnAfterRatePostedDocsFound(var ElectrDocReconBuffer: Record "EOS Inb. EDoc. Recon. Buffer" temporary;var ElectrDocReconDetail: Record "EOS Inb. EDoc. Recon. Detail";ElectronicDocPreviewLine: Record "EOS Inb. EDoc. Preview Line";var LineRating: Integer)

Runs after posted purchase document is manually unlinked to a Preview Header

Parameters / Return Value

  • ElectrDocReconBuffer Record "EOS Inb. EDoc. Recon. Buffer"

    Temp Buffer containig posted documents data to rate and link to preview line

  • ElectrDocReconDetail Record "EOS Inb. EDoc. Recon. Detail"

    Temp Buffer containig detail of rating (one line per single criteria)

  • ElectronicDocPreviewLine Record "EOS Inb. EDoc. Preview Line"

    Processing Preview line

  • LineRating Integer

    Total rating


OnBeforeRateVendorShipmentNoMatch

local procedure OnBeforeRateVendorShipmentNoMatch(var ElectrDocReconBuffer: Record "EOS Inb. EDoc. Recon. Buffer" temporary;var IncElectrDocLine: Record "EOS Inb. EDoc. Line";var IncElectrDocLineAll: Record "EOS Inb. EDoc. Line";var RatingCode: Code[10];var RatingDescription: Text[80];var LineRating: Integer;var Handled: Boolean)

Runs before evaluation of link between Preview line and posted document

Parameters / Return Value

  • ElectrDocReconBuffer Record "EOS Inb. EDoc. Recon. Buffer"

    Temp Buffer containig posed documents data to rate and link to preview line

  • IncElectrDocLine Record "EOS Inb. EDoc. Line"

    Record of posted document line

  • IncElectrDocLineAll Record "EOS Inb. EDoc. Line"

  • RatingCode Code[10]

    Code used to identify the custom rule

  • RatingDescription Text[80]

    Description of Custom Rule applied

  • LineRating Integer

    Total rating. Used only if positive

  • Handled Boolean

    If returned true, no following standard code will be executed


OnBeforeGetPostedLinesFromVendorRef

local procedure OnBeforeGetPostedLinesFromVendorRef(var ElectrDocReconBuffer: Record "EOS Inb. EDoc. Recon. Buffer" temporary;ElectronicDocPreviewLine: Record "EOS Inb. EDoc. Preview Line";var handled: Boolean)

Runs before posted documents (i.e. Receipts) are collected into a temp buffer in order to be rated and linked to a Preview line

Parameters / Return Value

  • ElectrDocReconBuffer Record "EOS Inb. EDoc. Recon. Buffer"

    Temp Buffer containig posted documents data to rate and link to preview line

  • ElectronicDocPreviewLine Record "EOS Inb. EDoc. Preview Line"

    Processing Preview line

  • handled Boolean

    If returned true, no following standard code will be executed


OnAfterGetPostedLinesFromVendorRef

local procedure OnAfterGetPostedLinesFromVendorRef(var ElectrDocReconBuffer: Record "EOS Inb. EDoc. Recon. Buffer" temporary;ElectronicDocPreviewLine: Record "EOS Inb. EDoc. Preview Line")

Runs after posted documents (i.e. Receipts) are collected into a temp buffer in order to be rated and linked to a Preview line

Parameters / Return Value

  • ElectrDocReconBuffer Record "EOS Inb. EDoc. Recon. Buffer"

    Temp Buffer containig posted documents data to rate and link to preview line

  • ElectronicDocPreviewLine Record "EOS Inb. EDoc. Preview Line"

    Processing Preview line


OnBeforeLinkElectrDocPreviewLine

local procedure OnBeforeLinkElectrDocPreviewLine(var ElectrDocReconBuffer: Record "EOS Inb. EDoc. Recon. Buffer" temporary;var ElectronicDocPreviewLine: Record "EOS Inb. EDoc. Preview Line";var Warning: Boolean;var handled: Boolean)

Runs before posted documents is linked to a Preview line

Parameters / Return Value

  • ElectrDocReconBuffer Record "EOS Inb. EDoc. Recon. Buffer"

    Temp Buffer containing posted documents data to link to preview line

  • ElectronicDocPreviewLine Record "EOS Inb. EDoc. Preview Line"

    Processing Preview line

  • Warning Boolean

    If true, the ElectrDocReconBuffer rating is lower than the limit, meaning that the link has been forced

  • handled Boolean

    If returned true, no following standard code will be executed


OnAfterLinkElectrDocPreviewLine

local procedure OnAfterLinkElectrDocPreviewLine(var ElectrDocReconBuffer: Record "EOS Inb. EDoc. Recon. Buffer" temporary;var ElectronicDocPreviewLine: Record "EOS Inb. EDoc. Preview Line";var Warning: Boolean)

Runs after posted documents is linked to a Preview line

Parameters / Return Value

  • ElectrDocReconBuffer Record "EOS Inb. EDoc. Recon. Buffer"

    Temp Buffer containing posted documents data to link to preview line

  • ElectronicDocPreviewLine Record "EOS Inb. EDoc. Preview Line"

    Processing Preview line

  • Warning Boolean

    If true, the ElectrDocReconBuffer rating is lower than the limit, meaning that the link has been forced


OnBeforeUnLinkElectrDocPreviewLine

local procedure OnBeforeUnLinkElectrDocPreviewLine(var ElectronicDocPreviewLine: Record "EOS Inb. EDoc. Preview Line"; var handled: Boolean)

Runs before posted documents is unlinked to a Preview line

Parameters / Return Value

  • ElectronicDocPreviewLine Record "EOS Inb. EDoc. Preview Line"

    Processing Preview line

  • handled Boolean

    If returned true, no following standard code will be executed


OnAfterUnLinkElectrDocPreviewLine

local procedure OnAfterUnLinkElectrDocPreviewLine(var ElectronicDocPreviewLine: Record "EOS Inb. EDoc. Preview Line")

Runs before posted documents is unlinked to a Preview line

Parameters / Return Value

  • ElectronicDocPreviewLine Record "EOS Inb. EDoc. Preview Line"

    Processing Preview line


OnBeforeAddElectrDocPreviewLine

local procedure OnBeforeAddElectrDocPreviewLine(ElectrDocReconBuffer: Record "EOS Inb. EDoc. Recon. Buffer" temporary;inElectronicDocPreviewLine: Record "EOS Inb. EDoc. Preview Line";var handled: Boolean)

Runs before posted document line is manually added as Preview line

Parameters / Return Value

  • ElectrDocReconBuffer Record "EOS Inb. EDoc. Recon. Buffer"

    Temp Buffer containig posed documents data to link to preview line

  • inElectronicDocPreviewLine Record "EOS Inb. EDoc. Preview Line"

    Reference Preview line, to get Source entry no. and doc. type

  • handled Boolean

    If returned true, no following standard code will be executed


OnAfterAddElectrDocPreviewLine

local procedure OnAfterAddElectrDocPreviewLine(ElectrDocReconBuffer: Record "EOS Inb. EDoc. Recon. Buffer" temporary;var ElectronicDocPreviewLine: Record "EOS Inb. EDoc. Preview Line")

Runs before posted document line is manually added as Preview line

Parameters / Return Value

  • ElectrDocReconBuffer Record "EOS Inb. EDoc. Recon. Buffer"

    Temp Buffer containig posed documents data to link to preview line

  • ElectronicDocPreviewLine Record "EOS Inb. EDoc. Preview Line"

    Created Preview line


OnBeforeAddBlankElectrDocPreviewLine

local procedure OnBeforeAddBlankElectrDocPreviewLine(SourceDocEntryNo: Integer; var handled: Boolean)

Parameters / Return Value

  • SourceDocEntryNo Integer

  • handled Boolean


OnAfterAddBlankElectrDocPreviewLine

local procedure OnAfterAddBlankElectrDocPreviewLine(SourceDocEntryNo: Integer)

This proceder adds a new blank line for ElectronicDocPreviewHeader, use this event to performe custom code before standard is executed

Parameters / Return Value

  • SourceDocEntryNo Integer

    PK Entry no. of ElectronicDocPreviewHeader


OnBeforeCreateMissingVendor

local procedure OnBeforeCreateMissingVendor(var ElectronicDocPreviewHeader: Record "EOS Inb. EDoc. Preview Header"; var handled: Boolean)

Parameters / Return Value

  • ElectronicDocPreviewHeader Record "EOS Inb. EDoc. Preview Header"

  • handled Boolean


OnAfterCreateMissingVendor

local procedure OnAfterCreateMissingVendor(var ElectronicDocPreviewHeader: Record "EOS Inb. EDoc. Preview Header")

Before vendor creation automated procedure is executed, this event is raised

Parameters / Return Value

  • ElectronicDocPreviewHeader Record "EOS Inb. EDoc. Preview Header"

    Processing Electr. Preview header record


OnBeforeCreateCashEDocumentLine

local procedure OnBeforeCreateCashEDocumentLine(ElectronicDocumentHeader: Record "EOS Inb. EDoc. Preview Header";var NextLineNo: array[20] of Integer;var handled: Boolean)

Parameters / Return Value

  • ElectronicDocumentHeader Record "EOS Inb. EDoc. Preview Header"

  • NextLineNo Integer

  • handled Boolean


OnAfterCreateCashEDocumentLine

local procedure OnAfterCreateCashEDocumentLine(ElectronicDocumentHeader: Record "EOS Inb. EDoc. Preview Header";var NextLineNo: array[20] of Integer)

After system created line for Cash data is inserted, this event is raised

Parameters / Return Value

  • ElectronicDocumentHeader Record "EOS Inb. EDoc. Preview Header"

    Processing Electr. Preview header record

  • NextLineNo Integer

    Array with last line no of preview lines. Index is [“EOS Source Doc. Line Type” + 1]


OnBeforeAddNewTag

local procedure OnBeforeAddNewTag(var XmlBuffer: Record "XML Buffer"; var handled: Boolean)

Before a new XML buffer record is processed and his value stored, this event is raised

Parameters / Return Value

  • XmlBuffer Record "XML Buffer"

    XML buffer containing inbound file data

  • handled Boolean

    No following standard code will be executed


OnBeforeInsertPurchHeader

local procedure OnBeforeInsertPurchHeader(ElectronicDocPreviewHeader: Record "EOS Inb. EDoc. Preview Header"; var PurchaseHeader: Record "Purchase Header")

Raised before a new purchase header is created from a electr. preview. This event is fired before Insert

Parameters / Return Value

  • ElectronicDocPreviewHeader Record "EOS Inb. EDoc. Preview Header"

    Source electr. preview

  • PurchaseHeader Record "Purchase Header"

    New purchase document that will be inserted


OnAddFSForSchedule

local procedure OnAddFSForSchedule(var ProcessGuid: Guid)

Used by bridge extension: Import the xml that are saved to a folder (in case of schedule)

Parameters / Return Value

  • ProcessGuid Guid

OnErrorLoadElectrDocFromXML

local procedure OnErrorLoadElectrDocFromXML(FileName: Text[250]; tempBlob: Codeunit "Temp Blob"; EOSFEInbLotEntryNo: Integer)

Used by bridge extension: Move the xml to the rejected folder

Parameters / Return Value

  • FileName Text[250]

    the file name

  • tempBlob Codeunit "Temp Blob"

    the blob containg the xml

  • EOSFEInbLotEntryNo Integer

    Lot entry no


OnSuccessLoadElectrDocFromXML

local procedure OnSuccessLoadElectrDocFromXML(FileName: Text[250]; tempBlob: Codeunit "Temp Blob"; EOSFEInbLotEntryNo: Integer)

Used by bridge extension: Move the xml to the archived folder

Parameters / Return Value

  • FileName Text[250]

    the file name

  • tempBlob Codeunit "Temp Blob"

    the blob containg the xml

  • EOSFEInbLotEntryNo Integer

    Lot entry no


OnRefuseIncomingHeader

local procedure OnRefuseIncomingHeader(var IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header")

Used by bridge extension: Move the xml to the rejected folder

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

    the record containing the xml


OnRestoreIncomingHeader

local procedure OnRestoreIncomingHeader(var IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header")

Used by bridge extension: Move the file from rejected folder to the archived one

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

    the record containing the xml


OnConvertP7MStream

local procedure OnConvertP7MStream(var is: InStream; var filename: Text[250]; SkipValidation: Boolean; var xml: Codeunit "Temp Blob"; var handled: Boolean)

Used by the Bridge extension to convert with dll the p7m file to xml

Parameters / Return Value

  • is InStream

    the P7M stream

  • filename Text[250]

    File name

  • SkipValidation Boolean

    if true skip the validation

  • xml Codeunit "Temp Blob"

    Blob with the converted xml

  • handled Boolean

    if true avoid the web service that converts p7m to xml


OnBeforeSeekSender

local procedure OnBeforeSeekSender(IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header"; var VendorNo: Code[20]; var MultipleRecFound: Boolean; var IsHandled: Boolean)

Runs before sender data are matched versus existing vendors (EI0005). This event is inside CheckSender routine. Use this if tou want to customize how system try to find a compliant vendor

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

    Header record that is processed for data validation

  • VendorNo Code[20]

    Result vendor no. found. If this parameter is filled, system will associate vendor to the header

  • MultipleRecFound Boolean

    Return value that tells if vendor has not been linked because multiple vendors were compliant or no vendors have been found

  • IsHandled Boolean

    If returned true, no following standard code will be executed


OnAfterSeekSender

local procedure OnAfterSeekSender(IncomingElectrDocHeader: Record "EOS Inb. EDoc. Header"; var VendorNo: Code[20]; var MultipleRecFound: Boolean)

Runs after sender data are matched versus existing vendors (EI0005). This event is inside CheckSender routine. Use this if tou want to customize how system try to find a compliant vendor

Parameters / Return Value

  • IncomingElectrDocHeader Record "EOS Inb. EDoc. Header"

    Header record that is processed for data validation

  • VendorNo Code[20]

    Result vendor no. found. If this parameter is filled, system will associate vendor to the header

  • MultipleRecFound Boolean

    Return value that tells if vendor has not been linked because multiple vendors were compliant or no vendors have been found


OnBeforeGetFilesFromEOSFE

local procedure OnBeforeGetFilesFromEOSFE(var EOSFEInDocumentsLotTMP: Record "EOS IXFE Inb. Document Lot" temporary; var ReturnError: Boolean; var PerformImport: Boolean; var IsHandled: Boolean)

Runs before an Inbound Document is processed to generate an Electr. Document Preview

Parameters / Return Value

  • EOSFEInDocumentsLotTMP Record "EOS IXFE Inb. Document Lot"

    Lot record that is processed for preview creation

  • ReturnError Boolean

    If true, the process will be stopped and the error message will be shown

  • PerformImport Boolean

    If true, the process will be executed

  • IsHandled Boolean

    If returned true, no following standard code will be executed


OnAfterImportFromEOSFEExecution

local procedure OnAfterImportFromEOSFEExecution(LotID: Guid; BatchID: Guid; FileName: Text[150]; ImportedSuccess: Boolean; ErrMsg: Text[250])

Runs after an Inbound Document is processed to generate an Electr. Document Preview

Parameters / Return Value

  • LotID Guid

    Lot ID

  • BatchID Guid

    Batch ID

  • FileName Text[150]

    File name

  • ImportedSuccess Boolean

    If true, the process has been executed successfully

  • ErrMsg Text[250]

    Error message



EOS Labs -