You can extend the edoc D365 BC invoice cockpit functionality with additional external apps. The Edoc Invoice Cockpit Functions code unit is available to a development team to use various events for their apps.
Event "OnAfterCreateVendorGenJournalLine"
[IntegrationEvent(false, false)]
local procedure OnAfterCreateVendorGenJournalLine(var GenJournalLine: Record "Gen. Journal Line"; var EdocICTransferHeadvalue: Record "Edoc Inv. Cp. Transfer Header")
Parameters for "OnAfterCreateVendorGenJournalLine"
|
Name |
Type |
Description |
|---|---|---|
|
GenJournalLine |
Refers to the currently created G/L journal line with the account type with the value for the vendor, based on the record of the Edoc Inv. Cp. Transfer Header table. |
|
|
EdocICTransferHeadvalue |
Table Edoc Inv. Cp. Transfer Header |
Refers to the current record of the table on the basis of which the G/L journal line is created. |
Event "OnAfterCreatePositionGenJournalLine"
[IntegrationEvent(false, false)]
local procedure OnAfterCreatePositionGenJournalLine(var GenJournalLine: Record "Gen. Journal Line"; var EdocICTransferPositionvalue: Record "Edoc Inv. Cp. Transfer Pos.")
Parameters for "OnAfterCreatePositionGenJournalLine"
|
Name |
Type |
Description |
|---|---|---|
|
GenJournalLine |
Refers to the currently created G/L journal line with the account type with the value of the G/L account or asset, based on the record of the Edoc Inv. Cp. Transfer Pos table. |
|
|
EdocICTransferPositionvalue |
Table Edoc Inv. Cp. Transfer Pos. |
Refers to the current record of the table on the basis of which the G/L journal line is created. |
Event "OnAfterCreateGenJournalLineInvoice"
[IntegrationEvent(false, false)]
local procedure OnAfterCreateGenJournalLineInvoice(JournalTemplateName: Code[10]; JournalBatchName: Code[10]; StartLineNo: Integer; EndLineNo: Integer; DoPost: Boolean; EventID: Text[250])
Parameters for "OnAfterCreateGenJournalLineInvoice"
|
Name |
Type |
Description |
|---|---|---|
|
JournalTemplateName |
Code[10] |
Is the journal batch name of the currently created invoice. |
|
JournalBatchName |
Code[10] |
Is the journal template name of the currently created invoice. |
|
StartLineNo |
Integer |
Is the start line number of the currently created invoice. |
|
EndLineNo |
Integer |
Is the end line number of the currently created invoice. |
|
DoPost |
Boolean |
Controls whether the invoice should be posted automatically after creation. |
|
EventID |
Text[250] |
Is the event ID of the record in the Edoc Inv. Cp. Transfer Header table, on the basis of which the invoice (G/L journal lines) was created. |
Event "OnAfterCreatePurchaseInvloiceHeader"
[IntegrationEvent(false, false)]
local procedure OnAfterCreatePurchaseInvloiceHeader(var EdocICTransferHeadvalue: Record "Edoc Inv. Cp. Transfer Header"; var PurchaseHeader: Record "Purchase Header")
Parameters for "OnAfterCreatePurchaseInvloiceHeader"
|
Name |
Type |
Description |
|---|---|---|
|
EdocICTransferHeadvalue |
Table Edoc Inv. Cp. Transfer Header |
Refers to the current record on the basis of which the purchase invoice header was created. |
|
PurchaseHeader |
Refers to the currently created purchase invoice header, which was created based on the record of the Edoc Inv. Cp. Transfer Header table. |
Event "OnAfterCreatePurchaseLineWithoutOrderReference"
[IntegrationEvent(false, false)]
local procedure OnAfterCreatePurchaseLineWithoutOrderReference(var EdocICTransferHeadvalue: Record "Edoc Inv. Cp. Transfer Header"; var EdocICTransferPositionvalue: Record "Edoc Inv. Cp. Transfer Pos."; var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var CommercialInvoiceAsCostInvoice: Boolean)
Parameters for "OnAfterCreatePurchaseLineWithoutOrderReference"
|
Name |
Type |
Description |
|---|---|---|
|
EdocICTransferHeadvalue |
Table Edoc Inv. Cp. Transfer Header |
Refers to the current record on the basis of which the purchase invoice header was created. |
|
EdocICTransferPositionvalue |
Table Edoc Inv. Cp. Transfer Pos. |
Refers to the current record on the basis of which the current purchase invoice line was created. |
|
PurchaseHeader |
Refers to the currently created purchase invoice header, which was created based on the record of the Edoc Inv. Cp. Transfer Header table. |
|
|
PurchaseLine |
Refers to the currently created purchase invoice line, which was created based on the record of the Edoc Inv. Cp. Transfer Pos. table. |
|
|
CommercialInvoiceAsCostInvoice |
Boolean |
Specifies whether an invoice with order reference (invoice for goods) should be treated as an invoice without order reference. |
Event "OnAfterCreatePurchaseLineWithOrderReference"
[IntegrationEvent(false, false)]
local procedure OnAfterCreatePurchaseLineWithOrderReference(var EdocICTransferHeadvalue: Record "Edoc Inv. Cp. Transfer Header"; var EdocICTransferPositionvalue: Record "Edoc Inv. Cp. Transfer Pos."; var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var LineNo: Integer)
Parameters for "OnAfterCreatePurchaseLineWithOrderReference"
|
Name |
Type |
Description |
|---|---|---|
|
EdocICTransferHeadvalue |
Table Edoc Inv. Cp. Transfer Header |
Refers to the record on the basis of which the purchase invoice header was created. |
|
EdocICTransferPositionvalue |
Table Edoc Inv. Cp. Transfer Pos. |
Refers to the record on the basis of which the current purchase invoice line was created. |
|
PurchaseHeader |
Refers to the currently created purchase invoice header, which was created based on the record of the Edoc Inv. Cp. Transfer Header table. |
|
|
PurchaseLine |
Refers to the currently created purchase invoice line, which was created based on the record of the Edoc Inv. Cp. Transfer Pos. table. |
|
|
LineNo |
Integer |
Contains the largest line number of the invoice. |
Event "OnAfterCreatePurchaseInvoice"
[IntegrationEvent(false, false)]
local procedure OnAfterCreatePurchaseInvoice(var edocICTransferHeadvalue: Record "Edoc Inv. Cp. Transfer Header"; var PurchaseHeader: Record "Purchase Header"; DoPost: Boolean)
Parameters for "OnAfterCreatePurchaseInvoice"
|
Name |
Type |
Description |
|---|---|---|
|
EdocICTransferHeadvalue |
Table Edoc Inv. Cp. Transfer Header |
Refers to the record on the basis of which the purchase invoice header was created. |
|
PurchaseHeader |
Refers to the currently created purchase invoice header, which was created based on the record of the Edoc Inv. Cp. Transfer Header table. |
|
|
DoPost |
Boolean |
Controls whether the invoice should be posted automatically after creation. |