Codeunit 441 Prepayment Mgt.

Base Application, Microsoft.Finance.ReceivablesPayables

Source AL, 547 lines

src/Layers/W1/BaseApp/Finance/ReceivablesPayables/PrepaymentMgt.Codeunit.allines 29 to 44 of 547, Copyright (c) Microsoft Corporation. MIT

codeunit 441 "Prepayment Mgt."{    trigger OnRun()    begin    end;    var        JobQueueEntryHasStartedTxt: Label 'A job for changing the status from Pending Prepayment to Release has started with the frequency %1.', Comment = '%1 - job queue frequency';        StatusOfSalesOrderIsChangedTxt: Label 'The status of the sales order %1 is changed from Pending Prepayment to Release.', Comment = '%1 - sales order no.';        StatusOfPurchaseOrderIsChangedTxt: Label 'The status of the purchase order %1 is changed from Pending Prepayment to Release.', Comment = '%1 - purchase order no.';        UpdateSalesOrderStatusTxt: Label 'Update sales order status.';        UpdatePurchaseOrderStatusTxt: Label 'Update purchase order status.';        PrepaymentAmountHigherThanTheOrderErr: Label 'The Prepayment account is assigned to a VAT product posting group where the VAT percentage is not equal to zero. This can cause posting errors when invoices have mixed VAT lines. To avoid errors, set the VAT percentage to zero for the account.\\Prepayment amount to be posted is %1. It differs from document amount %2 by %3 in related lines. If the difference is related to rounding, please adjust amounts in lines related to prepayments.', Comment = '%1 - prepayment amount; %2 = document amount; %3 = difference amount';        PrepaymentInvoicesNotPaidErr: Label 'You cannot get lines until you have posted all related prepayment invoices to mark the prepayment as paid.';

All 547 lines

Events 11 in 29

[IntegrationEvent] OnBeforeTestSalesPrepayment(SalesHeader: Record "Sales Header"; var TestResult: Boolean; var IsHandled: Boolean)17-29
[IntegrationEvent] OnBeforeTestPurchPrepayment(PurchHeader: Record "Purchase Header"; var TestResult: Boolean; var IsHandled: Boolean)17-29
[IntegrationEvent] OnBeforeTestPurchasePayment(PurchaseHeader: Record "Purchase Header"; var Result: Boolean; var IsHandled: Boolean)17-29
[IntegrationEvent] OnTestSalesPaymentOnBeforeCustLedgerEntrySetFilter(var CustLedgerEntry: Record "Cust. Ledger Entry"; SalesHeader: Record "Sales Header"; SalesInvHeader: Record "Sales Invoice Header")17-29
[IntegrationEvent] OnTestPurchasePaymentOnBeforeVendLedgerEntrySetFilter(var VendLedgerEntry: Record "Vendor Ledger Entry"; PurchaseHeader: Record "Purchase Header"; PurchInvHeader: Record "Purch. Inv. Header")17-29
[IntegrationEvent] OnBeforeSetSalesPrepaymentPct(var SalesLine: Record "Sales Line"; Date: Date; var IsHandled: Boolean)new in 18
[IntegrationEvent] OnBeforeTestSalesOrderLineForGetShptLines(SalesLine: Record "Sales Line"; var IsHandled: Boolean)new in 20

All 12 events in 17-29

Public procedures 14 in 29

AssertPrepmtAmountNotMoreThanDocAmount(DocumentTotalInclVAT: Decimal; PrepmtTotalInclVAT: Decimal; CurrencyCode: Code[10]; InvoiceRoundingSetup: Boolean)17-29
SetSalesPrepaymentPct(var SalesLine: Record "Sales Line"; Date: Date)17-29
SetPurchPrepaymentPct(var PurchLine: Record "Purchase Line"; Date: Date)17-29
TestSalesPrepayment(SalesHeader: Record "Sales Header"): Boolean17-29
TestPurchasePrepayment(PurchaseHeader: Record "Purchase Header"): Boolean17-29
TestSalesPayment(SalesHeader: Record "Sales Header"): Boolean17-29

All 14 procedures

Changes 2 in 28

List17181920212223242526272829
Procedures2
Events1222
[IntegrationEvent] OnBeforeUpdatePendingPrepaymentSales(var SalesHeader: Record "Sales Header")new in 28
added
[IntegrationEvent] OnAfterUpdatePendingPrepaymentSales(var SalesHeader: Record "Sales Header")new in 28
added

All 9 changes in 17-29