Codeunit "Net Cust/Vend Balances Mgt."

ID 108
Namespace: Microsoft.Finance.ReceivablesPayables

Methods

NetCustVendBalances

procedure NetCustVendBalances(var Vendor: Record Vendor, NewNetBalancesParameters: Record "Net Balances Parameters" temporary)

Parameters

Name Type Description
Vendor Table Microsoft.Purchases.Vendor.Vendor
NewNetBalancesParameters Table Microsoft.Finance.ReceivablesPayables."Net Balances Parameters"

SetGenJnlLine

procedure SetGenJnlLine(NewGenJnlLine: Record "Gen. Journal Line")

Parameters

Name Type Description
NewGenJnlLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

Events

OnAfterInitGenJnlLine

[IntegrationEvent(False,False)]
local procedure OnAfterInitGenJnlLine(var GenJnlLine: Record "Gen. Journal Line", VendLedgEntry: Record "Vendor Ledger Entry")

Parameters

Name Type Description
GenJnlLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
VendLedgEntry Table Microsoft.Purchases.Payables."Vendor Ledger Entry"

OnAfterFillGenJnlLineFromCustLedgEntry

[IntegrationEvent(False,False)]
local procedure OnAfterFillGenJnlLineFromCustLedgEntry(var GenJnlLine: Record "Gen. Journal Line", CustLedgEntry: Record "Cust. Ledger Entry")

Parameters

Name Type Description
GenJnlLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
CustLedgEntry Table Microsoft.Sales.Receivables."Cust. Ledger Entry"

OnAfterFillGenJnlLineFromVendLedgEntry

[IntegrationEvent(False,False)]
local procedure OnAfterFillGenJnlLineFromVendLedgEntry(var GenJnlLine: Record "Gen. Journal Line", VendLedgEntry: Record "Vendor Ledger Entry")

Parameters

Name Type Description
GenJnlLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
VendLedgEntry Table Microsoft.Purchases.Payables."Vendor Ledger Entry"

OnCalcPartNetAmountAfterSetDocumentType

[IntegrationEvent(False,False)]
local procedure OnCalcPartNetAmountAfterSetDocumentType(var VendorLedgerEntry: Record "Vendor Ledger Entry", var CustLedgerEntry: Record "Cust. Ledger Entry", var VendNetAmount: Decimal, var CustNetAmount: Decimal, DocType: Enum "Gen. Journal Document Type", var IsHandled: Boolean)

Parameters

Name Type Description
VendorLedgerEntry Table Microsoft.Purchases.Payables."Vendor Ledger Entry"
CustLedgerEntry Table Microsoft.Sales.Receivables."Cust. Ledger Entry"
VendNetAmount Decimal
CustNetAmount Decimal
DocType Enum Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Document Type"
IsHandled Boolean

OnFillGenJnlLineFromCustledgEntryBeforeValidateAmount

[IntegrationEvent(False,False)]
local procedure OnFillGenJnlLineFromCustledgEntryBeforeValidateAmount(var CustLedgerEntry: Record "Cust. Ledger Entry")

Parameters

Name Type Description
CustLedgerEntry Table Microsoft.Sales.Receivables."Cust. Ledger Entry"

OnFillGenJnlLineFromVendLedgEntryBeforeValidateAmount

[IntegrationEvent(False,False)]
local procedure OnFillGenJnlLineFromVendLedgEntryBeforeValidateAmount(var VendorLedgerEntry: Record "Vendor Ledger Entry")

Parameters

Name Type Description
VendorLedgerEntry Table Microsoft.Purchases.Payables."Vendor Ledger Entry"

OnNetBalancesBeforeSetCustomerRemainingAmount

[IntegrationEvent(False,False)]
local procedure OnNetBalancesBeforeSetCustomerRemainingAmount(var CustLedgerEntry: Record "Cust. Ledger Entry")

Parameters

Name Type Description
CustLedgerEntry Table Microsoft.Sales.Receivables."Cust. Ledger Entry"

OnNetBalancesBeforeSetVendorRemainingAmount

[IntegrationEvent(False,False)]
local procedure OnNetBalancesBeforeSetVendorRemainingAmount(var VendorLedgerEntry: Record "Vendor Ledger Entry")

Parameters

Name Type Description
VendorLedgerEntry Table Microsoft.Purchases.Payables."Vendor Ledger Entry"

OnSumCustomerRemainingAmountBeforeCalcResult

[IntegrationEvent(False,False)]
local procedure OnSumCustomerRemainingAmountBeforeCalcResult(var CustLedgerEntry: Record "Cust. Ledger Entry", var Result: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
CustLedgerEntry Table Microsoft.Sales.Receivables."Cust. Ledger Entry"
Result Decimal
IsHandled Boolean

OnSumVendorRemainingAmountBeforeCalcResult

[IntegrationEvent(False,False)]
local procedure OnSumVendorRemainingAmountBeforeCalcResult(var VendorLedgerEntry: Record "Vendor Ledger Entry", var Result: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
VendorLedgerEntry Table Microsoft.Purchases.Payables."Vendor Ledger Entry"
Result Decimal
IsHandled Boolean

See also