Codeunit 442 Sales-Post Prepayments

Base Application, Microsoft.Sales.Posting

Source AL, 2,917 lines

src/Layers/W1/BaseApp/Sales/Posting/SalesPostPrepayments.Codeunit.allines 36 to 51 of 2,917, Copyright (c) Microsoft Corporation. MIT

codeunit 442 "Sales-Post Prepayments"{    Permissions = TableData "Sales Line" = rimd,                  TableData "Sales Invoice Header" = rimd,                  TableData "Sales Invoice Line" = rimd,                  TableData "Sales Cr.Memo Header" = rimd,                  TableData "Sales Cr.Memo Line" = rimd,                  TableData "General Posting Setup" = rimd;    TableNo = "Sales Header";    trigger OnRun()    var        SequenceNoMgt: Codeunit "Sequence No. Mgt.";    begin        SequenceNoMgt.SetPreviewMode(PreviewMode);        Execute(Rec);

All 2,917 lines

Events 75 in 29

[IntegrationEvent] OnAfterApplyFilter(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; DocumentType: Option)17-29
[IntegrationEvent] OnAfterBuildInvLineBuffer(var PrepmtInvLineBuffer: Record "Prepayment Inv. Line Buffer")17-29
[IntegrationEvent] OnAfterCreateLinesOnBeforeGLPosting(var SalesHeader: Record "Sales Header"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var TempPrepmtInvLineBuffer: Record "Prepayment Inv. Line Buffer" temporary; DocumentType: Option; var LastLineNo: Integer)17-29
[IntegrationEvent] OnAfterInsertInvoiceRounding(SalesHeader: Record "Sales Header"; var PrepmtInvLineBuffer: Record "Prepayment Inv. Line Buffer"; var TotalPrepmtInvLineBuf: Record "Prepayment Inv. Line Buffer"; var PrevLineNo: Integer)17-29
[IntegrationEvent] OnAfterPostPrepaymentsOnBeforeThrowPreviewModeError(var SalesHeader: Record "Sales Header"; var SalesInvHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PreviewMode: Boolean)17-29
[IntegrationEvent] OnAfterPostCustomerEntry(var GenJnlLine: Record "Gen. Journal Line"; TotalPrepmtInvLineBuffer: Record "Prepayment Inv. Line Buffer"; TotalPrepmtInvLineBufferLCY: Record "Prepayment Inv. Line Buffer"; CommitIsSuppressed: Boolean)17-29
[IntegrationEvent] OnAfterPostPrepmtInvLineBuffer(var GenJnlLine: Record "Gen. Journal Line"; PrepmtInvLineBuffer: Record "Prepayment Inv. Line Buffer"; CommitIsSuppressed: Boolean; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line")17-29

All 87 events in 17-29

Public procedures 23 in 29

SetDocumentType(DocumentType: Option , ,Invoice,"Credit Memo")17-29
Invoice(var SalesHeader: Record "Sales Header")17-29
CreditMemo(var SalesHeader: Record "Sales Header")17-29
CheckPrepmtDoc(SalesHeader: Record "Sales Header"; DocumentType: Option Invoice,"Credit Memo")17-29
CheckOpenPrepaymentLines(SalesHeader: Record "Sales Header"; DocumentType: Option): Boolean17-29
BuildInvLineBuffer(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; DocumentType: Option Invoice,"Credit Memo",Statistic; var PrepmtInvLineBuf: Record "Prepayment Inv. Line Buffer")17-29

All 23 procedures

Changes 3 in 28

List17181920212223242526272829
Procedures21
Events516122674513
[IntegrationEvent] OnUpdateSalesDocumentOnBeforeFindSetCreditMemoSalesLine(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line")new in 28
added
[IntegrationEvent] OnUpdatePrepmtAmountOnSaleslinesOnAfterSetFilters(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var NewTotalPrepmtAmount: Decimal)new in 28
added
[IntegrationEvent] OnUpdatePrepmtAmountOnSaleslinesOnBeforeModify(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var NewTotalPrepmtAmount: Decimal; var TotalPrepmtAmount: Decimal)new in 28
added

All 64 changes in 17-29