Codeunit "Prepayment Mgt."

ID 441
Namespace: Microsoft.Finance.ReceivablesPayables

Methods

AssertPrepmtAmountNotMoreThanDocAmount

procedure AssertPrepmtAmountNotMoreThanDocAmount(DocumentTotalInclVAT: Decimal, PrepmtTotalInclVAT: Decimal, CurrencyCode: Code[10], InvoiceRoundingSetup: Boolean)

Parameters

Name Type Description
DocumentTotalInclVAT Decimal
PrepmtTotalInclVAT Decimal
CurrencyCode Code[10]
InvoiceRoundingSetup Boolean

SetSalesPrepaymentPct

procedure SetSalesPrepaymentPct(var SalesLine: Record "Sales Line", Date: Date)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
Date Date

SetPurchPrepaymentPct

procedure SetPurchPrepaymentPct(var PurchLine: Record "Purchase Line", Date: Date)

Parameters

Name Type Description
PurchLine Table Microsoft.Purchases.Document."Purchase Line"
Date Date

TestSalesPrepayment

procedure TestSalesPrepayment(SalesHeader: Record "Sales Header"): Boolean

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"

Returns

Type Description
Boolean

TestPurchasePrepayment

procedure TestPurchasePrepayment(PurchaseHeader: Record "Purchase Header"): Boolean

Parameters

Name Type Description
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"

Returns

Type Description
Boolean

TestSalesOrderLineForGetShptLines

procedure TestSalesOrderLineForGetShptLines(SalesLine: Record "Sales Line")

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"

TestPurchaseOrderLineForGetRcptLines

procedure TestPurchaseOrderLineForGetRcptLines(PurchaseLine: Record "Purchase Line")

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

TestSalesPayment

procedure TestSalesPayment(SalesHeader: Record "Sales Header"): Boolean

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"

Returns

Type Description
Boolean

TestPurchasePayment

procedure TestPurchasePayment(PurchaseHeader: Record "Purchase Header"): Boolean

Parameters

Name Type Description
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"

Returns

Type Description
Boolean

UpdatePendingPrepaymentSales

procedure UpdatePendingPrepaymentSales()

UpdatePendingPrepaymentPurchase

procedure UpdatePendingPrepaymentPurchase()

CreateAndStartJobQueueEntrySales

procedure CreateAndStartJobQueueEntrySales(UpdateFrequency: Option)

Parameters

Name Type Description
UpdateFrequency Option

CreateAndStartJobQueueEntryPurchase

procedure CreateAndStartJobQueueEntryPurchase(UpdateFrequency: Option)

Parameters

Name Type Description
UpdateFrequency Option

CreateAndStartJobQueueEntry

procedure CreateAndStartJobQueueEntry(CodeunitID: Integer, UpdateFrequency: Option, Category: Text)

Parameters

Name Type Description
CodeunitID Integer
UpdateFrequency Option
Category Text

Events

OnBeforeTestSalesPrepayment

[IntegrationEvent(False,False)]
local procedure OnBeforeTestSalesPrepayment(SalesHeader: Record "Sales Header", var TestResult: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
TestResult Boolean
IsHandled Boolean

OnBeforeTestPurchPrepayment

[IntegrationEvent(False,False)]
local procedure OnBeforeTestPurchPrepayment(PurchHeader: Record "Purchase Header", var TestResult: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
PurchHeader Table Microsoft.Purchases.Document."Purchase Header"
TestResult Boolean
IsHandled Boolean

OnBeforeTestSalesPayment

[IntegrationEvent(False,False)]
local procedure OnBeforeTestSalesPayment(var SalesHeader: Record "Sales Header", var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
Result Boolean
IsHandled Boolean

OnBeforeTestPurchasePayment

[IntegrationEvent(False,False)]
local procedure OnBeforeTestPurchasePayment(PurchaseHeader: Record "Purchase Header", var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"
Result Boolean
IsHandled Boolean

OnTestSalesPaymentOnBeforeCustLedgerEntrySetFilter

[IntegrationEvent(False,False)]
local procedure OnTestSalesPaymentOnBeforeCustLedgerEntrySetFilter(var CustLedgerEntry: Record "Cust. Ledger Entry", SalesHeader: Record "Sales Header", SalesInvHeader: Record "Sales Invoice Header")

Parameters

Name Type Description
CustLedgerEntry Table Microsoft.Sales.Receivables."Cust. Ledger Entry"
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesInvHeader Table Microsoft.Sales.History."Sales Invoice Header"

OnTestPurchasePaymentOnBeforeVendLedgerEntrySetFilter

[IntegrationEvent(False,False)]
local procedure OnTestPurchasePaymentOnBeforeVendLedgerEntrySetFilter(var VendLedgerEntry: Record "Vendor Ledger Entry", PurchaseHeader: Record "Purchase Header", PurchInvHeader: Record "Purch. Inv. Header")

Parameters

Name Type Description
VendLedgerEntry Table Microsoft.Purchases.Payables."Vendor Ledger Entry"
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"
PurchInvHeader Table Microsoft.Purchases.History."Purch. Inv. Header"

OnBeforeSetSalesPrepaymentPct

[IntegrationEvent(False,False)]
local procedure OnBeforeSetSalesPrepaymentPct(var SalesLine: Record "Sales Line", Date: Date, var IsHandled: Boolean)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
Date Date
IsHandled Boolean

OnBeforeTestSalesOrderLineForGetShptLines

[IntegrationEvent(False,False)]
local procedure OnBeforeTestSalesOrderLineForGetShptLines(SalesLine: Record "Sales Line", var IsHandled: Boolean)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
IsHandled Boolean

OnBeforeTestPurchaseOrderLineForGetRcptLines

[IntegrationEvent(False,False)]
local procedure OnBeforeTestPurchaseOrderLineForGetRcptLines(PurchaseLine: Record "Purchase Line", var IsHandled: Boolean)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
IsHandled Boolean

See also