diff --git a/src/Layers/APAC/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al b/src/Layers/APAC/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al index a4a3c192cda..6144dbc038b 100644 --- a/src/Layers/APAC/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al +++ b/src/Layers/APAC/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al @@ -257,6 +257,8 @@ codeunit 11 "Gen. Jnl.-Check Line" exit; GenJournalLine.TestField("Document No.", ErrorInfo.Create()); + + OnAfterTestDocumentNo(GenJournalLine); end; local procedure TestAccountAndBalAccountType(var GenJnlLine: Record "Gen. Journal Line") @@ -1563,6 +1565,15 @@ codeunit 11 "Gen. Jnl.-Check Line" begin end; + /// + /// Integration event raised after validating document number field requirements for journal lines. + /// + /// Journal line record being validated for document number requirements. + [IntegrationEvent(false, false)] + local procedure OnAfterTestDocumentNo(GenJournalLine: Record "Gen. Journal Line") + begin + end; + /// /// Integration event raised before validating document number field requirements for journal lines. /// Enables custom logic to completely override standard document number validation processing. diff --git a/src/Layers/APAC/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al b/src/Layers/APAC/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al index f5f7594b160..b40efd1cbe2 100644 --- a/src/Layers/APAC/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al +++ b/src/Layers/APAC/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al @@ -1,4 +1,4 @@ -// ------------------------------------------------------------------------------------------------ +// ------------------------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // ------------------------------------------------------------------------------------------------ @@ -864,7 +864,7 @@ codeunit 12 "Gen. Jnl.-Post Line" VATEntry."Sett. Unrealised Base (FCY)" := GenJnlLine."Source Curr. VAT Base Amount"; VATEntry.Adjustment := GenJnlLine.Adjustment; SetBASFields(VATEntry, GenJnlLine."BAS Doc. No.", GenJnlLine."BAS Version", GenJnlLine."BAS Adjustment"); - OnInsertVATOnAfterAssignVATEntryFields(GenJnlLine, VATEntry, CurrExchRate); + OnInsertVATOnAfterAssignVATEntryFields(GenJnlLine, VATEntry, CurrExchRate, VATPostingSetup); GenJnlLine."BAS Adjustment" := false; if GenJnlLine."VAT Difference" = 0 then @@ -12210,7 +12210,7 @@ codeunit 12 "Gen. Jnl.-Post Line" end; [IntegrationEvent(false, false)] - local procedure OnInsertVATOnAfterAssignVATEntryFields(GenJnlLine: Record "Gen. Journal Line"; var VATEntry: Record "VAT Entry"; CurrExchRate: Record "Currency Exchange Rate") + local procedure OnInsertVATOnAfterAssignVATEntryFields(var GenJnlLine: Record "Gen. Journal Line"; var VATEntry: Record "VAT Entry"; CurrExchRate: Record "Currency Exchange Rate"; var VATPostingSetup: Record "VAT Posting Setup") begin end; diff --git a/src/Layers/APAC/BaseApp/Purchases/Payables/VendEntryApplyPostedEntries.Codeunit.al b/src/Layers/APAC/BaseApp/Purchases/Payables/VendEntryApplyPostedEntries.Codeunit.al index 75f95cb2429..6875f01d34c 100644 --- a/src/Layers/APAC/BaseApp/Purchases/Payables/VendEntryApplyPostedEntries.Codeunit.al +++ b/src/Layers/APAC/BaseApp/Purchases/Payables/VendEntryApplyPostedEntries.Codeunit.al @@ -386,6 +386,8 @@ codeunit 227 "VendEntry-Apply Posted Entries" CheckAdditionalCurrency(ApplyUnapplyParameters."Posting Date", DtldVendLedgEntry."Posting Date"); AddCurrChecked := true; end; + CheckInitialDocumentType( + DtldVendLedgEntry, ApplyUnapplyParameters."Document No.", ApplyUnapplyParameters."Posting Date"); CheckReversal(DtldVendLedgEntry."Vendor Ledger Entry No."); if DtldVendLedgEntry."Transaction No." <> 0 then CheckUnappliedEntries(DtldVendLedgEntry); @@ -442,6 +444,18 @@ codeunit 227 "VendEntry-Apply Posted Entries" ExchRateAdjmtRunHandler.RunVendExchRateAdjustment(GenJnlLine, TempVendorLedgerEntry); end; + local procedure CheckInitialDocumentType(var DtldVendLedgEntry: Record "Detailed Vendor Ledg. Entry"; DocNo: Code[20]; PostingDate: Date) + var + IsHandled: Boolean; + begin + IsHandled := false; + OnBeforeCheckInitialDocumentType(DtldVendLedgEntry, DocNo, PostingDate, IsHandled); + if IsHandled then + exit; + + OnAfterCheckInitialDocumentType(DtldVEndLedgEntry); + end; + local procedure CheckPostingDate(ApplyUnapplyParameters: Record "Apply Unapply Parameters"; var MaxPostingDate: Date) var GenJnlCheckLine: Codeunit "Gen. Jnl.-Check Line"; @@ -843,6 +857,27 @@ codeunit 227 "VendEntry-Apply Posted Entries" begin end; + /// + /// Raised after checking initial document Type + /// + /// The detailed vendor ledger entry. + [IntegrationEvent(false, false)] + local procedure OnAfterCheckInitialDocumentType(var DtldVendLedgEntry: Record "Detailed Vendor Ledg. Entry") + begin + end; + + /// + /// Raised before checking initial document Type + /// + /// The detailed vendor ledger entry. + /// The document number. + /// The posting date. + /// Indicates whether the event is handled. + [IntegrationEvent(false, false)] + local procedure OnBeforeCheckInitialDocumentType(var DtldVendLedgEntry: Record "Detailed Vendor Ledg. Entry"; DocNo: Code[20]; PostingDate: Date; var IsHandled: Boolean) + begin + end; + [IntegrationEvent(false, false)] local procedure OnPostUnApplyVendorCommitOnBeforeFilterDtldVendLedgEntry(DetailedVendorLedgEntry2: Record "Detailed Vendor Ledg. Entry"; ApplyUnapplyParameters: Record "Apply Unapply Parameters") begin diff --git a/src/Layers/APAC/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al b/src/Layers/APAC/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al index aefe31f4f1c..7a63355d2c7 100644 --- a/src/Layers/APAC/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al +++ b/src/Layers/APAC/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al @@ -19,6 +19,7 @@ using Microsoft.FixedAssets.FixedAsset; using Microsoft.Foundation.Attachment; using Microsoft.Foundation.AuditCodes; using Microsoft.Foundation.NoSeries; +using Microsoft.Foundation.PaymentTerms; using Microsoft.Intercompany.Partner; using Microsoft.Purchases.History; using Microsoft.Purchases.Remittance; @@ -582,6 +583,13 @@ table 25 "Vendor Ledger Entry" { Caption = 'Prepayment'; } + field(91; "Payment Terms Code"; Code[10]) + { + Caption = 'Payment Terms Code'; + Editable = false; + TableRelation = "Payment Terms"; + ToolTip = 'Specifies the payment terms that determine the due date and payment discount date for the entry.'; + } field(95; "G/L Register No."; Integer) { Caption = 'G/L Register No.'; @@ -1049,6 +1057,22 @@ table 25 "Vendor Ledger Entry" exit(''); end; + procedure SetAppliesToDocFilters(var GenJnlLine: Record "Gen. Journal Line") + begin + SetRange("Document Type", GenJnlLine."Applies-to Doc. Type"); + SetRange("Document No.", GenJnlLine."Applies-to Doc. No."); + + OnAfterSetAppliesToDocFilters(Rec, GenJnlLine); + end; + + procedure ClearDocumentFilters() + begin + SetRange("Document Type"); + SetRange("Document No."); + + OnAfterClearDocumentFilters(Rec); + end; + procedure CopyFromGenJnlLine(GenJnlLine: Record "Gen. Journal Line") begin "Vendor No." := GenJnlLine."Account No."; @@ -1090,6 +1114,7 @@ table 25 "Vendor Ledger Entry" "Creditor No." := GenJnlLine."Creditor No."; "Payment Reference" := GenJnlLine."Payment Reference"; "Payment Method Code" := GenJnlLine."Payment Method Code"; + "Payment Terms Code" := GenJnlLine."Payment Terms Code"; "Exported to Payment File" := GenJnlLine."Exported to Payment File"; Adjustment := GenJnlLine.Adjustment; "BAS Adjustment" := GenJnlLine."BAS Adjustment"; @@ -1332,5 +1357,15 @@ table 25 "Vendor Ledger Entry" local procedure OnBeforeUpdateAmountsForApplication(var VendorLedgerEntry: Record "Vendor Ledger Entry"; ApplnDate: Date; ApplnCurrencyCode: Code[10]; RoundAmounts: Boolean; UpdateMaxPaymentTolerance: Boolean; var IsHandled: Boolean) begin end; + + [IntegrationEvent(false, false)] + local procedure OnAfterSetAppliesToDocFilters(var Rec: Record "Vendor Ledger Entry"; var GenJnlLine: Record "Gen. Journal Line") + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnAfterClearDocumentFilters(var Rec: Record "Vendor Ledger Entry") + begin + end; } diff --git a/src/Layers/APAC/BaseApp/Purchases/Posting/PurchPost.Codeunit.al b/src/Layers/APAC/BaseApp/Purchases/Posting/PurchPost.Codeunit.al index 10cd9282081..22fde2efe41 100644 --- a/src/Layers/APAC/BaseApp/Purchases/Posting/PurchPost.Codeunit.al +++ b/src/Layers/APAC/BaseApp/Purchases/Posting/PurchPost.Codeunit.al @@ -187,10 +187,7 @@ codeunit 90 "Purch.-Post" /// The purchase header of the document that is being posted. /// Accumulates drop-shipment buffer records during posting. /// Set to false during posting if any line is partially invoiced. - local procedure ProcessPosting( - var PurchHeader: Record "Purchase Header"; - var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; - var EverythingInvoiced: Boolean) + local procedure ProcessPosting(var PurchHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var EverythingInvoiced: Boolean) var IgnoreCommit: Boolean; begin @@ -331,6 +328,10 @@ codeunit 90 "Purch.-Post" OnRunOnBeforeMakeInventoryAdjustment(PurchHeader, GenJnlPostLine, ItemJnlPostLine, PreviewMode, PurchRcptHeader, PurchInvHeader, IsHandled); if not IsHandled then MakeInventoryAdjustment(); + + Clear(GenJnlPostLine); + + OnAfterProcessPostingLines(PurchHeader, TotalPurchLine, VendLedgEntry, InvoicePostingParameters, SuppressCommit, EverythingInvoiced, Window); end; var @@ -860,6 +861,7 @@ codeunit 90 "Purch.-Post" begin if not DocumentIsReadyToBeChecked then PrepareCheckDocument(PurchHeader); + ErrorMessageMgt.PushContext(ErrorContextElement, PurchHeader.RecordId, 0, CheckPurchHeaderMsg); CheckMandatoryHeaderFields(PurchHeader); GetGLSetup(); @@ -4190,6 +4192,8 @@ codeunit 90 "Purch.-Post" if PurchaseHeader."Pay-to Contact No." <> '' then if Contact.Get(PurchaseHeader."Pay-to Contact No.") then Contact.CheckIfPrivacyBlocked(true); + + OnAfterCheckPostRestrictions(PurchaseHeader); end; local procedure CheckFAPostingPossibility(PurchaseHeader: Record "Purchase Header") @@ -9450,169 +9454,404 @@ codeunit 90 "Purch.-Post" ItemsToAdjust.Add(Item2."No."); end; + /// + /// Event raised by OnArchiveSalesOrdersOnBeforeSalesOrderLineModify. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnArchiveSalesOrdersOnBeforeSalesOrderLineModify(var SalesOrderLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnAfterBlanketOrderPurchLineModify. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnAfterBlanketOrderPurchLineModify(var BlanketOrderPurchLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnAfterCheckPurchDoc. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the ErrorMessageMgt parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckPurchDoc(var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; WhseShip: Boolean; WhseReceive: Boolean; PreviewMode: Boolean; var ErrorMessageMgt: Codeunit "Error Message Management") begin end; + /// + /// Event raised by OnAfterCheckAndUpdate. + /// + /// + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckAndUpdate(var PurchaseHeader: Record "Purchase Header"; CommitIsSuppressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterCheckTrackingSpecification. + /// + /// + /// Specifies the TempItemPurchaseLine parameter. [IntegrationEvent(true, false)] local procedure OnAfterCheckTrackingSpecification(PurchaseHeader: Record "Purchase Header"; var TempItemPurchaseLine: Record "Purchase Line" temporary); begin end; + /// + /// Event raised by OnAfterCheckTrackingAndWarehouseForReceive. + /// + /// + /// Specifies the Receive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckTrackingAndWarehouseForReceive(var PurchaseHeader: Record "Purchase Header"; var Receive: Boolean; CommitIsSupressed: Boolean; var TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterCheckTrackingAndWarehouseForShip. + /// + /// + /// Specifies the Ship parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchaseLine parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckTrackingAndWarehouseForShip(var PurchaseHeader: Record "Purchase Header"; var Ship: Boolean; CommitIsSupressed: Boolean; var TempPurchaseLine: Record "Purchase Line" temporary; var TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary) begin end; + /// + /// Event raised by OnAfterCreateJobPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCreateJobPurchLine(var JobPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterCreateWhseJnlLine. + /// + /// + /// Specifies the TempWhseJnlLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCreateWhseJnlLine(PurchaseLine: Record "Purchase Line"; var TempWhseJnlLine: record "Warehouse Journal Line" temporary) begin end; + /// + /// Event raised by OnAfterDeleteAfterPosting. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterDeleteAfterPosting(PurchHeader: Record "Purchase Header"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterDeleteApprovalEntries. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchRcptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterDeleteApprovalEntries(var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; PurchRcptHeader: Record "Purch. Rcpt. Header") begin end; + /// + /// Event raised by OnAfterDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. [IntegrationEvent(false, false)] local procedure OnAfterDivideAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping; PurchLineQty: Decimal; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary) begin end; + /// + /// Event raised by OnAfterGetAmountRoundingPrecisionInLCY. + /// + /// + /// Specifies the DocNo parameter. + /// Specifies the CurrencyCode parameter. + /// Specifies the AmountRoundingPrecision parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetAmountRoundingPrecisionInLCY(DocType: Enum "Purchase Document Type"; DocNo: Code[20]; CurrencyCode: Code[10]; var AmountRoundingPrecision: Decimal) begin end; + /// + /// Event raised by OnAfterGetLineDataFromOrder. + /// + /// + /// Specifies the PurchOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetLineDataFromOrder(var PurchLine: Record "Purchase Line"; PurchOrderLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterGetPurchSetup. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterGetPurchSetup(var PurchSetup: Record "Purchases & Payables Setup") begin end; + /// + /// Event raised by OnAfterModifyTempLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterModifyTempLine(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostPurchaseDoc. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PurchRcpHdrNo parameter. + /// Specifies the RetShptHdrNo parameter. + /// Specifies the PurchInvHdrNo parameter. + /// Specifies the PurchCrMemoHdrNo parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] procedure OnAfterPostPurchaseDoc(var PurchaseHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PurchRcpHdrNo: Code[20]; RetShptHdrNo: Code[20]; PurchInvHdrNo: Code[20]; PurchCrMemoHdrNo: Code[20]; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterPostPurchaseDocDropShipment. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostPurchaseDocDropShipment(SalesShptNo: Code[20]; CommitIsSupressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterRetrieveInvoiceTrackingSpecificationIfExists. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. [IntegrationEvent(false, false)] local procedure OnAfterRetrieveInvoiceTrackingSpecificationIfExists(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TrackingSpecificationExists: Boolean) begin end; + /// + /// Event raised by OnAfterUpdatePostingNos. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePostingNos(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; PreviewMode: Boolean; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnAfterCheckMandatoryFields. + /// + /// + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckMandatoryFields(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterFinalizePosting. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterFinalizePosting(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShptHeader: Record "Return Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PreviewMode: Boolean; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterFinalizePostingOnBeforeCommit. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnAfterFinalizePostingOnBeforeCommit(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShptHeader: Record "Return Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PreviewMode: Boolean; CommitIsSupressed: Boolean; EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnAfterIncrAmount. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterIncrAmount(var TotalPurchLine: Record "Purchase Line"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterInitAssocItemJnlLine. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the QtyToBeShipped parameter. [IntegrationEvent(false, false)] local procedure OnAfterInitAssocItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; PurchaseHeader: Record "Purchase Header"; QtyToBeShipped: Decimal) begin end; + /// + /// Event raised by OnAfterInsertCombinedSalesShipment. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterInsertCombinedSalesShipment(var SalesShipmentHeader: Record "Sales Shipment Header") begin end; + /// + /// Event raised by OnAfterInsertPostedHeaders. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchSetup parameter. + /// Specifies the Window parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertPostedHeaders(var PurchaseHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShptHeader: Record "Return Shipment Header"; var PurchSetup: Record "Purchases & Payables Setup"; var Window: Dialog) begin end; + /// + /// Event raised by OnAfterInsertReceiptHeader. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertReceiptHeader(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var TempWhseRcptHeader: Record "Warehouse Receipt Header" temporary; WhseReceive: Boolean; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnAfterInsertReturnShipmentHeader. + /// + /// + /// Specifies the ReturnShptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertReturnShipmentHeader(var PurchHeader: Record "Purchase Header"; var ReturnShptHeader: Record "Return Shipment Header") begin end; + /// + /// Event raised by OnAfterInvoiceRoundingAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TotalPurchaseLine parameter. + /// Specifies the UseTempData parameter. + /// Specifies the InvoiceRoundingAmount parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the RoundingLineNo parameter. [IntegrationEvent(false, false)] local procedure OnAfterInvoiceRoundingAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TotalPurchaseLine: Record "Purchase Line"; UseTempData: Boolean; InvoiceRoundingAmount: Decimal; CommitIsSuppressed: Boolean; RoundingLineInserted: Boolean; RoundingLineNo: Integer) begin end; + /// + /// Event raised by OnAfterInsertedPrepmtVATBaseToDeduct. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PrepmtLineNo parameter. + /// Specifies the TotalPrepmtAmtToDeduct parameter. + /// Specifies the TempPrepmtDeductLCYPurchLine parameter. + /// Specifies the PrepmtVATBaseToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertedPrepmtVATBaseToDeduct(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; PrepmtLineNo: Integer; TotalPrepmtAmtToDeduct: Decimal; var TempPrepmtDeductLCYPurchLine: Record "Purchase Line" temporary; var PrepmtVATBaseToDeduct: Decimal) begin end; + /// + /// Event raised by OnAfterPostAssocItemJnlLine. + /// + /// + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the SalesLineOrder parameter. + /// Specifies the SalesOrderHeader parameter. + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostAssocItemJnlLine(var ItemJnlLine: Record "Item Journal Line"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var SalesLineOrder: Record "Sales Line"; var SalesOrderHeader: Record "Sales Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAfterPostCombineSalesOrderShipment. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostCombineSalesOrderShipment(var PurchaseHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin @@ -9625,275 +9864,680 @@ codeunit 90 "Purch.-Post" end; [Obsolete('Moved to codeunit MfgPurchPost', '27.0')] + /// + /// Event raised by OnAfterPostItemJnlLineCopyProdOrder. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLineCopyProdOrder(var ItemJnlLine: Record "Item Journal Line"; PurchLine: Record "Purchase Line"; PurchRcptHeader: Record "Purch. Rcpt. Header"; QtyToBeReceived: Decimal; CommitIsSupressed: Boolean; QtyToBeInvoiced: Decimal) begin end; #endif + /// + /// Event raised by OnAfterPostItemJnlLineItemCharges. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLineItemCharges(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerOrder. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerOrder(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemTrackingLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemTrackingLine(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnAfterPostUpdateCreditMemoLine. + /// + /// [IntegrationEvent(true, false)] local procedure OnAfterPostUpdateCreditMemoLine(var PurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPostUpdateInvoiceLine. + /// + /// [IntegrationEvent(true, false)] local procedure OnAfterPostUpdateInvoiceLine(var PurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPurchRcptHeaderInsert. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchRcptHeaderInsert(var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterPurchRcptLineInsert. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchRcptLineInsert(PurchaseLine: Record "Purchase Line"; var PurchRcptLine: Record "Purch. Rcpt. Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; PurchInvHeader: Record "Purch. Inv. Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; PurchRcptHeader: Record "Purch. Rcpt. Header"; TempWhseRcptHeader: Record "Warehouse Receipt Header"; xPurchLine: Record "Purchase Line"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPurchInvHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchInvHeaderInsert(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterPurchInvLineInsert. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchInvLineInsert(var PurchInvLine: Record "Purch. Inv. Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; PurchHeader: Record "Purchase Header"; PurchRcptHeader: Record "Purch. Rcpt. Header"; TempWhseRcptHeader: Record "Warehouse Receipt Header"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnAfterPurchCrMemoHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchCrMemoHeaderInsert(var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterPurchCrMemoLineInsert. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchCrMemoLineInsert(var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var PurchaseHeader: Record "Purchase Header"; GenJnlLineDocNo: Code[20]; RoundingLineInserted: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnAfterReturnShptHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterReturnShptHeaderInsert(var ReturnShptHeader: Record "Return Shipment Header"; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterReturnShptLineInsert. + /// + /// + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempWhseShptHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the xPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterReturnShptLineInsert(var ReturnShptLine: Record "Return Shipment Line"; ReturnShptHeader: Record "Return Shipment Header"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; var TempWhseShptHeader: Record "Warehouse Shipment Header" temporary; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; xPurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterRevertWarehouseEntry. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterRevertWarehouseEntry(var TempWhseJnlLine: Record "Warehouse Journal Line" temporary) begin end; + /// + /// Event raised by OnAfterSalesShptHeaderInsert. + /// + /// + /// Specifies the SalesOrderHeader parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterSalesShptHeaderInsert(var SalesShipmentHeader: Record "Sales Shipment Header"; SalesOrderHeader: Record "Sales Header"; CommitIsSuppressed: Boolean; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterSalesShptLineInsert. + /// + /// + /// Specifies the SalesShptHeader parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the DropShptPostBuffer parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnAfterSalesShptLineInsert(var SalesShptLine: Record "Sales Shipment Line"; SalesShptHeader: Record "Sales Shipment Header"; SalesOrderLine: Record "Sales Line"; CommitIsSuppressed: Boolean; DropShptPostBuffer: Record "Drop Shpt. Post. Buffer"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPostAccICLine. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostAccICLine(PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnAfterPostItemLine. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(true, false)] local procedure OnAfterPostItemLine(PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; PurchaseHeader: Record "Purchase Header"; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnAfterPostItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the WhseJnlRegisterLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseRcptHeader parameter. + /// Specifies the WhseShptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var WhseJnlRegisterLine: Codeunit "Whse. Jnl.-Register Line"; var WhseReceive: Boolean; var WhseShip: Boolean; var WhseRcptHeader: Record "Warehouse Receipt Header"; var WhseShptHeader: Record "Warehouse Shipment Header") begin end; + /// + /// Event raised by OnAfterPostWhseJnlLine. + /// + /// + /// Specifies the ItemLedgEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostWhseJnlLine(var PurchaseLine: Record "Purchase Line"; ItemLedgEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterPostUpdateOrderLine. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostUpdateOrderLine(var PurchaseLine: Record "Purchase Line"; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterPostInvoice. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the VendorLedgerEntry parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostInvoice(var PurchHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; TotalPurchLine: Record "Purchase Line"; TotalPurchLineLCY: Record "Purchase Line"; CommitIsSupressed: Boolean; var VendorLedgerEntry: Record "Vendor Ledger Entry") begin end; + /// + /// Event raised by OnAfterPostPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchInvLine parameter. + /// Specifies the PurchCrMemoLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLineACY parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostPurchLine(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var PurchInvLine: Record "Purch. Inv. Line"; var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchLineACY: Record "Purchase Line"; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; SrcCode: Code[10]; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterProcessPurchLines. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the PurchLinesProcessed parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnAfterProcessPurchLines(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShipmentHeader: Record "Return Shipment Header"; WhseShip: Boolean; WhseReceive: Boolean; var PurchLinesProcessed: Boolean; CommitIsSuppressed: Boolean; EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnAfterProcessAssocItemJnlLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnAfterProcessAssocItemJnlLine(var PurchLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnAfterReleasePurchDoc. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterReleasePurchDoc(var PurchHeader: Record "Purchase Header"); begin end; + /// + /// Event raised by OnAfterRefreshTempLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterRefreshTempLines(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterResetTempLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterResetTempLines(var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterRestorePurchaseHeader. + /// + /// + /// Specifies the PurchaseHeaderCopy parameter. [IntegrationEvent(false, false)] local procedure OnAfterRestorePurchaseHeader(var PurchaseHeader: Record "Purchase Header"; PurchaseHeaderCopy: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterReverseAmount. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterReverseAmount(var PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterRoundAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchLineQty parameter. [IntegrationEvent(false, false)] local procedure OnAfterRoundAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchLineQty: Decimal) begin end; + /// + /// Event raised by OnAfterSaveTempWhseSplitSpec. + /// + /// + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnAfterSaveTempWhseSplitSpec(PurchaseLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAfterSetPostingFlags. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterSetPostingFlags(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterTestPurchLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(false, false)] local procedure OnAfterTestPurchLine(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateInvoicedQtyOnPurchRcptLine. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoicedQtyOnPurchRcptLine(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchRcptLine: Record "Purch. Rcpt. Line"; var PurchaseLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; TrackingSpecificationExists: Boolean; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; var PurchaseHeader: Record "Purchase Header"; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateInvoicedQtyOnReturnShptLine. + /// + /// + /// Specifies the ReturnShipmentLine parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoicedQtyOnReturnShptLine(PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShipmentLine: Record "Return Shipment Line"; PurchaseLine: Record "Purchase Line"; TempTrackingSpecification: Record "Tracking Specification" temporary; TrackingSpecificationExists: Boolean; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnAfterUpdateLastPostingNos. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterUpdateLastPostingNos(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterUpdatePurchLineBeforePost. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the RoundingLineInserted parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePurchLineBeforePost(var PurchaseLine: Record "Purchase Line"; WhseShip: Boolean; WhseReceive: Boolean; PurchaseHeader: Record "Purchase Header"; RoundingLineInserted: Boolean) begin end; + /// + /// Event raised by OnAfterUpdatePrepmtPurchLineWithRounding. + /// + /// + /// Specifies the TotalRoundingAmount parameter. + /// Specifies the TotalPrepmtAmount parameter. + /// Specifies the FinalInvoice parameter. + /// Specifies the PricesInclVATRoundingAmount parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePrepmtPurchLineWithRounding(var PrepmtPurchLine: Record "Purchase Line"; TotalRoundingAmount: array[2] of Decimal; TotalPrepmtAmount: array[2] of Decimal; FinalInvoice: Boolean; PricesInclVATRoundingAmount: array[2] of Decimal; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterUpdatePurchaseHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePurchaseHeader(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; GenJnlLineDocType: Integer; GenJnlLineDocNo: Code[20]; PreviewMode: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterUpdatePurchLineDimSetIDFromAppliedEntry. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePurchLineDimSetIDFromAppliedEntry(var PurchLineToPost: Record "Purchase Line"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterValidatePostingAndDocumentDate. + /// + /// + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterValidatePostingAndDocumentDate(var PurchaseHeader: Record "Purchase Header"; CommitIsSuppressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnBeforeAddAssociatedOrderLineToBuffer. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAddAssociatedOrderLineToBuffer(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeModifyTempLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeModifyTempLine(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnModifyTempLineOnBeforeTransferFields. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnBeforeTransferFields(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeAdjustQuantityRoundingForReceipt. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustQuantityRoundingForReceipt(PurchRcptLine: Record "Purch. Rcpt. Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeArchiveUnpostedOrder. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the OrderArchived parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeArchiveUnpostedOrder(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; var OrderArchived: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnBeforeArchiveSalesOrders. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeArchiveSalesOrders(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeBlanketOrderPurchLineModify. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnBeforeBlanketOrderPurchLineModify(var BlanketOrderPurchLine: Record "Purchase Line"; PurchLine: Record "Purchase Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcInvoice. + /// + /// + /// Specifies the NewInvoice parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcInvoice(var PurchHeader: Record "Purchase Header"; var NewInvoice: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalculateAmountsInclVAT. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalculateAmountsInclVAT(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalculateInvoiceEverything. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the InvoiceEverything parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalculateInvoiceEverything(var TempPurchaseLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; var InvoiceEverything: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcLineAmountAndLineDiscountAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Currency parameter. [IntegrationEvent(true, false)] local procedure OnBeforeCalcLineAmountAndLineDiscountAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; PurchLineQty: Decimal; var IsHandled: Boolean; Currency: Record Currency) begin @@ -9901,163 +10545,379 @@ codeunit 90 "Purch.-Post" #if not CLEAN28 [Obsolete('This event is no longer used.', '28.0')] + /// + /// Event raised by OnBeforeCheckDropShipmentReceiveInvoice. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforeCheckDropShipmentReceiveInvoice(PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; #endif + /// + /// Event raised by OnBeforeCheckDocumentTotalAmounts. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforeCheckDocumentTotalAmounts(PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckExternalDocumentNumber. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the Handled parameter. + /// Specifies the DocType parameter. + /// Specifies the ExtDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckExternalDocumentNumber(VendorLedgerEntry: Record "Vendor Ledger Entry"; PurchaseHeader: Record "Purchase Header"; var Handled: Boolean; DocType: Option; ExtDocNo: Text[35]; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeCheckExtDocNo. + /// + /// + /// Specifies the DocumentType parameter. + /// Specifies the ExtDocNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckExtDocNo(PurchaseHeader: Record "Purchase Header"; DocumentType: Enum "Gen. Journal Document Type"; ExtDocNo: Text[35]; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckGLAccDirectPosting. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckGLAccDirectPosting(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckICDocumentDuplicatePosting. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckICDocumentDuplicatePosting(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckIfInvPutawayExists. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckIfInvPutawayExists(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckHeaderPostingType. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckHeaderPostingType(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckFieldsOnReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckFieldsOnReturnShipmentLine(var ReturnShipmentLine: Record "Return Shipment Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterCheckFieldsOnReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckFieldsOnReturnShipmentLine(ReturnShipmentLine: Record "Return Shipment Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeCheckPrepmtAmtToDeduct. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPrepmtAmtToDeduct(PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckPurchRcptLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckTrackingSpecification. + /// + /// + /// Specifies the TempItemPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckTrackingSpecification(PurchHeader: Record "Purchase Header"; var TempItemPurchLine: Record "Purchase Line" temporary); begin end; + /// + /// Event raised by OnBeforeCheckTrackingAndWarehouseForShip. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the Ship parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckTrackingAndWarehouseForShip(PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var Ship: Boolean; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeCheckWarehouse. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckWarehouse(var TempItemPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckWhseRcptLineQtyToReceive. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckWhseRcptLineQtyToReceive(var WhseRcptLine: Record "Warehouse Receipt Line"; var PurchRcptLine: Record "Purch. Rcpt. Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeClearRemAmt. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlRollRndg parameter. + /// Specifies the RemAmt parameter. + /// Specifies the RemDiscAmt parameter. [IntegrationEvent(false, false)] local procedure OnBeforeClearRemAmt(PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; ItemJnlRollRndg: Boolean; var RemAmt: Decimal; var RemDiscAmt: Decimal) begin end; + /// + /// Event raised by OnBeforeCreatePositiveEntry. + /// + /// + /// Specifies the JobNo parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePositiveEntry(var WarehouseJournalLine: Record "Warehouse Journal Line"; JobNo: Code[20]; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCreatePostedWhseRcptHeader. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedWhseRcptHeader(var PostedWhseReceiptHeader: Record "Posted Whse. Receipt Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeCreatePostedWhseShptHeader. + /// + /// + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedWhseShptHeader(var PostedWhseShipmentHeader: Record "Posted Whse. Shipment Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeCreatePostedWhseShptLine. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedWhseShptLine(PurchLine: Record "Purchase Line"; ReturnShptLine: Record "Return Shipment Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCreatePostedRcptLine. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedRcptLine(PurchLine: Record "Purchase Line"; ReturnShptLine: Record "Return Shipment Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCreateWhseLineFromReturnShptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreateWhseLineFromReturnShptLine(var ReturnShptLine: Record "Return Shipment Line"; PurchLine: Record "Purchase Line"; CostBaseAmount: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCommitAndUpdateAnalysisVeiw. + /// + /// + /// Specifies the SuppressCommit parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCommitAndUpdateAnalysisVeiw(InvtPickPutaway: Boolean; SuppressCommit: Boolean; PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCopyAndCheckItemChargeTempPurchLine. + /// + /// + /// Specifies the TempPrepmtPurchaseLine parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the IsHandled parameter. + /// Specifies the AssignError parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCopyAndCheckItemChargeTempPurchLine(PurchaseHeader: Record "Purchase Header"; var TempPrepmtPurchaseLine: Record "Purchase Line" temporary; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean; var AssignError: Boolean) begin end; + /// + /// Event raised by OnBeforeCreatePrepmtLines. + /// + /// + /// Specifies the TempPrepmtPurchaseLine parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePrepmtLines(PurchaseHeader: Record "Purchase Header"; var TempPrepmtPurchaseLine: Record "Purchase Line" temporary; CompleteFunctionality: Boolean; var IsHandled: Boolean; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeDeleteAfterPosting. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the SkipDelete parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDeleteAfterPosting(var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var SkipDelete: Boolean; CommitIsSupressed: Boolean; var TempPurchLine: Record "Purchase Line" temporary; var TempPurchLineGlobal: Record "Purchase Line" temporary; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnBeforeDeleteApprovalEntries. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDeleteApprovalEntries(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnBeforeDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDivideAmount(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping; var PurchLineQty: Decimal; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeFinalizePosting. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeFinalizePosting(var PurchaseHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var EverythingInvoiced: Boolean; CommitIsSupressed: Boolean; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnBeforeGetInvoicePostingSetup. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetInvoicePostingSetup(var InvoicePostingInterface: Interface "Invoice Posting"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInitAssocItemJnlLine. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInitAssocItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; PurchaseHeader: Record "Purchase Header") begin @@ -10065,97 +10925,265 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforeInvoiceRoundingAmount. + /// + /// + /// Specifies the TotalAmountIncludingVAT parameter. + /// Specifies the UseTempData parameter. + /// Specifies the InvoiceRoundingAmount parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInvoiceRoundingAmount(PurchHeader: Record "Purchase Header"; TotalAmountIncludingVAT: Decimal; UseTempData: Boolean; var InvoiceRoundingAmount: Decimal; CommitIsSupressed: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeInsertICGenJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ICGenJnlLineNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertICGenJnlLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var ICGenJnlLineNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertPostedHeaders. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertPostedHeaders(var PurchaseHeader: Record "Purchase Header"; var WarehouseReceiptHeader: Record "Warehouse Receipt Header"; var WarehouseShipmentHeader: Record "Warehouse Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertRcptEntryRelation. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the TempTrackingSpecificationInv parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertRcptEntryRelation(PurchaseLine: Record "Purchase Line"; var PurchRcptLine: Record "Purch. Rcpt. Line"; var TempHandlingSpecification: Record "Tracking Specification" temporary; TempTrackingSpecificationInv: Record "Tracking Specification" temporary; ItemLedgShptEntryNo: Integer; var Result: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertReceiptHeader. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReceiptHeader(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var IsHandled: Boolean; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertReceiptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReceiptLine(var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchLine: Record "Purchase Line"; var CostBaseAmount: Decimal; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeInsertReturnShipmentLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReturnShipmentLine(var ReturnShptHeader: Record "Return Shipment Header"; var PurchLine: Record "Purchase Line"; var CostBaseAmount: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertTrackingSpecification(PurchHeader: Record "Purchase Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeItemJnlPostLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. + /// Specifies the WhseReceiptHeader parameter. + /// Specifies the WhseShipmentHeader parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. [IntegrationEvent(true, false)] local procedure OnBeforeItemJnlPostLine(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; var IsHandled: Boolean; WhseReceiptHeader: Record "Warehouse Receipt Header"; WhseShipmentHeader: Record "Warehouse Shipment Header"; TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnBeforeIsEndLoopForShippedNotInvoiced. + /// + /// + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the ReturnShptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the PurchLine parameter. + /// Specifies the EndLoop parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeIsEndLoopForShippedNotInvoiced(RemQtyToBeInvoiced: Decimal; TrackingSpecificationExists: Boolean; var ReturnShptLine: Record "Return Shipment Line"; var InvoicingTrackingSpecification: Record "Tracking Specification"; PurchLine: Record "Purchase Line"; var EndLoop: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeIsEndLoopForReceivedNotInvoiced. + /// + /// + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PurchRcptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the PurchLine parameter. + /// Specifies the EndLoop parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeIsEndLoopForReceivedNotInvoiced(RemQtyToBeInvoiced: Decimal; TrackingSpecificationExists: Boolean; var PurchRcptLine: Record "Purch. Rcpt. Line"; var InvoicingTrackingSpecification: Record "Tracking Specification"; PurchLine: Record "Purchase Line"; var EndLoop: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeGetPurchRcptLineFromTrackingOrUpdateItemEntryRelation. + /// + /// + /// Specifies the TrackingSpecification parameter. + /// Specifies the ItemEntryRelation parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetPurchRcptLineFromTrackingOrUpdateItemEntryRelation(var PurchRcptLine: Record "Purch. Rcpt. Line"; var TrackingSpecification: Record "Tracking Specification"; var ItemEntryRelation: Record "Item Entry Relation"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeGetPurchLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeGetPurchLines(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeLockTables. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempPurchaseLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnBeforeLockTables(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSuppressed: Boolean; var IsHandled: Boolean; var TempPurchaseLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforePostLines. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostLines(var PurchLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSupressed: Boolean; var TempPurchLineGlobal: Record "Purchase Line" temporary; var TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary) begin end; + /// + /// Event raised by OnBeforePostDistributeItemCharge. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemLedgerEntry parameter. + /// Specifies the NonDistrQuantity parameter. + /// Specifies the NonDistrQtyToAssign parameter. + /// Specifies the NonDistrAmountToAssign parameter. + /// Specifies the Sign parameter. + /// Specifies the IndirectCostPct parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostDistributeItemCharge(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var TempItemLedgerEntry: Record "Item Ledger Entry"; NonDistrQuantity: Decimal; NonDistrQtyToAssign: Decimal; NonDistrAmountToAssign: Decimal; Sign: Decimal; IndirectCostPct: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostInvoice. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Window parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the InvoicePostingInterface parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostInvoice(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSupressed: Boolean; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var IsHandled: Boolean; var Window: Dialog; HideProgressWindow: Boolean; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line"; var InvoicePostingInterface: Interface "Invoice Posting"; var InvoicePostingParameters: Record "Invoice Posting Parameters"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnBeforePostGLAccICLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ICGenJnlLineNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostGLAccICLine(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ICGenJnlLineNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerSalesShpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerSalesShpt(var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin @@ -10168,98 +11196,245 @@ codeunit 90 "Purch.-Post" end; [Obsolete('Moved to codeunit MfgPurchPost', '27.0')] + /// + /// Event raised by OnBeforePostItemJnlLineCopyProdOrder. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemJnlLineCopyProdOrder(PurchLine: Record "Purchase Line"; var ItemJnlLine: Record "Item Journal Line"; QtyToBeReceived: Decimal; QtyToBeInvoiced: Decimal; CommitIsSupressed: Boolean; var IsHandled: Boolean) begin end; #endif + /// + /// Event raised by OnBeforePostPurchaseDoc. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostPurchaseDoc(var PurchaseHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSupressed: Boolean; var HideProgressWindow: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostCommitPurchaseDoc. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostCommitPurchaseDoc(var PurchaseHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PreviewMode: Boolean; var ModifyHeader: Boolean; var CommitIsSupressed: Boolean; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeProcessAssocItemJnlLine. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the SourceCode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeProcessAssocItemJnlLine(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary; ItemLedgShptEntryNo: Integer; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; SourceCode: Code[10]) begin end; + /// + /// Event raised by OnBeforePrepareCheckDocument. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforePrepareCheckDocument(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforePurchLineDeleteAll. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchLineDeleteAll(var PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforePurchRcptHeaderInsert. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchRcptHeaderInsert(var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseReceive: Boolean; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseShip: Boolean) begin end; + /// + /// Event raised by OnBeforePurchRcptLineInsert. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PostedWhseRcptLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemLedgShptEntryNo parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchRcptLineInsert(var PurchRcptLine: Record "Purch. Rcpt. Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean; PostedWhseRcptLine: Record "Posted Whse. Receipt Line"; var IsHandled: Boolean; ItemLedgShptEntryNo: Integer) begin end; + /// + /// Event raised by OnBeforePurchInvHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchInvHeaderInsert(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnBeforePurchInvLineInsert. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchInvLineInsert(var PurchInvLine: Record "Purch. Inv. Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePurchCrMemoHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchCrMemoHeaderInsert(var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnBeforePurchCrMemoLineInsert. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchCrMemoLineInsert(var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeReleasePurchDoc. + /// + /// + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeReleasePurchDoc(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean); begin end; + /// + /// Event raised by OnBeforeReturnShptHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(false, false)] local procedure OnBeforeReturnShptHeaderInsert(var ReturnShptHeader: Record "Return Shipment Header"; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseReceive: Boolean; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseShip: Boolean) begin end; + /// + /// Event raised by OnBeforeReturnShptLineInsert. + /// + /// + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeReturnShptLineInsert(var ReturnShptLine: Record "Return Shipment Line"; var ReturnShptHeader: Record "Return Shipment Header"; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnBeforeRoundAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchLineQty parameter. [IntegrationEvent(false, false)] local procedure OnBeforeRoundAmount(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchLineQty: Decimal) begin end; + /// + /// Event raised by OnBeforeSalesShptHeaderInsert. + /// + /// + /// Specifies the SalesOrderHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSalesShptHeaderInsert(var SalesShptHeader: Record "Sales Shipment Header"; SalesOrderHeader: Record "Sales Header"; CommitIsSupressed: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeSalesShptLineInsert. + /// + /// + /// Specifies the SalesShptHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the DropShptPostBuffer parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSalesShptLineInsert(var SalesShptLine: Record "Sales Shipment Line"; SalesShptHeader: Record "Sales Shipment Header"; SalesLine: Record "Sales Line"; CommitIsSupressed: Boolean; DropShptPostBuffer: Record "Drop Shpt. Post. Buffer"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSetCheckApplToItemEntry. + /// + /// + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSetCheckApplToItemEntry(var PurchaseLine: Record "Purchase Line"; var Result: Boolean; var IsHandled: Boolean; PurchaseHeader: Record "Purchase Header"; ItemJournalLine: Record "Item Journal Line") begin @@ -10267,6 +11442,17 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforePostCombineSalesOrderShipment. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostCombineSalesOrderShipment(var PurchaseHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesShipmentHeader: Record "Sales Shipment Header"; var ItemLedgShptEntryNo: Integer; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempHandlingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean) begin @@ -10274,241 +11460,616 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforePostItemJnlLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeReceivedBase parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the ItemChargeNo parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the Result parameter. + /// Specifies the WarehouseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLine(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var QtyToBeReceived: Decimal; var QtyToBeReceivedBase: Decimal; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; var ItemLedgShptEntryNo: Integer; var ItemChargeNo: Code[20]; var TrackingSpecification: Record "Tracking Specification"; CommitIsSupressed: Boolean; var IsHandled: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var Result: Integer; var WarehouseReceiptHeader: Record "Warehouse Receipt Header") begin end; + /// + /// Event raised by OnBeforePostItemJnlLineItemCharges. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLineItemCharges(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostAssocItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostAssocItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var SalesLine: Record "Sales Line"; CommitIsSupressed: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePostItemChargePerOrder. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the ItemChargePurchLine parameter. + /// Specifies the TempTrackingSpecificationChargeAssmt parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerOrder(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ItemJnlLine2: Record "Item Journal Line"; var ItemChargePurchLine: Record "Purchase Line"; var TempTrackingSpecificationChargeAssmt: Record "Tracking Specification" temporary; CommitIsSupressed: Boolean; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargeLineProcedure. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargeLineProcedure(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemLine(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; PurchRcptHeader: Record "Purch. Rcpt. Header"; var RemQtyToBeInvoiced: Decimal; var TempPurchLineGlobal: Record "Purchase Line" temporary; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var RemQtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemJnlLineJobConsumption. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the SourceCode parameter. + /// Specifies the PostJobConsumptionBeforePurch parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemJnlLineJobConsumption(var ItemJournalLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; SourceCode: Code[10]; var PostJobConsumptionBeforePurch: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTracking. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PreciseTotalChargeAmt parameter. + /// Specifies the PreciseTotalChargeAmtACY parameter. + /// Specifies the RoundedPrevTotalChargeAmt parameter. + /// Specifies the RoundedPrevTotalChargeAmtACY parameter. + /// Specifies the IsHandled parameter. + /// Specifies the RemQtyToBeInvoiced parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemTracking(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TrackingSpecificationExists: Boolean; var PreciseTotalChargeAmt: Decimal; var PreciseTotalChargeAmtACY: Decimal; var RoundedPrevTotalChargeAmt: Decimal; var RoundedPrevTotalChargeAmtACY: Decimal; var IsHandled: Boolean; RemQtyToBeInvoiced: Decimal) begin end; + /// + /// Event raised by OnBeforePostItemTrackingCheckReceipt. + /// + /// + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingCheckReceipt(PurchaseLine: Record "Purchase Line"; RemQtyToBeInvoiced: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingCheckShipment. + /// + /// + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingCheckShipment(PurchaseLine: Record "Purchase Line"; RemQtyToBeInvoiced: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForReceiptCondition. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the Condition parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForReceiptCondition(PurchaseLine: Record "Purchase Line"; PurchRcptLine: Record "Purch. Rcpt. Line"; var Condition: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingItemChargePerOrder. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the TempTrackingSpecificationChargeAssmtCorrect parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingItemChargePerOrder(var TempTrackingSpecificationChargeAssmt: Record "Tracking Specification" temporary; var IsHandled: Boolean; var ItemJnlLine2: Record "Item Journal Line"; var TempTrackingSpecificationChargeAssmtCorrect: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnBeforePostItemTrackingLineOnPostPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemTrackingLineOnPostPurchLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; TempTrackingSpecification: Record "Tracking Specification" temporary; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForShipmentCondition. + /// + /// + /// Specifies the ReturnShipmentLine parameter. + /// Specifies the Condition parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForShipmentCondition(PurchaseLine: Record "Purchase Line"; ReturnShipmentLine: Record "Return Shipment Line"; var Condition: Boolean) begin end; + /// + /// Event raised by OnBeforePostResourceLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the JobPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostResourceLine(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; SrcCode: Code[10]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocNo: Code[20]; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; JobPurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePostUpdateOrderLine. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PurchSetup parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateOrderLine(PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; CommitIsSuppressed: Boolean; PurchSetup: Record "Purchases & Payables Setup") begin end; + /// + /// Event raised by OnBeforePostUpdateOrderLineModifyTempLine. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateOrderLineModifyTempLine(var TempPurchaseLine: Record "Purchase Line" temporary; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSuppressed: Boolean; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeRevertWarehouseEntry. + /// + /// + /// Specifies the JobNo parameter. + /// Specifies the PostJobConsumption parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeRevertWarehouseEntry(var WarehouseJournalLine: Record "Warehouse Journal Line"; JobNo: Code[20]; PostJobConsumption: Boolean; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSendICDocument. + /// + /// + /// Specifies the ModifyHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSendICDocument(var PurchHeader: Record "Purchase Header"; var ModifyHeader: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSumPurchLines2. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the VATAmountLine parameter. + /// Specifies the InsertPurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforeSumPurchLines2(QtyType: Option; var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var VATAmountLine: Record "VAT Amount Line"; InsertPurchLine: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSumPurchLinesTemp. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeSumPurchLinesTemp(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeTempDropShptPostBufferInsert. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTempDropShptPostBufferInsert(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; PurchaseLine: Record "Purchase Line"; var ItemLedgShptEntryNo: Integer) begin end; + /// + /// Event raised by OnBeforeTempPrepmtPurchLineInsert. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTempPrepmtPurchLineInsert(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var TempPurchLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnBeforeTempPrepmtPurchLineModify. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTempPrepmtPurchLineModify(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var TempPurchLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnBeforeTransferReservToItemJnlLine. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the PurchLine parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the ApplySpecificItemTracking parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTransferReservToItemJnlLine(var SalesOrderLine: Record "Sales Line"; var ItemJnlLine: Record "Item Journal Line"; PurchLine: Record "Purchase Line"; QtyToBeShippedBase: Decimal; var ApplySpecificItemTracking: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateAssocOrder. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(true, false)] local procedure OnBeforeUpdateAssocOrder(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var IsHandled: Boolean; SuppressCommit: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the Receive parameter. + /// Specifies the Ship parameter. + /// Specifies the Invoice parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateBlanketOrderLine(PurchLine: Record "Purchase Line"; Receive: Boolean; Ship: Boolean; Invoice: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePostingNos. + /// + /// + /// Specifies the ModifyHeader parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the IsHandled parameter. + /// Specifies the DateOrderSeriesUsed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePostingNos(var PurchHeader: Record "Purchase Header"; var ModifyHeader: Boolean; SuppressCommit: Boolean; var IsHandled: Boolean; var DateOrderSeriesUsed: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePurchaseHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePurchaseHeader(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; GenJnlLineDocType: Option; var IsHandled: Boolean; var PurchaseHeader: Record "Purchase Header"; GenJnlLineDocNo: Code[20]; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePurchLineBeforePost. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePurchLineBeforePost(var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; WhseShip: Boolean; WhseReceive: Boolean; RoundingLineInserted: Boolean; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateInvoicedQtyOnPurchRcptLine. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateInvoicedQtyOnPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; CommitIsSupressed: Boolean; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeUpdatePrepmtPurchLineWithRounding. + /// + /// + /// Specifies the TotalRoundingAmount parameter. + /// Specifies the TotalPrepmtAmount parameter. + /// Specifies the FinalInvoice parameter. + /// Specifies the PricesInclVATRoundingAmount parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePrepmtPurchLineWithRounding(var PrepmtPurchLine: Record "Purchase Line"; TotalRoundingAmount: array[2] of Decimal; TotalPrepmtAmount: array[2] of Decimal; FinalInvoice: Boolean; PricesInclVATRoundingAmount: array[2] of Decimal; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeUpdateQtyToInvoiceForOrder. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToInvoiceForOrder(var PurchHeader: Record "Purchase Header"; TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateQtyToInvoiceForReturnOrder. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToInvoiceForReturnOrder(var PurchHeader: Record "Purchase Header"; TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateQtyToBeInvoicedForReceipt. + /// + /// + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToBeInvoicedForReceipt(var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; PurchLine: Record "Purchase Line"; PurchRcptLine: Record "Purch. Rcpt. Line"; InvoicingTrackingSpecification: Record "Tracking Specification"; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateQtyToBeInvoicedForReturnShipment. + /// + /// + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ReturnShipmentLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToBeInvoicedForReturnShipment(var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; PurchLine: Record "Purchase Line"; ReturnShipmentLine: Record "Return Shipment Line"; InvoicingTrackingSpecification: Record "Tracking Specification"; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateJobConsumptionReservationApplToItemEntry. + /// + /// + /// Specifies the ItemJournalLine parameter. + /// Specifies the IsNonInventoriableItem parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateJobConsumptionReservationApplToItemEntry(var TempReservEntryJobCons: Record "Reservation Entry" temporary; var ItemJournalLine: Record "Item Journal Line"; IsNonInventoriableItem: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLine. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLine(var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineFixedAsset. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineFixedAsset(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineItemCharge. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineItemCharge(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineJob. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineJob(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineOthers. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineOthers(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestStatusRelease. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestStatusRelease(PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateItemChargeAssgnt. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateItemChargeAssgnt(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateHandledICInboxTransaction. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateHandledICInboxTransaction(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeValidatePostingAndDocumentDate. + /// + /// + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeValidatePostingAndDocumentDate(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnSetPostingDateExists. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PostingDateExists parameter. + /// Specifies the ReplacePostingDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnSetPostingDateExists(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; var PostingDateExists: Boolean; var ReplacePostingDate: Boolean; var PostingDate: Date; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeWhseHandlingRequired. + /// + /// + /// Specifies the Required parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeWhseHandlingRequired(PurchaseLine: Record "Purchase Line"; var Required: Boolean; var IsHandled: Boolean) begin @@ -10516,62 +12077,140 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforeGetCountryCode. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the CountryRegionCode parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetCountryCode(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var CountryRegionCode: Code[10]; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeShouldPostWhseJnlLine. + /// + /// + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlLine parameter. + /// Specifies the TempWhseJnlLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeShouldPostWhseJnlLine(PurchLine: Record "Purchase Line"; var Result: Boolean; var IsHandled: Boolean; var ItemJnlLine: Record "Item Journal Line"; var TempWhseJnlLine: Record "Warehouse Journal Line" temporary; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnCalcInvDiscountSetFilter. + /// + /// + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvDiscountSetFilter(var PurchLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterClearPostingFromWhseRef. + /// + /// + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterClearPostingFromWhseRef(var PurchHeader: Record "Purchase Header"; var InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetPostingFlags. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetPostingFlags(var PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary); begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeSetPostingFlags. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeSetPostingFlags(var PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetSourceCode. + /// + /// + /// Specifies the SourceCodeSetup parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetSourceCode(var PurchHeader: Record "Purchase Header"; SourceCodeSetup: Record "Source Code Setup"; var SrcCode: Code[10]); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterArchiveUnpostedOrder. + /// + /// + /// Specifies the Currency parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterArchiveUnpostedOrder(var PurchHeader: Record "Purchase Header"; Currency: Record "Currency"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCalcInvDiscount. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the RefreshNeeded parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCalcInvDiscount(var PurchaseHeader: Record "Purchase Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseReceive: Boolean; WhseShip: Boolean; var RefreshNeeded: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateAssocOrderPostingDateOnBeforeValidateDocumentDate. + /// + /// + /// Specifies the OriginalDocumentDate parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateAssocOrderPostingDateOnBeforeValidateDocumentDate(var SalesHeader: Record "Sales Header"; var OriginalDocumentDate: Date) begin end; + /// + /// Event raised by OnCheckAssociatedOrderLinesOnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssociatedOrderLinesOnAfterSetFilters(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnCheckAssociatedOrderLinesOnAfterCheckDimensions. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssociatedOrderLinesOnAfterCheckDimensions(PurchaseHeader: Record "Purchase Header"; SalesHeader: Record "Sales Header"; var PurchaseLine: Record "Purchase Line"; TempSalesLine: Record "Sales Line" temporary) begin @@ -10579,72 +12218,146 @@ codeunit 90 "Purch.-Post" #if not CLEAN28 [Obsolete('This event is no longer used.', '28.0')] + /// + /// Event raised by OnCheckAssocOrderLinesOnBeforeCheckOrderLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssocOrderLinesOnBeforeCheckOrderLine(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; #endif + /// + /// Event raised by OnCheckExternalDocumentNumberOnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnCheckExternalDocumentNumberOnAfterSetFilters(var VendLedgEntry: Record "Vendor Ledger Entry"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForShipOnAfterTempPurchLineSetFilters. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForShipOnAfterTempPurchLineSetFilters(PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForReceiveOnAfterTempPurchLineSetFilters. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForReceiveOnAfterTempPurchLineSetFilters(PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCheckWarehouseOnAfterSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnCheckWarehouseOnAfterSetFilters(var TempItemPurchLine: Record "Purchase Line"); begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeLoop. + /// + /// + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeLoop(var TempPurchLine: Record "Purchase Line" temporary; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeCheckIfEmpty. + /// + /// [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeCheckIfEmpty(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCopyToTempLinesOnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnCopyToTempLinesOnAfterSetFilters(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterInitTempPrepmtPurchLineFromPurchHeader. + /// + /// [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterInitTempPrepmtPurchLineFromPurchHeader(var TempPrepmtPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterTempPurchLineSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterTempPurchLineSetFilters(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterTempPrepmtPurchLineSetFilters. + /// + /// + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterTempPrepmtPurchLineSetFilters(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnDivideAmountOnAfterClearAmounts. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterClearAmounts(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var PurchLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnAfterCalcLineAmountAndLineDiscountAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterCalcLineAmountAndLineDiscountAmount(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchaseLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineRemainderModify. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineRemainderModify(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency) begin @@ -10655,227 +12368,589 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnGetItemChargeLineOnAfterGet. + /// + /// + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnGetItemChargeLineOnAfterGet(var ItemChargePurchLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnGetPurchLinesOnAfterFillTempLines. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnGetPurchLinesOnAfterFillTempLines(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyType: Option; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnInsertICGenJnlLineOnAfterCopyDocumentFields. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempICGenJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertICGenJnlLineOnAfterCopyDocumentFields(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var TempICGenJournalLine: Record "Gen. Journal Line") begin end; + /// + /// Event raised by OnInsertAssocOrderChargeOnBeforeInsert. + /// + /// + /// Specifies the NewItemChargeAssignmentPurch parameter. [IntegrationEvent(false, false)] local procedure OnInsertAssocOrderChargeOnBeforeInsert(TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)"; var NewItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)") begin end; + /// + /// Event raised by OnInsertICGenJnlLineOnBeforeICGenJnlLineInsert. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnInsertICGenJnlLineOnBeforeICGenJnlLineInsert(var TempICGenJournalLine: Record "Gen. Journal Line" temporary; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnInsertReceiptLineOnAfterGetWhseRcptLine. + /// + /// + /// Specifies the PurchRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterGetWhseRcptLine(var WhseRcptLine: Record "Warehouse Receipt Line"; PurchRcptLine: Record "Purch. Rcpt. Line") begin end; + /// + /// Event raised by OnInsertReceiptLineOnAfterInitPurchRcptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the PostedWhseRcptHeader parameter. + /// Specifies the WhseRcptHeader parameter. + /// Specifies the WhseRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterInitPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; xPurchLine: Record "Purchase Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var CostBaseAmount: Decimal; PostedWhseRcptHeader: Record "Posted Whse. Receipt Header"; WhseRcptHeader: Record "Warehouse Receipt Header"; var WhseRcptLine: Record "Warehouse Receipt Line") begin end; + /// + /// Event raised by OnInsertReceiptLineOnAfterCalcShouldGetWhseRcptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PostedWhseRcptHeader parameter. + /// Specifies the WhseRcptHeader parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ShouldGetWhseRcptLine parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the PurchRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterCalcShouldGetWhseRcptLine(PurchRcptHeader: Record "Purch. Rcpt. Header"; PurchLine: Record "Purchase Line"; PostedWhseRcptHeader: Record "Posted Whse. Receipt Header"; WhseRcptHeader: Record "Warehouse Receipt Header"; CostBaseAmount: Decimal; WhseReceive: Boolean; WhseShip: Boolean; var ShouldGetWhseRcptLine: Boolean; xPurchLine: Record "Purchase Line"; var PurchRcptLine: Record "Purch. Rcpt. Line") begin end; + /// + /// Event raised by OnInsertReceiptLineOnAfterCalcShouldGetWhseShptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PostedWhseShptHeader parameter. + /// Specifies the WhseShptHeader parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ShouldGetWhseShptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterCalcShouldGetWhseShptLine(PurchRcptHeader: Record "Purch. Rcpt. Header"; PurchLine: Record "Purchase Line"; PostedWhseShptHeader: Record "Posted Whse. Shipment Header"; WhseShptHeader: Record "Warehouse Shipment Header"; CostBaseAmount: Decimal; WhseReceive: Boolean; WhseShip: Boolean; var ShouldGetWhseShptLine: Boolean) begin end; + /// + /// Event raised by OnInsertReturnShipmentLineOnAfterGetWhseShptLine. + /// + /// + /// Specifies the ReturnShptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReturnShipmentLineOnAfterGetWhseShptLine(var WhseShptLine: Record "Warehouse Shipment Line"; ReturnShptLine: Record "Return Shipment Line") begin end; + /// + /// Event raised by OnInsertReturnShipmentLineOnAfterReturnShptLineInit. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the PurchLine parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnInsertReturnShipmentLineOnAfterReturnShptLineInit(var ReturnShptHeader: Record "Return Shipment Header"; var ReturnShptLine: Record "Return Shipment Line"; var PurchLine: Record "Purchase Line"; var xPurchLine: Record "Purchase Line"; var CostBaseAmount: Decimal; WhseShip: Boolean; WhseReceive: Boolean); begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforePost. + /// + /// + /// Specifies the SalesOrderLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforePost(var ItemJournalLine: Record "Item Journal Line"; SalesOrderLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnAfterUpdateBlanketOrderLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the SalesOrderHeader parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the SrcCode parameter. + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnAfterUpdateBlanketOrderLine(var PurchaseHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer"; var SalesOrderLine: Record "Sales Line"; var SalesOrderHeader: record "Sales Header"; var SalesShptLine: record "Sales Shipment Line"; SalesShptHeader: Record "Sales Shipment Header"; SrcCode: Code[10]; Currency: Record Currency) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the SalesShptLine parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnBeforeUpdateBlanketOrderLine(var SalesOrderLine: Record "Sales Line"; SalesShptLine: Record "Sales Shipment Line") begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnAfterProcessDropShptPostBuffer. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnAfterProcessDropShptPostBuffer(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; PurchRcptHeader: Record "Purch. Rcpt. Header"; SalesShptLine: Record "Sales Shipment Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary); begin end; + /// + /// Event raised by OnPostDistributeItemChargeOnAfterCalcAmountToAssign. + /// + /// + /// Specifies the TempItemLedgerEntry parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the AmountToAssign parameter. + /// Specifies the Sign parameter. + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostDistributeItemChargeOnAfterCalcAmountToAssign(var PurchaseLine: Record "Purchase Line"; TempItemLedgerEntry: Record "Item Ledger Entry"; QtyToAssign: Decimal; AmountToAssign: Decimal; Sign: Decimal; Factor: Decimal) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterPostItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ItemChargeAssignmentPurch parameter. [IntegrationEvent(true, false)] local procedure OnPostItemChargeOnAfterPostItemJnlLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; ItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)") begin end; + /// + /// Event raised by OnPostItemChargeLineOnAfterPostItemCharge. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchaseLineBackup parameter. + /// Specifies the PurchLine parameter. [IntegrationEvent(true, false)] local procedure OnPostItemChargeLineOnAfterPostItemCharge(var TempItemChargeAssgntPurch: record "Item Charge Assignment (Purch)" temporary; PurchHeader: Record "Purchase Header"; PurchaseLineBackup: Record "Purchase Line"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargeLineOnBeforePostItemCharge. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeLineOnBeforePostItemCharge(var TempItemChargeAssgntPurch: record "Item Charge Assignment (Purch)" temporary; PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var GenJnlLineDocNo: Code[20]) begin end; + /// + /// Event raised by OnPostItemChargeOnBeforePostItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the PurchInvHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnBeforePostItemJnlLine(var PurchaseLineToPost: Record "Purchase Line"; var PurchaseLine: Record "Purchase Line"; QtyToAssign: Decimal; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; PurchInvHeader: Record "Purch. Inv. Header") begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnAfterCopyToItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the GeneralLedgerSetup parameter. + /// Specifies the QtyToInvoice parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnAfterCopyToItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; GeneralLedgerSetup: Record "General Ledger Setup"; QtyToInvoice: Decimal; var TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ReturnRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ReturnRcptLine: Record "Return Receipt Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerSalesRetRcptOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerSalesRetRcptOnBeforeTestJobNo(ReturnReceiptLine: Record "Return Receipt Line"; var IsHandled: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerSalesShptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerSalesShptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var SalesShptLine: Record "Sales Shipment Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerSalesShptOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerSalesShptOnBeforeTestJobNo(SalesShipmentLine: Record "Sales Shipment Line"; var IsHandled: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerRetShptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ReturnShptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetShptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ReturnShptLine: Record "Return Shipment Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRetShptOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetShptOnBeforeTestJobNo(ReturnShipmentLine: Record "Return Shipment Line"; var IsHandled: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerRcptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRcptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var PurchRcptLine: record "Purch. Rcpt. Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRcptOnAfterPurchRcptLineGet. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRcptOnAfterPurchRcptLineGet(PurchRcptLine: Record "Purch. Rcpt. Line"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerTransferOnAfterInitPurchLine2. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerTransferOnAfterInitPurchLine2(TransferReceiptLine: Record "Transfer Receipt Line"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerTransferOnBeforePostItemJnlLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemApplnEntry parameter. + /// Specifies the TransferReceiptLine parameter. + /// Specifies the ItemChargeAssignmentPurch parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerTransferOnBeforePostItemJnlLine(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; ItemApplnEntry: Record "Item Application Entry"; TransferReceiptLine: Record "Transfer Receipt Line"; ItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)") begin end; + /// + /// Event raised by OnPostItemChargePerITTransferOnAfterCollectItemEntryRelation. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TransRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerITTransferOnAfterCollectItemEntryRelation(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; TransRcptLine: Record "Transfer Receipt Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnBeforeTempWhseJnlLine2Find. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnBeforeTempWhseJnlLine2Find(var TempWarehouseJournalLine2: Record "Warehouse Journal Line" temporary; PurchaseLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyDocumentFields. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; PurchRcptHeader: Record "Purch. Rcpt. Header"; GenJnlLineExtDocNo: Code[35]; QtyToBeInvoiced: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforePostItemJnlLineCopyDocumentFields. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforePostItemJnlLineCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; QtyToBeInvoiced: Decimal; QtyToBeReceived: Decimal; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterPostItemJnlLineJobConsumption. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the OriginalItemJnlLine parameter. + /// Specifies the TempReservationEntry parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the PostJobConsumptionBeforePurch parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the TempWhseTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterPostItemJnlLineJobConsumption(var ItemJournalLine: Record "Item Journal Line"; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; OriginalItemJnlLine: Record "Item Journal Line"; var TempReservationEntry: Record "Reservation Entry" temporary; var TrackingSpecification: Record "Tracking Specification" temporary; QtyToBeInvoiced: Decimal; QtyToBeReceived: Decimal; var PostJobConsumptionBeforePurch: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyItemCharge. + /// + /// + /// Specifies the TempItemChargeAssgntPurch parameter. [IntegrationEvent(true, false)] local procedure OnPostItemJnlLineOnAfterCopyItemCharge(var ItemJournalLine: Record "Item Journal Line"; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeCopyDocumentFields. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforePostWhseJnlLine. + /// + /// + /// Specifies the TempWhseJnlLine parameter. + /// Specifies the ItemJnlLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforePostWhseJnlLine(TempHandlingSpecification: Record "Tracking Specification"; var TempWhseJnlLine: Record "Warehouse Journal Line"; ItemJnlLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumptionOnBeforeRunItemJnlPostLineWithReservation. + /// + /// + /// Specifies the TempReservationEntry parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(true, false)] local procedure OnPostItemJnlLineJobConsumptionOnBeforeRunItemJnlPostLineWithReservation(var ItemJournalLine: Record "Item Journal Line"; var TempReservationEntry: Record "Reservation Entry" temporary; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumption. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemJournalLine parameter. + /// Specifies the TempPurchReservEntry parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the PurchItemLedgEntryNo parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineJobConsumption(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; ItemJournalLine: Record "Item Journal Line"; var TempPurchReservEntry: Record "Reservation Entry" temporary; QtyToBeInvoiced: Decimal; QtyToBeReceived: Decimal; var TempTrackingSpecification: Record "Tracking Specification" temporary; PurchItemLedgEntryNo: Integer; var IsHandled: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterSetFactor. + /// + /// + /// Specifies the Factor parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterSetFactor(var PurchaseLine: Record "Purchase Line"; var Factor: Decimal; var GenJnlLineExtDocNo: Code[35]; var ItemJournalLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterPrepareItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterPrepareItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; PreviewMode: Boolean; var GenJnlLineDocNo: code[20]; TrackingSpecification: Record "Tracking Specification"; QtyToBeReceived: Decimal; QtyToBeInvoiced: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnCopyProdOrder. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the SuppressCommit parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnCopyProdOrder(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; QtyToBeReceived: Decimal; QtyToBeInvoiced: Decimal; SuppressCommit: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumptionOnBeforeJobPost. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the SrcCode parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the IsHandled parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineJobConsumptionOnBeforeJobPost( var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; @@ -10884,191 +12959,471 @@ codeunit 90 "Purch.-Post" begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnAfterPostRevert. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnAfterPostRevert(var TempWhseJnlLine: Record "Warehouse Journal Line" temporary; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnBeforePostSingleLine. + /// + /// + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the TempWhseJnlLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnBeforePostSingleLine(WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean; var TempWhseJnlLine: Record "Warehouse Journal Line" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the QtyToBeReceivedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck(var ItemJnlLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; QtyToBeReceived: Decimal; WhseReceive: Boolean; var TempWhseRcptHeader: Record "Warehouse Receipt Header" temporary; QtyToBeReceivedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeItemJnlPostLineRunWithCheck. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the DropShipOrder parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeReceivedBase parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeItemJnlPostLineRunWithCheck(var ItemJnlLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; DropShipOrder: Boolean; PurchaseHeader: Record "Purchase Header"; WhseReceive: Boolean; QtyToBeReceived: Decimal; QtyToBeReceivedBase: Decimal; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeInitAmount. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeInitAmount(var ItemJnlLine: Record "Item Journal Line"; PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine(var ItemChargePurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemLineOnBeforePostShipReceive. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemLineOnBeforePostShipReceive(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforeReceiptInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforeReceiptInvoiceErr(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforePostItemTrackingForReceiptCondition. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforePostItemTrackingForReceiptCondition(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchRcptLine: Record "Purch. Rcpt. Line"; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnAfterPurchRcptLineTestFields. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnAfterPurchRcptLineTestFields(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnAfterPurchRcptLineSetFilters. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnAfterPurchRcptLineSetFilters(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeReturnShipmentInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeReturnShipmentInvoiceErr(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostPurchLineOnAfterSetEverythingInvoiced. + /// + /// + /// Specifies the EverythingInvoiced parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the AmountsOnly parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterSetEverythingInvoiced(var PurchaseLine: Record "Purchase Line"; var EverythingInvoiced: Boolean; PurchaseHeader: Record "Purchase Header"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; var AmountsOnly: Boolean) begin end; + /// + /// Event raised by OnPostPurchLineOnAfterPostByType. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterPostByType(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnAfterCollectPurchaseLineReservEntries. + /// + /// + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCollectPurchaseLineReservEntries(var JobReservationEntry: Record "Reservation Entry"; ItemJournalLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnAfterGetPurchOrderLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetPurchOrderLine(var PurchaseLineOrder: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; PurchRcptLine: Record "Purch. Rcpt. Line") begin end; + /// + /// Event raised by OnPostPurchLineOnBeforePostByType. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLine parameter. + /// Specifies the PurchLineACY parameter. + /// Specifies the Sourcecode parameter. [IntegrationEvent(true, false)] local procedure OnPostPurchLineOnBeforePostByType(PurchHeader: Record "Purchase Header"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; PurchLine: Record "Purchase Line"; PurchLineACY: Record "Purchase Line"; Sourcecode: Code[10]) begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertCrMemoLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchCrMemoLine parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeInsertCrMemoLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; xPurchaseLine: Record "Purchase Line"); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertInvoiceLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchInvLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeInsertInvoiceLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; var PurchInvLine: Record "Purch. Inv. Line"); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertReceiptLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(true, false)] local procedure OnPostPurchLineOnBeforeInsertReceiptLine(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; PurchRcptHeader: Record "Purch. Rcpt. Header"; RoundingLineInserted: Boolean; CostBaseAmount: Decimal; xPurchaseLine: Record "Purchase Line"; var ReturnShipmentHeader: Record "Return Shipment Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var ItemLedgShptEntryNo: Integer; SrcCode: Code[10]; PreviewMode: Boolean; var WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseReceive: Boolean; WhseShip: Boolean; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; GenJnlLineDocNo: Code[20]); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the PurchRcptHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeInsertReturnShipmentLine(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; ReturnShptHeader: Record "Return Shipment Header"; TempPurchLineGlobal: Record "Purchase Line"; RoundingLineInserted: Boolean; xPurchaseLine: Record "Purchase Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeRoundAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeRoundAmount(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnPostPurchLineOnTypeCaseElse. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the SourceCode parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnTypeCaseElse(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; SourceCode: Code[10]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary); begin end; + /// + /// Event raised by OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDoc. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDoc(var PurchInvLine: Record "Purch. Inv. Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDocCrMemo. + /// + /// + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDocCrMemo(var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnAfterPurchOrderLineModify. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the ReturnShptLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnAfterPurchOrderLineModify(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary; var ReturnShptLine: Record "Return Shipment Line") begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnAfterResetTempLines. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnAfterResetTempLines(var TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnBeforeInitQtyToInvoice(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterPurchOrderLineGet. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the PurchOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterPurchOrderLineGet(var TempPurchLine: Record "Purchase Line" temporary; PurchRcptLine: Record "Purch. Rcpt. Line"; PurchOrderLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterPurchOrderLineModify. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchOrderLine parameter. + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterPurchOrderLineModify(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary; var PurchOrderLine: Record "Purchase Line"; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeUpdateBlanketOrderLine(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitOutstanding(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitQtyToInvoice(var TempPurchaseLine: Record "Purchase Line" temporary; WhseShip: Boolean; WhseReceive: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeLoop. + /// + /// + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeLoop(PurchHeader: Record "Purchase Header"; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnPurchHeaderReceive. + /// + /// + /// Specifies the PurchRcptHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnPurchHeaderReceive(var TempPurchLine: Record "Purchase Line"; PurchRcptHeader: Record "Purch. Rcpt. Header") begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnSetDefaultQtyBlank. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchPost parameter. + /// Specifies the SetDefaultQtyBlank parameter. [IntegrationEvent(true, false)] local procedure OnPostUpdateOrderLineOnSetDefaultQtyBlank(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary; PurchPost: Record "Purchases & Payables Setup"; var SetDefaultQtyBlank: Boolean) begin @@ -11076,162 +13431,360 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnProcessAssocItemJnlLineOnAfterInitTempDropShptPostBuffer. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnProcessAssocItemJnlLineOnAfterInitTempDropShptPostBuffer(var PurchLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnReleasePurchDocumentOnBeforeSetStatus. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnReleasePurchDocumentOnBeforeSetStatus(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRoundAmountOnBeforeCalculateLCYAmounts. + /// + /// + /// Specifies the PurchLineACY parameter. + /// Specifies the PurchHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TotalPurchaseLine parameter. + /// Specifies the TotalPurchaseLineLCY parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnBeforeCalculateLCYAmounts(var xPurchLine: Record "Purchase Line"; var PurchLineACY: Record "Purchase Line"; PurchHeader: Record "Purchase Header"; var IsHandled: Boolean; TotalPurchaseLine: Record "Purchase Line"; TotalPurchaseLineLCY: Record "Purchase Line"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnRoundAmountOnBeforeIncrAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the CurrExchRate parameter. + /// Specifies the NoVAT parameter. + /// Specifies the IsHandled parameter. + /// Specifies the NonDeductibleVAT parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnBeforeIncrAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchLineQty: Decimal; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line"; var xPurchaseLine: Record "Purchase Line"; var CurrExchRate: Record "Currency Exchange Rate"; var NoVAT: Boolean; var IsHandled: Boolean; var NonDeductibleVAT: Codeunit "Non-Deductible VAT") begin end; + /// + /// Event raised by OnRunOnBeforeFinalizePosting. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeFinalizePosting(var PurchaseHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShipmentHeader: Record "Return Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforeMakeInventoryAdjustment. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeMakeInventoryAdjustment(var PurchaseHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; PreviewMode: Boolean; PurchRcptHeader: Record "Purch. Rcpt. Header"; PurchInvHeader: Record "Purch. Inv. Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumPurchLines2OnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnAfterSetFilters(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnSumPurchLines2OnAfterDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnAfterDivideAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping; PurchLineQty: Decimal; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary) begin end; + /// + /// Event raised by OnSumPurchLines2OnBeforeDivideAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyType parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnBeforeDivideAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping) begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterSalesOrderHeaderModify. + /// + /// + /// Specifies the SalesSetup parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterSalesOrderHeaderModify(var SalesOrderHeader: Record "Sales Header"; var SalesSetup: Record "Sales & Receivables Setup") begin end; + /// + /// Event raised by OnUpdateAssociatedSalesOrderOnBeforeClearTempDropShptPostBuffer. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateAssociatedSalesOrderOnBeforeClearTempDropShptPostBuffer(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer") begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterSalesOrderLineModify. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesOrderHeader parameter. + /// Specifies the SalesShptHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterSalesOrderLineModify(var SalesOrderLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesOrderHeader: Record "Sales Header"; SalesShptHeader: Record "Sales Shipment Header") begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterOrderNoClearFilter. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterOrderNoClearFilter(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnUpdateAssocOrderOnBeforeSalesOrderLineModify. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnBeforeSalesOrderLineModify(var SalesOrderLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheck. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheck(var BlanketOrderPurchLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeInitOutstanding(var BlanketOrderPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnAfterCheckBlanketOrderPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnAfterCheckBlanketOrderPurchLine(var BlanketOrderPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnUpdatePurchLineBeforePostOnAfterCalcInitQtyToInvoiceNeeded. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the InitQtyToInvoiceNeeded parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePurchLineBeforePostOnAfterCalcInitQtyToInvoiceNeeded(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var InitQtyToInvoiceNeeded: Boolean) begin end; + /// + /// Event raised by OnUpdateWhseDocumentsOnAfterUpdateWhseRcpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateWhseDocumentsOnAfterUpdateWhseRcpt(var WarehouseReceiptHeader: Record "Warehouse Receipt Header") begin end; + /// + /// Event raised by OnUpdateWhseDocumentsOnAfterUpdateWhseShpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateWhseDocumentsOnAfterUpdateWhseShpt(var WarehouseShipmentHeader: Record "Warehouse Shipment Header") begin end; + /// + /// Event raised by OnBeforeRunItemJnlPostLineWithReservation. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeRunItemJnlPostLineWithReservation(var ItemJournalLine: Record "Item Journal Line"); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterCopyAndCheckItemCharge. + /// + /// [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterCopyAndCheckItemCharge(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterCalcCopyAndCheckItemChargeNeeded. + /// + /// + /// Specifies the CopyAndCheckItemChargeNeeded parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterCalcCopyAndCheckItemChargeNeeded(var PurchHeader: Record "Purchase Header"; var CopyAndCheckItemChargeNeeded: Boolean) begin end; + /// + /// Event raised by OnUpdatePostingNosOnBeforeUpdatePostingNo. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnBeforeUpdatePostingNo(PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; var ModifyHeader: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdatePostingNosOnAfterCalcShouldUpdateReceivingNo. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the ShouldUpdateReceivingNo parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnAfterCalcShouldUpdateReceivingNo(PurchaseHeader: Record "Purchase Header"; PreviewMode: Boolean; var ModifyHeader: Boolean; var ShouldUpdateReceivingNo: Boolean) begin end; + /// + /// Event raised by OnCreatePositiveOnBeforeWhseJnlPostLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnCreatePositiveOnBeforeWhseJnlPostLine(var WhseJnlLine: Record "Warehouse Journal Line") begin end; + /// + /// Event raised by OnCreatePostedWhseShptLineOnBeforeCreatePostedShptLine. + /// + /// + /// Specifies the WarehouseShipmentLine parameter. + /// Specifies the PostedWhseShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnCreatePostedWhseShptLineOnBeforeCreatePostedShptLine(var ReturnShipmentLine: Record "Return Shipment Line"; var WarehouseShipmentLine: Record "Warehouse Shipment Line"; PostedWhseShipmentHeader: Record "Posted Whse. Shipment Header") begin end; + /// + /// Event raised by OnCreatePostedRcptLineOnBeforeCreatePostedRcptLine. + /// + /// + /// Specifies the WarehouseReceiptLine parameter. + /// Specifies the PostedWhseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnCreatePostedRcptLineOnBeforeCreatePostedRcptLine(var ReturnShipmentLine: Record "Return Shipment Line"; var WarehouseReceiptLine: Record "Warehouse Receipt Line"; PostedWhseReceiptHeader: Record "Posted Whse. Receipt Header") begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnBeforeTempTrackingSpecificationModify. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnBeforeTempTrackingSpecificationModify(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification. + /// + /// [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification(var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnBeforePostUpdateInvoiceLine. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateInvoiceLine(var TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean; var PurchaseHeader: Record "Purchase Header") begin @@ -11239,102 +13792,228 @@ codeunit 90 "Purch.-Post" #if not CLEAN28 [Obsolete('This event is no longer used.', '28.0')] + /// + /// Event raised by OnBeforeCheckAssociatedSalesOrderLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckAssociatedSalesOrderLine(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; #endif + /// + /// Event raised by OnBeforeCheckAssociatedOrderLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeCheckAssociatedOrderLines(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeCheckReceiveInvoiceShip. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckReceiveInvoiceShip(var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingItemChargePerOrderOnAfterCalcFactor. + /// + /// + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the TempTrackingSpecificationChargeAssmt parameter. + /// Specifies the SignFactor parameter. + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingItemChargePerOrderOnAfterCalcFactor(var NonDistrItemJnlLine: Record "Item Journal Line"; var ItemJnlLine2: Record "Item Journal Line"; var TempTrackingSpecificationChargeAssmt: Record "Tracking Specification"; SignFactor: Integer; Factor: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingItemChargePerOrderOnAfterUpdateItemJnlLine2LocationCode. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostItemTrackingItemChargePerOrderOnAfterUpdateItemJnlLine2LocationCode(var ItemJnlLine2: Record "Item Journal Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnAfterReturnShptLineReset. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnAfterReturnShptLineReset(var ReturnShptLine: Record "Return Shipment Line"; PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeSetItemEntryRelationForShipment. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeSetItemEntryRelationForShipment(var ItemEntryRelation: Record "Item Entry Relation"; var ReturnShptLine: Record "Return Shipment Line"; var InvoicingTrackingSpecification: Record "Tracking Specification"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding(ReturnShptLine: Record "Return Shipment Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnAfterFillTempLines. + /// + /// [IntegrationEvent(true, false)] local procedure OnRunOnAfterFillTempLines(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnRunOnAfterInvoiceRounding. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(true, false)] local procedure OnRunOnAfterInvoiceRounding(var PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnRunOnBeforeFillTempLines. + /// + /// + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(true, false)] local procedure OnRunOnBeforeFillTempLines(PreviewMode: Boolean; var GenJnlLineDocNo: Code[20]) begin end; + /// + /// Event raised by OnRunOnAfterPostPurchLine. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the ReturnShipmentHeader parameter. [IntegrationEvent(true, false)] local procedure OnRunOnAfterPostPurchLine(var TempPurchLineGlobal: Record "Purchase Line" temporary; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var ReturnShipmentHeader: Record "Return Shipment Header") begin end; + /// + /// Event raised by OnAfterCalcInvDiscount. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(true, false)] local procedure OnAfterCalcInvDiscount(PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostGLAccICLineOnBeforeCheckAndInsertICGenJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the ICGenJnlLineNo parameter. [IntegrationEvent(false, false)] local procedure OnPostGLAccICLineOnBeforeCheckAndInsertICGenJnlLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; ICGenJnlLineNo: Integer) begin end; + /// + /// Event raised by OnPostGLAccICLineOnAfterCreateJobPurchLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostGLAccICLineOnAfterCreateJobPurchLine(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostItemJnlLineTrackingOnBeforeTempHandlingSpecificationFind. + /// + /// + /// Specifies the TempHandlingSpecification parameter. [IntegrationEvent(true, false)] local procedure OnPostItemJnlLineTrackingOnBeforeTempHandlingSpecificationFind(PurchLine: Record "Purchase Line"; var TempHandlingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnFinalizePostingOnAfterUpdateItemChargeAssgnt. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the TempPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(true, false)] local procedure OnFinalizePostingOnAfterUpdateItemChargeAssgnt(var PurchHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var EverythingInvoiced: Boolean; var TempPurchLine: Record "Purchase Line" temporary; var TempPurchLineGlobal: Record "Purchase Line" temporary; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeInsertValueEntryRelation. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(true, false)] local procedure OnFinalizePostingOnBeforeInsertValueEntryRelation(var PurchHeader: Record "Purchase Header"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the TempPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(true, false)] local procedure OnFinalizePostingOnBeforeInsertTrackingSpecification(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; PurchHeader: Record "Purchase Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; EverythingInvoiced: Boolean; var TempPurchLine: Record "Purchase Line"; var TempPurchLineGlobal: Record "Purchase Line") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeUpdateWhseDocuments. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the WarehouseReceive parameter. + /// Specifies the WarehouseShip parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeUpdateWhseDocuments(var PurchaseHeader: Record "Purchase Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; WarehouseReceive: Boolean; WarehouseShip: Boolean; var IsHandled: Boolean) @@ -11344,665 +14023,1491 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnFinalizePostingOnBeforeCommit. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeCommit(PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertReceiptLineOnBeforeCreatePostedRcptLine. + /// + /// + /// Specifies the WarehouseReceiptLine parameter. + /// Specifies the PostedWhseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnBeforeCreatePostedRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var WarehouseReceiptLine: Record "Warehouse Receipt Line"; PostedWhseReceiptHeader: Record "Posted Whse. Receipt Header") begin end; + /// + /// Event raised by OnInsertReceiptLineOnBeforeCreatePostedShptLine. + /// + /// + /// Specifies the WarehouseShipmentLine parameter. + /// Specifies the PostedWhseShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnBeforeCreatePostedShptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var WarehouseShipmentLine: Record "Warehouse Shipment Line"; PostedWhseShipmentHeader: Record "Posted Whse. Shipment Header") begin end; + /// + /// Event raised by OnInsertReceiptLineOnBeforeProcessWhseShptRcpt. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the PurchRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnBeforeProcessWhseShptRcpt(var PurchLine: Record "Purchase Line"; var IsHandled: Boolean; var CostBaseAmount: Decimal; PurchRcptLine: Record "Purch. Rcpt. Line") begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeArchiveUnpostedOrder. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeArchiveUnpostedOrder(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterInsertPostedHeaders. + /// + /// [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterInsertPostedHeaders(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeReleaseSalesHeader. + /// + /// + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeReleaseSalesHeader(var PurchHeader: Record "Purchase Header"; var SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnAfterReleaseSalesHeader. + /// + /// + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnAfterReleaseSalesHeader(var PurchHeader: Record "Purchase Header"; var SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdatePostingNosOnAfterSetReturnShipmentNoFromNos. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnAfterSetReturnShipmentNoFromNos(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnUpdatePostingNosOnInvoiceOnBeforeSetPostingNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnInvoiceOnBeforeSetPostingNo(var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists. + /// + /// + /// Specifies the PostingDateExists parameter. + /// Specifies the ReplacePostingDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the VATDateExists parameter. + /// Specifies the ReplaceVATDate parameter. + /// Specifies the VATDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists(var PurchHeader: Record "Purchase Header"; var PostingDateExists: Boolean; var ReplacePostingDate: Boolean; var PostingDate: Date; var ReplaceDocumentDate: Boolean; var ModifyHeader: Boolean; var VATDateExists: Boolean; var ReplaceVATDate: Boolean; var VATDate: Date) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchaseLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchaseLine(PurchaseLine: Record "Purchase Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchRcptLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchRcptLine(PurchRcptLine: Record "Purch. Rcpt. Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnShipmentLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnShipmentLine(ReturnShipmentLine: Record "Return Shipment Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertReturnShipmentHeader. + /// + /// + /// Specifies the ReturnShptHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReturnShipmentHeader(var PurchHeader: Record "Purchase Header"; var ReturnShptHeader: Record "Return Shipment Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertInvoiceHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Window parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PurchCommentLine parameter. + /// Specifies the RecordLinkManagement parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertInvoiceHeader(var PurchHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var IsHandled: Boolean; var Window: Dialog; var HideProgressWindow: Boolean; var SrcCode: Code[10]; var PurchCommentLine: Record "Purch. Comment Line"; var RecordLinkManagement: Codeunit "Record Link Management") begin end; + /// + /// Event raised by OnBeforeInserCrMemoHeader. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the Window parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the PurchCommentLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInserCrMemoHeader(var PurchHeader: Record "Purchase Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var HideProgressWindow: Boolean; var Window: Dialog; var IsHandled: Boolean; SrcCode: Code[10]; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; var PurchCommentLine: Record "Purch. Comment Line") begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnBeforeCopyComments. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnBeforeCopyComments(var PurchHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesShptHeader: Record "Sales Shipment Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnBeforePostBalancingEntry. + /// + /// + /// Specifies the LineCount parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnBeforePostBalancingEntry(var PurchHeader: Record "Purchase Header"; var LineCount: Integer) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterReceive. + /// + /// + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterReceive(var PurchHeader: Record "Purchase Header"; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeUpdateAssosOrderPostingNos. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the DropShipment parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateAssosOrderPostingNos(var TempPurchLine: Record "Purchase Line" temporary; var PurchHeader: Record "Purchase Header"; var DropShipment: Boolean; var IsHandled: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeUpdateAfterPosting. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeUpdateAfterPosting(var PurchHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var EverythingInvoiced: Boolean; var IsHandled: Boolean; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforePurchOrderLineModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforePurchOrderLineModify(var PurchOrderLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePostPurchLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostPurchLine(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeFindTempPurchLine. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeFindTempPurchLine(var TempPurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"); begin end; + /// + /// Event raised by OnCalcInvoiceOnAfterResetTempLines. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the NewInvoice parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvoiceOnAfterResetTempLines(var PurchHeader: Record "Purchase Header"; var TempPurchLine: Record "Purchase Line" temporary; var NewInvoice: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnAfterPostInvoice. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the Window parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnRunOnAfterPostInvoice(var PurchaseHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var ReturnShipmentHeader: Record "Return Shipment Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PreviewMode: Boolean; var Window: Dialog; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnCopyToTempLinesLoop. + /// + /// [IntegrationEvent(false, false)] local procedure OnCopyToTempLinesLoop(var PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnRunOnBeforePostPurchLine. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforePostPurchLine(var PurchLine: Record "Purchase Line"; var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeValidateICPartnerBusPostingGroups. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeValidateICPartnerBusPostingGroups(var TempICGenJnlLine: Record "Gen. Journal Line" temporary; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterGetCurrency. + /// + /// + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetCurrency(CurrencyCode: Code[10]; var Currency: Record Currency) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterGetPurchPrepmtAccount. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterGetPurchPrepmtAccount(var GLAcc: Record "G/L Account"; var TempPurchaseLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeGetPurchPrepmtAccount. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the GenPostingSetup parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeGetPurchPrepmtAccount(var GLAcc: Record "G/L Account"; var TempPurchaseLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; var GenPostingSetup: Record "General Posting Setup"; CompleteFunctionality: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertReturnEntryRelation. + /// + /// + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReturnEntryRelation(var ReturnShptLine: Record "Return Shipment Line"; var Result: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestPurchLineOnBeforeTestFieldQtyToReceive. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnTestPurchLineOnBeforeTestFieldQtyToReceive(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestPurchLineOnBeforeTestFieldReturnQtyToShip. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnTestPurchLineOnBeforeTestFieldReturnQtyToShip(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnAfterCalcVATAmountLines. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TempVATAmountLine parameter. [IntegrationEvent(false, false)] local procedure OnRunOnAfterCalcVATAmountLines(var PurchaseHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var TempVATAmountLine: Record "VAT Amount Line" temporary) begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforeInitAssocItemJnlLine. + /// + /// + /// Specifies the ItemShptEntryNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforeInitAssocItemJnlLine(var SalesOrderLine: Record "Sales Line"; var ItemShptEntryNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingSpecificationOnBeforeGetItemTrackingSetup. + /// + /// + /// Specifies the ItemTrackingSetup parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingSpecificationOnBeforeGetItemTrackingSetup(var PurchaseLine: Record "Purchase Line"; var ItemTrackingSetup: Record "Item Tracking Setup"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcItemJnlLineToBeReceivedAmounts. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the RemAmt parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcItemJnlLineToBeReceivedAmounts(var ItemJnlLine: Record "Item Journal Line"; var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyToBeReceived: Decimal; var RemAmt: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforeExit. + /// + /// + /// Specifies the ItemShptEntryNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforeExit(SalesOrderHeader: Record "Sales Header"; var ItemShptEntryNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeCalcQty. + /// + /// + /// Specifies the PurchOrderLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeCalcQty(var TempPurchLine: Record "Purchase Line" temporary; var PurchOrderLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnBeforeInsertSalesShptHeader. + /// + /// + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnBeforeInsertSalesShptHeader(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterShouldCalcAmounts. + /// + /// + /// Specifies the ShouldCalcAmounts parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterShouldCalcAmounts(PurchHeader: Record "Purchase Header"; var ShouldCalcAmounts: Boolean; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeDivideAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnAfterUpdateSalesOrderLine. + /// + /// + /// Specifies the SalesOrderHeader parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the SalesShipmentLine parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnAfterUpdateSalesOrderLine(SalesShptHeader: Record "Sales Shipment Header"; SalesOrderHeader: Record "Sales Header"; var SalesOrderLine: Record "Sales Line"; SalesShipmentLine: Record "Sales Shipment Line") begin end; + /// + /// Event raised by OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckPosted. + /// + /// + /// Specifies the ShouldCheckPosted parameter. [IntegrationEvent(false, false)] local procedure OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckPosted(PurchHeader: Record "Purchase Header"; var ShouldCheckPosted: Boolean) begin end; + /// + /// Event raised by OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckUnposted. + /// + /// + /// Specifies the ShouldCheckUnposted parameter. [IntegrationEvent(false, false)] local procedure OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckUnposted(PurchHeader: Record "Purchase Header"; var ShouldCheckUnposted: Boolean) begin end; + /// + /// Event raised by OnAfterCopyToTempLines. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterCopyToTempLines(var TempPurchLine: Record "Purchase Line" temporary; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnBeforeTempPurchLineSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnBeforeTempPurchLineSetFilters(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForShipment. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForShipment(var PurchHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostGLAccICLineOnBeforeCreateJobPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostGLAccICLineOnBeforeCreateJobPurchLine(var PurchHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeIsItemChargeLineWithQuantityToInvoice. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeIsItemChargeLineWithQuantityToInvoice(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerRcpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRcpt(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterGetAppliedOutboundItemLedgEntryNo. + /// + /// + /// Specifies the ItemApplicationEntry parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetAppliedOutboundItemLedgEntryNo(var ItemJnlLine: Record "Item Journal Line"; var ItemApplicationEntry: Record "Item Application Entry") begin end; + /// + /// Event raised by OnAfterGetGeneralPostingSetup. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetGeneralPostingSetup(var GeneralPostingSetup: Record "General Posting Setup"; PurchLine: Record "Purchase Line"); begin end; + /// + /// Event raised by OnBeforeConfirmJobLineType. + /// + /// + /// Specifies the HideDialog parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeConfirmJobLineType(PurchLine: Record "Purchase Line"; var HideDialog: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeConfirmJobPlanningLineNo. + /// + /// + /// Specifies the HideDialog parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeConfirmJobPlanningLineNo(PurchLine: Record "Purchase Line"; var HideDialog: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldProcessShipment. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ShouldProcessShipment parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldProcessShipment(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ShouldProcessShipment: Boolean) begin end; + /// + /// Event raised by OnCheckItemReservDisruptionOnAfterInsertTempSKU. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckItemReservDisruptionOnAfterInsertTempSKU(var Item: Record Item; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterPostItemChargePerRetRcpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerRetRcpt(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerTransfer. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerTransfer(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerRetShpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerRetShpt(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerSalesShpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerSalesShpt(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnInsertInvoiceHeaderOnBeforeCopyLinks. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertInvoiceHeaderOnBeforeCopyLinks(var PurchHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeUpdateIncomingDocument. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeUpdateIncomingDocument(var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumptionOnAfterItemLedgEntrySetFilters. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineJobConsumptionOnAfterItemLedgEntrySetFilters(var ItemLedgEntry: Record "Item Ledger Entry"; var PurchLine: Record "Purchase Line"; var ItemJournalLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnTestPurchLineOnTypeCaseOnDocumentTypeCaseElse. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnTestPurchLineOnTypeCaseOnDocumentTypeCaseElse(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterDecrementPrepmtAmtInvLCY. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PrepmtAmountInvLCY parameter. + /// Specifies the PrepmtVATAmountInvLCY parameter. [IntegrationEvent(false, false)] local procedure OnAfterDecrementPrepmtAmtInvLCY(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var PrepmtAmountInvLCY: Decimal; var PrepmtVATAmountInvLCY: Decimal) begin end; #if not CLEAN27 + /// + /// Event raised by OnSetPostingPreviewDocumentNo. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnSetPostingPreviewDocumentNo(var PreviewDocumentNo: Code[20]) begin end; + /// + /// Event raised by OnGetPostingPreviewDocumentNos. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnGetPostingPreviewDocumentNos(var PreviewDocumentNos: List of [Code[20]]) begin end; #endif + /// + /// Event raised by OnInsertPostedHeadersOnAfterInvoice. + /// + /// + /// Specifies the GenJournalLine parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInvoice(var PurchaseHeader: Record "Purchase Header"; var GenJournalLine: Record "Gen. Journal Line"; var GenJnlLineDocType: Enum "Gen. Journal Document Type"; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterSumPurchLines2. + /// + /// + /// Specifies the OldPurchaseLine parameter. + /// Specifies the NewPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterSumPurchLines2(var PurchaseHeader: Record "Purchase Header"; var OldPurchaseLine: Record "Purchase Line"; var NewPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnTypeCaseElse. + /// + /// + /// Specifies the Sign parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnTypeCaseElse(var PurchaseLine: Record "Purchase Line"; var Sign: Decimal) begin end; + /// + /// Event raised by OnSumPurchLines2OnAfterIsRoundingLineInserted. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the OldPurchaseLine parameter. + /// Specifies the RoundingLineInserted parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnAfterIsRoundingLineInserted(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var OldPurchaseLine: Record "Purchase Line"; RoundingLineInserted: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckICPartnerBlocked. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckICPartnerBlocked(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnAfterPostLines. + /// + /// + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TotalAmount parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnAfterPostLines(var PurchaseHeader: Record "Purchase Header"; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line"; var TempPurchLineGlobal: Record "Purchase Line" temporary; TotalAmount: Decimal) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforePurchaseHeaderModify. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforePurchaseHeaderModify(var PurchaseHeader: Record "Purchase Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePurchLineDimSetIDFromAppliedEntry. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePurchLineDimSetIDFromAppliedEntry(var PurchaseLineToPost: Record "Purchase Line"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterDeleteItemChargeAssgnt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterDeleteItemChargeAssgnt(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforePostItemChargePerRetRcpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRetRcpt(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerITTransfer. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TransRcptLine parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerITTransfer(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; TransRcptLine: Record "Transfer Receipt Line"; var TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerRetShpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRetShpt(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeShouldTestGetReceiptPPmtAmtToDeduct. + /// + /// + /// Specifies the CompleteFunctionality parameter. + /// Specifies the ShouldTestGetReceiptPPmtAmtToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeShouldTestGetReceiptPPmtAmtToDeduct(PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean; var ShouldTestGetReceiptPPmtAmtToDeduct: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeAmountIncludingVATAmountRound. + /// + /// + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeAmountIncludingVATAmountRound(var PurchaseLine: Record "Purchase Line"; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeCalcAmountsForFullVAT. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeCalcAmountsForFullVAT(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckMandatoryFields. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckMandatoryFields(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckPostingDate. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPostingDate(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterInsertCrMemoHeader. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertCrMemoHeader(var PurchaseHeader: Record "Purchase Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnAfterInsertInvoiceHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertInvoiceHeader(var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header") begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeOnBeforeDoCommit. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeOnBeforeDoCommit(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnReleasePurchDocumentOnBeforeDoCommit. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnReleasePurchDocumentOnBeforeDoCommit(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateAssociatedSalesOrderBeforeInitOutstanding. + /// + /// + /// Specifies the SalesOrderLine parameter. + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssociatedSalesOrderBeforeInitOutstanding(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesOrderLine: Record "Sales Line"; SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnRunOnBeforePostInvoice. + /// + /// + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforePostInvoice(PurchaseHeader: Record "Purchase Header"; var EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnCheckPurchDocumentOnBeforeCheckPurchDim. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckPurchDocumentOnBeforeCheckPurchDim(var PurchaseHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnCalcInvDiscountOnBeforeDoCommit. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvDiscountOnBeforeDoCommit(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeSetReplaceDocumentDate. + /// + /// + /// Specifies the PostingDate parameter. + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeSetReplaceDocumentDate(var PurchaseHeader: Record "Purchase Header"; var PostingDate: Date; var ReplaceDocumentDate: Boolean; var ModifyHeader: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineGet. + /// + /// + /// Specifies the TempVATAmountLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineGet(PurchaseLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckFAPostingPossibility. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckFAPostingPossibility(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckPostRestrictions. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPostRestrictions(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeTestGeneralPostingGroups. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeTestGeneralPostingGroups(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeTestFieldBilltoCustomerNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeTestFieldBilltoCustomerNo(var SalesOrderHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnAfterCalcVATBaseAmount. + /// + /// [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterCalcVATBaseAmount(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeUpdateAfterPosting. + /// + /// + /// Specifies the SuppressCommit parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateAfterPosting(var PurchaseHeader: Record "Purchase Header"; SuppressCommit: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckAndUpdate. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckAndUpdate(var PurchaseHeader: Record "Purchase Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterCalcTotalChargeAmt. + /// + /// + /// Specifies the QtyToAssign parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnAfterCalcTotalChargeAmt(var PurchaseLineToPost: Record "Purchase Line"; QtyToAssign: Decimal; var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostPurchLineOnAfterInsertReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the TempPurchaseLineGlobal parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterInsertReturnShipmentLine(var PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; ReturnShptHeader: Record "Return Shipment Header"; TempPurchaseLineGlobal: Record "Purchase Line"; RoundingLineInserted: Boolean; xPurchaseLine: Record "Purchase Line"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."); begin end; + /// + /// Event raised by OnBeforeMakeInventoryAdjustment. + /// + /// [IntegrationEvent(false, false)] procedure OnBeforeMakeInventoryAdjustment(var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeCheckItemReservDisruption. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckItemReservDisruption(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterSetCheckApplToItemEntry. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterSetCheckApplToItemEntry(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheckBlanketOrderPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheckBlanketOrderPurchLine(var BlanketOrderPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeModifyInvoicedQtyOnPurchRcptLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeModifyInvoicedQtyOnPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeTestPostingDate. + /// + /// + /// Specifies the ReplacePostingDate parameter. + /// Specifies the SkipTestPostingDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeTestPostingDate(var PurchaseHeader: Record "Purchase Header"; ReplacePostingDate: Boolean; var SkipTestPostingDate: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckItemCharge. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckItemCharge(var ItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeProcedurePostAssocItemJnlLine. + /// + /// + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the ItemShptEntryNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeProcedurePostAssocItemJnlLine(var SalesOrderLine: Record "Sales Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempHandlingSpecification: Record "Tracking Specification" temporary; QtyToBeShipped: Decimal; QtyToBeShippedBase: Decimal; var ItemShptEntryNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostDistributeItemChargeOnAfterSetFactor. + /// + /// + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostDistributeItemChargeOnAfterSetFactor(TempItemLedgerEntry: Record "Item Ledger Entry"; var Factor: Decimal) begin end; + /// + /// Event raised by OnBeforeCalcItemJnlLineToBeInvoicedAmounts. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the RemAmt parameter. + /// Specifies the RemDiscAmt parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcItemJnlLineToBeInvoicedAmounts(var ItemJournalLine: Record "Item Journal Line"; var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; var RemAmt: Decimal; var RemDiscAmt: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemJnlLineWhseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the PostBefore parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLineWhseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary; PurchaseLine: Record "Purchase Line"; PostBefore: Boolean) begin end; + /// + /// Event raised by OnAfterPostItemJnlLineWhseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLineWhseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerTransferOnBeforeProcessItemApplicationEntry. + /// + /// + /// Specifies the ItemApplicationEntry parameter. + /// Specifies the TransferReceiptLine parameter. + /// Specifies the TotalAmountToPostFCY parameter. + /// Specifies the AmountToPostFCY parameter. + /// Specifies the GeneralLedgerSetup parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerTransferOnBeforeProcessItemApplicationEntry(PurchaseLine: Record "Purchase Line"; ItemApplicationEntry: Record "Item Application Entry"; TransferReceiptLine: Record "Transfer Receipt Line"; TotalAmountToPostFCY: Decimal; var AmountToPostFCY: Decimal; GeneralLedgerSetup: Record "General Ledger Setup"; PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemCharge. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ItemEntryNo parameter. + /// Specifies the QuantityBase parameter. + /// Specifies the AmountToAssign parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the IndirectCostPct parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemCharge(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; ItemEntryNo: Integer; QuantityBase: Decimal; AmountToAssign: Decimal; QtyToAssign: Decimal; IndirectCostPct: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertedPrepmtVATBaseToDeductOnAfterSetTempPrepmtDeductLCYPurchaseLine. + /// + /// + /// Specifies the PrepmtVATBaseToDeduct parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertedPrepmtVATBaseToDeductOnAfterSetTempPrepmtDeductLCYPurchaseLine(var TempPrepmtDeductLCYPurchaseLine: Record "Purchase Line" temporary; var PrepmtVATBaseToDeduct: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeAdjustPrepmtAmountLCY. + /// + /// + /// Specifies the PrepmtPurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustPrepmtAmountLCY(PurchaseHeader: Record "Purchase Header"; var PrepmtPurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeAdjustFinalInvWith100PctPrepmt. + /// + /// + /// Specifies the TempPrepmtDeductLCYPurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustFinalInvWith100PctPrepmt(var CombinedPurchaseLine: Record "Purchase Line"; var TempPrepmtDeductLCYPurchaseLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateInvoicedQtyOnReturnShipmentLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoicedQtyOnReturnShipmentLine(var ReturnShipmentLine: Record "Return Shipment Line") begin end; + /// + /// Event raised by OnAfterCheckPurchRcptLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckPurchRcptLine(PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnUpdateItemChargeAssgntOnBeforeItemChargeAssignmentPurchModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateItemChargeAssgntOnBeforeItemChargeAssignmentPurchModify(var ItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)") begin end; + /// + /// Event raised by OnBeforeUpdateReceiptInvoicingQuantities. + /// + /// + /// Specifies the SkipQuantityUpdate parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateReceiptInvoicingQuantities(PurchLine: Record "Purchase Line"; var SkipQuantityUpdate: Boolean) begin end; + /// + /// Event raised by OnSetCommitBehavior. + /// + /// [IntegrationEvent(false, false)] - local procedure OnBeforePostWHT(var PurchaseHeader: Record "Purchase Header"; var TotalInvAmount: Decimal; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; var TempPurchaseLineGlobal: Record "Purchase Line" temporary; var WHTEntry: Record "WHT Entry"; var IsHandled: Boolean) + local procedure OnSetCommitBehavior(var IgnoreCommit: Boolean) begin end; + /// + /// Event raised by OnAfterProcessPostingLines. + /// + /// + /// Specifies the TotalPurchLine parameter. + /// Specifies the VendLedgEntry parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the Window parameter. [IntegrationEvent(false, false)] - local procedure OnSetCommitBehavior(var IgnoreCommit: Boolean) + local procedure OnAfterProcessPostingLines(var PurchHeader: Record "Purchase Header"; var TotalPurchLine: Record "Purchase Line"; var VendLedgEntry: Record "Vendor Ledger Entry"; InvoicePostingParameters: Record "Invoice Posting Parameters"; SuppressCommit: Boolean; EverythingInvoiced: Boolean; var Window: Dialog) + begin + end; + + /// + /// Event is raised after the CheckPostRestrictions function is executed + /// + /// The purchase header record that was checked for post restrictions. + [IntegrationEvent(false, false)] + local procedure OnAfterCheckPostRestrictions(var PurchaseHeader: Record "Purchase Header") + begin + end; + + /// + /// Event raised by OnBeforePostWHT. + /// + /// + /// Specifies the TotalInvAmount parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the TempPurchaseLineGlobal parameter. + /// Specifies the WHTEntry parameter. + /// Specifies the IsHandled parameter. + [IntegrationEvent(false, false)] + local procedure OnBeforePostWHT(var PurchaseHeader: Record "Purchase Header"; var TotalInvAmount: Decimal; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; var TempPurchaseLineGlobal: Record "Purchase Line" temporary; var WHTEntry: Record "WHT Entry"; var IsHandled: Boolean) begin end; } + diff --git a/src/Layers/APAC/BaseApp/Sales/Posting/SalesPost.Codeunit.al b/src/Layers/APAC/BaseApp/Sales/Posting/SalesPost.Codeunit.al index c0f851ef0c2..2fefe125a46 100644 --- a/src/Layers/APAC/BaseApp/Sales/Posting/SalesPost.Codeunit.al +++ b/src/Layers/APAC/BaseApp/Sales/Posting/SalesPost.Codeunit.al @@ -360,6 +360,8 @@ codeunit 80 "Sales-Post" ProcessPosting(SalesHeader, SalesHeader2, TempDropShptPostBuffer, CustLedgEntry, EverythingInvoiced); + Clear(GenJnlPostLine); + UpdateLastPostingNos(SalesHeader); OnRunOnBeforeFinalizePosting( @@ -548,6 +550,8 @@ codeunit 80 "Sales-Post" OnRunOnBeforeMakeInventoryAdjustment(SalesHeader, SalesInvHeader, GenJnlPostLine, ItemJnlPostLine, PreviewMode, SkipInventoryAdjustment); if not SkipInventoryAdjustment then MakeInventoryAdjustment(); + + OnAfterProcessPostingLines(SalesHeader, TotalSalesLine, CustLedgEntry, InvoicePostingParameters, SuppressCommit, EverythingInvoiced, Window, HideProgressWindow); end; /// @@ -6397,6 +6401,8 @@ codeunit 80 "Sales-Post" if SalesHeader."Bill-to Contact No." <> '' then if Contact.Get(SalesHeader."Bill-to Contact No.") then Contact.CheckIfPrivacyBlocked(true); + + OnAfterCheckPostRestrictions(SalesHeader); end; local procedure CheckCustBlockage(SalesHeader: Record "Sales Header"; CustCode: Code[20]; ExecuteDocCheck: Boolean) @@ -9780,6 +9786,7 @@ codeunit 80 "Sales-Post" /// Indicates whether the item journal line should be posted. /// Indicates whether warehouse shipment is involved. /// The warehouse receipt header. + /// Specifies the WarehouseShipmentHeader parameter. [IntegrationEvent(true, false)] local procedure OnAfterPostItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var WhseJnlPostLine: Codeunit "Whse. Jnl.-Register Line"; OriginalItemJnlLine: Record "Item Journal Line"; var ItemShptEntryNo: Integer; IsATO: Boolean; var TempHandlingSpecification: Record "Tracking Specification"; var TempATOTrackingSpecification: Record "Tracking Specification"; TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; ShouldPostItemJnlLine: Boolean; WhseShip: Boolean; WhseRcptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header") begin @@ -12939,834 +12946,1960 @@ codeunit 80 "Sales-Post" begin end; + /// + /// Event raised by OnSumSalesLines2OnAfterDivideAmount. + /// + /// + /// Specifies the SalesLineQty parameter. + /// Specifies the QtyType parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnAfterDivideAmount(var OldSalesLine: Record "Sales Line"; var SalesLineQty: Decimal; QtyType: Option General,Invoicing,Shipping) begin end; + /// + /// Event raised by OnSumSalesLines2OnAfterCalcTotalAdjCostLCY. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnAfterCalcTotalAdjCostLCY(var TotalAdjCostLCY: decimal; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnSumSalesLines2OnBeforeCalcVATAmountLines. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the InsertSalesLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnBeforeCalcVATAmountLines(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; InsertSalesLine: Boolean; var TempVATAmountLine: Record "VAT Amount Line" temporary; QtyType: Option General,Invoicing,Shipping; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumSalesLines2OnBeforeNewSalesLineInsert. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnBeforeNewSalesLineInsert(var NewSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumSalesLines2SetFilter. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the InsertSalesLine parameter. + /// Specifies the QtyType parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2SetFilter(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; InsertSalesLine: Boolean; var QtyType: Option) begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnBeforePostTempWhseJnlLine2. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnBeforePostTempWhseJnlLine2(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterTestUpdatedSalesLine. + /// + /// + /// Specifies the EverythingInvoiced parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterTestUpdatedSalesLine(var SalesLine: Record "Sales Line"; var EverythingInvoiced: Boolean; SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineBeforeInitQtyToInvoice. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineBeforeInitQtyToInvoice(var TempSalesLine: Record "Sales Line" temporary; WhseShip: Boolean; WhseReceive: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitOutstanding(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitTempSalesLineQuantities. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitTempSalesLineQuantities(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterUpdateInvoicedValues. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterUpdateInvoicedValues(var TempSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; TempSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; TempSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterInsertSalesOrderHeader. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterInsertSalesOrderHeader(var SalesOrderLine: Record "Sales Line"; TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; WhseShip: Boolean; WhseReceive: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeUpdateInvoicedValues. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeUpdateInvoicedValues(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnSetDefaultQtyBlank. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesSetup parameter. + /// Specifies the SetDefaultQtyBlank parameter. [IntegrationEvent(true, false)] local procedure OnPostUpdateOrderLineOnSetDefaultQtyBlank(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; SalesSetup: Record "Sales & Receivables Setup"; var SetDefaultQtyBlank: Boolean) begin end; + /// + /// Event raised by OnCalcInvoiceOnAfterTempSalesLineSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvoiceOnAfterTempSalesLineSetFilters(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterCalcInvDiscount. + /// + /// + /// Specifies the TempWhseShptHeader parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterCalcInvDiscount(SalesHeader: Record "Sales Header"; TempWhseShptHeader: Record "Warehouse Shipment Header" temporary; PreviewMode: Boolean; var TempSalesLineGlobal: Record "Sales Line" temporary; SuppressCommit: Boolean; WhseReceive: Boolean; WhseShip: Boolean); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterReleaseSalesDocument. + /// + /// + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterReleaseSalesDocument(SalesHeader: Record "Sales Header"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeSetPostingFlags. + /// + /// + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the HideProgressWindow parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnBeforeSetPostingFlags(var SalesHeader: Record "Sales Header"; var TempSalesLineGlobal: Record "Sales Line" temporary; var ModifyHeader: Boolean; var HideProgressWindow: Boolean); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetPostingFlags. + /// + /// + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the ModifyHeader parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterSetPostingFlags(var SalesHeader: Record "Sales Header"; var TempSalesLineGlobal: Record "Sales Line" temporary; var ModifyHeader: Boolean); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetSourceCode. + /// + /// + /// Specifies the SourceCodeSetup parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetSourceCode(var SalesHeader: Record "Sales Header"; SourceCodeSetup: Record "Source Code Setup"; var SrcCode: Code[10]); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetPoszingFromWhseRef. + /// + /// + /// Specifies the InvtPickPutaway parameter. + /// Specifies the PostingFromWhseRef parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetPoszingFromWhseRef(var SalesHeader: Record "Sales Header"; var InvtPickPutaway: Boolean; var PostingFromWhseRef: Integer); begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCalcInvDiscount. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the RefreshNeeded parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCalcInvDiscount(var SalesHeader: Record "Sales Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseReceive: Boolean; WhseShip: Boolean; var RefreshNeeded: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCheckPostRestrictions. + /// + /// + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCheckPostRestrictions(var SalesHeader: Record "Sales Header"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnCheckAssosOrderLinesOnAfterSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssosOrderLinesOnAfterSetFilters(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnCheckSalesDocumentOnAfterCalcShouldCheckItemCharge. + /// + /// + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ShouldCheckItemCharge parameter. + /// Specifies the ModifyHeader parameter. [IntegrationEvent(true, false)] local procedure OnCheckSalesDocumentOnAfterCalcShouldCheckItemCharge(var SalesHeader: Record "Sales Header"; WhseReceive: Boolean; WhseShip: Boolean; var ShouldCheckItemCharge: Boolean; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForShipOnBeforeCheck. + /// + /// + /// Specifies the TempWhseShipmentHeader parameter. + /// Specifies the TempWhseReceiptHeader parameter. + /// Specifies the Ship parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForShipOnBeforeCheck(var SalesHeader: Record "Sales Header"; var TempWhseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWhseReceiptHeader: Record "Warehouse Receipt Header" temporary; var Ship: Boolean; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForReceiveOnBeforeCheck. + /// + /// + /// Specifies the TempWhseShipmentHeader parameter. + /// Specifies the TempWhseReceiptHeader parameter. + /// Specifies the Receive parameter. [IntegrationEvent(true, false)] local procedure OnCheckTrackingAndWarehouseForReceiveOnBeforeCheck(var SalesHeader: Record "Sales Header"; var TempWhseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWhseReceiptHeader: Record "Warehouse Receipt Header" temporary; var Receive: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingSpecificationOnAfterTempItemSalesLineLoop. + /// + /// [IntegrationEvent(false, false)] local procedure OnCheckTrackingSpecificationOnAfterTempItemSalesLineLoop(var TempItemSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckCustBlockageOnAfterTempLinesSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckCustBlockageOnAfterTempLinesSetFilters(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary); begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterTempPrepmtSalesLineSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterTempPrepmtSalesLineSetFilters(var TempPrepmtSalesLine: Record "Sales Line" temporary; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterGetSalesPrepmtAccount. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterGetSalesPrepmtAccount(var GLAcc: Record "G/L Account"; var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeGetSalesPrepmtAccount. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the GenPostingSetup parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeGetSalesPrepmtAccount(var GLAcc: Record "G/L Account"; var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header"; var GenPostingSetup: Record "General Posting Setup"; CompleteFunctionality: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterTempSalesLineSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempPrepmtSalesLine parameter. + /// Specifies the NextLineNo parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterTempSalesLineSetFilters(var TempSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempPrepmtSalesLine: Record "Sales Line" temporary; var NextLineNo: Integer) begin end; + /// + /// Event raised by OnFinalizePostingOnAfterUpdateItemChargeAssgnt. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnAfterUpdateItemChargeAssgnt(var SalesHeader: Record "Sales Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the TempItemChargeAssignmentSales parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the TempSalesLine parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the SalesPost parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeInsertTrackingSpecification(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)" temporary; SalesHeader: Record "Sales Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; EverythingInvoiced: Boolean; var TempSalesLine: Record "Sales Line" temporary; var TempSalesLineGlobal: Record "Sales Line" temporary; SalesPost: Codeunit "Sales-Post") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeCreateOutboxSalesTrans. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeCreateOutboxSalesTrans(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; EverythingInvoiced: Boolean; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeDeleteApprovalEntries. + /// + /// + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeDeleteApprovalEntries(var SalesHeader: Record "Sales Header"; var EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeGenJnlPostPreviewThrowError. + /// + /// + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeGenJnlPostPreviewThrowError(SalesHeader: Record "Sales Header"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforePost. + /// + /// + /// Specifies the PurchOrderLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforePost(var ItemJournalLine: Record "Item Journal Line"; PurchOrderLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostATOOnBeforePostedATOLinkInsert. + /// + /// + /// Specifies the AssemblyHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostATOOnBeforePostedATOLinkInsert(var PostedATOLink: Record "Posted Assemble-to-Order Link"; var AssemblyHeader: Record "Assembly Header"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostATOAssocItemJnlLineOnBeforeRemainingPost. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the PostedATOLink parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the ItemLedgShptEntryNo parameter. [IntegrationEvent(false, false)] local procedure OnPostATOAssocItemJnlLineOnBeforeRemainingPost(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var PostedATOLink: Record "Posted Assemble-to-Order Link"; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal; var ItemLedgShptEntryNo: Integer) begin end; + /// + /// Event raised by OnPostDropOrderShipmentOnAfterUpdateBlanketOrderLine. + /// + /// + /// Specifies the PurchOrderLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostDropOrderShipmentOnAfterUpdateBlanketOrderLine(PurchOrderHeader: Record "Purchase Header"; PurchOrderLine: Record "Purchase Line"; TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesShptHeader: Record "Sales Shipment Header"; SalesHeader: Record "Sales Header"; PurchRcptHeader: Record "Purch. Rcpt. Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyDocumentFields. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header") begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCalcShouldPostItemJnlLineItemCharges. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the ShouldPostItemJnlLineItemCharges parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCalcShouldPostItemJnlLineItemCharges(SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var ShouldPostItemJnlLineItemCharges: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterPrepareItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the RemAmt parameter. + /// Specifies the RemDiscAmt parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterPrepareItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; WhseShip: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var QtyToBeShipped: Decimal; TrackingSpecification: Record "Tracking Specification"; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; var QtyToBeShippedBase: Decimal; var RemAmt: Decimal; var RemDiscAmt: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyItemCharge. + /// + /// + /// Specifies the TempItemChargeAssgntSales parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyItemCharge(var ItemJournalLine: Record "Item Journal Line"; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeIsJobContactLineCheck. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the ShouldPostItemJnlLine parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the QtyToBeShipped parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeIsJobContactLineCheck(var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var ShouldPostItemJnlLine: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; QtyToBeShipped: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck(var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforePostItemJnlLineWhseLine. + /// + /// + /// Specifies the TempWhseJnlLine parameter. + /// Specifies the TempWhseTrackingSpecification parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforePostItemJnlLineWhseLine(var ItemJnlLine: Record "Item Journal Line"; var TempWhseJnlLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeTransferReservToItemJnlLine. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the CheckApplFromItemEntry parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeShippedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeTransferReservToItemJnlLine(SalesLine: Record "Sales Line"; ItemJnlLine: Record "Item Journal Line"; var CheckApplFromItemEntry: Boolean; var TrackingSpecification: Record "Tracking Specification"; QtyToBeShippedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeCopyTrackingFromSpec. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeCopyTrackingFromSpec(TrackingSpecification: Record "Tracking Specification"; var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; IsATO: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine(var ItemChargeSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemJnlLinePrepareJournalLineOnBeforeCalcItemJnlAmounts. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLinePrepareJournalLineOnBeforeCalcItemJnlAmounts(var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; IsATO: Boolean) begin end; + /// + /// Event raised by OnPostItemChargeOnBeforePostItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the TempItemChargeAssgntSales parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnBeforePostItemJnlLine(var SalesLineToPost: Record "Sales Line"; var SalesLine: Record "Sales Line"; QtyToAssign: Decimal; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnAfterCopyToItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the GeneralLedgerSetup parameter. + /// Specifies the QtyToInvoice parameter. + /// Specifies the TempItemChargeAssignmentSales parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnAfterCopyToItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var SalesLine: Record "Sales Line"; GeneralLedgerSetup: Record "General Ledger Setup"; QtyToInvoice: Decimal; var TempItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)" temporary) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnAfterTempTrackingSpecificationInvSetFilters. + /// + /// + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the TempTrackingSpecificationInv parameter. + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the TotalSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnAfterTempTrackingSpecificationInvSetFilters(SalesHeader: record "Sales Header"; var ItemJnlLine2: record "Item Journal Line"; var TempTrackingSpecificationInv: Record "Tracking Specification" temporary; SalesLine: Record "Sales Line"; var IsHandled: Boolean; var TotalSalesLineLCY: Record "Sales Line"; var TotalSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnBeforeTestJobNo. + /// + /// + /// Specifies the SkipTestJobNo parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnBeforeTestJobNo(SalesLine: Record "Sales Line"; var SkipTestJobNo: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnBeforeLastRunWithCheck. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnBeforeLastRunWithCheck(NonDistrItemJnlLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnBeforeRunWithCheck. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnBeforeRunWithCheck(ItemJnlLine2: Record "Item Journal Line"; var IsHandled: Boolean; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerShptOnBeforeTestJobNo. + /// + /// + /// Specifies the SkipTestJobNo parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerShptOnBeforeTestJobNo(SalesShipmentLine: Record "Sales Shipment Line"; var SkipTestJobNo: Boolean; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerShptOnAfterCheckItemChargePerShpt. + /// + /// + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the DistributeCharge parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerShptOnAfterCheckItemChargePerShpt(SalesShipmentLine: Record "Sales Shipment Line"; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; DistributeCharge: Boolean; var IsHandled: Boolean; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerShptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the DistributeCharge parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerShptOnAfterCalcDistributeCharge(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesShptLine: Record "Sales Shipment Line"; TempItemLedgEntry: Record "Item Ledger Entry" temporary; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; var DistributeCharge: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the ReturnRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the DistributeCharge parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; ReturnRcptLine: Record "Return Receipt Line"; TempItemLedgEntry: Record "Item Ledger Entry" temporary; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; var DistributeCharge: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRetRcptOnBeforeTestFieldJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetRcptOnBeforeTestFieldJobNo(ReturnReceiptLine: Record "Return Receipt Line"; var IsHandled: Boolean; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingLineOnAfterRetrieveInvoiceSpecification. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingLineOnAfterRetrieveInvoiceSpecification(var SalesLine: Record "Sales Line"; var TempInvoicingSpecification: Record "Tracking Specification" temporary; var TrackingSpecificationExists: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnAfterSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnAfterSetFilters(var SalesShipmentLine: Record "Sales Shipment Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnAfterUpdateSalesShptLineFields. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnAfterUpdateSalesShptLineFields(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the HasATOShippedNotInvoiced parameter. + /// Specifies the ShouldAdjustQuantityRounding parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding(SalesShptLine: Record "Sales Shipment Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; HasATOShippedNotInvoiced: Boolean; var ShouldAdjustQuantityRounding: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeShipmentInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the ItemJnlRollRndg parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(true, false)] local procedure OnPostItemTrackingForShipmentOnBeforeShipmentInvoiceErr(SalesLine: Record "Sales Line"; var IsHandled: Boolean; SalesHeader: Record "Sales Header"; var ItemJnlRollRndg: Boolean; TrackingSpecificationExists: Boolean; var TempTrackingSpecification: Record "Tracking Specification" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeReturnReceiptInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the ItemJnlRollRndg parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(true, false)] local procedure OnPostItemTrackingForShipmentOnBeforeReturnReceiptInvoiceErr(SalesLine: Record "Sales Line"; var IsHandled: Boolean; SalesHeader: Record "Sales Header"; var ItemJnlRollRndg: Boolean; TrackingSpecificationExists: Boolean; var TempTrackingSpecification: Record "Tracking Specification" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnAfterSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnAfterSetFilters(var ReturnReceiptLine: Record "Return Receipt Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertCrMemoLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertCrMemoLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean; xSalesLine: Record "Sales Line"; SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertInvoiceLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the ShouldInsertInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertInvoiceLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean; xSalesLine: Record "Sales Line"; SalesInvHeader: Record "Sales Invoice Header"; var ShouldInsertInvoiceLine: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertReturnReceiptLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertReturnReceiptLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertShipmentLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesLineACY parameter. + /// Specifies the DocType parameter. + /// Specifies the DocNo parameter. + /// Specifies the ExtDocNo parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertShipmentLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean; SalesLineACY: Record "Sales Line"; DocType: Option; DocNo: Code[20]; ExtDocNo: Code[35]) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterSetEverythingInvoiced. + /// + /// + /// Specifies the EverythingInvoiced parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterSetEverythingInvoiced(SalesLine: Record "Sales Line"; var EverythingInvoiced: Boolean; var IsHandled: Boolean; SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterRoundAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterRoundAmount(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; GenJnlLineDocNo: Code[20]) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeTestJobNo(SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterPostItemTrackingLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempPostedATOLink parameter. [IntegrationEvent(true, false)] local procedure OnPostSalesLineOnAfterPostItemTrackingLine(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterTestSalesLine. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the WhseShptHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CostBaseAmount parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterTestSalesLine(var SalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header"; var WhseShptHeader: Record "Warehouse Shipment Header"; WhseShip: Boolean; PreviewMode: Boolean; var CostBaseAmount: Decimal) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforePostItemTrackingLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(true, false)] local procedure OnPostSalesLineOnBeforePostItemTrackingLine(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var ItemLedgShptEntryNo: Integer; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal; GenJnlLineDocNo: Code[20]; SrcCode: Code[10]; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeTestUnitOfMeasureCode. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeTestUnitOfMeasureCode(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterAdjustPrepmtAmountLCY. + /// + /// + /// Specifies the xSalesLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterAdjustPrepmtAmountLCY(var SalesLine: record "Sales Line"; var xSalesLine: record "Sales Line"; TempTrackingSpecification: record "Tracking Specification" temporary; SalesHeader: record "Sales Header") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterInsertReturnReceiptLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the ReturnRcptHeader parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the SalesShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterInsertReturnReceiptLine(var SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var xSalesLine: Record "Sales Line"; ReturnRcptHeader: Record "Return Receipt Header"; RoundingLineInserted: Boolean; var TempTrackingSpecification: Record "Tracking Specification" temporary; var ItemLedgShptEntryNo: Integer; SalesShipmentHeader: Record "Sales Shipment Header") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterGetSalesOrderLine. + /// + /// + /// Specifies the SalesShptLine parameter. + /// Specifies the SalesOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterGetSalesOrderLine(var TempSalesLine: Record "Sales Line" temporary; SalesShptLine: Record "Sales Shipment Line"; SalesOrderLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeCalcQuantityInvoiced. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeCalcQuantityInvoiced(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnAfterGetSalesOrderLine. + /// + /// + /// Specifies the ReturnRcptLine parameter. + /// Specifies the SalesOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnAfterGetSalesOrderLine(var TempSalesLine: Record "Sales Line" temporary; ReturnRcptLine: Record "Return Receipt Line"; SalesOrderLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeInitQtyToInvoice(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnAfterModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnAfterModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeCalcQuantityInvoiced. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeCalcQuantityInvoiced(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnProcessAssocItemJnlLineOnBeforeTempDropShptPostBufferInsert. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnProcessAssocItemJnlLineOnBeforeTempDropShptPostBufferInsert(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnProcessAssocItemJnlLineOnBeforePostAssocItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnProcessAssocItemJnlLineOnBeforePostAssocItemJnlLine(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnRoundAmountOnBeforeIncrAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineQty parameter. + /// Specifies the TotalSalesLine parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnBeforeIncrAmount(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineQty: Decimal; var TotalSalesLine: Record "Sales Line"; var TotalSalesLineLCY: Record "Sales Line"; var xSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforeCheckTotalInvoiceAmount. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeCheckTotalInvoiceAmount(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnRunOnBeforeFinalizePosting. + /// + /// + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the ReturnReceiptHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeFinalizePosting(var SalesHeader: Record "Sales Header"; var SalesShipmentHeader: Record "Sales Shipment Header"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var ReturnReceiptHeader: Record "Return Receipt Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; CommitIsSuppressed: Boolean; GenJnlLineExtDocNo: Code[35]; var EverythingInvoiced: Boolean; GenJnlLineDocNo: Code[20]; SrcCode: Code[10]; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforePostSalesLineEndLoop. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the LastLineRetrieved parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the RecSalesHeader parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the ReturnReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforePostSalesLineEndLoop(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var LastLineRetrieved: Boolean; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; RecSalesHeader: Record "Sales Header"; xSalesLine: Record "Sales Line"; var SalesShipmentHeader: Record "Sales Shipment Header"; var ReturnReceiptHeader: Record "Return Receipt Header") begin end; + /// + /// Event raised by OnGetATOItemLedgEntriesNotInvoicedOnBeforeItemLedgEntryNotInvoicedInsert. + /// + /// [IntegrationEvent(false, false)] local procedure OnGetATOItemLedgEntriesNotInvoicedOnBeforeItemLedgEntryNotInvoicedInsert(var ItemLedgEntry: Record "Item Ledger Entry") begin end; + /// + /// Event raised by OnGetPostedDocumentRecordElseCase. + /// + /// + /// Specifies the PostedSalesDocumentVariant parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnGetPostedDocumentRecordElseCase(SalesHeader: Record "Sales Header"; var PostedSalesDocumentVariant: Variant; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnGetSalesLinesOnAfterFillTempLines. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnGetSalesLinesOnAfterFillTempLines(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; - [IntegrationEvent(false, false)] - local procedure OnPostItemLineOnAfterMakeSalesLineToShip(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) + /// + /// Event raised by OnPostItemLineOnAfterMakeSalesLineToShip. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempPostedATOLink parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + [IntegrationEvent(false, false)] + local procedure OnPostItemLineOnAfterMakeSalesLineToShip(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemLineOnBeforeMakeSalesLineToShip. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempPostedATOLink parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the IsHandled parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the ReturnReceiptHeader parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the TempHandlingSpecificationInv parameter. + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnPostItemLineOnBeforeMakeSalesLineToShip(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var ItemLedgShptEntryNo: Integer; var IsHandled: Boolean; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; ReturnReceiptHeader: Record "Return Receipt Header"; var TempHandlingSpecification: Record "Tracking Specification" temporary; var TempHandlingSpecificationInv: Record "Tracking Specification" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnPostItemLineOnBeforePostItemInvoiceLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempPostedATOLink parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemLineOnBeforePostItemInvoiceLine(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterPostItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnAfterPostItemJnlLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargeLineOnAfterTempItemChargeAssgntSalesLoop. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineParam parameter. [IntegrationEvent(true, false)] local procedure OnPostItemChargeLineOnAfterTempItemChargeAssgntSalesLoop(var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineParam: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargeLineOnBeforePostItemCharge. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeLineOnBeforePostItemCharge(var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforeReturnRcptLineModify. + /// + /// + /// Specifies the ReturnRcptLine parameter. + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforeReturnRcptLineModify(SalesHeader: Record "Sales Header"; var ReturnRcptLine: Record "Return Receipt Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforeAdjustQuantityRounding. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the ShouldAdjustQuantityRounding parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforeAdjustQuantityRounding(ReturnRcptLine: Record "Return Receipt Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; var ShouldAdjustQuantityRounding: Boolean) begin end; + /// + /// Event raised by OnReleaseSalesDocumentOnBeforeSetStatus. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SavedStatus parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the SuppressCommit parameter. [IntegrationEvent(false, false)] local procedure OnReleaseSalesDocumentOnBeforeSetStatus(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; SavedStatus: Enum "Sales Document Status"; PreviewMode: Boolean; SuppressCommit: Boolean); begin end; + /// + /// Event raised by OnRoundAmountOnAfterAssignSalesLines. + /// + /// + /// Specifies the SalesLineACY parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TotalSalesLines parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnAfterAssignSalesLines(var xSalesLine: Record "Sales Line"; var SalesLineACY: Record "Sales Line"; SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var TotalSalesLines: Record "Sales Line"; var TotalSalesLineLCY: Record "Sales Line"; var SalesLine: Record "Sales Line"); begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification. + /// + /// [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification(var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSendICDocumentOnBeforeSetICStatus. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSendICDocumentOnBeforeSetICStatus(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSendPostedDocumentRecordElseCase. + /// + /// + /// Specifies the DocumentSendingProfile parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSendPostedDocumentRecordElseCase(SalesHeader: Record "Sales Header"; var DocumentSendingProfile: Record "Document Sending Profile"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestSalesLineOnAfterTestSalesLineJob. + /// + /// [IntegrationEvent(false, false)] local procedure OnTestSalesLineOnAfterTestSalesLineJob(var SalesLine: record "Sales Line") begin end; + /// + /// Event raised by OnTestSalesLineOnAfterCalcShouldTestReturnQty. + /// + /// + /// Specifies the ShouldTestReturnQty parameter. [IntegrationEvent(false, false)] local procedure OnTestSalesLineOnAfterCalcShouldTestReturnQty(SalesLine: Record "Sales Line"; var ShouldTestReturnQty: Boolean) begin end; + /// + /// Event raised by OnBeforeTestGenPostingGroups. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestGenPostingGroups(var SalesLine: record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateSalesLineBeforePostOnAfterPostJobContractLine. + /// + /// + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateSalesLineBeforePostOnAfterPostJobContractLine(SalesInvoiceHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnUpdateAssosOrderOnAfterPurchOrderHeaderModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderOnAfterPurchOrderHeaderModify(var PurchOrderHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterModifyPurchLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterModifyPurchLine(var PurchOrderLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnUpdateAssocOrderOnBeforeModifyPurchLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnBeforeModifyPurchLine(var PurchOrderLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnAfterReleasePurchaseDocument. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnAfterReleasePurchaseDocument(var PurchOrderHeader: Record "Purchase Header"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeReleasePurchaseDocument. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeReleasePurchaseDocument(var PurchOrderHeader: Record "Purchase Header"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateAfterPostingOnBeforeFindSetForUpdate. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAfterPostingOnBeforeFindSetForUpdate(var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheck. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheck(var BlanketOrderSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheckSellToCustomerNo. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheckSellToCustomerNo(var BlanketOrderSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeInitOutstanding(var BlanketOrderSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnUpdateInvoicedQtyOnShipmentLineOnBeforeModifySalesShptLine. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnUpdateInvoicedQtyOnShipmentLineOnBeforeModifySalesShptLine(var SalesShptLine: Record "Sales Shipment Line"; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnAfterInitAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterInitAmount(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnAfterInitLineDiscountAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterInitLineDiscountAmount(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineRemainderModify. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineRemainderModify(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency) begin end; + /// + /// Event raised by OnBeforeCalcVATBaseAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcVATBaseAmount(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostUpdateInvoiceLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateInvoiceLine(var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostUpdateReturnReceiptLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostUpdateReturnReceiptLine(var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertTrackingSpecification(SalesHeader: Record "Sales Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSendPostedDocumentRecord. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the DocumentSendingProfile parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSendPostedDocumentRecord(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var DocumentSendingProfile: Record "Document Sending Profile") begin end; + /// + /// Event raised by OnAfterPostItemChargeLine. + /// + /// + /// Specifies the SalesLineACY parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargeLine(var SalesLine: Record "Sales Line"; SalesLineACY: Record "Sales Line") begin end; + /// + /// Event raised by OnDeleteAfterPostingOnAfterDeleteLinks. + /// + /// [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnAfterDeleteLinks(var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnDeleteAfterPostingOnBeforeDeleteSalesHeader. + /// + /// [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnBeforeDeleteSalesHeader(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnDeleteAfterPostingOnBeforeDeleteLinks. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnBeforeDeleteLinks(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforeCheckAndUpdate. + /// + /// [IntegrationEvent(false, false)] local procedure OnRunOnBeforeCheckAndUpdate(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateWonOpportunitiesOnBeforeOpportunityModify. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the Opportunity parameter. [IntegrationEvent(false, false)] local procedure OnUpdateWonOpportunitiesOnBeforeOpportunityModify(var SalesHeader: Record "Sales Header"; SalesInvoiceHeader: Record "Sales Invoice Header"; var Opportunity: Record Opportunity) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCheckShip. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCheckShip(var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnBeforeUpdateReceiveAndCheckIfInvPutawayExists. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateReceiveAndCheckIfInvPutawayExists(var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnModifyTempLineOnAfterSalesLineModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnAfterSalesLineModify(var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnModifyTempLineOnBeforeTransferFields. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnBeforeTransferFields(var SalesLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnModifyTempLineOnBeforeSalesLineModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnBeforeSalesLineModify(var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesLine(SalesLine: Record "Sales Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesShipmentLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesShipmentLine(SalesShipmentLine: Record "Sales Shipment Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnReceiptLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnReceiptLine(ReturnReceiptLine: Record "Return Receipt Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateSalesLineDimSetIDFromAppliedEntry. + /// + /// + /// Specifies the ItemLedgEntry parameter. + /// Specifies the DimSetID parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateSalesLineDimSetIDFromAppliedEntry(var SalesLineToPost: Record "Sales Line"; var ItemLedgEntry: Record "Item Ledger Entry"; DimSetID: array[10] of Integer) begin end; + /// + /// Event raised by OnDeleteAfterPostingOnAfterSetupSalesHeader. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnAfterSetupSalesHeader(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnDeleteAfterPostingOnAfterSalesLineDeleteAll. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnAfterSalesLineDeleteAll(SalesHeader: Record "Sales Header"; SalesInvoiceHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; CommitIsSuppressed: Boolean; EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentConditionOnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentConditionOnBeforeUpdateBlanketOrderLine(var TempSalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostResJnlLineOnAfterInit. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostResJnlLineOnAfterInit(var ResJnlLine: Record "Res. Journal Line"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists. + /// + /// + /// Specifies the ReplacePostingDate parameter. + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the VATDateExists parameter. + /// Specifies the ReplaceVATDate parameter. + /// Specifies the VATDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists(var PostingDateExists: Boolean; var ReplacePostingDate: Boolean; var ReplaceDocumentDate: Boolean; var PostingDate: Date; var SalesHeader: Record "Sales Header"; var ModifyHeader: Boolean; var VATDateExists: Boolean; var ReplaceVATDate: Boolean; var VATDate: Date) begin end; + /// + /// Event raised by OnBeforeValidateICPartnerBusPostingGroups. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeValidateICPartnerBusPostingGroups(var TempICGenJnlLine: Record "Gen. Journal Line" temporary; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterGetCurrency. + /// + /// + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetCurrency(CurrencyCode: Code[10]; var Currency: Record Currency) begin end; + /// + /// Event raised by OnBeforePostItemLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemLine(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean; var TempSalesLineGlobal: Record "Sales Line" temporary; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnBeforePostItemChargeLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargeLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct(var TempPrepmtSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnAfterInsertReturnReceiptHeader. + /// + /// + /// Specifies the ReturnReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertReturnReceiptHeader(var SalesHeader: Record "Sales Header"; var ReturnReceiptHeader: Record "Return Receipt Header") begin @@ -13774,384 +14907,888 @@ codeunit 80 "Sales-Post" #if not CLEAN27 [Obsolete('This event is never raised.', '27.0')] + /// + /// Event raised by OnAfterGetAmountsForDeferral. + /// + /// + /// Specifies the AmtToDefer parameter. + /// Specifies the AmtToDeferACY parameter. + /// Specifies the DeferralAccount parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetAmountsForDeferral(SalesLine: Record "Sales Line"; var AmtToDefer: Decimal; var AmtToDeferACY: Decimal; var DeferralAccount: Code[20]) begin end; #endif + /// + /// Event raised by OnPostJobContractLineBeforeTestFields. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostJobContractLineBeforeTestFields(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertCrMemoHeaderOnAfterCalcShouldProcessAsReturnOrder. + /// + /// + /// Specifies the ShouldProcessAsReturnOrder parameter. [IntegrationEvent(false, false)] local procedure OnInsertCrMemoHeaderOnAfterCalcShouldProcessAsReturnOrder(SalesHeader: Record "Sales Header"; var ShouldProcessAsReturnOrder: Boolean) begin end; + /// + /// Event raised by OnUpdateQtyToBeInvoicedForShipmentOnAfterSetQtyToBeInvoiced. + /// + /// + /// Specifies the HasATOShippedNotInvoiced parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateQtyToBeInvoicedForShipmentOnAfterSetQtyToBeInvoiced(TrackingSpecificationExists: Boolean; HasATOShippedNotInvoiced: Boolean; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnBeforePostItemJnlLineItemCharges. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLineItemCharges(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeInitOutstanding(var SalesOrderLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeGetATOItemLedgEntriesNotInvoiced. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeGetATOItemLedgEntriesNotInvoiced(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckSalesDocumentOnBeforeCheckDueDate. + /// + /// + /// Specifies the ShouldCheckDueDate parameter. [IntegrationEvent(false, false)] local procedure OnCheckSalesDocumentOnBeforeCheckDueDate(var SalesHeader: Record "Sales Header"; var ShouldCheckDueDate: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineTrackingOnAfterCalcShouldInsertTrkgSpecInv. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the ShouldInsertTrkgSpecInv parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineTrackingOnAfterCalcShouldInsertTrkgSpecInv(var SalesLine: Record "Sales Line"; QtyToBeInvoiced: Decimal; var ShouldInsertTrkgSpecInv: Boolean) begin end; + /// + /// Event raised by OnUpdateSalesLineBeforePostOnBeforeGetUnitCost. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateSalesLineBeforePostOnBeforeGetUnitCost(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcItemJnlAmountsFromQtyToBeInvoiced. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcItemJnlAmountsFromQtyToBeInvoiced(var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; QtyToBeInvoiced: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForReceiveOnAfterSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForReceiveOnAfterSetFilters(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnRunOnBeforeCalcVATAmountLines. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeCalcVATAmountLines(var TempSalesLineGlobal: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestSalesLineOnBeforeTestFieldQtyToShip. + /// + /// + /// Specifies the ShouldTestQtyToShip parameter. [IntegrationEvent(false, false)] local procedure OnTestSalesLineOnBeforeTestFieldQtyToShip(SalesLine: Record "Sales Line"; var ShouldTestQtyToShip: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertShipmentLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertShipmentLine(var SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnIsEndLoopForShippedNotInvoicedOnBeforeExit. + /// + /// + /// Specifies the SalesShptLine parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnIsEndLoopForShippedNotInvoicedOnBeforeExit(SalesLine: Record "Sales Line"; SalesShptLine: Record "Sales Shipment Line"; RemQtyToBeInvoiced: Decimal; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLinePrepareJournalLineOnBeforeCalcQuantities. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLinePrepareJournalLineOnBeforeCalcQuantities(var ItemJnlLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; QtyToBeShipped: Decimal; QtyToBeShippedBase: Decimal; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean; IsATO: Boolean) begin end; + /// + /// Event raised by OnBeforeInvoiceRounding. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInvoiceRounding(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyTrackingFromSpec. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyTrackingFromSpec(var ItemJnlLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; QtyToBeShipped: Decimal; IsATO: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeValidateQtyToInvoice. + /// + /// + /// Specifies the ShouldValidateQtyToInvoice parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeValidateQtyToInvoice(var SalesHeader: Record "Sales Header"; var ShouldValidateQtyToInvoice: Boolean; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnAfterSetFilterTempSalesLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnAfterSetFilterTempSalesLine(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckTrackingSpecificationOnBeforeGetItemTrackingSettings. + /// + /// + /// Specifies the ItemTrackingSetup parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingSpecificationOnBeforeGetItemTrackingSettings(var TempItemSalesLine: Record "Sales Line" temporary; var ItemTrackingSetup: Record "Item Tracking Setup"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForReceipt. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForReceipt(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineTrackingOnBeforeInsertTempTrkgSpec. + /// + /// + /// Specifies the TempTrackingSpec parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineTrackingOnBeforeInsertTempTrkgSpec(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempTrackingSpec: Record "Tracking Specification" temporary; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInsertInvoiceHeaderOnBeforeCheckDocumentType. + /// + /// + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesSetup parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertInvoiceHeaderOnBeforeCheckDocumentType(SalesHeader: Record "Sales Header"; var SalesInvHeader: Record "Sales Invoice Header"; SalesSetup: Record "Sales & Receivables Setup"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnBeforePostBalancingEntry. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the TotalSalesLine parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnBeforePostBalancingEntry(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var TotalSalesLine: Record "Sales Line"; var TotalSalesLineLCY: Record "Sales Line"; SuppressCommit: Boolean; PreviewMode: Boolean; InvoicePostingParameters: Record "Invoice Posting Parameters"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin end; + /// + /// Event raised by OnBeforeFindNotShippedLines. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeFindNotShippedLines(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforePostSalesLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesLineACY parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforePostSalesLine(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; SrcCode: Code[10]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var IsHandled: Boolean; SalesLineACY: Record "Sales Line") begin end; + /// + /// Event raised by OnAfterUpdateInvoiceRounding. + /// + /// + /// Specifies the TotalSalesLine parameter. + /// Specifies the SalesLine parameter. + /// Specifies the Currency parameter. + /// Specifies the BiggestLineNo parameter. + /// Specifies the LastLineRetrieved parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the RoundingLineNo parameter. + /// Specifies the UseTempData parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoiceRounding(var SalesHeader: Record "Sales Header"; var TotalSalesLine: Record "Sales Line"; var SalesLine: Record "Sales Line"; var Currency: Record Currency; var BiggestLineNo: Integer; var LastLineRetrieved: Boolean; var RoundingLineInserted: Boolean; var RoundingLineNo: Integer; UseTempData: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterSetFilters(var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostItemLineOnBeforePostItemJnlLineForInvoiceDoc. + /// + /// + /// Specifies the SalesLineToShip parameter. + /// Specifies the Ship parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the TempTrackingSpecificationInv parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. + /// Specifies the QtyToInvoice parameter. + /// Specifies the TempAssembletoOrderLink parameter. [IntegrationEvent(true, false)] local procedure OnPostItemLineOnBeforePostItemJnlLineForInvoiceDoc(SalesHeader: Record "Sales Header"; var SalesLineToShip: Record "Sales Line"; Ship: Boolean; var ItemLedgShptEntryNo: Integer; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; SalesShptHeader: Record "Sales Shipment Header"; var TempHandlingSpecification: Record "Tracking Specification" temporary; var TempTrackingSpecificationInv: Record "Tracking Specification" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean; QtyToInvoice: Decimal; TempAssembletoOrderLink: Record "Posted Assemble-to-Order Link" temporary) begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForReceipt. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the QtyToInvoiceBaseInTrackingSpec parameter. + /// Specifies the ShouldPostItemTrackingForReceipt parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForReceipt(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; RemQtyToBeInvoiced: Decimal; QtyToInvoiceBaseInTrackingSpec: Decimal; var ShouldPostItemTrackingForReceipt: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForShipment. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the QtyToInvoiceBaseInTrackingSpec parameter. + /// Specifies the ShouldPostItemTrackingForShipment parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForShipment(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; RemQtyToBeInvoiced: Decimal; QtyToInvoiceBaseInTrackingSpec: Decimal; var ShouldPostItemTrackingForShipment: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeGetQuantityShipped. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeGetQuantityShipped(var TempSalesLine: Record "Sales Line"; var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeGetReturnQtyReceived. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeGetReturnQtyReceived(var TempSalesLine: Record "Sales Line"; var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldProcessReceipt. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the ShouldProcessReceipt parameter. + /// Specifies the ItemJnlRollRndg parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldProcessReceipt(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var ShouldProcessReceipt: Boolean; var ItemJnlRollRndg: Boolean) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeInitOutstanding(var SalesOrderLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnBeforeBalAccountNoWindowUpdate. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnBeforeBalAccountNoWindowUpdate(HideProgressWindow: Boolean; var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterCalcShouldCalcPrepmtAmounts. + /// + /// + /// Specifies the ShouldCalcPrepmtAmounts parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterCalcShouldCalcPrepmtAmounts(var TempSalesLine: Record "Sales Line" temporary; var ShouldCalcPrepmtAmounts: Boolean) begin end; + /// + /// Event raised by OnAfterGetGeneralPostingSetup. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetGeneralPostingSetup(var GeneralPostingSetup: Record "General Posting Setup"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnCheckItemTrackingQuantityOnDocumentTypeCaseElse. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckItemTrackingQuantityOnDocumentTypeCaseElse(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnSetCommitBehavior. + /// + /// [IntegrationEvent(false, false)] local procedure OnSetCommitBehavior(var ErrorOnCommit: Boolean) begin end; #if not CLEAN27 + /// + /// Event raised by OnSetPostingPreviewDocumentNo. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnSetPostingPreviewDocumentNo(var PreviewDocumentNo: Code[20]; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnGetPostingPreviewDocumentNos. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnGetPostingPreviewDocumentNos(var PreviewDocumentNos: List of [Code[20]]) begin end; #endif + /// + /// Event raised by OnPostInvoiceOnAfterPostLines. + /// + /// + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnAfterPostLines(var SalesHeader: Record "Sales Header"; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeAssignQtyToInvoice. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeAssignQtyToInvoice(var TempSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeItemLedgerEntryExist. + /// + /// + /// Specifies the ShipOrReceive parameter. + /// Specifies the HasItemLedgerEntry parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeItemLedgerEntryExist(var SalesLine: Record "Sales Line"; ShipOrReceive: Boolean; var HasItemLedgerEntry: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterCalcShouldInsertInvoiceHeader. + /// + /// + /// Specifies the ShouldInsertInvoiceHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterCalcShouldInsertInvoiceHeader(var SalesHeader: Record "Sales Header"; var ShouldInsertInvoiceHeader: Boolean) begin end; + /// + /// Event raised by OnInsertShptEntryRelationOnAfterItemEntryRelationInsert. + /// + /// + /// Specifies the ItemEntryRelation parameter. + /// Specifies the xSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertShptEntryRelationOnAfterItemEntryRelationInsert(SalesShipmentLine: Record "Sales Shipment Line"; var ItemEntryRelation: Record "Item Entry Relation"; xSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnBeforePostItemChargePerRetRcpt. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempItemChargeAssignmentSales parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRetRcpt(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeSetInvoiceFields. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the ShouldSetInvoiceFields parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeSetInvoiceFields(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line"; var ShouldSetInvoiceFields: Boolean) begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeError. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the InvoiceEverything parameter. [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeError(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var InvoiceEverything: Boolean) begin end; + /// + /// Event raised by OnBeforeGetSalesLineAdjCostLCY. + /// + /// + /// Specifies the QtyType parameter. + /// Specifies the AdjCostLCY parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetSalesLineAdjCostLCY(SalesLine2: Record "Sales Line"; QtyType: Option General,Invoicing,Shipping; AdjCostLCY: Decimal; var Result: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeShouldTestGetShipmentPPmtAmtToDeduct. + /// + /// + /// Specifies the CompleteFunctionality parameter. + /// Specifies the ShouldTestGetShipmentPPmtAmtToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeShouldTestGetShipmentPPmtAmtToDeduct(SalesHeader: Record "Sales Header"; CompleteFunctionality: Boolean; var ShouldTestGetShipmentPPmtAmtToDeduct: Boolean) begin end; + /// + /// Event raised by OnAfterDeleteApprovalEntries. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the ReturnReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterDeleteApprovalEntries(var SalesHeader: Record "Sales Header"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var SalesShipmentHeader: Record "Sales Shipment Header"; var ReturnReceiptHeader: Record "Return Receipt Header") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeUpdateSalesLineBeforePost. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeUpdateSalesLineBeforePost(var SalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header"; WhseShip: Boolean; WhseReceive: Boolean; RoundingLineInserted: Boolean; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnAfterSumSalesLines2. + /// + /// + /// Specifies the OldSalesLine parameter. + /// Specifies the NewSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterSumSalesLines2(var SalesHeader: Record "Sales Header"; var OldSalesLine: Record "Sales Line"; var NewSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnCheckPostWhseShptLinesOnAfterWhseShptLinesFound. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WhseShptLinesFound parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WarehouseShipmentLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckPostWhseShptLinesOnAfterWhseShptLinesFound(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line"; var WhseShptLinesFound: Boolean; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseShip: Boolean; WhseReceive: Boolean; var WarehouseShipmentLine: Record "Warehouse Shipment Line") begin end; + /// + /// Event raised by OnAfterDecrementPrepmtAmtInvLCY. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the PrepmtAmountInvLCY parameter. + /// Specifies the PrepmtVATAmountInvLCY parameter. [IntegrationEvent(false, false)] local procedure OnAfterDecrementPrepmtAmtInvLCY(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var PrepmtAmountInvLCY: Decimal; var PrepmtVATAmountInvLCY: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineGet. + /// + /// + /// Specifies the TempVATAmountLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineGet(SalesLine: Record "Sales Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeAdjustPrepmtAmountLCY. + /// + /// + /// Specifies the PrepmtSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustPrepmtAmountLCY(SalesHeader: Record "Sales Header"; var PrepmtSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostResJnlLineOnShouldExit. + /// + /// + /// Specifies the ShouldExit parameter. [IntegrationEvent(false, false)] local procedure OnPostResJnlLineOnShouldExit(var SalesLine: Record "Sales Line"; var ShouldExit: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeUpdateTempVATAmountLineRemainder. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeUpdateTempVATAmountLineRemainder(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterCalcTotalChargeAmt. + /// + /// + /// Specifies the QtyToAssign parameter. + /// Specifies the SalesLine parameter. + /// Specifies the xSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnAfterCalcTotalChargeAmt(var SalesLineToPost: Record "Sales Line"; QtyToAssign: Decimal; var SalesLine: Record "Sales Line"; xSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnBeforeCheckPostRestrictions. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPostRestrictions(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeValidateType. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeValidateType(var TempPrepmtSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeValidateDocumentDate. + /// + /// + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeValidateDocumentDate(var PostingDateExists: Boolean; var ReplaceDocumentDate: Boolean; var PostingDate: Date; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnCheckSalesDocumentOnBeforeCheckSalesDim. + /// + /// + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckSalesDocumentOnBeforeCheckSalesDim(var SalesHeader: Record "Sales Header"; var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeCreatePrepaymentTextLines. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePrepaymentTextLines(var TempPrepmtSalesLine: Record "Sales Line" temporary; var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header"; CompleteFunctionality: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckAndUpdate. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckAndUpdate(var SalesHeader: Record "Sales Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeCollectValueEntryRelation. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeCollectValueEntryRelation(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesInvoiceLine: Record "Sales Invoice Line") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeCollectValueEntryRelationForCrMemo. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeCollectValueEntryRelationForCrMemo(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesInvoiceLine: Record "Sales Invoice Line") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterCollectValueEntryRelation. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterCollectValueEntryRelation(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesInvoiceLine: Record "Sales Invoice Line") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterCreatePostedDeferralSchedule. + /// + /// + /// Specifies the SalesInvHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterCreatePostedDeferralSchedule(var SalesInvLine: Record "Sales Invoice Line"; SalesInvHeader: Record "Sales Invoice Header") begin end; + /// + /// Event raised by OnInvoiceRoundingOnAfterValidateQuantity. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnInvoiceRoundingOnAfterValidateQuantity(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInvoiceRoundingOnAfterSetLineNo. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnInvoiceRoundingOnAfterSetLineNo(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line") begin @@ -14168,16 +15805,32 @@ codeunit 80 "Sales-Post" begin end; + /// + /// Event raised by OnInsertPostedHeadersOnBeforeDeleteServItemOnSaleCreditMemo. + /// + /// + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnBeforeDeleteServItemOnSaleCreditMemo(var SalesHeader: Record "Sales Header"; var SalesShipmentHeader: Record "Sales Shipment Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterInsertInvoiceHeader. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInsertInvoiceHeader(var SalesHeader: Record "Sales Header"; var SalesInvoiceHeader: Record "Sales Invoice Header") begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterInsertCrMemoHeader. + /// + /// + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInsertCrMemoHeader(var SalesHeader: Record "Sales Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin @@ -14194,173 +15847,400 @@ codeunit 80 "Sales-Post" begin end; + /// + /// Event raised by OnProcessPostingLinesOnBeforePostDropOrderShipment. + /// + /// + /// Specifies the TotalSalesLine parameter. + /// Specifies the TotalSalesLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnProcessPostingLinesOnBeforePostDropOrderShipment(SalesHeader: Record "Sales Header"; TotalSalesLine: Record "Sales Line"; TotalSalesLineLCY: Record "Sales Line") begin end; + /// + /// Event raised by OnAfterArchiveUnpostedOrder. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the OrderArchived parameter. [IntegrationEvent(false, false)] local procedure OnAfterArchiveUnpostedOrder(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; OrderArchived: Boolean); begin end; + /// + /// Event raised by OnBeforeCheckReturnRcptLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckReturnRcptLine(var ReturnReceiptLine: Record "Return Receipt Line"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertReturnReceiptHeaderOnBeforeReturnReceiptHeaderTransferFields. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertReturnReceiptHeaderOnBeforeReturnReceiptHeaderTransferFields(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnBeforeCopyAndCheckItemCharge. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesLine parameter. + /// Specifies the InvoiceEverything parameter. + /// Specifies the AssignError parameter. + /// Specifies the QtyNeeded parameter. + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the ItemChargeAssgntSales parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCopyAndCheckItemCharge(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var SalesLine: Record "Sales Line"; var InvoiceEverything: Boolean; var AssignError: Boolean; var QtyNeeded: Decimal; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; var ItemChargeAssgntSales: Record "Item Charge Assignment (Sales)"; var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeTestPostingDate. + /// + /// + /// Specifies the ReplacePostingDate parameter. + /// Specifies the SkipTestPostingDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeTestPostingDate(var SalesHeader: Record "Sales Header"; ReplacePostingDate: Boolean; var SkipTestPostingDate: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeSalesHeaderModify. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeSalesHeaderModify(var SalesHeader: Record "Sales Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeTestLineFields. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeTestLineFields(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateQtyToBeInvoicedForReturnReceiptOnAfterSetQtyToBeInvoiced. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateQtyToBeInvoicedForReturnReceiptOnAfterSetQtyToBeInvoiced(TrackingSpecificationExists: Boolean; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterInsertShipmentHeader. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInsertShipmentHeader(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnInsertPostedHeadersDeleteServItemOnSaleCreditMemo. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersDeleteServItemOnSaleCreditMemo(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnRunWithCheckOnAfterFinalize. + /// + /// [IntegrationEvent(false, false)] local procedure OnRunWithCheckOnAfterFinalize(var SalesHeader: Record "Sales Header"); begin end; + /// + /// Event raised by OnBeforeFinalizePostATO. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeFinalizePostATO(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeDeleteATOLinks. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDeleteATOLinks(SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckATOLink. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckATOLink(SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumSalesLinesTempOnAfterVatAmountSet. + /// + /// + /// Specifies the TotalSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLinesTempOnAfterVatAmountSet(var VATAmount: Decimal; var TotalSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInsertShptEntryRelationOnBeforeDeleteTempHandlingSpecification. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertShptEntryRelationOnBeforeDeleteTempHandlingSpecification(var TempHandlingTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeModifyPurchOrderHeader. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeModifyPurchOrderHeader(var PurchaseOrderHeader: Record "Purchase Header"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnAfterPostJobContractLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostJobContractLine(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var GenJnlLineDocType: Enum "Gen. Journal Document Type"; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; var SrcCode: Code[10]) begin end; + /// + /// Event raised by OnBeforePostDistributeItemCharge. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempItemLedgerEntry parameter. + /// Specifies the NonDistrQuantity parameter. + /// Specifies the NonDistrQtyToAssign parameter. + /// Specifies the NonDistrAmountToAssign parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostDistributeItemCharge(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempItemLedgerEntry: Record "Item Ledger Entry"; NonDistrQuantity: Decimal; NonDistrQtyToAssign: Decimal; NonDistrAmountToAssign: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostDistributeItemChargeOnAfterSetFactor. + /// + /// + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostDistributeItemChargeOnAfterSetFactor(TempItemLedgerEntry: Record "Item Ledger Entry"; var Factor: Decimal) begin end; + /// + /// Event raised by OnBeforeCalcPrepmtAmtToDeduct. + /// + /// + /// Specifies the Ship parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PrepmtAmtToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcPrepmtAmtToDeduct(var SalesLine: Record "Sales Line"; Ship: Boolean; var IsHandled: Boolean; var PrepmtAmtToDeduct: Decimal) begin end; + /// + /// Event raised by OnBeforePostItemJournalLineWarehouseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJournalLineWarehouseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAfterPostItemJournalLineWarehouseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJournalLineWarehouseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAdjustPrepmtAmountLCYOnAfterGetOrderLine. + /// + /// + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnAdjustPrepmtAmountLCYOnAfterGetOrderLine(var SalesLine: Record "Sales Line"; var SalesInvoiceLine: Record "Sales Line"); begin end; + /// + /// Event raised by OnBeforeGetQtyToInvoice. + /// + /// + /// Specifies the Ship parameter. + /// Specifies the IsHandled parameter. + /// Specifies the QtyToInvoice parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetQtyToInvoice(SalesLine: Record "Sales Line"; Ship: Boolean; var IsHandled: Boolean; var QtyToInvoice: Decimal) begin end; + /// + /// Event raised by OnBeforeAdjustFinalInvWith100PctPrepmt. + /// + /// + /// Specifies the CombinedSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustFinalInvWith100PctPrepmt(var TempPrepmtDeductLCYSalesLine: Record "Sales Line" temporary; var CombinedSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateRemainingQtyToBeInvoiced. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateRemainingQtyToBeInvoiced(SalesShptLine: Record "Sales Shipment Line"; var RemQtyToInvoiceCurrLine: Decimal; var RemQtyToInvoiceCurrLineBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLineForCreditMemoOnBeforeGetSalesPrepmtAccount. + /// + /// + /// Specifies the SalesInvoiceLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLineForCreditMemoOnBeforeGetSalesPrepmtAccount(var GLAccount: Record "G/L Account"; var SalesInvoiceLine: Record "Sales Invoice Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateEmailParameters. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateEmailParameters(SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostUpdateOrderNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateOrderNo(var SalesInvoiceHeader: Record "Sales Invoice Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSetInvoiceOrderNo. + /// + /// + /// Specifies the SalesInvLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSetInvoiceOrderNo(SalesLine: Record "Sales Line"; var SalesInvLine: Record "Sales Invoice Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeArchiveRelatedJob. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeArchiveRelatedJob(SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSyncSurPlusItemTrackingOnBeforeModifyQtyToHandleInvoice. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ReservationEntry parameter. [IntegrationEvent(false, false)] local procedure OnSyncSurPlusItemTrackingOnBeforeModifyQtyToHandleInvoice(var SalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var ReservationEntry: Record "Reservation Entry") begin end; -} \ No newline at end of file + + /// + /// Event raised by OnAfterProcessPostingLines. + /// + /// + /// Specifies the TotalSalesLine parameter. + /// Specifies the CustLedgEntry parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the Window parameter. + /// Specifies the HideProgressWindow parameter. + [IntegrationEvent(false, false)] + local procedure OnAfterProcessPostingLines(var SalesHeader: Record "Sales Header"; var TotalSalesLine: Record "Sales Line"; var CustLedgEntry: Record "Cust. Ledger Entry"; InvoicePostingParameters: Record "Invoice Posting Parameters"; SuppressCommit: Boolean; EverythingInvoiced: Boolean; var Window: Dialog; HideProgressWindow: Boolean) + begin + end; + + /// + /// Raised after checking posting restrictions + /// + /// + [IntegrationEvent(false, false)] + local procedure OnAfterCheckPostRestrictions(var SalesHeader: Record "Sales Header") + begin + end; +} diff --git a/src/Layers/APAC/BaseApp/Sales/Receivables/CustEntryApplyPostedEntries.Codeunit.al b/src/Layers/APAC/BaseApp/Sales/Receivables/CustEntryApplyPostedEntries.Codeunit.al index 25621d00ffe..bd3647a7c36 100644 --- a/src/Layers/APAC/BaseApp/Sales/Receivables/CustEntryApplyPostedEntries.Codeunit.al +++ b/src/Layers/APAC/BaseApp/Sales/Receivables/CustEntryApplyPostedEntries.Codeunit.al @@ -422,6 +422,8 @@ codeunit 226 "CustEntry-Apply Posted Entries" CheckAdditionalCurrency(ApplyUnapplyParameters."Posting Date", DtldCustLedgEntry."Posting Date"); AddCurrChecked := true; end; + CheckInitialDocumentType( + DtldCustLedgEntry, ApplyUnapplyParameters."Document No.", ApplyUnapplyParameters."Posting Date", CommitChanges); CheckReversal(DtldCustLedgEntry."Cust. Ledger Entry No."); if DtldCustLedgEntry."Transaction No." <> 0 then CheckUnappliedEntries(DtldCustLedgEntry); @@ -480,6 +482,18 @@ codeunit 226 "CustEntry-Apply Posted Entries" ExchRateAdjmtRunHandler.RunCustExchRateAdjustment(GenJnlLine, TempCustLedgerEntry); end; + local procedure CheckInitialDocumentType(var DtldCustLedgEntry: Record "Detailed Cust. Ledg. Entry"; DocNo: Code[20]; PostingDate: Date; var CommitChanges: Boolean) + var + IsHandled: Boolean; + begin + IsHandled := false; + OnBeforeCheckInitialDocumentType(DtldCustLedgEntry, DocNo, PostingDate, CommitChanges, IsHandled); + if IsHandled then + exit; + + OnAfterCheckInitialDocumentType(DtldCustLedgEntry); + end; + local procedure CheckPostingDate(ApplyUnapplyParameters: Record "Apply Unapply Parameters"; var MaxPostingDate: Date) var GenJnlCheckLine: Codeunit "Gen. Jnl.-Check Line"; @@ -1065,6 +1079,28 @@ codeunit 226 "CustEntry-Apply Posted Entries" begin end; + /// + /// Raised after checking initial document Type + /// + /// The detailed customer ledger entry. + [IntegrationEvent(false, false)] + local procedure OnAfterCheckInitialDocumentType(var DtldCustLedgEntry: Record "Detailed Cust. Ledg. Entry"); + begin + end; + + /// + /// Raised before checking initial document Type + /// + /// The detailed customer ledger entry. + /// The document number. + /// The posting date. + /// Indicates whether to commit changes. + /// Indicates whether the event is handled. + [IntegrationEvent(false, false)] + local procedure OnBeforeCheckInitialDocumentType(var DtldCustLedgEntry: Record "Detailed Cust. Ledg. Entry"; DocNo: Code[20]; PostingDate: Date; var CommitChanges: Boolean; var IsHandled: Boolean); + begin + end; + /// /// Raised before filtering detailed customer ledger entries during unapplication. /// diff --git a/src/Layers/APAC/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al b/src/Layers/APAC/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al index 978a7540556..9676eecbc12 100644 --- a/src/Layers/APAC/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al +++ b/src/Layers/APAC/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al @@ -1,4 +1,4 @@ -// ------------------------------------------------------------------------------------------------ +// ------------------------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // ------------------------------------------------------------------------------------------------ @@ -19,6 +19,7 @@ using Microsoft.FixedAssets.FixedAsset; using Microsoft.Foundation.Attachment; using Microsoft.Foundation.AuditCodes; using Microsoft.Foundation.NoSeries; +using Microsoft.Foundation.PaymentTerms; using Microsoft.Intercompany.Partner; using Microsoft.Purchases.Vendor; using Microsoft.Sales.Customer; @@ -854,6 +855,13 @@ table 21 "Cust. Ledger Entry" Caption = 'Prepayment'; ToolTip = 'Specifies if the related payment is a prepayment.'; } + field(91; "Payment Terms Code"; Code[10]) + { + Caption = 'Payment Terms Code'; + Editable = false; + TableRelation = "Payment Terms"; + ToolTip = 'Specifies the payment terms that determine the due date and payment discount date for the entry.'; + } field(95; "G/L Register No."; Integer) { Caption = 'G/L Register No.'; @@ -867,6 +875,7 @@ table 21 "Cust. Ledger Entry" field(171; "Payment Reference"; Code[50]) { Caption = 'Payment Reference'; + ToolTip = 'Specifies the payment reference number used by banks to identify and track the payment.'; } /// /// Specifies the payment method used or expected for this transaction, such as bank transfer, cash, or check. @@ -1446,12 +1455,12 @@ table 21 "Cust. Ledger Entry" SetCurrentKey("Customer No.", Open, Positive, "Due Date"); SetRange("Customer No.", CustomerNo); SetRange(Open, true); + OnSetApplyToFiltersOnBeforeSetFilters(Rec); if ApplyDocNo <> '' then begin SetRange("Document Type", ApplyDocType); SetRange("Document No.", ApplyDocNo); if FindFirst() then; - SetRange("Document Type"); - SetRange("Document No."); + ClearDocumentFilters(); end else if ApplyDocType <> 0 then begin SetRange("Document Type", ApplyDocType); @@ -1465,6 +1474,22 @@ table 21 "Cust. Ledger Entry" end; end; + procedure SetAppliesToDocFilters(var GenJnlLine: Record "Gen. Journal Line") + begin + SetRange("Document Type", GenJnlLine."Applies-to Doc. Type"); + SetRange("Document No.", GenJnlLine."Applies-to Doc. No."); + + OnAfterSetAppliesToDocFilters(Rec, GenJnlLine); + end; + + procedure ClearDocumentFilters() + begin + SetRange("Document Type"); + SetRange("Document No."); + + OnAfterClearDocumentFilters(Rec); + end; + /// /// Toggles the Amount to Apply field between the remaining amount and zero for the specified document. /// @@ -1538,6 +1563,7 @@ table 21 "Cust. Ledger Entry" "Payment Method Code" := GenJnlLine."Payment Method Code"; "Payment Reference" := GenJnlLine."Payment Reference"; "Exported to Payment File" := GenJnlLine."Exported to Payment File"; + "Payment Terms Code" := GenJnlLine."Payment Terms Code"; Adjustment := GenJnlLine.Adjustment; "BAS Adjustment" := GenJnlLine."BAS Adjustment"; "Adjustment Applies-to" := GenJnlLine."Adjustment Applies-to"; @@ -1877,5 +1903,20 @@ table 21 "Cust. Ledger Entry" local procedure OnValidateMaxPaymentToleranceOnBeforeFieldError(var CustLedgerEntry: Record "Cust. Ledger Entry") begin end; + + [IntegrationEvent(false, false)] + local procedure OnAfterSetAppliesToDocFilters(var Rec: Record "Cust. Ledger Entry"; var GenJnlLine: Record "Gen. Journal Line") + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnAfterClearDocumentFilters(var Rec: Record "Cust. Ledger Entry") + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnSetApplyToFiltersOnBeforeSetFilters(var Rec: Record "Cust. Ledger Entry") + begin + end; } diff --git a/src/Layers/BE/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al b/src/Layers/BE/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al index fd4165d8351..569cf677f59 100644 --- a/src/Layers/BE/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al +++ b/src/Layers/BE/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al @@ -1,4 +1,4 @@ -// ------------------------------------------------------------------------------------------------ +// ------------------------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // ------------------------------------------------------------------------------------------------ @@ -796,7 +796,7 @@ codeunit 12 "Gen. Jnl.-Post Line" VATEntry."Transaction No." := NextTransactionNo; VATEntry."Sales Tax Connection No." := NextConnectionNo; VATEntry.SetVATDateFromGenJnlLine(GenJnlLine); - OnInsertVATOnAfterAssignVATEntryFields(GenJnlLine, VATEntry, CurrExchRate); + OnInsertVATOnAfterAssignVATEntryFields(GenJnlLine, VATEntry, CurrExchRate, VATPostingSetup); if GenJnlLine."VAT Difference" = 0 then VATDifferenceLCY := 0 @@ -9821,7 +9821,7 @@ codeunit 12 "Gen. Jnl.-Post Line" end; [IntegrationEvent(false, false)] - local procedure OnInsertVATOnAfterAssignVATEntryFields(GenJnlLine: Record "Gen. Journal Line"; var VATEntry: Record "VAT Entry"; CurrExchRate: Record "Currency Exchange Rate") + local procedure OnInsertVATOnAfterAssignVATEntryFields(var GenJnlLine: Record "Gen. Journal Line"; var VATEntry: Record "VAT Entry"; CurrExchRate: Record "Currency Exchange Rate"; var VATPostingSetup: Record "VAT Posting Setup") begin end; diff --git a/src/Layers/BE/BaseApp/Purchases/Payables/VendEntryApplyPostedEntries.Codeunit.al b/src/Layers/BE/BaseApp/Purchases/Payables/VendEntryApplyPostedEntries.Codeunit.al index 91d2dff427c..0863e1c887e 100644 --- a/src/Layers/BE/BaseApp/Purchases/Payables/VendEntryApplyPostedEntries.Codeunit.al +++ b/src/Layers/BE/BaseApp/Purchases/Payables/VendEntryApplyPostedEntries.Codeunit.al @@ -379,6 +379,8 @@ codeunit 227 "VendEntry-Apply Posted Entries" CheckAdditionalCurrency(ApplyUnapplyParameters."Posting Date", DtldVendLedgEntry."Posting Date"); AddCurrChecked := true; end; + CheckInitialDocumentType( + DtldVendLedgEntry, ApplyUnapplyParameters."Document No.", ApplyUnapplyParameters."Posting Date"); CheckReversal(DtldVendLedgEntry."Vendor Ledger Entry No."); if DtldVendLedgEntry."Transaction No." <> 0 then CheckUnappliedEntries(DtldVendLedgEntry); @@ -440,6 +442,18 @@ codeunit 227 "VendEntry-Apply Posted Entries" ExchRateAdjmtRunHandler.RunVendExchRateAdjustment(GenJnlLine, TempVendorLedgerEntry); end; + local procedure CheckInitialDocumentType(var DtldVendLedgEntry: Record "Detailed Vendor Ledg. Entry"; DocNo: Code[20]; PostingDate: Date) + var + IsHandled: Boolean; + begin + IsHandled := false; + OnBeforeCheckInitialDocumentType(DtldVendLedgEntry, DocNo, PostingDate, IsHandled); + if IsHandled then + exit; + + OnAfterCheckInitialDocumentType(DtldVEndLedgEntry); + end; + local procedure CheckPostingDate(ApplyUnapplyParameters: Record "Apply Unapply Parameters"; var MaxPostingDate: Date) var GenJnlCheckLine: Codeunit "Gen. Jnl.-Check Line"; @@ -806,6 +820,27 @@ codeunit 227 "VendEntry-Apply Posted Entries" begin end; + /// + /// Raised after checking initial document Type + /// + /// The detailed vendor ledger entry. + [IntegrationEvent(false, false)] + local procedure OnAfterCheckInitialDocumentType(var DtldVendLedgEntry: Record "Detailed Vendor Ledg. Entry") + begin + end; + + /// + /// Raised before checking initial document Type + /// + /// The detailed vendor ledger entry. + /// The document number. + /// The posting date. + /// Indicates whether the event is handled. + [IntegrationEvent(false, false)] + local procedure OnBeforeCheckInitialDocumentType(var DtldVendLedgEntry: Record "Detailed Vendor Ledg. Entry"; DocNo: Code[20]; PostingDate: Date; var IsHandled: Boolean) + begin + end; + [IntegrationEvent(false, false)] local procedure OnPostUnApplyVendorCommitOnBeforeFilterDtldVendLedgEntry(DetailedVendorLedgEntry2: Record "Detailed Vendor Ledg. Entry"; ApplyUnapplyParameters: Record "Apply Unapply Parameters") begin diff --git a/src/Layers/BE/BaseApp/Purchases/Posting/PurchPost.Codeunit.al b/src/Layers/BE/BaseApp/Purchases/Posting/PurchPost.Codeunit.al index d18b1cde202..2e95df0af6c 100644 --- a/src/Layers/BE/BaseApp/Purchases/Posting/PurchPost.Codeunit.al +++ b/src/Layers/BE/BaseApp/Purchases/Posting/PurchPost.Codeunit.al @@ -184,10 +184,7 @@ codeunit 90 "Purch.-Post" /// The purchase header of the document that is being posted. /// Accumulates drop-shipment buffer records during posting. /// Set to false during posting if any line is partially invoiced. - local procedure ProcessPosting( - var PurchHeader: Record "Purchase Header"; - var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; - var EverythingInvoiced: Boolean) + local procedure ProcessPosting(var PurchHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var EverythingInvoiced: Boolean) var IgnoreCommit: Boolean; begin @@ -328,6 +325,10 @@ codeunit 90 "Purch.-Post" OnRunOnBeforeMakeInventoryAdjustment(PurchHeader, GenJnlPostLine, ItemJnlPostLine, PreviewMode, PurchRcptHeader, PurchInvHeader, IsHandled); if not IsHandled then MakeInventoryAdjustment(); + + Clear(GenJnlPostLine); + + OnAfterProcessPostingLines(PurchHeader, TotalPurchLine, VendLedgEntry, InvoicePostingParameters, SuppressCommit, EverythingInvoiced, Window); end; var @@ -748,7 +749,7 @@ codeunit 90 "Purch.-Post" begin OnBeforeCheckAndUpdate(PurchHeader, ModifyHeader); DocumentIsReadyToBeChecked := true; - + CheckPurchDocument(PurchHeader); if GuiAllowed() and not HideProgressWindow then @@ -847,6 +848,7 @@ codeunit 90 "Purch.-Post" begin if not DocumentIsReadyToBeChecked then PrepareCheckDocument(PurchHeader); + ErrorMessageMgt.PushContext(ErrorContextElement, PurchHeader.RecordId, 0, CheckPurchHeaderMsg); CheckMandatoryHeaderFields(PurchHeader); GetGLSetup(); @@ -4099,6 +4101,8 @@ codeunit 90 "Purch.-Post" if PurchaseHeader."Pay-to Contact No." <> '' then if Contact.Get(PurchaseHeader."Pay-to Contact No.") then Contact.CheckIfPrivacyBlocked(true); + + OnAfterCheckPostRestrictions(PurchaseHeader); end; local procedure CheckFAPostingPossibility(PurchaseHeader: Record "Purchase Header") @@ -5366,7 +5370,7 @@ codeunit 90 "Purch.-Post" if PurchHeader."Prices Including VAT" then PrepmtVATBaseToDeduct := Round( - (TotalPrepmtAmtToDeduct + PurchLine."Prepmt Amt to Deduct") / (1 + PurchLine."Prepayment VAT %" / 100), + (TotalPrepmtAmtToDeduct + PurchLine."Prepmt Amt to Deduct") / (1 + PurchLine.GetPrepaymentVATPct() / 100), Currency."Amount Rounding Precision") - Round( TotalPrepmtAmtToDeduct / (1 + PurchLine.GetPrepaymentVATPct() / 100), @@ -9016,169 +9020,404 @@ codeunit 90 "Purch.-Post" ItemsToAdjust.Add(Item2."No."); end; + /// + /// Event raised by OnArchiveSalesOrdersOnBeforeSalesOrderLineModify. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnArchiveSalesOrdersOnBeforeSalesOrderLineModify(var SalesOrderLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnAfterBlanketOrderPurchLineModify. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnAfterBlanketOrderPurchLineModify(var BlanketOrderPurchLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnAfterCheckPurchDoc. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the ErrorMessageMgt parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckPurchDoc(var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; WhseShip: Boolean; WhseReceive: Boolean; PreviewMode: Boolean; var ErrorMessageMgt: Codeunit "Error Message Management") begin end; + /// + /// Event raised by OnAfterCheckAndUpdate. + /// + /// + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckAndUpdate(var PurchaseHeader: Record "Purchase Header"; CommitIsSuppressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterCheckTrackingSpecification. + /// + /// + /// Specifies the TempItemPurchaseLine parameter. [IntegrationEvent(true, false)] local procedure OnAfterCheckTrackingSpecification(PurchaseHeader: Record "Purchase Header"; var TempItemPurchaseLine: Record "Purchase Line" temporary); begin end; + /// + /// Event raised by OnAfterCheckTrackingAndWarehouseForReceive. + /// + /// + /// Specifies the Receive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckTrackingAndWarehouseForReceive(var PurchaseHeader: Record "Purchase Header"; var Receive: Boolean; CommitIsSupressed: Boolean; var TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterCheckTrackingAndWarehouseForShip. + /// + /// + /// Specifies the Ship parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchaseLine parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckTrackingAndWarehouseForShip(var PurchaseHeader: Record "Purchase Header"; var Ship: Boolean; CommitIsSupressed: Boolean; var TempPurchaseLine: Record "Purchase Line" temporary; var TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary) begin end; + /// + /// Event raised by OnAfterCreateJobPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCreateJobPurchLine(var JobPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterCreateWhseJnlLine. + /// + /// + /// Specifies the TempWhseJnlLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCreateWhseJnlLine(PurchaseLine: Record "Purchase Line"; var TempWhseJnlLine: record "Warehouse Journal Line" temporary) begin end; + /// + /// Event raised by OnAfterDeleteAfterPosting. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterDeleteAfterPosting(PurchHeader: Record "Purchase Header"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterDeleteApprovalEntries. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchRcptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterDeleteApprovalEntries(var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; PurchRcptHeader: Record "Purch. Rcpt. Header") begin end; + /// + /// Event raised by OnAfterDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. [IntegrationEvent(false, false)] local procedure OnAfterDivideAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping; PurchLineQty: Decimal; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary) begin end; + /// + /// Event raised by OnAfterGetAmountRoundingPrecisionInLCY. + /// + /// + /// Specifies the DocNo parameter. + /// Specifies the CurrencyCode parameter. + /// Specifies the AmountRoundingPrecision parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetAmountRoundingPrecisionInLCY(DocType: Enum "Purchase Document Type"; DocNo: Code[20]; CurrencyCode: Code[10]; var AmountRoundingPrecision: Decimal) begin end; + /// + /// Event raised by OnAfterGetLineDataFromOrder. + /// + /// + /// Specifies the PurchOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetLineDataFromOrder(var PurchLine: Record "Purchase Line"; PurchOrderLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterGetPurchSetup. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterGetPurchSetup(var PurchSetup: Record "Purchases & Payables Setup") begin end; + /// + /// Event raised by OnAfterModifyTempLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterModifyTempLine(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostPurchaseDoc. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PurchRcpHdrNo parameter. + /// Specifies the RetShptHdrNo parameter. + /// Specifies the PurchInvHdrNo parameter. + /// Specifies the PurchCrMemoHdrNo parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] procedure OnAfterPostPurchaseDoc(var PurchaseHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PurchRcpHdrNo: Code[20]; RetShptHdrNo: Code[20]; PurchInvHdrNo: Code[20]; PurchCrMemoHdrNo: Code[20]; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterPostPurchaseDocDropShipment. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostPurchaseDocDropShipment(SalesShptNo: Code[20]; CommitIsSupressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterRetrieveInvoiceTrackingSpecificationIfExists. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. [IntegrationEvent(false, false)] local procedure OnAfterRetrieveInvoiceTrackingSpecificationIfExists(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TrackingSpecificationExists: Boolean) begin end; + /// + /// Event raised by OnAfterUpdatePostingNos. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePostingNos(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; PreviewMode: Boolean; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnAfterCheckMandatoryFields. + /// + /// + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckMandatoryFields(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterFinalizePosting. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterFinalizePosting(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShptHeader: Record "Return Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PreviewMode: Boolean; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterFinalizePostingOnBeforeCommit. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnAfterFinalizePostingOnBeforeCommit(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShptHeader: Record "Return Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PreviewMode: Boolean; CommitIsSupressed: Boolean; EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnAfterIncrAmount. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterIncrAmount(var TotalPurchLine: Record "Purchase Line"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterInitAssocItemJnlLine. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the QtyToBeShipped parameter. [IntegrationEvent(false, false)] local procedure OnAfterInitAssocItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; PurchaseHeader: Record "Purchase Header"; QtyToBeShipped: Decimal) begin end; + /// + /// Event raised by OnAfterInsertCombinedSalesShipment. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterInsertCombinedSalesShipment(var SalesShipmentHeader: Record "Sales Shipment Header") begin end; + /// + /// Event raised by OnAfterInsertPostedHeaders. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchSetup parameter. + /// Specifies the Window parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertPostedHeaders(var PurchaseHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShptHeader: Record "Return Shipment Header"; var PurchSetup: Record "Purchases & Payables Setup"; var Window: Dialog) begin end; + /// + /// Event raised by OnAfterInsertReceiptHeader. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertReceiptHeader(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var TempWhseRcptHeader: Record "Warehouse Receipt Header" temporary; WhseReceive: Boolean; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnAfterInsertReturnShipmentHeader. + /// + /// + /// Specifies the ReturnShptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertReturnShipmentHeader(var PurchHeader: Record "Purchase Header"; var ReturnShptHeader: Record "Return Shipment Header") begin end; + /// + /// Event raised by OnAfterInvoiceRoundingAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TotalPurchaseLine parameter. + /// Specifies the UseTempData parameter. + /// Specifies the InvoiceRoundingAmount parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the RoundingLineNo parameter. [IntegrationEvent(false, false)] local procedure OnAfterInvoiceRoundingAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TotalPurchaseLine: Record "Purchase Line"; UseTempData: Boolean; InvoiceRoundingAmount: Decimal; CommitIsSuppressed: Boolean; RoundingLineInserted: Boolean; RoundingLineNo: Integer) begin end; + /// + /// Event raised by OnAfterInsertedPrepmtVATBaseToDeduct. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PrepmtLineNo parameter. + /// Specifies the TotalPrepmtAmtToDeduct parameter. + /// Specifies the TempPrepmtDeductLCYPurchLine parameter. + /// Specifies the PrepmtVATBaseToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertedPrepmtVATBaseToDeduct(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; PrepmtLineNo: Integer; TotalPrepmtAmtToDeduct: Decimal; var TempPrepmtDeductLCYPurchLine: Record "Purchase Line" temporary; var PrepmtVATBaseToDeduct: Decimal) begin end; + /// + /// Event raised by OnAfterPostAssocItemJnlLine. + /// + /// + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the SalesLineOrder parameter. + /// Specifies the SalesOrderHeader parameter. + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostAssocItemJnlLine(var ItemJnlLine: Record "Item Journal Line"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var SalesLineOrder: Record "Sales Line"; var SalesOrderHeader: Record "Sales Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAfterPostCombineSalesOrderShipment. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostCombineSalesOrderShipment(var PurchaseHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin @@ -9191,275 +9430,680 @@ codeunit 90 "Purch.-Post" end; [Obsolete('Moved to codeunit MfgPurchPost', '27.0')] + /// + /// Event raised by OnAfterPostItemJnlLineCopyProdOrder. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLineCopyProdOrder(var ItemJnlLine: Record "Item Journal Line"; PurchLine: Record "Purchase Line"; PurchRcptHeader: Record "Purch. Rcpt. Header"; QtyToBeReceived: Decimal; CommitIsSupressed: Boolean; QtyToBeInvoiced: Decimal) begin end; #endif + /// + /// Event raised by OnAfterPostItemJnlLineItemCharges. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLineItemCharges(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerOrder. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerOrder(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemTrackingLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemTrackingLine(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnAfterPostUpdateCreditMemoLine. + /// + /// [IntegrationEvent(true, false)] local procedure OnAfterPostUpdateCreditMemoLine(var PurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPostUpdateInvoiceLine. + /// + /// [IntegrationEvent(true, false)] local procedure OnAfterPostUpdateInvoiceLine(var PurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPurchRcptHeaderInsert. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchRcptHeaderInsert(var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterPurchRcptLineInsert. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchRcptLineInsert(PurchaseLine: Record "Purchase Line"; var PurchRcptLine: Record "Purch. Rcpt. Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; PurchInvHeader: Record "Purch. Inv. Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; PurchRcptHeader: Record "Purch. Rcpt. Header"; TempWhseRcptHeader: Record "Warehouse Receipt Header"; xPurchLine: Record "Purchase Line"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPurchInvHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchInvHeaderInsert(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterPurchInvLineInsert. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchInvLineInsert(var PurchInvLine: Record "Purch. Inv. Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; PurchHeader: Record "Purchase Header"; PurchRcptHeader: Record "Purch. Rcpt. Header"; TempWhseRcptHeader: Record "Warehouse Receipt Header"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnAfterPurchCrMemoHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchCrMemoHeaderInsert(var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterPurchCrMemoLineInsert. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchCrMemoLineInsert(var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var PurchaseHeader: Record "Purchase Header"; GenJnlLineDocNo: Code[20]; RoundingLineInserted: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnAfterReturnShptHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterReturnShptHeaderInsert(var ReturnShptHeader: Record "Return Shipment Header"; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterReturnShptLineInsert. + /// + /// + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempWhseShptHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the xPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterReturnShptLineInsert(var ReturnShptLine: Record "Return Shipment Line"; ReturnShptHeader: Record "Return Shipment Header"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; var TempWhseShptHeader: Record "Warehouse Shipment Header" temporary; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; xPurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterRevertWarehouseEntry. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterRevertWarehouseEntry(var TempWhseJnlLine: Record "Warehouse Journal Line" temporary) begin end; + /// + /// Event raised by OnAfterSalesShptHeaderInsert. + /// + /// + /// Specifies the SalesOrderHeader parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterSalesShptHeaderInsert(var SalesShipmentHeader: Record "Sales Shipment Header"; SalesOrderHeader: Record "Sales Header"; CommitIsSuppressed: Boolean; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterSalesShptLineInsert. + /// + /// + /// Specifies the SalesShptHeader parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the DropShptPostBuffer parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnAfterSalesShptLineInsert(var SalesShptLine: Record "Sales Shipment Line"; SalesShptHeader: Record "Sales Shipment Header"; SalesOrderLine: Record "Sales Line"; CommitIsSuppressed: Boolean; DropShptPostBuffer: Record "Drop Shpt. Post. Buffer"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPostAccICLine. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostAccICLine(PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnAfterPostItemLine. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(true, false)] local procedure OnAfterPostItemLine(PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; PurchaseHeader: Record "Purchase Header"; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnAfterPostItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the WhseJnlRegisterLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseRcptHeader parameter. + /// Specifies the WhseShptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var WhseJnlRegisterLine: Codeunit "Whse. Jnl.-Register Line"; var WhseReceive: Boolean; var WhseShip: Boolean; var WhseRcptHeader: Record "Warehouse Receipt Header"; var WhseShptHeader: Record "Warehouse Shipment Header") begin end; + /// + /// Event raised by OnAfterPostWhseJnlLine. + /// + /// + /// Specifies the ItemLedgEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostWhseJnlLine(var PurchaseLine: Record "Purchase Line"; ItemLedgEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterPostUpdateOrderLine. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostUpdateOrderLine(var PurchaseLine: Record "Purchase Line"; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterPostInvoice. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the VendorLedgerEntry parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostInvoice(var PurchHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; TotalPurchLine: Record "Purchase Line"; TotalPurchLineLCY: Record "Purchase Line"; CommitIsSupressed: Boolean; var VendorLedgerEntry: Record "Vendor Ledger Entry") begin end; + /// + /// Event raised by OnAfterPostPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchInvLine parameter. + /// Specifies the PurchCrMemoLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLineACY parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostPurchLine(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var PurchInvLine: Record "Purch. Inv. Line"; var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchLineACY: Record "Purchase Line"; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; SrcCode: Code[10]; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterProcessPurchLines. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the PurchLinesProcessed parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnAfterProcessPurchLines(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShipmentHeader: Record "Return Shipment Header"; WhseShip: Boolean; WhseReceive: Boolean; var PurchLinesProcessed: Boolean; CommitIsSuppressed: Boolean; EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnAfterProcessAssocItemJnlLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnAfterProcessAssocItemJnlLine(var PurchLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnAfterReleasePurchDoc. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterReleasePurchDoc(var PurchHeader: Record "Purchase Header"); begin end; + /// + /// Event raised by OnAfterRefreshTempLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterRefreshTempLines(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterResetTempLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterResetTempLines(var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterRestorePurchaseHeader. + /// + /// + /// Specifies the PurchaseHeaderCopy parameter. [IntegrationEvent(false, false)] local procedure OnAfterRestorePurchaseHeader(var PurchaseHeader: Record "Purchase Header"; PurchaseHeaderCopy: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterReverseAmount. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterReverseAmount(var PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterRoundAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchLineQty parameter. [IntegrationEvent(false, false)] local procedure OnAfterRoundAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchLineQty: Decimal) begin end; + /// + /// Event raised by OnAfterSaveTempWhseSplitSpec. + /// + /// + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnAfterSaveTempWhseSplitSpec(PurchaseLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAfterSetPostingFlags. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterSetPostingFlags(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterTestPurchLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(false, false)] local procedure OnAfterTestPurchLine(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateInvoicedQtyOnPurchRcptLine. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoicedQtyOnPurchRcptLine(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchRcptLine: Record "Purch. Rcpt. Line"; var PurchaseLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; TrackingSpecificationExists: Boolean; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; var PurchaseHeader: Record "Purchase Header"; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateInvoicedQtyOnReturnShptLine. + /// + /// + /// Specifies the ReturnShipmentLine parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoicedQtyOnReturnShptLine(PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShipmentLine: Record "Return Shipment Line"; PurchaseLine: Record "Purchase Line"; TempTrackingSpecification: Record "Tracking Specification" temporary; TrackingSpecificationExists: Boolean; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnAfterUpdateLastPostingNos. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterUpdateLastPostingNos(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterUpdatePurchLineBeforePost. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the RoundingLineInserted parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePurchLineBeforePost(var PurchaseLine: Record "Purchase Line"; WhseShip: Boolean; WhseReceive: Boolean; PurchaseHeader: Record "Purchase Header"; RoundingLineInserted: Boolean) begin end; + /// + /// Event raised by OnAfterUpdatePrepmtPurchLineWithRounding. + /// + /// + /// Specifies the TotalRoundingAmount parameter. + /// Specifies the TotalPrepmtAmount parameter. + /// Specifies the FinalInvoice parameter. + /// Specifies the PricesInclVATRoundingAmount parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePrepmtPurchLineWithRounding(var PrepmtPurchLine: Record "Purchase Line"; TotalRoundingAmount: array[2] of Decimal; TotalPrepmtAmount: array[2] of Decimal; FinalInvoice: Boolean; PricesInclVATRoundingAmount: array[2] of Decimal; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterUpdatePurchaseHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePurchaseHeader(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; GenJnlLineDocType: Integer; GenJnlLineDocNo: Code[20]; PreviewMode: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterUpdatePurchLineDimSetIDFromAppliedEntry. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePurchLineDimSetIDFromAppliedEntry(var PurchLineToPost: Record "Purchase Line"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterValidatePostingAndDocumentDate. + /// + /// + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterValidatePostingAndDocumentDate(var PurchaseHeader: Record "Purchase Header"; CommitIsSuppressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnBeforeAddAssociatedOrderLineToBuffer. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAddAssociatedOrderLineToBuffer(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeModifyTempLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeModifyTempLine(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnModifyTempLineOnBeforeTransferFields. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnBeforeTransferFields(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeAdjustQuantityRoundingForReceipt. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustQuantityRoundingForReceipt(PurchRcptLine: Record "Purch. Rcpt. Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeArchiveUnpostedOrder. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the OrderArchived parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeArchiveUnpostedOrder(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; var OrderArchived: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnBeforeArchiveSalesOrders. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeArchiveSalesOrders(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeBlanketOrderPurchLineModify. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnBeforeBlanketOrderPurchLineModify(var BlanketOrderPurchLine: Record "Purchase Line"; PurchLine: Record "Purchase Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcInvoice. + /// + /// + /// Specifies the NewInvoice parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcInvoice(var PurchHeader: Record "Purchase Header"; var NewInvoice: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalculateAmountsInclVAT. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalculateAmountsInclVAT(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalculateInvoiceEverything. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the InvoiceEverything parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalculateInvoiceEverything(var TempPurchaseLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; var InvoiceEverything: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcLineAmountAndLineDiscountAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Currency parameter. [IntegrationEvent(true, false)] local procedure OnBeforeCalcLineAmountAndLineDiscountAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; PurchLineQty: Decimal; var IsHandled: Boolean; Currency: Record Currency) begin @@ -9467,163 +10111,379 @@ codeunit 90 "Purch.-Post" #if not CLEAN28 [Obsolete('This event is no longer used.', '28.0')] + /// + /// Event raised by OnBeforeCheckDropShipmentReceiveInvoice. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforeCheckDropShipmentReceiveInvoice(PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; #endif + /// + /// Event raised by OnBeforeCheckDocumentTotalAmounts. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforeCheckDocumentTotalAmounts(PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckExternalDocumentNumber. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the Handled parameter. + /// Specifies the DocType parameter. + /// Specifies the ExtDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckExternalDocumentNumber(VendorLedgerEntry: Record "Vendor Ledger Entry"; PurchaseHeader: Record "Purchase Header"; var Handled: Boolean; DocType: Option; ExtDocNo: Text[35]; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeCheckExtDocNo. + /// + /// + /// Specifies the DocumentType parameter. + /// Specifies the ExtDocNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckExtDocNo(PurchaseHeader: Record "Purchase Header"; DocumentType: Enum "Gen. Journal Document Type"; ExtDocNo: Text[35]; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckGLAccDirectPosting. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckGLAccDirectPosting(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckICDocumentDuplicatePosting. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckICDocumentDuplicatePosting(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckIfInvPutawayExists. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckIfInvPutawayExists(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckHeaderPostingType. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckHeaderPostingType(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckFieldsOnReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckFieldsOnReturnShipmentLine(var ReturnShipmentLine: Record "Return Shipment Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterCheckFieldsOnReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckFieldsOnReturnShipmentLine(ReturnShipmentLine: Record "Return Shipment Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeCheckPrepmtAmtToDeduct. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPrepmtAmtToDeduct(PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckPurchRcptLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckTrackingSpecification. + /// + /// + /// Specifies the TempItemPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckTrackingSpecification(PurchHeader: Record "Purchase Header"; var TempItemPurchLine: Record "Purchase Line" temporary); begin end; + /// + /// Event raised by OnBeforeCheckTrackingAndWarehouseForShip. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the Ship parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckTrackingAndWarehouseForShip(PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var Ship: Boolean; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeCheckWarehouse. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckWarehouse(var TempItemPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckWhseRcptLineQtyToReceive. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckWhseRcptLineQtyToReceive(var WhseRcptLine: Record "Warehouse Receipt Line"; var PurchRcptLine: Record "Purch. Rcpt. Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeClearRemAmt. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlRollRndg parameter. + /// Specifies the RemAmt parameter. + /// Specifies the RemDiscAmt parameter. [IntegrationEvent(false, false)] local procedure OnBeforeClearRemAmt(PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; ItemJnlRollRndg: Boolean; var RemAmt: Decimal; var RemDiscAmt: Decimal) begin end; + /// + /// Event raised by OnBeforeCreatePositiveEntry. + /// + /// + /// Specifies the JobNo parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePositiveEntry(var WarehouseJournalLine: Record "Warehouse Journal Line"; JobNo: Code[20]; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCreatePostedWhseRcptHeader. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedWhseRcptHeader(var PostedWhseReceiptHeader: Record "Posted Whse. Receipt Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeCreatePostedWhseShptHeader. + /// + /// + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedWhseShptHeader(var PostedWhseShipmentHeader: Record "Posted Whse. Shipment Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeCreatePostedWhseShptLine. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedWhseShptLine(PurchLine: Record "Purchase Line"; ReturnShptLine: Record "Return Shipment Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCreatePostedRcptLine. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedRcptLine(PurchLine: Record "Purchase Line"; ReturnShptLine: Record "Return Shipment Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCreateWhseLineFromReturnShptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreateWhseLineFromReturnShptLine(var ReturnShptLine: Record "Return Shipment Line"; PurchLine: Record "Purchase Line"; CostBaseAmount: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCommitAndUpdateAnalysisVeiw. + /// + /// + /// Specifies the SuppressCommit parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCommitAndUpdateAnalysisVeiw(InvtPickPutaway: Boolean; SuppressCommit: Boolean; PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCopyAndCheckItemChargeTempPurchLine. + /// + /// + /// Specifies the TempPrepmtPurchaseLine parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the IsHandled parameter. + /// Specifies the AssignError parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCopyAndCheckItemChargeTempPurchLine(PurchaseHeader: Record "Purchase Header"; var TempPrepmtPurchaseLine: Record "Purchase Line" temporary; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean; var AssignError: Boolean) begin end; + /// + /// Event raised by OnBeforeCreatePrepmtLines. + /// + /// + /// Specifies the TempPrepmtPurchaseLine parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePrepmtLines(PurchaseHeader: Record "Purchase Header"; var TempPrepmtPurchaseLine: Record "Purchase Line" temporary; CompleteFunctionality: Boolean; var IsHandled: Boolean; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeDeleteAfterPosting. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the SkipDelete parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDeleteAfterPosting(var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var SkipDelete: Boolean; CommitIsSupressed: Boolean; var TempPurchLine: Record "Purchase Line" temporary; var TempPurchLineGlobal: Record "Purchase Line" temporary; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnBeforeDeleteApprovalEntries. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDeleteApprovalEntries(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnBeforeDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDivideAmount(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping; var PurchLineQty: Decimal; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeFinalizePosting. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeFinalizePosting(var PurchaseHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var EverythingInvoiced: Boolean; CommitIsSupressed: Boolean; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnBeforeGetInvoicePostingSetup. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetInvoicePostingSetup(var InvoicePostingInterface: Interface "Invoice Posting"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInitAssocItemJnlLine. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInitAssocItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; PurchaseHeader: Record "Purchase Header") begin @@ -9631,97 +10491,265 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforeInvoiceRoundingAmount. + /// + /// + /// Specifies the TotalAmountIncludingVAT parameter. + /// Specifies the UseTempData parameter. + /// Specifies the InvoiceRoundingAmount parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInvoiceRoundingAmount(PurchHeader: Record "Purchase Header"; TotalAmountIncludingVAT: Decimal; UseTempData: Boolean; var InvoiceRoundingAmount: Decimal; CommitIsSupressed: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeInsertICGenJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ICGenJnlLineNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertICGenJnlLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var ICGenJnlLineNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertPostedHeaders. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertPostedHeaders(var PurchaseHeader: Record "Purchase Header"; var WarehouseReceiptHeader: Record "Warehouse Receipt Header"; var WarehouseShipmentHeader: Record "Warehouse Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertRcptEntryRelation. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the TempTrackingSpecificationInv parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertRcptEntryRelation(PurchaseLine: Record "Purchase Line"; var PurchRcptLine: Record "Purch. Rcpt. Line"; var TempHandlingSpecification: Record "Tracking Specification" temporary; TempTrackingSpecificationInv: Record "Tracking Specification" temporary; ItemLedgShptEntryNo: Integer; var Result: Integer; var IsHandled: Boolean) begin end; - [IntegrationEvent(false, false)] + /// + /// Event raised by OnBeforeInsertReceiptHeader. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the CommitIsSuppressed parameter. + [IntegrationEvent(false, false)] local procedure OnBeforeInsertReceiptHeader(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var IsHandled: Boolean; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertReceiptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReceiptLine(var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchLine: Record "Purchase Line"; var CostBaseAmount: Decimal; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeInsertReturnShipmentLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReturnShipmentLine(var ReturnShptHeader: Record "Return Shipment Header"; var PurchLine: Record "Purchase Line"; var CostBaseAmount: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertTrackingSpecification(PurchHeader: Record "Purchase Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeItemJnlPostLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. + /// Specifies the WhseReceiptHeader parameter. + /// Specifies the WhseShipmentHeader parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. [IntegrationEvent(true, false)] local procedure OnBeforeItemJnlPostLine(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; var IsHandled: Boolean; WhseReceiptHeader: Record "Warehouse Receipt Header"; WhseShipmentHeader: Record "Warehouse Shipment Header"; TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnBeforeIsEndLoopForShippedNotInvoiced. + /// + /// + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the ReturnShptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the PurchLine parameter. + /// Specifies the EndLoop parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeIsEndLoopForShippedNotInvoiced(RemQtyToBeInvoiced: Decimal; TrackingSpecificationExists: Boolean; var ReturnShptLine: Record "Return Shipment Line"; var InvoicingTrackingSpecification: Record "Tracking Specification"; PurchLine: Record "Purchase Line"; var EndLoop: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeIsEndLoopForReceivedNotInvoiced. + /// + /// + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PurchRcptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the PurchLine parameter. + /// Specifies the EndLoop parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeIsEndLoopForReceivedNotInvoiced(RemQtyToBeInvoiced: Decimal; TrackingSpecificationExists: Boolean; var PurchRcptLine: Record "Purch. Rcpt. Line"; var InvoicingTrackingSpecification: Record "Tracking Specification"; PurchLine: Record "Purchase Line"; var EndLoop: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeGetPurchRcptLineFromTrackingOrUpdateItemEntryRelation. + /// + /// + /// Specifies the TrackingSpecification parameter. + /// Specifies the ItemEntryRelation parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetPurchRcptLineFromTrackingOrUpdateItemEntryRelation(var PurchRcptLine: Record "Purch. Rcpt. Line"; var TrackingSpecification: Record "Tracking Specification"; var ItemEntryRelation: Record "Item Entry Relation"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeGetPurchLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeGetPurchLines(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeLockTables. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempPurchaseLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnBeforeLockTables(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSuppressed: Boolean; var IsHandled: Boolean; var TempPurchaseLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforePostLines. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostLines(var PurchLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSupressed: Boolean; var TempPurchLineGlobal: Record "Purchase Line" temporary; var TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary) begin end; + /// + /// Event raised by OnBeforePostDistributeItemCharge. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemLedgerEntry parameter. + /// Specifies the NonDistrQuantity parameter. + /// Specifies the NonDistrQtyToAssign parameter. + /// Specifies the NonDistrAmountToAssign parameter. + /// Specifies the Sign parameter. + /// Specifies the IndirectCostPct parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostDistributeItemCharge(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var TempItemLedgerEntry: Record "Item Ledger Entry"; NonDistrQuantity: Decimal; NonDistrQtyToAssign: Decimal; NonDistrAmountToAssign: Decimal; Sign: Decimal; IndirectCostPct: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostInvoice. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Window parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the InvoicePostingInterface parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostInvoice(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSupressed: Boolean; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var IsHandled: Boolean; var Window: Dialog; HideProgressWindow: Boolean; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line"; var InvoicePostingInterface: Interface "Invoice Posting"; var InvoicePostingParameters: Record "Invoice Posting Parameters"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnBeforePostGLAccICLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ICGenJnlLineNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostGLAccICLine(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ICGenJnlLineNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerSalesShpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerSalesShpt(var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin @@ -9734,98 +10762,245 @@ codeunit 90 "Purch.-Post" end; [Obsolete('Moved to codeunit MfgPurchPost', '27.0')] + /// + /// Event raised by OnBeforePostItemJnlLineCopyProdOrder. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemJnlLineCopyProdOrder(PurchLine: Record "Purchase Line"; var ItemJnlLine: Record "Item Journal Line"; QtyToBeReceived: Decimal; QtyToBeInvoiced: Decimal; CommitIsSupressed: Boolean; var IsHandled: Boolean) begin end; #endif + /// + /// Event raised by OnBeforePostPurchaseDoc. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostPurchaseDoc(var PurchaseHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSupressed: Boolean; var HideProgressWindow: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostCommitPurchaseDoc. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostCommitPurchaseDoc(var PurchaseHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PreviewMode: Boolean; var ModifyHeader: Boolean; var CommitIsSupressed: Boolean; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeProcessAssocItemJnlLine. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the SourceCode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeProcessAssocItemJnlLine(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary; ItemLedgShptEntryNo: Integer; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; SourceCode: Code[10]) begin end; + /// + /// Event raised by OnBeforePrepareCheckDocument. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforePrepareCheckDocument(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforePurchLineDeleteAll. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchLineDeleteAll(var PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforePurchRcptHeaderInsert. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchRcptHeaderInsert(var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseReceive: Boolean; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseShip: Boolean) begin end; + /// + /// Event raised by OnBeforePurchRcptLineInsert. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PostedWhseRcptLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemLedgShptEntryNo parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchRcptLineInsert(var PurchRcptLine: Record "Purch. Rcpt. Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean; PostedWhseRcptLine: Record "Posted Whse. Receipt Line"; var IsHandled: Boolean; ItemLedgShptEntryNo: Integer) begin end; + /// + /// Event raised by OnBeforePurchInvHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchInvHeaderInsert(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnBeforePurchInvLineInsert. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchInvLineInsert(var PurchInvLine: Record "Purch. Inv. Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePurchCrMemoHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchCrMemoHeaderInsert(var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnBeforePurchCrMemoLineInsert. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchCrMemoLineInsert(var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeReleasePurchDoc. + /// + /// + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeReleasePurchDoc(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean); begin end; + /// + /// Event raised by OnBeforeReturnShptHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(false, false)] local procedure OnBeforeReturnShptHeaderInsert(var ReturnShptHeader: Record "Return Shipment Header"; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseReceive: Boolean; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseShip: Boolean) begin end; + /// + /// Event raised by OnBeforeReturnShptLineInsert. + /// + /// + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeReturnShptLineInsert(var ReturnShptLine: Record "Return Shipment Line"; var ReturnShptHeader: Record "Return Shipment Header"; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnBeforeRoundAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchLineQty parameter. [IntegrationEvent(false, false)] local procedure OnBeforeRoundAmount(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchLineQty: Decimal) begin end; + /// + /// Event raised by OnBeforeSalesShptHeaderInsert. + /// + /// + /// Specifies the SalesOrderHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSalesShptHeaderInsert(var SalesShptHeader: Record "Sales Shipment Header"; SalesOrderHeader: Record "Sales Header"; CommitIsSupressed: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeSalesShptLineInsert. + /// + /// + /// Specifies the SalesShptHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the DropShptPostBuffer parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSalesShptLineInsert(var SalesShptLine: Record "Sales Shipment Line"; SalesShptHeader: Record "Sales Shipment Header"; SalesLine: Record "Sales Line"; CommitIsSupressed: Boolean; DropShptPostBuffer: Record "Drop Shpt. Post. Buffer"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSetCheckApplToItemEntry. + /// + /// + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSetCheckApplToItemEntry(var PurchaseLine: Record "Purchase Line"; var Result: Boolean; var IsHandled: Boolean; PurchaseHeader: Record "Purchase Header"; ItemJournalLine: Record "Item Journal Line") begin @@ -9833,6 +11008,17 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforePostCombineSalesOrderShipment. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostCombineSalesOrderShipment(var PurchaseHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesShipmentHeader: Record "Sales Shipment Header"; var ItemLedgShptEntryNo: Integer; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempHandlingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean) begin @@ -9840,241 +11026,616 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforePostItemJnlLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeReceivedBase parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the ItemChargeNo parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the Result parameter. + /// Specifies the WarehouseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLine(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var QtyToBeReceived: Decimal; var QtyToBeReceivedBase: Decimal; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; var ItemLedgShptEntryNo: Integer; var ItemChargeNo: Code[20]; var TrackingSpecification: Record "Tracking Specification"; CommitIsSupressed: Boolean; var IsHandled: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var Result: Integer; var WarehouseReceiptHeader: Record "Warehouse Receipt Header") begin end; + /// + /// Event raised by OnBeforePostItemJnlLineItemCharges. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLineItemCharges(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostAssocItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostAssocItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var SalesLine: Record "Sales Line"; CommitIsSupressed: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePostItemChargePerOrder. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the ItemChargePurchLine parameter. + /// Specifies the TempTrackingSpecificationChargeAssmt parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerOrder(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ItemJnlLine2: Record "Item Journal Line"; var ItemChargePurchLine: Record "Purchase Line"; var TempTrackingSpecificationChargeAssmt: Record "Tracking Specification" temporary; CommitIsSupressed: Boolean; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargeLineProcedure. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargeLineProcedure(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemLine(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; PurchRcptHeader: Record "Purch. Rcpt. Header"; var RemQtyToBeInvoiced: Decimal; var TempPurchLineGlobal: Record "Purchase Line" temporary; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var RemQtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemJnlLineJobConsumption. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the SourceCode parameter. + /// Specifies the PostJobConsumptionBeforePurch parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemJnlLineJobConsumption(var ItemJournalLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; SourceCode: Code[10]; var PostJobConsumptionBeforePurch: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTracking. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PreciseTotalChargeAmt parameter. + /// Specifies the PreciseTotalChargeAmtACY parameter. + /// Specifies the RoundedPrevTotalChargeAmt parameter. + /// Specifies the RoundedPrevTotalChargeAmtACY parameter. + /// Specifies the IsHandled parameter. + /// Specifies the RemQtyToBeInvoiced parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemTracking(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TrackingSpecificationExists: Boolean; var PreciseTotalChargeAmt: Decimal; var PreciseTotalChargeAmtACY: Decimal; var RoundedPrevTotalChargeAmt: Decimal; var RoundedPrevTotalChargeAmtACY: Decimal; var IsHandled: Boolean; RemQtyToBeInvoiced: Decimal) begin end; + /// + /// Event raised by OnBeforePostItemTrackingCheckReceipt. + /// + /// + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingCheckReceipt(PurchaseLine: Record "Purchase Line"; RemQtyToBeInvoiced: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingCheckShipment. + /// + /// + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingCheckShipment(PurchaseLine: Record "Purchase Line"; RemQtyToBeInvoiced: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForReceiptCondition. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the Condition parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForReceiptCondition(PurchaseLine: Record "Purchase Line"; PurchRcptLine: Record "Purch. Rcpt. Line"; var Condition: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingItemChargePerOrder. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the TempTrackingSpecificationChargeAssmtCorrect parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingItemChargePerOrder(var TempTrackingSpecificationChargeAssmt: Record "Tracking Specification" temporary; var IsHandled: Boolean; var ItemJnlLine2: Record "Item Journal Line"; var TempTrackingSpecificationChargeAssmtCorrect: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnBeforePostItemTrackingLineOnPostPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemTrackingLineOnPostPurchLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; TempTrackingSpecification: Record "Tracking Specification" temporary; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForShipmentCondition. + /// + /// + /// Specifies the ReturnShipmentLine parameter. + /// Specifies the Condition parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForShipmentCondition(PurchaseLine: Record "Purchase Line"; ReturnShipmentLine: Record "Return Shipment Line"; var Condition: Boolean) begin end; + /// + /// Event raised by OnBeforePostResourceLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the JobPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostResourceLine(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; SrcCode: Code[10]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocNo: Code[20]; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; JobPurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePostUpdateOrderLine. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PurchSetup parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateOrderLine(PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; CommitIsSuppressed: Boolean; PurchSetup: Record "Purchases & Payables Setup") begin end; + /// + /// Event raised by OnBeforePostUpdateOrderLineModifyTempLine. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateOrderLineModifyTempLine(var TempPurchaseLine: Record "Purchase Line" temporary; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSuppressed: Boolean; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeRevertWarehouseEntry. + /// + /// + /// Specifies the JobNo parameter. + /// Specifies the PostJobConsumption parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeRevertWarehouseEntry(var WarehouseJournalLine: Record "Warehouse Journal Line"; JobNo: Code[20]; PostJobConsumption: Boolean; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSendICDocument. + /// + /// + /// Specifies the ModifyHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSendICDocument(var PurchHeader: Record "Purchase Header"; var ModifyHeader: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSumPurchLines2. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the VATAmountLine parameter. + /// Specifies the InsertPurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforeSumPurchLines2(QtyType: Option; var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var VATAmountLine: Record "VAT Amount Line"; InsertPurchLine: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSumPurchLinesTemp. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeSumPurchLinesTemp(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeTempDropShptPostBufferInsert. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTempDropShptPostBufferInsert(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; PurchaseLine: Record "Purchase Line"; var ItemLedgShptEntryNo: Integer) begin end; + /// + /// Event raised by OnBeforeTempPrepmtPurchLineInsert. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTempPrepmtPurchLineInsert(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var TempPurchLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnBeforeTempPrepmtPurchLineModify. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTempPrepmtPurchLineModify(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var TempPurchLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnBeforeTransferReservToItemJnlLine. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the PurchLine parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the ApplySpecificItemTracking parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTransferReservToItemJnlLine(var SalesOrderLine: Record "Sales Line"; var ItemJnlLine: Record "Item Journal Line"; PurchLine: Record "Purchase Line"; QtyToBeShippedBase: Decimal; var ApplySpecificItemTracking: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateAssocOrder. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(true, false)] local procedure OnBeforeUpdateAssocOrder(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var IsHandled: Boolean; SuppressCommit: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the Receive parameter. + /// Specifies the Ship parameter. + /// Specifies the Invoice parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateBlanketOrderLine(PurchLine: Record "Purchase Line"; Receive: Boolean; Ship: Boolean; Invoice: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePostingNos. + /// + /// + /// Specifies the ModifyHeader parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the IsHandled parameter. + /// Specifies the DateOrderSeriesUsed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePostingNos(var PurchHeader: Record "Purchase Header"; var ModifyHeader: Boolean; SuppressCommit: Boolean; var IsHandled: Boolean; var DateOrderSeriesUsed: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePurchaseHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePurchaseHeader(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; GenJnlLineDocType: Option; var IsHandled: Boolean; var PurchaseHeader: Record "Purchase Header"; GenJnlLineDocNo: Code[20]; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePurchLineBeforePost. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePurchLineBeforePost(var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; WhseShip: Boolean; WhseReceive: Boolean; RoundingLineInserted: Boolean; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateInvoicedQtyOnPurchRcptLine. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateInvoicedQtyOnPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; CommitIsSupressed: Boolean; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeUpdatePrepmtPurchLineWithRounding. + /// + /// + /// Specifies the TotalRoundingAmount parameter. + /// Specifies the TotalPrepmtAmount parameter. + /// Specifies the FinalInvoice parameter. + /// Specifies the PricesInclVATRoundingAmount parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePrepmtPurchLineWithRounding(var PrepmtPurchLine: Record "Purchase Line"; TotalRoundingAmount: array[2] of Decimal; TotalPrepmtAmount: array[2] of Decimal; FinalInvoice: Boolean; PricesInclVATRoundingAmount: array[2] of Decimal; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeUpdateQtyToInvoiceForOrder. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToInvoiceForOrder(var PurchHeader: Record "Purchase Header"; TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateQtyToInvoiceForReturnOrder. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToInvoiceForReturnOrder(var PurchHeader: Record "Purchase Header"; TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateQtyToBeInvoicedForReceipt. + /// + /// + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToBeInvoicedForReceipt(var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; PurchLine: Record "Purchase Line"; PurchRcptLine: Record "Purch. Rcpt. Line"; InvoicingTrackingSpecification: Record "Tracking Specification"; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateQtyToBeInvoicedForReturnShipment. + /// + /// + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ReturnShipmentLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToBeInvoicedForReturnShipment(var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; PurchLine: Record "Purchase Line"; ReturnShipmentLine: Record "Return Shipment Line"; InvoicingTrackingSpecification: Record "Tracking Specification"; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateJobConsumptionReservationApplToItemEntry. + /// + /// + /// Specifies the ItemJournalLine parameter. + /// Specifies the IsNonInventoriableItem parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateJobConsumptionReservationApplToItemEntry(var TempReservEntryJobCons: Record "Reservation Entry" temporary; var ItemJournalLine: Record "Item Journal Line"; IsNonInventoriableItem: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLine. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLine(var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineFixedAsset. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineFixedAsset(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineItemCharge. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineItemCharge(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineJob. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineJob(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineOthers. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineOthers(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestStatusRelease. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestStatusRelease(PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateItemChargeAssgnt. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateItemChargeAssgnt(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateHandledICInboxTransaction. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateHandledICInboxTransaction(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeValidatePostingAndDocumentDate. + /// + /// + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeValidatePostingAndDocumentDate(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnSetPostingDateExists. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PostingDateExists parameter. + /// Specifies the ReplacePostingDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnSetPostingDateExists(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; var PostingDateExists: Boolean; var ReplacePostingDate: Boolean; var PostingDate: Date; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeWhseHandlingRequired. + /// + /// + /// Specifies the Required parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeWhseHandlingRequired(PurchaseLine: Record "Purchase Line"; var Required: Boolean; var IsHandled: Boolean) begin @@ -10082,62 +11643,140 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforeGetCountryCode. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the CountryRegionCode parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetCountryCode(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var CountryRegionCode: Code[10]; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeShouldPostWhseJnlLine. + /// + /// + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlLine parameter. + /// Specifies the TempWhseJnlLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeShouldPostWhseJnlLine(PurchLine: Record "Purchase Line"; var Result: Boolean; var IsHandled: Boolean; var ItemJnlLine: Record "Item Journal Line"; var TempWhseJnlLine: Record "Warehouse Journal Line" temporary; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnCalcInvDiscountSetFilter. + /// + /// + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvDiscountSetFilter(var PurchLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterClearPostingFromWhseRef. + /// + /// + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterClearPostingFromWhseRef(var PurchHeader: Record "Purchase Header"; var InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetPostingFlags. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetPostingFlags(var PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary); begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeSetPostingFlags. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeSetPostingFlags(var PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetSourceCode. + /// + /// + /// Specifies the SourceCodeSetup parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetSourceCode(var PurchHeader: Record "Purchase Header"; SourceCodeSetup: Record "Source Code Setup"; var SrcCode: Code[10]); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterArchiveUnpostedOrder. + /// + /// + /// Specifies the Currency parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterArchiveUnpostedOrder(var PurchHeader: Record "Purchase Header"; Currency: Record "Currency"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCalcInvDiscount. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the RefreshNeeded parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCalcInvDiscount(var PurchaseHeader: Record "Purchase Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseReceive: Boolean; WhseShip: Boolean; var RefreshNeeded: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateAssocOrderPostingDateOnBeforeValidateDocumentDate. + /// + /// + /// Specifies the OriginalDocumentDate parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateAssocOrderPostingDateOnBeforeValidateDocumentDate(var SalesHeader: Record "Sales Header"; var OriginalDocumentDate: Date) begin end; + /// + /// Event raised by OnCheckAssociatedOrderLinesOnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssociatedOrderLinesOnAfterSetFilters(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnCheckAssociatedOrderLinesOnAfterCheckDimensions. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssociatedOrderLinesOnAfterCheckDimensions(PurchaseHeader: Record "Purchase Header"; SalesHeader: Record "Sales Header"; var PurchaseLine: Record "Purchase Line"; TempSalesLine: Record "Sales Line" temporary) begin @@ -10145,72 +11784,146 @@ codeunit 90 "Purch.-Post" #if not CLEAN28 [Obsolete('This event is no longer used.', '28.0')] + /// + /// Event raised by OnCheckAssocOrderLinesOnBeforeCheckOrderLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssocOrderLinesOnBeforeCheckOrderLine(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; #endif + /// + /// Event raised by OnCheckExternalDocumentNumberOnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnCheckExternalDocumentNumberOnAfterSetFilters(var VendLedgEntry: Record "Vendor Ledger Entry"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForShipOnAfterTempPurchLineSetFilters. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForShipOnAfterTempPurchLineSetFilters(PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForReceiveOnAfterTempPurchLineSetFilters. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForReceiveOnAfterTempPurchLineSetFilters(PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCheckWarehouseOnAfterSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnCheckWarehouseOnAfterSetFilters(var TempItemPurchLine: Record "Purchase Line"); begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeLoop. + /// + /// + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeLoop(var TempPurchLine: Record "Purchase Line" temporary; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeCheckIfEmpty. + /// + /// [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeCheckIfEmpty(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCopyToTempLinesOnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnCopyToTempLinesOnAfterSetFilters(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterInitTempPrepmtPurchLineFromPurchHeader. + /// + /// [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterInitTempPrepmtPurchLineFromPurchHeader(var TempPrepmtPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterTempPurchLineSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterTempPurchLineSetFilters(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterTempPrepmtPurchLineSetFilters. + /// + /// + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterTempPrepmtPurchLineSetFilters(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnDivideAmountOnAfterClearAmounts. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterClearAmounts(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var PurchLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnAfterCalcLineAmountAndLineDiscountAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterCalcLineAmountAndLineDiscountAmount(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchaseLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineRemainderModify. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineRemainderModify(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency) begin @@ -10221,227 +11934,589 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnGetItemChargeLineOnAfterGet. + /// + /// + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnGetItemChargeLineOnAfterGet(var ItemChargePurchLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnGetPurchLinesOnAfterFillTempLines. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnGetPurchLinesOnAfterFillTempLines(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyType: Option; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnInsertICGenJnlLineOnAfterCopyDocumentFields. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempICGenJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertICGenJnlLineOnAfterCopyDocumentFields(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var TempICGenJournalLine: Record "Gen. Journal Line") begin end; + /// + /// Event raised by OnInsertAssocOrderChargeOnBeforeInsert. + /// + /// + /// Specifies the NewItemChargeAssignmentPurch parameter. [IntegrationEvent(false, false)] local procedure OnInsertAssocOrderChargeOnBeforeInsert(TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)"; var NewItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)") begin end; + /// + /// Event raised by OnInsertICGenJnlLineOnBeforeICGenJnlLineInsert. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnInsertICGenJnlLineOnBeforeICGenJnlLineInsert(var TempICGenJournalLine: Record "Gen. Journal Line" temporary; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnInsertReceiptLineOnAfterGetWhseRcptLine. + /// + /// + /// Specifies the PurchRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterGetWhseRcptLine(var WhseRcptLine: Record "Warehouse Receipt Line"; PurchRcptLine: Record "Purch. Rcpt. Line") begin end; + /// + /// Event raised by OnInsertReceiptLineOnAfterInitPurchRcptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the PostedWhseRcptHeader parameter. + /// Specifies the WhseRcptHeader parameter. + /// Specifies the WhseRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterInitPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; xPurchLine: Record "Purchase Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var CostBaseAmount: Decimal; PostedWhseRcptHeader: Record "Posted Whse. Receipt Header"; WhseRcptHeader: Record "Warehouse Receipt Header"; var WhseRcptLine: Record "Warehouse Receipt Line") begin end; + /// + /// Event raised by OnInsertReceiptLineOnAfterCalcShouldGetWhseRcptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PostedWhseRcptHeader parameter. + /// Specifies the WhseRcptHeader parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ShouldGetWhseRcptLine parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the PurchRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterCalcShouldGetWhseRcptLine(PurchRcptHeader: Record "Purch. Rcpt. Header"; PurchLine: Record "Purchase Line"; PostedWhseRcptHeader: Record "Posted Whse. Receipt Header"; WhseRcptHeader: Record "Warehouse Receipt Header"; CostBaseAmount: Decimal; WhseReceive: Boolean; WhseShip: Boolean; var ShouldGetWhseRcptLine: Boolean; xPurchLine: Record "Purchase Line"; var PurchRcptLine: Record "Purch. Rcpt. Line") begin end; + /// + /// Event raised by OnInsertReceiptLineOnAfterCalcShouldGetWhseShptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PostedWhseShptHeader parameter. + /// Specifies the WhseShptHeader parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ShouldGetWhseShptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterCalcShouldGetWhseShptLine(PurchRcptHeader: Record "Purch. Rcpt. Header"; PurchLine: Record "Purchase Line"; PostedWhseShptHeader: Record "Posted Whse. Shipment Header"; WhseShptHeader: Record "Warehouse Shipment Header"; CostBaseAmount: Decimal; WhseReceive: Boolean; WhseShip: Boolean; var ShouldGetWhseShptLine: Boolean) begin end; + /// + /// Event raised by OnInsertReturnShipmentLineOnAfterGetWhseShptLine. + /// + /// + /// Specifies the ReturnShptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReturnShipmentLineOnAfterGetWhseShptLine(var WhseShptLine: Record "Warehouse Shipment Line"; ReturnShptLine: Record "Return Shipment Line") begin end; + /// + /// Event raised by OnInsertReturnShipmentLineOnAfterReturnShptLineInit. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the PurchLine parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnInsertReturnShipmentLineOnAfterReturnShptLineInit(var ReturnShptHeader: Record "Return Shipment Header"; var ReturnShptLine: Record "Return Shipment Line"; var PurchLine: Record "Purchase Line"; var xPurchLine: Record "Purchase Line"; var CostBaseAmount: Decimal; WhseShip: Boolean; WhseReceive: Boolean); begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforePost. + /// + /// + /// Specifies the SalesOrderLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforePost(var ItemJournalLine: Record "Item Journal Line"; SalesOrderLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnAfterUpdateBlanketOrderLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the SalesOrderHeader parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the SrcCode parameter. + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnAfterUpdateBlanketOrderLine(var PurchaseHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer"; var SalesOrderLine: Record "Sales Line"; var SalesOrderHeader: record "Sales Header"; var SalesShptLine: record "Sales Shipment Line"; SalesShptHeader: Record "Sales Shipment Header"; SrcCode: Code[10]; Currency: Record Currency) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the SalesShptLine parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnBeforeUpdateBlanketOrderLine(var SalesOrderLine: Record "Sales Line"; SalesShptLine: Record "Sales Shipment Line") begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnAfterProcessDropShptPostBuffer. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnAfterProcessDropShptPostBuffer(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; PurchRcptHeader: Record "Purch. Rcpt. Header"; SalesShptLine: Record "Sales Shipment Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary); begin end; + /// + /// Event raised by OnPostDistributeItemChargeOnAfterCalcAmountToAssign. + /// + /// + /// Specifies the TempItemLedgerEntry parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the AmountToAssign parameter. + /// Specifies the Sign parameter. + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostDistributeItemChargeOnAfterCalcAmountToAssign(var PurchaseLine: Record "Purchase Line"; TempItemLedgerEntry: Record "Item Ledger Entry"; QtyToAssign: Decimal; AmountToAssign: Decimal; Sign: Decimal; Factor: Decimal) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterPostItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ItemChargeAssignmentPurch parameter. [IntegrationEvent(true, false)] local procedure OnPostItemChargeOnAfterPostItemJnlLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; ItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)") begin end; + /// + /// Event raised by OnPostItemChargeLineOnAfterPostItemCharge. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchaseLineBackup parameter. + /// Specifies the PurchLine parameter. [IntegrationEvent(true, false)] local procedure OnPostItemChargeLineOnAfterPostItemCharge(var TempItemChargeAssgntPurch: record "Item Charge Assignment (Purch)" temporary; PurchHeader: Record "Purchase Header"; PurchaseLineBackup: Record "Purchase Line"; PurchLine: Record "Purchase Line") begin end; - [IntegrationEvent(false, false)] + /// + /// Event raised by OnPostItemChargeLineOnBeforePostItemCharge. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the GenJnlLineDocNo parameter. + [IntegrationEvent(false, false)] local procedure OnPostItemChargeLineOnBeforePostItemCharge(var TempItemChargeAssgntPurch: record "Item Charge Assignment (Purch)" temporary; PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var GenJnlLineDocNo: Code[20]) begin end; + /// + /// Event raised by OnPostItemChargeOnBeforePostItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the PurchInvHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnBeforePostItemJnlLine(var PurchaseLineToPost: Record "Purchase Line"; var PurchaseLine: Record "Purchase Line"; QtyToAssign: Decimal; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; PurchInvHeader: Record "Purch. Inv. Header") begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnAfterCopyToItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the GeneralLedgerSetup parameter. + /// Specifies the QtyToInvoice parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnAfterCopyToItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; GeneralLedgerSetup: Record "General Ledger Setup"; QtyToInvoice: Decimal; var TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ReturnRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ReturnRcptLine: Record "Return Receipt Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerSalesRetRcptOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerSalesRetRcptOnBeforeTestJobNo(ReturnReceiptLine: Record "Return Receipt Line"; var IsHandled: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerSalesShptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerSalesShptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var SalesShptLine: Record "Sales Shipment Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerSalesShptOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerSalesShptOnBeforeTestJobNo(SalesShipmentLine: Record "Sales Shipment Line"; var IsHandled: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerRetShptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ReturnShptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetShptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ReturnShptLine: Record "Return Shipment Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRetShptOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetShptOnBeforeTestJobNo(ReturnShipmentLine: Record "Return Shipment Line"; var IsHandled: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerRcptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRcptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var PurchRcptLine: record "Purch. Rcpt. Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRcptOnAfterPurchRcptLineGet. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRcptOnAfterPurchRcptLineGet(PurchRcptLine: Record "Purch. Rcpt. Line"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerTransferOnAfterInitPurchLine2. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerTransferOnAfterInitPurchLine2(TransferReceiptLine: Record "Transfer Receipt Line"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerTransferOnBeforePostItemJnlLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemApplnEntry parameter. + /// Specifies the TransferReceiptLine parameter. + /// Specifies the ItemChargeAssignmentPurch parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerTransferOnBeforePostItemJnlLine(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; ItemApplnEntry: Record "Item Application Entry"; TransferReceiptLine: Record "Transfer Receipt Line"; ItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)") begin end; + /// + /// Event raised by OnPostItemChargePerITTransferOnAfterCollectItemEntryRelation. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TransRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerITTransferOnAfterCollectItemEntryRelation(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; TransRcptLine: Record "Transfer Receipt Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnBeforeTempWhseJnlLine2Find. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnBeforeTempWhseJnlLine2Find(var TempWarehouseJournalLine2: Record "Warehouse Journal Line" temporary; PurchaseLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyDocumentFields. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; PurchRcptHeader: Record "Purch. Rcpt. Header"; GenJnlLineExtDocNo: Code[35]; QtyToBeInvoiced: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforePostItemJnlLineCopyDocumentFields. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforePostItemJnlLineCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; QtyToBeInvoiced: Decimal; QtyToBeReceived: Decimal; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterPostItemJnlLineJobConsumption. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the OriginalItemJnlLine parameter. + /// Specifies the TempReservationEntry parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the PostJobConsumptionBeforePurch parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the TempWhseTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterPostItemJnlLineJobConsumption(var ItemJournalLine: Record "Item Journal Line"; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; OriginalItemJnlLine: Record "Item Journal Line"; var TempReservationEntry: Record "Reservation Entry" temporary; var TrackingSpecification: Record "Tracking Specification" temporary; QtyToBeInvoiced: Decimal; QtyToBeReceived: Decimal; var PostJobConsumptionBeforePurch: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyItemCharge. + /// + /// + /// Specifies the TempItemChargeAssgntPurch parameter. [IntegrationEvent(true, false)] local procedure OnPostItemJnlLineOnAfterCopyItemCharge(var ItemJournalLine: Record "Item Journal Line"; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeCopyDocumentFields. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforePostWhseJnlLine. + /// + /// + /// Specifies the TempWhseJnlLine parameter. + /// Specifies the ItemJnlLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforePostWhseJnlLine(TempHandlingSpecification: Record "Tracking Specification"; var TempWhseJnlLine: Record "Warehouse Journal Line"; ItemJnlLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumptionOnBeforeRunItemJnlPostLineWithReservation. + /// + /// + /// Specifies the TempReservationEntry parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(true, false)] local procedure OnPostItemJnlLineJobConsumptionOnBeforeRunItemJnlPostLineWithReservation(var ItemJournalLine: Record "Item Journal Line"; var TempReservationEntry: Record "Reservation Entry" temporary; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumption. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemJournalLine parameter. + /// Specifies the TempPurchReservEntry parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the PurchItemLedgEntryNo parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineJobConsumption(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; ItemJournalLine: Record "Item Journal Line"; var TempPurchReservEntry: Record "Reservation Entry" temporary; QtyToBeInvoiced: Decimal; QtyToBeReceived: Decimal; var TempTrackingSpecification: Record "Tracking Specification" temporary; PurchItemLedgEntryNo: Integer; var IsHandled: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterSetFactor. + /// + /// + /// Specifies the Factor parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterSetFactor(var PurchaseLine: Record "Purchase Line"; var Factor: Decimal; var GenJnlLineExtDocNo: Code[35]; var ItemJournalLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterPrepareItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterPrepareItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; PreviewMode: Boolean; var GenJnlLineDocNo: code[20]; TrackingSpecification: Record "Tracking Specification"; QtyToBeReceived: Decimal; QtyToBeInvoiced: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnCopyProdOrder. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the SuppressCommit parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnCopyProdOrder(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; QtyToBeReceived: Decimal; QtyToBeInvoiced: Decimal; SuppressCommit: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumptionOnBeforeJobPost. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the SrcCode parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the IsHandled parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineJobConsumptionOnBeforeJobPost( var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; @@ -10450,191 +12525,471 @@ codeunit 90 "Purch.-Post" begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnAfterPostRevert. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnAfterPostRevert(var TempWhseJnlLine: Record "Warehouse Journal Line" temporary; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnBeforePostSingleLine. + /// + /// + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the TempWhseJnlLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnBeforePostSingleLine(WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean; var TempWhseJnlLine: Record "Warehouse Journal Line" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the QtyToBeReceivedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck(var ItemJnlLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; QtyToBeReceived: Decimal; WhseReceive: Boolean; var TempWhseRcptHeader: Record "Warehouse Receipt Header" temporary; QtyToBeReceivedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeItemJnlPostLineRunWithCheck. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the DropShipOrder parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeReceivedBase parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeItemJnlPostLineRunWithCheck(var ItemJnlLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; DropShipOrder: Boolean; PurchaseHeader: Record "Purchase Header"; WhseReceive: Boolean; QtyToBeReceived: Decimal; QtyToBeReceivedBase: Decimal; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeInitAmount. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeInitAmount(var ItemJnlLine: Record "Item Journal Line"; PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine(var ItemChargePurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemLineOnBeforePostShipReceive. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemLineOnBeforePostShipReceive(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforeReceiptInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforeReceiptInvoiceErr(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforePostItemTrackingForReceiptCondition. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforePostItemTrackingForReceiptCondition(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchRcptLine: Record "Purch. Rcpt. Line"; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnAfterPurchRcptLineTestFields. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnAfterPurchRcptLineTestFields(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnAfterPurchRcptLineSetFilters. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnAfterPurchRcptLineSetFilters(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeReturnShipmentInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeReturnShipmentInvoiceErr(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostPurchLineOnAfterSetEverythingInvoiced. + /// + /// + /// Specifies the EverythingInvoiced parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the AmountsOnly parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterSetEverythingInvoiced(var PurchaseLine: Record "Purchase Line"; var EverythingInvoiced: Boolean; PurchaseHeader: Record "Purchase Header"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; var AmountsOnly: Boolean) begin end; + /// + /// Event raised by OnPostPurchLineOnAfterPostByType. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterPostByType(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnAfterCollectPurchaseLineReservEntries. + /// + /// + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCollectPurchaseLineReservEntries(var JobReservationEntry: Record "Reservation Entry"; ItemJournalLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnAfterGetPurchOrderLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetPurchOrderLine(var PurchaseLineOrder: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; PurchRcptLine: Record "Purch. Rcpt. Line") begin end; + /// + /// Event raised by OnPostPurchLineOnBeforePostByType. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLine parameter. + /// Specifies the PurchLineACY parameter. + /// Specifies the Sourcecode parameter. [IntegrationEvent(true, false)] local procedure OnPostPurchLineOnBeforePostByType(PurchHeader: Record "Purchase Header"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; PurchLine: Record "Purchase Line"; PurchLineACY: Record "Purchase Line"; Sourcecode: Code[10]) begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertCrMemoLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchCrMemoLine parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeInsertCrMemoLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; xPurchaseLine: Record "Purchase Line"); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertInvoiceLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchInvLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeInsertInvoiceLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; var PurchInvLine: Record "Purch. Inv. Line"); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertReceiptLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(true, false)] local procedure OnPostPurchLineOnBeforeInsertReceiptLine(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; PurchRcptHeader: Record "Purch. Rcpt. Header"; RoundingLineInserted: Boolean; CostBaseAmount: Decimal; xPurchaseLine: Record "Purchase Line"; var ReturnShipmentHeader: Record "Return Shipment Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var ItemLedgShptEntryNo: Integer; SrcCode: Code[10]; PreviewMode: Boolean; var WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseReceive: Boolean; WhseShip: Boolean; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; GenJnlLineDocNo: Code[20]); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the PurchRcptHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeInsertReturnShipmentLine(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; ReturnShptHeader: Record "Return Shipment Header"; TempPurchLineGlobal: Record "Purchase Line"; RoundingLineInserted: Boolean; xPurchaseLine: Record "Purchase Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeRoundAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeRoundAmount(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnPostPurchLineOnTypeCaseElse. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the SourceCode parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnTypeCaseElse(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; SourceCode: Code[10]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary); begin end; + /// + /// Event raised by OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDoc. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDoc(var PurchInvLine: Record "Purch. Inv. Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDocCrMemo. + /// + /// + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDocCrMemo(var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnAfterPurchOrderLineModify. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the ReturnShptLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnAfterPurchOrderLineModify(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary; var ReturnShptLine: Record "Return Shipment Line") begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnAfterResetTempLines. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnAfterResetTempLines(var TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnBeforeInitQtyToInvoice(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterPurchOrderLineGet. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the PurchOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterPurchOrderLineGet(var TempPurchLine: Record "Purchase Line" temporary; PurchRcptLine: Record "Purch. Rcpt. Line"; PurchOrderLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterPurchOrderLineModify. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchOrderLine parameter. + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterPurchOrderLineModify(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary; var PurchOrderLine: Record "Purchase Line"; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeUpdateBlanketOrderLine(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitOutstanding(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitQtyToInvoice(var TempPurchaseLine: Record "Purchase Line" temporary; WhseShip: Boolean; WhseReceive: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeLoop. + /// + /// + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeLoop(PurchHeader: Record "Purchase Header"; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnPurchHeaderReceive. + /// + /// + /// Specifies the PurchRcptHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnPurchHeaderReceive(var TempPurchLine: Record "Purchase Line"; PurchRcptHeader: Record "Purch. Rcpt. Header") begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnSetDefaultQtyBlank. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchPost parameter. + /// Specifies the SetDefaultQtyBlank parameter. [IntegrationEvent(true, false)] local procedure OnPostUpdateOrderLineOnSetDefaultQtyBlank(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary; PurchPost: Record "Purchases & Payables Setup"; var SetDefaultQtyBlank: Boolean) begin @@ -10642,162 +12997,360 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnProcessAssocItemJnlLineOnAfterInitTempDropShptPostBuffer. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnProcessAssocItemJnlLineOnAfterInitTempDropShptPostBuffer(var PurchLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnReleasePurchDocumentOnBeforeSetStatus. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnReleasePurchDocumentOnBeforeSetStatus(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRoundAmountOnBeforeCalculateLCYAmounts. + /// + /// + /// Specifies the PurchLineACY parameter. + /// Specifies the PurchHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TotalPurchaseLine parameter. + /// Specifies the TotalPurchaseLineLCY parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnBeforeCalculateLCYAmounts(var xPurchLine: Record "Purchase Line"; var PurchLineACY: Record "Purchase Line"; PurchHeader: Record "Purchase Header"; var IsHandled: Boolean; TotalPurchaseLine: Record "Purchase Line"; TotalPurchaseLineLCY: Record "Purchase Line"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnRoundAmountOnBeforeIncrAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the CurrExchRate parameter. + /// Specifies the NoVAT parameter. + /// Specifies the IsHandled parameter. + /// Specifies the NonDeductibleVAT parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnBeforeIncrAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchLineQty: Decimal; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line"; var xPurchaseLine: Record "Purchase Line"; var CurrExchRate: Record "Currency Exchange Rate"; var NoVAT: Boolean; var IsHandled: Boolean; var NonDeductibleVAT: Codeunit "Non-Deductible VAT") begin end; + /// + /// Event raised by OnRunOnBeforeFinalizePosting. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeFinalizePosting(var PurchaseHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShipmentHeader: Record "Return Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforeMakeInventoryAdjustment. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeMakeInventoryAdjustment(var PurchaseHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; PreviewMode: Boolean; PurchRcptHeader: Record "Purch. Rcpt. Header"; PurchInvHeader: Record "Purch. Inv. Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumPurchLines2OnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnAfterSetFilters(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnSumPurchLines2OnAfterDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnAfterDivideAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping; PurchLineQty: Decimal; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary) begin end; + /// + /// Event raised by OnSumPurchLines2OnBeforeDivideAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyType parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnBeforeDivideAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping) begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterSalesOrderHeaderModify. + /// + /// + /// Specifies the SalesSetup parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterSalesOrderHeaderModify(var SalesOrderHeader: Record "Sales Header"; var SalesSetup: Record "Sales & Receivables Setup") begin end; + /// + /// Event raised by OnUpdateAssociatedSalesOrderOnBeforeClearTempDropShptPostBuffer. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateAssociatedSalesOrderOnBeforeClearTempDropShptPostBuffer(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer") begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterSalesOrderLineModify. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesOrderHeader parameter. + /// Specifies the SalesShptHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterSalesOrderLineModify(var SalesOrderLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesOrderHeader: Record "Sales Header"; SalesShptHeader: Record "Sales Shipment Header") begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterOrderNoClearFilter. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterOrderNoClearFilter(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnUpdateAssocOrderOnBeforeSalesOrderLineModify. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnBeforeSalesOrderLineModify(var SalesOrderLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheck. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheck(var BlanketOrderPurchLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeInitOutstanding(var BlanketOrderPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnAfterCheckBlanketOrderPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnAfterCheckBlanketOrderPurchLine(var BlanketOrderPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnUpdatePurchLineBeforePostOnAfterCalcInitQtyToInvoiceNeeded. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the InitQtyToInvoiceNeeded parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePurchLineBeforePostOnAfterCalcInitQtyToInvoiceNeeded(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var InitQtyToInvoiceNeeded: Boolean) begin end; + /// + /// Event raised by OnUpdateWhseDocumentsOnAfterUpdateWhseRcpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateWhseDocumentsOnAfterUpdateWhseRcpt(var WarehouseReceiptHeader: Record "Warehouse Receipt Header") begin end; + /// + /// Event raised by OnUpdateWhseDocumentsOnAfterUpdateWhseShpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateWhseDocumentsOnAfterUpdateWhseShpt(var WarehouseShipmentHeader: Record "Warehouse Shipment Header") begin end; + /// + /// Event raised by OnBeforeRunItemJnlPostLineWithReservation. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeRunItemJnlPostLineWithReservation(var ItemJournalLine: Record "Item Journal Line"); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterCopyAndCheckItemCharge. + /// + /// [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterCopyAndCheckItemCharge(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterCalcCopyAndCheckItemChargeNeeded. + /// + /// + /// Specifies the CopyAndCheckItemChargeNeeded parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterCalcCopyAndCheckItemChargeNeeded(var PurchHeader: Record "Purchase Header"; var CopyAndCheckItemChargeNeeded: Boolean) begin end; + /// + /// Event raised by OnUpdatePostingNosOnBeforeUpdatePostingNo. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnBeforeUpdatePostingNo(PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; var ModifyHeader: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdatePostingNosOnAfterCalcShouldUpdateReceivingNo. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the ShouldUpdateReceivingNo parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnAfterCalcShouldUpdateReceivingNo(PurchaseHeader: Record "Purchase Header"; PreviewMode: Boolean; var ModifyHeader: Boolean; var ShouldUpdateReceivingNo: Boolean) begin end; + /// + /// Event raised by OnCreatePositiveOnBeforeWhseJnlPostLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnCreatePositiveOnBeforeWhseJnlPostLine(var WhseJnlLine: Record "Warehouse Journal Line") begin end; + /// + /// Event raised by OnCreatePostedWhseShptLineOnBeforeCreatePostedShptLine. + /// + /// + /// Specifies the WarehouseShipmentLine parameter. + /// Specifies the PostedWhseShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnCreatePostedWhseShptLineOnBeforeCreatePostedShptLine(var ReturnShipmentLine: Record "Return Shipment Line"; var WarehouseShipmentLine: Record "Warehouse Shipment Line"; PostedWhseShipmentHeader: Record "Posted Whse. Shipment Header") begin end; + /// + /// Event raised by OnCreatePostedRcptLineOnBeforeCreatePostedRcptLine. + /// + /// + /// Specifies the WarehouseReceiptLine parameter. + /// Specifies the PostedWhseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnCreatePostedRcptLineOnBeforeCreatePostedRcptLine(var ReturnShipmentLine: Record "Return Shipment Line"; var WarehouseReceiptLine: Record "Warehouse Receipt Line"; PostedWhseReceiptHeader: Record "Posted Whse. Receipt Header") begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnBeforeTempTrackingSpecificationModify. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnBeforeTempTrackingSpecificationModify(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification. + /// + /// [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification(var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnBeforePostUpdateInvoiceLine. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateInvoiceLine(var TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean; var PurchaseHeader: Record "Purchase Header") begin @@ -10805,102 +13358,228 @@ codeunit 90 "Purch.-Post" #if not CLEAN28 [Obsolete('This event is no longer used.', '28.0')] + /// + /// Event raised by OnBeforeCheckAssociatedSalesOrderLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckAssociatedSalesOrderLine(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; #endif + /// + /// Event raised by OnBeforeCheckAssociatedOrderLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeCheckAssociatedOrderLines(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeCheckReceiveInvoiceShip. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckReceiveInvoiceShip(var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingItemChargePerOrderOnAfterCalcFactor. + /// + /// + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the TempTrackingSpecificationChargeAssmt parameter. + /// Specifies the SignFactor parameter. + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingItemChargePerOrderOnAfterCalcFactor(var NonDistrItemJnlLine: Record "Item Journal Line"; var ItemJnlLine2: Record "Item Journal Line"; var TempTrackingSpecificationChargeAssmt: Record "Tracking Specification"; SignFactor: Integer; Factor: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingItemChargePerOrderOnAfterUpdateItemJnlLine2LocationCode. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostItemTrackingItemChargePerOrderOnAfterUpdateItemJnlLine2LocationCode(var ItemJnlLine2: Record "Item Journal Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnAfterReturnShptLineReset. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnAfterReturnShptLineReset(var ReturnShptLine: Record "Return Shipment Line"; PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeSetItemEntryRelationForShipment. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeSetItemEntryRelationForShipment(var ItemEntryRelation: Record "Item Entry Relation"; var ReturnShptLine: Record "Return Shipment Line"; var InvoicingTrackingSpecification: Record "Tracking Specification"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding(ReturnShptLine: Record "Return Shipment Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnAfterFillTempLines. + /// + /// [IntegrationEvent(true, false)] local procedure OnRunOnAfterFillTempLines(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnRunOnAfterInvoiceRounding. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(true, false)] local procedure OnRunOnAfterInvoiceRounding(var PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnRunOnBeforeFillTempLines. + /// + /// + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(true, false)] local procedure OnRunOnBeforeFillTempLines(PreviewMode: Boolean; var GenJnlLineDocNo: Code[20]) begin end; + /// + /// Event raised by OnRunOnAfterPostPurchLine. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the ReturnShipmentHeader parameter. [IntegrationEvent(true, false)] local procedure OnRunOnAfterPostPurchLine(var TempPurchLineGlobal: Record "Purchase Line" temporary; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var ReturnShipmentHeader: Record "Return Shipment Header") begin end; + /// + /// Event raised by OnAfterCalcInvDiscount. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(true, false)] local procedure OnAfterCalcInvDiscount(PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostGLAccICLineOnBeforeCheckAndInsertICGenJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the ICGenJnlLineNo parameter. [IntegrationEvent(false, false)] local procedure OnPostGLAccICLineOnBeforeCheckAndInsertICGenJnlLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; ICGenJnlLineNo: Integer) begin end; + /// + /// Event raised by OnPostGLAccICLineOnAfterCreateJobPurchLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostGLAccICLineOnAfterCreateJobPurchLine(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostItemJnlLineTrackingOnBeforeTempHandlingSpecificationFind. + /// + /// + /// Specifies the TempHandlingSpecification parameter. [IntegrationEvent(true, false)] local procedure OnPostItemJnlLineTrackingOnBeforeTempHandlingSpecificationFind(PurchLine: Record "Purchase Line"; var TempHandlingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnFinalizePostingOnAfterUpdateItemChargeAssgnt. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the TempPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(true, false)] local procedure OnFinalizePostingOnAfterUpdateItemChargeAssgnt(var PurchHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var EverythingInvoiced: Boolean; var TempPurchLine: Record "Purchase Line" temporary; var TempPurchLineGlobal: Record "Purchase Line" temporary; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeInsertValueEntryRelation. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(true, false)] local procedure OnFinalizePostingOnBeforeInsertValueEntryRelation(var PurchHeader: Record "Purchase Header"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the TempPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(true, false)] local procedure OnFinalizePostingOnBeforeInsertTrackingSpecification(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; PurchHeader: Record "Purchase Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; EverythingInvoiced: Boolean; var TempPurchLine: Record "Purchase Line"; var TempPurchLineGlobal: Record "Purchase Line") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeUpdateWhseDocuments. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the WarehouseReceive parameter. + /// Specifies the WarehouseShip parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeUpdateWhseDocuments(var PurchaseHeader: Record "Purchase Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; WarehouseReceive: Boolean; WarehouseShip: Boolean; var IsHandled: Boolean) @@ -10910,670 +13589,1504 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnFinalizePostingOnBeforeCommit. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeCommit(PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertReceiptLineOnBeforeCreatePostedRcptLine. + /// + /// + /// Specifies the WarehouseReceiptLine parameter. + /// Specifies the PostedWhseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnBeforeCreatePostedRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var WarehouseReceiptLine: Record "Warehouse Receipt Line"; PostedWhseReceiptHeader: Record "Posted Whse. Receipt Header") begin end; + /// + /// Event raised by OnInsertReceiptLineOnBeforeCreatePostedShptLine. + /// + /// + /// Specifies the WarehouseShipmentLine parameter. + /// Specifies the PostedWhseShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnBeforeCreatePostedShptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var WarehouseShipmentLine: Record "Warehouse Shipment Line"; PostedWhseShipmentHeader: Record "Posted Whse. Shipment Header") begin end; + /// + /// Event raised by OnInsertReceiptLineOnBeforeProcessWhseShptRcpt. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the PurchRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnBeforeProcessWhseShptRcpt(var PurchLine: Record "Purchase Line"; var IsHandled: Boolean; var CostBaseAmount: Decimal; PurchRcptLine: Record "Purch. Rcpt. Line") begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeArchiveUnpostedOrder. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeArchiveUnpostedOrder(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterInsertPostedHeaders. + /// + /// [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterInsertPostedHeaders(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeReleaseSalesHeader. + /// + /// + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeReleaseSalesHeader(var PurchHeader: Record "Purchase Header"; var SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnAfterReleaseSalesHeader. + /// + /// + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnAfterReleaseSalesHeader(var PurchHeader: Record "Purchase Header"; var SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdatePostingNosOnAfterSetReturnShipmentNoFromNos. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnAfterSetReturnShipmentNoFromNos(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnUpdatePostingNosOnInvoiceOnBeforeSetPostingNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnInvoiceOnBeforeSetPostingNo(var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists. + /// + /// + /// Specifies the PostingDateExists parameter. + /// Specifies the ReplacePostingDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the VATDateExists parameter. + /// Specifies the ReplaceVATDate parameter. + /// Specifies the VATDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists(var PurchHeader: Record "Purchase Header"; var PostingDateExists: Boolean; var ReplacePostingDate: Boolean; var PostingDate: Date; var ReplaceDocumentDate: Boolean; var ModifyHeader: Boolean; var VATDateExists: Boolean; var ReplaceVATDate: Boolean; var VATDate: Date) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchaseLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchaseLine(PurchaseLine: Record "Purchase Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchRcptLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchRcptLine(PurchRcptLine: Record "Purch. Rcpt. Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnShipmentLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnShipmentLine(ReturnShipmentLine: Record "Return Shipment Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertReturnShipmentHeader. + /// + /// + /// Specifies the ReturnShptHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReturnShipmentHeader(var PurchHeader: Record "Purchase Header"; var ReturnShptHeader: Record "Return Shipment Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertInvoiceHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Window parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PurchCommentLine parameter. + /// Specifies the RecordLinkManagement parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertInvoiceHeader(var PurchHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var IsHandled: Boolean; var Window: Dialog; var HideProgressWindow: Boolean; var SrcCode: Code[10]; var PurchCommentLine: Record "Purch. Comment Line"; var RecordLinkManagement: Codeunit "Record Link Management") begin end; + /// + /// Event raised by OnBeforeInserCrMemoHeader. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the Window parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the PurchCommentLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInserCrMemoHeader(var PurchHeader: Record "Purchase Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var HideProgressWindow: Boolean; var Window: Dialog; var IsHandled: Boolean; SrcCode: Code[10]; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; var PurchCommentLine: Record "Purch. Comment Line") begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnBeforeCopyComments. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnBeforeCopyComments(var PurchHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesShptHeader: Record "Sales Shipment Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnBeforePostBalancingEntry. + /// + /// + /// Specifies the LineCount parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnBeforePostBalancingEntry(var PurchHeader: Record "Purchase Header"; var LineCount: Integer) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterReceive. + /// + /// + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterReceive(var PurchHeader: Record "Purchase Header"; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeUpdateAssosOrderPostingNos. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the DropShipment parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateAssosOrderPostingNos(var TempPurchLine: Record "Purchase Line" temporary; var PurchHeader: Record "Purchase Header"; var DropShipment: Boolean; var IsHandled: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeUpdateAfterPosting. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeUpdateAfterPosting(var PurchHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var EverythingInvoiced: Boolean; var IsHandled: Boolean; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforePurchOrderLineModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforePurchOrderLineModify(var PurchOrderLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePostPurchLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostPurchLine(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeFindTempPurchLine. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeFindTempPurchLine(var TempPurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"); begin end; + /// + /// Event raised by OnCalcInvoiceOnAfterResetTempLines. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the NewInvoice parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvoiceOnAfterResetTempLines(var PurchHeader: Record "Purchase Header"; var TempPurchLine: Record "Purchase Line" temporary; var NewInvoice: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnAfterPostInvoice. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the Window parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnRunOnAfterPostInvoice(var PurchaseHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var ReturnShipmentHeader: Record "Return Shipment Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PreviewMode: Boolean; var Window: Dialog; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnCopyToTempLinesLoop. + /// + /// [IntegrationEvent(false, false)] local procedure OnCopyToTempLinesLoop(var PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnRunOnBeforePostPurchLine. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforePostPurchLine(var PurchLine: Record "Purchase Line"; var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeValidateICPartnerBusPostingGroups. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeValidateICPartnerBusPostingGroups(var TempICGenJnlLine: Record "Gen. Journal Line" temporary; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterGetCurrency. + /// + /// + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetCurrency(CurrencyCode: Code[10]; var Currency: Record Currency) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterGetPurchPrepmtAccount. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterGetPurchPrepmtAccount(var GLAcc: Record "G/L Account"; var TempPurchaseLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeGetPurchPrepmtAccount. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the GenPostingSetup parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeGetPurchPrepmtAccount(var GLAcc: Record "G/L Account"; var TempPurchaseLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; var GenPostingSetup: Record "General Posting Setup"; CompleteFunctionality: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertReturnEntryRelation. + /// + /// + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReturnEntryRelation(var ReturnShptLine: Record "Return Shipment Line"; var Result: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestPurchLineOnBeforeTestFieldQtyToReceive. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnTestPurchLineOnBeforeTestFieldQtyToReceive(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestPurchLineOnBeforeTestFieldReturnQtyToShip. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnTestPurchLineOnBeforeTestFieldReturnQtyToShip(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnAfterCalcVATAmountLines. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TempVATAmountLine parameter. [IntegrationEvent(false, false)] local procedure OnRunOnAfterCalcVATAmountLines(var PurchaseHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var TempVATAmountLine: Record "VAT Amount Line" temporary) begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforeInitAssocItemJnlLine. + /// + /// + /// Specifies the ItemShptEntryNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforeInitAssocItemJnlLine(var SalesOrderLine: Record "Sales Line"; var ItemShptEntryNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingSpecificationOnBeforeGetItemTrackingSetup. + /// + /// + /// Specifies the ItemTrackingSetup parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingSpecificationOnBeforeGetItemTrackingSetup(var PurchaseLine: Record "Purchase Line"; var ItemTrackingSetup: Record "Item Tracking Setup"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcItemJnlLineToBeReceivedAmounts. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the RemAmt parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcItemJnlLineToBeReceivedAmounts(var ItemJnlLine: Record "Item Journal Line"; var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyToBeReceived: Decimal; var RemAmt: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforeExit. + /// + /// + /// Specifies the ItemShptEntryNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforeExit(SalesOrderHeader: Record "Sales Header"; var ItemShptEntryNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeCalcQty. + /// + /// + /// Specifies the PurchOrderLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeCalcQty(var TempPurchLine: Record "Purchase Line" temporary; var PurchOrderLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnBeforeInsertSalesShptHeader. + /// + /// + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnBeforeInsertSalesShptHeader(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterShouldCalcAmounts. + /// + /// + /// Specifies the ShouldCalcAmounts parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterShouldCalcAmounts(PurchHeader: Record "Purchase Header"; var ShouldCalcAmounts: Boolean; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeDivideAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnAfterUpdateSalesOrderLine. + /// + /// + /// Specifies the SalesOrderHeader parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the SalesShipmentLine parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnAfterUpdateSalesOrderLine(SalesShptHeader: Record "Sales Shipment Header"; SalesOrderHeader: Record "Sales Header"; var SalesOrderLine: Record "Sales Line"; SalesShipmentLine: Record "Sales Shipment Line") begin end; + /// + /// Event raised by OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckPosted. + /// + /// + /// Specifies the ShouldCheckPosted parameter. [IntegrationEvent(false, false)] local procedure OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckPosted(PurchHeader: Record "Purchase Header"; var ShouldCheckPosted: Boolean) begin end; + /// + /// Event raised by OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckUnposted. + /// + /// + /// Specifies the ShouldCheckUnposted parameter. [IntegrationEvent(false, false)] local procedure OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckUnposted(PurchHeader: Record "Purchase Header"; var ShouldCheckUnposted: Boolean) begin end; + /// + /// Event raised by OnAfterCopyToTempLines. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterCopyToTempLines(var TempPurchLine: Record "Purchase Line" temporary; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnBeforeTempPurchLineSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnBeforeTempPurchLineSetFilters(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForShipment. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForShipment(var PurchHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostGLAccICLineOnBeforeCreateJobPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostGLAccICLineOnBeforeCreateJobPurchLine(var PurchHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeIsItemChargeLineWithQuantityToInvoice. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeIsItemChargeLineWithQuantityToInvoice(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerRcpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRcpt(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterGetAppliedOutboundItemLedgEntryNo. + /// + /// + /// Specifies the ItemApplicationEntry parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetAppliedOutboundItemLedgEntryNo(var ItemJnlLine: Record "Item Journal Line"; var ItemApplicationEntry: Record "Item Application Entry") begin end; + /// + /// Event raised by OnAfterGetGeneralPostingSetup. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetGeneralPostingSetup(var GeneralPostingSetup: Record "General Posting Setup"; PurchLine: Record "Purchase Line"); begin end; + /// + /// Event raised by OnBeforeConfirmJobLineType. + /// + /// + /// Specifies the HideDialog parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeConfirmJobLineType(PurchLine: Record "Purchase Line"; var HideDialog: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeConfirmJobPlanningLineNo. + /// + /// + /// Specifies the HideDialog parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeConfirmJobPlanningLineNo(PurchLine: Record "Purchase Line"; var HideDialog: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldProcessShipment. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ShouldProcessShipment parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldProcessShipment(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ShouldProcessShipment: Boolean) begin end; + /// + /// Event raised by OnCheckItemReservDisruptionOnAfterInsertTempSKU. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckItemReservDisruptionOnAfterInsertTempSKU(var Item: Record Item; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterPostItemChargePerRetRcpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerRetRcpt(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerTransfer. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerTransfer(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerRetShpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerRetShpt(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerSalesShpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerSalesShpt(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnInsertInvoiceHeaderOnBeforeCopyLinks. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertInvoiceHeaderOnBeforeCopyLinks(var PurchHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeUpdateIncomingDocument. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeUpdateIncomingDocument(var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumptionOnAfterItemLedgEntrySetFilters. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineJobConsumptionOnAfterItemLedgEntrySetFilters(var ItemLedgEntry: Record "Item Ledger Entry"; var PurchLine: Record "Purchase Line"; var ItemJournalLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnTestPurchLineOnTypeCaseOnDocumentTypeCaseElse. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnTestPurchLineOnTypeCaseOnDocumentTypeCaseElse(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterDecrementPrepmtAmtInvLCY. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PrepmtAmountInvLCY parameter. + /// Specifies the PrepmtVATAmountInvLCY parameter. [IntegrationEvent(false, false)] local procedure OnAfterDecrementPrepmtAmtInvLCY(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var PrepmtAmountInvLCY: Decimal; var PrepmtVATAmountInvLCY: Decimal) begin end; #if not CLEAN27 + /// + /// Event raised by OnSetPostingPreviewDocumentNo. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnSetPostingPreviewDocumentNo(var PreviewDocumentNo: Code[20]) begin end; + /// + /// Event raised by OnGetPostingPreviewDocumentNos. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnGetPostingPreviewDocumentNos(var PreviewDocumentNos: List of [Code[20]]) begin end; #endif + /// + /// Event raised by OnInsertPostedHeadersOnAfterInvoice. + /// + /// + /// Specifies the GenJournalLine parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInvoice(var PurchaseHeader: Record "Purchase Header"; var GenJournalLine: Record "Gen. Journal Line"; var GenJnlLineDocType: Enum "Gen. Journal Document Type"; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterSumPurchLines2. + /// + /// + /// Specifies the OldPurchaseLine parameter. + /// Specifies the NewPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterSumPurchLines2(var PurchaseHeader: Record "Purchase Header"; var OldPurchaseLine: Record "Purchase Line"; var NewPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnTypeCaseElse. + /// + /// + /// Specifies the Sign parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnTypeCaseElse(var PurchaseLine: Record "Purchase Line"; var Sign: Decimal) begin end; + /// + /// Event raised by OnSumPurchLines2OnAfterIsRoundingLineInserted. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the OldPurchaseLine parameter. + /// Specifies the RoundingLineInserted parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnAfterIsRoundingLineInserted(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var OldPurchaseLine: Record "Purchase Line"; RoundingLineInserted: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckICPartnerBlocked. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckICPartnerBlocked(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnAfterPostLines. + /// + /// + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TotalAmount parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnAfterPostLines(var PurchaseHeader: Record "Purchase Header"; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line"; var TempPurchLineGlobal: Record "Purchase Line" temporary; TotalAmount: Decimal) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforePurchaseHeaderModify. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforePurchaseHeaderModify(var PurchaseHeader: Record "Purchase Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePurchLineDimSetIDFromAppliedEntry. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePurchLineDimSetIDFromAppliedEntry(var PurchaseLineToPost: Record "Purchase Line"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterDeleteItemChargeAssgnt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterDeleteItemChargeAssgnt(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforePostItemChargePerRetRcpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRetRcpt(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerITTransfer. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TransRcptLine parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerITTransfer(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; TransRcptLine: Record "Transfer Receipt Line"; var TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerRetShpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRetShpt(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeShouldTestGetReceiptPPmtAmtToDeduct. + /// + /// + /// Specifies the CompleteFunctionality parameter. + /// Specifies the ShouldTestGetReceiptPPmtAmtToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeShouldTestGetReceiptPPmtAmtToDeduct(PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean; var ShouldTestGetReceiptPPmtAmtToDeduct: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeAmountIncludingVATAmountRound. + /// + /// + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeAmountIncludingVATAmountRound(var PurchaseLine: Record "Purchase Line"; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeCalcAmountsForFullVAT. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeCalcAmountsForFullVAT(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckMandatoryFields. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckMandatoryFields(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckPostingDate. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPostingDate(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterInsertCrMemoHeader. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertCrMemoHeader(var PurchaseHeader: Record "Purchase Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnAfterInsertInvoiceHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertInvoiceHeader(var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header") begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeOnBeforeDoCommit. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeOnBeforeDoCommit(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnReleasePurchDocumentOnBeforeDoCommit. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnReleasePurchDocumentOnBeforeDoCommit(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateAssociatedSalesOrderBeforeInitOutstanding. + /// + /// + /// Specifies the SalesOrderLine parameter. + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssociatedSalesOrderBeforeInitOutstanding(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesOrderLine: Record "Sales Line"; SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnRunOnBeforePostInvoice. + /// + /// + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforePostInvoice(PurchaseHeader: Record "Purchase Header"; var EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnCheckPurchDocumentOnBeforeCheckPurchDim. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckPurchDocumentOnBeforeCheckPurchDim(var PurchaseHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnCalcInvDiscountOnBeforeDoCommit. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvDiscountOnBeforeDoCommit(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeSetReplaceDocumentDate. + /// + /// + /// Specifies the PostingDate parameter. + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeSetReplaceDocumentDate(var PurchaseHeader: Record "Purchase Header"; var PostingDate: Date; var ReplaceDocumentDate: Boolean; var ModifyHeader: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineGet. + /// + /// + /// Specifies the TempVATAmountLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineGet(PurchaseLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckFAPostingPossibility. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckFAPostingPossibility(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckPostRestrictions. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPostRestrictions(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeTestGeneralPostingGroups. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeTestGeneralPostingGroups(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeTestFieldBilltoCustomerNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeTestFieldBilltoCustomerNo(var SalesOrderHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnAfterCalcVATBaseAmount. + /// + /// [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterCalcVATBaseAmount(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeUpdateAfterPosting. + /// + /// + /// Specifies the SuppressCommit parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateAfterPosting(var PurchaseHeader: Record "Purchase Header"; SuppressCommit: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckAndUpdate. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckAndUpdate(var PurchaseHeader: Record "Purchase Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterCalcTotalChargeAmt. + /// + /// + /// Specifies the QtyToAssign parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnAfterCalcTotalChargeAmt(var PurchaseLineToPost: Record "Purchase Line"; QtyToAssign: Decimal; var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostPurchLineOnAfterInsertReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the TempPurchaseLineGlobal parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterInsertReturnShipmentLine(var PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; ReturnShptHeader: Record "Return Shipment Header"; TempPurchaseLineGlobal: Record "Purchase Line"; RoundingLineInserted: Boolean; xPurchaseLine: Record "Purchase Line"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."); begin end; + /// + /// Event raised by OnBeforeMakeInventoryAdjustment. + /// + /// [IntegrationEvent(false, false)] procedure OnBeforeMakeInventoryAdjustment(var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeCheckItemReservDisruption. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckItemReservDisruption(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterSetCheckApplToItemEntry. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterSetCheckApplToItemEntry(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeCalcVATBaseAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeCalcVATBaseAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeCalcPmtDiscountAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeCalcPmtDiscountAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheckBlanketOrderPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheckBlanketOrderPurchLine(var BlanketOrderPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeModifyInvoicedQtyOnPurchRcptLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeModifyInvoicedQtyOnPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeTestPostingDate. + /// + /// + /// Specifies the ReplacePostingDate parameter. + /// Specifies the SkipTestPostingDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeTestPostingDate(var PurchaseHeader: Record "Purchase Header"; ReplacePostingDate: Boolean; var SkipTestPostingDate: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckItemCharge. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckItemCharge(var ItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeProcedurePostAssocItemJnlLine. + /// + /// + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the ItemShptEntryNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeProcedurePostAssocItemJnlLine(var SalesOrderLine: Record "Sales Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempHandlingSpecification: Record "Tracking Specification" temporary; QtyToBeShipped: Decimal; QtyToBeShippedBase: Decimal; var ItemShptEntryNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostDistributeItemChargeOnAfterSetFactor. + /// + /// + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostDistributeItemChargeOnAfterSetFactor(TempItemLedgerEntry: Record "Item Ledger Entry"; var Factor: Decimal) begin end; + /// + /// Event raised by OnBeforeCalcItemJnlLineToBeInvoicedAmounts. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the RemAmt parameter. + /// Specifies the RemDiscAmt parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcItemJnlLineToBeInvoicedAmounts(var ItemJournalLine: Record "Item Journal Line"; var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; var RemAmt: Decimal; var RemDiscAmt: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemJnlLineWhseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the PostBefore parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLineWhseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary; PurchaseLine: Record "Purchase Line"; PostBefore: Boolean) begin end; + /// + /// Event raised by OnAfterPostItemJnlLineWhseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLineWhseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerTransferOnBeforeProcessItemApplicationEntry. + /// + /// + /// Specifies the ItemApplicationEntry parameter. + /// Specifies the TransferReceiptLine parameter. + /// Specifies the TotalAmountToPostFCY parameter. + /// Specifies the AmountToPostFCY parameter. + /// Specifies the GeneralLedgerSetup parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerTransferOnBeforeProcessItemApplicationEntry(PurchaseLine: Record "Purchase Line"; ItemApplicationEntry: Record "Item Application Entry"; TransferReceiptLine: Record "Transfer Receipt Line"; TotalAmountToPostFCY: Decimal; var AmountToPostFCY: Decimal; GeneralLedgerSetup: Record "General Ledger Setup"; PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemCharge. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ItemEntryNo parameter. + /// Specifies the QuantityBase parameter. + /// Specifies the AmountToAssign parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the IndirectCostPct parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemCharge(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; ItemEntryNo: Integer; QuantityBase: Decimal; AmountToAssign: Decimal; QtyToAssign: Decimal; IndirectCostPct: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertedPrepmtVATBaseToDeductOnAfterSetTempPrepmtDeductLCYPurchaseLine. + /// + /// + /// Specifies the PrepmtVATBaseToDeduct parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertedPrepmtVATBaseToDeductOnAfterSetTempPrepmtDeductLCYPurchaseLine(var TempPrepmtDeductLCYPurchaseLine: Record "Purchase Line" temporary; var PrepmtVATBaseToDeduct: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeAdjustPrepmtAmountLCY. + /// + /// + /// Specifies the PrepmtPurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustPrepmtAmountLCY(PurchaseHeader: Record "Purchase Header"; var PrepmtPurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeAdjustFinalInvWith100PctPrepmt. + /// + /// + /// Specifies the TempPrepmtDeductLCYPurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustFinalInvWith100PctPrepmt(var CombinedPurchaseLine: Record "Purchase Line"; var TempPrepmtDeductLCYPurchaseLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateInvoicedQtyOnReturnShipmentLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoicedQtyOnReturnShipmentLine(var ReturnShipmentLine: Record "Return Shipment Line") begin end; + /// + /// Event raised by OnAfterCheckPurchRcptLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckPurchRcptLine(PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnUpdateItemChargeAssgntOnBeforeItemChargeAssignmentPurchModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateItemChargeAssgntOnBeforeItemChargeAssignmentPurchModify(var ItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)") begin end; + /// + /// Event raised by OnBeforeUpdateReceiptInvoicingQuantities. + /// + /// + /// Specifies the SkipQuantityUpdate parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateReceiptInvoicingQuantities(PurchLine: Record "Purchase Line"; var SkipQuantityUpdate: Boolean) begin end; + /// + /// Event raised by OnSetCommitBehavior. + /// + /// [IntegrationEvent(false, false)] local procedure OnSetCommitBehavior(var IgnoreCommit: Boolean) begin end; + + /// + /// Event raised by OnAfterProcessPostingLines. + /// + /// + /// Specifies the TotalPurchLine parameter. + /// Specifies the VendLedgEntry parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the Window parameter. + [IntegrationEvent(false, false)] + local procedure OnAfterProcessPostingLines(var PurchHeader: Record "Purchase Header"; var TotalPurchLine: Record "Purchase Line"; var VendLedgEntry: Record "Vendor Ledger Entry"; InvoicePostingParameters: Record "Invoice Posting Parameters"; SuppressCommit: Boolean; EverythingInvoiced: Boolean; var Window: Dialog) + begin + end; + + /// + /// Event is raised after the CheckPostRestrictions function is executed + /// + /// The purchase header record that was checked for post restrictions. + [IntegrationEvent(false, false)] + local procedure OnAfterCheckPostRestrictions(var PurchaseHeader: Record "Purchase Header") + begin + end; } + diff --git a/src/Layers/BE/BaseApp/Sales/Posting/SalesPost.Codeunit.al b/src/Layers/BE/BaseApp/Sales/Posting/SalesPost.Codeunit.al index 2d89ac863f3..644fcc627d8 100644 --- a/src/Layers/BE/BaseApp/Sales/Posting/SalesPost.Codeunit.al +++ b/src/Layers/BE/BaseApp/Sales/Posting/SalesPost.Codeunit.al @@ -352,6 +352,8 @@ codeunit 80 "Sales-Post" ProcessPosting(SalesHeader, SalesHeader2, TempDropShptPostBuffer, CustLedgEntry, EverythingInvoiced); + Clear(GenJnlPostLine); + UpdateLastPostingNos(SalesHeader); OnRunOnBeforeFinalizePosting( @@ -540,6 +542,8 @@ codeunit 80 "Sales-Post" OnRunOnBeforeMakeInventoryAdjustment(SalesHeader, SalesInvHeader, GenJnlPostLine, ItemJnlPostLine, PreviewMode, SkipInventoryAdjustment); if not SkipInventoryAdjustment then MakeInventoryAdjustment(); + + OnAfterProcessPostingLines(SalesHeader, TotalSalesLine, CustLedgEntry, InvoicePostingParameters, SuppressCommit, EverythingInvoiced, Window, HideProgressWindow); end; /// @@ -6301,6 +6305,8 @@ codeunit 80 "Sales-Post" if SalesHeader."Bill-to Contact No." <> '' then if Contact.Get(SalesHeader."Bill-to Contact No.") then Contact.CheckIfPrivacyBlocked(true); + + OnAfterCheckPostRestrictions(SalesHeader); end; local procedure CheckCustBlockage(SalesHeader: Record "Sales Header"; CustCode: Code[20]; ExecuteDocCheck: Boolean) @@ -9464,6 +9470,7 @@ codeunit 80 "Sales-Post" /// Indicates whether the item journal line should be posted. /// Indicates whether warehouse shipment is involved. /// The warehouse receipt header. + /// Specifies the WarehouseShipmentHeader parameter. [IntegrationEvent(true, false)] local procedure OnAfterPostItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var WhseJnlPostLine: Codeunit "Whse. Jnl.-Register Line"; OriginalItemJnlLine: Record "Item Journal Line"; var ItemShptEntryNo: Integer; IsATO: Boolean; var TempHandlingSpecification: Record "Tracking Specification"; var TempATOTrackingSpecification: Record "Tracking Specification"; TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; ShouldPostItemJnlLine: Boolean; WhseShip: Boolean; WhseRcptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header") begin @@ -12623,834 +12630,1960 @@ codeunit 80 "Sales-Post" begin end; + /// + /// Event raised by OnSumSalesLines2OnAfterDivideAmount. + /// + /// + /// Specifies the SalesLineQty parameter. + /// Specifies the QtyType parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnAfterDivideAmount(var OldSalesLine: Record "Sales Line"; var SalesLineQty: Decimal; QtyType: Option General,Invoicing,Shipping) begin end; + /// + /// Event raised by OnSumSalesLines2OnAfterCalcTotalAdjCostLCY. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnAfterCalcTotalAdjCostLCY(var TotalAdjCostLCY: decimal; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnSumSalesLines2OnBeforeCalcVATAmountLines. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the InsertSalesLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnBeforeCalcVATAmountLines(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; InsertSalesLine: Boolean; var TempVATAmountLine: Record "VAT Amount Line" temporary; QtyType: Option General,Invoicing,Shipping; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumSalesLines2OnBeforeNewSalesLineInsert. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnBeforeNewSalesLineInsert(var NewSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumSalesLines2SetFilter. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the InsertSalesLine parameter. + /// Specifies the QtyType parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2SetFilter(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; InsertSalesLine: Boolean; var QtyType: Option) begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnBeforePostTempWhseJnlLine2. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnBeforePostTempWhseJnlLine2(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterTestUpdatedSalesLine. + /// + /// + /// Specifies the EverythingInvoiced parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterTestUpdatedSalesLine(var SalesLine: Record "Sales Line"; var EverythingInvoiced: Boolean; SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineBeforeInitQtyToInvoice. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineBeforeInitQtyToInvoice(var TempSalesLine: Record "Sales Line" temporary; WhseShip: Boolean; WhseReceive: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitOutstanding(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitTempSalesLineQuantities. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitTempSalesLineQuantities(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterUpdateInvoicedValues. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterUpdateInvoicedValues(var TempSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; TempSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; TempSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterInsertSalesOrderHeader. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterInsertSalesOrderHeader(var SalesOrderLine: Record "Sales Line"; TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; WhseShip: Boolean; WhseReceive: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeUpdateInvoicedValues. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeUpdateInvoicedValues(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnSetDefaultQtyBlank. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesSetup parameter. + /// Specifies the SetDefaultQtyBlank parameter. [IntegrationEvent(true, false)] local procedure OnPostUpdateOrderLineOnSetDefaultQtyBlank(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; SalesSetup: Record "Sales & Receivables Setup"; var SetDefaultQtyBlank: Boolean) begin end; + /// + /// Event raised by OnCalcInvoiceOnAfterTempSalesLineSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvoiceOnAfterTempSalesLineSetFilters(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterCalcInvDiscount. + /// + /// + /// Specifies the TempWhseShptHeader parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterCalcInvDiscount(SalesHeader: Record "Sales Header"; TempWhseShptHeader: Record "Warehouse Shipment Header" temporary; PreviewMode: Boolean; var TempSalesLineGlobal: Record "Sales Line" temporary; SuppressCommit: Boolean; WhseReceive: Boolean; WhseShip: Boolean); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterReleaseSalesDocument. + /// + /// + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterReleaseSalesDocument(SalesHeader: Record "Sales Header"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeSetPostingFlags. + /// + /// + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the HideProgressWindow parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnBeforeSetPostingFlags(var SalesHeader: Record "Sales Header"; var TempSalesLineGlobal: Record "Sales Line" temporary; var ModifyHeader: Boolean; var HideProgressWindow: Boolean); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetPostingFlags. + /// + /// + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the ModifyHeader parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterSetPostingFlags(var SalesHeader: Record "Sales Header"; var TempSalesLineGlobal: Record "Sales Line" temporary; var ModifyHeader: Boolean); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetSourceCode. + /// + /// + /// Specifies the SourceCodeSetup parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetSourceCode(var SalesHeader: Record "Sales Header"; SourceCodeSetup: Record "Source Code Setup"; var SrcCode: Code[10]); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetPoszingFromWhseRef. + /// + /// + /// Specifies the InvtPickPutaway parameter. + /// Specifies the PostingFromWhseRef parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetPoszingFromWhseRef(var SalesHeader: Record "Sales Header"; var InvtPickPutaway: Boolean; var PostingFromWhseRef: Integer); begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCalcInvDiscount. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the RefreshNeeded parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCalcInvDiscount(var SalesHeader: Record "Sales Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseReceive: Boolean; WhseShip: Boolean; var RefreshNeeded: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCheckPostRestrictions. + /// + /// + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCheckPostRestrictions(var SalesHeader: Record "Sales Header"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnCheckAssosOrderLinesOnAfterSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssosOrderLinesOnAfterSetFilters(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnCheckSalesDocumentOnAfterCalcShouldCheckItemCharge. + /// + /// + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ShouldCheckItemCharge parameter. + /// Specifies the ModifyHeader parameter. [IntegrationEvent(true, false)] local procedure OnCheckSalesDocumentOnAfterCalcShouldCheckItemCharge(var SalesHeader: Record "Sales Header"; WhseReceive: Boolean; WhseShip: Boolean; var ShouldCheckItemCharge: Boolean; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForShipOnBeforeCheck. + /// + /// + /// Specifies the TempWhseShipmentHeader parameter. + /// Specifies the TempWhseReceiptHeader parameter. + /// Specifies the Ship parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForShipOnBeforeCheck(var SalesHeader: Record "Sales Header"; var TempWhseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWhseReceiptHeader: Record "Warehouse Receipt Header" temporary; var Ship: Boolean; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForReceiveOnBeforeCheck. + /// + /// + /// Specifies the TempWhseShipmentHeader parameter. + /// Specifies the TempWhseReceiptHeader parameter. + /// Specifies the Receive parameter. [IntegrationEvent(true, false)] local procedure OnCheckTrackingAndWarehouseForReceiveOnBeforeCheck(var SalesHeader: Record "Sales Header"; var TempWhseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWhseReceiptHeader: Record "Warehouse Receipt Header" temporary; var Receive: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingSpecificationOnAfterTempItemSalesLineLoop. + /// + /// [IntegrationEvent(false, false)] local procedure OnCheckTrackingSpecificationOnAfterTempItemSalesLineLoop(var TempItemSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckCustBlockageOnAfterTempLinesSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckCustBlockageOnAfterTempLinesSetFilters(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary); begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterTempPrepmtSalesLineSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterTempPrepmtSalesLineSetFilters(var TempPrepmtSalesLine: Record "Sales Line" temporary; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterGetSalesPrepmtAccount. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterGetSalesPrepmtAccount(var GLAcc: Record "G/L Account"; var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeGetSalesPrepmtAccount. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the GenPostingSetup parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeGetSalesPrepmtAccount(var GLAcc: Record "G/L Account"; var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header"; var GenPostingSetup: Record "General Posting Setup"; CompleteFunctionality: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterTempSalesLineSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempPrepmtSalesLine parameter. + /// Specifies the NextLineNo parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterTempSalesLineSetFilters(var TempSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempPrepmtSalesLine: Record "Sales Line" temporary; var NextLineNo: Integer) begin end; + /// + /// Event raised by OnFinalizePostingOnAfterUpdateItemChargeAssgnt. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnAfterUpdateItemChargeAssgnt(var SalesHeader: Record "Sales Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the TempItemChargeAssignmentSales parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the TempSalesLine parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the SalesPost parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeInsertTrackingSpecification(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)" temporary; SalesHeader: Record "Sales Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; EverythingInvoiced: Boolean; var TempSalesLine: Record "Sales Line" temporary; var TempSalesLineGlobal: Record "Sales Line" temporary; SalesPost: Codeunit "Sales-Post") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeCreateOutboxSalesTrans. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeCreateOutboxSalesTrans(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; EverythingInvoiced: Boolean; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeDeleteApprovalEntries. + /// + /// + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeDeleteApprovalEntries(var SalesHeader: Record "Sales Header"; var EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeGenJnlPostPreviewThrowError. + /// + /// + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeGenJnlPostPreviewThrowError(SalesHeader: Record "Sales Header"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforePost. + /// + /// + /// Specifies the PurchOrderLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforePost(var ItemJournalLine: Record "Item Journal Line"; PurchOrderLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostATOOnBeforePostedATOLinkInsert. + /// + /// + /// Specifies the AssemblyHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostATOOnBeforePostedATOLinkInsert(var PostedATOLink: Record "Posted Assemble-to-Order Link"; var AssemblyHeader: Record "Assembly Header"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostATOAssocItemJnlLineOnBeforeRemainingPost. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the PostedATOLink parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the ItemLedgShptEntryNo parameter. [IntegrationEvent(false, false)] local procedure OnPostATOAssocItemJnlLineOnBeforeRemainingPost(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var PostedATOLink: Record "Posted Assemble-to-Order Link"; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal; var ItemLedgShptEntryNo: Integer) begin end; + /// + /// Event raised by OnPostDropOrderShipmentOnAfterUpdateBlanketOrderLine. + /// + /// + /// Specifies the PurchOrderLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostDropOrderShipmentOnAfterUpdateBlanketOrderLine(PurchOrderHeader: Record "Purchase Header"; PurchOrderLine: Record "Purchase Line"; TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesShptHeader: Record "Sales Shipment Header"; SalesHeader: Record "Sales Header"; PurchRcptHeader: Record "Purch. Rcpt. Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyDocumentFields. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header") begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCalcShouldPostItemJnlLineItemCharges. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the ShouldPostItemJnlLineItemCharges parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCalcShouldPostItemJnlLineItemCharges(SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var ShouldPostItemJnlLineItemCharges: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterPrepareItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the RemAmt parameter. + /// Specifies the RemDiscAmt parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterPrepareItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; WhseShip: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var QtyToBeShipped: Decimal; TrackingSpecification: Record "Tracking Specification"; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; var QtyToBeShippedBase: Decimal; var RemAmt: Decimal; var RemDiscAmt: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyItemCharge. + /// + /// + /// Specifies the TempItemChargeAssgntSales parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyItemCharge(var ItemJournalLine: Record "Item Journal Line"; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeIsJobContactLineCheck. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the ShouldPostItemJnlLine parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the QtyToBeShipped parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeIsJobContactLineCheck(var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var ShouldPostItemJnlLine: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; QtyToBeShipped: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck(var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforePostItemJnlLineWhseLine. + /// + /// + /// Specifies the TempWhseJnlLine parameter. + /// Specifies the TempWhseTrackingSpecification parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforePostItemJnlLineWhseLine(var ItemJnlLine: Record "Item Journal Line"; var TempWhseJnlLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeTransferReservToItemJnlLine. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the CheckApplFromItemEntry parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeShippedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeTransferReservToItemJnlLine(SalesLine: Record "Sales Line"; ItemJnlLine: Record "Item Journal Line"; var CheckApplFromItemEntry: Boolean; var TrackingSpecification: Record "Tracking Specification"; QtyToBeShippedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeCopyTrackingFromSpec. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeCopyTrackingFromSpec(TrackingSpecification: Record "Tracking Specification"; var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; IsATO: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine(var ItemChargeSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemJnlLinePrepareJournalLineOnBeforeCalcItemJnlAmounts. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLinePrepareJournalLineOnBeforeCalcItemJnlAmounts(var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; IsATO: Boolean) begin end; + /// + /// Event raised by OnPostItemChargeOnBeforePostItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the TempItemChargeAssgntSales parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnBeforePostItemJnlLine(var SalesLineToPost: Record "Sales Line"; var SalesLine: Record "Sales Line"; QtyToAssign: Decimal; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnAfterCopyToItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the GeneralLedgerSetup parameter. + /// Specifies the QtyToInvoice parameter. + /// Specifies the TempItemChargeAssignmentSales parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnAfterCopyToItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var SalesLine: Record "Sales Line"; GeneralLedgerSetup: Record "General Ledger Setup"; QtyToInvoice: Decimal; var TempItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)" temporary) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnAfterTempTrackingSpecificationInvSetFilters. + /// + /// + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the TempTrackingSpecificationInv parameter. + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the TotalSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnAfterTempTrackingSpecificationInvSetFilters(SalesHeader: record "Sales Header"; var ItemJnlLine2: record "Item Journal Line"; var TempTrackingSpecificationInv: Record "Tracking Specification" temporary; SalesLine: Record "Sales Line"; var IsHandled: Boolean; var TotalSalesLineLCY: Record "Sales Line"; var TotalSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnBeforeTestJobNo. + /// + /// + /// Specifies the SkipTestJobNo parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnBeforeTestJobNo(SalesLine: Record "Sales Line"; var SkipTestJobNo: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnBeforeLastRunWithCheck. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnBeforeLastRunWithCheck(NonDistrItemJnlLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnBeforeRunWithCheck. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnBeforeRunWithCheck(ItemJnlLine2: Record "Item Journal Line"; var IsHandled: Boolean; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerShptOnBeforeTestJobNo. + /// + /// + /// Specifies the SkipTestJobNo parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerShptOnBeforeTestJobNo(SalesShipmentLine: Record "Sales Shipment Line"; var SkipTestJobNo: Boolean; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerShptOnAfterCheckItemChargePerShpt. + /// + /// + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the DistributeCharge parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerShptOnAfterCheckItemChargePerShpt(SalesShipmentLine: Record "Sales Shipment Line"; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; DistributeCharge: Boolean; var IsHandled: Boolean; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerShptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the DistributeCharge parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerShptOnAfterCalcDistributeCharge(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesShptLine: Record "Sales Shipment Line"; TempItemLedgEntry: Record "Item Ledger Entry" temporary; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; var DistributeCharge: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the ReturnRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the DistributeCharge parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; ReturnRcptLine: Record "Return Receipt Line"; TempItemLedgEntry: Record "Item Ledger Entry" temporary; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; var DistributeCharge: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRetRcptOnBeforeTestFieldJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetRcptOnBeforeTestFieldJobNo(ReturnReceiptLine: Record "Return Receipt Line"; var IsHandled: Boolean; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingLineOnAfterRetrieveInvoiceSpecification. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingLineOnAfterRetrieveInvoiceSpecification(var SalesLine: Record "Sales Line"; var TempInvoicingSpecification: Record "Tracking Specification" temporary; var TrackingSpecificationExists: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnAfterSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnAfterSetFilters(var SalesShipmentLine: Record "Sales Shipment Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnAfterUpdateSalesShptLineFields. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnAfterUpdateSalesShptLineFields(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the HasATOShippedNotInvoiced parameter. + /// Specifies the ShouldAdjustQuantityRounding parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding(SalesShptLine: Record "Sales Shipment Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; HasATOShippedNotInvoiced: Boolean; var ShouldAdjustQuantityRounding: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeShipmentInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the ItemJnlRollRndg parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(true, false)] local procedure OnPostItemTrackingForShipmentOnBeforeShipmentInvoiceErr(SalesLine: Record "Sales Line"; var IsHandled: Boolean; SalesHeader: Record "Sales Header"; var ItemJnlRollRndg: Boolean; TrackingSpecificationExists: Boolean; var TempTrackingSpecification: Record "Tracking Specification" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeReturnReceiptInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the ItemJnlRollRndg parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(true, false)] local procedure OnPostItemTrackingForShipmentOnBeforeReturnReceiptInvoiceErr(SalesLine: Record "Sales Line"; var IsHandled: Boolean; SalesHeader: Record "Sales Header"; var ItemJnlRollRndg: Boolean; TrackingSpecificationExists: Boolean; var TempTrackingSpecification: Record "Tracking Specification" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnAfterSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnAfterSetFilters(var ReturnReceiptLine: Record "Return Receipt Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertCrMemoLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertCrMemoLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean; xSalesLine: Record "Sales Line"; SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertInvoiceLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the ShouldInsertInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertInvoiceLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean; xSalesLine: Record "Sales Line"; SalesInvHeader: Record "Sales Invoice Header"; var ShouldInsertInvoiceLine: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertReturnReceiptLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertReturnReceiptLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertShipmentLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesLineACY parameter. + /// Specifies the DocType parameter. + /// Specifies the DocNo parameter. + /// Specifies the ExtDocNo parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertShipmentLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean; SalesLineACY: Record "Sales Line"; DocType: Option; DocNo: Code[20]; ExtDocNo: Code[35]) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterSetEverythingInvoiced. + /// + /// + /// Specifies the EverythingInvoiced parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterSetEverythingInvoiced(SalesLine: Record "Sales Line"; var EverythingInvoiced: Boolean; var IsHandled: Boolean; SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterRoundAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterRoundAmount(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; GenJnlLineDocNo: Code[20]) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeTestJobNo(SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterPostItemTrackingLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempPostedATOLink parameter. [IntegrationEvent(true, false)] local procedure OnPostSalesLineOnAfterPostItemTrackingLine(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterTestSalesLine. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the WhseShptHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CostBaseAmount parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterTestSalesLine(var SalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header"; var WhseShptHeader: Record "Warehouse Shipment Header"; WhseShip: Boolean; PreviewMode: Boolean; var CostBaseAmount: Decimal) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforePostItemTrackingLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(true, false)] local procedure OnPostSalesLineOnBeforePostItemTrackingLine(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var ItemLedgShptEntryNo: Integer; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal; GenJnlLineDocNo: Code[20]; SrcCode: Code[10]; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeTestUnitOfMeasureCode. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeTestUnitOfMeasureCode(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterAdjustPrepmtAmountLCY. + /// + /// + /// Specifies the xSalesLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterAdjustPrepmtAmountLCY(var SalesLine: record "Sales Line"; var xSalesLine: record "Sales Line"; TempTrackingSpecification: record "Tracking Specification" temporary; SalesHeader: record "Sales Header") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterInsertReturnReceiptLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the ReturnRcptHeader parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the SalesShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterInsertReturnReceiptLine(var SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var xSalesLine: Record "Sales Line"; ReturnRcptHeader: Record "Return Receipt Header"; RoundingLineInserted: Boolean; var TempTrackingSpecification: Record "Tracking Specification" temporary; var ItemLedgShptEntryNo: Integer; SalesShipmentHeader: Record "Sales Shipment Header") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterGetSalesOrderLine. + /// + /// + /// Specifies the SalesShptLine parameter. + /// Specifies the SalesOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterGetSalesOrderLine(var TempSalesLine: Record "Sales Line" temporary; SalesShptLine: Record "Sales Shipment Line"; SalesOrderLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeCalcQuantityInvoiced. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeCalcQuantityInvoiced(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnAfterGetSalesOrderLine. + /// + /// + /// Specifies the ReturnRcptLine parameter. + /// Specifies the SalesOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnAfterGetSalesOrderLine(var TempSalesLine: Record "Sales Line" temporary; ReturnRcptLine: Record "Return Receipt Line"; SalesOrderLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeInitQtyToInvoice(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnAfterModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnAfterModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeCalcQuantityInvoiced. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeCalcQuantityInvoiced(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnProcessAssocItemJnlLineOnBeforeTempDropShptPostBufferInsert. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnProcessAssocItemJnlLineOnBeforeTempDropShptPostBufferInsert(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnProcessAssocItemJnlLineOnBeforePostAssocItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnProcessAssocItemJnlLineOnBeforePostAssocItemJnlLine(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnRoundAmountOnBeforeIncrAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineQty parameter. + /// Specifies the TotalSalesLine parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnBeforeIncrAmount(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineQty: Decimal; var TotalSalesLine: Record "Sales Line"; var TotalSalesLineLCY: Record "Sales Line"; var xSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforeCheckTotalInvoiceAmount. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeCheckTotalInvoiceAmount(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnRunOnBeforeFinalizePosting. + /// + /// + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the ReturnReceiptHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeFinalizePosting(var SalesHeader: Record "Sales Header"; var SalesShipmentHeader: Record "Sales Shipment Header"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var ReturnReceiptHeader: Record "Return Receipt Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; CommitIsSuppressed: Boolean; GenJnlLineExtDocNo: Code[35]; var EverythingInvoiced: Boolean; GenJnlLineDocNo: Code[20]; SrcCode: Code[10]; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforePostSalesLineEndLoop. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the LastLineRetrieved parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the RecSalesHeader parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the ReturnReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforePostSalesLineEndLoop(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var LastLineRetrieved: Boolean; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; RecSalesHeader: Record "Sales Header"; xSalesLine: Record "Sales Line"; var SalesShipmentHeader: Record "Sales Shipment Header"; var ReturnReceiptHeader: Record "Return Receipt Header") begin end; + /// + /// Event raised by OnGetATOItemLedgEntriesNotInvoicedOnBeforeItemLedgEntryNotInvoicedInsert. + /// + /// [IntegrationEvent(false, false)] local procedure OnGetATOItemLedgEntriesNotInvoicedOnBeforeItemLedgEntryNotInvoicedInsert(var ItemLedgEntry: Record "Item Ledger Entry") begin end; + /// + /// Event raised by OnGetPostedDocumentRecordElseCase. + /// + /// + /// Specifies the PostedSalesDocumentVariant parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnGetPostedDocumentRecordElseCase(SalesHeader: Record "Sales Header"; var PostedSalesDocumentVariant: Variant; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnGetSalesLinesOnAfterFillTempLines. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnGetSalesLinesOnAfterFillTempLines(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; - [IntegrationEvent(false, false)] - local procedure OnPostItemLineOnAfterMakeSalesLineToShip(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) + /// + /// Event raised by OnPostItemLineOnAfterMakeSalesLineToShip. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempPostedATOLink parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + [IntegrationEvent(false, false)] + local procedure OnPostItemLineOnAfterMakeSalesLineToShip(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemLineOnBeforeMakeSalesLineToShip. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempPostedATOLink parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the IsHandled parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the ReturnReceiptHeader parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the TempHandlingSpecificationInv parameter. + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnPostItemLineOnBeforeMakeSalesLineToShip(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var ItemLedgShptEntryNo: Integer; var IsHandled: Boolean; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; ReturnReceiptHeader: Record "Return Receipt Header"; var TempHandlingSpecification: Record "Tracking Specification" temporary; var TempHandlingSpecificationInv: Record "Tracking Specification" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnPostItemLineOnBeforePostItemInvoiceLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempPostedATOLink parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemLineOnBeforePostItemInvoiceLine(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterPostItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnAfterPostItemJnlLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargeLineOnAfterTempItemChargeAssgntSalesLoop. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineParam parameter. [IntegrationEvent(true, false)] local procedure OnPostItemChargeLineOnAfterTempItemChargeAssgntSalesLoop(var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineParam: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargeLineOnBeforePostItemCharge. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeLineOnBeforePostItemCharge(var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforeReturnRcptLineModify. + /// + /// + /// Specifies the ReturnRcptLine parameter. + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforeReturnRcptLineModify(SalesHeader: Record "Sales Header"; var ReturnRcptLine: Record "Return Receipt Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforeAdjustQuantityRounding. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the ShouldAdjustQuantityRounding parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforeAdjustQuantityRounding(ReturnRcptLine: Record "Return Receipt Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; var ShouldAdjustQuantityRounding: Boolean) begin end; + /// + /// Event raised by OnReleaseSalesDocumentOnBeforeSetStatus. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SavedStatus parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the SuppressCommit parameter. [IntegrationEvent(false, false)] local procedure OnReleaseSalesDocumentOnBeforeSetStatus(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; SavedStatus: Enum "Sales Document Status"; PreviewMode: Boolean; SuppressCommit: Boolean); begin end; + /// + /// Event raised by OnRoundAmountOnAfterAssignSalesLines. + /// + /// + /// Specifies the SalesLineACY parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TotalSalesLines parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnAfterAssignSalesLines(var xSalesLine: Record "Sales Line"; var SalesLineACY: Record "Sales Line"; SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var TotalSalesLines: Record "Sales Line"; var TotalSalesLineLCY: Record "Sales Line"; var SalesLine: Record "Sales Line"); begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification. + /// + /// [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification(var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSendICDocumentOnBeforeSetICStatus. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSendICDocumentOnBeforeSetICStatus(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSendPostedDocumentRecordElseCase. + /// + /// + /// Specifies the DocumentSendingProfile parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSendPostedDocumentRecordElseCase(SalesHeader: Record "Sales Header"; var DocumentSendingProfile: Record "Document Sending Profile"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestSalesLineOnAfterTestSalesLineJob. + /// + /// [IntegrationEvent(false, false)] local procedure OnTestSalesLineOnAfterTestSalesLineJob(var SalesLine: record "Sales Line") begin end; + /// + /// Event raised by OnTestSalesLineOnAfterCalcShouldTestReturnQty. + /// + /// + /// Specifies the ShouldTestReturnQty parameter. [IntegrationEvent(false, false)] local procedure OnTestSalesLineOnAfterCalcShouldTestReturnQty(SalesLine: Record "Sales Line"; var ShouldTestReturnQty: Boolean) begin end; + /// + /// Event raised by OnBeforeTestGenPostingGroups. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestGenPostingGroups(var SalesLine: record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateSalesLineBeforePostOnAfterPostJobContractLine. + /// + /// + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateSalesLineBeforePostOnAfterPostJobContractLine(SalesInvoiceHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnUpdateAssosOrderOnAfterPurchOrderHeaderModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderOnAfterPurchOrderHeaderModify(var PurchOrderHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterModifyPurchLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterModifyPurchLine(var PurchOrderLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnUpdateAssocOrderOnBeforeModifyPurchLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnBeforeModifyPurchLine(var PurchOrderLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnAfterReleasePurchaseDocument. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnAfterReleasePurchaseDocument(var PurchOrderHeader: Record "Purchase Header"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeReleasePurchaseDocument. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeReleasePurchaseDocument(var PurchOrderHeader: Record "Purchase Header"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateAfterPostingOnBeforeFindSetForUpdate. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAfterPostingOnBeforeFindSetForUpdate(var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheck. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheck(var BlanketOrderSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheckSellToCustomerNo. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheckSellToCustomerNo(var BlanketOrderSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeInitOutstanding(var BlanketOrderSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnUpdateInvoicedQtyOnShipmentLineOnBeforeModifySalesShptLine. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnUpdateInvoicedQtyOnShipmentLineOnBeforeModifySalesShptLine(var SalesShptLine: Record "Sales Shipment Line"; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnAfterInitAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterInitAmount(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnAfterInitLineDiscountAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterInitLineDiscountAmount(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineRemainderModify. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineRemainderModify(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency) begin end; + /// + /// Event raised by OnBeforeCalcVATBaseAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcVATBaseAmount(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostUpdateInvoiceLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateInvoiceLine(var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostUpdateReturnReceiptLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostUpdateReturnReceiptLine(var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertTrackingSpecification(SalesHeader: Record "Sales Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSendPostedDocumentRecord. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the DocumentSendingProfile parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSendPostedDocumentRecord(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var DocumentSendingProfile: Record "Document Sending Profile") begin end; + /// + /// Event raised by OnAfterPostItemChargeLine. + /// + /// + /// Specifies the SalesLineACY parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargeLine(var SalesLine: Record "Sales Line"; SalesLineACY: Record "Sales Line") begin end; + /// + /// Event raised by OnDeleteAfterPostingOnAfterDeleteLinks. + /// + /// [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnAfterDeleteLinks(var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnDeleteAfterPostingOnBeforeDeleteSalesHeader. + /// + /// [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnBeforeDeleteSalesHeader(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnDeleteAfterPostingOnBeforeDeleteLinks. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnBeforeDeleteLinks(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforeCheckAndUpdate. + /// + /// [IntegrationEvent(false, false)] local procedure OnRunOnBeforeCheckAndUpdate(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateWonOpportunitiesOnBeforeOpportunityModify. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the Opportunity parameter. [IntegrationEvent(false, false)] local procedure OnUpdateWonOpportunitiesOnBeforeOpportunityModify(var SalesHeader: Record "Sales Header"; SalesInvoiceHeader: Record "Sales Invoice Header"; var Opportunity: Record Opportunity) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCheckShip. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCheckShip(var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnBeforeUpdateReceiveAndCheckIfInvPutawayExists. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateReceiveAndCheckIfInvPutawayExists(var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnModifyTempLineOnAfterSalesLineModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnAfterSalesLineModify(var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnModifyTempLineOnBeforeTransferFields. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnBeforeTransferFields(var SalesLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnModifyTempLineOnBeforeSalesLineModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnBeforeSalesLineModify(var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesLine(SalesLine: Record "Sales Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesShipmentLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesShipmentLine(SalesShipmentLine: Record "Sales Shipment Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnReceiptLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnReceiptLine(ReturnReceiptLine: Record "Return Receipt Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateSalesLineDimSetIDFromAppliedEntry. + /// + /// + /// Specifies the ItemLedgEntry parameter. + /// Specifies the DimSetID parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateSalesLineDimSetIDFromAppliedEntry(var SalesLineToPost: Record "Sales Line"; var ItemLedgEntry: Record "Item Ledger Entry"; DimSetID: array[10] of Integer) begin end; + /// + /// Event raised by OnDeleteAfterPostingOnAfterSetupSalesHeader. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnAfterSetupSalesHeader(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnDeleteAfterPostingOnAfterSalesLineDeleteAll. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnAfterSalesLineDeleteAll(SalesHeader: Record "Sales Header"; SalesInvoiceHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; CommitIsSuppressed: Boolean; EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentConditionOnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentConditionOnBeforeUpdateBlanketOrderLine(var TempSalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostResJnlLineOnAfterInit. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostResJnlLineOnAfterInit(var ResJnlLine: Record "Res. Journal Line"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists. + /// + /// + /// Specifies the ReplacePostingDate parameter. + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the VATDateExists parameter. + /// Specifies the ReplaceVATDate parameter. + /// Specifies the VATDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists(var PostingDateExists: Boolean; var ReplacePostingDate: Boolean; var ReplaceDocumentDate: Boolean; var PostingDate: Date; var SalesHeader: Record "Sales Header"; var ModifyHeader: Boolean; var VATDateExists: Boolean; var ReplaceVATDate: Boolean; var VATDate: Date) begin end; + /// + /// Event raised by OnBeforeValidateICPartnerBusPostingGroups. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeValidateICPartnerBusPostingGroups(var TempICGenJnlLine: Record "Gen. Journal Line" temporary; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterGetCurrency. + /// + /// + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetCurrency(CurrencyCode: Code[10]; var Currency: Record Currency) begin end; + /// + /// Event raised by OnBeforePostItemLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemLine(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean; var TempSalesLineGlobal: Record "Sales Line" temporary; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnBeforePostItemChargeLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargeLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct(var TempPrepmtSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnAfterInsertReturnReceiptHeader. + /// + /// + /// Specifies the ReturnReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertReturnReceiptHeader(var SalesHeader: Record "Sales Header"; var ReturnReceiptHeader: Record "Return Receipt Header") begin @@ -13458,384 +14591,888 @@ codeunit 80 "Sales-Post" #if not CLEAN27 [Obsolete('This event is never raised.', '27.0')] + /// + /// Event raised by OnAfterGetAmountsForDeferral. + /// + /// + /// Specifies the AmtToDefer parameter. + /// Specifies the AmtToDeferACY parameter. + /// Specifies the DeferralAccount parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetAmountsForDeferral(SalesLine: Record "Sales Line"; var AmtToDefer: Decimal; var AmtToDeferACY: Decimal; var DeferralAccount: Code[20]) begin end; #endif + /// + /// Event raised by OnPostJobContractLineBeforeTestFields. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostJobContractLineBeforeTestFields(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertCrMemoHeaderOnAfterCalcShouldProcessAsReturnOrder. + /// + /// + /// Specifies the ShouldProcessAsReturnOrder parameter. [IntegrationEvent(false, false)] local procedure OnInsertCrMemoHeaderOnAfterCalcShouldProcessAsReturnOrder(SalesHeader: Record "Sales Header"; var ShouldProcessAsReturnOrder: Boolean) begin end; + /// + /// Event raised by OnUpdateQtyToBeInvoicedForShipmentOnAfterSetQtyToBeInvoiced. + /// + /// + /// Specifies the HasATOShippedNotInvoiced parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateQtyToBeInvoicedForShipmentOnAfterSetQtyToBeInvoiced(TrackingSpecificationExists: Boolean; HasATOShippedNotInvoiced: Boolean; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnBeforePostItemJnlLineItemCharges. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLineItemCharges(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeInitOutstanding(var SalesOrderLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeGetATOItemLedgEntriesNotInvoiced. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeGetATOItemLedgEntriesNotInvoiced(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckSalesDocumentOnBeforeCheckDueDate. + /// + /// + /// Specifies the ShouldCheckDueDate parameter. [IntegrationEvent(false, false)] local procedure OnCheckSalesDocumentOnBeforeCheckDueDate(var SalesHeader: Record "Sales Header"; var ShouldCheckDueDate: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineTrackingOnAfterCalcShouldInsertTrkgSpecInv. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the ShouldInsertTrkgSpecInv parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineTrackingOnAfterCalcShouldInsertTrkgSpecInv(var SalesLine: Record "Sales Line"; QtyToBeInvoiced: Decimal; var ShouldInsertTrkgSpecInv: Boolean) begin end; + /// + /// Event raised by OnUpdateSalesLineBeforePostOnBeforeGetUnitCost. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateSalesLineBeforePostOnBeforeGetUnitCost(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcItemJnlAmountsFromQtyToBeInvoiced. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcItemJnlAmountsFromQtyToBeInvoiced(var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; QtyToBeInvoiced: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForReceiveOnAfterSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForReceiveOnAfterSetFilters(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnRunOnBeforeCalcVATAmountLines. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeCalcVATAmountLines(var TempSalesLineGlobal: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestSalesLineOnBeforeTestFieldQtyToShip. + /// + /// + /// Specifies the ShouldTestQtyToShip parameter. [IntegrationEvent(false, false)] local procedure OnTestSalesLineOnBeforeTestFieldQtyToShip(SalesLine: Record "Sales Line"; var ShouldTestQtyToShip: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertShipmentLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertShipmentLine(var SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnIsEndLoopForShippedNotInvoicedOnBeforeExit. + /// + /// + /// Specifies the SalesShptLine parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnIsEndLoopForShippedNotInvoicedOnBeforeExit(SalesLine: Record "Sales Line"; SalesShptLine: Record "Sales Shipment Line"; RemQtyToBeInvoiced: Decimal; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLinePrepareJournalLineOnBeforeCalcQuantities. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLinePrepareJournalLineOnBeforeCalcQuantities(var ItemJnlLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; QtyToBeShipped: Decimal; QtyToBeShippedBase: Decimal; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean; IsATO: Boolean) begin end; + /// + /// Event raised by OnBeforeInvoiceRounding. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInvoiceRounding(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyTrackingFromSpec. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyTrackingFromSpec(var ItemJnlLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; QtyToBeShipped: Decimal; IsATO: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeValidateQtyToInvoice. + /// + /// + /// Specifies the ShouldValidateQtyToInvoice parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeValidateQtyToInvoice(var SalesHeader: Record "Sales Header"; var ShouldValidateQtyToInvoice: Boolean; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnAfterSetFilterTempSalesLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnAfterSetFilterTempSalesLine(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckTrackingSpecificationOnBeforeGetItemTrackingSettings. + /// + /// + /// Specifies the ItemTrackingSetup parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingSpecificationOnBeforeGetItemTrackingSettings(var TempItemSalesLine: Record "Sales Line" temporary; var ItemTrackingSetup: Record "Item Tracking Setup"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForReceipt. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForReceipt(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineTrackingOnBeforeInsertTempTrkgSpec. + /// + /// + /// Specifies the TempTrackingSpec parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineTrackingOnBeforeInsertTempTrkgSpec(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempTrackingSpec: Record "Tracking Specification" temporary; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInsertInvoiceHeaderOnBeforeCheckDocumentType. + /// + /// + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesSetup parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertInvoiceHeaderOnBeforeCheckDocumentType(SalesHeader: Record "Sales Header"; var SalesInvHeader: Record "Sales Invoice Header"; SalesSetup: Record "Sales & Receivables Setup"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnBeforePostBalancingEntry. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the TotalSalesLine parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnBeforePostBalancingEntry(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var TotalSalesLine: Record "Sales Line"; var TotalSalesLineLCY: Record "Sales Line"; SuppressCommit: Boolean; PreviewMode: Boolean; InvoicePostingParameters: Record "Invoice Posting Parameters"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin end; + /// + /// Event raised by OnBeforeFindNotShippedLines. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeFindNotShippedLines(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforePostSalesLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesLineACY parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforePostSalesLine(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; SrcCode: Code[10]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var IsHandled: Boolean; SalesLineACY: Record "Sales Line") begin end; + /// + /// Event raised by OnAfterUpdateInvoiceRounding. + /// + /// + /// Specifies the TotalSalesLine parameter. + /// Specifies the SalesLine parameter. + /// Specifies the Currency parameter. + /// Specifies the BiggestLineNo parameter. + /// Specifies the LastLineRetrieved parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the RoundingLineNo parameter. + /// Specifies the UseTempData parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoiceRounding(var SalesHeader: Record "Sales Header"; var TotalSalesLine: Record "Sales Line"; var SalesLine: Record "Sales Line"; var Currency: Record Currency; var BiggestLineNo: Integer; var LastLineRetrieved: Boolean; var RoundingLineInserted: Boolean; var RoundingLineNo: Integer; UseTempData: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterSetFilters(var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostItemLineOnBeforePostItemJnlLineForInvoiceDoc. + /// + /// + /// Specifies the SalesLineToShip parameter. + /// Specifies the Ship parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the TempTrackingSpecificationInv parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. + /// Specifies the QtyToInvoice parameter. + /// Specifies the TempAssembletoOrderLink parameter. [IntegrationEvent(true, false)] local procedure OnPostItemLineOnBeforePostItemJnlLineForInvoiceDoc(SalesHeader: Record "Sales Header"; var SalesLineToShip: Record "Sales Line"; Ship: Boolean; var ItemLedgShptEntryNo: Integer; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; SalesShptHeader: Record "Sales Shipment Header"; var TempHandlingSpecification: Record "Tracking Specification" temporary; var TempTrackingSpecificationInv: Record "Tracking Specification" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean; QtyToInvoice: Decimal; TempAssembletoOrderLink: Record "Posted Assemble-to-Order Link" temporary) begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForReceipt. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the QtyToInvoiceBaseInTrackingSpec parameter. + /// Specifies the ShouldPostItemTrackingForReceipt parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForReceipt(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; RemQtyToBeInvoiced: Decimal; QtyToInvoiceBaseInTrackingSpec: Decimal; var ShouldPostItemTrackingForReceipt: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForShipment. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the QtyToInvoiceBaseInTrackingSpec parameter. + /// Specifies the ShouldPostItemTrackingForShipment parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForShipment(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; RemQtyToBeInvoiced: Decimal; QtyToInvoiceBaseInTrackingSpec: Decimal; var ShouldPostItemTrackingForShipment: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeGetQuantityShipped. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeGetQuantityShipped(var TempSalesLine: Record "Sales Line"; var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeGetReturnQtyReceived. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeGetReturnQtyReceived(var TempSalesLine: Record "Sales Line"; var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldProcessReceipt. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the ShouldProcessReceipt parameter. + /// Specifies the ItemJnlRollRndg parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldProcessReceipt(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var ShouldProcessReceipt: Boolean; var ItemJnlRollRndg: Boolean) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeInitOutstanding(var SalesOrderLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnBeforeBalAccountNoWindowUpdate. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnBeforeBalAccountNoWindowUpdate(HideProgressWindow: Boolean; var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterCalcShouldCalcPrepmtAmounts. + /// + /// + /// Specifies the ShouldCalcPrepmtAmounts parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterCalcShouldCalcPrepmtAmounts(var TempSalesLine: Record "Sales Line" temporary; var ShouldCalcPrepmtAmounts: Boolean) begin end; + /// + /// Event raised by OnAfterGetGeneralPostingSetup. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetGeneralPostingSetup(var GeneralPostingSetup: Record "General Posting Setup"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnCheckItemTrackingQuantityOnDocumentTypeCaseElse. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckItemTrackingQuantityOnDocumentTypeCaseElse(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnSetCommitBehavior. + /// + /// [IntegrationEvent(false, false)] local procedure OnSetCommitBehavior(var ErrorOnCommit: Boolean) begin end; #if not CLEAN27 + /// + /// Event raised by OnSetPostingPreviewDocumentNo. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnSetPostingPreviewDocumentNo(var PreviewDocumentNo: Code[20]; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnGetPostingPreviewDocumentNos. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnGetPostingPreviewDocumentNos(var PreviewDocumentNos: List of [Code[20]]) begin end; #endif + /// + /// Event raised by OnPostInvoiceOnAfterPostLines. + /// + /// + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnAfterPostLines(var SalesHeader: Record "Sales Header"; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeAssignQtyToInvoice. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeAssignQtyToInvoice(var TempSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeItemLedgerEntryExist. + /// + /// + /// Specifies the ShipOrReceive parameter. + /// Specifies the HasItemLedgerEntry parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeItemLedgerEntryExist(var SalesLine: Record "Sales Line"; ShipOrReceive: Boolean; var HasItemLedgerEntry: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterCalcShouldInsertInvoiceHeader. + /// + /// + /// Specifies the ShouldInsertInvoiceHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterCalcShouldInsertInvoiceHeader(var SalesHeader: Record "Sales Header"; var ShouldInsertInvoiceHeader: Boolean) begin end; + /// + /// Event raised by OnInsertShptEntryRelationOnAfterItemEntryRelationInsert. + /// + /// + /// Specifies the ItemEntryRelation parameter. + /// Specifies the xSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertShptEntryRelationOnAfterItemEntryRelationInsert(SalesShipmentLine: Record "Sales Shipment Line"; var ItemEntryRelation: Record "Item Entry Relation"; xSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnBeforePostItemChargePerRetRcpt. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempItemChargeAssignmentSales parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRetRcpt(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeSetInvoiceFields. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the ShouldSetInvoiceFields parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeSetInvoiceFields(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line"; var ShouldSetInvoiceFields: Boolean) begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeError. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the InvoiceEverything parameter. [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeError(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var InvoiceEverything: Boolean) begin end; + /// + /// Event raised by OnBeforeGetSalesLineAdjCostLCY. + /// + /// + /// Specifies the QtyType parameter. + /// Specifies the AdjCostLCY parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetSalesLineAdjCostLCY(SalesLine2: Record "Sales Line"; QtyType: Option General,Invoicing,Shipping; AdjCostLCY: Decimal; var Result: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeShouldTestGetShipmentPPmtAmtToDeduct. + /// + /// + /// Specifies the CompleteFunctionality parameter. + /// Specifies the ShouldTestGetShipmentPPmtAmtToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeShouldTestGetShipmentPPmtAmtToDeduct(SalesHeader: Record "Sales Header"; CompleteFunctionality: Boolean; var ShouldTestGetShipmentPPmtAmtToDeduct: Boolean) begin end; + /// + /// Event raised by OnAfterDeleteApprovalEntries. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the ReturnReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterDeleteApprovalEntries(var SalesHeader: Record "Sales Header"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var SalesShipmentHeader: Record "Sales Shipment Header"; var ReturnReceiptHeader: Record "Return Receipt Header") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeUpdateSalesLineBeforePost. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeUpdateSalesLineBeforePost(var SalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header"; WhseShip: Boolean; WhseReceive: Boolean; RoundingLineInserted: Boolean; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnAfterSumSalesLines2. + /// + /// + /// Specifies the OldSalesLine parameter. + /// Specifies the NewSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterSumSalesLines2(var SalesHeader: Record "Sales Header"; var OldSalesLine: Record "Sales Line"; var NewSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnCheckPostWhseShptLinesOnAfterWhseShptLinesFound. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WhseShptLinesFound parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WarehouseShipmentLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckPostWhseShptLinesOnAfterWhseShptLinesFound(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line"; var WhseShptLinesFound: Boolean; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseShip: Boolean; WhseReceive: Boolean; var WarehouseShipmentLine: Record "Warehouse Shipment Line") begin end; + /// + /// Event raised by OnAfterDecrementPrepmtAmtInvLCY. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the PrepmtAmountInvLCY parameter. + /// Specifies the PrepmtVATAmountInvLCY parameter. [IntegrationEvent(false, false)] local procedure OnAfterDecrementPrepmtAmtInvLCY(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var PrepmtAmountInvLCY: Decimal; var PrepmtVATAmountInvLCY: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineGet. + /// + /// + /// Specifies the TempVATAmountLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineGet(SalesLine: Record "Sales Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeAdjustPrepmtAmountLCY. + /// + /// + /// Specifies the PrepmtSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustPrepmtAmountLCY(SalesHeader: Record "Sales Header"; var PrepmtSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostResJnlLineOnShouldExit. + /// + /// + /// Specifies the ShouldExit parameter. [IntegrationEvent(false, false)] local procedure OnPostResJnlLineOnShouldExit(var SalesLine: Record "Sales Line"; var ShouldExit: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeUpdateTempVATAmountLineRemainder. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeUpdateTempVATAmountLineRemainder(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterCalcTotalChargeAmt. + /// + /// + /// Specifies the QtyToAssign parameter. + /// Specifies the SalesLine parameter. + /// Specifies the xSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnAfterCalcTotalChargeAmt(var SalesLineToPost: Record "Sales Line"; QtyToAssign: Decimal; var SalesLine: Record "Sales Line"; xSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnBeforeCheckPostRestrictions. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPostRestrictions(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeValidateType. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeValidateType(var TempPrepmtSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeValidateDocumentDate. + /// + /// + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeValidateDocumentDate(var PostingDateExists: Boolean; var ReplaceDocumentDate: Boolean; var PostingDate: Date; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnCheckSalesDocumentOnBeforeCheckSalesDim. + /// + /// + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckSalesDocumentOnBeforeCheckSalesDim(var SalesHeader: Record "Sales Header"; var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeCreatePrepaymentTextLines. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePrepaymentTextLines(var TempPrepmtSalesLine: Record "Sales Line" temporary; var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header"; CompleteFunctionality: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckAndUpdate. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckAndUpdate(var SalesHeader: Record "Sales Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeCollectValueEntryRelation. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeCollectValueEntryRelation(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesInvoiceLine: Record "Sales Invoice Line") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeCollectValueEntryRelationForCrMemo. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeCollectValueEntryRelationForCrMemo(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesInvoiceLine: Record "Sales Invoice Line") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterCollectValueEntryRelation. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterCollectValueEntryRelation(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesInvoiceLine: Record "Sales Invoice Line") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterCreatePostedDeferralSchedule. + /// + /// + /// Specifies the SalesInvHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterCreatePostedDeferralSchedule(var SalesInvLine: Record "Sales Invoice Line"; SalesInvHeader: Record "Sales Invoice Header") begin end; + /// + /// Event raised by OnInvoiceRoundingOnAfterValidateQuantity. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnInvoiceRoundingOnAfterValidateQuantity(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInvoiceRoundingOnAfterSetLineNo. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnInvoiceRoundingOnAfterSetLineNo(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line") begin @@ -13852,16 +15489,32 @@ codeunit 80 "Sales-Post" begin end; + /// + /// Event raised by OnInsertPostedHeadersOnBeforeDeleteServItemOnSaleCreditMemo. + /// + /// + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnBeforeDeleteServItemOnSaleCreditMemo(var SalesHeader: Record "Sales Header"; var SalesShipmentHeader: Record "Sales Shipment Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterInsertInvoiceHeader. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInsertInvoiceHeader(var SalesHeader: Record "Sales Header"; var SalesInvoiceHeader: Record "Sales Invoice Header") begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterInsertCrMemoHeader. + /// + /// + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInsertCrMemoHeader(var SalesHeader: Record "Sales Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin @@ -13878,173 +15531,400 @@ codeunit 80 "Sales-Post" begin end; + /// + /// Event raised by OnProcessPostingLinesOnBeforePostDropOrderShipment. + /// + /// + /// Specifies the TotalSalesLine parameter. + /// Specifies the TotalSalesLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnProcessPostingLinesOnBeforePostDropOrderShipment(SalesHeader: Record "Sales Header"; TotalSalesLine: Record "Sales Line"; TotalSalesLineLCY: Record "Sales Line") begin end; + /// + /// Event raised by OnAfterArchiveUnpostedOrder. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the OrderArchived parameter. [IntegrationEvent(false, false)] local procedure OnAfterArchiveUnpostedOrder(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; OrderArchived: Boolean); begin end; + /// + /// Event raised by OnBeforeCheckReturnRcptLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckReturnRcptLine(var ReturnReceiptLine: Record "Return Receipt Line"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertReturnReceiptHeaderOnBeforeReturnReceiptHeaderTransferFields. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertReturnReceiptHeaderOnBeforeReturnReceiptHeaderTransferFields(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnBeforeCopyAndCheckItemCharge. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesLine parameter. + /// Specifies the InvoiceEverything parameter. + /// Specifies the AssignError parameter. + /// Specifies the QtyNeeded parameter. + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the ItemChargeAssgntSales parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCopyAndCheckItemCharge(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var SalesLine: Record "Sales Line"; var InvoiceEverything: Boolean; var AssignError: Boolean; var QtyNeeded: Decimal; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; var ItemChargeAssgntSales: Record "Item Charge Assignment (Sales)"; var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeTestPostingDate. + /// + /// + /// Specifies the ReplacePostingDate parameter. + /// Specifies the SkipTestPostingDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeTestPostingDate(var SalesHeader: Record "Sales Header"; ReplacePostingDate: Boolean; var SkipTestPostingDate: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeSalesHeaderModify. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeSalesHeaderModify(var SalesHeader: Record "Sales Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeTestLineFields. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeTestLineFields(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateQtyToBeInvoicedForReturnReceiptOnAfterSetQtyToBeInvoiced. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateQtyToBeInvoicedForReturnReceiptOnAfterSetQtyToBeInvoiced(TrackingSpecificationExists: Boolean; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterInsertShipmentHeader. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInsertShipmentHeader(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnInsertPostedHeadersDeleteServItemOnSaleCreditMemo. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersDeleteServItemOnSaleCreditMemo(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnRunWithCheckOnAfterFinalize. + /// + /// [IntegrationEvent(false, false)] local procedure OnRunWithCheckOnAfterFinalize(var SalesHeader: Record "Sales Header"); begin end; + /// + /// Event raised by OnBeforeFinalizePostATO. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeFinalizePostATO(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeDeleteATOLinks. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDeleteATOLinks(SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckATOLink. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckATOLink(SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumSalesLinesTempOnAfterVatAmountSet. + /// + /// + /// Specifies the TotalSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLinesTempOnAfterVatAmountSet(var VATAmount: Decimal; var TotalSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInsertShptEntryRelationOnBeforeDeleteTempHandlingSpecification. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertShptEntryRelationOnBeforeDeleteTempHandlingSpecification(var TempHandlingTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeModifyPurchOrderHeader. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeModifyPurchOrderHeader(var PurchaseOrderHeader: Record "Purchase Header"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnAfterPostJobContractLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostJobContractLine(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var GenJnlLineDocType: Enum "Gen. Journal Document Type"; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; var SrcCode: Code[10]) begin end; + /// + /// Event raised by OnBeforePostDistributeItemCharge. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempItemLedgerEntry parameter. + /// Specifies the NonDistrQuantity parameter. + /// Specifies the NonDistrQtyToAssign parameter. + /// Specifies the NonDistrAmountToAssign parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostDistributeItemCharge(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempItemLedgerEntry: Record "Item Ledger Entry"; NonDistrQuantity: Decimal; NonDistrQtyToAssign: Decimal; NonDistrAmountToAssign: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostDistributeItemChargeOnAfterSetFactor. + /// + /// + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostDistributeItemChargeOnAfterSetFactor(TempItemLedgerEntry: Record "Item Ledger Entry"; var Factor: Decimal) begin end; + /// + /// Event raised by OnBeforeCalcPrepmtAmtToDeduct. + /// + /// + /// Specifies the Ship parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PrepmtAmtToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcPrepmtAmtToDeduct(var SalesLine: Record "Sales Line"; Ship: Boolean; var IsHandled: Boolean; var PrepmtAmtToDeduct: Decimal) begin end; + /// + /// Event raised by OnBeforePostItemJournalLineWarehouseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJournalLineWarehouseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAfterPostItemJournalLineWarehouseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJournalLineWarehouseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAdjustPrepmtAmountLCYOnAfterGetOrderLine. + /// + /// + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnAdjustPrepmtAmountLCYOnAfterGetOrderLine(var SalesLine: Record "Sales Line"; var SalesInvoiceLine: Record "Sales Line"); begin end; + /// + /// Event raised by OnBeforeGetQtyToInvoice. + /// + /// + /// Specifies the Ship parameter. + /// Specifies the IsHandled parameter. + /// Specifies the QtyToInvoice parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetQtyToInvoice(SalesLine: Record "Sales Line"; Ship: Boolean; var IsHandled: Boolean; var QtyToInvoice: Decimal) begin end; + /// + /// Event raised by OnBeforeAdjustFinalInvWith100PctPrepmt. + /// + /// + /// Specifies the CombinedSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustFinalInvWith100PctPrepmt(var TempPrepmtDeductLCYSalesLine: Record "Sales Line" temporary; var CombinedSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateRemainingQtyToBeInvoiced. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateRemainingQtyToBeInvoiced(SalesShptLine: Record "Sales Shipment Line"; var RemQtyToInvoiceCurrLine: Decimal; var RemQtyToInvoiceCurrLineBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLineForCreditMemoOnBeforeGetSalesPrepmtAccount. + /// + /// + /// Specifies the SalesInvoiceLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLineForCreditMemoOnBeforeGetSalesPrepmtAccount(var GLAccount: Record "G/L Account"; var SalesInvoiceLine: Record "Sales Invoice Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateEmailParameters. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateEmailParameters(SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostUpdateOrderNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateOrderNo(var SalesInvoiceHeader: Record "Sales Invoice Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSetInvoiceOrderNo. + /// + /// + /// Specifies the SalesInvLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSetInvoiceOrderNo(SalesLine: Record "Sales Line"; var SalesInvLine: Record "Sales Invoice Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeArchiveRelatedJob. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeArchiveRelatedJob(SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSyncSurPlusItemTrackingOnBeforeModifyQtyToHandleInvoice. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ReservationEntry parameter. [IntegrationEvent(false, false)] local procedure OnSyncSurPlusItemTrackingOnBeforeModifyQtyToHandleInvoice(var SalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var ReservationEntry: Record "Reservation Entry") begin end; -} \ No newline at end of file + + /// + /// Event raised by OnAfterProcessPostingLines. + /// + /// + /// Specifies the TotalSalesLine parameter. + /// Specifies the CustLedgEntry parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the Window parameter. + /// Specifies the HideProgressWindow parameter. + [IntegrationEvent(false, false)] + local procedure OnAfterProcessPostingLines(var SalesHeader: Record "Sales Header"; var TotalSalesLine: Record "Sales Line"; var CustLedgEntry: Record "Cust. Ledger Entry"; InvoicePostingParameters: Record "Invoice Posting Parameters"; SuppressCommit: Boolean; EverythingInvoiced: Boolean; var Window: Dialog; HideProgressWindow: Boolean) + begin + end; + + /// + /// Raised after checking posting restrictions + /// + /// + [IntegrationEvent(false, false)] + local procedure OnAfterCheckPostRestrictions(var SalesHeader: Record "Sales Header") + begin + end; +} diff --git a/src/Layers/BE/BaseApp/Sales/Receivables/CustEntryApplyPostedEntries.Codeunit.al b/src/Layers/BE/BaseApp/Sales/Receivables/CustEntryApplyPostedEntries.Codeunit.al index b0272abe742..46e27b6351a 100644 --- a/src/Layers/BE/BaseApp/Sales/Receivables/CustEntryApplyPostedEntries.Codeunit.al +++ b/src/Layers/BE/BaseApp/Sales/Receivables/CustEntryApplyPostedEntries.Codeunit.al @@ -415,6 +415,8 @@ codeunit 226 "CustEntry-Apply Posted Entries" CheckAdditionalCurrency(ApplyUnapplyParameters."Posting Date", DtldCustLedgEntry."Posting Date"); AddCurrChecked := true; end; + CheckInitialDocumentType( + DtldCustLedgEntry, ApplyUnapplyParameters."Document No.", ApplyUnapplyParameters."Posting Date", CommitChanges); CheckReversal(DtldCustLedgEntry."Cust. Ledger Entry No."); if DtldCustLedgEntry."Transaction No." <> 0 then CheckUnappliedEntries(DtldCustLedgEntry); @@ -478,6 +480,18 @@ codeunit 226 "CustEntry-Apply Posted Entries" ExchRateAdjmtRunHandler.RunCustExchRateAdjustment(GenJnlLine, TempCustLedgerEntry); end; + local procedure CheckInitialDocumentType(var DtldCustLedgEntry: Record "Detailed Cust. Ledg. Entry"; DocNo: Code[20]; PostingDate: Date; var CommitChanges: Boolean) + var + IsHandled: Boolean; + begin + IsHandled := false; + OnBeforeCheckInitialDocumentType(DtldCustLedgEntry, DocNo, PostingDate, CommitChanges, IsHandled); + if IsHandled then + exit; + + OnAfterCheckInitialDocumentType(DtldCustLedgEntry); + end; + local procedure CheckPostingDate(ApplyUnapplyParameters: Record "Apply Unapply Parameters"; var MaxPostingDate: Date) var GenJnlCheckLine: Codeunit "Gen. Jnl.-Check Line"; @@ -1028,6 +1042,28 @@ codeunit 226 "CustEntry-Apply Posted Entries" begin end; + /// + /// Raised after checking initial document Type + /// + /// The detailed customer ledger entry. + [IntegrationEvent(false, false)] + local procedure OnAfterCheckInitialDocumentType(var DtldCustLedgEntry: Record "Detailed Cust. Ledg. Entry"); + begin + end; + + /// + /// Raised before checking initial document Type + /// + /// The detailed customer ledger entry. + /// The document number. + /// The posting date. + /// Indicates whether to commit changes. + /// Indicates whether the event is handled. + [IntegrationEvent(false, false)] + local procedure OnBeforeCheckInitialDocumentType(var DtldCustLedgEntry: Record "Detailed Cust. Ledg. Entry"; DocNo: Code[20]; PostingDate: Date; var CommitChanges: Boolean; var IsHandled: Boolean); + begin + end; + /// /// Raised before filtering detailed customer ledger entries during unapplication. /// diff --git a/src/Layers/CH/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al b/src/Layers/CH/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al index 373abb71c78..2dc93c7c6a4 100644 --- a/src/Layers/CH/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al +++ b/src/Layers/CH/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al @@ -238,6 +238,8 @@ codeunit 11 "Gen. Jnl.-Check Line" exit; GenJournalLine.TestField("Document No.", ErrorInfo.Create()); + + OnAfterTestDocumentNo(GenJournalLine); end; local procedure TestAccountAndBalAccountType(var GenJnlLine: Record "Gen. Journal Line") @@ -1539,6 +1541,15 @@ codeunit 11 "Gen. Jnl.-Check Line" begin end; + /// + /// Integration event raised after validating document number field requirements for journal lines. + /// + /// Journal line record being validated for document number requirements. + [IntegrationEvent(false, false)] + local procedure OnAfterTestDocumentNo(GenJournalLine: Record "Gen. Journal Line") + begin + end; + /// /// Integration event raised before validating document number field requirements for journal lines. /// Enables custom logic to completely override standard document number validation processing. diff --git a/src/Layers/CH/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al b/src/Layers/CH/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al index d38f06f5b9d..066d35130de 100644 --- a/src/Layers/CH/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al +++ b/src/Layers/CH/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al @@ -1,4 +1,4 @@ -// ------------------------------------------------------------------------------------------------ +// ------------------------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // ------------------------------------------------------------------------------------------------ @@ -797,7 +797,7 @@ codeunit 12 "Gen. Jnl.-Post Line" VATEntry."Transaction No." := NextTransactionNo; VATEntry."Sales Tax Connection No." := NextConnectionNo; VATEntry.SetVATDateFromGenJnlLine(GenJnlLine); - OnInsertVATOnAfterAssignVATEntryFields(GenJnlLine, VATEntry, CurrExchRate); + OnInsertVATOnAfterAssignVATEntryFields(GenJnlLine, VATEntry, CurrExchRate, VATPostingSetup); if GenJnlLine."VAT Difference" = 0 then VATDifferenceLCY := 0 @@ -9843,7 +9843,7 @@ codeunit 12 "Gen. Jnl.-Post Line" end; [IntegrationEvent(false, false)] - local procedure OnInsertVATOnAfterAssignVATEntryFields(GenJnlLine: Record "Gen. Journal Line"; var VATEntry: Record "VAT Entry"; CurrExchRate: Record "Currency Exchange Rate") + local procedure OnInsertVATOnAfterAssignVATEntryFields(var GenJnlLine: Record "Gen. Journal Line"; var VATEntry: Record "VAT Entry"; CurrExchRate: Record "Currency Exchange Rate"; var VATPostingSetup: Record "VAT Posting Setup") begin end; diff --git a/src/Layers/CH/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al b/src/Layers/CH/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al index 74fdceee01d..d928a76c625 100644 --- a/src/Layers/CH/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al +++ b/src/Layers/CH/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al @@ -18,6 +18,7 @@ using Microsoft.FixedAssets.FixedAsset; using Microsoft.Foundation.Attachment; using Microsoft.Foundation.AuditCodes; using Microsoft.Foundation.NoSeries; +using Microsoft.Foundation.PaymentTerms; using Microsoft.Intercompany.Partner; using Microsoft.Purchases.History; using Microsoft.Purchases.Remittance; @@ -581,6 +582,13 @@ table 25 "Vendor Ledger Entry" { Caption = 'Prepayment'; } + field(91; "Payment Terms Code"; Code[10]) + { + Caption = 'Payment Terms Code'; + Editable = false; + TableRelation = "Payment Terms"; + ToolTip = 'Specifies the payment terms that determine the due date and payment discount date for the entry.'; + } field(95; "G/L Register No."; Integer) { Caption = 'G/L Register No.'; @@ -971,6 +979,22 @@ table 25 "Vendor Ledger Entry" exit(''); end; + procedure SetAppliesToDocFilters(var GenJnlLine: Record "Gen. Journal Line") + begin + SetRange("Document Type", GenJnlLine."Applies-to Doc. Type"); + SetRange("Document No.", GenJnlLine."Applies-to Doc. No."); + + OnAfterSetAppliesToDocFilters(Rec, GenJnlLine); + end; + + procedure ClearDocumentFilters() + begin + SetRange("Document Type"); + SetRange("Document No."); + + OnAfterClearDocumentFilters(Rec); + end; + procedure CopyFromGenJnlLine(GenJnlLine: Record "Gen. Journal Line") begin "Vendor No." := GenJnlLine."Account No."; @@ -1012,6 +1036,7 @@ table 25 "Vendor Ledger Entry" "Creditor No." := GenJnlLine."Creditor No."; "Payment Reference" := GenJnlLine."Payment Reference"; "Payment Method Code" := GenJnlLine."Payment Method Code"; + "Payment Terms Code" := GenJnlLine."Payment Terms Code"; "Exported to Payment File" := GenJnlLine."Exported to Payment File"; "Reference No." := GenJnlLine."Reference No." + ' ' + GenJnlLine.Checksum; if (GenJnlLine."Remit-to Code" <> '') then @@ -1257,5 +1282,15 @@ table 25 "Vendor Ledger Entry" local procedure OnBeforeUpdateAmountsForApplication(var VendorLedgerEntry: Record "Vendor Ledger Entry"; ApplnDate: Date; ApplnCurrencyCode: Code[10]; RoundAmounts: Boolean; UpdateMaxPaymentTolerance: Boolean; var IsHandled: Boolean) begin end; + + [IntegrationEvent(false, false)] + local procedure OnAfterSetAppliesToDocFilters(var Rec: Record "Vendor Ledger Entry"; var GenJnlLine: Record "Gen. Journal Line") + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnAfterClearDocumentFilters(var Rec: Record "Vendor Ledger Entry") + begin + end; } diff --git a/src/Layers/CH/BaseApp/Purchases/Posting/PurchPost.Codeunit.al b/src/Layers/CH/BaseApp/Purchases/Posting/PurchPost.Codeunit.al index d7e0620747d..c25043f3710 100644 --- a/src/Layers/CH/BaseApp/Purchases/Posting/PurchPost.Codeunit.al +++ b/src/Layers/CH/BaseApp/Purchases/Posting/PurchPost.Codeunit.al @@ -184,10 +184,7 @@ codeunit 90 "Purch.-Post" /// The purchase header of the document that is being posted. /// Accumulates drop-shipment buffer records during posting. /// Set to false during posting if any line is partially invoiced. - local procedure ProcessPosting( - var PurchHeader: Record "Purchase Header"; - var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; - var EverythingInvoiced: Boolean) + local procedure ProcessPosting(var PurchHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var EverythingInvoiced: Boolean) var IgnoreCommit: Boolean; begin @@ -328,6 +325,10 @@ codeunit 90 "Purch.-Post" OnRunOnBeforeMakeInventoryAdjustment(PurchHeader, GenJnlPostLine, ItemJnlPostLine, PreviewMode, PurchRcptHeader, PurchInvHeader, IsHandled); if not IsHandled then MakeInventoryAdjustment(); + + Clear(GenJnlPostLine); + + OnAfterProcessPostingLines(PurchHeader, TotalPurchLine, VendLedgEntry, InvoicePostingParameters, SuppressCommit, EverythingInvoiced, Window); end; var @@ -750,7 +751,7 @@ codeunit 90 "Purch.-Post" begin OnBeforeCheckAndUpdate(PurchHeader, ModifyHeader); DocumentIsReadyToBeChecked := true; - + CheckPurchDocument(PurchHeader); if GuiAllowed() and not HideProgressWindow then @@ -851,6 +852,7 @@ codeunit 90 "Purch.-Post" begin if not DocumentIsReadyToBeChecked then PrepareCheckDocument(PurchHeader); + ErrorMessageMgt.PushContext(ErrorContextElement, PurchHeader.RecordId, 0, CheckPurchHeaderMsg); CheckMandatoryHeaderFields(PurchHeader); GetGLSetup(); @@ -4058,6 +4060,8 @@ codeunit 90 "Purch.-Post" if PurchaseHeader."Pay-to Contact No." <> '' then if Contact.Get(PurchaseHeader."Pay-to Contact No.") then Contact.CheckIfPrivacyBlocked(true); + + OnAfterCheckPostRestrictions(PurchaseHeader); end; local procedure CheckFAPostingPossibility(PurchaseHeader: Record "Purchase Header") @@ -5327,7 +5331,7 @@ codeunit 90 "Purch.-Post" if PurchHeader."Prices Including VAT" then PrepmtVATBaseToDeduct := Round( - (TotalPrepmtAmtToDeduct + PurchLine."Prepmt Amt to Deduct") / (1 + PurchLine."Prepayment VAT %" / 100), + (TotalPrepmtAmtToDeduct + PurchLine."Prepmt Amt to Deduct") / (1 + PurchLine.GetPrepaymentVATPct() / 100), Currency."Amount Rounding Precision") - Round( TotalPrepmtAmtToDeduct / (1 + PurchLine.GetPrepaymentVATPct() / 100), @@ -8999,169 +9003,404 @@ codeunit 90 "Purch.-Post" ItemsToAdjust.Add(Item2."No."); end; + /// + /// Event raised by OnArchiveSalesOrdersOnBeforeSalesOrderLineModify. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnArchiveSalesOrdersOnBeforeSalesOrderLineModify(var SalesOrderLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnAfterBlanketOrderPurchLineModify. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnAfterBlanketOrderPurchLineModify(var BlanketOrderPurchLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnAfterCheckPurchDoc. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the ErrorMessageMgt parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckPurchDoc(var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; WhseShip: Boolean; WhseReceive: Boolean; PreviewMode: Boolean; var ErrorMessageMgt: Codeunit "Error Message Management") begin end; + /// + /// Event raised by OnAfterCheckAndUpdate. + /// + /// + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckAndUpdate(var PurchaseHeader: Record "Purchase Header"; CommitIsSuppressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterCheckTrackingSpecification. + /// + /// + /// Specifies the TempItemPurchaseLine parameter. [IntegrationEvent(true, false)] local procedure OnAfterCheckTrackingSpecification(PurchaseHeader: Record "Purchase Header"; var TempItemPurchaseLine: Record "Purchase Line" temporary); begin end; + /// + /// Event raised by OnAfterCheckTrackingAndWarehouseForReceive. + /// + /// + /// Specifies the Receive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckTrackingAndWarehouseForReceive(var PurchaseHeader: Record "Purchase Header"; var Receive: Boolean; CommitIsSupressed: Boolean; var TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterCheckTrackingAndWarehouseForShip. + /// + /// + /// Specifies the Ship parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchaseLine parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckTrackingAndWarehouseForShip(var PurchaseHeader: Record "Purchase Header"; var Ship: Boolean; CommitIsSupressed: Boolean; var TempPurchaseLine: Record "Purchase Line" temporary; var TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary) begin end; + /// + /// Event raised by OnAfterCreateJobPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCreateJobPurchLine(var JobPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterCreateWhseJnlLine. + /// + /// + /// Specifies the TempWhseJnlLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCreateWhseJnlLine(PurchaseLine: Record "Purchase Line"; var TempWhseJnlLine: record "Warehouse Journal Line" temporary) begin end; + /// + /// Event raised by OnAfterDeleteAfterPosting. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterDeleteAfterPosting(PurchHeader: Record "Purchase Header"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterDeleteApprovalEntries. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchRcptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterDeleteApprovalEntries(var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; PurchRcptHeader: Record "Purch. Rcpt. Header") begin end; + /// + /// Event raised by OnAfterDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. [IntegrationEvent(false, false)] local procedure OnAfterDivideAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping; PurchLineQty: Decimal; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary) begin end; + /// + /// Event raised by OnAfterGetAmountRoundingPrecisionInLCY. + /// + /// + /// Specifies the DocNo parameter. + /// Specifies the CurrencyCode parameter. + /// Specifies the AmountRoundingPrecision parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetAmountRoundingPrecisionInLCY(DocType: Enum "Purchase Document Type"; DocNo: Code[20]; CurrencyCode: Code[10]; var AmountRoundingPrecision: Decimal) begin end; + /// + /// Event raised by OnAfterGetLineDataFromOrder. + /// + /// + /// Specifies the PurchOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetLineDataFromOrder(var PurchLine: Record "Purchase Line"; PurchOrderLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterGetPurchSetup. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterGetPurchSetup(var PurchSetup: Record "Purchases & Payables Setup") begin end; + /// + /// Event raised by OnAfterModifyTempLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterModifyTempLine(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostPurchaseDoc. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PurchRcpHdrNo parameter. + /// Specifies the RetShptHdrNo parameter. + /// Specifies the PurchInvHdrNo parameter. + /// Specifies the PurchCrMemoHdrNo parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] procedure OnAfterPostPurchaseDoc(var PurchaseHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PurchRcpHdrNo: Code[20]; RetShptHdrNo: Code[20]; PurchInvHdrNo: Code[20]; PurchCrMemoHdrNo: Code[20]; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterPostPurchaseDocDropShipment. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostPurchaseDocDropShipment(SalesShptNo: Code[20]; CommitIsSupressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterRetrieveInvoiceTrackingSpecificationIfExists. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. [IntegrationEvent(false, false)] local procedure OnAfterRetrieveInvoiceTrackingSpecificationIfExists(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TrackingSpecificationExists: Boolean) begin end; + /// + /// Event raised by OnAfterUpdatePostingNos. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePostingNos(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; PreviewMode: Boolean; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnAfterCheckMandatoryFields. + /// + /// + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckMandatoryFields(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterFinalizePosting. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterFinalizePosting(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShptHeader: Record "Return Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PreviewMode: Boolean; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterFinalizePostingOnBeforeCommit. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnAfterFinalizePostingOnBeforeCommit(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShptHeader: Record "Return Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PreviewMode: Boolean; CommitIsSupressed: Boolean; EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnAfterIncrAmount. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterIncrAmount(var TotalPurchLine: Record "Purchase Line"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterInitAssocItemJnlLine. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the QtyToBeShipped parameter. [IntegrationEvent(false, false)] local procedure OnAfterInitAssocItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; PurchaseHeader: Record "Purchase Header"; QtyToBeShipped: Decimal) begin end; + /// + /// Event raised by OnAfterInsertCombinedSalesShipment. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterInsertCombinedSalesShipment(var SalesShipmentHeader: Record "Sales Shipment Header") begin end; + /// + /// Event raised by OnAfterInsertPostedHeaders. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchSetup parameter. + /// Specifies the Window parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertPostedHeaders(var PurchaseHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShptHeader: Record "Return Shipment Header"; var PurchSetup: Record "Purchases & Payables Setup"; var Window: Dialog) begin end; + /// + /// Event raised by OnAfterInsertReceiptHeader. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertReceiptHeader(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var TempWhseRcptHeader: Record "Warehouse Receipt Header" temporary; WhseReceive: Boolean; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnAfterInsertReturnShipmentHeader. + /// + /// + /// Specifies the ReturnShptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertReturnShipmentHeader(var PurchHeader: Record "Purchase Header"; var ReturnShptHeader: Record "Return Shipment Header") begin end; + /// + /// Event raised by OnAfterInvoiceRoundingAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TotalPurchaseLine parameter. + /// Specifies the UseTempData parameter. + /// Specifies the InvoiceRoundingAmount parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the RoundingLineNo parameter. [IntegrationEvent(false, false)] local procedure OnAfterInvoiceRoundingAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TotalPurchaseLine: Record "Purchase Line"; UseTempData: Boolean; InvoiceRoundingAmount: Decimal; CommitIsSuppressed: Boolean; RoundingLineInserted: Boolean; RoundingLineNo: Integer) begin end; + /// + /// Event raised by OnAfterInsertedPrepmtVATBaseToDeduct. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PrepmtLineNo parameter. + /// Specifies the TotalPrepmtAmtToDeduct parameter. + /// Specifies the TempPrepmtDeductLCYPurchLine parameter. + /// Specifies the PrepmtVATBaseToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertedPrepmtVATBaseToDeduct(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; PrepmtLineNo: Integer; TotalPrepmtAmtToDeduct: Decimal; var TempPrepmtDeductLCYPurchLine: Record "Purchase Line" temporary; var PrepmtVATBaseToDeduct: Decimal) begin end; + /// + /// Event raised by OnAfterPostAssocItemJnlLine. + /// + /// + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the SalesLineOrder parameter. + /// Specifies the SalesOrderHeader parameter. + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostAssocItemJnlLine(var ItemJnlLine: Record "Item Journal Line"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var SalesLineOrder: Record "Sales Line"; var SalesOrderHeader: Record "Sales Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAfterPostCombineSalesOrderShipment. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostCombineSalesOrderShipment(var PurchaseHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin @@ -9174,275 +9413,680 @@ codeunit 90 "Purch.-Post" end; [Obsolete('Moved to codeunit MfgPurchPost', '27.0')] + /// + /// Event raised by OnAfterPostItemJnlLineCopyProdOrder. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLineCopyProdOrder(var ItemJnlLine: Record "Item Journal Line"; PurchLine: Record "Purchase Line"; PurchRcptHeader: Record "Purch. Rcpt. Header"; QtyToBeReceived: Decimal; CommitIsSupressed: Boolean; QtyToBeInvoiced: Decimal) begin end; #endif + /// + /// Event raised by OnAfterPostItemJnlLineItemCharges. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLineItemCharges(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerOrder. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerOrder(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemTrackingLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemTrackingLine(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnAfterPostUpdateCreditMemoLine. + /// + /// [IntegrationEvent(true, false)] local procedure OnAfterPostUpdateCreditMemoLine(var PurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPostUpdateInvoiceLine. + /// + /// [IntegrationEvent(true, false)] local procedure OnAfterPostUpdateInvoiceLine(var PurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPurchRcptHeaderInsert. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchRcptHeaderInsert(var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterPurchRcptLineInsert. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchRcptLineInsert(PurchaseLine: Record "Purchase Line"; var PurchRcptLine: Record "Purch. Rcpt. Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; PurchInvHeader: Record "Purch. Inv. Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; PurchRcptHeader: Record "Purch. Rcpt. Header"; TempWhseRcptHeader: Record "Warehouse Receipt Header"; xPurchLine: Record "Purchase Line"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPurchInvHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchInvHeaderInsert(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterPurchInvLineInsert. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchInvLineInsert(var PurchInvLine: Record "Purch. Inv. Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; PurchHeader: Record "Purchase Header"; PurchRcptHeader: Record "Purch. Rcpt. Header"; TempWhseRcptHeader: Record "Warehouse Receipt Header"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnAfterPurchCrMemoHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchCrMemoHeaderInsert(var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterPurchCrMemoLineInsert. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchCrMemoLineInsert(var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var PurchaseHeader: Record "Purchase Header"; GenJnlLineDocNo: Code[20]; RoundingLineInserted: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnAfterReturnShptHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterReturnShptHeaderInsert(var ReturnShptHeader: Record "Return Shipment Header"; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterReturnShptLineInsert. + /// + /// + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempWhseShptHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the xPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterReturnShptLineInsert(var ReturnShptLine: Record "Return Shipment Line"; ReturnShptHeader: Record "Return Shipment Header"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; var TempWhseShptHeader: Record "Warehouse Shipment Header" temporary; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; xPurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterRevertWarehouseEntry. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterRevertWarehouseEntry(var TempWhseJnlLine: Record "Warehouse Journal Line" temporary) begin end; + /// + /// Event raised by OnAfterSalesShptHeaderInsert. + /// + /// + /// Specifies the SalesOrderHeader parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterSalesShptHeaderInsert(var SalesShipmentHeader: Record "Sales Shipment Header"; SalesOrderHeader: Record "Sales Header"; CommitIsSuppressed: Boolean; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterSalesShptLineInsert. + /// + /// + /// Specifies the SalesShptHeader parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the DropShptPostBuffer parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnAfterSalesShptLineInsert(var SalesShptLine: Record "Sales Shipment Line"; SalesShptHeader: Record "Sales Shipment Header"; SalesOrderLine: Record "Sales Line"; CommitIsSuppressed: Boolean; DropShptPostBuffer: Record "Drop Shpt. Post. Buffer"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPostAccICLine. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostAccICLine(PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnAfterPostItemLine. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(true, false)] local procedure OnAfterPostItemLine(PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; PurchaseHeader: Record "Purchase Header"; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnAfterPostItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the WhseJnlRegisterLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseRcptHeader parameter. + /// Specifies the WhseShptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var WhseJnlRegisterLine: Codeunit "Whse. Jnl.-Register Line"; var WhseReceive: Boolean; var WhseShip: Boolean; var WhseRcptHeader: Record "Warehouse Receipt Header"; var WhseShptHeader: Record "Warehouse Shipment Header") begin end; + /// + /// Event raised by OnAfterPostWhseJnlLine. + /// + /// + /// Specifies the ItemLedgEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostWhseJnlLine(var PurchaseLine: Record "Purchase Line"; ItemLedgEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterPostUpdateOrderLine. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostUpdateOrderLine(var PurchaseLine: Record "Purchase Line"; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterPostInvoice. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the VendorLedgerEntry parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostInvoice(var PurchHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; TotalPurchLine: Record "Purchase Line"; TotalPurchLineLCY: Record "Purchase Line"; CommitIsSupressed: Boolean; var VendorLedgerEntry: Record "Vendor Ledger Entry") begin end; + /// + /// Event raised by OnAfterPostPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchInvLine parameter. + /// Specifies the PurchCrMemoLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLineACY parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostPurchLine(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var PurchInvLine: Record "Purch. Inv. Line"; var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchLineACY: Record "Purchase Line"; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; SrcCode: Code[10]; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterProcessPurchLines. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the PurchLinesProcessed parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnAfterProcessPurchLines(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShipmentHeader: Record "Return Shipment Header"; WhseShip: Boolean; WhseReceive: Boolean; var PurchLinesProcessed: Boolean; CommitIsSuppressed: Boolean; EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnAfterProcessAssocItemJnlLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnAfterProcessAssocItemJnlLine(var PurchLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnAfterReleasePurchDoc. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterReleasePurchDoc(var PurchHeader: Record "Purchase Header"); begin end; + /// + /// Event raised by OnAfterRefreshTempLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterRefreshTempLines(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterResetTempLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterResetTempLines(var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterRestorePurchaseHeader. + /// + /// + /// Specifies the PurchaseHeaderCopy parameter. [IntegrationEvent(false, false)] local procedure OnAfterRestorePurchaseHeader(var PurchaseHeader: Record "Purchase Header"; PurchaseHeaderCopy: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterReverseAmount. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterReverseAmount(var PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterRoundAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchLineQty parameter. [IntegrationEvent(false, false)] local procedure OnAfterRoundAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchLineQty: Decimal) begin end; + /// + /// Event raised by OnAfterSaveTempWhseSplitSpec. + /// + /// + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnAfterSaveTempWhseSplitSpec(PurchaseLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAfterSetPostingFlags. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterSetPostingFlags(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterTestPurchLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(false, false)] local procedure OnAfterTestPurchLine(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateInvoicedQtyOnPurchRcptLine. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoicedQtyOnPurchRcptLine(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchRcptLine: Record "Purch. Rcpt. Line"; var PurchaseLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; TrackingSpecificationExists: Boolean; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; var PurchaseHeader: Record "Purchase Header"; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateInvoicedQtyOnReturnShptLine. + /// + /// + /// Specifies the ReturnShipmentLine parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoicedQtyOnReturnShptLine(PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShipmentLine: Record "Return Shipment Line"; PurchaseLine: Record "Purchase Line"; TempTrackingSpecification: Record "Tracking Specification" temporary; TrackingSpecificationExists: Boolean; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnAfterUpdateLastPostingNos. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterUpdateLastPostingNos(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterUpdatePurchLineBeforePost. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the RoundingLineInserted parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePurchLineBeforePost(var PurchaseLine: Record "Purchase Line"; WhseShip: Boolean; WhseReceive: Boolean; PurchaseHeader: Record "Purchase Header"; RoundingLineInserted: Boolean) begin end; + /// + /// Event raised by OnAfterUpdatePrepmtPurchLineWithRounding. + /// + /// + /// Specifies the TotalRoundingAmount parameter. + /// Specifies the TotalPrepmtAmount parameter. + /// Specifies the FinalInvoice parameter. + /// Specifies the PricesInclVATRoundingAmount parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePrepmtPurchLineWithRounding(var PrepmtPurchLine: Record "Purchase Line"; TotalRoundingAmount: array[2] of Decimal; TotalPrepmtAmount: array[2] of Decimal; FinalInvoice: Boolean; PricesInclVATRoundingAmount: array[2] of Decimal; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterUpdatePurchaseHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePurchaseHeader(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; GenJnlLineDocType: Integer; GenJnlLineDocNo: Code[20]; PreviewMode: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterUpdatePurchLineDimSetIDFromAppliedEntry. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePurchLineDimSetIDFromAppliedEntry(var PurchLineToPost: Record "Purchase Line"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterValidatePostingAndDocumentDate. + /// + /// + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterValidatePostingAndDocumentDate(var PurchaseHeader: Record "Purchase Header"; CommitIsSuppressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnBeforeAddAssociatedOrderLineToBuffer. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAddAssociatedOrderLineToBuffer(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeModifyTempLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeModifyTempLine(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnModifyTempLineOnBeforeTransferFields. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnBeforeTransferFields(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeAdjustQuantityRoundingForReceipt. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustQuantityRoundingForReceipt(PurchRcptLine: Record "Purch. Rcpt. Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeArchiveUnpostedOrder. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the OrderArchived parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeArchiveUnpostedOrder(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; var OrderArchived: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnBeforeArchiveSalesOrders. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeArchiveSalesOrders(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeBlanketOrderPurchLineModify. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnBeforeBlanketOrderPurchLineModify(var BlanketOrderPurchLine: Record "Purchase Line"; PurchLine: Record "Purchase Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcInvoice. + /// + /// + /// Specifies the NewInvoice parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcInvoice(var PurchHeader: Record "Purchase Header"; var NewInvoice: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalculateAmountsInclVAT. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalculateAmountsInclVAT(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalculateInvoiceEverything. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the InvoiceEverything parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalculateInvoiceEverything(var TempPurchaseLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; var InvoiceEverything: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcLineAmountAndLineDiscountAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Currency parameter. [IntegrationEvent(true, false)] local procedure OnBeforeCalcLineAmountAndLineDiscountAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; PurchLineQty: Decimal; var IsHandled: Boolean; Currency: Record Currency) begin @@ -9450,163 +10094,379 @@ codeunit 90 "Purch.-Post" #if not CLEAN28 [Obsolete('This event is no longer used.', '28.0')] + /// + /// Event raised by OnBeforeCheckDropShipmentReceiveInvoice. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforeCheckDropShipmentReceiveInvoice(PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; #endif + /// + /// Event raised by OnBeforeCheckDocumentTotalAmounts. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforeCheckDocumentTotalAmounts(PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckExternalDocumentNumber. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the Handled parameter. + /// Specifies the DocType parameter. + /// Specifies the ExtDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckExternalDocumentNumber(VendorLedgerEntry: Record "Vendor Ledger Entry"; PurchaseHeader: Record "Purchase Header"; var Handled: Boolean; DocType: Option; ExtDocNo: Text[35]; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeCheckExtDocNo. + /// + /// + /// Specifies the DocumentType parameter. + /// Specifies the ExtDocNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckExtDocNo(PurchaseHeader: Record "Purchase Header"; DocumentType: Enum "Gen. Journal Document Type"; ExtDocNo: Text[35]; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckGLAccDirectPosting. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckGLAccDirectPosting(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckICDocumentDuplicatePosting. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckICDocumentDuplicatePosting(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckIfInvPutawayExists. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckIfInvPutawayExists(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckHeaderPostingType. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckHeaderPostingType(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckFieldsOnReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckFieldsOnReturnShipmentLine(var ReturnShipmentLine: Record "Return Shipment Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterCheckFieldsOnReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckFieldsOnReturnShipmentLine(ReturnShipmentLine: Record "Return Shipment Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeCheckPrepmtAmtToDeduct. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPrepmtAmtToDeduct(PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckPurchRcptLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckTrackingSpecification. + /// + /// + /// Specifies the TempItemPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckTrackingSpecification(PurchHeader: Record "Purchase Header"; var TempItemPurchLine: Record "Purchase Line" temporary); begin end; + /// + /// Event raised by OnBeforeCheckTrackingAndWarehouseForShip. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the Ship parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckTrackingAndWarehouseForShip(PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var Ship: Boolean; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeCheckWarehouse. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckWarehouse(var TempItemPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckWhseRcptLineQtyToReceive. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckWhseRcptLineQtyToReceive(var WhseRcptLine: Record "Warehouse Receipt Line"; var PurchRcptLine: Record "Purch. Rcpt. Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeClearRemAmt. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlRollRndg parameter. + /// Specifies the RemAmt parameter. + /// Specifies the RemDiscAmt parameter. [IntegrationEvent(false, false)] local procedure OnBeforeClearRemAmt(PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; ItemJnlRollRndg: Boolean; var RemAmt: Decimal; var RemDiscAmt: Decimal) begin end; + /// + /// Event raised by OnBeforeCreatePositiveEntry. + /// + /// + /// Specifies the JobNo parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePositiveEntry(var WarehouseJournalLine: Record "Warehouse Journal Line"; JobNo: Code[20]; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCreatePostedWhseRcptHeader. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedWhseRcptHeader(var PostedWhseReceiptHeader: Record "Posted Whse. Receipt Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeCreatePostedWhseShptHeader. + /// + /// + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedWhseShptHeader(var PostedWhseShipmentHeader: Record "Posted Whse. Shipment Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeCreatePostedWhseShptLine. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedWhseShptLine(PurchLine: Record "Purchase Line"; ReturnShptLine: Record "Return Shipment Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCreatePostedRcptLine. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedRcptLine(PurchLine: Record "Purchase Line"; ReturnShptLine: Record "Return Shipment Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCreateWhseLineFromReturnShptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreateWhseLineFromReturnShptLine(var ReturnShptLine: Record "Return Shipment Line"; PurchLine: Record "Purchase Line"; CostBaseAmount: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCommitAndUpdateAnalysisVeiw. + /// + /// + /// Specifies the SuppressCommit parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCommitAndUpdateAnalysisVeiw(InvtPickPutaway: Boolean; SuppressCommit: Boolean; PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCopyAndCheckItemChargeTempPurchLine. + /// + /// + /// Specifies the TempPrepmtPurchaseLine parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the IsHandled parameter. + /// Specifies the AssignError parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCopyAndCheckItemChargeTempPurchLine(PurchaseHeader: Record "Purchase Header"; var TempPrepmtPurchaseLine: Record "Purchase Line" temporary; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean; var AssignError: Boolean) begin end; + /// + /// Event raised by OnBeforeCreatePrepmtLines. + /// + /// + /// Specifies the TempPrepmtPurchaseLine parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePrepmtLines(PurchaseHeader: Record "Purchase Header"; var TempPrepmtPurchaseLine: Record "Purchase Line" temporary; CompleteFunctionality: Boolean; var IsHandled: Boolean; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeDeleteAfterPosting. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the SkipDelete parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDeleteAfterPosting(var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var SkipDelete: Boolean; CommitIsSupressed: Boolean; var TempPurchLine: Record "Purchase Line" temporary; var TempPurchLineGlobal: Record "Purchase Line" temporary; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnBeforeDeleteApprovalEntries. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDeleteApprovalEntries(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnBeforeDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDivideAmount(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping; var PurchLineQty: Decimal; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeFinalizePosting. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeFinalizePosting(var PurchaseHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var EverythingInvoiced: Boolean; CommitIsSupressed: Boolean; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnBeforeGetInvoicePostingSetup. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetInvoicePostingSetup(var InvoicePostingInterface: Interface "Invoice Posting"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInitAssocItemJnlLine. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInitAssocItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; PurchaseHeader: Record "Purchase Header") begin @@ -9614,97 +10474,265 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforeInvoiceRoundingAmount. + /// + /// + /// Specifies the TotalAmountIncludingVAT parameter. + /// Specifies the UseTempData parameter. + /// Specifies the InvoiceRoundingAmount parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInvoiceRoundingAmount(PurchHeader: Record "Purchase Header"; TotalAmountIncludingVAT: Decimal; UseTempData: Boolean; var InvoiceRoundingAmount: Decimal; CommitIsSupressed: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeInsertICGenJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ICGenJnlLineNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertICGenJnlLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var ICGenJnlLineNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertPostedHeaders. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertPostedHeaders(var PurchaseHeader: Record "Purchase Header"; var WarehouseReceiptHeader: Record "Warehouse Receipt Header"; var WarehouseShipmentHeader: Record "Warehouse Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertRcptEntryRelation. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the TempTrackingSpecificationInv parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertRcptEntryRelation(PurchaseLine: Record "Purchase Line"; var PurchRcptLine: Record "Purch. Rcpt. Line"; var TempHandlingSpecification: Record "Tracking Specification" temporary; TempTrackingSpecificationInv: Record "Tracking Specification" temporary; ItemLedgShptEntryNo: Integer; var Result: Integer; var IsHandled: Boolean) begin end; - [IntegrationEvent(false, false)] + /// + /// Event raised by OnBeforeInsertReceiptHeader. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the CommitIsSuppressed parameter. + [IntegrationEvent(false, false)] local procedure OnBeforeInsertReceiptHeader(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var IsHandled: Boolean; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertReceiptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReceiptLine(var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchLine: Record "Purchase Line"; var CostBaseAmount: Decimal; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeInsertReturnShipmentLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReturnShipmentLine(var ReturnShptHeader: Record "Return Shipment Header"; var PurchLine: Record "Purchase Line"; var CostBaseAmount: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertTrackingSpecification(PurchHeader: Record "Purchase Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeItemJnlPostLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. + /// Specifies the WhseReceiptHeader parameter. + /// Specifies the WhseShipmentHeader parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. [IntegrationEvent(true, false)] local procedure OnBeforeItemJnlPostLine(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; var IsHandled: Boolean; WhseReceiptHeader: Record "Warehouse Receipt Header"; WhseShipmentHeader: Record "Warehouse Shipment Header"; TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnBeforeIsEndLoopForShippedNotInvoiced. + /// + /// + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the ReturnShptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the PurchLine parameter. + /// Specifies the EndLoop parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeIsEndLoopForShippedNotInvoiced(RemQtyToBeInvoiced: Decimal; TrackingSpecificationExists: Boolean; var ReturnShptLine: Record "Return Shipment Line"; var InvoicingTrackingSpecification: Record "Tracking Specification"; PurchLine: Record "Purchase Line"; var EndLoop: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeIsEndLoopForReceivedNotInvoiced. + /// + /// + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PurchRcptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the PurchLine parameter. + /// Specifies the EndLoop parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeIsEndLoopForReceivedNotInvoiced(RemQtyToBeInvoiced: Decimal; TrackingSpecificationExists: Boolean; var PurchRcptLine: Record "Purch. Rcpt. Line"; var InvoicingTrackingSpecification: Record "Tracking Specification"; PurchLine: Record "Purchase Line"; var EndLoop: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeGetPurchRcptLineFromTrackingOrUpdateItemEntryRelation. + /// + /// + /// Specifies the TrackingSpecification parameter. + /// Specifies the ItemEntryRelation parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetPurchRcptLineFromTrackingOrUpdateItemEntryRelation(var PurchRcptLine: Record "Purch. Rcpt. Line"; var TrackingSpecification: Record "Tracking Specification"; var ItemEntryRelation: Record "Item Entry Relation"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeGetPurchLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeGetPurchLines(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeLockTables. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempPurchaseLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnBeforeLockTables(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSuppressed: Boolean; var IsHandled: Boolean; var TempPurchaseLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforePostLines. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostLines(var PurchLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSupressed: Boolean; var TempPurchLineGlobal: Record "Purchase Line" temporary; var TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary) begin end; + /// + /// Event raised by OnBeforePostDistributeItemCharge. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemLedgerEntry parameter. + /// Specifies the NonDistrQuantity parameter. + /// Specifies the NonDistrQtyToAssign parameter. + /// Specifies the NonDistrAmountToAssign parameter. + /// Specifies the Sign parameter. + /// Specifies the IndirectCostPct parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostDistributeItemCharge(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var TempItemLedgerEntry: Record "Item Ledger Entry"; NonDistrQuantity: Decimal; NonDistrQtyToAssign: Decimal; NonDistrAmountToAssign: Decimal; Sign: Decimal; IndirectCostPct: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostInvoice. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Window parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the InvoicePostingInterface parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostInvoice(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSupressed: Boolean; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var IsHandled: Boolean; var Window: Dialog; HideProgressWindow: Boolean; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line"; var InvoicePostingInterface: Interface "Invoice Posting"; var InvoicePostingParameters: Record "Invoice Posting Parameters"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnBeforePostGLAccICLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ICGenJnlLineNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostGLAccICLine(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ICGenJnlLineNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerSalesShpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerSalesShpt(var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin @@ -9717,98 +10745,245 @@ codeunit 90 "Purch.-Post" end; [Obsolete('Moved to codeunit MfgPurchPost', '27.0')] + /// + /// Event raised by OnBeforePostItemJnlLineCopyProdOrder. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemJnlLineCopyProdOrder(PurchLine: Record "Purchase Line"; var ItemJnlLine: Record "Item Journal Line"; QtyToBeReceived: Decimal; QtyToBeInvoiced: Decimal; CommitIsSupressed: Boolean; var IsHandled: Boolean) begin end; #endif + /// + /// Event raised by OnBeforePostPurchaseDoc. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostPurchaseDoc(var PurchaseHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSupressed: Boolean; var HideProgressWindow: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostCommitPurchaseDoc. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostCommitPurchaseDoc(var PurchaseHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PreviewMode: Boolean; var ModifyHeader: Boolean; var CommitIsSupressed: Boolean; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeProcessAssocItemJnlLine. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the SourceCode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeProcessAssocItemJnlLine(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary; ItemLedgShptEntryNo: Integer; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; SourceCode: Code[10]) begin end; + /// + /// Event raised by OnBeforePrepareCheckDocument. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforePrepareCheckDocument(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforePurchLineDeleteAll. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchLineDeleteAll(var PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforePurchRcptHeaderInsert. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchRcptHeaderInsert(var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseReceive: Boolean; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseShip: Boolean) begin end; + /// + /// Event raised by OnBeforePurchRcptLineInsert. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PostedWhseRcptLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemLedgShptEntryNo parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchRcptLineInsert(var PurchRcptLine: Record "Purch. Rcpt. Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean; PostedWhseRcptLine: Record "Posted Whse. Receipt Line"; var IsHandled: Boolean; ItemLedgShptEntryNo: Integer) begin end; + /// + /// Event raised by OnBeforePurchInvHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchInvHeaderInsert(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnBeforePurchInvLineInsert. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchInvLineInsert(var PurchInvLine: Record "Purch. Inv. Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePurchCrMemoHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchCrMemoHeaderInsert(var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnBeforePurchCrMemoLineInsert. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchCrMemoLineInsert(var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeReleasePurchDoc. + /// + /// + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeReleasePurchDoc(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean); begin end; + /// + /// Event raised by OnBeforeReturnShptHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(false, false)] local procedure OnBeforeReturnShptHeaderInsert(var ReturnShptHeader: Record "Return Shipment Header"; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseReceive: Boolean; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseShip: Boolean) begin end; + /// + /// Event raised by OnBeforeReturnShptLineInsert. + /// + /// + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeReturnShptLineInsert(var ReturnShptLine: Record "Return Shipment Line"; var ReturnShptHeader: Record "Return Shipment Header"; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnBeforeRoundAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchLineQty parameter. [IntegrationEvent(false, false)] local procedure OnBeforeRoundAmount(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchLineQty: Decimal) begin end; + /// + /// Event raised by OnBeforeSalesShptHeaderInsert. + /// + /// + /// Specifies the SalesOrderHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSalesShptHeaderInsert(var SalesShptHeader: Record "Sales Shipment Header"; SalesOrderHeader: Record "Sales Header"; CommitIsSupressed: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeSalesShptLineInsert. + /// + /// + /// Specifies the SalesShptHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the DropShptPostBuffer parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSalesShptLineInsert(var SalesShptLine: Record "Sales Shipment Line"; SalesShptHeader: Record "Sales Shipment Header"; SalesLine: Record "Sales Line"; CommitIsSupressed: Boolean; DropShptPostBuffer: Record "Drop Shpt. Post. Buffer"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSetCheckApplToItemEntry. + /// + /// + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSetCheckApplToItemEntry(var PurchaseLine: Record "Purchase Line"; var Result: Boolean; var IsHandled: Boolean; PurchaseHeader: Record "Purchase Header"; ItemJournalLine: Record "Item Journal Line") begin @@ -9816,6 +10991,17 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforePostCombineSalesOrderShipment. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostCombineSalesOrderShipment(var PurchaseHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesShipmentHeader: Record "Sales Shipment Header"; var ItemLedgShptEntryNo: Integer; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempHandlingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean) begin @@ -9823,246 +11009,628 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforePostItemJnlLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeReceivedBase parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the ItemChargeNo parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the Result parameter. + /// Specifies the WarehouseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLine(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var QtyToBeReceived: Decimal; var QtyToBeReceivedBase: Decimal; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; var ItemLedgShptEntryNo: Integer; var ItemChargeNo: Code[20]; var TrackingSpecification: Record "Tracking Specification"; CommitIsSupressed: Boolean; var IsHandled: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var Result: Integer; var WarehouseReceiptHeader: Record "Warehouse Receipt Header") begin end; + /// + /// Event raised by OnBeforePostItemJnlLineItemCharges. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLineItemCharges(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostAssocItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostAssocItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var SalesLine: Record "Sales Line"; CommitIsSupressed: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePostItemChargePerOrder. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the ItemChargePurchLine parameter. + /// Specifies the TempTrackingSpecificationChargeAssmt parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerOrder(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ItemJnlLine2: Record "Item Journal Line"; var ItemChargePurchLine: Record "Purchase Line"; var TempTrackingSpecificationChargeAssmt: Record "Tracking Specification" temporary; CommitIsSupressed: Boolean; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargeLineProcedure. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargeLineProcedure(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemLine(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; PurchRcptHeader: Record "Purch. Rcpt. Header"; var RemQtyToBeInvoiced: Decimal; var TempPurchLineGlobal: Record "Purchase Line" temporary; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var RemQtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemJnlLineJobConsumption. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the SourceCode parameter. + /// Specifies the PostJobConsumptionBeforePurch parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemJnlLineJobConsumption(var ItemJournalLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; SourceCode: Code[10]; var PostJobConsumptionBeforePurch: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTracking. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PreciseTotalChargeAmt parameter. + /// Specifies the PreciseTotalChargeAmtACY parameter. + /// Specifies the RoundedPrevTotalChargeAmt parameter. + /// Specifies the RoundedPrevTotalChargeAmtACY parameter. + /// Specifies the IsHandled parameter. + /// Specifies the RemQtyToBeInvoiced parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemTracking(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TrackingSpecificationExists: Boolean; var PreciseTotalChargeAmt: Decimal; var PreciseTotalChargeAmtACY: Decimal; var RoundedPrevTotalChargeAmt: Decimal; var RoundedPrevTotalChargeAmtACY: Decimal; var IsHandled: Boolean; RemQtyToBeInvoiced: Decimal) begin end; + /// + /// Event raised by OnBeforePostItemTrackingCheckReceipt. + /// + /// + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingCheckReceipt(PurchaseLine: Record "Purchase Line"; RemQtyToBeInvoiced: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingCheckShipment. + /// + /// + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingCheckShipment(PurchaseLine: Record "Purchase Line"; RemQtyToBeInvoiced: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForReceiptCondition. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the Condition parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForReceiptCondition(PurchaseLine: Record "Purchase Line"; PurchRcptLine: Record "Purch. Rcpt. Line"; var Condition: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingItemChargePerOrder. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the TempTrackingSpecificationChargeAssmtCorrect parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingItemChargePerOrder(var TempTrackingSpecificationChargeAssmt: Record "Tracking Specification" temporary; var IsHandled: Boolean; var ItemJnlLine2: Record "Item Journal Line"; var TempTrackingSpecificationChargeAssmtCorrect: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnBeforePostItemTrackingLineOnPostPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemTrackingLineOnPostPurchLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; TempTrackingSpecification: Record "Tracking Specification" temporary; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForShipmentCondition. + /// + /// + /// Specifies the ReturnShipmentLine parameter. + /// Specifies the Condition parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForShipmentCondition(PurchaseLine: Record "Purchase Line"; ReturnShipmentLine: Record "Return Shipment Line"; var Condition: Boolean) begin end; + /// + /// Event raised by OnBeforePostResourceLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the JobPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostResourceLine(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; SrcCode: Code[10]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocNo: Code[20]; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; JobPurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePostUpdateOrderLine. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PurchSetup parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateOrderLine(PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; CommitIsSuppressed: Boolean; PurchSetup: Record "Purchases & Payables Setup") begin end; + /// + /// Event raised by OnBeforePostUpdateOrderLineModifyTempLine. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateOrderLineModifyTempLine(var TempPurchaseLine: Record "Purchase Line" temporary; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSuppressed: Boolean; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeRevertWarehouseEntry. + /// + /// + /// Specifies the JobNo parameter. + /// Specifies the PostJobConsumption parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeRevertWarehouseEntry(var WarehouseJournalLine: Record "Warehouse Journal Line"; JobNo: Code[20]; PostJobConsumption: Boolean; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSendICDocument. + /// + /// + /// Specifies the ModifyHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSendICDocument(var PurchHeader: Record "Purchase Header"; var ModifyHeader: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSumPurchLines2. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the VATAmountLine parameter. + /// Specifies the InsertPurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforeSumPurchLines2(QtyType: Option; var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var VATAmountLine: Record "VAT Amount Line"; InsertPurchLine: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSumPurchLinesTemp. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeSumPurchLinesTemp(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeTempDropShptPostBufferInsert. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTempDropShptPostBufferInsert(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; PurchaseLine: Record "Purchase Line"; var ItemLedgShptEntryNo: Integer) begin end; + /// + /// Event raised by OnBeforeTempPrepmtPurchLineInsert. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTempPrepmtPurchLineInsert(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var TempPurchLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnBeforeTempPrepmtPurchLineModify. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTempPrepmtPurchLineModify(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var TempPurchLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnBeforeTransferReservToItemJnlLine. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the PurchLine parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the ApplySpecificItemTracking parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTransferReservToItemJnlLine(var SalesOrderLine: Record "Sales Line"; var ItemJnlLine: Record "Item Journal Line"; PurchLine: Record "Purchase Line"; QtyToBeShippedBase: Decimal; var ApplySpecificItemTracking: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdPostingDescriptiononInvoice. + /// + /// + /// Specifies the PostingNo parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdPostingDescriptiononInvoice(var PurchaseHeader: Record "Purchase Header"; PostingNo: Code[20]; var ModifyHeader: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateAssocOrder. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(true, false)] local procedure OnBeforeUpdateAssocOrder(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var IsHandled: Boolean; SuppressCommit: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the Receive parameter. + /// Specifies the Ship parameter. + /// Specifies the Invoice parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateBlanketOrderLine(PurchLine: Record "Purchase Line"; Receive: Boolean; Ship: Boolean; Invoice: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePostingNos. + /// + /// + /// Specifies the ModifyHeader parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the IsHandled parameter. + /// Specifies the DateOrderSeriesUsed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePostingNos(var PurchHeader: Record "Purchase Header"; var ModifyHeader: Boolean; SuppressCommit: Boolean; var IsHandled: Boolean; var DateOrderSeriesUsed: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePurchaseHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePurchaseHeader(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; GenJnlLineDocType: Option; var IsHandled: Boolean; var PurchaseHeader: Record "Purchase Header"; GenJnlLineDocNo: Code[20]; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePurchLineBeforePost. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePurchLineBeforePost(var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; WhseShip: Boolean; WhseReceive: Boolean; RoundingLineInserted: Boolean; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateInvoicedQtyOnPurchRcptLine. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateInvoicedQtyOnPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; CommitIsSupressed: Boolean; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeUpdatePrepmtPurchLineWithRounding. + /// + /// + /// Specifies the TotalRoundingAmount parameter. + /// Specifies the TotalPrepmtAmount parameter. + /// Specifies the FinalInvoice parameter. + /// Specifies the PricesInclVATRoundingAmount parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePrepmtPurchLineWithRounding(var PrepmtPurchLine: Record "Purchase Line"; TotalRoundingAmount: array[2] of Decimal; TotalPrepmtAmount: array[2] of Decimal; FinalInvoice: Boolean; PricesInclVATRoundingAmount: array[2] of Decimal; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeUpdateQtyToInvoiceForOrder. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToInvoiceForOrder(var PurchHeader: Record "Purchase Header"; TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateQtyToInvoiceForReturnOrder. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToInvoiceForReturnOrder(var PurchHeader: Record "Purchase Header"; TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateQtyToBeInvoicedForReceipt. + /// + /// + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToBeInvoicedForReceipt(var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; PurchLine: Record "Purchase Line"; PurchRcptLine: Record "Purch. Rcpt. Line"; InvoicingTrackingSpecification: Record "Tracking Specification"; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateQtyToBeInvoicedForReturnShipment. + /// + /// + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ReturnShipmentLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToBeInvoicedForReturnShipment(var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; PurchLine: Record "Purchase Line"; ReturnShipmentLine: Record "Return Shipment Line"; InvoicingTrackingSpecification: Record "Tracking Specification"; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateJobConsumptionReservationApplToItemEntry. + /// + /// + /// Specifies the ItemJournalLine parameter. + /// Specifies the IsNonInventoriableItem parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateJobConsumptionReservationApplToItemEntry(var TempReservEntryJobCons: Record "Reservation Entry" temporary; var ItemJournalLine: Record "Item Journal Line"; IsNonInventoriableItem: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLine. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLine(var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineFixedAsset. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineFixedAsset(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineItemCharge. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineItemCharge(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineJob. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineJob(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineOthers. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineOthers(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestStatusRelease. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestStatusRelease(PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateItemChargeAssgnt. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateItemChargeAssgnt(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateHandledICInboxTransaction. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateHandledICInboxTransaction(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeValidatePostingAndDocumentDate. + /// + /// + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeValidatePostingAndDocumentDate(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnSetPostingDateExists. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PostingDateExists parameter. + /// Specifies the ReplacePostingDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnSetPostingDateExists(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; var PostingDateExists: Boolean; var ReplacePostingDate: Boolean; var PostingDate: Date; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeWhseHandlingRequired. + /// + /// + /// Specifies the Required parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeWhseHandlingRequired(PurchaseLine: Record "Purchase Line"; var Required: Boolean; var IsHandled: Boolean) begin @@ -10070,62 +11638,140 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforeGetCountryCode. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the CountryRegionCode parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetCountryCode(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var CountryRegionCode: Code[10]; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeShouldPostWhseJnlLine. + /// + /// + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlLine parameter. + /// Specifies the TempWhseJnlLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeShouldPostWhseJnlLine(PurchLine: Record "Purchase Line"; var Result: Boolean; var IsHandled: Boolean; var ItemJnlLine: Record "Item Journal Line"; var TempWhseJnlLine: Record "Warehouse Journal Line" temporary; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnCalcInvDiscountSetFilter. + /// + /// + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvDiscountSetFilter(var PurchLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterClearPostingFromWhseRef. + /// + /// + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterClearPostingFromWhseRef(var PurchHeader: Record "Purchase Header"; var InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetPostingFlags. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetPostingFlags(var PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary); begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeSetPostingFlags. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeSetPostingFlags(var PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetSourceCode. + /// + /// + /// Specifies the SourceCodeSetup parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetSourceCode(var PurchHeader: Record "Purchase Header"; SourceCodeSetup: Record "Source Code Setup"; var SrcCode: Code[10]); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterArchiveUnpostedOrder. + /// + /// + /// Specifies the Currency parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterArchiveUnpostedOrder(var PurchHeader: Record "Purchase Header"; Currency: Record "Currency"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCalcInvDiscount. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the RefreshNeeded parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCalcInvDiscount(var PurchaseHeader: Record "Purchase Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseReceive: Boolean; WhseShip: Boolean; var RefreshNeeded: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateAssocOrderPostingDateOnBeforeValidateDocumentDate. + /// + /// + /// Specifies the OriginalDocumentDate parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateAssocOrderPostingDateOnBeforeValidateDocumentDate(var SalesHeader: Record "Sales Header"; var OriginalDocumentDate: Date) begin end; + /// + /// Event raised by OnCheckAssociatedOrderLinesOnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssociatedOrderLinesOnAfterSetFilters(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnCheckAssociatedOrderLinesOnAfterCheckDimensions. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssociatedOrderLinesOnAfterCheckDimensions(PurchaseHeader: Record "Purchase Header"; SalesHeader: Record "Sales Header"; var PurchaseLine: Record "Purchase Line"; TempSalesLine: Record "Sales Line" temporary) begin @@ -10133,72 +11779,146 @@ codeunit 90 "Purch.-Post" #if not CLEAN28 [Obsolete('This event is no longer used.', '28.0')] + /// + /// Event raised by OnCheckAssocOrderLinesOnBeforeCheckOrderLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssocOrderLinesOnBeforeCheckOrderLine(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; #endif + /// + /// Event raised by OnCheckExternalDocumentNumberOnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnCheckExternalDocumentNumberOnAfterSetFilters(var VendLedgEntry: Record "Vendor Ledger Entry"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForShipOnAfterTempPurchLineSetFilters. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForShipOnAfterTempPurchLineSetFilters(PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForReceiveOnAfterTempPurchLineSetFilters. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForReceiveOnAfterTempPurchLineSetFilters(PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCheckWarehouseOnAfterSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnCheckWarehouseOnAfterSetFilters(var TempItemPurchLine: Record "Purchase Line"); begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeLoop. + /// + /// + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeLoop(var TempPurchLine: Record "Purchase Line" temporary; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeCheckIfEmpty. + /// + /// [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeCheckIfEmpty(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCopyToTempLinesOnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnCopyToTempLinesOnAfterSetFilters(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterInitTempPrepmtPurchLineFromPurchHeader. + /// + /// [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterInitTempPrepmtPurchLineFromPurchHeader(var TempPrepmtPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterTempPurchLineSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterTempPurchLineSetFilters(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterTempPrepmtPurchLineSetFilters. + /// + /// + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterTempPrepmtPurchLineSetFilters(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnDivideAmountOnAfterClearAmounts. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterClearAmounts(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var PurchLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnAfterCalcLineAmountAndLineDiscountAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterCalcLineAmountAndLineDiscountAmount(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchaseLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineRemainderModify. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineRemainderModify(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency) begin @@ -10209,227 +11929,589 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnGetItemChargeLineOnAfterGet. + /// + /// + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnGetItemChargeLineOnAfterGet(var ItemChargePurchLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnGetPurchLinesOnAfterFillTempLines. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnGetPurchLinesOnAfterFillTempLines(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyType: Option; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnInsertICGenJnlLineOnAfterCopyDocumentFields. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempICGenJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertICGenJnlLineOnAfterCopyDocumentFields(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var TempICGenJournalLine: Record "Gen. Journal Line") begin end; + /// + /// Event raised by OnInsertAssocOrderChargeOnBeforeInsert. + /// + /// + /// Specifies the NewItemChargeAssignmentPurch parameter. [IntegrationEvent(false, false)] local procedure OnInsertAssocOrderChargeOnBeforeInsert(TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)"; var NewItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)") begin end; + /// + /// Event raised by OnInsertICGenJnlLineOnBeforeICGenJnlLineInsert. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnInsertICGenJnlLineOnBeforeICGenJnlLineInsert(var TempICGenJournalLine: Record "Gen. Journal Line" temporary; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnInsertReceiptLineOnAfterGetWhseRcptLine. + /// + /// + /// Specifies the PurchRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterGetWhseRcptLine(var WhseRcptLine: Record "Warehouse Receipt Line"; PurchRcptLine: Record "Purch. Rcpt. Line") begin end; + /// + /// Event raised by OnInsertReceiptLineOnAfterInitPurchRcptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the PostedWhseRcptHeader parameter. + /// Specifies the WhseRcptHeader parameter. + /// Specifies the WhseRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterInitPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; xPurchLine: Record "Purchase Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var CostBaseAmount: Decimal; PostedWhseRcptHeader: Record "Posted Whse. Receipt Header"; WhseRcptHeader: Record "Warehouse Receipt Header"; var WhseRcptLine: Record "Warehouse Receipt Line") begin end; + /// + /// Event raised by OnInsertReceiptLineOnAfterCalcShouldGetWhseRcptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PostedWhseRcptHeader parameter. + /// Specifies the WhseRcptHeader parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ShouldGetWhseRcptLine parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the PurchRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterCalcShouldGetWhseRcptLine(PurchRcptHeader: Record "Purch. Rcpt. Header"; PurchLine: Record "Purchase Line"; PostedWhseRcptHeader: Record "Posted Whse. Receipt Header"; WhseRcptHeader: Record "Warehouse Receipt Header"; CostBaseAmount: Decimal; WhseReceive: Boolean; WhseShip: Boolean; var ShouldGetWhseRcptLine: Boolean; xPurchLine: Record "Purchase Line"; var PurchRcptLine: Record "Purch. Rcpt. Line") begin end; + /// + /// Event raised by OnInsertReceiptLineOnAfterCalcShouldGetWhseShptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PostedWhseShptHeader parameter. + /// Specifies the WhseShptHeader parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ShouldGetWhseShptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterCalcShouldGetWhseShptLine(PurchRcptHeader: Record "Purch. Rcpt. Header"; PurchLine: Record "Purchase Line"; PostedWhseShptHeader: Record "Posted Whse. Shipment Header"; WhseShptHeader: Record "Warehouse Shipment Header"; CostBaseAmount: Decimal; WhseReceive: Boolean; WhseShip: Boolean; var ShouldGetWhseShptLine: Boolean) begin end; + /// + /// Event raised by OnInsertReturnShipmentLineOnAfterGetWhseShptLine. + /// + /// + /// Specifies the ReturnShptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReturnShipmentLineOnAfterGetWhseShptLine(var WhseShptLine: Record "Warehouse Shipment Line"; ReturnShptLine: Record "Return Shipment Line") begin end; + /// + /// Event raised by OnInsertReturnShipmentLineOnAfterReturnShptLineInit. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the PurchLine parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnInsertReturnShipmentLineOnAfterReturnShptLineInit(var ReturnShptHeader: Record "Return Shipment Header"; var ReturnShptLine: Record "Return Shipment Line"; var PurchLine: Record "Purchase Line"; var xPurchLine: Record "Purchase Line"; var CostBaseAmount: Decimal; WhseShip: Boolean; WhseReceive: Boolean); begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforePost. + /// + /// + /// Specifies the SalesOrderLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforePost(var ItemJournalLine: Record "Item Journal Line"; SalesOrderLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnAfterUpdateBlanketOrderLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the SalesOrderHeader parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the SrcCode parameter. + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnAfterUpdateBlanketOrderLine(var PurchaseHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer"; var SalesOrderLine: Record "Sales Line"; var SalesOrderHeader: record "Sales Header"; var SalesShptLine: record "Sales Shipment Line"; SalesShptHeader: Record "Sales Shipment Header"; SrcCode: Code[10]; Currency: Record Currency) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the SalesShptLine parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnBeforeUpdateBlanketOrderLine(var SalesOrderLine: Record "Sales Line"; SalesShptLine: Record "Sales Shipment Line") begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnAfterProcessDropShptPostBuffer. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnAfterProcessDropShptPostBuffer(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; PurchRcptHeader: Record "Purch. Rcpt. Header"; SalesShptLine: Record "Sales Shipment Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary); begin end; + /// + /// Event raised by OnPostDistributeItemChargeOnAfterCalcAmountToAssign. + /// + /// + /// Specifies the TempItemLedgerEntry parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the AmountToAssign parameter. + /// Specifies the Sign parameter. + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostDistributeItemChargeOnAfterCalcAmountToAssign(var PurchaseLine: Record "Purchase Line"; TempItemLedgerEntry: Record "Item Ledger Entry"; QtyToAssign: Decimal; AmountToAssign: Decimal; Sign: Decimal; Factor: Decimal) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterPostItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ItemChargeAssignmentPurch parameter. [IntegrationEvent(true, false)] local procedure OnPostItemChargeOnAfterPostItemJnlLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; ItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)") begin end; - [IntegrationEvent(true, false)] + /// + /// Event raised by OnPostItemChargeLineOnAfterPostItemCharge. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchaseLineBackup parameter. + /// Specifies the PurchLine parameter. + [IntegrationEvent(true, false)] local procedure OnPostItemChargeLineOnAfterPostItemCharge(var TempItemChargeAssgntPurch: record "Item Charge Assignment (Purch)" temporary; PurchHeader: Record "Purchase Header"; PurchaseLineBackup: Record "Purchase Line"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargeLineOnBeforePostItemCharge. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeLineOnBeforePostItemCharge(var TempItemChargeAssgntPurch: record "Item Charge Assignment (Purch)" temporary; PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var GenJnlLineDocNo: Code[20]) begin end; + /// + /// Event raised by OnPostItemChargeOnBeforePostItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the PurchInvHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnBeforePostItemJnlLine(var PurchaseLineToPost: Record "Purchase Line"; var PurchaseLine: Record "Purchase Line"; QtyToAssign: Decimal; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; PurchInvHeader: Record "Purch. Inv. Header") begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnAfterCopyToItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the GeneralLedgerSetup parameter. + /// Specifies the QtyToInvoice parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnAfterCopyToItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; GeneralLedgerSetup: Record "General Ledger Setup"; QtyToInvoice: Decimal; var TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ReturnRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ReturnRcptLine: Record "Return Receipt Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerSalesRetRcptOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerSalesRetRcptOnBeforeTestJobNo(ReturnReceiptLine: Record "Return Receipt Line"; var IsHandled: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerSalesShptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerSalesShptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var SalesShptLine: Record "Sales Shipment Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerSalesShptOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerSalesShptOnBeforeTestJobNo(SalesShipmentLine: Record "Sales Shipment Line"; var IsHandled: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerRetShptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ReturnShptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetShptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ReturnShptLine: Record "Return Shipment Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRetShptOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetShptOnBeforeTestJobNo(ReturnShipmentLine: Record "Return Shipment Line"; var IsHandled: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerRcptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRcptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var PurchRcptLine: record "Purch. Rcpt. Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRcptOnAfterPurchRcptLineGet. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRcptOnAfterPurchRcptLineGet(PurchRcptLine: Record "Purch. Rcpt. Line"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerTransferOnAfterInitPurchLine2. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerTransferOnAfterInitPurchLine2(TransferReceiptLine: Record "Transfer Receipt Line"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerTransferOnBeforePostItemJnlLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemApplnEntry parameter. + /// Specifies the TransferReceiptLine parameter. + /// Specifies the ItemChargeAssignmentPurch parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerTransferOnBeforePostItemJnlLine(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; ItemApplnEntry: Record "Item Application Entry"; TransferReceiptLine: Record "Transfer Receipt Line"; ItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)") begin end; + /// + /// Event raised by OnPostItemChargePerITTransferOnAfterCollectItemEntryRelation. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TransRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerITTransferOnAfterCollectItemEntryRelation(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; TransRcptLine: Record "Transfer Receipt Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnBeforeTempWhseJnlLine2Find. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnBeforeTempWhseJnlLine2Find(var TempWarehouseJournalLine2: Record "Warehouse Journal Line" temporary; PurchaseLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyDocumentFields. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; PurchRcptHeader: Record "Purch. Rcpt. Header"; GenJnlLineExtDocNo: Code[35]; QtyToBeInvoiced: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforePostItemJnlLineCopyDocumentFields. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforePostItemJnlLineCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; QtyToBeInvoiced: Decimal; QtyToBeReceived: Decimal; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterPostItemJnlLineJobConsumption. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the OriginalItemJnlLine parameter. + /// Specifies the TempReservationEntry parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the PostJobConsumptionBeforePurch parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the TempWhseTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterPostItemJnlLineJobConsumption(var ItemJournalLine: Record "Item Journal Line"; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; OriginalItemJnlLine: Record "Item Journal Line"; var TempReservationEntry: Record "Reservation Entry" temporary; var TrackingSpecification: Record "Tracking Specification" temporary; QtyToBeInvoiced: Decimal; QtyToBeReceived: Decimal; var PostJobConsumptionBeforePurch: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyItemCharge. + /// + /// + /// Specifies the TempItemChargeAssgntPurch parameter. [IntegrationEvent(true, false)] local procedure OnPostItemJnlLineOnAfterCopyItemCharge(var ItemJournalLine: Record "Item Journal Line"; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeCopyDocumentFields. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforePostWhseJnlLine. + /// + /// + /// Specifies the TempWhseJnlLine parameter. + /// Specifies the ItemJnlLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforePostWhseJnlLine(TempHandlingSpecification: Record "Tracking Specification"; var TempWhseJnlLine: Record "Warehouse Journal Line"; ItemJnlLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumptionOnBeforeRunItemJnlPostLineWithReservation. + /// + /// + /// Specifies the TempReservationEntry parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(true, false)] local procedure OnPostItemJnlLineJobConsumptionOnBeforeRunItemJnlPostLineWithReservation(var ItemJournalLine: Record "Item Journal Line"; var TempReservationEntry: Record "Reservation Entry" temporary; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumption. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemJournalLine parameter. + /// Specifies the TempPurchReservEntry parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the PurchItemLedgEntryNo parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineJobConsumption(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; ItemJournalLine: Record "Item Journal Line"; var TempPurchReservEntry: Record "Reservation Entry" temporary; QtyToBeInvoiced: Decimal; QtyToBeReceived: Decimal; var TempTrackingSpecification: Record "Tracking Specification" temporary; PurchItemLedgEntryNo: Integer; var IsHandled: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterSetFactor. + /// + /// + /// Specifies the Factor parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterSetFactor(var PurchaseLine: Record "Purchase Line"; var Factor: Decimal; var GenJnlLineExtDocNo: Code[35]; var ItemJournalLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterPrepareItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterPrepareItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; PreviewMode: Boolean; var GenJnlLineDocNo: code[20]; TrackingSpecification: Record "Tracking Specification"; QtyToBeReceived: Decimal; QtyToBeInvoiced: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnCopyProdOrder. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the SuppressCommit parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnCopyProdOrder(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; QtyToBeReceived: Decimal; QtyToBeInvoiced: Decimal; SuppressCommit: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumptionOnBeforeJobPost. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the SrcCode parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the IsHandled parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineJobConsumptionOnBeforeJobPost( var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; @@ -10438,191 +12520,471 @@ codeunit 90 "Purch.-Post" begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnAfterPostRevert. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnAfterPostRevert(var TempWhseJnlLine: Record "Warehouse Journal Line" temporary; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnBeforePostSingleLine. + /// + /// + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the TempWhseJnlLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnBeforePostSingleLine(WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean; var TempWhseJnlLine: Record "Warehouse Journal Line" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the QtyToBeReceivedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck(var ItemJnlLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; QtyToBeReceived: Decimal; WhseReceive: Boolean; var TempWhseRcptHeader: Record "Warehouse Receipt Header" temporary; QtyToBeReceivedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeItemJnlPostLineRunWithCheck. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the DropShipOrder parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeReceivedBase parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeItemJnlPostLineRunWithCheck(var ItemJnlLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; DropShipOrder: Boolean; PurchaseHeader: Record "Purchase Header"; WhseReceive: Boolean; QtyToBeReceived: Decimal; QtyToBeReceivedBase: Decimal; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeInitAmount. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeInitAmount(var ItemJnlLine: Record "Item Journal Line"; PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine(var ItemChargePurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemLineOnBeforePostShipReceive. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemLineOnBeforePostShipReceive(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforeReceiptInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforeReceiptInvoiceErr(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforePostItemTrackingForReceiptCondition. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforePostItemTrackingForReceiptCondition(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchRcptLine: Record "Purch. Rcpt. Line"; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnAfterPurchRcptLineTestFields. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnAfterPurchRcptLineTestFields(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnAfterPurchRcptLineSetFilters. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnAfterPurchRcptLineSetFilters(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeReturnShipmentInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeReturnShipmentInvoiceErr(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostPurchLineOnAfterSetEverythingInvoiced. + /// + /// + /// Specifies the EverythingInvoiced parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the AmountsOnly parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterSetEverythingInvoiced(var PurchaseLine: Record "Purchase Line"; var EverythingInvoiced: Boolean; PurchaseHeader: Record "Purchase Header"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; var AmountsOnly: Boolean) begin end; + /// + /// Event raised by OnPostPurchLineOnAfterPostByType. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterPostByType(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnAfterCollectPurchaseLineReservEntries. + /// + /// + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCollectPurchaseLineReservEntries(var JobReservationEntry: Record "Reservation Entry"; ItemJournalLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnAfterGetPurchOrderLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetPurchOrderLine(var PurchaseLineOrder: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; PurchRcptLine: Record "Purch. Rcpt. Line") begin end; + /// + /// Event raised by OnPostPurchLineOnBeforePostByType. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLine parameter. + /// Specifies the PurchLineACY parameter. + /// Specifies the Sourcecode parameter. [IntegrationEvent(true, false)] local procedure OnPostPurchLineOnBeforePostByType(PurchHeader: Record "Purchase Header"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; PurchLine: Record "Purchase Line"; PurchLineACY: Record "Purchase Line"; Sourcecode: Code[10]) begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertCrMemoLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchCrMemoLine parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeInsertCrMemoLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; xPurchaseLine: Record "Purchase Line"); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertInvoiceLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchInvLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeInsertInvoiceLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; var PurchInvLine: Record "Purch. Inv. Line"); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertReceiptLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(true, false)] local procedure OnPostPurchLineOnBeforeInsertReceiptLine(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; PurchRcptHeader: Record "Purch. Rcpt. Header"; RoundingLineInserted: Boolean; CostBaseAmount: Decimal; xPurchaseLine: Record "Purchase Line"; var ReturnShipmentHeader: Record "Return Shipment Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var ItemLedgShptEntryNo: Integer; SrcCode: Code[10]; PreviewMode: Boolean; var WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseReceive: Boolean; WhseShip: Boolean; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; GenJnlLineDocNo: Code[20]); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the PurchRcptHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeInsertReturnShipmentLine(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; ReturnShptHeader: Record "Return Shipment Header"; TempPurchLineGlobal: Record "Purchase Line"; RoundingLineInserted: Boolean; xPurchaseLine: Record "Purchase Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeRoundAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeRoundAmount(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnPostPurchLineOnTypeCaseElse. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the SourceCode parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnTypeCaseElse(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; SourceCode: Code[10]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary); begin end; + /// + /// Event raised by OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDoc. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDoc(var PurchInvLine: Record "Purch. Inv. Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDocCrMemo. + /// + /// + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDocCrMemo(var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnAfterPurchOrderLineModify. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the ReturnShptLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnAfterPurchOrderLineModify(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary; var ReturnShptLine: Record "Return Shipment Line") begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnAfterResetTempLines. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnAfterResetTempLines(var TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnBeforeInitQtyToInvoice(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterPurchOrderLineGet. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the PurchOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterPurchOrderLineGet(var TempPurchLine: Record "Purchase Line" temporary; PurchRcptLine: Record "Purch. Rcpt. Line"; PurchOrderLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterPurchOrderLineModify. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchOrderLine parameter. + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterPurchOrderLineModify(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary; var PurchOrderLine: Record "Purchase Line"; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeUpdateBlanketOrderLine(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitOutstanding(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitQtyToInvoice(var TempPurchaseLine: Record "Purchase Line" temporary; WhseShip: Boolean; WhseReceive: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeLoop. + /// + /// + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeLoop(PurchHeader: Record "Purchase Header"; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnPurchHeaderReceive. + /// + /// + /// Specifies the PurchRcptHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnPurchHeaderReceive(var TempPurchLine: Record "Purchase Line"; PurchRcptHeader: Record "Purch. Rcpt. Header") begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnSetDefaultQtyBlank. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchPost parameter. + /// Specifies the SetDefaultQtyBlank parameter. [IntegrationEvent(true, false)] local procedure OnPostUpdateOrderLineOnSetDefaultQtyBlank(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary; PurchPost: Record "Purchases & Payables Setup"; var SetDefaultQtyBlank: Boolean) begin @@ -10630,162 +12992,360 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnProcessAssocItemJnlLineOnAfterInitTempDropShptPostBuffer. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnProcessAssocItemJnlLineOnAfterInitTempDropShptPostBuffer(var PurchLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnReleasePurchDocumentOnBeforeSetStatus. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnReleasePurchDocumentOnBeforeSetStatus(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRoundAmountOnBeforeCalculateLCYAmounts. + /// + /// + /// Specifies the PurchLineACY parameter. + /// Specifies the PurchHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TotalPurchaseLine parameter. + /// Specifies the TotalPurchaseLineLCY parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnBeforeCalculateLCYAmounts(var xPurchLine: Record "Purchase Line"; var PurchLineACY: Record "Purchase Line"; PurchHeader: Record "Purchase Header"; var IsHandled: Boolean; TotalPurchaseLine: Record "Purchase Line"; TotalPurchaseLineLCY: Record "Purchase Line"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnRoundAmountOnBeforeIncrAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the CurrExchRate parameter. + /// Specifies the NoVAT parameter. + /// Specifies the IsHandled parameter. + /// Specifies the NonDeductibleVAT parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnBeforeIncrAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchLineQty: Decimal; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line"; var xPurchaseLine: Record "Purchase Line"; var CurrExchRate: Record "Currency Exchange Rate"; var NoVAT: Boolean; var IsHandled: Boolean; var NonDeductibleVAT: Codeunit "Non-Deductible VAT") begin end; + /// + /// Event raised by OnRunOnBeforeFinalizePosting. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeFinalizePosting(var PurchaseHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShipmentHeader: Record "Return Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforeMakeInventoryAdjustment. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeMakeInventoryAdjustment(var PurchaseHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; PreviewMode: Boolean; PurchRcptHeader: Record "Purch. Rcpt. Header"; PurchInvHeader: Record "Purch. Inv. Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumPurchLines2OnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnAfterSetFilters(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnSumPurchLines2OnAfterDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnAfterDivideAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping; PurchLineQty: Decimal; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary) begin end; + /// + /// Event raised by OnSumPurchLines2OnBeforeDivideAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyType parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnBeforeDivideAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping) begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterSalesOrderHeaderModify. + /// + /// + /// Specifies the SalesSetup parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterSalesOrderHeaderModify(var SalesOrderHeader: Record "Sales Header"; var SalesSetup: Record "Sales & Receivables Setup") begin end; + /// + /// Event raised by OnUpdateAssociatedSalesOrderOnBeforeClearTempDropShptPostBuffer. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateAssociatedSalesOrderOnBeforeClearTempDropShptPostBuffer(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer") begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterSalesOrderLineModify. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesOrderHeader parameter. + /// Specifies the SalesShptHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterSalesOrderLineModify(var SalesOrderLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesOrderHeader: Record "Sales Header"; SalesShptHeader: Record "Sales Shipment Header") begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterOrderNoClearFilter. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterOrderNoClearFilter(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnUpdateAssocOrderOnBeforeSalesOrderLineModify. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnBeforeSalesOrderLineModify(var SalesOrderLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheck. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheck(var BlanketOrderPurchLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeInitOutstanding(var BlanketOrderPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnAfterCheckBlanketOrderPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnAfterCheckBlanketOrderPurchLine(var BlanketOrderPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnUpdatePurchLineBeforePostOnAfterCalcInitQtyToInvoiceNeeded. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the InitQtyToInvoiceNeeded parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePurchLineBeforePostOnAfterCalcInitQtyToInvoiceNeeded(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var InitQtyToInvoiceNeeded: Boolean) begin end; + /// + /// Event raised by OnUpdateWhseDocumentsOnAfterUpdateWhseRcpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateWhseDocumentsOnAfterUpdateWhseRcpt(var WarehouseReceiptHeader: Record "Warehouse Receipt Header") begin end; + /// + /// Event raised by OnUpdateWhseDocumentsOnAfterUpdateWhseShpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateWhseDocumentsOnAfterUpdateWhseShpt(var WarehouseShipmentHeader: Record "Warehouse Shipment Header") begin end; + /// + /// Event raised by OnBeforeRunItemJnlPostLineWithReservation. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeRunItemJnlPostLineWithReservation(var ItemJournalLine: Record "Item Journal Line"); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterCopyAndCheckItemCharge. + /// + /// [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterCopyAndCheckItemCharge(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterCalcCopyAndCheckItemChargeNeeded. + /// + /// + /// Specifies the CopyAndCheckItemChargeNeeded parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterCalcCopyAndCheckItemChargeNeeded(var PurchHeader: Record "Purchase Header"; var CopyAndCheckItemChargeNeeded: Boolean) begin end; + /// + /// Event raised by OnUpdatePostingNosOnBeforeUpdatePostingNo. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnBeforeUpdatePostingNo(PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; var ModifyHeader: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdatePostingNosOnAfterCalcShouldUpdateReceivingNo. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the ShouldUpdateReceivingNo parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnAfterCalcShouldUpdateReceivingNo(PurchaseHeader: Record "Purchase Header"; PreviewMode: Boolean; var ModifyHeader: Boolean; var ShouldUpdateReceivingNo: Boolean) begin end; + /// + /// Event raised by OnCreatePositiveOnBeforeWhseJnlPostLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnCreatePositiveOnBeforeWhseJnlPostLine(var WhseJnlLine: Record "Warehouse Journal Line") begin end; + /// + /// Event raised by OnCreatePostedWhseShptLineOnBeforeCreatePostedShptLine. + /// + /// + /// Specifies the WarehouseShipmentLine parameter. + /// Specifies the PostedWhseShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnCreatePostedWhseShptLineOnBeforeCreatePostedShptLine(var ReturnShipmentLine: Record "Return Shipment Line"; var WarehouseShipmentLine: Record "Warehouse Shipment Line"; PostedWhseShipmentHeader: Record "Posted Whse. Shipment Header") begin end; + /// + /// Event raised by OnCreatePostedRcptLineOnBeforeCreatePostedRcptLine. + /// + /// + /// Specifies the WarehouseReceiptLine parameter. + /// Specifies the PostedWhseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnCreatePostedRcptLineOnBeforeCreatePostedRcptLine(var ReturnShipmentLine: Record "Return Shipment Line"; var WarehouseReceiptLine: Record "Warehouse Receipt Line"; PostedWhseReceiptHeader: Record "Posted Whse. Receipt Header") begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnBeforeTempTrackingSpecificationModify. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnBeforeTempTrackingSpecificationModify(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification. + /// + /// [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification(var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnBeforePostUpdateInvoiceLine. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateInvoiceLine(var TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean; var PurchaseHeader: Record "Purchase Header") begin @@ -10793,102 +13353,228 @@ codeunit 90 "Purch.-Post" #if not CLEAN28 [Obsolete('This event is no longer used.', '28.0')] + /// + /// Event raised by OnBeforeCheckAssociatedSalesOrderLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckAssociatedSalesOrderLine(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; #endif + /// + /// Event raised by OnBeforeCheckAssociatedOrderLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeCheckAssociatedOrderLines(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeCheckReceiveInvoiceShip. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckReceiveInvoiceShip(var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingItemChargePerOrderOnAfterCalcFactor. + /// + /// + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the TempTrackingSpecificationChargeAssmt parameter. + /// Specifies the SignFactor parameter. + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingItemChargePerOrderOnAfterCalcFactor(var NonDistrItemJnlLine: Record "Item Journal Line"; var ItemJnlLine2: Record "Item Journal Line"; var TempTrackingSpecificationChargeAssmt: Record "Tracking Specification"; SignFactor: Integer; Factor: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingItemChargePerOrderOnAfterUpdateItemJnlLine2LocationCode. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostItemTrackingItemChargePerOrderOnAfterUpdateItemJnlLine2LocationCode(var ItemJnlLine2: Record "Item Journal Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnAfterReturnShptLineReset. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnAfterReturnShptLineReset(var ReturnShptLine: Record "Return Shipment Line"; PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeSetItemEntryRelationForShipment. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeSetItemEntryRelationForShipment(var ItemEntryRelation: Record "Item Entry Relation"; var ReturnShptLine: Record "Return Shipment Line"; var InvoicingTrackingSpecification: Record "Tracking Specification"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding(ReturnShptLine: Record "Return Shipment Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnAfterFillTempLines. + /// + /// [IntegrationEvent(true, false)] local procedure OnRunOnAfterFillTempLines(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnRunOnAfterInvoiceRounding. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(true, false)] local procedure OnRunOnAfterInvoiceRounding(var PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnRunOnBeforeFillTempLines. + /// + /// + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(true, false)] local procedure OnRunOnBeforeFillTempLines(PreviewMode: Boolean; var GenJnlLineDocNo: Code[20]) begin end; + /// + /// Event raised by OnRunOnAfterPostPurchLine. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the ReturnShipmentHeader parameter. [IntegrationEvent(true, false)] local procedure OnRunOnAfterPostPurchLine(var TempPurchLineGlobal: Record "Purchase Line" temporary; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var ReturnShipmentHeader: Record "Return Shipment Header") begin end; + /// + /// Event raised by OnAfterCalcInvDiscount. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(true, false)] local procedure OnAfterCalcInvDiscount(PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostGLAccICLineOnBeforeCheckAndInsertICGenJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the ICGenJnlLineNo parameter. [IntegrationEvent(false, false)] local procedure OnPostGLAccICLineOnBeforeCheckAndInsertICGenJnlLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; ICGenJnlLineNo: Integer) begin end; + /// + /// Event raised by OnPostGLAccICLineOnAfterCreateJobPurchLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostGLAccICLineOnAfterCreateJobPurchLine(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostItemJnlLineTrackingOnBeforeTempHandlingSpecificationFind. + /// + /// + /// Specifies the TempHandlingSpecification parameter. [IntegrationEvent(true, false)] local procedure OnPostItemJnlLineTrackingOnBeforeTempHandlingSpecificationFind(PurchLine: Record "Purchase Line"; var TempHandlingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnFinalizePostingOnAfterUpdateItemChargeAssgnt. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the TempPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(true, false)] local procedure OnFinalizePostingOnAfterUpdateItemChargeAssgnt(var PurchHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var EverythingInvoiced: Boolean; var TempPurchLine: Record "Purchase Line" temporary; var TempPurchLineGlobal: Record "Purchase Line" temporary; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeInsertValueEntryRelation. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(true, false)] local procedure OnFinalizePostingOnBeforeInsertValueEntryRelation(var PurchHeader: Record "Purchase Header"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the TempPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(true, false)] local procedure OnFinalizePostingOnBeforeInsertTrackingSpecification(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; PurchHeader: Record "Purchase Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; EverythingInvoiced: Boolean; var TempPurchLine: Record "Purchase Line"; var TempPurchLineGlobal: Record "Purchase Line") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeUpdateWhseDocuments. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the WarehouseReceive parameter. + /// Specifies the WarehouseShip parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeUpdateWhseDocuments(var PurchaseHeader: Record "Purchase Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; WarehouseReceive: Boolean; WarehouseShip: Boolean; var IsHandled: Boolean) @@ -10898,660 +13584,1476 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnFinalizePostingOnBeforeCommit. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeCommit(PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertReceiptLineOnBeforeCreatePostedRcptLine. + /// + /// + /// Specifies the WarehouseReceiptLine parameter. + /// Specifies the PostedWhseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnBeforeCreatePostedRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var WarehouseReceiptLine: Record "Warehouse Receipt Line"; PostedWhseReceiptHeader: Record "Posted Whse. Receipt Header") begin end; + /// + /// Event raised by OnInsertReceiptLineOnBeforeCreatePostedShptLine. + /// + /// + /// Specifies the WarehouseShipmentLine parameter. + /// Specifies the PostedWhseShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnBeforeCreatePostedShptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var WarehouseShipmentLine: Record "Warehouse Shipment Line"; PostedWhseShipmentHeader: Record "Posted Whse. Shipment Header") begin end; + /// + /// Event raised by OnInsertReceiptLineOnBeforeProcessWhseShptRcpt. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the PurchRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnBeforeProcessWhseShptRcpt(var PurchLine: Record "Purchase Line"; var IsHandled: Boolean; var CostBaseAmount: Decimal; PurchRcptLine: Record "Purch. Rcpt. Line") begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeArchiveUnpostedOrder. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeArchiveUnpostedOrder(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterInsertPostedHeaders. + /// + /// [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterInsertPostedHeaders(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeReleaseSalesHeader. + /// + /// + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeReleaseSalesHeader(var PurchHeader: Record "Purchase Header"; var SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnAfterReleaseSalesHeader. + /// + /// + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnAfterReleaseSalesHeader(var PurchHeader: Record "Purchase Header"; var SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdatePostingNosOnAfterSetReturnShipmentNoFromNos. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnAfterSetReturnShipmentNoFromNos(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnUpdatePostingNosOnInvoiceOnBeforeSetPostingNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnInvoiceOnBeforeSetPostingNo(var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists. + /// + /// + /// Specifies the PostingDateExists parameter. + /// Specifies the ReplacePostingDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the VATDateExists parameter. + /// Specifies the ReplaceVATDate parameter. + /// Specifies the VATDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists(var PurchHeader: Record "Purchase Header"; var PostingDateExists: Boolean; var ReplacePostingDate: Boolean; var PostingDate: Date; var ReplaceDocumentDate: Boolean; var ModifyHeader: Boolean; var VATDateExists: Boolean; var ReplaceVATDate: Boolean; var VATDate: Date) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchaseLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchaseLine(PurchaseLine: Record "Purchase Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchRcptLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchRcptLine(PurchRcptLine: Record "Purch. Rcpt. Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnShipmentLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnShipmentLine(ReturnShipmentLine: Record "Return Shipment Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertReturnShipmentHeader. + /// + /// + /// Specifies the ReturnShptHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReturnShipmentHeader(var PurchHeader: Record "Purchase Header"; var ReturnShptHeader: Record "Return Shipment Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertInvoiceHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Window parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PurchCommentLine parameter. + /// Specifies the RecordLinkManagement parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertInvoiceHeader(var PurchHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var IsHandled: Boolean; var Window: Dialog; var HideProgressWindow: Boolean; var SrcCode: Code[10]; var PurchCommentLine: Record "Purch. Comment Line"; var RecordLinkManagement: Codeunit "Record Link Management") begin end; + /// + /// Event raised by OnBeforeInserCrMemoHeader. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the Window parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the PurchCommentLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInserCrMemoHeader(var PurchHeader: Record "Purchase Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var HideProgressWindow: Boolean; var Window: Dialog; var IsHandled: Boolean; SrcCode: Code[10]; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; var PurchCommentLine: Record "Purch. Comment Line") begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnBeforeCopyComments. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnBeforeCopyComments(var PurchHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesShptHeader: Record "Sales Shipment Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnBeforePostBalancingEntry. + /// + /// + /// Specifies the LineCount parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnBeforePostBalancingEntry(var PurchHeader: Record "Purchase Header"; var LineCount: Integer) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterReceive. + /// + /// + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterReceive(var PurchHeader: Record "Purchase Header"; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeUpdateAssosOrderPostingNos. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the DropShipment parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateAssosOrderPostingNos(var TempPurchLine: Record "Purchase Line" temporary; var PurchHeader: Record "Purchase Header"; var DropShipment: Boolean; var IsHandled: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeUpdateAfterPosting. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeUpdateAfterPosting(var PurchHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var EverythingInvoiced: Boolean; var IsHandled: Boolean; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforePurchOrderLineModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforePurchOrderLineModify(var PurchOrderLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePostPurchLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostPurchLine(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeFindTempPurchLine. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeFindTempPurchLine(var TempPurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"); begin end; + /// + /// Event raised by OnCalcInvoiceOnAfterResetTempLines. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the NewInvoice parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvoiceOnAfterResetTempLines(var PurchHeader: Record "Purchase Header"; var TempPurchLine: Record "Purchase Line" temporary; var NewInvoice: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnAfterPostInvoice. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the Window parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnRunOnAfterPostInvoice(var PurchaseHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var ReturnShipmentHeader: Record "Return Shipment Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PreviewMode: Boolean; var Window: Dialog; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnCopyToTempLinesLoop. + /// + /// [IntegrationEvent(false, false)] local procedure OnCopyToTempLinesLoop(var PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnRunOnBeforePostPurchLine. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforePostPurchLine(var PurchLine: Record "Purchase Line"; var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeValidateICPartnerBusPostingGroups. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeValidateICPartnerBusPostingGroups(var TempICGenJnlLine: Record "Gen. Journal Line" temporary; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterGetCurrency. + /// + /// + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetCurrency(CurrencyCode: Code[10]; var Currency: Record Currency) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterGetPurchPrepmtAccount. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterGetPurchPrepmtAccount(var GLAcc: Record "G/L Account"; var TempPurchaseLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeGetPurchPrepmtAccount. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the GenPostingSetup parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeGetPurchPrepmtAccount(var GLAcc: Record "G/L Account"; var TempPurchaseLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; var GenPostingSetup: Record "General Posting Setup"; CompleteFunctionality: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertReturnEntryRelation. + /// + /// + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReturnEntryRelation(var ReturnShptLine: Record "Return Shipment Line"; var Result: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestPurchLineOnBeforeTestFieldQtyToReceive. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnTestPurchLineOnBeforeTestFieldQtyToReceive(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestPurchLineOnBeforeTestFieldReturnQtyToShip. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnTestPurchLineOnBeforeTestFieldReturnQtyToShip(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnAfterCalcVATAmountLines. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TempVATAmountLine parameter. [IntegrationEvent(false, false)] local procedure OnRunOnAfterCalcVATAmountLines(var PurchaseHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var TempVATAmountLine: Record "VAT Amount Line" temporary) begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforeInitAssocItemJnlLine. + /// + /// + /// Specifies the ItemShptEntryNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforeInitAssocItemJnlLine(var SalesOrderLine: Record "Sales Line"; var ItemShptEntryNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingSpecificationOnBeforeGetItemTrackingSetup. + /// + /// + /// Specifies the ItemTrackingSetup parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingSpecificationOnBeforeGetItemTrackingSetup(var PurchaseLine: Record "Purchase Line"; var ItemTrackingSetup: Record "Item Tracking Setup"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcItemJnlLineToBeReceivedAmounts. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the RemAmt parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcItemJnlLineToBeReceivedAmounts(var ItemJnlLine: Record "Item Journal Line"; var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyToBeReceived: Decimal; var RemAmt: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforeExit. + /// + /// + /// Specifies the ItemShptEntryNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforeExit(SalesOrderHeader: Record "Sales Header"; var ItemShptEntryNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeCalcQty. + /// + /// + /// Specifies the PurchOrderLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeCalcQty(var TempPurchLine: Record "Purchase Line" temporary; var PurchOrderLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnBeforeInsertSalesShptHeader. + /// + /// + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnBeforeInsertSalesShptHeader(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterShouldCalcAmounts. + /// + /// + /// Specifies the ShouldCalcAmounts parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterShouldCalcAmounts(PurchHeader: Record "Purchase Header"; var ShouldCalcAmounts: Boolean; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeDivideAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnAfterUpdateSalesOrderLine. + /// + /// + /// Specifies the SalesOrderHeader parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the SalesShipmentLine parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnAfterUpdateSalesOrderLine(SalesShptHeader: Record "Sales Shipment Header"; SalesOrderHeader: Record "Sales Header"; var SalesOrderLine: Record "Sales Line"; SalesShipmentLine: Record "Sales Shipment Line") begin end; + /// + /// Event raised by OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckPosted. + /// + /// + /// Specifies the ShouldCheckPosted parameter. [IntegrationEvent(false, false)] local procedure OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckPosted(PurchHeader: Record "Purchase Header"; var ShouldCheckPosted: Boolean) begin end; + /// + /// Event raised by OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckUnposted. + /// + /// + /// Specifies the ShouldCheckUnposted parameter. [IntegrationEvent(false, false)] local procedure OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckUnposted(PurchHeader: Record "Purchase Header"; var ShouldCheckUnposted: Boolean) begin end; + /// + /// Event raised by OnAfterCopyToTempLines. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterCopyToTempLines(var TempPurchLine: Record "Purchase Line" temporary; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnBeforeTempPurchLineSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnBeforeTempPurchLineSetFilters(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForShipment. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForShipment(var PurchHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostGLAccICLineOnBeforeCreateJobPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostGLAccICLineOnBeforeCreateJobPurchLine(var PurchHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeIsItemChargeLineWithQuantityToInvoice. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeIsItemChargeLineWithQuantityToInvoice(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerRcpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRcpt(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterGetAppliedOutboundItemLedgEntryNo. + /// + /// + /// Specifies the ItemApplicationEntry parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetAppliedOutboundItemLedgEntryNo(var ItemJnlLine: Record "Item Journal Line"; var ItemApplicationEntry: Record "Item Application Entry") begin end; + /// + /// Event raised by OnAfterGetGeneralPostingSetup. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetGeneralPostingSetup(var GeneralPostingSetup: Record "General Posting Setup"; PurchLine: Record "Purchase Line"); begin end; + /// + /// Event raised by OnBeforeConfirmJobLineType. + /// + /// + /// Specifies the HideDialog parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeConfirmJobLineType(PurchLine: Record "Purchase Line"; var HideDialog: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeConfirmJobPlanningLineNo. + /// + /// + /// Specifies the HideDialog parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeConfirmJobPlanningLineNo(PurchLine: Record "Purchase Line"; var HideDialog: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldProcessShipment. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ShouldProcessShipment parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldProcessShipment(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ShouldProcessShipment: Boolean) begin end; + /// + /// Event raised by OnCheckItemReservDisruptionOnAfterInsertTempSKU. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckItemReservDisruptionOnAfterInsertTempSKU(var Item: Record Item; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterPostItemChargePerRetRcpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerRetRcpt(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerTransfer. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerTransfer(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerRetShpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerRetShpt(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerSalesShpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerSalesShpt(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnInsertInvoiceHeaderOnBeforeCopyLinks. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertInvoiceHeaderOnBeforeCopyLinks(var PurchHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeUpdateIncomingDocument. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeUpdateIncomingDocument(var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumptionOnAfterItemLedgEntrySetFilters. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineJobConsumptionOnAfterItemLedgEntrySetFilters(var ItemLedgEntry: Record "Item Ledger Entry"; var PurchLine: Record "Purchase Line"; var ItemJournalLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnTestPurchLineOnTypeCaseOnDocumentTypeCaseElse. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnTestPurchLineOnTypeCaseOnDocumentTypeCaseElse(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterDecrementPrepmtAmtInvLCY. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PrepmtAmountInvLCY parameter. + /// Specifies the PrepmtVATAmountInvLCY parameter. [IntegrationEvent(false, false)] local procedure OnAfterDecrementPrepmtAmtInvLCY(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var PrepmtAmountInvLCY: Decimal; var PrepmtVATAmountInvLCY: Decimal) begin end; #if not CLEAN27 + /// + /// Event raised by OnSetPostingPreviewDocumentNo. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnSetPostingPreviewDocumentNo(var PreviewDocumentNo: Code[20]) begin end; + /// + /// Event raised by OnGetPostingPreviewDocumentNos. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnGetPostingPreviewDocumentNos(var PreviewDocumentNos: List of [Code[20]]) begin end; #endif + /// + /// Event raised by OnInsertPostedHeadersOnAfterInvoice. + /// + /// + /// Specifies the GenJournalLine parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInvoice(var PurchaseHeader: Record "Purchase Header"; var GenJournalLine: Record "Gen. Journal Line"; var GenJnlLineDocType: Enum "Gen. Journal Document Type"; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterSumPurchLines2. + /// + /// + /// Specifies the OldPurchaseLine parameter. + /// Specifies the NewPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterSumPurchLines2(var PurchaseHeader: Record "Purchase Header"; var OldPurchaseLine: Record "Purchase Line"; var NewPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnTypeCaseElse. + /// + /// + /// Specifies the Sign parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnTypeCaseElse(var PurchaseLine: Record "Purchase Line"; var Sign: Decimal) begin end; + /// + /// Event raised by OnSumPurchLines2OnAfterIsRoundingLineInserted. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the OldPurchaseLine parameter. + /// Specifies the RoundingLineInserted parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnAfterIsRoundingLineInserted(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var OldPurchaseLine: Record "Purchase Line"; RoundingLineInserted: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckICPartnerBlocked. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckICPartnerBlocked(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnAfterPostLines. + /// + /// + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TotalAmount parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnAfterPostLines(var PurchaseHeader: Record "Purchase Header"; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line"; var TempPurchLineGlobal: Record "Purchase Line" temporary; TotalAmount: Decimal) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforePurchaseHeaderModify. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforePurchaseHeaderModify(var PurchaseHeader: Record "Purchase Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePurchLineDimSetIDFromAppliedEntry. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePurchLineDimSetIDFromAppliedEntry(var PurchaseLineToPost: Record "Purchase Line"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterDeleteItemChargeAssgnt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterDeleteItemChargeAssgnt(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforePostItemChargePerRetRcpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRetRcpt(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerITTransfer. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TransRcptLine parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerITTransfer(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; TransRcptLine: Record "Transfer Receipt Line"; var TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerRetShpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRetShpt(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeShouldTestGetReceiptPPmtAmtToDeduct. + /// + /// + /// Specifies the CompleteFunctionality parameter. + /// Specifies the ShouldTestGetReceiptPPmtAmtToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeShouldTestGetReceiptPPmtAmtToDeduct(PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean; var ShouldTestGetReceiptPPmtAmtToDeduct: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeAmountIncludingVATAmountRound. + /// + /// + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeAmountIncludingVATAmountRound(var PurchaseLine: Record "Purchase Line"; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeCalcAmountsForFullVAT. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeCalcAmountsForFullVAT(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckMandatoryFields. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckMandatoryFields(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckPostingDate. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPostingDate(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterInsertCrMemoHeader. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertCrMemoHeader(var PurchaseHeader: Record "Purchase Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnAfterInsertInvoiceHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertInvoiceHeader(var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header") begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeOnBeforeDoCommit. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeOnBeforeDoCommit(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnReleasePurchDocumentOnBeforeDoCommit. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnReleasePurchDocumentOnBeforeDoCommit(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateAssociatedSalesOrderBeforeInitOutstanding. + /// + /// + /// Specifies the SalesOrderLine parameter. + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssociatedSalesOrderBeforeInitOutstanding(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesOrderLine: Record "Sales Line"; SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnRunOnBeforePostInvoice. + /// + /// + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforePostInvoice(PurchaseHeader: Record "Purchase Header"; var EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnCheckPurchDocumentOnBeforeCheckPurchDim. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckPurchDocumentOnBeforeCheckPurchDim(var PurchaseHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnCalcInvDiscountOnBeforeDoCommit. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvDiscountOnBeforeDoCommit(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeSetReplaceDocumentDate. + /// + /// + /// Specifies the PostingDate parameter. + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeSetReplaceDocumentDate(var PurchaseHeader: Record "Purchase Header"; var PostingDate: Date; var ReplaceDocumentDate: Boolean; var ModifyHeader: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineGet. + /// + /// + /// Specifies the TempVATAmountLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineGet(PurchaseLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckFAPostingPossibility. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckFAPostingPossibility(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckPostRestrictions. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPostRestrictions(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeTestGeneralPostingGroups. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeTestGeneralPostingGroups(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeTestFieldBilltoCustomerNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeTestFieldBilltoCustomerNo(var SalesOrderHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnAfterCalcVATBaseAmount. + /// + /// [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterCalcVATBaseAmount(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeUpdateAfterPosting. + /// + /// + /// Specifies the SuppressCommit parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateAfterPosting(var PurchaseHeader: Record "Purchase Header"; SuppressCommit: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckAndUpdate. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckAndUpdate(var PurchaseHeader: Record "Purchase Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterCalcTotalChargeAmt. + /// + /// + /// Specifies the QtyToAssign parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnAfterCalcTotalChargeAmt(var PurchaseLineToPost: Record "Purchase Line"; QtyToAssign: Decimal; var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostPurchLineOnAfterInsertReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the TempPurchaseLineGlobal parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterInsertReturnShipmentLine(var PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; ReturnShptHeader: Record "Return Shipment Header"; TempPurchaseLineGlobal: Record "Purchase Line"; RoundingLineInserted: Boolean; xPurchaseLine: Record "Purchase Line"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."); begin end; + /// + /// Event raised by OnBeforeMakeInventoryAdjustment. + /// + /// [IntegrationEvent(false, false)] procedure OnBeforeMakeInventoryAdjustment(var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeCheckItemReservDisruption. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckItemReservDisruption(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterSetCheckApplToItemEntry. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterSetCheckApplToItemEntry(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheckBlanketOrderPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheckBlanketOrderPurchLine(var BlanketOrderPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeModifyInvoicedQtyOnPurchRcptLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeModifyInvoicedQtyOnPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeTestPostingDate. + /// + /// + /// Specifies the ReplacePostingDate parameter. + /// Specifies the SkipTestPostingDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeTestPostingDate(var PurchaseHeader: Record "Purchase Header"; ReplacePostingDate: Boolean; var SkipTestPostingDate: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckItemCharge. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckItemCharge(var ItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeProcedurePostAssocItemJnlLine. + /// + /// + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the ItemShptEntryNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeProcedurePostAssocItemJnlLine(var SalesOrderLine: Record "Sales Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempHandlingSpecification: Record "Tracking Specification" temporary; QtyToBeShipped: Decimal; QtyToBeShippedBase: Decimal; var ItemShptEntryNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostDistributeItemChargeOnAfterSetFactor. + /// + /// + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostDistributeItemChargeOnAfterSetFactor(TempItemLedgerEntry: Record "Item Ledger Entry"; var Factor: Decimal) begin end; + /// + /// Event raised by OnBeforeCalcItemJnlLineToBeInvoicedAmounts. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the RemAmt parameter. + /// Specifies the RemDiscAmt parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcItemJnlLineToBeInvoicedAmounts(var ItemJournalLine: Record "Item Journal Line"; var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; var RemAmt: Decimal; var RemDiscAmt: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemJnlLineWhseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the PostBefore parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLineWhseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary; PurchaseLine: Record "Purchase Line"; PostBefore: Boolean) begin end; + /// + /// Event raised by OnAfterPostItemJnlLineWhseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLineWhseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerTransferOnBeforeProcessItemApplicationEntry. + /// + /// + /// Specifies the ItemApplicationEntry parameter. + /// Specifies the TransferReceiptLine parameter. + /// Specifies the TotalAmountToPostFCY parameter. + /// Specifies the AmountToPostFCY parameter. + /// Specifies the GeneralLedgerSetup parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerTransferOnBeforeProcessItemApplicationEntry(PurchaseLine: Record "Purchase Line"; ItemApplicationEntry: Record "Item Application Entry"; TransferReceiptLine: Record "Transfer Receipt Line"; TotalAmountToPostFCY: Decimal; var AmountToPostFCY: Decimal; GeneralLedgerSetup: Record "General Ledger Setup"; PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemCharge. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ItemEntryNo parameter. + /// Specifies the QuantityBase parameter. + /// Specifies the AmountToAssign parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the IndirectCostPct parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemCharge(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; ItemEntryNo: Integer; QuantityBase: Decimal; AmountToAssign: Decimal; QtyToAssign: Decimal; IndirectCostPct: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertedPrepmtVATBaseToDeductOnAfterSetTempPrepmtDeductLCYPurchaseLine. + /// + /// + /// Specifies the PrepmtVATBaseToDeduct parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertedPrepmtVATBaseToDeductOnAfterSetTempPrepmtDeductLCYPurchaseLine(var TempPrepmtDeductLCYPurchaseLine: Record "Purchase Line" temporary; var PrepmtVATBaseToDeduct: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeAdjustPrepmtAmountLCY. + /// + /// + /// Specifies the PrepmtPurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustPrepmtAmountLCY(PurchaseHeader: Record "Purchase Header"; var PrepmtPurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeAdjustFinalInvWith100PctPrepmt. + /// + /// + /// Specifies the TempPrepmtDeductLCYPurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustFinalInvWith100PctPrepmt(var CombinedPurchaseLine: Record "Purchase Line"; var TempPrepmtDeductLCYPurchaseLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateInvoicedQtyOnReturnShipmentLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoicedQtyOnReturnShipmentLine(var ReturnShipmentLine: Record "Return Shipment Line") begin end; + /// + /// Event raised by OnAfterCheckPurchRcptLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckPurchRcptLine(PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnUpdateItemChargeAssgntOnBeforeItemChargeAssignmentPurchModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateItemChargeAssgntOnBeforeItemChargeAssignmentPurchModify(var ItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)") begin end; + /// + /// Event raised by OnBeforeUpdateReceiptInvoicingQuantities. + /// + /// + /// Specifies the SkipQuantityUpdate parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateReceiptInvoicingQuantities(PurchLine: Record "Purchase Line"; var SkipQuantityUpdate: Boolean) begin end; + /// + /// Event raised by OnSetCommitBehavior. + /// + /// [IntegrationEvent(false, false)] local procedure OnSetCommitBehavior(var IgnoreCommit: Boolean) begin end; + + /// + /// Event raised by OnAfterProcessPostingLines. + /// + /// + /// Specifies the TotalPurchLine parameter. + /// Specifies the VendLedgEntry parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the Window parameter. + [IntegrationEvent(false, false)] + local procedure OnAfterProcessPostingLines(var PurchHeader: Record "Purchase Header"; var TotalPurchLine: Record "Purchase Line"; var VendLedgEntry: Record "Vendor Ledger Entry"; InvoicePostingParameters: Record "Invoice Posting Parameters"; SuppressCommit: Boolean; EverythingInvoiced: Boolean; var Window: Dialog) + begin + end; + + /// + /// Event is raised after the CheckPostRestrictions function is executed + /// + /// The purchase header record that was checked for post restrictions. + [IntegrationEvent(false, false)] + local procedure OnAfterCheckPostRestrictions(var PurchaseHeader: Record "Purchase Header") + begin + end; } + diff --git a/src/Layers/CH/BaseApp/Sales/Posting/SalesPost.Codeunit.al b/src/Layers/CH/BaseApp/Sales/Posting/SalesPost.Codeunit.al index aa9087f9a4c..fcda8165e93 100644 --- a/src/Layers/CH/BaseApp/Sales/Posting/SalesPost.Codeunit.al +++ b/src/Layers/CH/BaseApp/Sales/Posting/SalesPost.Codeunit.al @@ -355,6 +355,8 @@ codeunit 80 "Sales-Post" ProcessPosting(SalesHeader, SalesHeader2, TempDropShptPostBuffer, CustLedgEntry, EverythingInvoiced); + Clear(GenJnlPostLine); + UpdateLastPostingNos(SalesHeader); OnRunOnBeforeFinalizePosting( @@ -372,7 +374,7 @@ codeunit 80 "Sales-Post" // Date-ordered No. Series require that number allocation and the posted document are in the same // transaction to prevent gaps. At this point FinalizePosting has completed, so both the allocated - // number and the posted document exist in the current transaction — committing is safe. + // number and the posted document exist in the current transaction � committing is safe. // Restore SuppressCommit to the caller's original value so that the date-order guard // no longer blocks the final commit. if DateOrderSeriesUsed and SuppressCommit then @@ -555,6 +557,8 @@ codeunit 80 "Sales-Post" OnRunOnBeforeMakeInventoryAdjustment(SalesHeader, SalesInvHeader, GenJnlPostLine, ItemJnlPostLine, PreviewMode, SkipInventoryAdjustment); if not SkipInventoryAdjustment then MakeInventoryAdjustment(); + + OnAfterProcessPostingLines(SalesHeader, TotalSalesLine, CustLedgEntry, InvoicePostingParameters, SuppressCommit, EverythingInvoiced, Window, HideProgressWindow); end; /// @@ -6295,6 +6299,8 @@ codeunit 80 "Sales-Post" if SalesHeader."Bill-to Contact No." <> '' then if Contact.Get(SalesHeader."Bill-to Contact No.") then Contact.CheckIfPrivacyBlocked(true); + + OnAfterCheckPostRestrictions(SalesHeader); end; local procedure CheckCustBlockage(SalesHeader: Record "Sales Header"; CustCode: Code[20]; ExecuteDocCheck: Boolean) @@ -9532,6 +9538,7 @@ codeunit 80 "Sales-Post" /// Indicates whether the item journal line should be posted. /// Indicates whether warehouse shipment is involved. /// The warehouse receipt header. + /// Specifies the WarehouseShipmentHeader parameter. [IntegrationEvent(true, false)] local procedure OnAfterPostItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var WhseJnlPostLine: Codeunit "Whse. Jnl.-Register Line"; OriginalItemJnlLine: Record "Item Journal Line"; var ItemShptEntryNo: Integer; IsATO: Boolean; var TempHandlingSpecification: Record "Tracking Specification"; var TempATOTrackingSpecification: Record "Tracking Specification"; TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; ShouldPostItemJnlLine: Boolean; WhseShip: Boolean; WhseRcptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header") begin @@ -12427,11 +12434,19 @@ codeunit 80 "Sales-Post" /// /// The sales line to set filters on. /// The sales header. + /// Specifies the PostingNo parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePostingDescriptionOnInvoice(var SalesHeader: Record "Sales Header"; PostingNo: Code[20]; var ModifyHeader: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCalcInvDiscountSetFilter. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvDiscountSetFilter(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header") begin @@ -12696,834 +12711,1960 @@ codeunit 80 "Sales-Post" begin end; + /// + /// Event raised by OnSumSalesLines2OnAfterDivideAmount. + /// + /// + /// Specifies the SalesLineQty parameter. + /// Specifies the QtyType parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnAfterDivideAmount(var OldSalesLine: Record "Sales Line"; var SalesLineQty: Decimal; QtyType: Option General,Invoicing,Shipping) begin end; + /// + /// Event raised by OnSumSalesLines2OnAfterCalcTotalAdjCostLCY. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnAfterCalcTotalAdjCostLCY(var TotalAdjCostLCY: decimal; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnSumSalesLines2OnBeforeCalcVATAmountLines. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the InsertSalesLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnBeforeCalcVATAmountLines(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; InsertSalesLine: Boolean; var TempVATAmountLine: Record "VAT Amount Line" temporary; QtyType: Option General,Invoicing,Shipping; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumSalesLines2OnBeforeNewSalesLineInsert. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnBeforeNewSalesLineInsert(var NewSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumSalesLines2SetFilter. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the InsertSalesLine parameter. + /// Specifies the QtyType parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2SetFilter(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; InsertSalesLine: Boolean; var QtyType: Option) begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnBeforePostTempWhseJnlLine2. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnBeforePostTempWhseJnlLine2(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterTestUpdatedSalesLine. + /// + /// + /// Specifies the EverythingInvoiced parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterTestUpdatedSalesLine(var SalesLine: Record "Sales Line"; var EverythingInvoiced: Boolean; SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineBeforeInitQtyToInvoice. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineBeforeInitQtyToInvoice(var TempSalesLine: Record "Sales Line" temporary; WhseShip: Boolean; WhseReceive: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitOutstanding(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitTempSalesLineQuantities. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitTempSalesLineQuantities(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterUpdateInvoicedValues. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterUpdateInvoicedValues(var TempSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; TempSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; TempSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterInsertSalesOrderHeader. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterInsertSalesOrderHeader(var SalesOrderLine: Record "Sales Line"; TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; WhseShip: Boolean; WhseReceive: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeUpdateInvoicedValues. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeUpdateInvoicedValues(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnSetDefaultQtyBlank. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesSetup parameter. + /// Specifies the SetDefaultQtyBlank parameter. [IntegrationEvent(true, false)] local procedure OnPostUpdateOrderLineOnSetDefaultQtyBlank(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; SalesSetup: Record "Sales & Receivables Setup"; var SetDefaultQtyBlank: Boolean) begin end; + /// + /// Event raised by OnCalcInvoiceOnAfterTempSalesLineSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvoiceOnAfterTempSalesLineSetFilters(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterCalcInvDiscount. + /// + /// + /// Specifies the TempWhseShptHeader parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterCalcInvDiscount(SalesHeader: Record "Sales Header"; TempWhseShptHeader: Record "Warehouse Shipment Header" temporary; PreviewMode: Boolean; var TempSalesLineGlobal: Record "Sales Line" temporary; SuppressCommit: Boolean; WhseReceive: Boolean; WhseShip: Boolean); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterReleaseSalesDocument. + /// + /// + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterReleaseSalesDocument(SalesHeader: Record "Sales Header"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeSetPostingFlags. + /// + /// + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the HideProgressWindow parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnBeforeSetPostingFlags(var SalesHeader: Record "Sales Header"; var TempSalesLineGlobal: Record "Sales Line" temporary; var ModifyHeader: Boolean; var HideProgressWindow: Boolean); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetPostingFlags. + /// + /// + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the ModifyHeader parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterSetPostingFlags(var SalesHeader: Record "Sales Header"; var TempSalesLineGlobal: Record "Sales Line" temporary; var ModifyHeader: Boolean); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetSourceCode. + /// + /// + /// Specifies the SourceCodeSetup parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetSourceCode(var SalesHeader: Record "Sales Header"; SourceCodeSetup: Record "Source Code Setup"; var SrcCode: Code[10]); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetPoszingFromWhseRef. + /// + /// + /// Specifies the InvtPickPutaway parameter. + /// Specifies the PostingFromWhseRef parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetPoszingFromWhseRef(var SalesHeader: Record "Sales Header"; var InvtPickPutaway: Boolean; var PostingFromWhseRef: Integer); begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCalcInvDiscount. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the RefreshNeeded parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCalcInvDiscount(var SalesHeader: Record "Sales Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseReceive: Boolean; WhseShip: Boolean; var RefreshNeeded: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCheckPostRestrictions. + /// + /// + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCheckPostRestrictions(var SalesHeader: Record "Sales Header"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnCheckAssosOrderLinesOnAfterSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssosOrderLinesOnAfterSetFilters(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnCheckSalesDocumentOnAfterCalcShouldCheckItemCharge. + /// + /// + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ShouldCheckItemCharge parameter. + /// Specifies the ModifyHeader parameter. [IntegrationEvent(true, false)] local procedure OnCheckSalesDocumentOnAfterCalcShouldCheckItemCharge(var SalesHeader: Record "Sales Header"; WhseReceive: Boolean; WhseShip: Boolean; var ShouldCheckItemCharge: Boolean; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForShipOnBeforeCheck. + /// + /// + /// Specifies the TempWhseShipmentHeader parameter. + /// Specifies the TempWhseReceiptHeader parameter. + /// Specifies the Ship parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForShipOnBeforeCheck(var SalesHeader: Record "Sales Header"; var TempWhseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWhseReceiptHeader: Record "Warehouse Receipt Header" temporary; var Ship: Boolean; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForReceiveOnBeforeCheck. + /// + /// + /// Specifies the TempWhseShipmentHeader parameter. + /// Specifies the TempWhseReceiptHeader parameter. + /// Specifies the Receive parameter. [IntegrationEvent(true, false)] local procedure OnCheckTrackingAndWarehouseForReceiveOnBeforeCheck(var SalesHeader: Record "Sales Header"; var TempWhseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWhseReceiptHeader: Record "Warehouse Receipt Header" temporary; var Receive: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingSpecificationOnAfterTempItemSalesLineLoop. + /// + /// [IntegrationEvent(false, false)] local procedure OnCheckTrackingSpecificationOnAfterTempItemSalesLineLoop(var TempItemSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckCustBlockageOnAfterTempLinesSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckCustBlockageOnAfterTempLinesSetFilters(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary); begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterTempPrepmtSalesLineSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterTempPrepmtSalesLineSetFilters(var TempPrepmtSalesLine: Record "Sales Line" temporary; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterGetSalesPrepmtAccount. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterGetSalesPrepmtAccount(var GLAcc: Record "G/L Account"; var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeGetSalesPrepmtAccount. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the GenPostingSetup parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeGetSalesPrepmtAccount(var GLAcc: Record "G/L Account"; var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header"; var GenPostingSetup: Record "General Posting Setup"; CompleteFunctionality: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterTempSalesLineSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempPrepmtSalesLine parameter. + /// Specifies the NextLineNo parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterTempSalesLineSetFilters(var TempSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempPrepmtSalesLine: Record "Sales Line" temporary; var NextLineNo: Integer) begin end; + /// + /// Event raised by OnFinalizePostingOnAfterUpdateItemChargeAssgnt. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnAfterUpdateItemChargeAssgnt(var SalesHeader: Record "Sales Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the TempItemChargeAssignmentSales parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the TempSalesLine parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the SalesPost parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeInsertTrackingSpecification(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)" temporary; SalesHeader: Record "Sales Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; EverythingInvoiced: Boolean; var TempSalesLine: Record "Sales Line" temporary; var TempSalesLineGlobal: Record "Sales Line" temporary; SalesPost: Codeunit "Sales-Post") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeCreateOutboxSalesTrans. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeCreateOutboxSalesTrans(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; EverythingInvoiced: Boolean; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeDeleteApprovalEntries. + /// + /// + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeDeleteApprovalEntries(var SalesHeader: Record "Sales Header"; var EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeGenJnlPostPreviewThrowError. + /// + /// + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeGenJnlPostPreviewThrowError(SalesHeader: Record "Sales Header"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforePost. + /// + /// + /// Specifies the PurchOrderLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforePost(var ItemJournalLine: Record "Item Journal Line"; PurchOrderLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostATOOnBeforePostedATOLinkInsert. + /// + /// + /// Specifies the AssemblyHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostATOOnBeforePostedATOLinkInsert(var PostedATOLink: Record "Posted Assemble-to-Order Link"; var AssemblyHeader: Record "Assembly Header"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostATOAssocItemJnlLineOnBeforeRemainingPost. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the PostedATOLink parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the ItemLedgShptEntryNo parameter. [IntegrationEvent(false, false)] local procedure OnPostATOAssocItemJnlLineOnBeforeRemainingPost(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var PostedATOLink: Record "Posted Assemble-to-Order Link"; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal; var ItemLedgShptEntryNo: Integer) begin end; + /// + /// Event raised by OnPostDropOrderShipmentOnAfterUpdateBlanketOrderLine. + /// + /// + /// Specifies the PurchOrderLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostDropOrderShipmentOnAfterUpdateBlanketOrderLine(PurchOrderHeader: Record "Purchase Header"; PurchOrderLine: Record "Purchase Line"; TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesShptHeader: Record "Sales Shipment Header"; SalesHeader: Record "Sales Header"; PurchRcptHeader: Record "Purch. Rcpt. Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyDocumentFields. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header") begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCalcShouldPostItemJnlLineItemCharges. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the ShouldPostItemJnlLineItemCharges parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCalcShouldPostItemJnlLineItemCharges(SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var ShouldPostItemJnlLineItemCharges: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterPrepareItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the RemAmt parameter. + /// Specifies the RemDiscAmt parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterPrepareItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; WhseShip: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var QtyToBeShipped: Decimal; TrackingSpecification: Record "Tracking Specification"; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; var QtyToBeShippedBase: Decimal; var RemAmt: Decimal; var RemDiscAmt: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyItemCharge. + /// + /// + /// Specifies the TempItemChargeAssgntSales parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyItemCharge(var ItemJournalLine: Record "Item Journal Line"; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeIsJobContactLineCheck. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the ShouldPostItemJnlLine parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the QtyToBeShipped parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeIsJobContactLineCheck(var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var ShouldPostItemJnlLine: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; QtyToBeShipped: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck(var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforePostItemJnlLineWhseLine. + /// + /// + /// Specifies the TempWhseJnlLine parameter. + /// Specifies the TempWhseTrackingSpecification parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforePostItemJnlLineWhseLine(var ItemJnlLine: Record "Item Journal Line"; var TempWhseJnlLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeTransferReservToItemJnlLine. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the CheckApplFromItemEntry parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeShippedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeTransferReservToItemJnlLine(SalesLine: Record "Sales Line"; ItemJnlLine: Record "Item Journal Line"; var CheckApplFromItemEntry: Boolean; var TrackingSpecification: Record "Tracking Specification"; QtyToBeShippedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeCopyTrackingFromSpec. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeCopyTrackingFromSpec(TrackingSpecification: Record "Tracking Specification"; var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; IsATO: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine(var ItemChargeSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemJnlLinePrepareJournalLineOnBeforeCalcItemJnlAmounts. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLinePrepareJournalLineOnBeforeCalcItemJnlAmounts(var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; IsATO: Boolean) begin end; + /// + /// Event raised by OnPostItemChargeOnBeforePostItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the TempItemChargeAssgntSales parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnBeforePostItemJnlLine(var SalesLineToPost: Record "Sales Line"; var SalesLine: Record "Sales Line"; QtyToAssign: Decimal; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnAfterCopyToItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the GeneralLedgerSetup parameter. + /// Specifies the QtyToInvoice parameter. + /// Specifies the TempItemChargeAssignmentSales parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnAfterCopyToItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var SalesLine: Record "Sales Line"; GeneralLedgerSetup: Record "General Ledger Setup"; QtyToInvoice: Decimal; var TempItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)" temporary) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnAfterTempTrackingSpecificationInvSetFilters. + /// + /// + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the TempTrackingSpecificationInv parameter. + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the TotalSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnAfterTempTrackingSpecificationInvSetFilters(SalesHeader: record "Sales Header"; var ItemJnlLine2: record "Item Journal Line"; var TempTrackingSpecificationInv: Record "Tracking Specification" temporary; SalesLine: Record "Sales Line"; var IsHandled: Boolean; var TotalSalesLineLCY: Record "Sales Line"; var TotalSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnBeforeTestJobNo. + /// + /// + /// Specifies the SkipTestJobNo parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnBeforeTestJobNo(SalesLine: Record "Sales Line"; var SkipTestJobNo: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnBeforeLastRunWithCheck. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnBeforeLastRunWithCheck(NonDistrItemJnlLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnBeforeRunWithCheck. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnBeforeRunWithCheck(ItemJnlLine2: Record "Item Journal Line"; var IsHandled: Boolean; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerShptOnBeforeTestJobNo. + /// + /// + /// Specifies the SkipTestJobNo parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerShptOnBeforeTestJobNo(SalesShipmentLine: Record "Sales Shipment Line"; var SkipTestJobNo: Boolean; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerShptOnAfterCheckItemChargePerShpt. + /// + /// + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the DistributeCharge parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerShptOnAfterCheckItemChargePerShpt(SalesShipmentLine: Record "Sales Shipment Line"; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; DistributeCharge: Boolean; var IsHandled: Boolean; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerShptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the DistributeCharge parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerShptOnAfterCalcDistributeCharge(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesShptLine: Record "Sales Shipment Line"; TempItemLedgEntry: Record "Item Ledger Entry" temporary; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; var DistributeCharge: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the ReturnRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the DistributeCharge parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; ReturnRcptLine: Record "Return Receipt Line"; TempItemLedgEntry: Record "Item Ledger Entry" temporary; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; var DistributeCharge: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRetRcptOnBeforeTestFieldJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetRcptOnBeforeTestFieldJobNo(ReturnReceiptLine: Record "Return Receipt Line"; var IsHandled: Boolean; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingLineOnAfterRetrieveInvoiceSpecification. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingLineOnAfterRetrieveInvoiceSpecification(var SalesLine: Record "Sales Line"; var TempInvoicingSpecification: Record "Tracking Specification" temporary; var TrackingSpecificationExists: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnAfterSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnAfterSetFilters(var SalesShipmentLine: Record "Sales Shipment Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnAfterUpdateSalesShptLineFields. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnAfterUpdateSalesShptLineFields(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the HasATOShippedNotInvoiced parameter. + /// Specifies the ShouldAdjustQuantityRounding parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding(SalesShptLine: Record "Sales Shipment Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; HasATOShippedNotInvoiced: Boolean; var ShouldAdjustQuantityRounding: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeShipmentInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the ItemJnlRollRndg parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(true, false)] local procedure OnPostItemTrackingForShipmentOnBeforeShipmentInvoiceErr(SalesLine: Record "Sales Line"; var IsHandled: Boolean; SalesHeader: Record "Sales Header"; var ItemJnlRollRndg: Boolean; TrackingSpecificationExists: Boolean; var TempTrackingSpecification: Record "Tracking Specification" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeReturnReceiptInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the ItemJnlRollRndg parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(true, false)] local procedure OnPostItemTrackingForShipmentOnBeforeReturnReceiptInvoiceErr(SalesLine: Record "Sales Line"; var IsHandled: Boolean; SalesHeader: Record "Sales Header"; var ItemJnlRollRndg: Boolean; TrackingSpecificationExists: Boolean; var TempTrackingSpecification: Record "Tracking Specification" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnAfterSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnAfterSetFilters(var ReturnReceiptLine: Record "Return Receipt Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertCrMemoLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertCrMemoLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean; xSalesLine: Record "Sales Line"; SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertInvoiceLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the ShouldInsertInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertInvoiceLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean; xSalesLine: Record "Sales Line"; SalesInvHeader: Record "Sales Invoice Header"; var ShouldInsertInvoiceLine: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertReturnReceiptLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertReturnReceiptLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertShipmentLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesLineACY parameter. + /// Specifies the DocType parameter. + /// Specifies the DocNo parameter. + /// Specifies the ExtDocNo parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertShipmentLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean; SalesLineACY: Record "Sales Line"; DocType: Option; DocNo: Code[20]; ExtDocNo: Code[35]) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterSetEverythingInvoiced. + /// + /// + /// Specifies the EverythingInvoiced parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterSetEverythingInvoiced(SalesLine: Record "Sales Line"; var EverythingInvoiced: Boolean; var IsHandled: Boolean; SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterRoundAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterRoundAmount(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; GenJnlLineDocNo: Code[20]) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeTestJobNo(SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterPostItemTrackingLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempPostedATOLink parameter. [IntegrationEvent(true, false)] local procedure OnPostSalesLineOnAfterPostItemTrackingLine(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterTestSalesLine. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the WhseShptHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CostBaseAmount parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterTestSalesLine(var SalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header"; var WhseShptHeader: Record "Warehouse Shipment Header"; WhseShip: Boolean; PreviewMode: Boolean; var CostBaseAmount: Decimal) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforePostItemTrackingLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(true, false)] local procedure OnPostSalesLineOnBeforePostItemTrackingLine(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var ItemLedgShptEntryNo: Integer; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal; GenJnlLineDocNo: Code[20]; SrcCode: Code[10]; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeTestUnitOfMeasureCode. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeTestUnitOfMeasureCode(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterAdjustPrepmtAmountLCY. + /// + /// + /// Specifies the xSalesLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterAdjustPrepmtAmountLCY(var SalesLine: record "Sales Line"; var xSalesLine: record "Sales Line"; TempTrackingSpecification: record "Tracking Specification" temporary; SalesHeader: record "Sales Header") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterInsertReturnReceiptLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the ReturnRcptHeader parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the SalesShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterInsertReturnReceiptLine(var SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var xSalesLine: Record "Sales Line"; ReturnRcptHeader: Record "Return Receipt Header"; RoundingLineInserted: Boolean; var TempTrackingSpecification: Record "Tracking Specification" temporary; var ItemLedgShptEntryNo: Integer; SalesShipmentHeader: Record "Sales Shipment Header") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterGetSalesOrderLine. + /// + /// + /// Specifies the SalesShptLine parameter. + /// Specifies the SalesOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterGetSalesOrderLine(var TempSalesLine: Record "Sales Line" temporary; SalesShptLine: Record "Sales Shipment Line"; SalesOrderLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeCalcQuantityInvoiced. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeCalcQuantityInvoiced(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnAfterGetSalesOrderLine. + /// + /// + /// Specifies the ReturnRcptLine parameter. + /// Specifies the SalesOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnAfterGetSalesOrderLine(var TempSalesLine: Record "Sales Line" temporary; ReturnRcptLine: Record "Return Receipt Line"; SalesOrderLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeInitQtyToInvoice(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnAfterModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnAfterModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeCalcQuantityInvoiced. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeCalcQuantityInvoiced(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnProcessAssocItemJnlLineOnBeforeTempDropShptPostBufferInsert. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnProcessAssocItemJnlLineOnBeforeTempDropShptPostBufferInsert(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnProcessAssocItemJnlLineOnBeforePostAssocItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnProcessAssocItemJnlLineOnBeforePostAssocItemJnlLine(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnRoundAmountOnBeforeIncrAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineQty parameter. + /// Specifies the TotalSalesLine parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnBeforeIncrAmount(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineQty: Decimal; var TotalSalesLine: Record "Sales Line"; var TotalSalesLineLCY: Record "Sales Line"; var xSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforeCheckTotalInvoiceAmount. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeCheckTotalInvoiceAmount(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnRunOnBeforeFinalizePosting. + /// + /// + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the ReturnReceiptHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeFinalizePosting(var SalesHeader: Record "Sales Header"; var SalesShipmentHeader: Record "Sales Shipment Header"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var ReturnReceiptHeader: Record "Return Receipt Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; CommitIsSuppressed: Boolean; GenJnlLineExtDocNo: Code[35]; var EverythingInvoiced: Boolean; GenJnlLineDocNo: Code[20]; SrcCode: Code[10]; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforePostSalesLineEndLoop. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the LastLineRetrieved parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the RecSalesHeader parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the ReturnReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforePostSalesLineEndLoop(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var LastLineRetrieved: Boolean; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; RecSalesHeader: Record "Sales Header"; xSalesLine: Record "Sales Line"; var SalesShipmentHeader: Record "Sales Shipment Header"; var ReturnReceiptHeader: Record "Return Receipt Header") begin end; + /// + /// Event raised by OnGetATOItemLedgEntriesNotInvoicedOnBeforeItemLedgEntryNotInvoicedInsert. + /// + /// [IntegrationEvent(false, false)] local procedure OnGetATOItemLedgEntriesNotInvoicedOnBeforeItemLedgEntryNotInvoicedInsert(var ItemLedgEntry: Record "Item Ledger Entry") begin end; + /// + /// Event raised by OnGetPostedDocumentRecordElseCase. + /// + /// + /// Specifies the PostedSalesDocumentVariant parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnGetPostedDocumentRecordElseCase(SalesHeader: Record "Sales Header"; var PostedSalesDocumentVariant: Variant; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnGetSalesLinesOnAfterFillTempLines. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnGetSalesLinesOnAfterFillTempLines(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostItemLineOnAfterMakeSalesLineToShip. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempPostedATOLink parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemLineOnAfterMakeSalesLineToShip(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemLineOnBeforeMakeSalesLineToShip. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempPostedATOLink parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the IsHandled parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the ReturnReceiptHeader parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the TempHandlingSpecificationInv parameter. + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnPostItemLineOnBeforeMakeSalesLineToShip(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var ItemLedgShptEntryNo: Integer; var IsHandled: Boolean; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; ReturnReceiptHeader: Record "Return Receipt Header"; var TempHandlingSpecification: Record "Tracking Specification" temporary; var TempHandlingSpecificationInv: Record "Tracking Specification" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnPostItemLineOnBeforePostItemInvoiceLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempPostedATOLink parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemLineOnBeforePostItemInvoiceLine(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterPostItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnAfterPostItemJnlLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargeLineOnAfterTempItemChargeAssgntSalesLoop. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineParam parameter. [IntegrationEvent(true, false)] local procedure OnPostItemChargeLineOnAfterTempItemChargeAssgntSalesLoop(var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineParam: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargeLineOnBeforePostItemCharge. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeLineOnBeforePostItemCharge(var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforeReturnRcptLineModify. + /// + /// + /// Specifies the ReturnRcptLine parameter. + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforeReturnRcptLineModify(SalesHeader: Record "Sales Header"; var ReturnRcptLine: Record "Return Receipt Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforeAdjustQuantityRounding. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the ShouldAdjustQuantityRounding parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforeAdjustQuantityRounding(ReturnRcptLine: Record "Return Receipt Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; var ShouldAdjustQuantityRounding: Boolean) begin end; + /// + /// Event raised by OnReleaseSalesDocumentOnBeforeSetStatus. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SavedStatus parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the SuppressCommit parameter. [IntegrationEvent(false, false)] local procedure OnReleaseSalesDocumentOnBeforeSetStatus(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; SavedStatus: Enum "Sales Document Status"; PreviewMode: Boolean; SuppressCommit: Boolean); begin end; + /// + /// Event raised by OnRoundAmountOnAfterAssignSalesLines. + /// + /// + /// Specifies the SalesLineACY parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TotalSalesLines parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnAfterAssignSalesLines(var xSalesLine: Record "Sales Line"; var SalesLineACY: Record "Sales Line"; SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var TotalSalesLines: Record "Sales Line"; var TotalSalesLineLCY: Record "Sales Line"; var SalesLine: Record "Sales Line"); begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification. + /// + /// [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification(var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSendICDocumentOnBeforeSetICStatus. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSendICDocumentOnBeforeSetICStatus(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSendPostedDocumentRecordElseCase. + /// + /// + /// Specifies the DocumentSendingProfile parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSendPostedDocumentRecordElseCase(SalesHeader: Record "Sales Header"; var DocumentSendingProfile: Record "Document Sending Profile"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestSalesLineOnAfterTestSalesLineJob. + /// + /// [IntegrationEvent(false, false)] local procedure OnTestSalesLineOnAfterTestSalesLineJob(var SalesLine: record "Sales Line") begin end; + /// + /// Event raised by OnTestSalesLineOnAfterCalcShouldTestReturnQty. + /// + /// + /// Specifies the ShouldTestReturnQty parameter. [IntegrationEvent(false, false)] local procedure OnTestSalesLineOnAfterCalcShouldTestReturnQty(SalesLine: Record "Sales Line"; var ShouldTestReturnQty: Boolean) begin end; + /// + /// Event raised by OnBeforeTestGenPostingGroups. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestGenPostingGroups(var SalesLine: record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateSalesLineBeforePostOnAfterPostJobContractLine. + /// + /// + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateSalesLineBeforePostOnAfterPostJobContractLine(SalesInvoiceHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnUpdateAssosOrderOnAfterPurchOrderHeaderModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderOnAfterPurchOrderHeaderModify(var PurchOrderHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterModifyPurchLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterModifyPurchLine(var PurchOrderLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnUpdateAssocOrderOnBeforeModifyPurchLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnBeforeModifyPurchLine(var PurchOrderLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnAfterReleasePurchaseDocument. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnAfterReleasePurchaseDocument(var PurchOrderHeader: Record "Purchase Header"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeReleasePurchaseDocument. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeReleasePurchaseDocument(var PurchOrderHeader: Record "Purchase Header"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateAfterPostingOnBeforeFindSetForUpdate. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAfterPostingOnBeforeFindSetForUpdate(var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheck. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheck(var BlanketOrderSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheckSellToCustomerNo. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheckSellToCustomerNo(var BlanketOrderSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeInitOutstanding(var BlanketOrderSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnUpdateInvoicedQtyOnShipmentLineOnBeforeModifySalesShptLine. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnUpdateInvoicedQtyOnShipmentLineOnBeforeModifySalesShptLine(var SalesShptLine: Record "Sales Shipment Line"; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnAfterInitAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterInitAmount(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnAfterInitLineDiscountAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterInitLineDiscountAmount(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineRemainderModify. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineRemainderModify(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency) begin end; + /// + /// Event raised by OnBeforeCalcVATBaseAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcVATBaseAmount(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostUpdateInvoiceLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateInvoiceLine(var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostUpdateReturnReceiptLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostUpdateReturnReceiptLine(var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertTrackingSpecification(SalesHeader: Record "Sales Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSendPostedDocumentRecord. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the DocumentSendingProfile parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSendPostedDocumentRecord(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var DocumentSendingProfile: Record "Document Sending Profile") begin end; + /// + /// Event raised by OnAfterPostItemChargeLine. + /// + /// + /// Specifies the SalesLineACY parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargeLine(var SalesLine: Record "Sales Line"; SalesLineACY: Record "Sales Line") begin end; + /// + /// Event raised by OnDeleteAfterPostingOnAfterDeleteLinks. + /// + /// [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnAfterDeleteLinks(var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnDeleteAfterPostingOnBeforeDeleteSalesHeader. + /// + /// [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnBeforeDeleteSalesHeader(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnDeleteAfterPostingOnBeforeDeleteLinks. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnBeforeDeleteLinks(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforeCheckAndUpdate. + /// + /// [IntegrationEvent(false, false)] local procedure OnRunOnBeforeCheckAndUpdate(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateWonOpportunitiesOnBeforeOpportunityModify. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the Opportunity parameter. [IntegrationEvent(false, false)] local procedure OnUpdateWonOpportunitiesOnBeforeOpportunityModify(var SalesHeader: Record "Sales Header"; SalesInvoiceHeader: Record "Sales Invoice Header"; var Opportunity: Record Opportunity) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCheckShip. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCheckShip(var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnBeforeUpdateReceiveAndCheckIfInvPutawayExists. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateReceiveAndCheckIfInvPutawayExists(var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnModifyTempLineOnAfterSalesLineModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnAfterSalesLineModify(var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnModifyTempLineOnBeforeTransferFields. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnBeforeTransferFields(var SalesLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnModifyTempLineOnBeforeSalesLineModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnBeforeSalesLineModify(var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesLine(SalesLine: Record "Sales Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesShipmentLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesShipmentLine(SalesShipmentLine: Record "Sales Shipment Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnReceiptLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnReceiptLine(ReturnReceiptLine: Record "Return Receipt Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateSalesLineDimSetIDFromAppliedEntry. + /// + /// + /// Specifies the ItemLedgEntry parameter. + /// Specifies the DimSetID parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateSalesLineDimSetIDFromAppliedEntry(var SalesLineToPost: Record "Sales Line"; var ItemLedgEntry: Record "Item Ledger Entry"; DimSetID: array[10] of Integer) begin end; + /// + /// Event raised by OnDeleteAfterPostingOnAfterSetupSalesHeader. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnAfterSetupSalesHeader(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnDeleteAfterPostingOnAfterSalesLineDeleteAll. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnAfterSalesLineDeleteAll(SalesHeader: Record "Sales Header"; SalesInvoiceHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; CommitIsSuppressed: Boolean; EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentConditionOnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentConditionOnBeforeUpdateBlanketOrderLine(var TempSalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostResJnlLineOnAfterInit. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostResJnlLineOnAfterInit(var ResJnlLine: Record "Res. Journal Line"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists. + /// + /// + /// Specifies the ReplacePostingDate parameter. + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the VATDateExists parameter. + /// Specifies the ReplaceVATDate parameter. + /// Specifies the VATDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists(var PostingDateExists: Boolean; var ReplacePostingDate: Boolean; var ReplaceDocumentDate: Boolean; var PostingDate: Date; var SalesHeader: Record "Sales Header"; var ModifyHeader: Boolean; var VATDateExists: Boolean; var ReplaceVATDate: Boolean; var VATDate: Date) begin end; + /// + /// Event raised by OnBeforeValidateICPartnerBusPostingGroups. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeValidateICPartnerBusPostingGroups(var TempICGenJnlLine: Record "Gen. Journal Line" temporary; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterGetCurrency. + /// + /// + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetCurrency(CurrencyCode: Code[10]; var Currency: Record Currency) begin end; + /// + /// Event raised by OnBeforePostItemLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemLine(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean; var TempSalesLineGlobal: Record "Sales Line" temporary; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnBeforePostItemChargeLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargeLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct(var TempPrepmtSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnAfterInsertReturnReceiptHeader. + /// + /// + /// Specifies the ReturnReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertReturnReceiptHeader(var SalesHeader: Record "Sales Header"; var ReturnReceiptHeader: Record "Return Receipt Header") begin @@ -13531,384 +14672,888 @@ codeunit 80 "Sales-Post" #if not CLEAN27 [Obsolete('This event is never raised.', '27.0')] + /// + /// Event raised by OnAfterGetAmountsForDeferral. + /// + /// + /// Specifies the AmtToDefer parameter. + /// Specifies the AmtToDeferACY parameter. + /// Specifies the DeferralAccount parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetAmountsForDeferral(SalesLine: Record "Sales Line"; var AmtToDefer: Decimal; var AmtToDeferACY: Decimal; var DeferralAccount: Code[20]) begin end; #endif + /// + /// Event raised by OnPostJobContractLineBeforeTestFields. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostJobContractLineBeforeTestFields(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertCrMemoHeaderOnAfterCalcShouldProcessAsReturnOrder. + /// + /// + /// Specifies the ShouldProcessAsReturnOrder parameter. [IntegrationEvent(false, false)] local procedure OnInsertCrMemoHeaderOnAfterCalcShouldProcessAsReturnOrder(SalesHeader: Record "Sales Header"; var ShouldProcessAsReturnOrder: Boolean) begin end; + /// + /// Event raised by OnUpdateQtyToBeInvoicedForShipmentOnAfterSetQtyToBeInvoiced. + /// + /// + /// Specifies the HasATOShippedNotInvoiced parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateQtyToBeInvoicedForShipmentOnAfterSetQtyToBeInvoiced(TrackingSpecificationExists: Boolean; HasATOShippedNotInvoiced: Boolean; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnBeforePostItemJnlLineItemCharges. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLineItemCharges(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeInitOutstanding(var SalesOrderLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeGetATOItemLedgEntriesNotInvoiced. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeGetATOItemLedgEntriesNotInvoiced(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckSalesDocumentOnBeforeCheckDueDate. + /// + /// + /// Specifies the ShouldCheckDueDate parameter. [IntegrationEvent(false, false)] local procedure OnCheckSalesDocumentOnBeforeCheckDueDate(var SalesHeader: Record "Sales Header"; var ShouldCheckDueDate: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineTrackingOnAfterCalcShouldInsertTrkgSpecInv. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the ShouldInsertTrkgSpecInv parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineTrackingOnAfterCalcShouldInsertTrkgSpecInv(var SalesLine: Record "Sales Line"; QtyToBeInvoiced: Decimal; var ShouldInsertTrkgSpecInv: Boolean) begin end; + /// + /// Event raised by OnUpdateSalesLineBeforePostOnBeforeGetUnitCost. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateSalesLineBeforePostOnBeforeGetUnitCost(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcItemJnlAmountsFromQtyToBeInvoiced. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcItemJnlAmountsFromQtyToBeInvoiced(var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; QtyToBeInvoiced: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForReceiveOnAfterSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForReceiveOnAfterSetFilters(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnRunOnBeforeCalcVATAmountLines. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeCalcVATAmountLines(var TempSalesLineGlobal: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestSalesLineOnBeforeTestFieldQtyToShip. + /// + /// + /// Specifies the ShouldTestQtyToShip parameter. [IntegrationEvent(false, false)] local procedure OnTestSalesLineOnBeforeTestFieldQtyToShip(SalesLine: Record "Sales Line"; var ShouldTestQtyToShip: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertShipmentLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertShipmentLine(var SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnIsEndLoopForShippedNotInvoicedOnBeforeExit. + /// + /// + /// Specifies the SalesShptLine parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnIsEndLoopForShippedNotInvoicedOnBeforeExit(SalesLine: Record "Sales Line"; SalesShptLine: Record "Sales Shipment Line"; RemQtyToBeInvoiced: Decimal; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLinePrepareJournalLineOnBeforeCalcQuantities. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLinePrepareJournalLineOnBeforeCalcQuantities(var ItemJnlLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; QtyToBeShipped: Decimal; QtyToBeShippedBase: Decimal; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean; IsATO: Boolean) begin end; + /// + /// Event raised by OnBeforeInvoiceRounding. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInvoiceRounding(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyTrackingFromSpec. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyTrackingFromSpec(var ItemJnlLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; QtyToBeShipped: Decimal; IsATO: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeValidateQtyToInvoice. + /// + /// + /// Specifies the ShouldValidateQtyToInvoice parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeValidateQtyToInvoice(var SalesHeader: Record "Sales Header"; var ShouldValidateQtyToInvoice: Boolean; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnAfterSetFilterTempSalesLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnAfterSetFilterTempSalesLine(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckTrackingSpecificationOnBeforeGetItemTrackingSettings. + /// + /// + /// Specifies the ItemTrackingSetup parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingSpecificationOnBeforeGetItemTrackingSettings(var TempItemSalesLine: Record "Sales Line" temporary; var ItemTrackingSetup: Record "Item Tracking Setup"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForReceipt. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForReceipt(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineTrackingOnBeforeInsertTempTrkgSpec. + /// + /// + /// Specifies the TempTrackingSpec parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineTrackingOnBeforeInsertTempTrkgSpec(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempTrackingSpec: Record "Tracking Specification" temporary; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInsertInvoiceHeaderOnBeforeCheckDocumentType. + /// + /// + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesSetup parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertInvoiceHeaderOnBeforeCheckDocumentType(SalesHeader: Record "Sales Header"; var SalesInvHeader: Record "Sales Invoice Header"; SalesSetup: Record "Sales & Receivables Setup"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnBeforePostBalancingEntry. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the TotalSalesLine parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnBeforePostBalancingEntry(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var TotalSalesLine: Record "Sales Line"; var TotalSalesLineLCY: Record "Sales Line"; SuppressCommit: Boolean; PreviewMode: Boolean; InvoicePostingParameters: Record "Invoice Posting Parameters"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin end; + /// + /// Event raised by OnBeforeFindNotShippedLines. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeFindNotShippedLines(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforePostSalesLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesLineACY parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforePostSalesLine(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; SrcCode: Code[10]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var IsHandled: Boolean; SalesLineACY: Record "Sales Line") begin end; + /// + /// Event raised by OnAfterUpdateInvoiceRounding. + /// + /// + /// Specifies the TotalSalesLine parameter. + /// Specifies the SalesLine parameter. + /// Specifies the Currency parameter. + /// Specifies the BiggestLineNo parameter. + /// Specifies the LastLineRetrieved parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the RoundingLineNo parameter. + /// Specifies the UseTempData parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoiceRounding(var SalesHeader: Record "Sales Header"; var TotalSalesLine: Record "Sales Line"; var SalesLine: Record "Sales Line"; var Currency: Record Currency; var BiggestLineNo: Integer; var LastLineRetrieved: Boolean; var RoundingLineInserted: Boolean; var RoundingLineNo: Integer; UseTempData: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterSetFilters(var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostItemLineOnBeforePostItemJnlLineForInvoiceDoc. + /// + /// + /// Specifies the SalesLineToShip parameter. + /// Specifies the Ship parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the TempTrackingSpecificationInv parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. + /// Specifies the QtyToInvoice parameter. + /// Specifies the TempAssembletoOrderLink parameter. [IntegrationEvent(true, false)] local procedure OnPostItemLineOnBeforePostItemJnlLineForInvoiceDoc(SalesHeader: Record "Sales Header"; var SalesLineToShip: Record "Sales Line"; Ship: Boolean; var ItemLedgShptEntryNo: Integer; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; SalesShptHeader: Record "Sales Shipment Header"; var TempHandlingSpecification: Record "Tracking Specification" temporary; var TempTrackingSpecificationInv: Record "Tracking Specification" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean; QtyToInvoice: Decimal; TempAssembletoOrderLink: Record "Posted Assemble-to-Order Link" temporary) begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForReceipt. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the QtyToInvoiceBaseInTrackingSpec parameter. + /// Specifies the ShouldPostItemTrackingForReceipt parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForReceipt(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; RemQtyToBeInvoiced: Decimal; QtyToInvoiceBaseInTrackingSpec: Decimal; var ShouldPostItemTrackingForReceipt: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForShipment. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the QtyToInvoiceBaseInTrackingSpec parameter. + /// Specifies the ShouldPostItemTrackingForShipment parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForShipment(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; RemQtyToBeInvoiced: Decimal; QtyToInvoiceBaseInTrackingSpec: Decimal; var ShouldPostItemTrackingForShipment: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeGetQuantityShipped. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeGetQuantityShipped(var TempSalesLine: Record "Sales Line"; var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeGetReturnQtyReceived. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeGetReturnQtyReceived(var TempSalesLine: Record "Sales Line"; var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldProcessReceipt. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the ShouldProcessReceipt parameter. + /// Specifies the ItemJnlRollRndg parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldProcessReceipt(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var ShouldProcessReceipt: Boolean; var ItemJnlRollRndg: Boolean) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeInitOutstanding(var SalesOrderLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnBeforeBalAccountNoWindowUpdate. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnBeforeBalAccountNoWindowUpdate(HideProgressWindow: Boolean; var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterCalcShouldCalcPrepmtAmounts. + /// + /// + /// Specifies the ShouldCalcPrepmtAmounts parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterCalcShouldCalcPrepmtAmounts(var TempSalesLine: Record "Sales Line" temporary; var ShouldCalcPrepmtAmounts: Boolean) begin end; + /// + /// Event raised by OnAfterGetGeneralPostingSetup. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetGeneralPostingSetup(var GeneralPostingSetup: Record "General Posting Setup"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnCheckItemTrackingQuantityOnDocumentTypeCaseElse. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckItemTrackingQuantityOnDocumentTypeCaseElse(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnSetCommitBehavior. + /// + /// [IntegrationEvent(false, false)] local procedure OnSetCommitBehavior(var ErrorOnCommit: Boolean) begin end; #if not CLEAN27 + /// + /// Event raised by OnSetPostingPreviewDocumentNo. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnSetPostingPreviewDocumentNo(var PreviewDocumentNo: Code[20]; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnGetPostingPreviewDocumentNos. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnGetPostingPreviewDocumentNos(var PreviewDocumentNos: List of [Code[20]]) begin end; #endif + /// + /// Event raised by OnPostInvoiceOnAfterPostLines. + /// + /// + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnAfterPostLines(var SalesHeader: Record "Sales Header"; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeAssignQtyToInvoice. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeAssignQtyToInvoice(var TempSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeItemLedgerEntryExist. + /// + /// + /// Specifies the ShipOrReceive parameter. + /// Specifies the HasItemLedgerEntry parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeItemLedgerEntryExist(var SalesLine: Record "Sales Line"; ShipOrReceive: Boolean; var HasItemLedgerEntry: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterCalcShouldInsertInvoiceHeader. + /// + /// + /// Specifies the ShouldInsertInvoiceHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterCalcShouldInsertInvoiceHeader(var SalesHeader: Record "Sales Header"; var ShouldInsertInvoiceHeader: Boolean) begin end; + /// + /// Event raised by OnInsertShptEntryRelationOnAfterItemEntryRelationInsert. + /// + /// + /// Specifies the ItemEntryRelation parameter. + /// Specifies the xSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertShptEntryRelationOnAfterItemEntryRelationInsert(SalesShipmentLine: Record "Sales Shipment Line"; var ItemEntryRelation: Record "Item Entry Relation"; xSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnBeforePostItemChargePerRetRcpt. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempItemChargeAssignmentSales parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRetRcpt(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeSetInvoiceFields. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the ShouldSetInvoiceFields parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeSetInvoiceFields(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line"; var ShouldSetInvoiceFields: Boolean) begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeError. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the InvoiceEverything parameter. [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeError(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var InvoiceEverything: Boolean) begin end; + /// + /// Event raised by OnBeforeGetSalesLineAdjCostLCY. + /// + /// + /// Specifies the QtyType parameter. + /// Specifies the AdjCostLCY parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetSalesLineAdjCostLCY(SalesLine2: Record "Sales Line"; QtyType: Option General,Invoicing,Shipping; AdjCostLCY: Decimal; var Result: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeShouldTestGetShipmentPPmtAmtToDeduct. + /// + /// + /// Specifies the CompleteFunctionality parameter. + /// Specifies the ShouldTestGetShipmentPPmtAmtToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeShouldTestGetShipmentPPmtAmtToDeduct(SalesHeader: Record "Sales Header"; CompleteFunctionality: Boolean; var ShouldTestGetShipmentPPmtAmtToDeduct: Boolean) begin end; + /// + /// Event raised by OnAfterDeleteApprovalEntries. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the ReturnReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterDeleteApprovalEntries(var SalesHeader: Record "Sales Header"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var SalesShipmentHeader: Record "Sales Shipment Header"; var ReturnReceiptHeader: Record "Return Receipt Header") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeUpdateSalesLineBeforePost. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeUpdateSalesLineBeforePost(var SalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header"; WhseShip: Boolean; WhseReceive: Boolean; RoundingLineInserted: Boolean; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnAfterSumSalesLines2. + /// + /// + /// Specifies the OldSalesLine parameter. + /// Specifies the NewSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterSumSalesLines2(var SalesHeader: Record "Sales Header"; var OldSalesLine: Record "Sales Line"; var NewSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnCheckPostWhseShptLinesOnAfterWhseShptLinesFound. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WhseShptLinesFound parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WarehouseShipmentLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckPostWhseShptLinesOnAfterWhseShptLinesFound(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line"; var WhseShptLinesFound: Boolean; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseShip: Boolean; WhseReceive: Boolean; var WarehouseShipmentLine: Record "Warehouse Shipment Line") begin end; + /// + /// Event raised by OnAfterDecrementPrepmtAmtInvLCY. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the PrepmtAmountInvLCY parameter. + /// Specifies the PrepmtVATAmountInvLCY parameter. [IntegrationEvent(false, false)] local procedure OnAfterDecrementPrepmtAmtInvLCY(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var PrepmtAmountInvLCY: Decimal; var PrepmtVATAmountInvLCY: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineGet. + /// + /// + /// Specifies the TempVATAmountLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineGet(SalesLine: Record "Sales Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeAdjustPrepmtAmountLCY. + /// + /// + /// Specifies the PrepmtSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustPrepmtAmountLCY(SalesHeader: Record "Sales Header"; var PrepmtSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostResJnlLineOnShouldExit. + /// + /// + /// Specifies the ShouldExit parameter. [IntegrationEvent(false, false)] local procedure OnPostResJnlLineOnShouldExit(var SalesLine: Record "Sales Line"; var ShouldExit: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeUpdateTempVATAmountLineRemainder. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeUpdateTempVATAmountLineRemainder(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterCalcTotalChargeAmt. + /// + /// + /// Specifies the QtyToAssign parameter. + /// Specifies the SalesLine parameter. + /// Specifies the xSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnAfterCalcTotalChargeAmt(var SalesLineToPost: Record "Sales Line"; QtyToAssign: Decimal; var SalesLine: Record "Sales Line"; xSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnBeforeCheckPostRestrictions. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPostRestrictions(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeValidateType. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeValidateType(var TempPrepmtSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeValidateDocumentDate. + /// + /// + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeValidateDocumentDate(var PostingDateExists: Boolean; var ReplaceDocumentDate: Boolean; var PostingDate: Date; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnCheckSalesDocumentOnBeforeCheckSalesDim. + /// + /// + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckSalesDocumentOnBeforeCheckSalesDim(var SalesHeader: Record "Sales Header"; var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeCreatePrepaymentTextLines. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePrepaymentTextLines(var TempPrepmtSalesLine: Record "Sales Line" temporary; var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header"; CompleteFunctionality: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckAndUpdate. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckAndUpdate(var SalesHeader: Record "Sales Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeCollectValueEntryRelation. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeCollectValueEntryRelation(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesInvoiceLine: Record "Sales Invoice Line") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeCollectValueEntryRelationForCrMemo. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeCollectValueEntryRelationForCrMemo(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesInvoiceLine: Record "Sales Invoice Line") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterCollectValueEntryRelation. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterCollectValueEntryRelation(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesInvoiceLine: Record "Sales Invoice Line") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterCreatePostedDeferralSchedule. + /// + /// + /// Specifies the SalesInvHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterCreatePostedDeferralSchedule(var SalesInvLine: Record "Sales Invoice Line"; SalesInvHeader: Record "Sales Invoice Header") begin end; + /// + /// Event raised by OnInvoiceRoundingOnAfterValidateQuantity. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnInvoiceRoundingOnAfterValidateQuantity(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInvoiceRoundingOnAfterSetLineNo. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnInvoiceRoundingOnAfterSetLineNo(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line") begin @@ -13925,16 +15570,32 @@ codeunit 80 "Sales-Post" begin end; + /// + /// Event raised by OnInsertPostedHeadersOnBeforeDeleteServItemOnSaleCreditMemo. + /// + /// + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnBeforeDeleteServItemOnSaleCreditMemo(var SalesHeader: Record "Sales Header"; var SalesShipmentHeader: Record "Sales Shipment Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterInsertInvoiceHeader. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInsertInvoiceHeader(var SalesHeader: Record "Sales Header"; var SalesInvoiceHeader: Record "Sales Invoice Header") begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterInsertCrMemoHeader. + /// + /// + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInsertCrMemoHeader(var SalesHeader: Record "Sales Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin @@ -13951,173 +15612,400 @@ codeunit 80 "Sales-Post" begin end; + /// + /// Event raised by OnProcessPostingLinesOnBeforePostDropOrderShipment. + /// + /// + /// Specifies the TotalSalesLine parameter. + /// Specifies the TotalSalesLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnProcessPostingLinesOnBeforePostDropOrderShipment(SalesHeader: Record "Sales Header"; TotalSalesLine: Record "Sales Line"; TotalSalesLineLCY: Record "Sales Line") begin end; + /// + /// Event raised by OnAfterArchiveUnpostedOrder. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the OrderArchived parameter. [IntegrationEvent(false, false)] local procedure OnAfterArchiveUnpostedOrder(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; OrderArchived: Boolean); begin end; + /// + /// Event raised by OnBeforeCheckReturnRcptLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckReturnRcptLine(var ReturnReceiptLine: Record "Return Receipt Line"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertReturnReceiptHeaderOnBeforeReturnReceiptHeaderTransferFields. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertReturnReceiptHeaderOnBeforeReturnReceiptHeaderTransferFields(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnBeforeCopyAndCheckItemCharge. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesLine parameter. + /// Specifies the InvoiceEverything parameter. + /// Specifies the AssignError parameter. + /// Specifies the QtyNeeded parameter. + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the ItemChargeAssgntSales parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCopyAndCheckItemCharge(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var SalesLine: Record "Sales Line"; var InvoiceEverything: Boolean; var AssignError: Boolean; var QtyNeeded: Decimal; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; var ItemChargeAssgntSales: Record "Item Charge Assignment (Sales)"; var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeTestPostingDate. + /// + /// + /// Specifies the ReplacePostingDate parameter. + /// Specifies the SkipTestPostingDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeTestPostingDate(var SalesHeader: Record "Sales Header"; ReplacePostingDate: Boolean; var SkipTestPostingDate: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeSalesHeaderModify. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeSalesHeaderModify(var SalesHeader: Record "Sales Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeTestLineFields. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeTestLineFields(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateQtyToBeInvoicedForReturnReceiptOnAfterSetQtyToBeInvoiced. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateQtyToBeInvoicedForReturnReceiptOnAfterSetQtyToBeInvoiced(TrackingSpecificationExists: Boolean; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterInsertShipmentHeader. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInsertShipmentHeader(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnInsertPostedHeadersDeleteServItemOnSaleCreditMemo. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersDeleteServItemOnSaleCreditMemo(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnRunWithCheckOnAfterFinalize. + /// + /// [IntegrationEvent(false, false)] local procedure OnRunWithCheckOnAfterFinalize(var SalesHeader: Record "Sales Header"); begin end; + /// + /// Event raised by OnBeforeFinalizePostATO. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeFinalizePostATO(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeDeleteATOLinks. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDeleteATOLinks(SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckATOLink. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckATOLink(SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumSalesLinesTempOnAfterVatAmountSet. + /// + /// + /// Specifies the TotalSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLinesTempOnAfterVatAmountSet(var VATAmount: Decimal; var TotalSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInsertShptEntryRelationOnBeforeDeleteTempHandlingSpecification. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertShptEntryRelationOnBeforeDeleteTempHandlingSpecification(var TempHandlingTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeModifyPurchOrderHeader. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeModifyPurchOrderHeader(var PurchaseOrderHeader: Record "Purchase Header"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnAfterPostJobContractLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostJobContractLine(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var GenJnlLineDocType: Enum "Gen. Journal Document Type"; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; var SrcCode: Code[10]) begin end; + /// + /// Event raised by OnBeforePostDistributeItemCharge. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempItemLedgerEntry parameter. + /// Specifies the NonDistrQuantity parameter. + /// Specifies the NonDistrQtyToAssign parameter. + /// Specifies the NonDistrAmountToAssign parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostDistributeItemCharge(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempItemLedgerEntry: Record "Item Ledger Entry"; NonDistrQuantity: Decimal; NonDistrQtyToAssign: Decimal; NonDistrAmountToAssign: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostDistributeItemChargeOnAfterSetFactor. + /// + /// + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostDistributeItemChargeOnAfterSetFactor(TempItemLedgerEntry: Record "Item Ledger Entry"; var Factor: Decimal) begin end; + /// + /// Event raised by OnBeforeCalcPrepmtAmtToDeduct. + /// + /// + /// Specifies the Ship parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PrepmtAmtToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcPrepmtAmtToDeduct(var SalesLine: Record "Sales Line"; Ship: Boolean; var IsHandled: Boolean; var PrepmtAmtToDeduct: Decimal) begin end; + /// + /// Event raised by OnBeforePostItemJournalLineWarehouseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJournalLineWarehouseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAfterPostItemJournalLineWarehouseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJournalLineWarehouseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAdjustPrepmtAmountLCYOnAfterGetOrderLine. + /// + /// + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnAdjustPrepmtAmountLCYOnAfterGetOrderLine(var SalesLine: Record "Sales Line"; var SalesInvoiceLine: Record "Sales Line"); begin end; + /// + /// Event raised by OnBeforeGetQtyToInvoice. + /// + /// + /// Specifies the Ship parameter. + /// Specifies the IsHandled parameter. + /// Specifies the QtyToInvoice parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetQtyToInvoice(SalesLine: Record "Sales Line"; Ship: Boolean; var IsHandled: Boolean; var QtyToInvoice: Decimal) begin end; + /// + /// Event raised by OnBeforeAdjustFinalInvWith100PctPrepmt. + /// + /// + /// Specifies the CombinedSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustFinalInvWith100PctPrepmt(var TempPrepmtDeductLCYSalesLine: Record "Sales Line" temporary; var CombinedSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateRemainingQtyToBeInvoiced. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateRemainingQtyToBeInvoiced(SalesShptLine: Record "Sales Shipment Line"; var RemQtyToInvoiceCurrLine: Decimal; var RemQtyToInvoiceCurrLineBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLineForCreditMemoOnBeforeGetSalesPrepmtAccount. + /// + /// + /// Specifies the SalesInvoiceLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLineForCreditMemoOnBeforeGetSalesPrepmtAccount(var GLAccount: Record "G/L Account"; var SalesInvoiceLine: Record "Sales Invoice Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateEmailParameters. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateEmailParameters(SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostUpdateOrderNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateOrderNo(var SalesInvoiceHeader: Record "Sales Invoice Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSetInvoiceOrderNo. + /// + /// + /// Specifies the SalesInvLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSetInvoiceOrderNo(SalesLine: Record "Sales Line"; var SalesInvLine: Record "Sales Invoice Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeArchiveRelatedJob. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeArchiveRelatedJob(SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSyncSurPlusItemTrackingOnBeforeModifyQtyToHandleInvoice. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ReservationEntry parameter. [IntegrationEvent(false, false)] local procedure OnSyncSurPlusItemTrackingOnBeforeModifyQtyToHandleInvoice(var SalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var ReservationEntry: Record "Reservation Entry") begin end; -} \ No newline at end of file + + /// + /// Event raised by OnAfterProcessPostingLines. + /// + /// + /// Specifies the TotalSalesLine parameter. + /// Specifies the CustLedgEntry parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the Window parameter. + /// Specifies the HideProgressWindow parameter. + [IntegrationEvent(false, false)] + local procedure OnAfterProcessPostingLines(var SalesHeader: Record "Sales Header"; var TotalSalesLine: Record "Sales Line"; var CustLedgEntry: Record "Cust. Ledger Entry"; InvoicePostingParameters: Record "Invoice Posting Parameters"; SuppressCommit: Boolean; EverythingInvoiced: Boolean; var Window: Dialog; HideProgressWindow: Boolean) + begin + end; + + /// + /// Raised after checking posting restrictions + /// + /// + [IntegrationEvent(false, false)] + local procedure OnAfterCheckPostRestrictions(var SalesHeader: Record "Sales Header") + begin + end; +} diff --git a/src/Layers/CH/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al b/src/Layers/CH/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al index 4bfab62bcc4..eb9c190d456 100644 --- a/src/Layers/CH/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al +++ b/src/Layers/CH/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al @@ -1,4 +1,4 @@ -// ------------------------------------------------------------------------------------------------ +// ------------------------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // ------------------------------------------------------------------------------------------------ @@ -20,6 +20,7 @@ using Microsoft.FixedAssets.FixedAsset; using Microsoft.Foundation.Attachment; using Microsoft.Foundation.AuditCodes; using Microsoft.Foundation.NoSeries; +using Microsoft.Foundation.PaymentTerms; using Microsoft.Intercompany.Partner; using Microsoft.Purchases.Vendor; using Microsoft.Sales.Customer; @@ -855,6 +856,13 @@ table 21 "Cust. Ledger Entry" Caption = 'Prepayment'; ToolTip = 'Specifies if the related payment is a prepayment.'; } + field(91; "Payment Terms Code"; Code[10]) + { + Caption = 'Payment Terms Code'; + Editable = false; + TableRelation = "Payment Terms"; + ToolTip = 'Specifies the payment terms that determine the due date and payment discount date for the entry.'; + } field(95; "G/L Register No."; Integer) { Caption = 'G/L Register No.'; @@ -868,6 +876,7 @@ table 21 "Cust. Ledger Entry" field(171; "Payment Reference"; Code[50]) { Caption = 'Payment Reference'; + ToolTip = 'Specifies the payment reference number used by banks to identify and track the payment.'; } /// /// Specifies the payment method used or expected for this transaction, such as bank transfer, cash, or check. @@ -1397,12 +1406,12 @@ table 21 "Cust. Ledger Entry" SetCurrentKey("Customer No.", Open, Positive, "Due Date"); SetRange("Customer No.", CustomerNo); SetRange(Open, true); + OnSetApplyToFiltersOnBeforeSetFilters(Rec); if ApplyDocNo <> '' then begin SetRange("Document Type", ApplyDocType); SetRange("Document No.", ApplyDocNo); if FindFirst() then; - SetRange("Document Type"); - SetRange("Document No."); + ClearDocumentFilters(); end else if ApplyDocType <> 0 then begin SetRange("Document Type", ApplyDocType); @@ -1416,6 +1425,22 @@ table 21 "Cust. Ledger Entry" end; end; + procedure SetAppliesToDocFilters(var GenJnlLine: Record "Gen. Journal Line") + begin + SetRange("Document Type", GenJnlLine."Applies-to Doc. Type"); + SetRange("Document No.", GenJnlLine."Applies-to Doc. No."); + + OnAfterSetAppliesToDocFilters(Rec, GenJnlLine); + end; + + procedure ClearDocumentFilters() + begin + SetRange("Document Type"); + SetRange("Document No."); + + OnAfterClearDocumentFilters(Rec); + end; + /// /// Toggles the Amount to Apply field between the remaining amount and zero for the specified document. /// @@ -1489,6 +1514,7 @@ table 21 "Cust. Ledger Entry" "Payment Method Code" := GenJnlLine."Payment Method Code"; "Payment Reference" := GenJnlLine."Payment Reference"; "Exported to Payment File" := GenJnlLine."Exported to Payment File"; + "Payment Terms Code" := GenJnlLine."Payment Terms Code"; OnAfterCopyCustLedgerEntryFromGenJnlLine(Rec, GenJnlLine); end; @@ -1830,5 +1856,20 @@ table 21 "Cust. Ledger Entry" local procedure OnValidateMaxPaymentToleranceOnBeforeFieldError(var CustLedgerEntry: Record "Cust. Ledger Entry") begin end; + + [IntegrationEvent(false, false)] + local procedure OnAfterSetAppliesToDocFilters(var Rec: Record "Cust. Ledger Entry"; var GenJnlLine: Record "Gen. Journal Line") + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnAfterClearDocumentFilters(var Rec: Record "Cust. Ledger Entry") + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnSetApplyToFiltersOnBeforeSetFilters(var Rec: Record "Cust. Ledger Entry") + begin + end; } diff --git a/src/Layers/DACH/BaseApp/Foundation/Navigate/Navigate.Page.al b/src/Layers/DACH/BaseApp/Foundation/Navigate/Navigate.Page.al index 5885b530de2..abce6969c0e 100644 --- a/src/Layers/DACH/BaseApp/Foundation/Navigate/Navigate.Page.al +++ b/src/Layers/DACH/BaseApp/Foundation/Navigate/Navigate.Page.al @@ -1904,6 +1904,7 @@ page 344 Navigate ItemTrackingFilters.SetFilter("Package No. Filter", PackageNoFilter); OnAfterSetTrackingFiltersOnBeforeFindTrackingRecords(ItemTrackingFilters); + OnFindTrackingRecordsOnAfterSetTrackingFilters(ItemTrackingFilters); Clear(ItemTrackingNavigateMgt); ItemTrackingNavigateMgt.FindTrackingRecords(ItemTrackingFilters); @@ -2183,7 +2184,6 @@ page 344 Navigate begin end; - [IntegrationEvent(true, false)] local procedure OnFindExtRecordsOnAfterSetSalesCrMemoFilter(var SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin @@ -2359,6 +2359,11 @@ page 344 Navigate begin end; + [IntegrationEvent(true, false)] + local procedure OnFindTrackingRecordsOnAfterSetTrackingFilters(var ItemTrackingFilters: Record Item) + begin + end; + [IntegrationEvent(false, false)] local procedure OnFindUnpostedPurchaseDocsOnAfterSetFilters(var PurchaseHeader: Record "Purchase Header") begin diff --git a/src/Layers/ES/BaseApp/Bank/BankAccount/BankAccount.Table.al b/src/Layers/ES/BaseApp/Bank/BankAccount/BankAccount.Table.al index b0ed8537410..e390ab40514 100644 --- a/src/Layers/ES/BaseApp/Bank/BankAccount/BankAccount.Table.al +++ b/src/Layers/ES/BaseApp/Bank/BankAccount/BankAccount.Table.al @@ -17,17 +17,11 @@ using Microsoft.EServices.OnlineMap; using Microsoft.Finance.Currency; using Microsoft.Finance.Dimension; using Microsoft.Finance.GeneralLedger.Setup; -using Microsoft.Finance.ReceivablesPayables; using Microsoft.Foundation.Address; -using Microsoft.Foundation.AuditCodes; using Microsoft.Foundation.Comment; using Microsoft.Foundation.Company; using Microsoft.Foundation.NoSeries; using Microsoft.Inventory.Intrastat; -using Microsoft.Purchases.History; -using Microsoft.Purchases.Payables; -using Microsoft.Sales.History; -using Microsoft.Sales.Receivables; using Microsoft.Utilities; using System; using System.Email; @@ -69,7 +63,6 @@ table 270 "Bank Account" GLSetup.Get(); NoSeries.TestManual(GLSetup."Bank Account Nos."); "No. Series" := ''; - "Operation Fees Code" := "No."; end; end; } @@ -291,17 +284,6 @@ table 270 "Bank Account" Error( Text000, FieldCaption("Currency Code")); - - if CarteraSetup.ReadPermission then begin - PostedBillGr.SetCurrentKey("Bank Account No."); - PostedBillGr.SetRange("Bank Account No.", "No."); - if PostedBillGr.Find('+') then - Error(Text1100000, FieldCaption("Currency Code")); - PostedPmtOrd.SetCurrentKey("Bank Account No."); - PostedPmtOrd.SetRange("Bank Account No.", "No."); - if PostedPmtOrd.Find('+') then - Error(Text1100001, FieldCaption("Currency Code")); - end; end; } /// @@ -1116,396 +1098,6 @@ table 270 "Bank Account" { Caption = 'Las E-Pay File Creation No.'; } - field(7000000; "Delay for Notices"; Integer) - { - Caption = 'Delay for Notices'; - MinValue = 0; - } - field(7000001; "Credit Limit for Discount"; Decimal) - { - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - Caption = 'Credit Limit for Discount'; - MinValue = 0; - } - field(7000002; "Last Bill Gr. No."; Code[20]) - { - Caption = 'Last Bill Gr. No.'; - Editable = false; - } - field(7000003; "Date of Last Post. Bill Gr."; Date) - { - Caption = 'Date of Last Post. Bill Gr.'; - Editable = false; - } - field(7000004; "Operation Fees Code"; Code[20]) - { - Caption = 'Operation Fees Code'; - TableRelation = "Bank Account" where("Currency Code" = field("Currency Code")); - ValidateTableRelation = true; - } - field(7000005; "Posted Receiv. Bills Rmg. Amt."; Decimal) - { - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - CalcFormula = sum("Posted Cartera Doc."."Remaining Amount" where("Bank Account No." = field("No."), - "Global Dimension 1 Code" = field("Global Dimension 1 Filter"), - "Global Dimension 2 Code" = field("Global Dimension 2 Filter"), - "Dealing Type" = field("Dealing Type Filter"), - Status = field("Status Filter"), - "Category Code" = field("Category Filter"), - "Honored/Rejtd. at Date" = field("Honored/Rejtd. at Date Filter"), - "Due Date" = field("Due Date Filter"), - Type = const(Receivable), - "Document Type" = const(Bill))); - Caption = 'Posted Receiv. Bills Rmg. Amt.'; - Editable = false; - FieldClass = FlowField; - } - field(7000006; "Posted Receiv. Bills Amt."; Decimal) - { - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - CalcFormula = sum("Posted Cartera Doc."."Amount for Collection" where("Bank Account No." = field("No."), - "Global Dimension 1 Code" = field("Global Dimension 1 Filter"), - "Global Dimension 2 Code" = field("Global Dimension 2 Filter"), - "Dealing Type" = field("Dealing Type Filter"), - Status = field("Status Filter"), - "Category Code" = field("Category Filter"), - "Honored/Rejtd. at Date" = field("Honored/Rejtd. at Date Filter"), - "Due Date" = field("Due Date Filter"), - Type = const(Receivable), - "Document Type" = const(Bill))); - Caption = 'Posted Receiv. Bills Amt.'; - Editable = false; - FieldClass = FlowField; - } - field(7000007; "Closed Receiv. Bills Amt."; Decimal) - { - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - CalcFormula = sum("Closed Cartera Doc."."Amount for Collection" where("Bank Account No." = field("No."), - "Global Dimension 1 Code" = field("Global Dimension 1 Filter"), - "Global Dimension 2 Code" = field("Global Dimension 2 Filter"), - Status = field("Status Filter"), - "Honored/Rejtd. at Date" = field("Honored/Rejtd. at Date Filter"), - "Due Date" = field("Due Date Filter"), - Type = const(Receivable), - "Document Type" = const(Bill))); - Caption = 'Closed Receiv. Bills Amt.'; - Editable = false; - FieldClass = FlowField; - } - field(7000008; "Dealing Type Filter"; Enum "Cartera Dealing Type") - { - Caption = 'Dealing Type Filter'; - FieldClass = FlowFilter; - } - field(7000009; "Status Filter"; Enum "Cartera Document Status") - { - Caption = 'Status Filter'; - FieldClass = FlowFilter; - } - field(7000010; "Category Filter"; Code[10]) - { - Caption = 'Category Filter'; - FieldClass = FlowFilter; - TableRelation = "Category Code"; - } - field(7000011; "Due Date Filter"; Date) - { - Caption = 'Due Date Filter'; - FieldClass = FlowFilter; - } - field(7000012; "Honored/Rejtd. at Date Filter"; Date) - { - Caption = 'Honored/Rejtd. at Date Filter'; - FieldClass = FlowFilter; - } - field(7000013; "Posted R.Bills Rmg. Amt. (LCY)"; Decimal) - { - AutoFormatType = 1; - AutoFormatExpression = ''; - CalcFormula = sum("Posted Cartera Doc."."Remaining Amt. (LCY)" where("Bank Account No." = field("No."), - "Global Dimension 1 Code" = field("Global Dimension 1 Filter"), - "Global Dimension 2 Code" = field("Global Dimension 2 Filter"), - "Dealing Type" = field("Dealing Type Filter"), - Status = field("Status Filter"), - "Category Code" = field("Category Filter"), - "Honored/Rejtd. at Date" = field("Honored/Rejtd. at Date Filter"), - "Due Date" = field("Due Date Filter"), - Type = const(Receivable), - "Document Type" = const(Bill))); - Caption = 'Posted R.Bills Rmg. Amt. (LCY)'; - Editable = false; - FieldClass = FlowField; - } - field(7000014; "Posted Receiv Bills Amt. (LCY)"; Decimal) - { - AutoFormatType = 1; - AutoFormatExpression = ''; - CalcFormula = sum("Posted Cartera Doc."."Amt. for Collection (LCY)" where("Bank Account No." = field("No."), - "Global Dimension 1 Code" = field("Global Dimension 1 Filter"), - "Global Dimension 2 Code" = field("Global Dimension 2 Filter"), - "Dealing Type" = field("Dealing Type Filter"), - Status = field("Status Filter"), - "Category Code" = field("Category Filter"), - "Honored/Rejtd. at Date" = field("Honored/Rejtd. at Date Filter"), - "Due Date" = field("Due Date Filter"), - Type = const(Receivable), - "Document Type" = const(Bill))); - Caption = 'Posted Receiv Bills Amt. (LCY)'; - Editable = false; - FieldClass = FlowField; - } - field(7000015; "Closed Receiv Bills Amt. (LCY)"; Decimal) - { - AutoFormatType = 1; - AutoFormatExpression = ''; - CalcFormula = sum("Closed Cartera Doc."."Amt. for Collection (LCY)" where("Bank Account No." = field("No."), - "Global Dimension 1 Code" = field("Global Dimension 1 Filter"), - "Global Dimension 2 Code" = field("Global Dimension 2 Filter"), - Status = field("Status Filter"), - "Honored/Rejtd. at Date" = field("Honored/Rejtd. at Date Filter"), - "Due Date" = field("Due Date Filter"), - Type = const(Receivable), - "Document Type" = const(Bill))); - Caption = 'Closed Receiv Bills Amt. (LCY)'; - Editable = false; - FieldClass = FlowField; - } - field(7000016; "VAT Registration No."; Text[20]) - { - Caption = 'VAT Registration No.'; - } - field(7000017; "Customer Ratings Code"; Code[20]) - { - Caption = 'Customer Ratings Code'; - TableRelation = "Bank Account" where("Currency Code" = field("Currency Code")); - ValidateTableRelation = true; - } - field(7000018; "Posted Pay. Bills Rmg. Amt."; Decimal) - { - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - CalcFormula = sum("Posted Cartera Doc."."Remaining Amount" where("Bank Account No." = field("No."), - "Global Dimension 1 Code" = field("Global Dimension 1 Filter"), - "Global Dimension 2 Code" = field("Global Dimension 2 Filter"), - "Dealing Type" = field("Dealing Type Filter"), - Status = field("Status Filter"), - "Category Code" = field("Category Filter"), - "Honored/Rejtd. at Date" = field("Honored/Rejtd. at Date Filter"), - "Due Date" = field("Due Date Filter"), - Type = const(Payable), - "Document Type" = const(Bill))); - Caption = 'Posted Pay. Bills Rmg. Amt.'; - Editable = false; - FieldClass = FlowField; - } - field(7000019; "Posted Pay. Bills Amt."; Decimal) - { - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - CalcFormula = sum("Posted Cartera Doc."."Amount for Collection" where("Bank Account No." = field("No."), - "Global Dimension 1 Code" = field("Global Dimension 1 Filter"), - "Global Dimension 2 Code" = field("Global Dimension 2 Filter"), - "Dealing Type" = field("Dealing Type Filter"), - Status = field("Status Filter"), - "Category Code" = field("Category Filter"), - "Honored/Rejtd. at Date" = field("Honored/Rejtd. at Date Filter"), - "Due Date" = field("Due Date Filter"), - Type = const(Payable), - "Document Type" = const(Bill))); - Caption = 'Posted Pay. Bills Amt.'; - Editable = false; - FieldClass = FlowField; - } - field(7000020; "Closed Pay. Bills Amt."; Decimal) - { - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - CalcFormula = sum("Closed Cartera Doc."."Amount for Collection" where("Bank Account No." = field("No."), - "Global Dimension 1 Code" = field("Global Dimension 1 Filter"), - "Global Dimension 2 Code" = field("Global Dimension 2 Filter"), - Status = field("Status Filter"), - "Honored/Rejtd. at Date" = field("Honored/Rejtd. at Date Filter"), - "Due Date" = field("Due Date Filter"), - Type = const(Payable), - "Document Type" = const(Bill))); - Caption = 'Closed Pay. Bills Amt.'; - Editable = false; - FieldClass = FlowField; - } - field(7000021; "Posted P.Bills Rmg. Amt. (LCY)"; Decimal) - { - AutoFormatType = 1; - AutoFormatExpression = ''; - CalcFormula = sum("Posted Cartera Doc."."Remaining Amt. (LCY)" where("Bank Account No." = field("No."), - "Global Dimension 1 Code" = field("Global Dimension 1 Filter"), - "Global Dimension 2 Code" = field("Global Dimension 2 Filter"), - "Dealing Type" = field("Dealing Type Filter"), - Status = field("Status Filter"), - "Category Code" = field("Category Filter"), - "Honored/Rejtd. at Date" = field("Honored/Rejtd. at Date Filter"), - "Due Date" = field("Due Date Filter"), - "Document Type" = const(Bill), - Type = const(Payable))); - Caption = 'Posted P.Bills Rmg. Amt. (LCY)'; - Editable = false; - FieldClass = FlowField; - } - field(7000022; "Posted Pay. Bills Amt. (LCY)"; Decimal) - { - AutoFormatType = 1; - AutoFormatExpression = ''; - CalcFormula = sum("Posted Cartera Doc."."Amt. for Collection (LCY)" where("Bank Account No." = field("No."), - "Global Dimension 1 Code" = field("Global Dimension 1 Filter"), - "Global Dimension 2 Code" = field("Global Dimension 2 Filter"), - "Dealing Type" = field("Dealing Type Filter"), - Status = field("Status Filter"), - "Category Code" = field("Category Filter"), - "Honored/Rejtd. at Date" = field("Honored/Rejtd. at Date Filter"), - "Due Date" = field("Due Date Filter"), - Type = const(Payable), - "Document Type" = const(Bill))); - Caption = 'Posted Pay. Bills Amt. (LCY)'; - Editable = false; - FieldClass = FlowField; - } - field(7000023; "Closed Pay. Bills Amt. (LCY)"; Decimal) - { - AutoFormatType = 1; - AutoFormatExpression = ''; - CalcFormula = sum("Closed Cartera Doc."."Amt. for Collection (LCY)" where("Bank Account No." = field("No."), - "Global Dimension 1 Code" = field("Global Dimension 1 Filter"), - "Global Dimension 2 Code" = field("Global Dimension 2 Filter"), - Status = field("Status Filter"), - "Honored/Rejtd. at Date" = field("Honored/Rejtd. at Date Filter"), - "Due Date" = field("Due Date Filter"), - Type = const(Payable), - "Document Type" = const(Bill))); - Caption = 'Closed Pay. Bills Amt. (LCY)'; - Editable = false; - FieldClass = FlowField; - } - field(7000024; "Post. Receivable Inv. Amt."; Decimal) - { - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - CalcFormula = sum("Posted Cartera Doc."."Amount for Collection" where("Bank Account No." = field("No."), - "Global Dimension 1 Code" = field("Global Dimension 1 Filter"), - "Global Dimension 2 Code" = field("Global Dimension 2 Filter"), - "Dealing Type" = field("Dealing Type Filter"), - Status = field("Status Filter"), - "Category Code" = field("Category Filter"), - "Honored/Rejtd. at Date" = field("Honored/Rejtd. at Date Filter"), - "Due Date" = field("Due Date Filter"), - Type = const(Receivable), - "Document Type" = const(Invoice))); - Caption = 'Post. Receivable Inv. Amt.'; - Editable = false; - FieldClass = FlowField; - } - field(7000025; "Clos. Receivable Inv. Amt."; Decimal) - { - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - CalcFormula = sum("Closed Cartera Doc."."Amount for Collection" where("Bank Account No." = field("No."), - "Global Dimension 1 Code" = field("Global Dimension 1 Filter"), - "Global Dimension 2 Code" = field("Global Dimension 2 Filter"), - Status = field("Status Filter"), - "Honored/Rejtd. at Date" = field("Honored/Rejtd. at Date Filter"), - "Due Date" = field("Due Date Filter"), - Type = const(Receivable), - "Document Type" = const(Invoice))); - Caption = 'Clos. Receivable Inv. Amt.'; - Editable = false; - FieldClass = FlowField; - } - field(7000026; "Posted Pay. Invoices Amt."; Decimal) - { - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - CalcFormula = sum("Posted Cartera Doc."."Amount for Collection" where("Bank Account No." = field("No."), - "Global Dimension 1 Code" = field("Global Dimension 1 Filter"), - "Global Dimension 2 Code" = field("Global Dimension 2 Filter"), - "Dealing Type" = field("Dealing Type Filter"), - Status = field("Status Filter"), - "Category Code" = field("Category Filter"), - "Honored/Rejtd. at Date" = field("Honored/Rejtd. at Date Filter"), - "Due Date" = field("Due Date Filter"), - Type = const(Payable), - "Document Type" = const(Invoice))); - Caption = 'Posted Pay. Invoices Amt.'; - Editable = false; - FieldClass = FlowField; - } - field(7000027; "Closed Pay. Invoices Amt."; Decimal) - { - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - CalcFormula = sum("Closed Cartera Doc."."Amount for Collection" where("Bank Account No." = field("No."), - "Global Dimension 1 Code" = field("Global Dimension 1 Filter"), - "Global Dimension 2 Code" = field("Global Dimension 2 Filter"), - Status = field("Status Filter"), - "Honored/Rejtd. at Date" = field("Honored/Rejtd. at Date Filter"), - "Due Date" = field("Due Date Filter"), - Type = const(Payable), - "Document Type" = const(Invoice))); - Caption = 'Closed Pay. Invoices Amt.'; - Editable = false; - FieldClass = FlowField; - } - field(7000028; "Posted Pay. Inv. Rmg. Amt."; Decimal) - { - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - CalcFormula = sum("Posted Cartera Doc."."Remaining Amount" where("Bank Account No." = field("No."), - "Global Dimension 1 Code" = field("Global Dimension 1 Filter"), - "Global Dimension 2 Code" = field("Global Dimension 2 Filter"), - "Dealing Type" = field("Dealing Type Filter"), - Status = field("Status Filter"), - "Category Code" = field("Category Filter"), - "Honored/Rejtd. at Date" = field("Honored/Rejtd. at Date Filter"), - "Due Date" = field("Due Date Filter"), - Type = const(Payable), - "Document Type" = const(Invoice))); - Caption = 'Posted Pay. Inv. Rmg. Amt.'; - Editable = false; - FieldClass = FlowField; - } - field(7000029; "Posted Pay. Documents Amt."; Decimal) - { - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - CalcFormula = sum("Posted Cartera Doc."."Amount for Collection" where("Bank Account No." = field("No."), - "Global Dimension 1 Code" = field("Global Dimension 1 Filter"), - "Global Dimension 2 Code" = field("Global Dimension 2 Filter"), - "Dealing Type" = field("Dealing Type Filter"), - Status = field("Status Filter"), - "Category Code" = field("Category Filter"), - "Honored/Rejtd. at Date" = field("Honored/Rejtd. at Date Filter"), - "Due Date" = field("Due Date Filter"), - Type = const(Payable))); - Caption = 'Posted Pay. Documents Amt.'; - Editable = false; - FieldClass = FlowField; - } - field(7000030; "Closed Pay. Documents Amt."; Decimal) - { - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - CalcFormula = sum("Closed Cartera Doc."."Amount for Collection" where("Bank Account No." = field("No."), - "Global Dimension 1 Code" = field("Global Dimension 1 Filter"), - "Global Dimension 2 Code" = field("Global Dimension 2 Filter"), - Status = field("Status Filter"), - "Honored/Rejtd. at Date" = field("Honored/Rejtd. at Date Filter"), - "Due Date" = field("Due Date Filter"), - Type = const(Payable))); - Caption = 'Closed Pay. Documents Amt.'; - Editable = false; - FieldClass = FlowField; - } } keys @@ -1539,23 +1131,15 @@ table 270 "Bank Account" } trigger OnDelete() - var - DocumentMove: Codeunit "Document-Move"; begin CheckDeleteBalancingBankAccount(); MoveEntries.MoveBankAccEntries(Rec); - DocumentMove.MoveBankAccDocs(Rec); CommentLine.SetRange("Table Name", CommentLine."Table Name"::"Bank Account"); CommentLine.SetRange("No.", "No."); CommentLine.DeleteAll(); - if CarteraSetup.ReadPermission then begin - Suffix.SetRange("Bank Acc. Code", "No."); - Suffix.DeleteAll(); - end; - UpdateContFromBank.OnDelete(Rec); DimMgt.DeleteDefaultDim(DATABASE::"Bank Account", "No."); @@ -1613,23 +1197,16 @@ table 270 "Bank Account" BankAccLedgEntry: Record "Bank Account Ledger Entry"; CommentLine: Record "Comment Line"; PostCode: Record "Post Code"; - CarteraSetup: Record "Cartera Setup"; - PostedBillGr: Record "Posted Bill Group"; - ClosedBillGr: Record "Closed Bill Group"; - PostedPmtOrd: Record "Posted Payment Order"; - ClosedPmtOrd: Record "Closed Payment Order"; - Suffix: Record Suffix; NoSeries: Codeunit "No. Series"; MoveEntries: Codeunit MoveEntries; UpdateContFromBank: Codeunit "BankCont-Update"; DimMgt: Codeunit DimensionManagement; InsertFromContact: Boolean; + #pragma warning disable AA0074 #pragma warning disable AA0470 Text000: Label 'You cannot change %1 because there are one or more open ledger entries for this bank account.'; Text003: Label 'Do you wish to create a contact for %1 %2?'; - Text1100000: Label 'You cannot change %1 because there are one or more posted bill groups for this bank account.'; - Text1100001: Label 'You cannot change %1 because there are one or more posted payment orders for this bank account.'; #pragma warning restore AA0470 #pragma warning restore AA0074 #pragma warning disable AA0470 @@ -1904,138 +1481,6 @@ table 270 "Bank Account" OnAfterPrePadString(Rec, InString, MaxLen, Result); end; - [Scope('OnPrem')] - procedure DiscInterestsTotalAmt(PostDateFilter: Code[250]): Decimal - begin - if CarteraSetup.ReadPermission then begin - PostedBillGr.SetCurrentKey("Bank Account No.", "Posting Date"); - PostedBillGr.SetRange("Bank Account No.", "No."); - PostedBillGr.SetFilter("Posting Date", PostDateFilter); - PostedBillGr.CalcSums("Discount Interests Amt."); - ClosedBillGr.SetCurrentKey("Bank Account No.", "Posting Date"); - ClosedBillGr.SetRange("Bank Account No.", "No."); - ClosedBillGr.SetFilter("Posting Date", PostDateFilter); - ClosedBillGr.CalcSums("Discount Interests Amt."); - exit(PostedBillGr."Discount Interests Amt." + ClosedBillGr."Discount Interests Amt."); - end; - end; - - [Scope('OnPrem')] - procedure ServicesFeesTotalAmt(PostDateFilter: Code[250]): Decimal - begin - if CarteraSetup.ReadPermission then begin - PostedBillGr.SetCurrentKey("Bank Account No.", "Posting Date"); - PostedBillGr.SetRange("Bank Account No.", "No."); - PostedBillGr.SetFilter("Posting Date", PostDateFilter); - PostedBillGr.CalcSums("Discount Expenses Amt."); - ClosedBillGr.SetCurrentKey("Bank Account No.", "Posting Date"); - ClosedBillGr.SetRange("Bank Account No.", "No."); - ClosedBillGr.SetFilter("Posting Date", PostDateFilter); - ClosedBillGr.CalcSums("Discount Expenses Amt."); - exit(PostedBillGr."Discount Expenses Amt." + ClosedBillGr."Discount Expenses Amt."); - end; - end; - - [Scope('OnPrem')] - procedure CollectionFeesTotalAmt(PostDateFilter: Code[250]): Decimal - begin - if CarteraSetup.ReadPermission then begin - PostedBillGr.SetCurrentKey("Bank Account No.", "Posting Date"); - PostedBillGr.SetRange("Bank Account No.", "No."); - PostedBillGr.SetFilter("Posting Date", PostDateFilter); - PostedBillGr.CalcSums("Collection Expenses Amt."); - ClosedBillGr.SetCurrentKey("Bank Account No.", "Posting Date"); - ClosedBillGr.SetRange("Bank Account No.", "No."); - ClosedBillGr.SetFilter("Posting Date", PostDateFilter); - ClosedBillGr.CalcSums("Collection Expenses Amt."); - exit(PostedBillGr."Collection Expenses Amt." + ClosedBillGr."Collection Expenses Amt."); - end; - end; - - [Scope('OnPrem')] - procedure RejExpensesAmt(PostDateFilter: Code[250]): Decimal - begin - if CarteraSetup.ReadPermission then begin - PostedBillGr.SetCurrentKey("Bank Account No.", "Posting Date"); - PostedBillGr.SetRange("Bank Account No.", "No."); - PostedBillGr.SetFilter("Posting Date", PostDateFilter); - PostedBillGr.CalcSums("Rejection Expenses Amt."); - ClosedBillGr.SetCurrentKey("Bank Account No.", "Posting Date"); - ClosedBillGr.SetRange("Bank Account No.", "No."); - ClosedBillGr.SetFilter("Posting Date", PostDateFilter); - ClosedBillGr.CalcSums("Rejection Expenses Amt."); - exit(PostedBillGr."Rejection Expenses Amt." + ClosedBillGr."Rejection Expenses Amt."); - end; - end; - - [Scope('OnPrem')] - procedure RiskFactFeesTotalAmt(PostDateFilter: Code[250]): Decimal - begin - if CarteraSetup.ReadPermission then begin - PostedBillGr.SetCurrentKey("Bank Account No.", "Posting Date", Factoring); - PostedBillGr.SetRange("Bank Account No.", "No."); - PostedBillGr.SetFilter("Posting Date", PostDateFilter); - PostedBillGr.CalcSums("Risked Factoring Exp. Amt."); - ClosedBillGr.SetCurrentKey("Bank Account No.", "Posting Date", Factoring); - ClosedBillGr.SetRange("Bank Account No.", "No."); - ClosedBillGr.SetFilter("Posting Date", PostDateFilter); - ClosedBillGr.CalcSums("Risked Factoring Exp. Amt."); - exit(PostedBillGr."Risked Factoring Exp. Amt." + ClosedBillGr."Risked Factoring Exp. Amt."); - end; - end; - - [Scope('OnPrem')] - procedure UnriskFactFeesTotalAmt(PostDateFilter: Code[250]): Decimal - begin - if CarteraSetup.ReadPermission then begin - PostedBillGr.SetCurrentKey("Bank Account No.", "Posting Date", Factoring); - PostedBillGr.SetRange("Bank Account No.", "No."); - PostedBillGr.SetFilter("Posting Date", PostDateFilter); - PostedBillGr.CalcSums("Collection Expenses Amt."); - ClosedBillGr.SetCurrentKey("Bank Account No.", "Posting Date", Factoring); - ClosedBillGr.SetRange("Bank Account No.", "No."); - ClosedBillGr.SetFilter("Posting Date", PostDateFilter); - ClosedBillGr.CalcSums("Unrisked Factoring Exp. Amt."); - exit(PostedBillGr."Unrisked Factoring Exp. Amt." + ClosedBillGr."Unrisked Factoring Exp. Amt."); - end; - end; - - [Scope('OnPrem')] - procedure DiscInterestFactTotalAmt(PostDateFilter: Code[250]): Decimal - begin - if CarteraSetup.ReadPermission then begin - PostedBillGr.SetCurrentKey("Bank Account No.", "Posting Date", Factoring); - PostedBillGr.SetRange("Bank Account No.", "No."); - PostedBillGr.SetFilter(Factoring, '<>%1', PostedBillGr.Factoring::" "); - PostedBillGr.SetFilter("Posting Date", PostDateFilter); - PostedBillGr.CalcSums("Discount Interests Amt."); - ClosedBillGr.SetCurrentKey("Bank Account No.", "Posting Date", Factoring); - ClosedBillGr.SetRange("Bank Account No.", "No."); - ClosedBillGr.SetFilter(Factoring, '<>%1', ClosedBillGr.Factoring::" "); - ClosedBillGr.SetFilter("Posting Date", PostDateFilter); - ClosedBillGr.CalcSums("Discount Interests Amt."); - PostedBillGr.SetRange(Factoring); - ClosedBillGr.SetRange(Factoring); - exit(PostedBillGr."Discount Interests Amt." + ClosedBillGr."Discount Interests Amt."); - end; - end; - - [Scope('OnPrem')] - procedure PaymentOrderFeesTotalAmt(PostDateFilter: Code[250]): Decimal - begin - if CarteraSetup.ReadPermission then begin - PostedPmtOrd.SetCurrentKey("Bank Account No.", "Posting Date"); - PostedPmtOrd.SetRange("Bank Account No.", "No."); - PostedPmtOrd.SetFilter("Posting Date", PostDateFilter); - PostedPmtOrd.CalcSums("Payment Order Expenses Amt."); - ClosedPmtOrd.SetCurrentKey("Bank Account No.", "Posting Date"); - ClosedPmtOrd.SetRange("Bank Account No.", "No."); - ClosedPmtOrd.SetFilter("Posting Date", PostDateFilter); - ClosedPmtOrd.CalcSums("Payment Order Expenses Amt."); - exit(PostedPmtOrd."Payment Order Expenses Amt." + ClosedPmtOrd."Payment Order Expenses Amt."); - end; - end; - /// /// Retrieves data exchange definition for bank statement import processing. /// diff --git a/src/Layers/ES/BaseApp/Bank/BankAccount/BankAccountCard.Page.al b/src/Layers/ES/BaseApp/Bank/BankAccount/BankAccountCard.Page.al index 94d629ad999..78540d19dbe 100644 --- a/src/Layers/ES/BaseApp/Bank/BankAccount/BankAccountCard.Page.al +++ b/src/Layers/ES/BaseApp/Bank/BankAccount/BankAccountCard.Page.al @@ -17,13 +17,8 @@ using Microsoft.Finance.Dimension; using Microsoft.Finance.GeneralLedger.Account; using Microsoft.Finance.GeneralLedger.Journal; using Microsoft.Finance.GeneralLedger.Reports; -using Microsoft.Finance.ReceivablesPayables; using Microsoft.Foundation.Address; using Microsoft.Foundation.Comment; -using Microsoft.Purchases.History; -using Microsoft.Purchases.Payables; -using Microsoft.Sales.History; -using Microsoft.Sales.Receivables; using Microsoft.Utilities; using System.Email; using System.Telemetry; @@ -378,31 +373,6 @@ page 370 "Bank Account Card" ToolTip = 'Specifies the code for the global dimension that is linked to the record or entry for analysis purposes. Two global dimensions, typically for the company''s most important activities, are available on all cards, documents, reports, and lists.'; } } - group(Cartera) - { - Caption = 'Cartera'; - field("Delay for Notices"; Rec."Delay for Notices") - { - ApplicationArea = Basic, Suite; - ToolTip = 'Specifies, if applicable, the delay for notice defined for this bank.'; - } - field("Credit Limit for Discount"; Rec."Credit Limit for Discount") - { - ApplicationArea = Basic, Suite; - Importance = Promoted; - ToolTip = 'Specifies the credit limit for the discount of bills available at this particular bank.'; - } - field("Operation Fees Code"; Rec."Operation Fees Code") - { - ApplicationArea = Basic, Suite; - ToolTip = 'Specifies the operations fee code related to this particular bank.'; - } - field("Customer Ratings Code"; Rec."Customer Ratings Code") - { - ApplicationArea = Basic, Suite; - ToolTip = 'Specifies the code for insolvency risk percentages that the bank assigns to its customers.'; - } - } group(Transfer) { Caption = 'Transfer'; @@ -632,103 +602,6 @@ page 370 "Bank Account Card" Rec.DisplayMap(); end; } - separator(Action1100030) - { - } - action("&Operation Fees") - { - ApplicationArea = Basic, Suite; - Caption = '&Operation Fees'; - Image = Costs; - RunObject = Page "Operation Fees"; - RunPageLink = Code = field("Operation Fees Code"), - "Currency Code" = field("Currency Code"); - ToolTip = 'View the various operation fees that banks charge to process the documents that are remitted to them. These operations include collections, discounts, discount interest, rejections, payment orders, unrisked factoring, and risked factoring.'; - } - action("Customer Ratings") - { - ApplicationArea = Basic, Suite; - Caption = 'Customer Ratings'; - Image = CustomerRating; - RunObject = Page "Customer Ratings"; - RunPageLink = Code = field("Customer Ratings Code"), - "Currency Code" = field("Currency Code"); - ToolTip = 'View or edit the risk percentages that are assigned to customers according to their insolvency risk.'; - } - action("Sufi&xes") - { - ApplicationArea = Basic, Suite; - Caption = 'Sufi&xes'; - Image = NumberSetup; - RunObject = Page Suffixes; - RunPageLink = "Bank Acc. Code" = field("No."); - ToolTip = 'View the bank suffixes that area assigned to manage bill groups. Typically, banks assign the company a different suffix for managing bill groups, depending if they are receivable or discount management type operations.'; - } - separator(Action1100034) - { - } - action("Bill &Groups") - { - ApplicationArea = Basic, Suite; - Caption = 'Bill &Groups'; - Image = VoucherGroup; - RunObject = Page "Bill Groups List"; - RunPageLink = "Bank Account No." = field("No."); - RunPageView = sorting("Bank Account No."); - ToolTip = 'View the related bill groups.'; - } - action("&Posted Bill Groups") - { - ApplicationArea = Basic, Suite; - Caption = '&Posted Bill Groups'; - Image = PostedVoucherGroup; - RunObject = Page "Posted Bill Groups List"; - RunPageLink = "Bank Account No." = field("No."); - RunPageView = sorting("Bank Account No."); - ToolTip = 'View the list of posted bill groups. When a bill group has been posted, the related documents are available for settlement, rejection, or recirculation.'; - } - separator(Action1100038) - { - } - action("Payment O&rders") - { - ApplicationArea = Basic, Suite; - Caption = 'Payment O&rders'; - Image = Payment; - RunObject = Page "Payment Orders List"; - RunPageLink = "Bank Account No." = field("No."); - RunPageView = sorting("Bank Account No."); - ToolTip = 'View or edit related payment orders.'; - } - action("Posted P&ayment Orders") - { - ApplicationArea = Basic, Suite; - Caption = 'Posted P&ayment Orders'; - Image = PostedPayment; - RunObject = Page "Posted Payment Orders List"; - RunPageLink = "Bank Account No." = field("No."); - RunPageView = sorting("Bank Account No."); - ToolTip = 'View posted payment orders that represent payables to submit to the bank as a file for electronic payment.'; - } - separator(Action1100041) - { - } - action("Posted Recei&vable Bills") - { - ApplicationArea = Basic, Suite; - Caption = 'Posted Recei&vable Bills'; - Image = PostedReceivableVoucher; - RunObject = Page "Bank Cat. Posted Receiv. Bills"; - ToolTip = 'View the list of posted bill groups pertaining to receivables.'; - } - action("Posted Pa&yable Bills") - { - ApplicationArea = Basic, Suite; - Caption = 'Posted Pa&yable Bills'; - Image = PostedPayableVoucher; - RunObject = Page "Bank Cat. Posted Payable Bills"; - ToolTip = 'View the list of posted bill groups pertaining to payables.'; - } action(PagePositivePayEntries) { ApplicationArea = Suite; @@ -956,22 +829,6 @@ page 370 "Bank Account Card" RunReport(REPORT::"Bank Account - Check Details", Rec."No."); end; } - action("Bank - Summ. Bill Group") - { - ApplicationArea = Basic, Suite; - Caption = 'Bank - Summ. Bill Group'; - Image = "Report"; - RunObject = Report "Bank - Summ. Bill Group"; - ToolTip = 'View a detailed summary for existing bill groups.'; - } - action("Bank - Risk") - { - ApplicationArea = Basic, Suite; - Caption = 'Bank - Risk'; - Image = "Report"; - RunObject = Report "Bank - Risk"; - ToolTip = 'View the risk status for discounting bills with the selected bank.'; - } } area(Promoted) { @@ -1059,12 +916,6 @@ page 370 "Bank Account Card" actionref("Check Details_Promoted"; "Check Details") { } - actionref("Bank - Summ. Bill Group_Promoted"; "Bank - Summ. Bill Group") - { - } - actionref("Bank - Risk_Promoted"; "Bank - Risk") - { - } } } } diff --git a/src/Layers/ES/BaseApp/Bank/BankAccount/BankAccountList.Page.al b/src/Layers/ES/BaseApp/Bank/BankAccount/BankAccountList.Page.al index 441b7c86a2f..feaec9eb669 100644 --- a/src/Layers/ES/BaseApp/Bank/BankAccount/BankAccountList.Page.al +++ b/src/Layers/ES/BaseApp/Bank/BankAccount/BankAccountList.Page.al @@ -11,12 +11,7 @@ using Microsoft.Bank.Reports; using Microsoft.Bank.Statement; using Microsoft.Finance.Dimension; using Microsoft.Finance.GeneralLedger.Reports; -using Microsoft.Finance.ReceivablesPayables; using Microsoft.Foundation.Comment; -using Microsoft.Purchases.History; -using Microsoft.Purchases.Payables; -using Microsoft.Sales.History; -using Microsoft.Sales.Receivables; using System.Diagnostics; using System.Email; @@ -307,103 +302,6 @@ page 371 "Bank Account List" Rec.ShowContact(); end; } - separator(Action1100000) - { - } - action("&Operation Fees") - { - ApplicationArea = Basic, Suite; - Caption = '&Operation Fees'; - Image = Costs; - RunObject = Page "Operation Fees"; - RunPageLink = Code = field("Operation Fees Code"), - "Currency Code" = field("Currency Code"); - ToolTip = 'View the various operation fees that banks charge to process the documents that are remitted to them. These operations include collections, discounts, discount interest, rejections, payment orders, unrisked factoring, and risked factoring.'; - } - action("Customer Ratings") - { - ApplicationArea = Basic, Suite; - Caption = 'Customer Ratings'; - Image = CustomerRating; - RunObject = Page "Customer Ratings"; - RunPageLink = Code = field("Customer Ratings Code"), - "Currency Code" = field("Currency Code"); - ToolTip = 'View or edit the risk percentages that are assigned to customers according to their insolvency risk.'; - } - action("Sufi&xes") - { - ApplicationArea = Basic, Suite; - Caption = 'Sufi&xes'; - Image = NumberSetup; - RunObject = Page Suffixes; - RunPageLink = "Bank Acc. Code" = field("No."); - ToolTip = 'View the bank suffixes that area assigned to manage bill groups. Typically, banks assign the company a different suffix for managing bill groups, depending if they are receivable or discount management type operations.'; - } - separator(Action1100004) - { - } - action("Bill &Groups") - { - ApplicationArea = Basic, Suite; - Caption = 'Bill &Groups'; - Image = VoucherGroup; - RunObject = Page "Bill Groups List"; - RunPageLink = "Bank Account No." = field("No."); - RunPageView = sorting("Bank Account No."); - ToolTip = 'View the related bill groups.'; - } - action("&Posted Bill Groups") - { - ApplicationArea = Basic, Suite; - Caption = '&Posted Bill Groups'; - Image = PostedVoucherGroup; - RunObject = Page "Posted Bill Groups List"; - RunPageLink = "Bank Account No." = field("No."); - RunPageView = sorting("Bank Account No."); - ToolTip = 'View the list of posted bill groups. When a bill group has been posted, the related documents are available for settlement, rejection, or recirculation.'; - } - separator(Action1100007) - { - } - action("Payment O&rders") - { - ApplicationArea = Basic, Suite; - Caption = 'Payment O&rders'; - Image = Payment; - RunObject = Page "Payment Orders List"; - RunPageLink = "Bank Account No." = field("No."); - RunPageView = sorting("Bank Account No."); - ToolTip = 'View or edit related payment orders.'; - } - action("Posted P&ayment Orders") - { - ApplicationArea = Basic, Suite; - Caption = 'Posted P&ayment Orders'; - Image = PostedPayment; - RunObject = Page "Posted Payment Orders List"; - RunPageLink = "Bank Account No." = field("No."); - RunPageView = sorting("Bank Account No."); - ToolTip = 'View posted payment orders that represent payables to submit to the bank as a file for electronic payment.'; - } - separator(Action1100010) - { - } - action("Posted Recei&vable Bills") - { - ApplicationArea = Basic, Suite; - Caption = 'Posted Recei&vable Bills'; - Image = PostedReceivableVoucher; - RunObject = Page "Bank Cat. Posted Receiv. Bills"; - ToolTip = 'View the list of posted bill groups pertaining to receivables.'; - } - action("Posted Pa&yable Bills") - { - ApplicationArea = Basic, Suite; - Caption = 'Posted Pa&yable Bills'; - Image = PostedPayableVoucher; - RunObject = Page "Bank Cat. Posted Payable Bills"; - ToolTip = 'View the list of posted bill groups pertaining to payables.'; - } action(CreateNewLinkedBankAccount) { ApplicationArea = Basic, Suite; @@ -612,26 +510,6 @@ page 371 "Bank Account List" ObsoleteTag = '28.0'; } #endif - action("Bank - Summ. Bill Group") - { - ApplicationArea = Basic, Suite; - Caption = 'Bank - Summ. Bill Group'; - Image = "Report"; - //The property 'PromotedCategory' can only be set if the property 'Promoted' is set to 'true' - //PromotedCategory = "Report"; - RunObject = Report "Bank - Summ. Bill Group"; - ToolTip = 'View a detailed summary for existing bill groups.'; - } - action("Bank - Risk") - { - ApplicationArea = Basic, Suite; - Caption = 'Bank - Risk'; - Image = "Report"; - //The property 'PromotedCategory' can only be set if the property 'Promoted' is set to 'true' - //PromotedCategory = "Report"; - RunObject = Report "Bank - Risk"; - ToolTip = 'View the risk status for discounting bills with the selected bank.'; - } action("Bank Account Statements") { ApplicationArea = Suite; diff --git a/src/Layers/ES/BaseApp/Bank/BankAccount/BankAccountPostingGroup.Table.al b/src/Layers/ES/BaseApp/Bank/BankAccount/BankAccountPostingGroup.Table.al index b7c566ba84f..14467fc3098 100644 --- a/src/Layers/ES/BaseApp/Bank/BankAccount/BankAccountPostingGroup.Table.al +++ b/src/Layers/ES/BaseApp/Bank/BankAccount/BankAccountPostingGroup.Table.al @@ -46,31 +46,6 @@ table 277 "Bank Account Posting Group" CheckGLAcc("G/L Account No."); end; } - field(7000000; "Liabs. for Disc. Bills Acc."; Code[20]) - { - Caption = 'Liabs. for Disc. Bills Acc.'; - TableRelation = "G/L Account"; - } - field(7000001; "Bank Services Acc."; Code[20]) - { - Caption = 'Bank Services Acc.'; - TableRelation = "G/L Account"; - } - field(7000002; "Discount Interest Acc."; Code[20]) - { - Caption = 'Discount Interest Acc.'; - TableRelation = "G/L Account"; - } - field(7000003; "Rejection Expenses Acc."; Code[20]) - { - Caption = 'Rejection Expenses Acc.'; - TableRelation = "G/L Account"; - } - field(7000004; "Liabs. for Factoring Acc."; Code[20]) - { - Caption = 'Liabs. for Factoring Acc.'; - TableRelation = "G/L Account"; - } } keys diff --git a/src/Layers/ES/BaseApp/Bank/BankAccount/BankAccountPostingGroups.Page.al b/src/Layers/ES/BaseApp/Bank/BankAccount/BankAccountPostingGroups.Page.al index 5ed7f1288aa..fc8fd24d878 100644 --- a/src/Layers/ES/BaseApp/Bank/BankAccount/BankAccountPostingGroups.Page.al +++ b/src/Layers/ES/BaseApp/Bank/BankAccount/BankAccountPostingGroups.Page.al @@ -35,31 +35,6 @@ page 373 "Bank Account Posting Groups" { ApplicationArea = Basic, Suite; } - field("Liabs. for Disc. Bills Acc."; Rec."Liabs. for Disc. Bills Acc.") - { - ApplicationArea = Basic, Suite; - ToolTip = 'Specifies the general ledger account that will reflect the debt due to the discounting of bills for this bank general ledger group.'; - } - field("Bank Services Acc."; Rec."Bank Services Acc.") - { - ApplicationArea = Basic, Suite; - ToolTip = 'Specifies the general ledger account that will reflect the banking expenses for document discount management services for this group.'; - } - field("Discount Interest Acc."; Rec."Discount Interest Acc.") - { - ApplicationArea = Basic, Suite; - ToolTip = 'Specifies the general ledger account that will reflect the interest charged for discounting of bills/invoices, for this group.'; - } - field("Rejection Expenses Acc."; Rec."Rejection Expenses Acc.") - { - ApplicationArea = Basic, Suite; - ToolTip = 'Specifies the general ledger account that will reflect the costs derived from the rejection of documents for this group.'; - } - field("Liabs. for Factoring Acc."; Rec."Liabs. for Factoring Acc.") - { - ApplicationArea = Basic, Suite; - ToolTip = 'Specifies the general ledger account that will reflect the debt due to the discounting of invoices for this group.'; - } } } area(factboxes) diff --git a/src/Layers/ES/BaseApp/Bank/BankAccount/BankAccountStatistics.Page.al b/src/Layers/ES/BaseApp/Bank/BankAccount/BankAccountStatistics.Page.al index bff80643990..aa37bebc08c 100644 --- a/src/Layers/ES/BaseApp/Bank/BankAccount/BankAccountStatistics.Page.al +++ b/src/Layers/ES/BaseApp/Bank/BankAccount/BankAccountStatistics.Page.al @@ -168,682 +168,9 @@ page 375 "Bank Account Statistics" } } } - group("Receivable Bills") - { - Caption = 'Receivable Bills'; - fixed(Control1903836701) - { - ShowCaption = false; - group(Control1900249401) - { - Caption = 'This Period'; - field("Posted Receiv. Bills Amt."; Rec."Posted Receiv. Bills Amt.") - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - ToolTip = 'Specifies the amount of the bills, included in the bill groups, posted and delivered to this bank.'; - } - field("Closed Receiv. Bills Amt."; Rec."Closed Receiv. Bills Amt.") - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - ToolTip = 'Specifies the amount of the closed bills delivered to this bank.'; - } - field("TotalHonoredDocs[1]"; TotalHonoredDocs[1]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - Caption = 'Total Honored Bills Amt.'; - ToolTip = 'Specifies the amount on honored bills. '; - } - field("TotalRejectedDocs[1]"; TotalRejectedDocs[1]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - Caption = 'Total Rejected Bills Amt.'; - ToolTip = 'Specifies the amount on rejected bills.'; - } - field("DocDiscIntAmt[1]"; DocDiscIntAmt[1]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - Caption = 'Discount Interests Amt.'; - ToolTip = 'Specifies the amount that relates to interest charged in connection with discount payments.'; - } - field("DocDiscExpAmt[1]"; DocDiscExpAmt[1]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - Caption = 'Discount Expenses Amt.'; - ToolTip = 'Specifies the amount that relates to commission and charges in connection with discount payments.'; - } - field("DocCollExpAmt[1]"; DocCollExpAmt[1]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - Caption = 'Collection Expenses Amt.'; - ToolTip = 'Specifies the amount that relates to commission and charges in connection with collection payments.'; - } - field("DocRejExpAmt[1]"; DocRejExpAmt[1]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - Caption = 'Rejection Expenses Amt.'; - ToolTip = 'Specifies the amount that relates to commission and charges in connection with rejections.'; - } - } - group(Control1902148501) - { - Caption = 'This Year'; - field(Control1100031; PlaceholderLbl) - { - ApplicationArea = Advanced; - Visible = false; - } - field(Control1100032; PlaceholderLbl) - { - ApplicationArea = Advanced; - Visible = false; - } - field("TotalHonoredDocs[2]"; TotalHonoredDocs[2]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - } - field("TotalRejectedDocs[2]"; TotalRejectedDocs[2]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - } - field("DocDiscIntAmt[2]"; DocDiscIntAmt[2]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - } - field("DocDiscExpAmt[2]"; DocDiscExpAmt[2]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - } - field("DocCollExpAmt[2]"; DocCollExpAmt[2]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - } - field("DocRejExpAmt[2]"; DocRejExpAmt[2]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - } - } - group(Control1906484001) - { - Caption = 'Last Year'; - field(Control1100033; PlaceholderLbl) - { - ApplicationArea = Advanced; - Visible = false; - } - field(Control1100034; PlaceholderLbl) - { - ApplicationArea = Advanced; - Visible = false; - } - field("TotalHonoredDocs[3]"; TotalHonoredDocs[3]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - } - field("TotalRejectedDocs[3]"; TotalRejectedDocs[3]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - } - field("DocDiscIntAmt[3]"; DocDiscIntAmt[3]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - } - field("DocDiscExpAmt[3]"; DocDiscExpAmt[3]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - } - field("DocCollExpAmt[3]"; DocCollExpAmt[3]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - } - field("DocRejExpAmt[3]"; DocRejExpAmt[3]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - } - } - group(Control1906936701) - { - Caption = 'To Date'; - field(Control1100035; PlaceholderLbl) - { - ApplicationArea = Advanced; - Visible = false; - } - field(Control1100036; PlaceholderLbl) - { - ApplicationArea = Advanced; - Visible = false; - } - field("TotalHonoredDocs[4]"; TotalHonoredDocs[4]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - } - field("TotalRejectedDocs[4]"; TotalRejectedDocs[4]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - } - field("DocDiscIntAmt[4]"; DocDiscIntAmt[4]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - } - field("DocDiscExpAmt[4]"; DocDiscExpAmt[4]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - } - field("DocCollExpAmt[4]"; DocCollExpAmt[4]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - } - field("DocRejExpAmt[4]"; DocRejExpAmt[4]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - } - } - } - } - group(Factoring) - { - Caption = 'Factoring'; - fixed(Control1903442601) - { - ShowCaption = false; - group(Control1905716001) - { - Caption = 'This Period'; - field(Control66; BankAccDateName[1]) - { - ApplicationArea = Basic, Suite; - } - field("TotalHonoredInvoices[1]"; TotalHonoredInvoices[1]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - Caption = 'Total Honored Inv. Amt.'; - ToolTip = 'Specifies the amount on honored invoices. '; - } - field("TotalRejectedInvoices[1]"; TotalRejectedInvoices[1]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - Caption = 'Total Rejected Inv. Amt.'; - ToolTip = 'Specifies the amount on rejected invoices.'; - } - field("FactDiscIntAmt[1]"; FactDiscIntAmt[1]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - Caption = 'Discount Interests Amt.'; - ToolTip = 'Specifies the amount that relates to interest charged in connection with discount payments.'; - } - field("RiskFactExpAmt[1]"; RiskFactExpAmt[1]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - Caption = 'Risked Factoring Exp. Amt.'; - ToolTip = 'Specifies the amount that relates to commission and charges in connection risked factoring.'; - } - field("UnriskFactExpAmt[1]"; UnriskFactExpAmt[1]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - Caption = 'Unrisked Factoring Exp. Amt.'; - ToolTip = 'Specifies the amount that relates to commission and charges in connection unrisked factoring.'; - } - field("Post. Receivable Inv. Amt."; Rec."Post. Receivable Inv. Amt.") - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - ToolTip = 'Specifies the amount of the invoices included in bill groups, posted and delivered to this bank.'; - } - field("Clos. Receivable Inv. Amt."; Rec."Clos. Receivable Inv. Amt.") - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - ToolTip = 'Specifies the amount of the closed invoices delivered to this bank.'; - } - } - group(Control1905520001) - { - Caption = 'This Year'; - field(Control1100048; PlaceholderLbl) - { - ApplicationArea = Advanced; - Visible = false; - } - field("TotalHonoredInvoices[2]"; TotalHonoredInvoices[2]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - } - field("TotalRejectedInvoices[2]"; TotalRejectedInvoices[2]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - } - field("FactDiscIntAmt[2]"; FactDiscIntAmt[2]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - } - field("RiskFactExpAmt[2]"; RiskFactExpAmt[2]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - } - field("UnriskFactExpAmt[2]"; UnriskFactExpAmt[2]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - } - field(Control1100038; PlaceholderLbl) - { - ApplicationArea = Advanced; - Visible = false; - } - field(Control1100039; PlaceholderLbl) - { - ApplicationArea = Advanced; - Visible = false; - } - } - group(Control1903594901) - { - Caption = 'Last Year'; - field(Control1100049; PlaceholderLbl) - { - ApplicationArea = Advanced; - Visible = false; - } - field("TotalHonoredInvoices[3]"; TotalHonoredInvoices[3]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - } - field("TotalRejectedInvoices[3]"; TotalRejectedInvoices[3]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - } - field("FactDiscIntAmt[3]"; FactDiscIntAmt[3]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - } - field("RiskFactExpAmt[3]"; RiskFactExpAmt[3]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - } - field("UnriskFactExpAmt[3]"; UnriskFactExpAmt[3]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - } - field(Control1100044; PlaceholderLbl) - { - ApplicationArea = Advanced; - Visible = false; - } - field(Control1100045; PlaceholderLbl) - { - ApplicationArea = Advanced; - Visible = false; - } - } - group(Control1907930401) - { - Caption = 'To Date'; - field(Control1100050; PlaceholderLbl) - { - ApplicationArea = Advanced; - Visible = false; - } - field("TotalHonoredInvoices[4]"; TotalHonoredInvoices[4]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - } - field("TotalRejectedInvoices[4]"; TotalRejectedInvoices[4]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - } - field("FactDiscIntAmt[4]"; FactDiscIntAmt[4]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - } - field("RiskFactExpAmt[4]"; RiskFactExpAmt[4]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - } - field("UnriskFactExpAmt[4]"; UnriskFactExpAmt[4]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - } - field(Control1100046; PlaceholderLbl) - { - ApplicationArea = Advanced; - Visible = false; - } - field(Control1100047; PlaceholderLbl) - { - ApplicationArea = Advanced; - Visible = false; - } - } - } - } - group("Payable Documents") - { - Caption = 'Payable Documents'; - fixed(Control1907778101) - { - ShowCaption = false; - group(Control1906168701) - { - Caption = 'This Period'; - field(Control91; BankAccDateName[1]) - { - ApplicationArea = Basic, Suite; - } - field("TotalHonoredPayableDoc[1]"; TotalHonoredPayableDoc[1]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - Caption = 'Total Honored Amt.'; - ToolTip = 'Specifies the amount on all honored documents. '; - } - field("PmtOrdExpAmt[1]"; PmtOrdExpAmt[1]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - Caption = 'Payment Order Expenses Amt.'; - ToolTip = 'Specifies the amount that relates to commission and charges in connection with payment orders.'; - } - field("Posted Pay. Documents Amt."; Rec."Posted Pay. Documents Amt.") - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - Caption = 'Posted Documents'; - ToolTip = 'Specifies the value of the pending amount, for payable documents posted to this bank.'; - } - field("Closed Pay. Documents Amt."; Rec."Closed Pay. Documents Amt.") - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - Caption = 'Closed Documents'; - ToolTip = 'Specifies the amount of the closed payable documents delivered to this bank.'; - } - } - group(Control1907591201) - { - Caption = 'This Year'; - field(Control1100053; PlaceholderLbl) - { - ApplicationArea = Advanced; - Visible = false; - } - field("TotalHonoredPayableDoc[2]"; TotalHonoredPayableDoc[2]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - } - field("PmtOrdExpAmt[2]"; PmtOrdExpAmt[2]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - } - field(Control1100056; PlaceholderLbl) - { - ApplicationArea = Advanced; - Visible = false; - } - field(Control1100059; PlaceholderLbl) - { - ApplicationArea = Advanced; - Visible = false; - } - } - group(Control1904043901) - { - Caption = 'Last Year'; - field(Control1100054; PlaceholderLbl) - { - ApplicationArea = Advanced; - Visible = false; - } - field("TotalHonoredPayableDoc[3]"; TotalHonoredPayableDoc[3]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - } - field("PmtOrdExpAmt[3]"; PmtOrdExpAmt[3]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - } - field(Control1100057; PlaceholderLbl) - { - ApplicationArea = Advanced; - Visible = false; - } - field(Control1100060; PlaceholderLbl) - { - ApplicationArea = Advanced; - Visible = false; - } - } - group(Control1907649801) - { - Caption = 'To Date'; - field(Control1100055; PlaceholderLbl) - { - ApplicationArea = Advanced; - Visible = false; - } - field("TotalHonoredPayableDoc[4]"; TotalHonoredPayableDoc[4]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - } - field("PmtOrdExpAmt[4]"; PmtOrdExpAmt[4]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - } - field(Control1100058; PlaceholderLbl) - { - ApplicationArea = Advanced; - Visible = false; - } - field(Control1100061; PlaceholderLbl) - { - ApplicationArea = Advanced; - Visible = false; - } - } - } - } - group("Bill Groups") - { - Caption = 'Bill Groups'; - field(Control1100062; PlaceholderLbl) - { - ApplicationArea = Advanced; - Visible = false; - } - field(Control1100063; PlaceholderLbl) - { - ApplicationArea = Advanced; - Visible = false; - } - fixed(Control1903384001) - { - ShowCaption = false; - group(Control1905829501) - { - ShowCaption = false; - field("Last Bill Gr. No."; Rec."Last Bill Gr. No.") - { - ApplicationArea = Basic, Suite; - ToolTip = 'Specifies the number of the last posted bill group sent to this bank.'; - } - field("Date of Last Post. Bill Gr."; Rec."Date of Last Post. Bill Gr.") - { - ApplicationArea = Basic, Suite; - ToolTip = 'Specifies the posting date of the last bill group sent to this bank.'; - } - field("Credit Limit for Discount"; Rec."Credit Limit for Discount") - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - ToolTip = 'Specifies the credit limit for the discount of bills available at this particular bank.'; - } - field(DocsForDiscRmgAmt; DocsForDiscRmgAmt) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - Caption = 'Bills for Disc. Remg. Amt.'; - ToolTip = 'Specifies remaining amounts on bills for discount.'; - } - field(DocsForCollRmgAmt; DocsForCollRmgAmt) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - Caption = 'Bills for Coll. Remg. Amt.'; - ToolTip = 'Specifies remaining amounts on bills for collection.'; - } - } - group(Control1905435401) - { - ShowCaption = false; - field(Control1100064; PlaceholderLbl) - { - ApplicationArea = Advanced; - Visible = false; - } - field(Control1100065; PlaceholderLbl) - { - ApplicationArea = Advanced; - Visible = false; - } - field(Control1100066; PlaceholderLbl) - { - ApplicationArea = Advanced; - Visible = false; - } - field(RiskPerc; RiskPerc) - { - AutoFormatType = 0; - ApplicationArea = Basic, Suite; - ExtendedDatatype = Ratio; - MaxValue = 100; - MinValue = 0; - } - field(Control1100067; PlaceholderLbl) - { - ApplicationArea = Advanced; - Visible = false; - } - } - } - } } } - actions - { - } - trigger OnAfterGetRecord() begin BankAcc.Copy(Rec); @@ -859,23 +186,6 @@ page 375 "Bank Account Statistics" BankAcc.CalcFields(Balance, "Balance (LCY)"); BankAcc.SetRange("Date Filter"); - BankAcc.SetRange("Dealing Type Filter", 1); - // Discount - BankAcc.CalcFields("Posted Receiv. Bills Rmg. Amt."); - DocsForDiscRmgAmt := BankAcc."Posted Receiv. Bills Rmg. Amt."; - if BankAcc."Credit Limit for Discount" = 0 then - if DocsForDiscRmgAmt = 0 then - RiskPerc := 0 - else - RiskPerc := 100 - else - RiskPerc := DocsForDiscRmgAmt / BankAcc."Credit Limit for Discount" * 100; - - BankAcc.SetRange("Dealing Type Filter", 0); - // Collection - BankAcc.CalcFields("Posted Receiv. Bills Rmg. Amt.", "Posted Pay. Bills Rmg. Amt.", "Posted Pay. Inv. Rmg. Amt."); - DocsForCollRmgAmt := BankAcc."Posted Receiv. Bills Rmg. Amt."; - PayableDocsRmgAmt := BankAcc."Posted Pay. Bills Rmg. Amt." + BankAcc."Posted Pay. Inv. Rmg. Amt."; for i := 1 to 4 do begin BankAcc.SetFilter("Date Filter", BankAccDateFilter[i]); BankAcc.CalcFields("Net Change", "Net Change (LCY)"); @@ -883,47 +193,6 @@ page 375 "Bank Account Statistics" BankAccNetChangeLCY[i] := BankAcc."Net Change (LCY)"; end; BankAcc.SetRange("Date Filter", 0D, CurrentDate); - - for i := 1 to 4 do begin - BankAcc.SetFilter("Honored/Rejtd. at Date Filter", BankAccDateFilter[i]); - BankAcc.SetRange("Status Filter", BankAcc."Status Filter"::Honored); - BankAcc.CalcFields("Closed Receiv. Bills Amt."); - BankAcc.CalcFields("Posted Receiv. Bills Amt."); - BankAcc.CalcFields("Clos. Receivable Inv. Amt."); - BankAcc.CalcFields("Post. Receivable Inv. Amt."); - BankAcc.CalcFields("Closed Pay. Bills Amt."); - BankAcc.CalcFields("Posted Pay. Bills Amt."); - BankAcc.CalcFields("Closed Pay. Invoices Amt."); - BankAcc.CalcFields("Posted Pay. Invoices Amt."); - TotalHonoredDocs[i] := BankAcc."Closed Receiv. Bills Amt." + BankAcc."Posted Receiv. Bills Amt."; - TotalHonoredInvoices[i] := BankAcc."Clos. Receivable Inv. Amt." + BankAcc."Post. Receivable Inv. Amt."; - TotalHonoredPayableDoc[i] := BankAcc."Closed Pay. Bills Amt." + BankAcc."Closed Pay. Invoices Amt." + - BankAcc."Posted Pay. Bills Amt." + BankAcc."Posted Pay. Invoices Amt."; - BankAcc.SetRange("Status Filter", BankAcc."Status Filter"::Rejected); - BankAcc.CalcFields("Closed Receiv. Bills Amt."); - BankAcc.CalcFields("Posted Receiv. Bills Amt."); - BankAcc.CalcFields("Clos. Receivable Inv. Amt."); - BankAcc.CalcFields("Post. Receivable Inv. Amt."); - BankAcc.CalcFields("Closed Pay. Bills Amt."); - BankAcc.CalcFields("Posted Pay. Bills Amt."); - BankAcc.CalcFields("Closed Pay. Invoices Amt."); - BankAcc.CalcFields("Posted Pay. Invoices Amt."); - TotalRejectedInvoices[i] := BankAcc."Clos. Receivable Inv. Amt." + BankAcc."Post. Receivable Inv. Amt."; - TotalRejectedDocs[i] := BankAcc."Closed Receiv. Bills Amt." + BankAcc."Posted Receiv. Bills Amt."; - TotalRejectedPayableDoc[i] := BankAcc."Closed Pay. Bills Amt." + BankAcc."Closed Pay. Invoices Amt." + - BankAcc."Posted Pay. Bills Amt." + BankAcc."Posted Pay. Invoices Amt."; - end; - - for i := 1 to 4 do begin - DocCollExpAmt[i] := BankAcc.CollectionFeesTotalAmt(BankAccDateFilter[i]); - DocDiscExpAmt[i] := BankAcc.ServicesFeesTotalAmt(BankAccDateFilter[i]); - DocDiscIntAmt[i] := BankAcc.DiscInterestsTotalAmt(BankAccDateFilter[i]); - DocRejExpAmt[i] := BankAcc.RejExpensesAmt(BankAccDateFilter[i]); - FactDiscIntAmt[i] := BankAcc.DiscInterestFactTotalAmt(BankAccDateFilter[i]); - RiskFactExpAmt[i] := BankAcc.RiskFactFeesTotalAmt(BankAccDateFilter[i]); - UnriskFactExpAmt[i] := BankAcc.UnriskFactFeesTotalAmt(BankAccDateFilter[i]); - PmtOrdExpAmt[i] := BankAcc.PaymentOrderFeesTotalAmt(BankAccDateFilter[i]); - end; end; var @@ -936,23 +205,5 @@ page 375 "Bank Account Statistics" BankAccNetChangeLCY: array[4] of Decimal; i: Integer; PlaceholderLbl: Label 'Placeholder'; - DocsForDiscRmgAmt: Decimal; - DocsForCollRmgAmt: Decimal; - PayableDocsRmgAmt: Decimal; - DocCollExpAmt: array[4] of Decimal; - DocDiscIntAmt: array[4] of Decimal; - DocDiscExpAmt: array[4] of Decimal; - DocRejExpAmt: array[4] of Decimal; - TotalHonoredDocs: array[4] of Decimal; - TotalRejectedDocs: array[4] of Decimal; - RiskPerc: Decimal; - TotalHonoredInvoices: array[4] of Decimal; - TotalRejectedInvoices: array[4] of Decimal; - FactDiscIntAmt: array[4] of Decimal; - RiskFactExpAmt: array[4] of Decimal; - UnriskFactExpAmt: array[4] of Decimal; - TotalHonoredPayableDoc: array[4] of Decimal; - TotalRejectedPayableDoc: array[4] of Decimal; - PmtOrdExpAmt: array[4] of Decimal; } diff --git a/src/Layers/ES/BaseApp/Bank/BankAccount/PaymentMethod.Table.al b/src/Layers/ES/BaseApp/Bank/BankAccount/PaymentMethod.Table.al index 8ff49f02ecc..3ae7af5009e 100644 --- a/src/Layers/ES/BaseApp/Bank/BankAccount/PaymentMethod.Table.al +++ b/src/Layers/ES/BaseApp/Bank/BankAccount/PaymentMethod.Table.al @@ -7,7 +7,6 @@ namespace Microsoft.Bank.BankAccount; using Microsoft.Bank.Payment; using Microsoft.Finance.GeneralLedger.Account; using Microsoft.Foundation.PaymentTerms; -using Microsoft.Sales.Receivables; using System.Globalization; using System.IO; @@ -147,40 +146,6 @@ table 289 "Payment Method" Caption = 'Last Modified Date Time'; Editable = false; } - field(7000000; "Create Bills"; Boolean) - { - Caption = 'Create Bills'; - - trigger OnValidate() - begin - if "Invoices to Cartera" and "Create Bills" then - Error(Text1100000, FieldCaption("Invoices to Cartera")); - end; - } - field(7000001; "Collection Agent"; Option) - { - Caption = 'Collection Agent'; - OptionCaption = 'Direct,Bank'; - OptionMembers = Direct,Bank; - } - field(7000002; "Submit for Acceptance"; Boolean) - { - Caption = 'Submit for Acceptance'; - } - field(7000003; "Bill Type"; Enum "ES Bill Type") - { - Caption = 'Bill Type'; - } - field(7000004; "Invoices to Cartera"; Boolean) - { - Caption = 'Invoices to Cartera'; - - trigger OnValidate() - begin - if "Create Bills" and "Invoices to Cartera" then - Error(Text1100000, FieldCaption("Create Bills")); - end; - } } keys @@ -224,9 +189,6 @@ table 289 "Payment Method" "Last Modified Date Time" := CurrentDateTime; end; - var - Text1100000: Label '%1 must be set equal to False'; - local procedure CheckGLAcc(AccNo: Code[20]) var GLAcc: Record "G/L Account"; diff --git a/src/Layers/ES/BaseApp/Bank/BankAccount/PaymentMethods.Page.al b/src/Layers/ES/BaseApp/Bank/BankAccount/PaymentMethods.Page.al index 3ffc18cd2d3..6e04e7da864 100644 --- a/src/Layers/ES/BaseApp/Bank/BankAccount/PaymentMethods.Page.al +++ b/src/Layers/ES/BaseApp/Bank/BankAccount/PaymentMethods.Page.al @@ -45,31 +45,6 @@ page 427 "Payment Methods" { ApplicationArea = Basic, Suite; } - field("Invoices to Cartera"; Rec."Invoices to Cartera") - { - ApplicationArea = Basic, Suite; - ToolTip = 'Specifies a check mark in this field to send the invoices to Portfolio for this specific payment method.'; - } - field("Create Bills"; Rec."Create Bills") - { - ApplicationArea = Basic, Suite; - ToolTip = 'Specifies a check mark so that this payment method creates bills.'; - } - field("Bill Type"; Rec."Bill Type") - { - ApplicationArea = Basic, Suite; - ToolTip = 'Specifies the type of document that originated from this specific payment method.'; - } - field("Collection Agent"; Rec."Collection Agent") - { - ApplicationArea = Basic, Suite; - ToolTip = 'Specifies the collection agent to which you will deliver the document that originated from this specific payment method.'; - } - field("Submit for Acceptance"; Rec."Submit for Acceptance") - { - ApplicationArea = Basic, Suite; - ToolTip = 'Specifies a check mark in this field if the bill must be sent to the customer for acceptance first.'; - } field("Direct Debit"; Rec."Direct Debit") { ApplicationArea = Suite; diff --git a/src/Layers/ES/BaseApp/Bank/Ledger/BankAccountLedgerEntries.Page.al b/src/Layers/ES/BaseApp/Bank/Ledger/BankAccountLedgerEntries.Page.al index 0438d4b18bc..4e2ff19a80e 100644 --- a/src/Layers/ES/BaseApp/Bank/Ledger/BankAccountLedgerEntries.Page.al +++ b/src/Layers/ES/BaseApp/Bank/Ledger/BankAccountLedgerEntries.Page.al @@ -57,12 +57,6 @@ page 372 "Bank Account Ledger Entries" ApplicationArea = Basic, Suite; Editable = false; } - field("Bill No."; Rec."Bill No.") - { - ApplicationArea = Basic, Suite; - Editable = false; - ToolTip = 'Specifies the number of the bill related to this bank ledger entry.'; - } field("Bank Account No."; Rec."Bank Account No.") { ApplicationArea = Basic, Suite; diff --git a/src/Layers/ES/BaseApp/Bank/Ledger/BankAccountLedgerEntry.Table.al b/src/Layers/ES/BaseApp/Bank/Ledger/BankAccountLedgerEntry.Table.al index 7e56dc85c0a..09f4bcd672b 100644 --- a/src/Layers/ES/BaseApp/Bank/Ledger/BankAccountLedgerEntry.Table.al +++ b/src/Layers/ES/BaseApp/Bank/Ledger/BankAccountLedgerEntry.Table.al @@ -491,10 +491,6 @@ table 271 "Bank Account Ledger Entry" CalcFormula = lookup("Dimension Set Entry"."Dimension Value Code" where("Dimension Set ID" = field("Dimension Set ID"), "Global Dimension No." = const(8))); } - field(7000000; "Bill No."; Code[20]) - { - Caption = 'Bill No.'; - } } keys diff --git a/src/Layers/ES/BaseApp/Finance/Dimension/ChangeGlobalDimensions.Codeunit.al b/src/Layers/ES/BaseApp/Finance/Dimension/ChangeGlobalDimensions.Codeunit.al index 51adceb3768..35c8c064a9e 100644 --- a/src/Layers/ES/BaseApp/Finance/Dimension/ChangeGlobalDimensions.Codeunit.al +++ b/src/Layers/ES/BaseApp/Finance/Dimension/ChangeGlobalDimensions.Codeunit.al @@ -8,7 +8,6 @@ using Microsoft.Assembly.History; using Microsoft.Bank.Ledger; using Microsoft.Finance.GeneralLedger.Ledger; using Microsoft.Finance.GeneralLedger.Setup; -using Microsoft.Finance.ReceivablesPayables; using Microsoft.Finance.VAT.Ledger; using Microsoft.FixedAssets.Insurance; using Microsoft.FixedAssets.Ledger; @@ -111,10 +110,7 @@ codeunit 483 "Change Global Dimensions" TableData "Return Shipment Line" = rm, TableData "Return Receipt Header" = rm, TableData "Return Receipt Line" = rm, - TableData "Warehouse Entry" = rm, - TableData "Cartera Doc." = rm, - TableData "Posted Cartera Doc." = rm, - TableData "Closed Cartera Doc." = rm; + TableData "Warehouse Entry" = rm; TableNo = "Change Global Dim. Log Entry"; trigger OnRun() diff --git a/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/CashReceiptJournal.Page.al b/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/CashReceiptJournal.Page.al index 79f1d691536..ff03ba2ab1a 100644 --- a/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/CashReceiptJournal.Page.al +++ b/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/CashReceiptJournal.Page.al @@ -108,12 +108,6 @@ page 255 "Cash Receipt Journal" ApplicationArea = Basic, Suite; ShowMandatory = true; } - field("Bill No."; Rec."Bill No.") - { - ApplicationArea = Basic, Suite; - ToolTip = 'Specifies a number for this bill generated from the journal.'; - Visible = false; - } field("Incoming Document Entry No."; Rec."Incoming Document Entry No.") { ApplicationArea = Basic, Suite; @@ -326,11 +320,6 @@ page 255 "Cash Receipt Journal" { ApplicationArea = Basic, Suite; } - field("Applies-to Bill No."; Rec."Applies-to Bill No.") - { - ApplicationArea = Basic, Suite; - ToolTip = 'Specifies the number of the bill to be settled.'; - } field("Applies-to ID"; Rec."Applies-to ID") { ApplicationArea = Basic, Suite; diff --git a/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al b/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al index 60a05af674f..5a0d81b64c5 100644 --- a/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al +++ b/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al @@ -12,7 +12,6 @@ using Microsoft.Finance.Deferral; using Microsoft.Finance.Dimension; using Microsoft.Finance.GeneralLedger.Account; using Microsoft.Finance.GeneralLedger.Setup; -using Microsoft.Finance.ReceivablesPayables; using Microsoft.Finance.VAT.Calculation; using Microsoft.Finance.VAT.Setup; using Microsoft.FixedAssets.Journal; @@ -57,12 +56,10 @@ codeunit 11 "Gen. Jnl.-Check Line" GenJnlBatch: Record "Gen. Journal Batch"; CostAccSetup: Record "Cost Accounting Setup"; TempErrorMessage: Record "Error Message" temporary; - CarteraSetup: Record "Cartera Setup"; DimMgt: Codeunit DimensionManagement; CostAccMgt: Codeunit "Cost Account Mgt"; ApplicationAreaMgmt: Codeunit System.Environment.Configuration."Application Area Mgmt."; ErrorMessageMgt: Codeunit "Error Message Management"; - DocPost: Codeunit "Document-Post"; SkipFiscalYearCheck: Boolean; GenJnlTemplateFound: Boolean; OverrideDimErr: Boolean; @@ -112,7 +109,6 @@ codeunit 11 "Gen. Jnl.-Check Line" /// procedure RunCheck(var GenJnlLine: Record "Gen. Journal Line") var - PaymentTerms: Record "Payment Terms"; ICGLAcount: Record "IC G/L Account"; ICBankAccount: Record "IC Bank Account"; ErrorMessageHandler: Codeunit "Error Message Handler"; @@ -142,15 +138,6 @@ codeunit 11 "Gen. Jnl.-Check Line" GenJnlLine.ValidateSalesPersonPurchaserCode(GenJnlLine); TestDocumentNo(GenJnlLine); - if (GenJnlLine."Document Type" = GenJnlLine."Document Type"::Invoice) and (GenJnlLine."Document Date" <> 0D) and (GenJnlLine."Payment Terms Code" <> '') then - if PaymentTerms.Get(GenJnlLine."Payment Terms Code") then - PaymentTerms.VerifyMaxNoDaysTillDueDate(GenJnlLine."Due Date", GenJnlLine."Document Date", GenJnlLine.FieldCaption("Due Date")); - - if ((GenJnlLine."Document Type" in [GenJnlLine."Document Type"::Bill, GenJnlLine."Document Type"::Invoice, GenJnlLine."Document Type"::"Credit Memo"]) or - (GenJnlLine."Applies-to Doc. Type" in [GenJnlLine."Applies-to Doc. Type"::Bill, GenJnlLine."Applies-to Doc. Type"::Invoice])) and - CarteraSetup.ReadPermission - then - DocPost.CheckGenJnlLine(GenJnlLine); TestAccountAndBalAccountType(GenJnlLine); @@ -251,6 +238,8 @@ codeunit 11 "Gen. Jnl.-Check Line" exit; GenJournalLine.TestField("Document No.", ErrorInfo.Create()); + + OnAfterTestDocumentNo(GenJournalLine); end; local procedure TestAccountAndBalAccountType(var GenJnlLine: Record "Gen. Journal Line") @@ -1539,6 +1528,15 @@ codeunit 11 "Gen. Jnl.-Check Line" begin end; + /// + /// Integration event raised after validating document number field requirements for journal lines. + /// + /// Journal line record being validated for document number requirements. + [IntegrationEvent(false, false)] + local procedure OnAfterTestDocumentNo(GenJournalLine: Record "Gen. Journal Line") + begin + end; + /// /// Integration event raised before validating document number field requirements for journal lines. /// Enables custom logic to completely override standard document number validation processing. diff --git a/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/GenJournalLine.Table.al b/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/GenJournalLine.Table.al index c7801ce282c..9c9a950b992 100644 --- a/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/GenJournalLine.Table.al +++ b/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/GenJournalLine.Table.al @@ -1234,7 +1234,6 @@ table 81 "Gen. Journal Line" OnValidatePaymentTermsCodeOnBeforeCalculateDueDate(Rec, PaymentTerms, IsHandled); if not IsHandled then "Due Date" := CalcDate(PaymentTerms."Due Date Calculation", "Document Date"); - AdjustDueDate(PaymentTerms.CalculateMaxDueDate("Document Date")); IsHandled := false; OnValidatePaymentTermsCodeOnBeforeCalculatePmtDiscountDate(Rec, PaymentTerms, IsHandled); if not IsHandled then @@ -1242,13 +1241,6 @@ table 81 "Gen. Journal Line" "Payment Discount %" := PaymentTerms."Discount %"; end else "Due Date" := "Document Date"; - "Document Type"::Bill: - if ("Payment Terms Code" <> '') and ("Document Date" <> 0D) then begin - PaymentTerms.Get("Payment Terms Code"); - "Due Date" := CalcDate(PaymentTerms."Due Date Calculation", "Document Date"); - AdjustDueDate(99991231D); - end else - "Due Date" := "Document Date"; "Document Type"::"Credit Memo": if ("Payment Terms Code" <> '') and ("Document Date" <> 0D) then begin PaymentTerms.Get("Payment Terms Code"); @@ -1257,7 +1249,6 @@ table 81 "Gen. Journal Line" OnValidatePaymentTermsCodeOnBeforeCalculateDueDate(Rec, PaymentTerms, IsHandled); if not IsHandled then "Due Date" := CalcDate(PaymentTerms."Due Date Calculation", "Document Date"); - AdjustDueDate(99991231D); IsHandled := false; OnValidatePaymentTermsCodeOnBeforeCalculatePmtDiscountDate(Rec, PaymentTerms, IsHandled); if not IsHandled then @@ -1267,8 +1258,12 @@ table 81 "Gen. Journal Line" "Due Date" := "Document Date"; end else "Due Date" := "Document Date"; - else - "Due Date" := "Document Date"; + else begin + IsHandled := false; + OnValidatePaymentTermsCodeOnElseCase(Rec, PaymentTerms, IsHandled); + if not IsHandled then + "Due Date" := "Document Date"; + end; end; end; } @@ -1787,8 +1782,8 @@ table 81 "Gen. Journal Line" "VAT Base Amount" := Round("VAT Base Amount", Currency."Amount Rounding Precision"); case "VAT Calculation Type" of "VAT Calculation Type"::"Normal VAT", - "VAT Calculation Type"::"Reverse Charge VAT", - "VAT Calculation Type"::"No Taxable VAT": + "VAT Calculation Type"::"Reverse Charge VAT", + "VAT Calculation Type"::"No Taxable VAT": Amount := Round( "VAT Base Amount" * (1 + "VAT %" / 100), @@ -2215,7 +2210,7 @@ table 81 "Gen. Journal Line" "Bal. VAT Calculation Type" := VATPostingSetup."VAT Calculation Type"; case "Bal. VAT Calculation Type" of "Bal. VAT Calculation Type"::"Normal VAT", - "Bal. VAT Calculation Type"::"No Taxable VAT": + "Bal. VAT Calculation Type"::"No Taxable VAT": "Bal. VAT %" := VATPostingSetup."VAT+EC %"; "Bal. VAT Calculation Type"::"Full VAT": case "Bal. Gen. Posting Type" of @@ -3951,23 +3946,6 @@ table 81 "Gen. Journal Line" OptionCaption = 'National,International,Special'; OptionMembers = National,International,Special; } - field(7000000; "Bill No."; Code[20]) - { - Caption = 'Bill No.'; - } - field(7000001; "Applies-to Bill No."; Code[20]) - { - Caption = 'Applies-to Bill No.'; - } -#if not CLEANSCHEMA25 - field(7000003; "Pmt. Address Code"; Code[10]) - { - Caption = 'Pmt. Address Code'; - ObsoleteReason = 'Address is taken from the fields Address, City, etc. of Customer/Vendor table.'; - ObsoleteState = Removed; - ObsoleteTag = '25.0'; - } -#endif } keys @@ -5488,19 +5466,13 @@ table 81 "Gen. Journal Line" CustLedgEntry.SetRange("Customer No.", AccNo); IsHandled := false; - OnLookUpAppliesToDocCustOnBeforeCustLedgerEntrySetRangeOpen(Rec, IsHandled); + OnLookUpAppliesToDocCustOnBeforeCustLedgerEntrySetRangeOpen(Rec, IsHandled, CustLedgEntry); if not IsHandled then CustLedgEntry.SetRange(Open, true); - CustLedgEntry.SetFilter("Document Situation", '<>%1', CustLedgEntry."Document Situation"::"Posted BG/PO"); if "Applies-to Doc. No." <> '' then begin - CustLedgEntry.SetRange("Document Type", "Applies-to Doc. Type"); - CustLedgEntry.SetRange("Document No.", "Applies-to Doc. No."); - CustLedgEntry.SetRange("Bill No.", "Applies-to Bill No."); - if CustLedgEntry.IsEmpty() then begin - CustLedgEntry.SetRange("Document Type"); - CustLedgEntry.SetRange("Document No."); - CustLedgEntry.SetRange("Bill No."); - end; + CustLedgEntry.SetAppliesToDocFilters(Rec); + if CustLedgEntry.IsEmpty() then + CustLedgEntry.ClearDocumentFilters(); end; if "Applies-to ID" <> '' then begin CustLedgEntry.SetRange("Applies-to ID", "Applies-to ID"); @@ -5530,7 +5502,6 @@ table 81 "Gen. Journal Line" end; SetAmountWithCustLedgEntry(); UpdateDocumentTypeAndAppliesTo(CustLedgEntry."Document Type", CustLedgEntry."Document No."); - "Applies-to Bill No." := CustLedgEntry."Bill No."; OnLookUpAppliesToDocCustOnAfterUpdateDocumentTypeAndAppliesTo(Rec, CustLedgEntry); end; end; @@ -5576,14 +5547,9 @@ table 81 "Gen. Journal Line" if not IsHandled then VendLedgEntry.SetRange(Open, true); if "Applies-to Doc. No." <> '' then begin - VendLedgEntry.SetRange("Document Type", "Applies-to Doc. Type"); - VendLedgEntry.SetRange("Document No.", "Applies-to Doc. No."); - VendLedgEntry.SetRange("Bill No.", "Applies-to Bill No."); - if VendLedgEntry.IsEmpty() then begin - VendLedgEntry.SetRange("Document Type"); - VendLedgEntry.SetRange("Document No."); - VendLedgEntry.SetRange("Bill No."); - end; + VendLedgEntry.SetAppliesToDocFilters(Rec); + if VendLedgEntry.IsEmpty() then + VendLedgEntry.ClearDocumentFilters(); end; if "Applies-to ID" <> '' then begin VendLedgEntry.SetRange("Applies-to ID", "Applies-to ID"); @@ -5624,7 +5590,6 @@ table 81 "Gen. Journal Line" Error(Text1100100, VendLedgEntry.Description); SetAmountWithVendLedgEntry(); UpdateDocumentTypeAndAppliesTo(VendLedgEntry."Document Type", VendLedgEntry."Document No."); - "Applies-to Bill No." := VendLedgEntry."Bill No."; OnLookUpAppliesToDocVendOnAfterUpdateDocumentTypeAndAppliesTo(Rec, VendLedgEntry); end; @@ -5829,9 +5794,8 @@ table 81 "Gen. Journal Line" VendLedgEntry.SetRange(Open, true); OnValidateApplyRequirementsOnAfterVendLedgEntrySetFiltersWithoutAppliesToID(TempGenJnlLine, VendLedgEntry); if VendLedgEntry.FindFirst() then begin - if VendLedgEntry.FindFirst() then - CheckIfPostingDateIsEarlier( - TempGenJnlLine, VendLedgEntry."Posting Date", VendLedgEntry."Document Type", VendLedgEntry."Document No.", VendLedgEntry); + CheckIfPostingDateIsEarlier( + TempGenJnlLine, VendLedgEntry."Posting Date", VendLedgEntry."Document Type", VendLedgEntry."Document No.", VendLedgEntry); if VendLedgEntry."Document Situation" = VendLedgEntry."Document Situation"::"Posted BG/PO" then Error(Text1100100, VendLedgEntry.Description); end; @@ -6062,22 +6026,6 @@ table 81 "Gen. Journal Line" end; end; - [Scope('OnPrem')] - procedure AdjustDueDate(MaxDate: Date) - var - DueDateAdjust: Codeunit "Due Date-Adjust"; - begin - case "Account Type" of - "Account Type"::Customer: - if "Bill-to/Pay-to No." <> '' then - DueDateAdjust.SalesAdjustDueDate("Due Date", "Document Date", MaxDate, "Bill-to/Pay-to No.") - else - DueDateAdjust.SalesAdjustDueDate("Due Date", "Document Date", MaxDate, "Account No."); - "Account Type"::Vendor: - DueDateAdjust.PurchAdjustDueDate("Due Date", "Document Date", MaxDate, "Account No."); - end; - end; - procedure GetCustLedgerEntry() var IsHandled: Boolean; @@ -6614,9 +6562,7 @@ table 81 "Gen. Journal Line" CustLedgEntry.SetRange("Customer No.", AccNo); CustLedgEntry.SetRange(Open, true); if "Applies-to Doc. No." <> '' then begin - CustLedgEntry.SetRange("Document Type", "Applies-to Doc. Type"); - CustLedgEntry.SetRange("Document No.", "Applies-to Doc. No."); - CustLedgEntry.SetRange("Bill No.", "Applies-to Bill No."); + CustLedgEntry.SetAppliesToDocFilters(Rec); if CustLedgEntry.FindFirst() then; end else if "Applies-to ID" <> '' then begin @@ -6631,9 +6577,7 @@ table 81 "Gen. Journal Line" VendLedgEntry.SetRange("Vendor No.", AccNo); VendLedgEntry.SetRange(Open, true); if "Applies-to Doc. No." <> '' then begin - VendLedgEntry.SetRange("Document Type", "Applies-to Doc. Type"); - VendLedgEntry.SetRange("Document No.", "Applies-to Doc. No."); - VendLedgEntry.SetRange("Bill No.", "Applies-to Bill No."); + VendLedgEntry.SetAppliesToDocFilters(Rec); if VendLedgEntry.FindFirst() then; end else if "Applies-to ID" <> '' then begin @@ -6755,7 +6699,6 @@ table 81 "Gen. Journal Line" CustLedgEntry.SetCurrentKey("Document No."); CustLedgEntry.SetRange("Document No.", AppliestoDocNo); CustLedgEntry.SetRange("Document Type", "Applies-to Doc. Type"); - CustLedgEntry.SetRange("Bill No.", "Applies-to Bill No."); CustLedgEntry.SetRange("Customer No.", AccNo); CustLedgEntry.SetRange(Open, true); OnFindFirstCustLedgEntryWithAppliesToDocNoOnAfterSetFilters(Rec, AccNo, CustLedgEntry); @@ -6779,7 +6722,6 @@ table 81 "Gen. Journal Line" VendLedgEntry.SetCurrentKey("Document No."); VendLedgEntry.SetRange("Document No.", AppliestoDocNo); VendLedgEntry.SetRange("Document Type", "Applies-to Doc. Type"); - VendLedgEntry.SetRange("Bill No.", "Applies-to Bill No."); VendLedgEntry.SetRange("Vendor No.", AccNo); VendLedgEntry.SetRange(Open, true); OnFindFirstVendLedgEntryWithAppliesToDocNoOnAfterSetFilters(Rec, AccNo, VendLedgEntry); @@ -12772,7 +12714,7 @@ table 81 "Gen. Journal Line" /// The current General Journal Line record for which the lookup is being performed. /// A boolean variable that, if set to true, skips the default "Open" field filter setting. [IntegrationEvent(false, false)] - local procedure OnLookUpAppliesToDocCustOnBeforeCustLedgerEntrySetRangeOpen(var GenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean) + local procedure OnLookUpAppliesToDocCustOnBeforeCustLedgerEntrySetRangeOpen(var GenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean; var CustLedgEntry: Record "Cust. Ledger Entry") begin end; @@ -12975,4 +12917,15 @@ table 81 "Gen. Journal Line" local procedure OnBeforeGetAccCurrencyCode(var GenJnlLine: Record "Gen. Journal Line"; var CurrencyCode: Code[10]; var IsHandled: Boolean) begin end; + + /// + /// Raised after validating the payment terms code on the Gen. Journal Line. + /// + /// The Gen. Journal Line record. + /// The Payment Terms record. + /// Indicates whether the event has been handled. + [IntegrationEvent(false, false)] + local procedure OnValidatePaymentTermsCodeOnElseCase(var Rec: Record "Gen. Journal Line"; var PaymentTerms: Record "Payment Terms"; var IsHandled: Boolean) + begin + end; } \ No newline at end of file diff --git a/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/GenJournalTemplate.Table.al b/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/GenJournalTemplate.Table.al index f6c85e804e0..1d1140c4688 100644 --- a/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/GenJournalTemplate.Table.al +++ b/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/GenJournalTemplate.Table.al @@ -7,7 +7,6 @@ namespace Microsoft.Finance.GeneralLedger.Journal; using Microsoft.Bank.BankAccount; using Microsoft.Finance.GeneralLedger.Account; using Microsoft.Finance.GeneralLedger.Reports; -using Microsoft.Finance.ReceivablesPayables; using Microsoft.FixedAssets.FixedAsset; using Microsoft.FixedAssets.Journal; using Microsoft.Foundation.AuditCodes; @@ -150,11 +149,6 @@ table 80 "Gen. Journal Template" "Source Code" := SourceCodeSetup."Job G/L Journal"; "Page ID" := PAGE::"Job G/L Journal"; end; - Type::Cartera: - begin - "Source Code" := SourceCodeSetup."Cartera Journal"; - "Page ID" := PAGE::"Cartera Journal"; - end; end; if Recurring then diff --git a/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/GenJournalTemplateType.Enum.al b/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/GenJournalTemplateType.Enum.al index 0999d994087..d7665b65093 100644 --- a/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/GenJournalTemplateType.Enum.al +++ b/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/GenJournalTemplateType.Enum.al @@ -69,8 +69,4 @@ enum 89 "Gen. Journal Template Type" { Caption = 'Projects'; } - value(12; Cartera) - { - Caption = 'Cartera'; - } } diff --git a/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/GeneralJournal.Page.al b/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/GeneralJournal.Page.al index 8755d4e667a..f38ad9efdfd 100644 --- a/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/GeneralJournal.Page.al +++ b/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/GeneralJournal.Page.al @@ -202,12 +202,6 @@ page 39 "General Journal" Visible = not IsSimplePage; ShowMandatory = true; } - field("Bill No."; Rec."Bill No.") - { - ApplicationArea = Basic, Suite; - ToolTip = 'Specifies a number for this bill generated from the journal.'; - Visible = false; - } field("Incoming Document Entry No."; Rec."Incoming Document Entry No.") { ApplicationArea = Basic, Suite; @@ -564,12 +558,6 @@ page 39 "General Journal" ApplicationArea = Basic, Suite; Visible = false; } - field("Applies-to Bill No."; Rec."Applies-to Bill No.") - { - ApplicationArea = Basic, Suite; - ToolTip = 'Specifies the number of the bill to be settled.'; - Visible = false; - } field("Applies-to ID"; Rec."Applies-to ID") { ApplicationArea = Basic, Suite; diff --git a/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/PaymentJournal.Page.al b/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/PaymentJournal.Page.al index b52a358bf14..36c832f6a42 100644 --- a/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/PaymentJournal.Page.al +++ b/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/PaymentJournal.Page.al @@ -136,12 +136,6 @@ page 256 "Payment Journal" StyleExpr = HasPmtFileErr; ShowMandatory = true; } - field("Bill No."; Rec."Bill No.") - { - ApplicationArea = Basic, Suite; - ToolTip = 'Specifies a number for this bill generated from the journal.'; - Visible = false; - } field("Incoming Document Entry No."; Rec."Incoming Document Entry No.") { ApplicationArea = Basic, Suite; @@ -420,11 +414,6 @@ page 256 "Payment Journal" ApplicationArea = Basic, Suite; StyleExpr = StyleTxt; } - field("Applies-to Bill No."; Rec."Applies-to Bill No.") - { - ApplicationArea = Basic, Suite; - ToolTip = 'Specifies the number of the bill to be settled.'; - } field("Applies-to ID"; Rec."Applies-to ID") { ApplicationArea = Basic, Suite; @@ -1939,7 +1928,7 @@ page 256 "Payment Journal" BackgroundErrorHandlingMgt: Codeunit "Background Error Handling Mgt."; ApprovalMgmt: Codeunit "Approvals Mgmt."; FeatureTelemetry: Codeunit "Feature Telemetry"; - ClientTypeManagement: Codeunit "Client Type Management"; + ClientTypeManagement: Codeunit "Client Type Management"; ChangeExchangeRate: Page "Change Exchange Rate"; GenJnlBatchApprovalStatus: Text[20]; GenJnlLineApprovalStatus: Text[20]; diff --git a/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/PostedGenJournalLine.Table.al b/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/PostedGenJournalLine.Table.al index 5961f999905..bf3ef6d6f41 100644 --- a/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/PostedGenJournalLine.Table.al +++ b/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/PostedGenJournalLine.Table.al @@ -1897,14 +1897,6 @@ table 181 "Posted Gen. Journal Line" OptionCaption = ' ,02-VAT Registration No.,03-Passport,04-ID Document,05-Certificate Of Residence,06-Other Probative Document,07-Not On The Census'; OptionMembers = " ","02-VAT Registration No.","03-Passport","04-ID Document","05-Certificate Of Residence","06-Other Probative Document","07-Not On The Census"; } - field(7000000; "Bill No."; Code[20]) - { - Caption = 'Bill No.'; - } - field(7000001; "Applies-to Bill No."; Code[20]) - { - Caption = 'Applies-to Bill No.'; - } #if not CLEANSCHEMA25 field(7000003; "Pmt. Address Code"; Code[10]) { diff --git a/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/PurchaseJournal.Page.al b/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/PurchaseJournal.Page.al index f3d5696ac96..1f91e8e54c9 100644 --- a/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/PurchaseJournal.Page.al +++ b/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/PurchaseJournal.Page.al @@ -139,12 +139,6 @@ page 254 "Purchase Journal" ApplicationArea = Basic, Suite; ShowMandatory = true; } - field("Bill No."; Rec."Bill No.") - { - ApplicationArea = Basic, Suite; - ToolTip = 'Specifies a number for this bill generated from the journal.'; - Visible = false; - } field("Incoming Document Entry No."; Rec."Incoming Document Entry No.") { ApplicationArea = Basic, Suite; @@ -497,11 +491,6 @@ page 254 "Purchase Journal" ApplicationArea = Basic, Suite; Visible = not IsSimplePage; } - field("Applies-to Bill No."; Rec."Applies-to Bill No.") - { - ApplicationArea = Basic, Suite; - ToolTip = 'Specifies the number of the bill to be settled.'; - } field("Applies-to ID"; Rec."Applies-to ID") { ApplicationArea = Basic, Suite; diff --git a/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/SalesJournal.Page.al b/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/SalesJournal.Page.al index 580250e3fc9..6c92ca5acf9 100644 --- a/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/SalesJournal.Page.al +++ b/src/Layers/ES/BaseApp/Finance/GeneralLedger/Journal/SalesJournal.Page.al @@ -138,12 +138,6 @@ page 253 "Sales Journal" ApplicationArea = Basic, Suite; ShowMandatory = true; } - field("Bill No."; Rec."Bill No.") - { - ApplicationArea = Basic, Suite; - ToolTip = 'Specifies a number for this bill generated from the journal.'; - Visible = false; - } field("Incoming Document Entry No."; Rec."Incoming Document Entry No.") { ApplicationArea = Basic, Suite; @@ -483,11 +477,6 @@ page 253 "Sales Journal" ApplicationArea = Basic, Suite; Visible = not IsSimplePage; } - field("Applies-to Bill No."; Rec."Applies-to Bill No.") - { - ApplicationArea = Basic, Suite; - ToolTip = 'Specifies the number of the bill to be settled.'; - } field("Applies-to ID"; Rec."Applies-to ID") { ApplicationArea = Basic, Suite; diff --git a/src/Layers/ES/BaseApp/Finance/GeneralLedger/Ledger/GLEntry.Table.al b/src/Layers/ES/BaseApp/Finance/GeneralLedger/Ledger/GLEntry.Table.al index 5de482ebc1d..4a45c1579c5 100644 --- a/src/Layers/ES/BaseApp/Finance/GeneralLedger/Ledger/GLEntry.Table.al +++ b/src/Layers/ES/BaseApp/Finance/GeneralLedger/Ledger/GLEntry.Table.al @@ -789,10 +789,6 @@ table 17 "G/L Entry" Caption = 'Period Trans. No.'; DataClassification = SystemMetadata; } - field(7000000; "Bill No."; Code[20]) - { - Caption = 'Bill No.'; - } } keys @@ -844,7 +840,7 @@ table 17 "G/L Entry" key(Key12; "VAT Bus. Posting Group", "VAT Prod. Posting Group") { } - key(Key13; "G/L Account No.", "Document No.", "Bill No.") + key(Key13; "G/L Account No.", "Document No.") { SumIndexFields = Amount, "Additional-Currency Amount"; } @@ -1060,7 +1056,6 @@ table 17 "G/L Entry" "No. Series" := GenJnlLine."Posting No. Series"; "IC Partner Code" := GenJnlLine."IC Partner Code"; "Prod. Order No." := GenJnlLine."Prod. Order No."; - "Bill No." := GenJnlLine."Bill No."; OnAfterCopyGLEntryFromGenJnlLine(Rec, GenJnlLine); end; diff --git a/src/Layers/ES/BaseApp/Finance/GeneralLedger/Ledger/GLRegisters.Page.al b/src/Layers/ES/BaseApp/Finance/GeneralLedger/Ledger/GLRegisters.Page.al index 498fc7409c1..e61f1c17c87 100644 --- a/src/Layers/ES/BaseApp/Finance/GeneralLedger/Ledger/GLRegisters.Page.al +++ b/src/Layers/ES/BaseApp/Finance/GeneralLedger/Ledger/GLRegisters.Page.al @@ -9,7 +9,6 @@ using Microsoft.Bank.Reconciliation; using Microsoft.Finance.Dimension.Correction; using Microsoft.Finance.GeneralLedger.Reports; using Microsoft.Finance.GeneralLedger.Reversal; -using Microsoft.Finance.ReceivablesPayables; using Microsoft.Finance.VAT.Ledger; using Microsoft.FixedAssets.Ledger; using Microsoft.FixedAssets.Maintenance; @@ -274,45 +273,6 @@ page 116 "G/L Registers" Page.Run(PAGE::"Dimension Correction Draft", DimensionCorrection); end; } - separator(Action1100006) - { - } - action("&Cartera Docs") - { - ApplicationArea = Basic, Suite; - Caption = '&Cartera Docs'; - Image = "Order"; - ToolTip = 'View bills and invoices for customers and vendors. Bills are used by customers to pay invoices. They are sent to customers, who pay them under particular conditions on a specified date. Typically, the total amount of an invoice is divided into parts as bills are generated.'; - - trigger OnAction() - begin - GLRegDocs.Docs(Rec); - end; - } - action("&Posted Cartera Docs.") - { - ApplicationArea = Basic, Suite; - Caption = '&Posted Cartera Docs.'; - Image = PostedOrder; - ToolTip = 'View posted bills and invoices for customers and vendors. Bills are used by customers to pay invoices. They are sent to customers, who pay them under particular conditions on a specified date. Typically, the total amount of an invoice is divided into parts as bills are generated.'; - - trigger OnAction() - begin - GLRegDocs.DocsinPostedBGPO(Rec); - end; - } - action("Cl&osed Cartera Docs.") - { - ApplicationArea = Basic, Suite; - Caption = 'Cl&osed Cartera Docs.'; - Image = Invoice; - ToolTip = 'View completed bills and invoices for customers and vendors. Bills are used by customers to pay invoices. They are sent to customers, who pay them under particular conditions on a specified date. Typically, the total amount of an invoice is divided into parts as bills are generated.'; - - trigger OnAction() - begin - GLRegDocs.ClosedDocs(Rec); - end; - } } } area(processing) @@ -481,9 +441,6 @@ page 116 "G/L Registers" if Rec.FindSet() then; end; - var - GLRegDocs: Codeunit "G/L Reg.-Docs."; - trigger OnAfterGetRecord() begin ReverseRegisterEnabled := GetReverseRegisterEnabled(); diff --git a/src/Layers/ES/BaseApp/Finance/GeneralLedger/Ledger/GeneralLedgerEntries.Page.al b/src/Layers/ES/BaseApp/Finance/GeneralLedger/Ledger/GeneralLedgerEntries.Page.al index e763568b756..9b851858ce5 100644 --- a/src/Layers/ES/BaseApp/Finance/GeneralLedger/Ledger/GeneralLedgerEntries.Page.al +++ b/src/Layers/ES/BaseApp/Finance/GeneralLedger/Ledger/GeneralLedgerEntries.Page.al @@ -65,12 +65,6 @@ page 20 "General Ledger Entries" ApplicationArea = Basic, Suite; Editable = false; } - field("Bill No."; Rec."Bill No.") - { - ApplicationArea = Basic, Suite; - Editable = false; - ToolTip = 'Specifies the bill number related to the ledger entry.'; - } field("G/L Account No."; Rec."G/L Account No.") { ApplicationArea = Basic, Suite; diff --git a/src/Layers/ES/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al b/src/Layers/ES/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al index 5f4bc614902..0ea2fb5df8c 100644 --- a/src/Layers/ES/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al +++ b/src/Layers/ES/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al @@ -1,4 +1,4 @@ -// ------------------------------------------------------------------------------------------------ +// ------------------------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // ------------------------------------------------------------------------------------------------ @@ -208,7 +208,6 @@ codeunit 12 "Gen. Jnl.-Post Line" NextEntryNo2: Integer; Text1100000: Label 'Unrealized VAT Type must be "Percentage" in VAT Posting Setup.'; Text1100001: Label 'Invoice No. %1 does not exist'; - GenJnlLineNotFoundErr: Label 'Check that all the entries with the same %2 and a %3 and \%4 associated have a Customer/Vendor associated, check that all the lines with the same \%2 have not more than one Customer/Vendor associated, check that all the lines with same \%2 have in the field %1 the same value: Invoice, Credit Memo or Finance Charge Memo.', Comment = 'Field captions: %1 = "Document Type", %2 = "Document No.", %3 = "VAT Bus. Posting Group", %4 = "VAT Prod. Posting Group"'; Text1100006: Label 'Invoice %1'; Text1100007: Label '%1 cannot be applied, since it is included in a bill group.'; Text1100008: Label 'Remove it from its bill group and try again.'; @@ -820,7 +819,6 @@ codeunit 12 "Gen. Jnl.-Post Line" var TaxJurisdiction: Record "Tax Jurisdiction"; VATPostingParameters: Record "VAT Posting Parameters"; - VATProductPostingGroup: Record "VAT Product Posting Group"; VATAmount: Decimal; VATBase: Decimal; SrcCurrVATAmount: Decimal; @@ -840,20 +838,12 @@ codeunit 12 "Gen. Jnl.-Post Line" VATEntry.Init(); VATEntry.CopyFromGenJnlLine(GenJnlLine); - VATEntry.SetVATCashRegime(VATPostingSetup, GenJnlLine."Gen. Posting Type".AsInteger()); VATEntry."Entry No." := NextVATEntryNo; VATEntry."EU Service" := VATPostingSetup."EU Service"; VATEntry."Transaction No." := NextTransactionNo; VATEntry."Sales Tax Connection No." := NextConnectionNo; VATEntry.SetVATDateFromGenJnlLine(GenJnlLine); - OnInsertVATOnAfterAssignVATEntryFields(GenJnlLine, VATEntry, CurrExchRate); - - if GenJnlLine."Gen. Posting Type" = GenJnlLine."Gen. Posting Type"::Sale then - if VATProductPostingGroup.Get(GenJnlLine."VAT Prod. Posting Group") then - VATEntry."Delivery Operation Code" := VATProductPostingGroup."Delivery Operation Code"; - GetSellToBuyFrom(GenJnlLine, VATEntry); - VATEntry."No Taxable Type" := VATPostingSetup."No Taxable Type"; - OnInsertVATOnAfterCopyVATPostingSetupFields(VATPostingSetup, VATEntry); + OnInsertVATOnAfterAssignVATEntryFields(GenJnlLine, VATEntry, CurrExchRate, VATPostingSetup); if GenJnlLine."VAT Difference" = 0 then VATDifferenceLCY := 0 @@ -8422,53 +8412,16 @@ codeunit 12 "Gen. Jnl.-Post Line" OnAfterUpdateVATEntryTaxDetails(VATEntry, TaxDetail); end; +#if not CLEAN29 [Scope('OnPrem')] + [Obsolete('Moved to codeunit CRT Gen. Jnl.-Post Line', '29.0')] procedure GetSellToBuyFrom(GenJnlLine: Record "Gen. Journal Line"; var VATEntry: Record "VAT Entry") var - GenJnlLine2: Record "Gen. Journal Line"; + CRTGenJnlPostLine: Codeunit "CRT Gen. Jnl.-Post Line"; begin - if GenJnlLine."Bill-to/Pay-to No." <> '' then begin - VATEntry."Bill-to/Pay-to No." := GenJnlLine."Bill-to/Pay-to No."; - exit; - end; - - if GenJnlLine."Bal. Account Type" in [GenJnlLine."Bal. Account Type"::"IC Partner", GenJnlLine."Bal. Account Type"::Employee] then - exit; - // Find in the current transaction the customer/vendor this VAT entry is linked to - GenJnlLine2.SetCurrentKey("Journal Template Name", "Journal Batch Name", "Posting Date", "Transaction No."); - GenJnlLine2.SetRange("Journal Template Name", GenJnlLine."Journal Template Name"); - GenJnlLine2.SetRange("Journal Batch Name", GenJnlLine."Journal Batch Name"); - GenJnlLine2.SetRange("Posting Date", GenJnlLine."Posting Date"); - GenJnlLine2.SetRange("Transaction No.", GenJnlLine."Transaction No."); - GenJnlLine2.SetFilter( - "Document Type", - '%1|%2|%3', - GenJnlLine2."Document Type"::Invoice, - GenJnlLine2."Document Type"::"Credit Memo", - GenJnlLine2."Document Type"::"Finance Charge Memo"); - GenJnlLine2.SetRange("Document No.", GenJnlLine."Document No."); - case VATEntry.Type of - VATEntry.Type::Sale: - GenJnlLine2.SetRange("Account Type", GenJnlLine2."Account Type"::Customer); - VATEntry.Type::Purchase: - GenJnlLine2.SetRange("Account Type", GenJnlLine2."Account Type"::Vendor); - else - exit; - end; - if not GenJnlLine2.Find('-') or (GenJnlLine2.Next() <> 0) then - Error( - GenJnlLineNotFoundErr, - GenJnlLine.FieldCaption(GenJnlLine."Document Type"), - GenJnlLine.FieldCaption(GenJnlLine."Document No."), - GenJnlLine.FieldCaption(GenJnlLine."VAT Bus. Posting Group"), - GenJnlLine.FieldCaption(GenJnlLine."VAT Prod. Posting Group")); - if GenJnlLine2."Bill-to/Pay-to No." <> '' then - VATEntry."Bill-to/Pay-to No." := GenJnlLine2."Bill-to/Pay-to No." - else - VATEntry."Bill-to/Pay-to No." := GenJnlLine2."Account No."; - - OnAfterGetSellToBuyFrom(VATEntry, GenJnlLine2); + CRTGenJnlPostLine.GetSellToBuyFrom(GenJnlLine, VATEntry); end; +#endif local procedure PostPayableDocs(GenJnlLine: Record "Gen. Journal Line"; VendPostingGr: Record "Vendor Posting Group") var @@ -11539,12 +11492,7 @@ codeunit 12 "Gen. Jnl.-Post Line" end; [IntegrationEvent(false, false)] - local procedure OnInsertVATOnAfterAssignVATEntryFields(GenJnlLine: Record "Gen. Journal Line"; var VATEntry: Record "VAT Entry"; CurrExchRate: Record "Currency Exchange Rate") - begin - end; - - [IntegrationEvent(false, false)] - local procedure OnInsertVATOnAfterCopyVATPostingSetupFields(var VATPostingSetup: Record "VAT Posting Setup"; var VATEntry: Record "VAT Entry") + local procedure OnInsertVATOnAfterAssignVATEntryFields(var GenJnlLine: Record "Gen. Journal Line"; var VATEntry: Record "VAT Entry"; CurrExchRate: Record "Currency Exchange Rate"; var VATPostingSetup: Record "VAT Posting Setup") begin end; @@ -12158,10 +12106,18 @@ codeunit 12 "Gen. Jnl.-Post Line" begin end; +#if not CLEAN29 + internal procedure RunOnAfterGetSellToBuyFrom(var VATEntry: Record "VAT Entry"; GenJournalLine: Record "Gen. Journal Line") + begin + OnAfterGetSellToBuyFrom(VATEntry, GenJournalLine); + end; + + [Obsolete('Moved to codeunit CRT Gen. Jnl.-Post Line.', '29.0')] [IntegrationEvent(false, false)] local procedure OnAfterGetSellToBuyFrom(var VATEntry: Record "VAT Entry"; GenJournalLine: Record "Gen. Journal Line") begin end; +#endif [IntegrationEvent(false, false)] local procedure OnPostUnapplyOnAfterVATEntryInsert(var VATEntry: Record "VAT Entry"; GenJournalLine: Record "Gen. Journal Line"; OrigVATEntry: Record "VAT Entry") diff --git a/src/Layers/ES/BaseApp/Finance/GeneralLedger/Reversal/GenJnlPostReverse.Codeunit.al b/src/Layers/ES/BaseApp/Finance/GeneralLedger/Reversal/GenJnlPostReverse.Codeunit.al index 49aa3fc10d3..7519d1fa490 100644 --- a/src/Layers/ES/BaseApp/Finance/GeneralLedger/Reversal/GenJnlPostReverse.Codeunit.al +++ b/src/Layers/ES/BaseApp/Finance/GeneralLedger/Reversal/GenJnlPostReverse.Codeunit.al @@ -331,8 +331,6 @@ codeunit 17 "Gen. Jnl.-Post Reverse" NewCustLedgerEntry."Max. Payment Tolerance" := -NewCustLedgerEntry."Max. Payment Tolerance"; NewCustLedgerEntry."Accepted Payment Tolerance" := -NewCustLedgerEntry."Accepted Payment Tolerance"; NewCustLedgerEntry."Pmt. Tolerance (LCY)" := -NewCustLedgerEntry."Pmt. Tolerance (LCY)"; - NewCustLedgerEntry."Amount (LCY) stats." := -NewCustLedgerEntry."Amount (LCY) stats."; - NewCustLedgerEntry."Remaining Amount (LCY) stats." := -NewCustLedgerEntry."Remaining Amount (LCY) stats."; NewCustLedgerEntry."User ID" := CopyStr(UserId(), 1, MaxStrLen(NewCustLedgerEntry."User ID")); NewCustLedgerEntry."Entry No." := NewEntryNo; NewCustLedgerEntry."Transaction No." := GenJnlPostLine.GetNextTransactionNo(); @@ -415,8 +413,6 @@ codeunit 17 "Gen. Jnl.-Post Reverse" NewVendorLedgerEntry."Max. Payment Tolerance" := -NewVendorLedgerEntry."Max. Payment Tolerance"; NewVendorLedgerEntry."Accepted Payment Tolerance" := -NewVendorLedgerEntry."Accepted Payment Tolerance"; NewVendorLedgerEntry."Pmt. Tolerance (LCY)" := -NewVendorLedgerEntry."Pmt. Tolerance (LCY)"; - NewVendorLedgerEntry."Amount (LCY) stats." := -NewVendorLedgerEntry."Amount (LCY) stats."; - NewVendorLedgerEntry."Remaining Amount (LCY) stats." := -NewVendorLedgerEntry."Remaining Amount (LCY) stats."; NewVendorLedgerEntry."User ID" := CopyStr(UserId(), 1, MaxStrLen(NewVendorLedgerEntry."User ID")); NewVendorLedgerEntry."Entry No." := NewEntryNo; NewVendorLedgerEntry."Transaction No." := GenJnlPostLine.GetNextTransactionNo(); diff --git a/src/Layers/ES/BaseApp/Finance/GeneralLedger/Reversal/ReversalEntry.Table.al b/src/Layers/ES/BaseApp/Finance/GeneralLedger/Reversal/ReversalEntry.Table.al deleted file mode 100644 index 103591132ef..00000000000 --- a/src/Layers/ES/BaseApp/Finance/GeneralLedger/Reversal/ReversalEntry.Table.al +++ /dev/null @@ -1,2577 +0,0 @@ -// ------------------------------------------------------------------------------------------------ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// ------------------------------------------------------------------------------------------------ -namespace Microsoft.Finance.GeneralLedger.Reversal; - -using Microsoft.Bank.BankAccount; -using Microsoft.Bank.Check; -using Microsoft.Bank.Ledger; -using Microsoft.Bank.Statement; -using Microsoft.Finance.Currency; -using Microsoft.Finance.GeneralLedger.Account; -using Microsoft.Finance.GeneralLedger.Journal; -using Microsoft.Finance.GeneralLedger.Ledger; -using Microsoft.Finance.GeneralLedger.Setup; -using Microsoft.Finance.ReceivablesPayables; -using Microsoft.Finance.VAT.Ledger; -using Microsoft.FixedAssets.Depreciation; -using Microsoft.FixedAssets.FixedAsset; -using Microsoft.FixedAssets.Ledger; -using Microsoft.FixedAssets.Maintenance; -using Microsoft.FixedAssets.Posting; -using Microsoft.FixedAssets.Setup; -using Microsoft.Foundation.AuditCodes; -using Microsoft.Foundation.Period; -using Microsoft.HumanResources.Employee; -using Microsoft.HumanResources.Payables; -using Microsoft.Purchases.Payables; -using Microsoft.Purchases.Vendor; -using Microsoft.Sales.Customer; -using Microsoft.Sales.Receivables; -using System.Security.User; -using System.Utilities; - -/// -/// Stores temporary information about ledger entries selected for reversal operations. -/// Provides comprehensive reversal functionality with entry validation and reversal processing workflow. -/// -/// -/// Central table for managing reversal entries across all ledger types including G/L, customer, vendor, employee, bank account, Fixed Asset, maintenance, and VAT. -/// Supports both register-based and transaction-based reversal modes with comprehensive validation and audit trail maintenance. -/// Integrates with all posting engines and maintains referential integrity during reversal operations. -/// -table 179 "Reversal Entry" -{ - Caption = 'Reversal Entry'; - PasteIsValid = false; - DataClassification = CustomerContent; - - fields - { - /// - /// Sequential line number for ordering reversal entries within the reversal operation. - /// - field(1; "Line No."; Integer) - { - Caption = 'Line No.'; - } - /// - /// Specifies the type of ledger entry being reversed (G/L Account, Customer, Vendor, Employee, Bank Account, Fixed Asset, Maintenance, VAT). - /// - field(2; "Entry Type"; Enum "Reversal Entry Type") - { - Caption = 'Entry Type'; - } - /// - /// Entry number of the original ledger entry being reversed, with table relation based on Entry Type. - /// - field(3; "Entry No."; Integer) - { - Caption = 'Entry No.'; - ToolTip = 'Specifies the entry number of the original ledger entry that is being reversed.'; - TableRelation = if ("Entry Type" = const("G/L Account")) "G/L Entry" - else - if ("Entry Type" = const(Customer)) "Cust. Ledger Entry" - else - if ("Entry Type" = const(Vendor)) "Vendor Ledger Entry" - else - if ("Entry Type" = const("Bank Account")) "Bank Account Ledger Entry" - else - if ("Entry Type" = const("Fixed Asset")) "FA Ledger Entry" - else - if ("Entry Type" = const(Maintenance)) "Maintenance Ledger Entry" - else - if ("Entry Type" = const(VAT)) "VAT Entry" - else - if ("Entry Type" = const(Employee)) "Employee Ledger Entry"; - } - /// - /// G/L Register number that contains the entry being reversed, used for register-based reversals. - /// - field(4; "G/L Register No."; Integer) - { - Caption = 'G/L Register No.'; - ToolTip = 'Specifies the number of the general ledger register, where the general ledger entry in this record was posted.'; - TableRelation = "G/L Register"; - } - /// - /// Source code from the original entry identifying the posting journal or process that created the entry. - /// - field(5; "Source Code"; Code[10]) - { - Caption = 'Source Code'; - ToolTip = 'Specifies the source code that specifies where the entry was created.'; - TableRelation = "Source Code"; - } - /// - /// Journal batch name from the original entry used for posting validation and filtering. - /// - field(6; "Journal Batch Name"; Code[10]) - { - Caption = 'Journal Batch Name'; - ToolTip = 'Specifies the name of the journal batch, a personalized journal layout, that the entries were posted from.'; - } - /// - /// Transaction number linking related entries within the same posting transaction. - /// - field(7; "Transaction No."; Integer) - { - Caption = 'Transaction No.'; - ToolTip = 'Specifies the number of the transaction that was reversed.'; - } - /// - /// Source type indicating the master table type for the source number (Customer, Vendor, Bank Account, Fixed Asset, Employee). - /// - field(8; "Source Type"; Enum "Gen. Journal Source Type") - { - Caption = 'Source Type'; - ToolTip = 'Specifies the source type that applies to the source number that is shown in the Source No. field.'; - } - /// - /// Source number referencing the specific master record based on Source Type, with table relation validation. - /// - field(9; "Source No."; Code[20]) - { - Caption = 'Source No.'; - ToolTip = 'Specifies where the entry originated.'; - TableRelation = if ("Source Type" = const(Customer)) Customer - else - if ("Source Type" = const(Vendor)) Vendor - else - if ("Source Type" = const("Bank Account")) "Bank Account" - else - if ("Source Type" = const("Fixed Asset")) "Fixed Asset" - else - if ("Source Type" = const(Employee)) Employee; - } - /// - /// Currency code from the original entry, blank indicates local currency (LCY). - /// - field(10; "Currency Code"; Code[10]) - { - Caption = 'Currency Code'; - ToolTip = 'Specifies the currency code for the amount on the line.'; - TableRelation = Currency; - } - /// - /// Entry description from the original entry providing context for the reversal operation. - /// - field(11; Description; Text[100]) - { - Caption = 'Description'; - ToolTip = 'Specifies a description of the record.'; - } - /// - /// Entry amount in the original currency from the entry being reversed. - /// - field(12; Amount; Decimal) - { - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - Caption = 'Amount'; - ToolTip = 'Specifies the amount on the entry to be reversed.'; - } - /// - /// Debit amount from the original entry, showing only positive amounts for debit transactions. - /// - field(13; "Debit Amount"; Decimal) - { - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - Caption = 'Debit Amount'; - ToolTip = 'Specifies the total of the ledger entries that represent debits.'; - } - /// - /// Credit amount from the original entry, showing only positive amounts for credit transactions. - /// - field(14; "Credit Amount"; Decimal) - { - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - Caption = 'Credit Amount'; - ToolTip = 'Specifies the total of the ledger entries that represent credits.'; - } - /// - /// Entry amount in local currency (LCY) from the original entry being reversed. - /// - field(15; "Amount (LCY)"; Decimal) - { - AutoFormatExpression = ''; - AutoFormatType = 1; - Caption = 'Amount (LCY)'; - } - /// - /// Debit amount in local currency (LCY), showing only positive amounts for debit transactions. - /// - field(16; "Debit Amount (LCY)"; Decimal) - { - AutoFormatExpression = ''; - AutoFormatType = 1; - Caption = 'Debit Amount (LCY)'; - } - /// - /// Credit amount in local currency (LCY), showing only positive amounts for credit transactions. - /// - field(17; "Credit Amount (LCY)"; Decimal) - { - AutoFormatExpression = ''; - AutoFormatType = 1; - Caption = 'Credit Amount (LCY)'; - } - /// - /// VAT amount from the original entry that will be reversed. - /// - field(18; "VAT Amount"; Decimal) - { - AutoFormatExpression = Rec."Currency Code"; - AutoFormatType = 1; - Caption = 'VAT Amount'; - ToolTip = 'Specifies the amount of VAT that is included in the total amount.'; - } - /// - /// Posting date from the original entry when the transaction was recorded. - /// - field(19; "Posting Date"; Date) - { - Caption = 'Posting Date'; - ToolTip = 'Specifies the posting date for the entry.'; - } - /// - /// Document type from the original entry (Invoice, Credit Memo, Payment, etc.). - /// - field(20; "Document Type"; Enum "Gen. Journal Document Type") - { - Caption = 'Document Type'; - ToolTip = 'Specifies the document type that the entry belongs to.'; - } - /// - /// Document number from the original entry identifying the source document. - /// - field(21; "Document No."; Code[20]) - { - Caption = 'Document No.'; - ToolTip = 'Specifies the document number of the transaction that created the entry.'; - } - /// - /// Account number from the original entry being reversed. - /// - field(22; "Account No."; Code[20]) - { - Caption = 'Account No.'; - ToolTip = 'Specifies the account number that the reversal was posted to.'; - } - /// - /// Account name from the original entry for display and reference purposes. - /// - field(23; "Account Name"; Text[100]) - { - Caption = 'Account Name'; - ToolTip = 'Specifies erroneous postings that you want to undo by using the Reverse function.'; - } - /// - /// Balance account type from the original entry specifying the type of balance account used. - /// - field(25; "Bal. Account Type"; Enum "Gen. Journal Account Type") - { - Caption = 'Bal. Account Type'; - ToolTip = 'Specifies the type of account that a balancing entry is posted to, such as BANK for a cash account.'; - } - /// - /// Balance account number from the original entry for paired account posting validation. - /// - field(26; "Bal. Account No."; Code[20]) - { - Caption = 'Bal. Account No.'; - ToolTip = 'Specifies the number of the general ledger, customer, vendor, or bank account that the balancing entry is posted to, such as a cash account for cash purchases.'; - TableRelation = if ("Bal. Account Type" = const("G/L Account")) "G/L Account" - else - if ("Bal. Account Type" = const(Customer)) Customer - else - if ("Bal. Account Type" = const(Vendor)) Vendor - else - if ("Bal. Account Type" = const("Bank Account")) "Bank Account" - else - if ("Bal. Account Type" = const("Fixed Asset")) "Fixed Asset"; - } - /// - /// Fixed Asset posting category from the original entry for FA-related reversal validation. - /// - field(27; "FA Posting Category"; Enum "FA Ledger Posting Category") - { - AccessByPermission = TableData "Fixed Asset" = R; - Caption = 'FA Posting Category'; - ToolTip = 'Specifies the posting category that is used for fixed assets.'; - } - /// - /// Fixed Asset posting type from the original entry specifying the FA posting classification. - /// - field(28; "FA Posting Type"; Enum "Reversal Entry FA Posting Type") - { - AccessByPermission = TableData "Fixed Asset" = R; - Caption = 'FA Posting Type'; - ToolTip = 'Specifies the posting type, if Account Type field contains Fixed Asset.'; - } - /// - /// Type of reversal operation being performed (Transaction or Register-based reversal). - /// - field(30; "Reversal Type"; Option) - { - Caption = 'Reversal Type'; - OptionCaption = 'Transaction,Register'; - OptionMembers = Transaction,Register; - } - /// - /// Original amount in source currency before any currency conversion. - /// - field(31; "Source Currency Amount"; Decimal) - { - AutoFormatExpression = Rec."Source Currency Code"; - AutoFormatType = 1; - Caption = 'Source Currency Amount'; - DataClassification = CustomerContent; - } - /// - /// Original VAT amount in source currency before any currency conversion. - /// - field(32; "Source Currency VAT Amount"; Decimal) - { - AutoFormatExpression = Rec."Source Currency Code"; - AutoFormatType = 1; - Caption = 'Source Currency VAT Amount'; - DataClassification = CustomerContent; - } - field(33; "Source Currency Code"; Code[10]) - { - Caption = 'Source Currency Code'; - TableRelation = Currency; - DataClassification = CustomerContent; - } - } - - keys - { - key(Key1; "Line No.") - { - Clustered = true; - } - key(Key2; "Entry Type") - { - } - key(Key3; "Document No.", "Posting Date", "Entry Type", "Entry No.") - { - } - key(Key4; "Entry Type", "Entry No.") - { - } - key(Key5; "Transaction No.") - { - } - } - - fieldgroups - { - } - - var - GlobalGLEntry: Record "G/L Entry"; - GlobalCustLedgerEntry: Record "Cust. Ledger Entry"; - GlobalVendorLedgerEntry: Record "Vendor Ledger Entry"; - GlobalEmployeeLedgerEntry: Record "Employee Ledger Entry"; - GlobalBankAccountLedgerEntry: Record "Bank Account Ledger Entry"; - BankAccountStatement: Record "Bank Account Statement"; - GlobalVATEntry: Record "VAT Entry"; - GlobalFALedgerEntry: Record "FA Ledger Entry"; - GlobalMaintenanceLedgerEntry: Record "Maintenance Ledger Entry"; - GlobalGLRegister: Record "G/L Register"; - GlobalFARegister: Record "FA Register"; - GenJnlCheckLine: Codeunit "Gen. Jnl.-Check Line"; - JnlTemplName: Code[10]; - -#pragma warning disable AA0074 -#pragma warning disable AA0470 - Text000: Label 'You cannot reverse %1 No. %2 because the entry is either applied to an entry or has been changed by a batch job.'; - Text001: Label 'You cannot reverse %1 No. %2 because the posting date is not within the allowed posting period.'; -#pragma warning restore AA0470 - Text002: Label 'You cannot reverse the transaction because it is out of balance.'; -#pragma warning disable AA0470 - Text003: Label 'You cannot reverse %1 No. %2 because the entry has a related check ledger entry.'; -#pragma warning restore AA0470 - Text004: Label 'You can only reverse entries that were posted from a journal.'; -#pragma warning disable AA0470 - Text005: Label 'You cannot reverse %1 No. %2 because the %3 is not within the allowed posting period.'; - Text006: Label 'You cannot reverse %1 No. %2 because the entry is closed.'; - Text007: Label 'You cannot reverse %1 No. %2 because the entry is included in a bank account reconciliation line. The bank reconciliation has not yet been posted.'; - Text008: Label 'You cannot reverse the transaction because the %1 has been sold.'; -#pragma warning restore AA0470 -#pragma warning restore AA0074 - CannotReverseDeletedErr: Label 'The transaction cannot be reversed, because the %1 has been compressed or a %2 has been deleted.', Comment = '%1 and %2 = table captions'; -#pragma warning disable AA0074 -#pragma warning disable AA0470 - Text010: Label 'You cannot reverse %1 No. %2 because the register has already been involved in a reversal.'; - Text011: Label 'You cannot reverse %1 No. %2 because the entry has already been involved in a reversal.'; -#pragma warning restore AA0470 -#pragma warning restore AA0074 - PostedAndAppliedSameTransactionErr: Label 'You cannot reverse register number %1 because it contains customer or vendor or employee ledger entries that have been posted and applied in the same transaction.\\You must reverse each transaction in register number %1 separately.', Comment = '%1="G/L Register No."'; - Text1100000: Label 'You can not reverse entries that sent invoices to Cartera.'; - CaptionTxt: Label '%1 %2 %3', Locked = true; - ReversalWithACYErr: Label 'Due to how Business Central posts and updates amounts in an additional reporting currency (ACY), you can''t use this feature if you use ACY. Business Central converts amounts in local currency to the alternate currency, but doesn''t net transactions. If you use ACY, you must manually reverse the amounts.'; - - protected var - GLSetup: Record "General Ledger Setup"; - TempReversalEntry: Record "Reversal Entry" temporary; - AllowPostingFrom: Date; - AllowPostingto: Date; - HideDialog: Boolean; - HideWarningDialogs: Boolean; - MaxPostingDate: Date; - - /// - /// Reverses all ledger entries from a specific transaction number. - /// - /// Transaction number to reverse - procedure ReverseTransaction(TransactionNo: Integer) - begin - ReverseEntries(TransactionNo, "Reversal Type"::Transaction); - end; - - /// - /// Reverses all ledger entries from a specific G/L register number. - /// - /// G/L register number to reverse - procedure ReverseRegister(RegisterNo: Integer) - begin - CheckRegister(RegisterNo); - ReverseEntries(RegisterNo, "Reversal Type"::Register); - end; - - local procedure ReverseEntries(Number: Integer; RevType: Option Transaction,Register) - var - ReversalPost: Codeunit "Reversal-Post"; - ReverseTransactionEntries: Page "Reverse Transaction Entries"; - IsHandled: Boolean; - begin - IsHandled := false; - OnBeforeReverseEntries(Number, RevType, IsHandled, HideDialog, Rec, HideWarningDialogs); - if IsHandled then - exit; - - InsertReversalEntry(Number, RevType); - OnReverseEntriesOnAfterInsertReversalEntry(TempReversalEntry, Number, RevType); - TempReversalEntry.SetCurrentKey("Document No.", "Posting Date", "Entry Type", "Entry No."); - if not HideDialog then begin - if (BankAccountStatement."Statement No." <> '') and (BankAccountStatement."Bank Account No." <> '') then - ReverseTransactionEntries.SetBankAccountStatement(BankAccountStatement); - ReverseTransactionEntries.SetReversalEntries(TempReversalEntry); - ReverseTransactionEntries.RunModal(); - end - else begin - ReversalPost.SetPrint(false); - ReversalPost.SetHideDialog(HideWarningDialogs); - ReversalPost.Run(TempReversalEntry); - end; - TempReversalEntry.DeleteAll(); - - OnAfterReverseEntries(Number, RevType, HideDialog); - end; - - protected procedure InsertReversalEntry(Number: Integer; RevType: Option Transaction,Register) - var - TempTransactionNoInteger: Record "Integer" temporary; - NextLineNo: Integer; - IsHandled: Boolean; - begin - IsHandled := false; - OnBeforeInsertReversalEntry(Rec, Number, RevType, IsHandled); - if IsHandled then - exit; - - GLSetup.Get(); - TempReversalEntry.DeleteAll(); - NextLineNo := 1; - TempTransactionNoInteger.Number := Number; - TempTransactionNoInteger.Insert(); - SetReverseFilter(Number, RevType); - - InsertFromCustLedgEntry(TempTransactionNoInteger, Number, RevType, NextLineNo); - InsertFromVendLedgEntry(TempTransactionNoInteger, Number, RevType, NextLineNo); - InsertFromEmplLedgerEntry(TempTransactionNoInteger, Number, RevType, NextLineNo); - InsertFromBankAccLedgEntry(TempTransactionNoInteger, Number, RevType, NextLineNo); - InsertFromFALedgEntry(TempTransactionNoInteger, Number, RevType, NextLineNo); - InsertFromMaintenanceLedgEntry(TempTransactionNoInteger, Number, RevType, NextLineNo); - InsertFromVATEntry(TempTransactionNoInteger, Number, RevType, NextLineNo); - InsertFromGLEntry(TempTransactionNoInteger, Number, RevType, NextLineNo); - OnAfterInsertReversalEntry(TempTransactionNoInteger, Number, RevType, NextLineNo, TempReversalEntry); - if TempReversalEntry.Find('-') then; - end; - - /// - /// Validates all entries in the reversal list for reversal eligibility and business rule compliance. - /// - procedure CheckEntries() - var - GLAccount: Record "G/L Account"; - DetailedCustLedgEntry: Record "Detailed Cust. Ledg. Entry"; - DetailedVendorLedgEntry: Record "Detailed Vendor Ledg. Entry"; - DetailedEmployeeLedgerEntry: Record "Detailed Employee Ledger Entry"; - DateComprRegister: Record "Date Compr. Register"; - BalanceCheckAmount: Decimal; - BalanceCheckAddCurrAmount: Decimal; - SkipCheck: Boolean; - begin - DetailedCustLedgEntry.LockTable(); - DetailedVendorLedgEntry.LockTable(); - DetailedEmployeeLedgerEntry.LockTable(); - GlobalGLEntry.LockTable(); - GlobalCustLedgerEntry.LockTable(); - GlobalVendorLedgerEntry.LockTable(); - GlobalEmployeeLedgerEntry.LockTable(); - GlobalBankAccountLedgerEntry.LockTable(); - GlobalFALedgerEntry.LockTable(); - GlobalMaintenanceLedgerEntry.LockTable(); - GlobalVATEntry.LockTable(); - GlobalGLRegister.LockTable(); - GlobalFARegister.LockTable(); - GLSetup.Get(); - MaxPostingDate := 0D; - - SkipCheck := false; - OnBeforeCheckEntries(Rec, DATABASE::"G/L Entry", SkipCheck); - if not SkipCheck then begin - if GlobalGLEntry.IsEmpty() then - Error(CannotReverseDeletedErr, GlobalGLEntry.TableCaption(), GLAccount.TableCaption()); - if GlobalGLEntry.Find('-') then begin - CheckGLEntry(); - repeat - CheckGLAcc(GlobalGLEntry, BalanceCheckAmount, BalanceCheckAddCurrAmount); - until GlobalGLEntry.Next() = 0; - end; - if (BalanceCheckAmount <> 0) or (BalanceCheckAddCurrAmount <> 0) then - Error(Text002); - end; - - if GlobalCustLedgerEntry.Find('-') then begin - SkipCheck := false; - OnBeforeCheckEntries(Rec, DATABASE::"Cust. Ledger Entry", SkipCheck); - if not SkipCheck then - repeat - CheckCust(GlobalCustLedgerEntry); - until GlobalCustLedgerEntry.Next() = 0; - end; - - if GlobalVendorLedgerEntry.Find('-') then begin - SkipCheck := false; - OnBeforeCheckEntries(Rec, DATABASE::"Vendor Ledger Entry", SkipCheck); - if not SkipCheck then - repeat - CheckVend(GlobalVendorLedgerEntry); - until GlobalVendorLedgerEntry.Next() = 0; - end; - - if GlobalEmployeeLedgerEntry.FindSet() then begin - SkipCheck := false; - OnBeforeCheckEntries(Rec, DATABASE::"Employee Ledger Entry", SkipCheck); - if not SkipCheck then - repeat - CheckEmpl(GlobalEmployeeLedgerEntry); - until GlobalEmployeeLedgerEntry.Next() = 0; - end; - - if GlobalBankAccountLedgerEntry.Find('-') then begin - SkipCheck := false; - OnBeforeCheckEntries(Rec, DATABASE::"Bank Account Ledger Entry", SkipCheck); - if not SkipCheck then - repeat - CheckBankAcc(GlobalBankAccountLedgerEntry); - until GlobalBankAccountLedgerEntry.Next() = 0; - end; - - if GlobalFALedgerEntry.Find('-') then begin - SkipCheck := false; - OnBeforeCheckEntries(Rec, DATABASE::"FA Ledger Entry", SkipCheck); - if not SkipCheck then - repeat - CheckFA(GlobalFALedgerEntry); - until GlobalFALedgerEntry.Next() = 0; - end; - - if GlobalMaintenanceLedgerEntry.Find('-') then begin - SkipCheck := false; - OnBeforeCheckEntries(Rec, DATABASE::"Maintenance Ledger Entry", SkipCheck); - if not SkipCheck then - repeat - CheckMaintenance(GlobalMaintenanceLedgerEntry); - until GlobalMaintenanceLedgerEntry.Next() = 0; - end; - - if GlobalVATEntry.Find('-') then begin - SkipCheck := false; - OnBeforeCheckEntries(Rec, DATABASE::"VAT Entry", SkipCheck); - if not SkipCheck then - repeat - CheckVAT(GlobalVATEntry); - until GlobalVATEntry.Next() = 0; - end; - - OnAfterCheckEntries(MaxPostingDate, Rec); - - DateComprRegister.CheckMaxDateCompressed(MaxPostingDate, 1); - end; - - local procedure CheckGLEntry() - var - SourceCodeSetup: Record "Source Code Setup"; - IsHandled: Boolean; - begin - IsHandled := false; - OnBeforeCheckGLEntry(Rec, GlobalGLEntry, IsHandled); - if IsHandled then - exit; - - if GlobalGLEntry."Journal Batch Name" <> '' then - exit; - - SourceCodeSetup.Get(); - if GlobalGLEntry."Source Code" = SourceCodeSetup."Payment Reconciliation Journal" then - exit; - - if GlobalGLEntry."Source Code" = SourceCodeSetup."Trans. Bank Rec. to Gen. Jnl." then - exit; - - TestFieldError(); - end; - - local procedure CheckGLAcc(GLEntry: Record "G/L Entry"; var BalanceCheckAmount: Decimal; var BalanceCheckAddCurrAmount: Decimal) - var - GLAccount: Record "G/L Account"; - Text1100100: Label 'The entry cannot be reversed'; - GLRegDoc: Codeunit "G/L Reg.-Docs."; - CarteraDoc: Record "Cartera Doc."; - CarteraSetup: Record "Cartera Setup"; - IsHandled: Boolean; - begin - OnBeforeCheckGLAcc(GLEntry); - - GLAccount.Get(GLEntry."G/L Account No."); - JnlTemplName := GLEntry."Journal Templ. Name"; - CheckPostingDate(GLEntry."Posting Date", GLEntry.TableCaption(), GLEntry."Entry No."); - IsHandled := false; - OnCheckGLAccOnBeforeTestFields(GLAccount, GLEntry, IsHandled); - if not IsHandled then begin - GLAccount.TestField(Blocked, false); - GLEntry.TestField("Job No.", ''); - end; - - if CarteraSetup.ReadPermission then - if (GLEntry."Bill No." <> '') or GLRegDoc.CheckPostedDocsInPostedBGPO(GLEntry) then - Error(Text1100100) - else - if GLEntry."Document Type" = GLEntry."Document Type"::Invoice then begin - CarteraDoc.SetCurrentKey(Type, "Document No."); - CarteraDoc.SetRange("Document No.", "Document No."); - CarteraDoc.SetRange("Document Type", CarteraDoc."Document Type"::Invoice); - if CarteraDoc.FindFirst() then - Error(Text1100000); - end; - - if GLEntry.Reversed then - AlreadyReversedEntry(GLEntry.TableCaption(), GLEntry."Entry No."); - BalanceCheckAmount := BalanceCheckAmount + GLEntry.Amount; - if GLSetup."Additional Reporting Currency" <> '' then - BalanceCheckAddCurrAmount := BalanceCheckAddCurrAmount + GLEntry."Additional-Currency Amount"; - - OnAfterCheckGLAcc(GLAccount, GLEntry); - end; - - local procedure CheckCust(CustLedgerEntry: Record "Cust. Ledger Entry") - var - Customer: Record Customer; - begin - OnBeforeCheckCust(CustLedgerEntry); - - Customer.Get(CustLedgerEntry."Customer No."); - JnlTemplName := CustLedgerEntry."Journal Templ. Name"; - CheckPostingDate(CustLedgerEntry."Posting Date", CustLedgerEntry.TableCaption(), CustLedgerEntry."Entry No."); - Customer.CheckBlockedCustOnJnls(Customer, CustLedgerEntry."Document Type", false); - if CustLedgerEntry.Reversed then - AlreadyReversedEntry(CustLedgerEntry.TableCaption(), CustLedgerEntry."Entry No."); - CheckDtldCustLedgEntry(CustLedgerEntry); - - OnAfterCheckCust(Customer, CustLedgerEntry); - end; - - local procedure CheckVend(VendorLedgerEntry: Record "Vendor Ledger Entry") - var - Vendor: Record Vendor; - begin - OnBeforeCheckVend(VendorLedgerEntry); - - Vendor.Get(VendorLedgerEntry."Vendor No."); - JnlTemplName := VendorLedgerEntry."Journal Templ. Name"; - CheckPostingDate(VendorLedgerEntry."Posting Date", VendorLedgerEntry.TableCaption(), VendorLedgerEntry."Entry No."); - Vendor.CheckBlockedVendOnJnls(Vendor, VendorLedgerEntry."Document Type", false); - if VendorLedgerEntry.Reversed then - AlreadyReversedEntry(VendorLedgerEntry.TableCaption(), VendorLedgerEntry."Entry No."); - CheckDtldVendLedgEntry(VendorLedgerEntry); - - OnAfterCheckVend(Vendor, VendorLedgerEntry); - end; - - local procedure CheckEmpl(EmployeeLedgerEntry2: Record "Employee Ledger Entry") - var - Employee: Record Employee; - begin - OnBeforeCheckEmpl(EmployeeLedgerEntry2); - Employee.Get(EmployeeLedgerEntry2."Employee No."); - JnlTemplName := EmployeeLedgerEntry2."Journal Templ. Name"; - CheckPostingDate(EmployeeLedgerEntry2."Posting Date", EmployeeLedgerEntry2.TableCaption(), EmployeeLedgerEntry2."Entry No."); - Employee.CheckBlockedEmployeeOnJnls(false); - if EmployeeLedgerEntry2.Reversed then - AlreadyReversedEntry(EmployeeLedgerEntry2.TableCaption(), EmployeeLedgerEntry2."Entry No."); - CheckDtldEmplLedgEntry(EmployeeLedgerEntry2); - - OnAfterCheckEmpl(Employee, EmployeeLedgerEntry2); - end; - - local procedure CheckBankAcc(BankAccountLedgerEntry: Record "Bank Account Ledger Entry") - var - BankAccount: Record "Bank Account"; - CheckLedgerEntry: Record "Check Ledger Entry"; - IsHandled: Boolean; - begin - IsHandled := false; - OnBeforeCheckBankAcc(BankAccountLedgerEntry, IsHandled); - if IsHandled then - exit; - - BankAccount.Get(BankAccountLedgerEntry."Bank Account No."); - JnlTemplName := BankAccountLedgerEntry."Journal Templ. Name"; - CheckPostingDate(BankAccountLedgerEntry."Posting Date", BankAccountLedgerEntry.TableCaption(), BankAccountLedgerEntry."Entry No."); - BankAccount.TestField(Blocked, false); - if BankAccountLedgerEntry.Reversed then - AlreadyReversedEntry(BankAccountLedgerEntry.TableCaption(), BankAccountLedgerEntry."Entry No."); - if not BankAccountLedgerEntry.Open then - Error( - Text006, BankAccountLedgerEntry.TableCaption(), BankAccountLedgerEntry."Entry No."); - if BankAccountLedgerEntry."Statement No." <> '' then - Error( - Text007, BankAccountLedgerEntry.TableCaption(), BankAccountLedgerEntry."Entry No."); - CheckLedgerEntry.SetRange("Bank Account Ledger Entry No.", BankAccountLedgerEntry."Entry No."); - if not CheckLedgerEntry.IsEmpty() then - Error( - Text003, BankAccountLedgerEntry.TableCaption(), BankAccountLedgerEntry."Entry No."); - - OnAfterCheckBankAcc(BankAccount, BankAccountLedgerEntry); - end; - - local procedure CheckFA(FALedgerEntry: Record "FA Ledger Entry") - var - FixedAsset: Record "Fixed Asset"; - FADepreciationBook: Record "FA Depreciation Book"; - DepreciationCalculation: Codeunit "Depreciation Calculation"; - IsHandled: Boolean; - begin - IsHandled := false; - OnBeforeCheckFA(FALedgerEntry, IsHandled); - if IsHandled then - exit; - - FixedAsset.Get(FALedgerEntry."FA No."); - CheckPostingDate(FALedgerEntry."Posting Date", FALedgerEntry.TableCaption(), FALedgerEntry."Entry No."); - CheckFAPostingDate(FALedgerEntry."FA Posting Date", FALedgerEntry.TableCaption(), FALedgerEntry."Entry No."); - FixedAsset.TestField(Blocked, false); - FixedAsset.TestField(Inactive, false); - if FALedgerEntry.Reversed then - AlreadyReversedEntry(FALedgerEntry.TableCaption(), FALedgerEntry."Entry No."); - FALedgerEntry.TestField("Depreciation Book Code"); - FADepreciationBook.Get(FixedAsset."No.", FALedgerEntry."Depreciation Book Code"); - if FADepreciationBook."Disposal Date" <> 0D then - Error(Text008, DepreciationCalculation.FAName(FixedAsset, FALedgerEntry."Depreciation Book Code")); - FALedgerEntry.TestField("G/L Entry No."); - - OnAfterCheckFA(FixedAsset, FALedgerEntry); - end; - - local procedure CheckMaintenance(MaintenanceLedgerEntry: Record "Maintenance Ledger Entry") - var - FixedAsset: Record "Fixed Asset"; - FADepreciationBook: Record "FA Depreciation Book"; - begin - OnBeforeCheckMaintenance(MaintenanceLedgerEntry); - FixedAsset.Get(MaintenanceLedgerEntry."FA No."); - CheckPostingDate(MaintenanceLedgerEntry."Posting Date", MaintenanceLedgerEntry.TableCaption(), MaintenanceLedgerEntry."Entry No."); - CheckFAPostingDate(MaintenanceLedgerEntry."FA Posting Date", MaintenanceLedgerEntry.TableCaption(), MaintenanceLedgerEntry."Entry No."); - FixedAsset.TestField(Blocked, false); - FixedAsset.TestField(Inactive, false); - MaintenanceLedgerEntry.TestField("Depreciation Book Code"); - if MaintenanceLedgerEntry.Reversed then - AlreadyReversedEntry(MaintenanceLedgerEntry.TableCaption(), MaintenanceLedgerEntry."Entry No."); - FADepreciationBook.Get(FixedAsset."No.", MaintenanceLedgerEntry."Depreciation Book Code"); - MaintenanceLedgerEntry.TestField("G/L Entry No."); - - OnAfterCheckMaintenance(FixedAsset, MaintenanceLedgerEntry); - end; - - local procedure CheckVAT(VATEntry: Record "VAT Entry") - var - IsHandled: Boolean; - begin - IsHandled := false; - OnBeforeCheckVAT(VATEntry, IsHandled); - if IsHandled then - exit; - - JnlTemplName := VATEntry."Journal Templ. Name"; - CheckPostingDate(VATEntry."Posting Date", VATEntry.TableCaption(), VATEntry."Entry No."); - if VATEntry.Closed then - Error( - Text006, VATEntry.TableCaption(), VATEntry."Entry No."); - if VATEntry.Reversed then - AlreadyReversedEntry(VATEntry.TableCaption(), VATEntry."Entry No."); - - OnAfterCheckVAT(VATEntry); - end; - - local procedure CheckDtldCustLedgEntry(CustLedgerEntry: Record "Cust. Ledger Entry") - var - DetailedCustLedgEntry: Record "Detailed Cust. Ledg. Entry"; - IsHandled: Boolean; - begin - IsHandled := false; - OnBeforeCheckDtldCustLedgEntry(CustLedgerEntry, IsHandled); - if IsHandled then - exit; - - DetailedCustLedgEntry.SetCurrentKey("Cust. Ledger Entry No.", "Entry Type"); - DetailedCustLedgEntry.SetRange("Cust. Ledger Entry No.", CustLedgerEntry."Entry No."); - DetailedCustLedgEntry.SetFilter("Entry Type", '<>%1', DetailedCustLedgEntry."Entry Type"::"Initial Entry"); - DetailedCustLedgEntry.SetRange(Unapplied, false); - if not DetailedCustLedgEntry.IsEmpty() then - Error(ReversalErrorForChangedEntry(CustLedgerEntry.TableCaption(), CustLedgerEntry."Entry No.")); - - GLSetup.Get(); - if GLSetup."Additional Reporting Currency" <> '' then begin - DetailedCustLedgEntry.Reset(); - DetailedCustLedgEntry.SetCurrentKey("Transaction No.", "Customer No.", "Entry Type"); - DetailedCustLedgEntry.SetRange("Transaction No.", CustLedgerEntry."Transaction No."); - DetailedCustLedgEntry.SetRange("Customer No.", CustLedgerEntry."Customer No."); - DetailedCustLedgEntry.SetFilter("Entry Type", '%1|%2', - DetailedCustLedgEntry."Entry Type"::"Realized Gain", DetailedCustLedgEntry."Entry Type"::"Realized Loss"); - if not DetailedCustLedgEntry.IsEmpty() then - Error(ReversalWithACYErr); - end; - - OnAfterCheckDtldCustLedgEntry(DetailedCustLedgEntry, CustLedgerEntry); - end; - - local procedure CheckDtldVendLedgEntry(VendorLedgerEntry: Record "Vendor Ledger Entry") - var - DetailedVendorLedgEntry: Record "Detailed Vendor Ledg. Entry"; - IsHandled: Boolean; - begin - IsHandled := false; - OnBeforeCCheckDtldVendLedgEntry(VendorLedgerEntry, IsHandled); - if IsHandled then - exit; - - DetailedVendorLedgEntry.SetCurrentKey("Vendor Ledger Entry No.", "Entry Type"); - DetailedVendorLedgEntry.SetRange("Vendor Ledger Entry No.", VendorLedgerEntry."Entry No."); - DetailedVendorLedgEntry.SetFilter("Entry Type", '<>%1', DetailedVendorLedgEntry."Entry Type"::"Initial Entry"); - DetailedVendorLedgEntry.SetRange(Unapplied, false); - if not DetailedVendorLedgEntry.IsEmpty() then - Error(ReversalErrorForChangedEntry(VendorLedgerEntry.TableCaption(), VendorLedgerEntry."Entry No.")); - - GLSetup.Get(); - if GLSetup."Additional Reporting Currency" <> '' then begin - DetailedVendorLedgEntry.Reset(); - DetailedVendorLedgEntry.SetCurrentKey("Transaction No.", "Vendor No.", "Entry Type"); - DetailedVendorLedgEntry.SetRange("Transaction No.", VendorLedgerEntry."Transaction No."); - DetailedVendorLedgEntry.SetRange("Vendor No.", VendorLedgerEntry."Vendor No."); - DetailedVendorLedgEntry.SetFilter("Entry Type", '%1|%2', - DetailedVendorLedgEntry."Entry Type"::"Realized Gain", DetailedVendorLedgEntry."Entry Type"::"Realized Loss"); - if not DetailedVendorLedgEntry.IsEmpty() then - Error(ReversalWithACYErr); - end; - OnAfterCheckDtldVendLedgEntry(DetailedVendorLedgEntry, VendorLedgerEntry); - end; - - local procedure CheckDtldEmplLedgEntry(EmployeeLedgerEntry2: Record "Employee Ledger Entry") - var - DetailedEmployeeLedgerEntry: Record "Detailed Employee Ledger Entry"; - begin - DetailedEmployeeLedgerEntry.SetRange("Employee Ledger Entry No.", EmployeeLedgerEntry2."Entry No."); - DetailedEmployeeLedgerEntry.SetFilter("Entry Type", '<>%1', DetailedEmployeeLedgerEntry."Entry Type"::"Initial Entry"); - DetailedEmployeeLedgerEntry.SetRange(Unapplied, false); - if not DetailedEmployeeLedgerEntry.IsEmpty() then - Error(ReversalErrorForChangedEntry(EmployeeLedgerEntry2.TableCaption(), EmployeeLedgerEntry2."Entry No.")); - - OnAfterCheckDtldEmplLedgEntry(DetailedEmployeeLedgerEntry, EmployeeLedgerEntry2); - end; - - local procedure CheckRegister(RegisterNo: Integer) - var - GLRegister: Record "G/L Register"; - IsHandled: Boolean; - begin - IsHandled := false; - OnBeforeCheckRegister(RegisterNo, IsHandled, Rec); - if IsHandled then - exit; - - GLRegister.Get(RegisterNo); - if GLRegister.Reversed then - Error(Text010, GLRegister.TableCaption(), GLRegister."No."); - if GLRegister."Journal Batch Name" = '' then - TempReversalEntry.TestFieldError(); - end; - - /// - /// Sets up filters on ledger entry tables for reversal processing based on transaction or register number. - /// - /// Transaction or register number to filter by - /// Type of reversal (Transaction or Register) - procedure SetReverseFilter(Number: Integer; RevType: Option Transaction,Register) - var - IsHandled: Boolean; - begin - IsHandled := false; - OnBeforeSetReverseFilter(Number, RevType, GlobalGLEntry, GlobalCustLedgerEntry, GlobalVendorLedgerEntry, GlobalEmployeeLedgerEntry, GlobalBankAccountLedgerEntry, GlobalVATEntry, GlobalFALedgerEntry, GlobalMaintenanceLedgerEntry, GlobalGLRegister, Rec, IsHandled); - if IsHandled then - exit; - - if RevType = RevType::Transaction then begin - GlobalGLEntry.SetCurrentKey("Transaction No."); - GlobalCustLedgerEntry.SetCurrentKey("Transaction No."); - GlobalVendorLedgerEntry.SetCurrentKey("Transaction No."); - GlobalEmployeeLedgerEntry.SetCurrentKey("Transaction No."); - GlobalBankAccountLedgerEntry.SetCurrentKey("Transaction No."); - GlobalFALedgerEntry.SetCurrentKey("Transaction No."); - GlobalMaintenanceLedgerEntry.SetCurrentKey("Transaction No."); - GlobalVATEntry.SetCurrentKey("Transaction No."); - GlobalGLEntry.SetRange("Transaction No.", Number); - GlobalCustLedgerEntry.SetRange("Transaction No.", Number); - GlobalVendorLedgerEntry.SetRange("Transaction No.", Number); - GlobalEmployeeLedgerEntry.SetRange("Transaction No.", Number); - GlobalBankAccountLedgerEntry.SetRange("Transaction No.", Number); - GlobalFALedgerEntry.SetRange("Transaction No.", Number); - GlobalFALedgerEntry.SetFilter("G/L Entry No.", '<>%1', 0); - GlobalMaintenanceLedgerEntry.SetRange("Transaction No.", Number); - GlobalVATEntry.SetRange("Transaction No.", Number); - end else begin - GlobalGLRegister.Get(Number); - GlobalGLEntry.SetRange("Entry No.", GlobalGLRegister."From Entry No.", GlobalGLRegister."To Entry No."); - GlobalCustLedgerEntry.SetRange("Entry No.", GlobalGLRegister."From Entry No.", GlobalGLRegister."To Entry No."); - GlobalVendorLedgerEntry.SetRange("Entry No.", GlobalGLRegister."From Entry No.", GlobalGLRegister."To Entry No."); - GlobalEmployeeLedgerEntry.SetRange("Entry No.", GlobalGLRegister."From Entry No.", GlobalGLRegister."To Entry No."); - GlobalBankAccountLedgerEntry.SetRange("Entry No.", GlobalGLRegister."From Entry No.", GlobalGLRegister."To Entry No."); - GlobalFALedgerEntry.SetCurrentKey("G/L Entry No."); - GlobalFALedgerEntry.SetRange("G/L Entry No.", GlobalGLRegister."From Entry No.", GlobalGLRegister."To Entry No."); - GlobalMaintenanceLedgerEntry.SetCurrentKey("G/L Entry No."); - GlobalMaintenanceLedgerEntry.SetRange("G/L Entry No.", GlobalGLRegister."From Entry No.", GlobalGLRegister."To Entry No."); - GlobalVATEntry.SetRange("Entry No.", GlobalGLRegister."From VAT Entry No.", GlobalGLRegister."To VAT Entry No."); - end; - - OnAfterSetReverseFilter(Number, RevType, GlobalGLRegister, Rec); - end; - - /// - /// Copies reversal filters from global ledger entry variables to passed ledger entry record variables. - /// - /// G/L Entry record variable to copy filters to - /// Customer Ledger Entry record variable to copy filters to - /// Vendor Ledger Entry record variable to copy filters to - /// Bank Account Ledger Entry record variable to copy filters to - /// VAT Entry record variable to copy filters to - /// Fixed Asset Ledger Entry record variable to copy filters to - /// Maintenance Ledger Entry record variable to copy filters to - /// Employee Ledger Entry record variable to copy filters to - procedure CopyReverseFilters(var GLEntry: Record "G/L Entry"; var CustLedgerEntry: Record "Cust. Ledger Entry"; var VendorLedgerEntry: Record "Vendor Ledger Entry"; var BankAccountLedgerEntry: Record "Bank Account Ledger Entry"; var VATEntry: Record "VAT Entry"; var FALedgerEntry: Record "FA Ledger Entry"; var MaintenanceLedgerEntry: Record "Maintenance Ledger Entry"; var EmployeeLedgerEntry: Record "Employee Ledger Entry") - begin - GLEntry.Copy(GlobalGLEntry); - CustLedgerEntry.Copy(GlobalCustLedgerEntry); - VendorLedgerEntry.Copy(GlobalVendorLedgerEntry); - EmployeeLedgerEntry.Copy(GlobalEmployeeLedgerEntry); - BankAccountLedgerEntry.Copy(GlobalBankAccountLedgerEntry); - VATEntry.Copy(GlobalVATEntry); - FALedgerEntry.Copy(GlobalFALedgerEntry); - MaintenanceLedgerEntry.Copy(GlobalMaintenanceLedgerEntry); - end; - - /// - /// Opens the G/L Entries page filtered for reversal candidates. - /// - procedure ShowGLEntries() - begin - PAGE.Run(0, GlobalGLEntry); - end; - - /// - /// Opens the Customer Ledger Entries page filtered for reversal candidates. - /// - procedure ShowCustLedgEntries() - begin - PAGE.Run(0, GlobalCustLedgerEntry); - end; - - /// - /// Opens the Vendor Ledger Entries page filtered for reversal candidates. - /// - procedure ShowVendLedgEntries() - begin - PAGE.Run(0, GlobalVendorLedgerEntry); - end; - - /// - /// Opens the Bank Account Ledger Entries page filtered for reversal candidates. - /// - procedure ShowBankAccLedgEntries() - begin - PAGE.Run(0, GlobalBankAccountLedgerEntry); - end; - - /// - /// Opens the Fixed Asset Ledger Entries page filtered for reversal candidates. - /// - procedure ShowFALedgEntries() - begin - PAGE.Run(0, GlobalFALedgerEntry); - end; - - /// - /// Opens the Maintenance Ledger Entries page filtered for reversal candidates. - /// - procedure ShowMaintenanceLedgEntries() - begin - PAGE.Run(0, GlobalMaintenanceLedgerEntry); - end; - - /// - /// Opens the VAT Entries page filtered for reversal candidates. - /// - procedure ShowVATEntries() - begin - PAGE.Run(0, GlobalVATEntry); - end; - - /// - /// Returns a caption describing the entry for display purposes. - /// - /// Caption text based on entry type and source information - procedure Caption() Result: Text - var - GLAccount: Record "G/L Account"; - Customer: Record Customer; - Vendor: Record Vendor; - Employee: Record Employee; - BankAccount: Record "Bank Account"; - FixedAsset: Record "Fixed Asset"; - NewCaption: Text; - IsHandled: Boolean; - begin - IsHandled := false; - OnBeforeCaption(Rec, Result, IsHandled); - if IsHandled then - exit; - - case "Entry Type" of - "Entry Type"::"G/L Account": - begin - if GlobalGLEntry.Get("Entry No.") then; - if GLAccount.Get(GlobalGLEntry."G/L Account No.") then; - exit(StrSubstNo(CaptionTxt, GLAccount.TableCaption(), GLAccount."No.", GLAccount.Name)); - end; - "Entry Type"::Customer: - begin - if GlobalCustLedgerEntry.Get("Entry No.") then; - if Customer.Get(GlobalCustLedgerEntry."Customer No.") then; - exit(StrSubstNo(CaptionTxt, Customer.TableCaption(), Customer."No.", Customer.Name)); - end; - "Entry Type"::Vendor: - begin - if GlobalVendorLedgerEntry.Get("Entry No.") then; - if Vendor.Get(GlobalVendorLedgerEntry."Vendor No.") then; - exit(StrSubstNo(CaptionTxt, Vendor.TableCaption(), Vendor."No.", Vendor.Name)); - end; - "Entry Type"::Employee: - begin - if GlobalEmployeeLedgerEntry.Get("Entry No.") then; - if Employee.Get(GlobalEmployeeLedgerEntry."Employee No.") then; - exit(StrSubstNo(CaptionTxt, Employee.TableCaption(), Employee."No.", Employee.FullName())); - end; - "Entry Type"::"Bank Account": - begin - if GlobalBankAccountLedgerEntry.Get("Entry No.") then; - if BankAccount.Get(GlobalBankAccountLedgerEntry."Bank Account No.") then; - exit(StrSubstNo(CaptionTxt, BankAccount.TableCaption(), BankAccount."No.", BankAccount.Name)); - end; - "Entry Type"::"Fixed Asset": - begin - if GlobalFALedgerEntry.Get("Entry No.") then; - if FixedAsset.Get(GlobalFALedgerEntry."FA No.") then; - exit(StrSubstNo(CaptionTxt, FixedAsset.TableCaption(), FixedAsset."No.", FixedAsset.Description)); - end; - "Entry Type"::Maintenance: - begin - if GlobalMaintenanceLedgerEntry.Get("Entry No.") then; - if FixedAsset.Get(GlobalMaintenanceLedgerEntry."FA No.") then; - exit(StrSubstNo(CaptionTxt, FixedAsset.TableCaption(), FixedAsset."No.", FixedAsset.Description)); - end; - "Entry Type"::VAT: - exit(StrSubstNo('%1', GlobalVATEntry.TableCaption())); - else begin - OnAfterCaption(Rec, NewCaption); - exit(NewCaption); - end; - end; - end; - - /// - /// Validates that the posting date allows reversal based on allowed posting date range. - /// - /// Posting date to validate - /// Table caption for error messaging - /// Entry number for error messaging - procedure CheckPostingDate(PostingDate: Date; TableCaption: Text; EntryNo: Integer) - var - IsHandled: Boolean; - begin - IsHandled := false; - OnBeforeCheckPostingDate(PostingDate, CopyStr(TableCaption, 1, 50), EntryNo, IsHandled, Rec, MaxPostingDate); - if IsHandled then - exit; - - if GenJnlCheckLine.DateNotAllowed(PostingDate, JnlTemplName) then - Error(Text001, TableCaption, EntryNo); - if PostingDate > MaxPostingDate then - MaxPostingDate := PostingDate; - end; - - /// - /// Validates that the Fixed Asset posting date allows reversal based on FA allowed posting date range. - /// - /// FA posting date to validate - /// Table caption for error messaging - /// Entry number for error messaging - procedure CheckFAPostingDate(FAPostingDate: Date; TableCaption: Text; EntryNo: Integer) - var - UserSetup: Record "User Setup"; - FASetup: Record "FA Setup"; - IsHandled: Boolean; - begin - IsHandled := false; - OnBeforeCheckFAPostingDate(FAPostingDate, CopyStr(TableCaption, 1, 50), EntryNo, IsHandled, Rec, MaxPostingDate, AllowPostingFrom, AllowPostingto, xRec); - if IsHandled then - exit; - - if (AllowPostingFrom = 0D) and (AllowPostingto = 0D) then begin - if UserId <> '' then - if UserSetup.Get(UserId) then begin - AllowPostingFrom := UserSetup."Allow FA Posting From"; - AllowPostingto := UserSetup."Allow FA Posting To"; - end; - if (AllowPostingFrom = 0D) and (AllowPostingto = 0D) then begin - FASetup.Get(); - AllowPostingFrom := FASetup."Allow FA Posting From"; - AllowPostingto := FASetup."Allow FA Posting To"; - end; - if AllowPostingto = 0D then - AllowPostingto := 99981231D; - end; - if (FAPostingDate < AllowPostingFrom) or (FAPostingDate > AllowPostingto) then - Error(Text005, TableCaption, EntryNo, GlobalFALedgerEntry.FieldCaption("FA Posting Date")); - if FAPostingDate > MaxPostingDate then - MaxPostingDate := FAPostingDate; - end; - - /// - /// Raises an error indicating missing required field values for reversal operation. - /// - procedure TestFieldError() - begin - Error(Text004); - end; - - /// - /// Raises an error indicating the entry has already been reversed. - /// - /// Table caption for error messaging - /// Entry number that was already reversed - procedure AlreadyReversedEntry(TableCaption: Text; EntryNo: Integer) - begin - Error(Text011, TableCaption, EntryNo); - end; - - /// - /// Verifies that reversal entries are valid and consistent for the specified transaction or register. - /// - /// Reversal entry record to compare against - /// Transaction or register number to verify - /// Type of reversal (Transaction or Register) - /// True if reversal entries are valid, false otherwise - procedure VerifyReversalEntries(var ReversalEntry2: Record "Reversal Entry"; Number: Integer; RevType: Option Transaction,Register) Result: Boolean - var - IsHandled: Boolean; - begin - IsHandled := false; - OnBeforeVerifyReversalEntries(ReversalEntry2, Number, RevType, IsHandled, Result); - if IsHandled then - exit(Result); - - InsertReversalEntry(Number, RevType); - Clear(TempReversalEntry); - Clear(ReversalEntry2); - if ReversalEntry2.FindSet() then - repeat - if TempReversalEntry.Next() = 0 then - exit(false); - if not TempReversalEntry.Equal(ReversalEntry2) then - exit(false); - until ReversalEntry2.Next() = 0; - exit(TempReversalEntry.Next() = 0); - end; - - /// - /// Compares two reversal entries for equality based on Entry Type and Entry No. - /// - /// Reversal entry to compare against - /// True if entries are equal, false otherwise - procedure Equal(ReversalEntry2: Record "Reversal Entry"): Boolean - begin - exit( - ("Entry Type" = ReversalEntry2."Entry Type") and - ("Entry No." = ReversalEntry2."Entry No.")); - end; - - /// - /// Returns an error message for entries that have been changed since reversal preparation. - /// - /// Table caption for error messaging - /// Entry number that has changed - /// Formatted error message text - procedure ReversalErrorForChangedEntry(TableCaption: Text; EntryNo: Integer): Text[1024] - begin - exit(StrSubstNo(Text000, TableCaption, EntryNo)); - end; - - /// - /// Sets whether to hide dialog boxes during reversal processing. - /// - /// True to hide dialogs, false to show dialogs - procedure SetHideDialog(NewHideDialog: Boolean) - begin - HideDialog := NewHideDialog; - end; - - /// - /// Sets both dialog hiding and warning dialog hiding for batch processing. - /// - procedure SetHideWarningDialogs() - begin - HideDialog := true; - HideWarningDialogs := true; - end; - - /// - /// Sets the bank account statement context for bank account ledger entry reversals. - /// - /// Bank account number - /// Bank statement number - procedure SetBankAccountStatement(BankAccountNo: Code[20]; StatementNo: Code[20]) - begin - BankAccountStatement.Get(BankAccountNo, StatementNo); - end; - - protected procedure InsertFromCustLedgEntry(var TempTransactionInteger: Record "Integer" temporary; Number: Integer; RevType: Option Transaction,Register; var NextLineNo: Integer) - var - Customer: Record Customer; - DetailedCustLedgEntry: Record "Detailed Cust. Ledg. Entry"; - IsHandled: Boolean; - begin - DetailedCustLedgEntry.SetCurrentKey("Transaction No.", "Customer No.", "Entry Type"); - DetailedCustLedgEntry.SetFilter( - "Entry Type", '<>%1', DetailedCustLedgEntry."Entry Type"::"Initial Entry"); - if GlobalCustLedgerEntry.FindSet() then - repeat - DetailedCustLedgEntry.SetRange("Transaction No.", GlobalCustLedgerEntry."Transaction No."); - DetailedCustLedgEntry.SetRange("Customer No.", GlobalCustLedgerEntry."Customer No."); - IsHandled := false; - OnInsertFromCustLedgEntryOnBeforeCheckSameTransaction(GlobalCustLedgerEntry, DetailedCustLedgEntry, IsHandled); - if not IsHandled then - if (not DetailedCustLedgEntry.IsEmpty) and (RevType = RevType::Register) then - Error(PostedAndAppliedSameTransactionErr, Number); - - Clear(TempReversalEntry); - if RevType = RevType::Register then - TempReversalEntry."G/L Register No." := Number; - TempReversalEntry."Reversal Type" := RevType; - TempReversalEntry."Entry Type" := TempReversalEntry."Entry Type"::Customer; - Customer.Get(GlobalCustLedgerEntry."Customer No."); - TempReversalEntry."Account No." := Customer."No."; - TempReversalEntry."Account Name" := Customer.Name; - TempReversalEntry.CopyFromCustLedgEntry(GlobalCustLedgerEntry); - TempReversalEntry."Line No." := NextLineNo; - NextLineNo := NextLineNo + 1; - OnInsertFromCustLedgEntryOnBeforeTempReversalEntryInsert(TempReversalEntry, GlobalCustLedgerEntry); - TempReversalEntry.Insert(); - - DetailedCustLedgEntry.SetRange(Unapplied, true); - if DetailedCustLedgEntry.FindSet() then - repeat - InsertCustTempRevertTransNo(TempTransactionInteger, DetailedCustLedgEntry."Unapplied by Entry No."); - until DetailedCustLedgEntry.Next() = 0; - DetailedCustLedgEntry.SetRange(Unapplied); - until GlobalCustLedgerEntry.Next() = 0; - - OnAfterInsertFromCustLedgEntry(TempTransactionInteger, Number, RevType, NextLineNo, TempReversalEntry, GlobalCustLedgerEntry); - end; - - protected procedure InsertFromVendLedgEntry(var TempTransactionNoInteger: Record "Integer" temporary; Number: Integer; RevType: Option Transaction,Register; var NextLineNo: Integer) - var - Vendor: Record Vendor; - DetailedVendorLedgEntry: Record "Detailed Vendor Ledg. Entry"; - IsHandled: Boolean; - begin - DetailedVendorLedgEntry.SetCurrentKey("Transaction No.", "Vendor No.", "Entry Type"); - DetailedVendorLedgEntry.SetFilter( - "Entry Type", '<>%1', DetailedVendorLedgEntry."Entry Type"::"Initial Entry"); - if GlobalVendorLedgerEntry.FindSet() then - repeat - DetailedVendorLedgEntry.SetRange("Transaction No.", GlobalVendorLedgerEntry."Transaction No."); - DetailedVendorLedgEntry.SetRange("Vendor No.", GlobalVendorLedgerEntry."Vendor No."); - IsHandled := false; - OnInsertFromVendLedgEntryOnBeforeCheckSameTransaction(GlobalVendorLedgerEntry, DetailedVendorLedgEntry, IsHandled); - if not IsHandled then - if (not DetailedVendorLedgEntry.IsEmpty()) and (RevType = RevType::Register) then - Error(PostedAndAppliedSameTransactionErr, Number); - - Clear(TempReversalEntry); - if RevType = RevType::Register then - TempReversalEntry."G/L Register No." := Number; - TempReversalEntry."Reversal Type" := RevType; - TempReversalEntry."Entry Type" := TempReversalEntry."Entry Type"::Vendor; - Vendor.Get(GlobalVendorLedgerEntry."Vendor No."); - TempReversalEntry."Account No." := Vendor."No."; - TempReversalEntry."Account Name" := Vendor.Name; - TempReversalEntry.CopyFromVendLedgEntry(GlobalVendorLedgerEntry); - TempReversalEntry."Line No." := NextLineNo; - NextLineNo := NextLineNo + 1; - OnInsertFromVendLedgEntryOnBeforeTempReversalEntryInsert(TempReversalEntry, GlobalVendorLedgerEntry); - TempReversalEntry.Insert(); - - DetailedVendorLedgEntry.SetRange(Unapplied, true); - if DetailedVendorLedgEntry.FindSet() then - repeat - InsertVendTempRevertTransNo(TempTransactionNoInteger, DetailedVendorLedgEntry."Unapplied by Entry No."); - until DetailedVendorLedgEntry.Next() = 0; - DetailedVendorLedgEntry.SetRange(Unapplied); - until GlobalVendorLedgerEntry.Next() = 0; - - OnAfterInsertFromVendLedgEntry(TempTransactionNoInteger, Number, RevType, NextLineNo, TempReversalEntry, GlobalVendorLedgerEntry); - end; - - protected procedure InsertFromEmplLedgerEntry(var TempTransactionNoInteger: Record "Integer" temporary; Number: Integer; RevType: Option Transaction,Register; var NextLineNo: Integer) - var - DetailedEmployeeLedgerEntry: Record "Detailed Employee Ledger Entry"; - begin - DetailedEmployeeLedgerEntry.SetCurrentKey("Transaction No.", "Employee No.", "Entry Type"); - DetailedEmployeeLedgerEntry.SetFilter( - "Entry Type", '<>%1', DetailedEmployeeLedgerEntry."Entry Type"::"Initial Entry"); - - if GlobalEmployeeLedgerEntry.FindSet() then - repeat - DetailedEmployeeLedgerEntry.SetRange("Transaction No.", GlobalEmployeeLedgerEntry."Transaction No."); - DetailedEmployeeLedgerEntry.SetRange("Employee No.", GlobalEmployeeLedgerEntry."Employee No."); - if (not DetailedEmployeeLedgerEntry.IsEmpty) and (RevType = RevType::Register) then - Error(PostedAndAppliedSameTransactionErr, Number); - - InsertTempReversalEntryEmployee(Number, RevType, NextLineNo); - NextLineNo += 1; - - InsertTempRevertTransactionNoUnappliedEmployeeEntries(TempTransactionNoInteger, DetailedEmployeeLedgerEntry); - - until GlobalEmployeeLedgerEntry.Next() = 0; - - OnAfterInsertFromEmplLedgEntry(TempTransactionNoInteger, Number, RevType, NextLineNo, TempReversalEntry, GlobalEmployeeLedgerEntry); - end; - - protected procedure InsertFromBankAccLedgEntry(TempTransactionNoInteger: Record "Integer" temporary; Number: Integer; RevType: Option Transaction,Register; var NextLineNo: Integer) - var - BankAccount: Record "Bank Account"; - begin - if GlobalBankAccountLedgerEntry.FindSet() then - repeat - OnInsertFromBankAccLedgEntryOnStartRepeatBankAccLedgEntry(GlobalBankAccountLedgerEntry); - Clear(TempReversalEntry); - if RevType = RevType::Register then - TempReversalEntry."G/L Register No." := Number; - TempReversalEntry."Reversal Type" := RevType; - TempReversalEntry."Entry Type" := TempReversalEntry."Entry Type"::"Bank Account"; - BankAccount.Get(GlobalBankAccountLedgerEntry."Bank Account No."); - TempReversalEntry."Account No." := BankAccount."No."; - TempReversalEntry."Account Name" := BankAccount.Name; - TempReversalEntry.CopyFromBankAccLedgEntry(GlobalBankAccountLedgerEntry); - TempReversalEntry."Line No." := NextLineNo; - NextLineNo := NextLineNo + 1; - TempReversalEntry.Insert(); - until GlobalBankAccountLedgerEntry.Next() = 0; - - OnAfterInsertFromBankAccLedgEntry(TempTransactionNoInteger, Number, RevType, NextLineNo, TempReversalEntry, GlobalBankAccountLedgerEntry); - end; - - protected procedure InsertFromFALedgEntry(TempTransactionNoInteger: Record "Integer" temporary; Number: Integer; RevType: Option Transaction,Register; var NextLineNo: Integer) - var - FixedAsset: Record "Fixed Asset"; - IsHandled: Boolean; - begin - IsHandled := false; - OnBeforeInsertFromFALedgEntry(TempTransactionNoInteger, Number, RevType, NextLineNo, TempReversalEntry, GlobalFALedgerEntry, IsHandled); - if IsHandled then - exit; - - if GlobalFALedgerEntry.FindSet() then - repeat - Clear(TempReversalEntry); - if RevType = RevType::Register then - TempReversalEntry."G/L Register No." := Number; - TempReversalEntry."Reversal Type" := RevType; - TempReversalEntry."Entry Type" := TempReversalEntry."Entry Type"::"Fixed Asset"; - FixedAsset.Get(GlobalFALedgerEntry."FA No."); - TempReversalEntry."Account No." := FixedAsset."No."; - TempReversalEntry."Account Name" := FixedAsset.Description; - TempReversalEntry.CopyFromFALedgEntry(GlobalFALedgerEntry); - if GlobalFALedgerEntry."FA Posting Type" <> GlobalFALedgerEntry."FA Posting Type"::"Salvage Value" then begin - TempReversalEntry."Line No." := NextLineNo; - NextLineNo := NextLineNo + 1; - TempReversalEntry.Insert(); - end; - until GlobalFALedgerEntry.Next() = 0; - - OnAfterInsertFromFALedgEntry(TempTransactionNoInteger, Number, RevType, NextLineNo, TempReversalEntry, GlobalFALedgerEntry); - end; - - protected procedure InsertFromMaintenanceLedgEntry(TempTransactionNoInteger: Record "Integer" temporary; Number: Integer; RevType: Option Transaction,Register; var NextLineNo: Integer) - var - FixedAsset: Record "Fixed Asset"; - begin - if GlobalMaintenanceLedgerEntry.FindSet() then - repeat - Clear(TempReversalEntry); - if RevType = RevType::Register then - TempReversalEntry."G/L Register No." := Number; - TempReversalEntry."Reversal Type" := RevType; - TempReversalEntry."Entry Type" := TempReversalEntry."Entry Type"::Maintenance; - FixedAsset.Get(GlobalMaintenanceLedgerEntry."FA No."); - TempReversalEntry."Account No." := FixedAsset."No."; - TempReversalEntry."Account Name" := FixedAsset.Description; - TempReversalEntry.CopyFromMaintenanceEntry(GlobalMaintenanceLedgerEntry); - TempReversalEntry."Line No." := NextLineNo; - NextLineNo := NextLineNo + 1; - TempReversalEntry.Insert(); - until GlobalMaintenanceLedgerEntry.Next() = 0; - - OnAfterInsertFromMaintenanceLedgEntry(TempTransactionNoInteger, Number, RevType, NextLineNo, TempReversalEntry, GlobalMaintenanceLedgerEntry); - end; - - protected procedure InsertFromVATEntry(var TempTransactionNoInteger: Record "Integer" temporary; Number: Integer; RevType: Option Transaction,Register; var NextLineNo: Integer) - begin - TempTransactionNoInteger.FindSet(); - repeat - if RevType = RevType::Transaction then - GlobalVATEntry.SetRange("Transaction No.", TempTransactionNoInteger.Number); - OnInsertFromVATEntryOnAfterVATEntrySetRange(GlobalVATEntry, RevType, TempTransactionNoInteger); - if GlobalVATEntry.FindSet() then - repeat - OnInsertFromVATEntryOnStartRepeatVATEntry(GlobalVATEntry); - Clear(TempReversalEntry); - if RevType = RevType::Register then - TempReversalEntry."G/L Register No." := Number; - TempReversalEntry."Reversal Type" := RevType; - TempReversalEntry."Entry Type" := TempReversalEntry."Entry Type"::VAT; - TempReversalEntry.CopyFromVATEntry(GlobalVATEntry); - TempReversalEntry."Line No." := NextLineNo; - NextLineNo := NextLineNo + 1; - OnInsertFromVATEntryOnBeforeTempReversalEntryInsert(TempReversalEntry, RevType, TempTransactionNoInteger); - TempReversalEntry.Insert(); - until GlobalVATEntry.Next() = 0; - until TempTransactionNoInteger.Next() = 0; - - OnAfterInsertFromVATEntry(TempTransactionNoInteger, Number, RevType, NextLineNo, TempReversalEntry, GlobalVATEntry); - end; - - protected procedure InsertFromGLEntry(var TempTransactionNoInteger: Record "Integer" temporary; Number: Integer; RevType: Option Transaction,Register; var NextLineNo: Integer) - var - GLAccount: Record "G/L Account"; - begin - TempTransactionNoInteger.FindSet(); - repeat - if RevType = RevType::Transaction then - GlobalGLEntry.SetRange("Transaction No.", TempTransactionNoInteger.Number); - OnInsertFromGLEntryOnAfterGLEntrySetRange(GlobalGLEntry, RevType, TempTransactionNoInteger); - if GlobalGLEntry.FindSet() then - repeat - OnInsertFromGLEntryOnBeforeClearTempReversalEntry(GlobalGLEntry); - Clear(TempReversalEntry); - if RevType = RevType::Register then - TempReversalEntry."G/L Register No." := Number; - TempReversalEntry."Reversal Type" := RevType; - TempReversalEntry."Entry Type" := TempReversalEntry."Entry Type"::"G/L Account"; - if not GLAccount.Get(GlobalGLEntry."G/L Account No.") then - Error(CannotReverseDeletedErr, GlobalGLEntry.TableCaption(), GLAccount.TableCaption()); - TempReversalEntry."Account No." := GLAccount."No."; - TempReversalEntry."Account Name" := GLAccount.Name; - TempReversalEntry.CopyFromGLEntry(GlobalGLEntry); - TempReversalEntry."Line No." := NextLineNo; - NextLineNo := NextLineNo + 1; - OnInsertFromGLEntryOnBeforeTempReversalEntryInsert(TempReversalEntry, GlobalGLEntry, RevType, TempTransactionNoInteger, Rec); - TempReversalEntry.Insert(); - until GlobalGLEntry.Next() = 0; - until TempTransactionNoInteger.Next() = 0; - - OnAfterInsertFromGLEntry(TempTransactionNoInteger, Number, RevType, NextLineNo, TempReversalEntry, GlobalGLEntry); - end; - - local procedure InsertTempReversalEntryEmployee(Number: Integer; RevType: Option Transaction,Register; NextLineNo: Integer) - var - Employee: Record Employee; - begin - Clear(TempReversalEntry); - if RevType = RevType::Register then - TempReversalEntry."G/L Register No." := Number; - TempReversalEntry."Reversal Type" := RevType; - TempReversalEntry."Entry Type" := TempReversalEntry."Entry Type"::Employee; - Employee.Get(GlobalEmployeeLedgerEntry."Employee No."); - TempReversalEntry."Account No." := Employee."No."; - TempReversalEntry."Account Name" := CopyStr(Employee.FullName(), 1, MaxStrLen(TempReversalEntry."Account Name")); - TempReversalEntry.CopyFromEmployeeLedgerEntry(GlobalEmployeeLedgerEntry); - TempReversalEntry."Line No." := NextLineNo; - TempReversalEntry.Insert(); - end; - - /// - /// Copies field values from a Customer Ledger Entry to populate reversal entry information. - /// - /// Customer Ledger Entry to copy data from - procedure CopyFromCustLedgEntry(CustLedgerEntry: Record "Cust. Ledger Entry") - begin - "Entry No." := CustLedgerEntry."Entry No."; - "Posting Date" := CustLedgerEntry."Posting Date"; - "Source Code" := CustLedgerEntry."Source Code"; - "Journal Batch Name" := CustLedgerEntry."Journal Batch Name"; - "Transaction No." := CustLedgerEntry."Transaction No."; - "Currency Code" := CustLedgerEntry."Currency Code"; - Description := CustLedgerEntry.Description; - CustLedgerEntry.CalcFields(Amount, "Debit Amount", "Credit Amount", - "Amount (LCY)", "Debit Amount (LCY)", "Credit Amount (LCY)"); - Amount := CustLedgerEntry.Amount; - "Debit Amount" := CustLedgerEntry."Debit Amount"; - "Credit Amount" := CustLedgerEntry."Credit Amount"; - "Amount (LCY)" := CustLedgerEntry."Amount (LCY)"; - "Debit Amount (LCY)" := CustLedgerEntry."Debit Amount (LCY)"; - "Credit Amount (LCY)" := CustLedgerEntry."Credit Amount (LCY)"; - "Document Type" := CustLedgerEntry."Document Type"; - "Document No." := CustLedgerEntry."Document No."; - "Bal. Account Type" := CustLedgerEntry."Bal. Account Type"; - "Bal. Account No." := CustLedgerEntry."Bal. Account No."; - - OnAfterCopyFromCustLedgEntry(Rec, CustLedgerEntry); - end; - - /// - /// Copies field values from a Bank Account Ledger Entry to populate reversal entry information. - /// - /// Bank Account Ledger Entry to copy data from - procedure CopyFromBankAccLedgEntry(BankAccountLedgerEntry: Record "Bank Account Ledger Entry") - begin - "Entry No." := BankAccountLedgerEntry."Entry No."; - "Posting Date" := BankAccountLedgerEntry."Posting Date"; - "Source Code" := BankAccountLedgerEntry."Source Code"; - "Journal Batch Name" := BankAccountLedgerEntry."Journal Batch Name"; - "Transaction No." := BankAccountLedgerEntry."Transaction No."; - "Currency Code" := BankAccountLedgerEntry."Currency Code"; - Description := BankAccountLedgerEntry.Description; - Amount := BankAccountLedgerEntry.Amount; - "Debit Amount" := BankAccountLedgerEntry."Debit Amount"; - "Credit Amount" := BankAccountLedgerEntry."Credit Amount"; - "Amount (LCY)" := BankAccountLedgerEntry."Amount (LCY)"; - "Debit Amount (LCY)" := BankAccountLedgerEntry."Debit Amount (LCY)"; - "Credit Amount (LCY)" := BankAccountLedgerEntry."Credit Amount (LCY)"; - "Document Type" := BankAccountLedgerEntry."Document Type"; - "Document No." := BankAccountLedgerEntry."Document No."; - "Bal. Account Type" := BankAccountLedgerEntry."Bal. Account Type"; - "Bal. Account No." := BankAccountLedgerEntry."Bal. Account No."; - - OnAfterCopyFromBankAccLedgEntry(Rec, BankAccountLedgerEntry); - end; - - /// - /// Copies field values from a Fixed Asset Ledger Entry to populate reversal entry information. - /// - /// Fixed Asset Ledger Entry to copy data from - procedure CopyFromFALedgEntry(FALedgerEntry: Record "FA Ledger Entry") - begin - "Entry No." := FALedgerEntry."Entry No."; - "Posting Date" := FALedgerEntry."Posting Date"; - "FA Posting Category" := FALedgerEntry."FA Posting Category"; - "FA Posting Type" := Enum::"Reversal Entry FA Posting Type".FromInteger(FALedgerEntry."FA Posting Type".AsInteger() + 1); - "Source Code" := FALedgerEntry."Source Code"; - "Journal Batch Name" := FALedgerEntry."Journal Batch Name"; - "Transaction No." := FALedgerEntry."Transaction No."; - Description := FALedgerEntry.Description; - "Amount (LCY)" := FALedgerEntry.Amount; - "Debit Amount (LCY)" := FALedgerEntry."Debit Amount"; - "Credit Amount (LCY)" := FALedgerEntry."Credit Amount"; - "VAT Amount" := FALedgerEntry."VAT Amount"; - "Document Type" := FALedgerEntry."Document Type"; - "Document No." := FALedgerEntry."Document No."; - "Bal. Account Type" := FALedgerEntry."Bal. Account Type"; - "Bal. Account No." := FALedgerEntry."Bal. Account No."; - - OnAfterCopyFromFALedgEntry(Rec, FALedgerEntry); - end; - - /// - /// Copies field values from a G/L Entry to populate reversal entry information. - /// - /// G/L Entry to copy data from - procedure CopyFromGLEntry(GLEntry: Record "G/L Entry") - begin - "Entry No." := GLEntry."Entry No."; - "Posting Date" := GLEntry."Posting Date"; - "Source Code" := GLEntry."Source Code"; - "Journal Batch Name" := GLEntry."Journal Batch Name"; - "Transaction No." := GLEntry."Transaction No."; - "Source Type" := GLEntry."Source Type"; - "Source No." := GLEntry."Source No."; - Description := GLEntry.Description; - "Amount (LCY)" := GLEntry.Amount; - "Source Currency Amount" := GLEntry."Source Currency Amount"; - "Debit Amount (LCY)" := GLEntry."Debit Amount"; - "Credit Amount (LCY)" := GLEntry."Credit Amount"; - "VAT Amount" := GLEntry."VAT Amount"; - "Source Currency VAT Amount" := GLEntry."Source Currency VAT Amount"; - "Document Type" := GLEntry."Document Type"; - "Document No." := GLEntry."Document No."; - "Bal. Account Type" := GLEntry."Bal. Account Type"; - "Bal. Account No." := GLEntry."Bal. Account No."; - "Source Currency Code" := GLEntry."Source Currency Code"; - - OnAfterCopyFromGLEntry(Rec, GLEntry); - end; - - /// - /// Copies field values from a Maintenance Ledger Entry to populate reversal entry information. - /// - /// Maintenance Ledger Entry to copy data from - procedure CopyFromMaintenanceEntry(MaintenanceLedgerEntry: Record "Maintenance Ledger Entry") - begin - "Entry No." := MaintenanceLedgerEntry."Entry No."; - "Posting Date" := MaintenanceLedgerEntry."Posting Date"; - "Source Code" := MaintenanceLedgerEntry."Source Code"; - "Journal Batch Name" := MaintenanceLedgerEntry."Journal Batch Name"; - "Transaction No." := MaintenanceLedgerEntry."Transaction No."; - Description := MaintenanceLedgerEntry.Description; - "Amount (LCY)" := MaintenanceLedgerEntry.Amount; - "Debit Amount (LCY)" := MaintenanceLedgerEntry."Debit Amount"; - "Credit Amount (LCY)" := MaintenanceLedgerEntry."Credit Amount"; - "VAT Amount" := MaintenanceLedgerEntry."VAT Amount"; - "Document Type" := MaintenanceLedgerEntry."Document Type"; - "Document No." := MaintenanceLedgerEntry."Document No."; - "Bal. Account Type" := MaintenanceLedgerEntry."Bal. Account Type"; - "Bal. Account No." := MaintenanceLedgerEntry."Bal. Account No."; - - OnAfterCopyFromMaintenanceEntry(Rec, MaintenanceLedgerEntry); - end; - - /// - /// Copies field values from a VAT Entry to populate reversal entry information. - /// - /// VAT Entry to copy data from - procedure CopyFromVATEntry(VATEntry: Record "VAT Entry") - begin - "Entry No." := VATEntry."Entry No."; - "Posting Date" := VATEntry."Posting Date"; - "Source Code" := VATEntry."Source Code"; - "Transaction No." := VATEntry."Transaction No."; - Amount := VATEntry.Amount; - "Amount (LCY)" := VATEntry.Amount; - "Source Currency Amount" := VATEntry."Source Currency VAT Amount"; - "Document Type" := VATEntry."Document Type"; - "Document No." := VATEntry."Document No."; - - OnAfterCopyFromVATEntry(Rec, VATEntry); - end; - - /// - /// Copies field values from a Vendor Ledger Entry to populate reversal entry information. - /// - /// Vendor Ledger Entry to copy data from - procedure CopyFromVendLedgEntry(VendorLedgerEntry: Record "Vendor Ledger Entry") - begin - "Entry No." := VendorLedgerEntry."Entry No."; - "Posting Date" := VendorLedgerEntry."Posting Date"; - "Source Code" := VendorLedgerEntry."Source Code"; - "Journal Batch Name" := VendorLedgerEntry."Journal Batch Name"; - "Transaction No." := VendorLedgerEntry."Transaction No."; - "Currency Code" := VendorLedgerEntry."Currency Code"; - Description := VendorLedgerEntry.Description; - VendorLedgerEntry.CalcFields(Amount, "Debit Amount", "Credit Amount", - "Amount (LCY)", "Debit Amount (LCY)", "Credit Amount (LCY)"); - Amount := VendorLedgerEntry.Amount; - "Debit Amount" := VendorLedgerEntry."Debit Amount"; - "Credit Amount" := VendorLedgerEntry."Credit Amount"; - "Amount (LCY)" := VendorLedgerEntry."Amount (LCY)"; - "Debit Amount (LCY)" := VendorLedgerEntry."Debit Amount (LCY)"; - "Credit Amount (LCY)" := VendorLedgerEntry."Credit Amount (LCY)"; - "Document Type" := VendorLedgerEntry."Document Type"; - "Document No." := VendorLedgerEntry."Document No."; - "Bal. Account Type" := VendorLedgerEntry."Bal. Account Type"; - "Bal. Account No." := VendorLedgerEntry."Bal. Account No."; - - OnAfterCopyFromVendLedgEntry(Rec, VendorLedgerEntry); - end; - - /// - /// Copies field values from an Employee Ledger Entry to populate reversal entry information. - /// - /// Employee Ledger Entry to copy data from - procedure CopyFromEmployeeLedgerEntry(EmployeeLedgerEntry: Record "Employee Ledger Entry") - begin - "Entry No." := EmployeeLedgerEntry."Entry No."; - "Posting Date" := EmployeeLedgerEntry."Posting Date"; - "Source Code" := EmployeeLedgerEntry."Source Code"; - "Journal Batch Name" := EmployeeLedgerEntry."Journal Batch Name"; - "Transaction No." := EmployeeLedgerEntry."Transaction No."; - "Currency Code" := EmployeeLedgerEntry."Currency Code"; - Description := EmployeeLedgerEntry.Description; - EmployeeLedgerEntry.CalcFields( - Amount, "Debit Amount", "Credit Amount", "Amount (LCY)", "Debit Amount (LCY)", "Credit Amount (LCY)"); - Amount := EmployeeLedgerEntry.Amount; - "Debit Amount" := EmployeeLedgerEntry."Debit Amount"; - "Credit Amount" := EmployeeLedgerEntry."Credit Amount"; - "Amount (LCY)" := EmployeeLedgerEntry."Amount (LCY)"; - "Debit Amount (LCY)" := EmployeeLedgerEntry."Debit Amount (LCY)"; - "Credit Amount (LCY)" := EmployeeLedgerEntry."Credit Amount (LCY)"; - "Document Type" := EmployeeLedgerEntry."Document Type"; - "Document No." := EmployeeLedgerEntry."Document No."; - "Bal. Account Type" := EmployeeLedgerEntry."Bal. Account Type"; - "Bal. Account No." := EmployeeLedgerEntry."Bal. Account No."; - - OnAfterCopyFromEmplLedgEntry(Rec, EmployeeLedgerEntry); - end; - - local procedure InsertCustTempRevertTransNo(var TempTransactionNoInteger: Record "Integer" temporary; CustLedgEntryNo: Integer) - var - DetailedCustLedgEntry: Record "Detailed Cust. Ledg. Entry"; - IsHandled: Boolean; - begin - IsHandled := false; - OnBeforeInsertCustTempRevertTransNo(TempTransactionNoInteger, CustLedgEntryNo, IsHandled); - if IsHandled then - exit; - - DetailedCustLedgEntry.Get(CustLedgEntryNo); - if DetailedCustLedgEntry."Transaction No." <> 0 then begin - TempTransactionNoInteger.Number := DetailedCustLedgEntry."Transaction No."; - if TempTransactionNoInteger.Insert() then; - end; - end; - - local procedure InsertVendTempRevertTransNo(var TempTransactionNoInteger: Record "Integer" temporary; VendLedgEntryNo: Integer) - var - DetailedVendorLedgEntry: Record "Detailed Vendor Ledg. Entry"; - IsHandled: Boolean; - begin - IsHandled := false; - OnBeforeInsertVendTempRevertTransNo(TempTransactionNoInteger, VendLedgEntryNo, IsHandled); - if IsHandled then - exit; - - DetailedVendorLedgEntry.Get(VendLedgEntryNo); - if DetailedVendorLedgEntry."Transaction No." <> 0 then begin - TempTransactionNoInteger.Number := DetailedVendorLedgEntry."Transaction No."; - if TempTransactionNoInteger.Insert() then; - end; - end; - - local procedure InsertEmplTempRevertTransNo(var TempTransactionNoInteger: Record "Integer" temporary; EmployeeLedgEntryNo: Integer) - var - DetailedEmployeeLedgerEntry: Record "Detailed Employee Ledger Entry"; - begin - DetailedEmployeeLedgerEntry.Get(EmployeeLedgEntryNo); - if DetailedEmployeeLedgerEntry."Transaction No." <> 0 then begin - TempTransactionNoInteger.Number := DetailedEmployeeLedgerEntry."Transaction No."; - if TempTransactionNoInteger.Insert() then; - end; - end; - - local procedure InsertTempRevertTransactionNoUnappliedEmployeeEntries(var TempTransactionNoInteger: Record "Integer" temporary; var DetailedEmployeeLedgerEntry: Record "Detailed Employee Ledger Entry") - begin - DetailedEmployeeLedgerEntry.SetRange(Unapplied, true); - if DetailedEmployeeLedgerEntry.FindSet() then - repeat - InsertEmplTempRevertTransNo(TempTransactionNoInteger, DetailedEmployeeLedgerEntry."Unapplied by Entry No."); - until DetailedEmployeeLedgerEntry.Next() = 0; - DetailedEmployeeLedgerEntry.SetRange(Unapplied); - end; - - /// - /// Integration event raised after calculating the caption for a reversal entry, allowing customization of the display text. - /// - /// Reversal entry record for which the caption is being calculated - /// Caption text that can be modified by subscribers - [IntegrationEvent(false, false)] - local procedure OnAfterCaption(ReversalEntry: Record "Reversal Entry"; var NewCaption: Text) - begin - end; - - /// - /// Integration event raised after completing entry validation checks, allowing custom validation logic. - /// - /// Maximum posting date found during validation - /// Reversal entry record being validated - [IntegrationEvent(false, false)] - local procedure OnAfterCheckEntries(var MaxPostingDate: Date; var ReversalEntry: Record "Reversal Entry") - begin - end; - - /// - /// Integration event raised after validating bank account ledger entries for reversal eligibility. - /// - /// Bank account master record - /// Bank account ledger entry being validated - [IntegrationEvent(false, false)] - local procedure OnAfterCheckBankAcc(BankAccount: Record "Bank Account"; BankAccountLedgerEntry: Record "Bank Account Ledger Entry") - begin - end; - - /// - /// Integration event raised after validating G/L account settings for reversal operations. - /// - /// G/L account record being validated - /// G/L entry being checked for reversal - [IntegrationEvent(false, false)] - local procedure OnAfterCheckGLAcc(var GLAccount: Record "G/L Account"; GLEntry: Record "G/L Entry") - begin - end; - - /// - /// Integration event raised after validating customer ledger entries for reversal eligibility. - /// - /// Customer master record - /// Customer ledger entry being validated - [IntegrationEvent(false, false)] - local procedure OnAfterCheckCust(Customer: Record Customer; CustLedgerEntry: Record "Cust. Ledger Entry") - begin - end; - - /// - /// Integration event raised after validating vendor ledger entries for reversal eligibility. - /// - /// Vendor master record - /// Vendor ledger entry being validated - [IntegrationEvent(false, false)] - local procedure OnAfterCheckVend(Vendor: Record Vendor; VendorLedgerEntry: Record "Vendor Ledger Entry") - begin - end; - - /// - /// Integration event raised after validating employee ledger entries for reversal eligibility. - /// - /// Employee master record - /// Employee ledger entry being validated - [IntegrationEvent(false, false)] - local procedure OnAfterCheckEmpl(Employee: Record Employee; EmployeeLedgerEntry: Record "Employee Ledger Entry") - begin - end; - - /// - /// Integration event raised after validating fixed asset ledger entries for reversal eligibility. - /// - /// Fixed asset master record - /// Fixed asset ledger entry being validated - [IntegrationEvent(false, false)] - local procedure OnAfterCheckFA(FixedAsset: Record "Fixed Asset"; FALedgerEntry: Record "FA Ledger Entry") - begin - end; - - /// - /// Integration event raised after validating maintenance ledger entries for reversal eligibility. - /// - /// Fixed asset master record - /// Maintenance ledger entry being validated - [IntegrationEvent(false, false)] - local procedure OnAfterCheckMaintenance(FixedAsset: Record "Fixed Asset"; MaintenanceLedgerEntry: Record "Maintenance Ledger Entry") - begin - end; - - /// - /// Integration event raised after validating VAT entries for reversal eligibility. - /// - /// VAT entry being validated - [IntegrationEvent(false, false)] - local procedure OnAfterCheckVAT(var VATEntry: Record "VAT Entry") - begin - end; - - /// - /// Integration event raised after validating detailed customer ledger entries for reversal consistency. - /// - /// Detailed customer ledger entry being validated - /// Related customer ledger entry - [IntegrationEvent(false, false)] - local procedure OnAfterCheckDtldCustLedgEntry(DetailedCustLedgEntry: Record "Detailed Cust. Ledg. Entry"; CustLedgerEntry: Record "Cust. Ledger Entry") - begin - end; - - /// - /// Integration event raised after validating detailed vendor ledger entries for reversal consistency. - /// - /// Detailed vendor ledger entry being validated - /// Related vendor ledger entry - [IntegrationEvent(false, false)] - local procedure OnAfterCheckDtldVendLedgEntry(DetailedVendorLedgEntry: Record "Detailed Vendor Ledg. Entry"; VendorLedgerEntry: Record "Vendor Ledger Entry") - begin - end; - - /// - /// Integration event raised after validating detailed employee ledger entries for reversal consistency. - /// - /// Detailed employee ledger entry being validated - /// Related employee ledger entry - [IntegrationEvent(false, false)] - local procedure OnAfterCheckDtldEmplLedgEntry(DetailedEmployeeLedgerEntry: Record "Detailed Employee Ledger Entry"; EmployeeLedgerEntry: Record "Employee Ledger Entry") - begin - end; - - /// - /// Integration event raised after copying field values from a bank account ledger entry to a reversal entry. - /// - /// Reversal entry record that was populated - /// Source bank account ledger entry - [IntegrationEvent(false, false)] - local procedure OnAfterCopyFromBankAccLedgEntry(var ReversalEntry: Record "Reversal Entry"; BankAccLedgEntry: Record "Bank Account Ledger Entry") - begin - end; - - /// - /// Integration event raised after copying field values from a customer ledger entry to a reversal entry. - /// - /// Reversal entry record that was populated - /// Source customer ledger entry - [IntegrationEvent(false, false)] - local procedure OnAfterCopyFromCustLedgEntry(var ReversalEntry: Record "Reversal Entry"; CustLedgerEntry: Record "Cust. Ledger Entry") - begin - end; - - /// - /// Integration event raised after copying field values from a fixed asset ledger entry to a reversal entry. - /// - /// Reversal entry record that was populated - /// Source fixed asset ledger entry - [IntegrationEvent(false, false)] - local procedure OnAfterCopyFromFALedgEntry(var ReversalEntry: Record "Reversal Entry"; FALedgerEntry: Record "FA Ledger Entry") - begin - end; - - /// - /// Integration event raised after copying field values from a G/L entry to a reversal entry. - /// - /// Reversal entry record that was populated - /// Source G/L entry - [IntegrationEvent(false, false)] - local procedure OnAfterCopyFromGLEntry(var ReversalEntry: Record "Reversal Entry"; GLEntry: Record "G/L Entry") - begin - end; - - /// - /// Integration event raised after copying field values from a maintenance ledger entry to a reversal entry. - /// - /// Reversal entry record that was populated - /// Source maintenance ledger entry - [IntegrationEvent(false, false)] - local procedure OnAfterCopyFromMaintenanceEntry(var ReversalEntry: Record "Reversal Entry"; MaintenanceLedgerEntry: Record "Maintenance Ledger Entry") - begin - end; - - /// - /// Integration event raised after copying field values from a VAT entry to a reversal entry. - /// - /// Reversal entry record that was populated - /// Source VAT entry - [IntegrationEvent(false, false)] - local procedure OnAfterCopyFromVATEntry(var ReversalEntry: Record "Reversal Entry"; VATEntry: Record "VAT Entry") - begin - end; - - /// - /// Integration event raised after copying field values from a vendor ledger entry to a reversal entry. - /// - /// Reversal entry record that was populated - /// Source vendor ledger entry - [IntegrationEvent(false, false)] - local procedure OnAfterCopyFromVendLedgEntry(var ReversalEntry: Record "Reversal Entry"; VendorLedgerEntry: Record "Vendor Ledger Entry") - begin - end; - - /// - /// Integration event raised after copying field values from an employee ledger entry to a reversal entry. - /// - /// Reversal entry record that was populated - /// Source employee ledger entry - [IntegrationEvent(false, false)] - local procedure OnAfterCopyFromEmplLedgEntry(var ReversalEntry: Record "Reversal Entry"; EmployeeLedgerEntry: Record "Employee Ledger Entry") - begin - end; - - /// - /// Integration event raised after inserting a reversal entry from a bank account ledger entry. - /// - /// Temporary table storing transaction numbers for reversal processing - /// Transaction or register number being reversed - /// Type of reversal operation - Transaction or Register - /// Next available line number for reversal entries - /// Temporary reversal entry record being created - /// Source bank account ledger entry being reversed - [IntegrationEvent(true, false)] - local procedure OnAfterInsertFromBankAccLedgEntry(var TempRevertTransactionNo: Record "Integer"; Number: Integer; RevType: Option Transaction,Register; var NextLineNo: Integer; var TempReversalEntry: Record "Reversal Entry" temporary; var BankAccLedgEntry: Record "Bank Account Ledger Entry") - begin - end; - - /// - /// Integration event raised after inserting a reversal entry from a customer ledger entry. - /// - /// Temporary table storing transaction numbers for reversal processing - /// Transaction or register number being reversed - /// Type of reversal operation - Transaction or Register - /// Next available line number for reversal entries - /// Temporary reversal entry record being created - /// Source customer ledger entry being reversed - [IntegrationEvent(true, false)] - local procedure OnAfterInsertFromCustLedgEntry(var TempRevertTransactionNo: Record "Integer"; Number: Integer; RevType: Option Transaction,Register; var NextLineNo: Integer; var TempReversalEntry: Record "Reversal Entry" temporary; var CustLedgEntry: Record "Cust. Ledger Entry") - begin - end; - - /// - /// Integration event raised after inserting a reversal entry from an employee ledger entry. - /// - /// Temporary table storing transaction numbers for reversal processing - /// Transaction or register number being reversed - /// Type of reversal operation - Transaction or Register - /// Next available line number for reversal entries - /// Temporary reversal entry record being created - /// Source employee ledger entry being reversed - [IntegrationEvent(true, false)] - local procedure OnAfterInsertFromEmplLedgEntry(var TempRevertTransactionNo: Record "Integer"; Number: Integer; RevType: Option Transaction,Register; var NextLineNo: Integer; var TempReversalEntry: Record "Reversal Entry" temporary; var EmplLedgEntry: Record "Employee Ledger Entry") - begin - end; - - /// - /// Integration event raised after inserting a reversal entry from a fixed asset ledger entry. - /// - /// Temporary table storing transaction numbers for reversal processing - /// Transaction or register number being reversed - /// Type of reversal operation - Transaction or Register - /// Next available line number for reversal entries - /// Temporary reversal entry record being created - /// Source fixed asset ledger entry being reversed - [IntegrationEvent(true, false)] - local procedure OnAfterInsertFromFALedgEntry(var TempRevertTransactionNo: Record "Integer"; Number: Integer; RevType: Option Transaction,Register; var NextLineNo: Integer; var TempReversalEntry: Record "Reversal Entry" temporary; var FALedgerEntry: Record "FA Ledger Entry") - begin - end; - - /// - /// Integration event raised after inserting a reversal entry from a general ledger entry. - /// - /// Temporary table storing transaction numbers for reversal processing - /// Transaction or register number being reversed - /// Type of reversal operation - Transaction or Register - /// Next available line number for reversal entries - /// Temporary reversal entry record being created - /// Source general ledger entry being reversed - [IntegrationEvent(true, false)] - local procedure OnAfterInsertFromGLEntry(var TempRevertTransactionNo: Record "Integer"; Number: Integer; RevType: Option Transaction,Register; var NextLineNo: Integer; var TempReversalEntry: Record "Reversal Entry" temporary; var GLEntry: Record "G/L Entry") - begin - end; - - /// - /// Integration event raised after inserting a reversal entry from a maintenance ledger entry. - /// - /// Temporary table storing transaction numbers for reversal processing - /// Transaction or register number being reversed - /// Type of reversal operation - Transaction or Register - /// Next available line number for reversal entries - /// Temporary reversal entry record being created - /// Source maintenance ledger entry being reversed - [IntegrationEvent(true, false)] - local procedure OnAfterInsertFromMaintenanceLedgEntry(var TempRevertTransactionNo: Record "Integer"; Number: Integer; RevType: Option Transaction,Register; var NextLineNo: Integer; var TempReversalEntry: Record "Reversal Entry" temporary; var MaintenanceLedgEntry: Record "Maintenance Ledger Entry") - begin - end; - - /// - /// Integration event raised after completing the insertion of a reversal entry record. - /// - /// Temporary table storing transaction numbers for reversal processing - /// Transaction or register number being reversed - /// Type of reversal operation - Transaction or Register - /// Next available line number for reversal entries - /// Temporary reversal entry record that was created - [IntegrationEvent(true, false)] - local procedure OnAfterInsertReversalEntry(var TempRevertTransactionNo: Record "Integer"; Number: Integer; RevType: Option Transaction,Register; var NextLineNo: Integer; var TempReversalEntry: Record "Reversal Entry" temporary) - begin - end; - - /// - /// Integration event raised after inserting a reversal entry from a VAT entry. - /// - /// Temporary table storing transaction numbers for reversal processing - /// Transaction or register number being reversed - /// Type of reversal operation - Transaction or Register - /// Next available line number for reversal entries - /// Temporary reversal entry record being created - /// Source VAT entry being reversed - [IntegrationEvent(true, false)] - local procedure OnAfterInsertFromVATEntry(var TempRevertTransactionNo: Record "Integer"; Number: Integer; RevType: Option Transaction,Register; var NextLineNo: Integer; var TempReversalEntry: Record "Reversal Entry" temporary; var VATEntry: Record "VAT Entry") - begin - end; - - /// - /// Integration event raised after inserting a reversal entry from a vendor ledger entry. - /// - /// Temporary table storing transaction numbers for reversal processing - /// Transaction or register number being reversed - /// Type of reversal operation - Transaction or Register - /// Next available line number for reversal entries - /// Temporary reversal entry record being created - /// Source vendor ledger entry being reversed - [IntegrationEvent(true, false)] - local procedure OnAfterInsertFromVendLedgEntry(var TempRevertTransactionNo: Record "Integer"; Number: Integer; RevType: Option Transaction,Register; var NextLineNo: Integer; var TempReversalEntry: Record "Reversal Entry" temporary; var VendLedgEntry: Record "Vendor Ledger Entry") - begin - end; - - /// - /// Integration event raised after completing the reversal of entries for a transaction or register. - /// - /// Transaction or register number that was reversed - /// Type of reversal operation that was completed - /// Indicates whether dialog messages were suppressed during reversal - [IntegrationEvent(false, false)] - local procedure OnAfterReverseEntries(Number: Integer; RevType: Integer; HideDialog: Boolean) - begin - end; - - /// - /// Integration event raised after setting filters for reversal entries based on transaction or register. - /// - /// Transaction or register number used for filtering - /// Type of reversal operation - Transaction or Register - /// G/L register record used for filtering when reversing by register - /// Reversal entry record with applied filters - [IntegrationEvent(false, false)] - local procedure OnAfterSetReverseFilter(Number: Integer; RevType: Option Transaction,Register; GLRegister: Record "G/L Register"; var ReversalEntry: Record "Reversal Entry") - begin - end; - - /// - /// Integration event raised before performing entry validation checks for reversal. - /// - /// Reversal entry being validated - /// Table ID of the ledger entry being checked - /// Set to true to skip standard validation checks - [IntegrationEvent(false, false)] - local procedure OnBeforeCheckEntries(ReversalEntry: Record "Reversal Entry"; TableID: Integer; var SkipCheck: Boolean) - begin - end; - - /// - /// Integration event raised before validating employee ledger entries for reversal. - /// - /// Employee ledger entry being validated for reversal - [IntegrationEvent(false, false)] - local procedure OnBeforeCheckEmpl(var EmployeeLedgerEntry: Record "Employee Ledger Entry") - begin - end; - - /// - /// Integration event raised before validating fixed asset ledger entries for reversal. - /// - /// Fixed asset ledger entry being validated for reversal - /// Set to true to skip standard FA validation logic - [IntegrationEvent(true, false)] - local procedure OnBeforeCheckFA(var FALedgerEntry: Record "FA Ledger Entry"; var IsHandled: Boolean) - begin - end; - - /// - /// Integration event raised before validating fixed asset posting date for reversal. - /// - /// FA posting date being validated - /// Caption for error messages - /// Entry number being validated - /// Set to true to skip standard posting date validation - /// Current reversal entry record - /// Maximum allowed posting date - /// Earliest allowed posting date - /// Latest allowed posting date - /// Previous reversal entry record state - [IntegrationEvent(false, false)] - local procedure OnBeforeCheckFAPostingDate(FAPostingDate: Date; Caption: Text[50]; EntryNo: Integer; var IsHandled: Boolean; var ReversalEntry: Record "Reversal Entry"; var MaxPostingDate: Date; var AllowPostingFrom: Date; var AllowPostingto: Date; var xReversalEntry: Record "Reversal Entry") - begin - end; - - /// - /// Integration event raised before validating maintenance ledger entries for reversal. - /// - /// Maintenance ledger entry being validated for reversal - [IntegrationEvent(true, false)] - local procedure OnBeforeCheckMaintenance(var MaintenanceLedgerEntry: Record "Maintenance Ledger Entry") - begin - end; - - /// - /// Integration event raised before validating G/L account settings for reversal. - /// - /// G/L entry being validated for reversal - [IntegrationEvent(true, false)] - local procedure OnBeforeCheckGLAcc(var GLEntry: Record "G/L Entry") - begin - end; - - /// - /// Integration event raised before validating G/L entry for reversal. - /// - /// Reversal entry record being validated - /// G/L entry being validated for reversal - /// Set to true to skip standard G/L entry validation - [IntegrationEvent(false, false)] - local procedure OnBeforeCheckGLEntry(var ReversalEntry: Record "Reversal Entry"; GLEntry: Record "G/L Entry"; var IsHandled: Boolean) - begin - end; - - /// - /// Integration event raised before validating register entries for reversal. - /// - /// G/L register number being validated - /// Set to true to skip standard register validation - /// Reversal entry record being processed - [IntegrationEvent(false, false)] - local procedure OnBeforeCheckRegister(RegisterNo: Integer; var IsHandled: Boolean; var ReversalEntry: Record "Reversal Entry") - begin - end; - - /// - /// Integration event raised before inserting a new reversal entry record. - /// - /// Reversal entry record being inserted - /// Transaction or register number for the reversal - /// Type of reversal operation - Transaction or Register - /// Set to true to skip standard insertion logic - [IntegrationEvent(false, false)] - local procedure OnBeforeInsertReversalEntry(var ReversalEntry: Record "Reversal Entry"; Number: Integer; RevType: Option Transaction,Register; var IsHandled: Boolean) - begin - end; - - /// - /// Integration event raised before starting the reversal process for entries. - /// - /// Transaction or register number being reversed - /// Type of reversal operation being performed - /// Set to true to skip standard reversal processing - /// Indicates whether to suppress dialog messages - /// Reversal entry record being processed - /// Indicates whether to suppress warning dialogs - [IntegrationEvent(false, false)] - local procedure OnBeforeReverseEntries(Number: Integer; RevType: Integer; var IsHandled: Boolean; HideDialog: Boolean; var ReversalEntry: Record "Reversal Entry"; var HideWarningDialogs: Boolean) - begin - end; - - /// - /// Integration event raised before inserting temporary reversal entry from customer ledger entry. - /// - /// Temporary reversal entry being inserted - /// Source customer ledger entry - [IntegrationEvent(false, false)] - local procedure OnInsertFromCustLedgEntryOnBeforeTempReversalEntryInsert(var TempReversalEntry: Record "Reversal Entry" temporary; CustLedgEntry: Record "Cust. Ledger Entry"); - begin - end; - - /// - /// Integration event raised before clearing temporary reversal entry in G/L entry processing. - /// - /// G/L entry being processed for reversal - [IntegrationEvent(false, false)] - local procedure OnInsertFromGLEntryOnBeforeClearTempReversalEntry(GLEntry: Record "G/L Entry"); - begin - end; - - /// - /// Integration event raised before inserting temporary reversal entry from G/L entry. - /// - /// Temporary reversal entry being inserted - /// Source G/L entry - /// Type of reversal operation - Transaction or Register - /// Temporary transaction number record - /// Current reversal entry context - [IntegrationEvent(false, false)] - local procedure OnInsertFromGLEntryOnBeforeTempReversalEntryInsert(var TempReversalEntry: Record "Reversal Entry" temporary; GLEntry: Record "G/L Entry"; RevType: Option Transaction,Register; var TempRevertTransactionNoRecordInteger: Record "Integer" temporary; ReversalEntry: Record "Reversal Entry"); - begin - end; - - /// - /// Integration event raised before inserting temporary reversal entry from vendor ledger entry. - /// - /// Temporary reversal entry being inserted - /// Source vendor ledger entry - [IntegrationEvent(false, false)] - local procedure OnInsertFromVendLedgEntryOnBeforeTempReversalEntryInsert(var TempReversalEntry: Record "Reversal Entry" temporary; VendorLedgerEntry: Record "Vendor Ledger Entry"); - begin - end; - - /// - /// Integration event raised before generating caption text for reversal entries. - /// - /// Reversal entry record for caption generation - /// Variable to store the generated caption text - /// Set to true to skip standard caption generation - [IntegrationEvent(false, false)] - local procedure OnBeforeCaption(ReversalEntry: Record "Reversal Entry"; var Result: Text; var IsHandled: Boolean) - begin - end; - - /// - /// Integration event raised before validating VAT entries for reversal. - /// - /// VAT entry being validated for reversal - /// Set to true to skip standard VAT validation - [IntegrationEvent(true, false)] - local procedure OnBeforeCheckVAT(var VATEntry: Record "VAT Entry"; var IsHandled: Boolean) - begin - end; - - /// - /// Integration event raised before validating bank account ledger entries for reversal. - /// - /// Bank account ledger entry being validated for reversal - /// Set to true to skip standard bank account validation - [IntegrationEvent(true, false)] - local procedure OnBeforeCheckBankAcc(var BankAccLedgEntry: Record "Bank Account Ledger Entry"; var IsHandled: Boolean) - begin - end; - - /// - /// Integration event raised before validating vendor ledger entries for reversal. - /// - /// Vendor ledger entry being validated for reversal - [IntegrationEvent(true, false)] - local procedure OnBeforeCheckVend(var VendLedgEntry: Record "Vendor Ledger Entry") - begin - end; - - /// - /// Integration event raised before validating customer ledger entries for reversal. - /// - /// Customer ledger entry being validated for reversal - [IntegrationEvent(true, false)] - local procedure OnBeforeCheckCust(var CustLedgEntry: Record "Cust. Ledger Entry") - begin - end; - - /// - /// Integration event raised before testing G/L account fields during reversal validation. - /// - /// G/L account being tested - /// G/L entry associated with the account - /// Set to true to skip standard field testing - [IntegrationEvent(false, false)] - local procedure OnCheckGLAccOnBeforeTestFields(GLAcc: Record "G/L Account"; GLEntry: Record "G/L Entry"; var IsHandled: Boolean) - begin - end; - - /// - /// Integration event raised before validating posting dates for reversal entries. - /// - /// Posting date being validated - /// Caption for error messages - /// Entry number being validated - /// Set to true to skip standard posting date validation - /// Current reversal entry record - /// Maximum allowed posting date - [IntegrationEvent(false, false)] - local procedure OnBeforeCheckPostingDate(PostingDate: Date; Caption: Text[50]; EntryNo: Integer; var IsHandled: Boolean; var ReversalEntry: Record "Reversal Entry"; var MaxPostingDate: Date) - begin - end; - - /// - /// Integration event raised before validating detailed customer ledger entries for reversal. - /// - /// Customer ledger entry with related detailed entries - /// Set to true to skip standard detailed entry validation - [IntegrationEvent(false, false)] - local procedure OnBeforeCheckDtldCustLedgEntry(CustLedgEntry: Record "Cust. Ledger Entry"; var IsHandled: Boolean) - begin - end; - - /// - /// Integration event raised before validating detailed vendor ledger entries for reversal. - /// - /// Vendor ledger entry with related detailed entries - /// Set to true to skip standard detailed entry validation - [IntegrationEvent(false, false)] - local procedure OnBeforeCCheckDtldVendLedgEntry(VendLedgEntry: Record "Vendor Ledger Entry"; var IsHandled: Boolean) - begin - end; - - /// - /// Integration event raised before checking same transaction in vendor ledger entry processing. - /// - /// Vendor ledger entry being processed - /// Detailed vendor ledger entry for transaction check - /// Set to true to skip standard same transaction validation - [IntegrationEvent(false, false)] - local procedure OnInsertFromVendLedgEntryOnBeforeCheckSameTransaction(VendLedgEntry: Record "Vendor Ledger Entry"; var DtldVendLedgEntry: Record "Detailed Vendor Ledg. Entry"; var IsHandled: Boolean) - begin - end; - - /// - /// Integration event raised before checking same transaction in customer ledger entry processing. - /// - /// Customer ledger entry being processed - /// Detailed customer ledger entry for transaction check - /// Set to true to skip standard same transaction validation - [IntegrationEvent(false, false)] - local procedure OnInsertFromCustLedgEntryOnBeforeCheckSameTransaction(CustLedgEntry: Record "Cust. Ledger Entry"; var DtldCustLedgEntry: Record "Detailed Cust. Ledg. Entry"; var IsHandled: Boolean) - begin - end; - - /// - /// Integration event raised after inserting reversal entry during reverse entries processing. - /// - /// Temporary reversal entry that was inserted - /// Transaction or register number being reversed - /// Type of reversal operation - Transaction or Register - [IntegrationEvent(false, false)] - local procedure OnReverseEntriesOnAfterInsertReversalEntry(var TempReversalEntry: Record "Reversal Entry" temporary; Number: Integer; RevType: Option Transaction,Register) - begin - end; - - /// - /// Integration event raised before setting filters for reversal processing across all ledger entry types. - /// - /// Transaction or register number for filtering - /// Type of reversal operation - Transaction or Register - /// G/L entry record for filtering - /// Customer ledger entry record for filtering - /// Vendor ledger entry record for filtering - /// Employee ledger entry record for filtering - /// Bank account ledger entry record for filtering - /// VAT entry record for filtering - /// Fixed asset ledger entry record for filtering - /// Maintenance ledger entry record for filtering - /// G/L register record for filtering - /// Reversal entry record for filtering - /// Set to true to skip standard filter setting - [IntegrationEvent(false, false)] - local procedure OnBeforeSetReverseFilter(Number: Integer; RevType: Option Transaction,Register; var GLEntry: Record "G/L Entry"; var CustLedgerEntry: Record "Cust. Ledger Entry"; var VendLedgerEntry: Record "Vendor Ledger Entry"; var EmployeeLedgerEntry: Record "Employee Ledger Entry"; var BankAccountLedgerEntry: Record "Bank Account Ledger Entry"; var VATEntry: Record "VAT Entry"; var FALedgerEntry: Record "FA Ledger Entry"; var MaintenanceLedgerEntry: Record "Maintenance Ledger Entry"; var GLRegister: Record "G/L Register"; var ReversalEntry: Record "Reversal Entry"; var IsHandled: Boolean) - begin - end; - - /// - /// Integration event raised at the start of bank account ledger entry processing loop. - /// - /// Bank account ledger entry being processed - [IntegrationEvent(false, false)] - local procedure OnInsertFromBankAccLedgEntryOnStartRepeatBankAccLedgEntry(var BankAccountLedgerEntry: Record "Bank Account Ledger Entry") - begin - end; - - /// - /// Integration event raised before inserting reversal entries from fixed asset ledger entries. - /// - /// Temporary transaction number record - /// Transaction or register number being reversed - /// Type of reversal operation - Transaction or Register - /// Next available line number for reversal entries - /// Temporary reversal entry being processed - /// Fixed asset ledger entry being processed - /// Set to true to skip standard FA entry processing - [IntegrationEvent(false, false)] - local procedure OnBeforeInsertFromFALedgEntry(var TempRevertTransactionNoRecordInteger: Record "Integer"; Number: Integer; RevType: Option Transaction,Register; var NextLineNo: Integer; var TempReversalEntry: Record "Reversal Entry" temporary; var FALedgerEntry: Record "FA Ledger Entry"; var IsHandled: Boolean) - begin - end; - - /// - /// Integration event raised after setting VAT entry range filters during reversal processing. - /// - /// VAT entry with applied filters - /// Type of reversal operation - Transaction or Register - /// Temporary transaction number record - [IntegrationEvent(false, false)] - local procedure OnInsertFromVATEntryOnAfterVATEntrySetRange(var VATEntry: Record "VAT Entry"; RevType: Option Transaction,Register; var TempRevertTransactionNoRecordInteger: Record "Integer" temporary) - begin - end; - - /// - /// Integration event raised at the start of VAT entry processing loop during reversal. - /// - /// VAT entry being processed in the loop - [IntegrationEvent(false, false)] - local procedure OnInsertFromVATEntryOnStartRepeatVATEntry(var VATEntry: Record "VAT Entry") - begin - end; - - /// - /// Integration event raised before inserting temporary reversal entry from VAT entry. - /// - /// Temporary reversal entry being inserted - /// Type of reversal operation - Transaction or Register - /// Temporary transaction number record - [IntegrationEvent(false, false)] - local procedure OnInsertFromVATEntryOnBeforeTempReversalEntryInsert(var TempReversalEntry: Record "Reversal Entry" temporary; RevType: Option Transaction,Register; var TempRevertTransactionNo: Record "Integer" temporary) - begin - end; - - /// - /// Integration event raised after setting G/L entry range filters during reversal processing. - /// - /// G/L entry with applied filters - /// Type of reversal operation - Transaction or Register - /// Temporary transaction number record - [IntegrationEvent(false, false)] - local procedure OnInsertFromGLEntryOnAfterGLEntrySetRange(var GLEntry: Record "G/L Entry"; RevType: Option Transaction,Register; var TempRevertTransactionNoRecordInteger: Record "Integer" temporary) - begin - end; - - /// - /// Integration event raised before inserting customer temporary revert transaction number. - /// - /// Temporary transaction number record being inserted - /// Customer ledger entry number for transaction tracking - /// Set to true to skip standard insertion logic - [IntegrationEvent(false, false)] - local procedure OnBeforeInsertCustTempRevertTransNo(var TempRevertTransactionNoRecordInteger: Record "Integer" temporary; CustLedgEntryNo: Integer; var IsHandled: Boolean) - begin - end; - - /// - /// Integration event raised before inserting vendor temporary revert transaction number. - /// - /// Temporary transaction number record being inserted - /// Vendor ledger entry number for transaction tracking - /// Set to true to skip standard insertion logic - [IntegrationEvent(false, false)] - local procedure OnBeforeInsertVendTempRevertTransNo(var TempRevertTransactionNoRecordInteger: Record "Integer" temporary; VendLedgEntryNo: Integer; var IsHandled: Boolean) - begin - end; - - /// - /// Integration event raised before verifying reversal entries for processing validity. - /// - /// Reversal entry record being verified - /// Transaction or register number being verified - /// Type of reversal operation - Transaction or Register - /// Set to true to skip standard verification logic - /// Variable to store verification result - [IntegrationEvent(false, false)] - local procedure OnBeforeVerifyReversalEntries(var ReversalEntry2: Record "Reversal Entry"; Number: Integer; RevType: Option Transaction,Register; var IsHandled: Boolean; var Result: Boolean) - begin - end; -} diff --git a/src/Layers/ES/BaseApp/Finance/ReceivablesPayables/CVLedgerEntryBuffer.Table.al b/src/Layers/ES/BaseApp/Finance/ReceivablesPayables/CVLedgerEntryBuffer.Table.al index 5ab199068c2..f8be9465fd6 100644 --- a/src/Layers/ES/BaseApp/Finance/ReceivablesPayables/CVLedgerEntryBuffer.Table.al +++ b/src/Layers/ES/BaseApp/Finance/ReceivablesPayables/CVLedgerEntryBuffer.Table.al @@ -4,7 +4,6 @@ // ------------------------------------------------------------------------------------------------ namespace Microsoft.Finance.ReceivablesPayables; -using Microsoft; using Microsoft.Bank.BankAccount; using Microsoft.CRM.Team; using Microsoft.Finance.Currency; @@ -682,33 +681,6 @@ table 382 "CV Ledger Entry Buffer" Editable = false; TableRelation = "Dimension Set Entry"; } - field(7000000; "Bill No."; Code[20]) - { - Caption = 'Bill No.'; - DataClassification = SystemMetadata; - } - field(7000001; "Document Situation"; Enum "ES Document Situation") - { - Caption = 'Document Situation'; - DataClassification = SystemMetadata; - } - field(7000002; "Applies-to Bill No."; Code[20]) - { - Caption = 'Applies-to Bill No.'; - DataClassification = SystemMetadata; - } - field(7000003; "Document Status"; Enum "ES Document Status") - { - Caption = 'Document Status'; - DataClassification = SystemMetadata; - } - field(7000004; "CV Ledger Entry Type"; Option) - { - Caption = 'CV Ledger Entry Type'; - DataClassification = SystemMetadata; - OptionCaption = 'Customer,Vendor'; - OptionMembers = Customer,Vendor; - } } keys @@ -811,10 +783,6 @@ table 382 "CV Ledger Entry Buffer" "Pmt. Tolerance (LCY)" := VendLedgEntry."Pmt. Tolerance (LCY)"; "Amount to Apply" := VendLedgEntry."Amount to Apply"; Prepayment := VendLedgEntry.Prepayment; - "Bill No." := VendLedgEntry."Bill No."; - "Document Situation" := VendLedgEntry."Document Situation"; - "Applies-to Bill No." := VendLedgEntry."Applies-to Bill No."; - "Document Status" := VendLedgEntry."Document Status"; OnAfterCopyFromVendLedgerEntry(Rec, VendLedgEntry); end; diff --git a/src/Layers/ES/BaseApp/Finance/ReceivablesPayables/DetailedCVLedgEntryBuffer.Table.al b/src/Layers/ES/BaseApp/Finance/ReceivablesPayables/DetailedCVLedgEntryBuffer.Table.al index ece5bd7a875..93d7335c6e6 100644 --- a/src/Layers/ES/BaseApp/Finance/ReceivablesPayables/DetailedCVLedgEntryBuffer.Table.al +++ b/src/Layers/ES/BaseApp/Finance/ReceivablesPayables/DetailedCVLedgEntryBuffer.Table.al @@ -4,7 +4,6 @@ // ------------------------------------------------------------------------------------------------ namespace Microsoft.Finance.ReceivablesPayables; -using Microsoft; using Microsoft.Finance.Currency; using Microsoft.Finance.GeneralLedger.Journal; using Microsoft.Finance.GeneralLedger.Setup; @@ -423,26 +422,6 @@ table 383 "Detailed CV Ledg. Entry Buffer" Caption = 'Non-Deductible VAT Amount ACY'; Editable = false; } - field(7000000; "Bill No."; Code[20]) - { - Caption = 'Bill No.'; - DataClassification = SystemMetadata; - } - field(7000001; "Document Situation"; Enum "ES Document Situation") - { - Caption = 'Document Situation'; - DataClassification = SystemMetadata; - } - field(7000002; "Applies-to Bill No."; Code[20]) - { - Caption = 'Applies-to Bill No.'; - DataClassification = SystemMetadata; - } - field(7000003; "Document Status"; Enum "ES Document Status") - { - Caption = 'Document Status'; - DataClassification = SystemMetadata; - } } keys @@ -566,9 +545,6 @@ table 383 "Detailed CV Ledg. Entry Buffer" DtldCVLedgEntryBuf.SetRange("Use Tax", NewDtldCVLedgEntryBuf."Use Tax"); DtldCVLedgEntryBuf.SetRange( "Tax Jurisdiction Code", NewDtldCVLedgEntryBuf."Tax Jurisdiction Code"); - DtldCVLedgEntryBuf.SetRange("Bill No.", NewDtldCVLedgEntryBuf."Bill No."); - DtldCVLedgEntryBuf.SetRange("Document Situation", NewDtldCVLedgEntryBuf."Document Situation"); - DtldCVLedgEntryBuf.SetRange("Document Status", NewDtldCVLedgEntryBuf."Document Status"); IsHandled := false; OnBeforeCreateDtldCVLedgEntryBuf(DtldCVLedgEntryBuf, NewDtldCVLedgEntryBuf, NextDtldBufferEntryNo, IsHandled, CVLedgEntryBuf); @@ -648,8 +624,6 @@ table 383 "Detailed CV Ledg. Entry Buffer" "Initial Entry Global Dim. 1" := GenJnlLine."Shortcut Dimension 1 Code"; "Initial Entry Global Dim. 2" := GenJnlLine."Shortcut Dimension 2 Code"; "Initial Document Type" := GenJnlLine."Document Type"; - "Bill No." := GenJnlLine."Bill No."; - "Applies-to Bill No." := GenJnlLine."Applies-to Bill No."; OnAfterCopyFromGenJnlLine(Rec, GenJnlLine); end; diff --git a/src/Layers/ES/BaseApp/Finance/RoleCenters/AccPayablesActivities.Page.al b/src/Layers/ES/BaseApp/Finance/RoleCenters/AccPayablesActivities.Page.al index 1bf6fae991c..a93b6da64fb 100644 --- a/src/Layers/ES/BaseApp/Finance/RoleCenters/AccPayablesActivities.Page.al +++ b/src/Layers/ES/BaseApp/Finance/RoleCenters/AccPayablesActivities.Page.al @@ -5,9 +5,7 @@ namespace Microsoft.Finance.RoleCenters; using Microsoft.Finance.GeneralLedger.Journal; -using Microsoft.Finance.ReceivablesPayables; using Microsoft.Purchases.Document; -using Microsoft.Purchases.History; using Microsoft.Purchases.Payables; using Microsoft.Purchases.Vendor; @@ -86,48 +84,6 @@ page 9032 "Acc. Payables Activities" DrillDownPageID = "Purchase Order List"; } } - cuegroup(Cartera) - { - Caption = 'Cartera'; - field("Payable Documents"; Rec."Payable Documents") - { - ApplicationArea = Basic, Suite; - DrillDownPageID = "Payables Cartera Docs"; - ToolTip = 'Specifies the payables document that is associated with the bill group.'; - } - field("Posted Payable Documents"; Rec."Posted Payable Documents") - { - ApplicationArea = Basic, Suite; - DrillDownPageID = "Posted Cartera Documents"; - ToolTip = 'Specifies the payables documents that have been posted.'; - } - - actions - { - action("New Payment Order") - { - ApplicationArea = Basic, Suite; - Caption = 'New Payment Order'; - RunObject = Page "Payment Orders"; - RunPageMode = Create; - ToolTip = 'Create a new order for payables documents for submission to the bank for electronic payment.'; - } - action("Posted Payment Orders List") - { - ApplicationArea = Basic, Suite; - Caption = 'Posted Payment Orders List'; - RunObject = Page "Posted Payment Orders List"; - ToolTip = 'View posted payment orders that represent payables to submit to the bank as a file for electronic payment.'; - } - action("Posted Payment Orders Select.") - { - ApplicationArea = Basic, Suite; - Caption = 'Posted Payment Orders Select.'; - RunObject = Page "Posted Payment Orders Select."; - ToolTip = 'View or edit where ledger entries are posted when you post a payment order.'; - } - } - } } } diff --git a/src/Layers/ES/BaseApp/Finance/RoleCenters/AccPayablesCoordinatorRC.Page.al b/src/Layers/ES/BaseApp/Finance/RoleCenters/AccPayablesCoordinatorRC.Page.al index fc9d1d0bae9..f01d55e095f 100644 --- a/src/Layers/ES/BaseApp/Finance/RoleCenters/AccPayablesCoordinatorRC.Page.al +++ b/src/Layers/ES/BaseApp/Finance/RoleCenters/AccPayablesCoordinatorRC.Page.al @@ -153,45 +153,6 @@ page 9002 "Acc. Payables Coordinator RC" separator(Action63) { } - separator(Action1100008) - { - } - action("Vendor - Due Payments") - { - ApplicationArea = Basic, Suite; - Caption = 'Vendor - Due Payments'; - Image = "Report"; - RunObject = Report "Vendor - Due Payments"; - ToolTip = 'View a list of payments to be made to a particular vendor sorted by due date.'; - } - group("Cartera Payment Order") - { - Caption = 'Cartera Payment Order'; - action("Closed Payment Order Listing") - { - ApplicationArea = Basic, Suite; - Caption = 'Closed Payment Order Listing'; - Image = "Report"; - RunObject = Report "Closed Payment Order Listing"; - ToolTip = 'View the list of completed payment orders.'; - } - action("Posted Payment Order Listing") - { - ApplicationArea = Basic, Suite; - Caption = 'Posted Payment Order Listing'; - Image = "Report"; - RunObject = Report "Posted Payment Order Listing"; - ToolTip = 'View posted payment orders that represent payables to submit to the bank as a file for electronic payment.'; - } - action("Payment Order Listing") - { - ApplicationArea = Basic, Suite; - Caption = 'Payment Order Listing'; - Image = "Report"; - RunObject = Report "Payment Order Listing"; - ToolTip = 'View or edit payment orders that represent payables to submit to the bank as a file for electronic payment.'; - } - } } area(embedding) { @@ -234,13 +195,6 @@ page 9002 "Acc. Payables Coordinator RC" RunObject = Page "Payment Orders List"; ToolTip = 'View or edit payment orders that represent payables to submit to the bank as a file for electronic payment.'; } - action("Posted Payment Orders List") - { - ApplicationArea = Basic, Suite; - Caption = 'Posted Payment Orders List'; - RunObject = Page "Posted Payment Orders List"; - ToolTip = 'View posted payment orders that represent payables to submit to the bank as a file for electronic payment.'; - } action("Purchase Return Orders") { ApplicationArea = Basic, Suite; @@ -300,15 +254,6 @@ page 9002 "Acc. Payables Coordinator RC" Recurring = const(false)); ToolTip = 'Post financial transactions directly to general ledger accounts and other accounts, such as bank, customer, vendor, and employee accounts. Posting with a general journal always creates entries on general ledger accounts. This is true even when, for example, you post a journal line to a customer account, because an entry is posted to a general ledger receivables account through a posting group.'; } - action("Cartera Journal") - { - ApplicationArea = Basic, Suite; - Caption = 'Cartera Journal'; - RunObject = Page "General Journal Batches"; - RunPageView = where("Template Type" = const(Cartera), - Recurring = const(false)); - ToolTip = 'Prepare to post entries for Cartera documents, which are bills and invoices for customers and vendors. There are two types of bills: receivable bills and payable bills. Receivable bills are sent to a customer to be credited after their due date arrives. Payable bills are sent to a customer from a vendor in order to receive payment when the due date arrives.'; - } } area(sections) { @@ -338,20 +283,6 @@ page 9002 "Acc. Payables Coordinator RC" RunObject = Page "Posted Purchase Credit Memos"; ToolTip = 'Open the list of posted purchase credit memos.'; } - action("Payable Closed Cartera Docs") - { - ApplicationArea = Basic, Suite; - Caption = 'Payable Closed Cartera Docs'; - RunObject = Page "Payable Closed Cartera Docs"; - ToolTip = 'View the vendor bills and invoices that are in closed bill groups.'; - } - action("Closed Payment Orders List") - { - ApplicationArea = Basic, Suite; - Caption = 'Closed Payment Orders List'; - RunObject = Page "Closed Payment Orders List"; - ToolTip = 'View the list of completed payment orders.'; - } action("Posted Return Shipments") { ApplicationArea = Basic, Suite; @@ -414,6 +345,9 @@ page 9002 "Acc. Payables Coordinator RC" RunObject = Page "Payment Orders"; ToolTip = 'Create a new payment order to submit payables as a file to the bank for electronic payment.'; } + } + area(processing) + { separator(Tasks) { Caption = 'Tasks'; diff --git a/src/Layers/ES/BaseApp/Finance/RoleCenters/AccReceivableActivities.Page.al b/src/Layers/ES/BaseApp/Finance/RoleCenters/AccReceivableActivities.Page.al index 352d74d78fa..dd878be9703 100644 --- a/src/Layers/ES/BaseApp/Finance/RoleCenters/AccReceivableActivities.Page.al +++ b/src/Layers/ES/BaseApp/Finance/RoleCenters/AccReceivableActivities.Page.al @@ -5,10 +5,8 @@ namespace Microsoft.Finance.RoleCenters; using Microsoft.Finance.GeneralLedger.Journal; -using Microsoft.Finance.ReceivablesPayables; using Microsoft.Sales.Customer; using Microsoft.Sales.Document; -using Microsoft.Sales.History; using Microsoft.Sales.Receivables; page 9034 "Acc. Receivable Activities" @@ -74,48 +72,6 @@ page 9034 "Acc. Receivable Activities" DrillDownPageID = "Sales Order List"; } } - cuegroup(Cartera) - { - Caption = 'Cartera'; - field("Receivable Documents"; Rec."Receivable Documents") - { - ApplicationArea = Basic, Suite; - DrillDownPageID = "Receivables Cartera Docs"; - ToolTip = 'Specifies the receivables document that is associated with the bill group.'; - } - field("Posted Receivable Documents"; Rec."Posted Receivable Documents") - { - ApplicationArea = Basic, Suite; - DrillDownPageID = "Posted Cartera Documents"; - ToolTip = 'Specifies the receivables documents that have been posted.'; - } - - actions - { - action("New Bill Group") - { - ApplicationArea = Basic, Suite; - Caption = 'New Bill Group'; - RunObject = Page "Bill Groups"; - RunPageMode = Create; - ToolTip = 'Create a new group of receivables documents for submission to the bank for electronic collection.'; - } - action("Posted Bill Groups List") - { - ApplicationArea = Basic, Suite; - Caption = 'Posted Bill Groups List'; - RunObject = Page "Posted Bill Groups List"; - ToolTip = 'View the list of posted bill groups. When a bill group has been posted, the related documents are available for settlement, rejection, or recirculation.'; - } - action("Posted Bill Group Select.") - { - ApplicationArea = Basic, Suite; - Caption = 'Posted Bill Group Select.'; - RunObject = Page "Posted Bill Group Select."; - ToolTip = 'View or edit where ledger entries are posted when you post a bill group.'; - } - } - } } } diff --git a/src/Layers/ES/BaseApp/Finance/RoleCenters/AccReceivablesAdmRC.Page.al b/src/Layers/ES/BaseApp/Finance/RoleCenters/AccReceivablesAdmRC.Page.al index 44130af2e40..14972b93816 100644 --- a/src/Layers/ES/BaseApp/Finance/RoleCenters/AccReceivablesAdmRC.Page.al +++ b/src/Layers/ES/BaseApp/Finance/RoleCenters/AccReceivablesAdmRC.Page.al @@ -8,7 +8,6 @@ using Microsoft.Bank.BankAccount; using Microsoft.Bank.Deposit; using Microsoft.Bank.DirectDebit; using Microsoft.Bank.Payment; -using Microsoft.Bank.Reports; using Microsoft.EServices.EDocument; using Microsoft.Finance.GeneralLedger.Journal; using Microsoft.Finance.GeneralLedger.Ledger; @@ -20,7 +19,6 @@ using Microsoft.Sales.Customer; using Microsoft.Sales.Document; using Microsoft.Sales.FinanceCharge; using Microsoft.Sales.History; -using Microsoft.Sales.Receivables; using Microsoft.Sales.Reminder; using Microsoft.Sales.Reports; using Microsoft.Sales.Setup; @@ -145,58 +143,6 @@ page 9003 "Acc. Receivables Adm. RC" RunObject = Report "Customer - Due Payments"; ToolTip = 'View a list of payments due from a particular customer sorted by due date.'; } - group("Cartera Bill Groups") - { - Caption = 'Cartera Bill Groups'; - action("Closed Bill Group Listing") - { - ApplicationArea = Basic, Suite; - Caption = 'Closed Bill Group Listing'; - Image = "Report"; - RunObject = Report "Closed Bill Group Listing"; - ToolTip = 'View the list of completed bill groups.'; - } - action("Posted Bill Group Listing") - { - ApplicationArea = Basic, Suite; - Caption = 'Posted Bill Group Listing'; - Image = "Report"; - RunObject = Report "Posted Bill Group Listing"; - ToolTip = 'View the list of posted bill groups. When a bill group has been posted, the related documents are available for settlement, rejection, or recirculation.'; - } - action("Bill Group Listing") - { - ApplicationArea = Basic, Suite; - Caption = 'Bill Group Listing'; - Image = "Report"; - RunObject = Report "Bill Group Listing"; - ToolTip = 'View or edit a bill group. Bill groups are receivables documents that are grouped together to submit to a bank for collection. For example, you may want to group documents for the same customer or group documents with the same due date.'; - } - action("Bank - Summ. Bill Group") - { - ApplicationArea = Basic, Suite; - Caption = 'Bank - Summ. Bill Group'; - Image = "Report"; - RunObject = Report "Bank - Summ. Bill Group"; - ToolTip = 'View a detailed summary for existing bill groups.'; - } - action("Bank - Risk") - { - ApplicationArea = Basic, Suite; - Caption = 'Bank - Risk'; - Image = "Report"; - RunObject = Report "Bank - Risk"; - ToolTip = 'View the risk status for discounting bills with the selected bank.'; - } - action("Notice Assignment Credits") - { - ApplicationArea = Basic, Suite; - Caption = 'Notice Assignment Credits'; - Image = "Report"; - RunObject = Report "Notice Assignment Credits"; - ToolTip = 'Define how your company decides to administer its billing using a factoring (factor) entity. You send your customers a notification letter, telling them that it is going to assign its billing to another entity. As of that moment, the client will no longer have to pay the company, they will pay the factoring entity instead.'; - } - } } area(embedding) { @@ -233,20 +179,6 @@ page 9003 "Acc. Receivables Adm. RC" RunObject = Page "Sales Invoice List"; ToolTip = 'Register your sales to customers and invite them to pay according to the delivery and payment terms by sending them a sales invoice document. Posting a sales invoice registers shipment and records an open receivable entry on the customer''s account, which will be closed when payment is received. To manage the shipment process, use sales orders, in which sales invoicing is integrated.'; } - action("Bill Groups List") - { - ApplicationArea = Basic, Suite; - Caption = 'Bill Groups List'; - RunObject = Page "Bill Groups List"; - ToolTip = 'View or edit a bill group. Bill groups are receivables documents that are grouped together to submit to a bank for collection. For example, you may want to group documents for the same customer or group documents with the same due date.'; - } - action("Posted Bill Groups List") - { - ApplicationArea = Basic, Suite; - Caption = 'Posted Bill Groups List'; - RunObject = Page "Posted Bill Groups List"; - ToolTip = 'View the list of posted bill groups. When a bill group has been posted, the related documents are available for settlement, rejection, or recirculation.'; - } action("Sales Return Orders") { ApplicationArea = Basic, Suite; @@ -369,20 +301,6 @@ page 9003 "Acc. Receivables Adm. RC" RunObject = Page "Posted Sales Credit Memos"; ToolTip = 'Open the list of posted sales credit memos.'; } - action("Receivable Closed Cartera Docs") - { - ApplicationArea = Basic, Suite; - Caption = 'Receivable Closed Cartera Docs'; - RunObject = Page "Receivable Closed Cartera Docs"; - ToolTip = 'View the customer bills and invoices that are in the closed bill groups.'; - } - action("Closed Bill Groups List") - { - ApplicationArea = Basic, Suite; - Caption = 'Closed Bill Groups List'; - RunObject = Page "Closed Bill Groups List"; - ToolTip = 'View the list of completed bill groups.'; - } action("Posted Purchase Invoices") { ApplicationArea = Basic, Suite; @@ -505,14 +423,6 @@ page 9003 "Acc. Receivables Adm. RC" ToolTip = 'Create a new reminder for a customer who has overdue payments.'; } } - action("Bill Group") - { - ApplicationArea = Basic, Suite; - Caption = 'Bill Group'; - Image = VoucherGroup; - RunObject = Page "Bill Groups"; - ToolTip = 'View or edit a bill group. Bill groups are receivables documents that are grouped together to submit to a bank for collection. For example, you may want to group documents for the same customer or group documents with the same due date.'; - } separator(Tasks) { Caption = 'Tasks'; @@ -553,28 +463,6 @@ page 9003 "Acc. Receivables Adm. RC" Image = "Action"; RunObject = Report "Combine Return Receipts"; } - separator(Action1100020) - { - } - action("Posted Bill Group Select.") - { - ApplicationArea = Basic, Suite; - Caption = 'Posted Bill Group Select.'; - RunObject = Page "Posted Bill Group Select."; - ToolTip = 'View or edit where ledger entries are posted when you post a bill group.'; - } - group("Bill Group - Export Formats") - { - Caption = 'Bill Group - Export Formats'; - action("Bill Group - Export Factoring") - { - ApplicationArea = Basic, Suite; - Caption = 'Bill Group - Export Factoring'; - Image = "Report"; - RunObject = Report "Bill group - Export factoring"; - ToolTip = 'Send the factoring bill groups to a magnetic media.'; - } - } action("Create Recurring Invoices") { ApplicationArea = Basic, Suite; diff --git a/src/Layers/ES/BaseApp/Finance/RoleCenters/AccountManagerActivities.Page.al b/src/Layers/ES/BaseApp/Finance/RoleCenters/AccountManagerActivities.Page.al index 57651752a67..7d40da4ca3b 100644 --- a/src/Layers/ES/BaseApp/Finance/RoleCenters/AccountManagerActivities.Page.al +++ b/src/Layers/ES/BaseApp/Finance/RoleCenters/AccountManagerActivities.Page.al @@ -104,42 +104,6 @@ page 9030 "Account Manager Activities" } } } - cuegroup(Cartera) - { - Caption = 'Cartera'; - field("Receivable Documents"; Rec."Receivable Documents") - { - ApplicationArea = Basic, Suite; - DrillDownPageID = "Receivables Cartera Docs"; - ToolTip = 'Specifies the receivables document that is associated with the bill group.'; - } - field("Payable Documents"; Rec."Payable Documents") - { - ApplicationArea = Basic, Suite; - DrillDownPageID = "Payables Cartera Docs"; - ToolTip = 'Specifies the payables document that is associated with the bill group.'; - } - - actions - { - action("New Bill Group") - { - ApplicationArea = Basic, Suite; - Caption = 'New Bill Group'; - RunObject = Page "Bill Groups"; - RunPageMode = Create; - ToolTip = 'Create a new group of receivables documents for submission to the bank for electronic collection.'; - } - action("New Payment Order") - { - ApplicationArea = Basic, Suite; - Caption = 'New Payment Order'; - RunObject = Page "Payment Orders"; - RunPageMode = Create; - ToolTip = 'Create a new order for payables documents for submission to the bank for electronic payment.'; - } - } - } cuegroup("Cash Management") { Caption = 'Cash Management'; diff --git a/src/Layers/ES/BaseApp/Finance/RoleCenters/AccountingManagerRoleCenter.Page.al b/src/Layers/ES/BaseApp/Finance/RoleCenters/AccountingManagerRoleCenter.Page.al index 4f7958dc1f6..97167dcdf68 100644 --- a/src/Layers/ES/BaseApp/Finance/RoleCenters/AccountingManagerRoleCenter.Page.al +++ b/src/Layers/ES/BaseApp/Finance/RoleCenters/AccountingManagerRoleCenter.Page.al @@ -30,7 +30,6 @@ using Microsoft.Finance.GeneralLedger.Journal; using Microsoft.Finance.GeneralLedger.Ledger; using Microsoft.Finance.GeneralLedger.Reports; using Microsoft.Finance.GeneralLedger.Setup; -using Microsoft.Finance.ReceivablesPayables; using Microsoft.Finance.VAT.Registration; using Microsoft.Finance.VAT.Reporting; using Microsoft.FixedAssets.Depreciation; @@ -72,53 +71,53 @@ page 9001 "Accounting Manager Role Center" { area(rolecenter) { - part(Control1902304208; "Account Manager Activities") - { - ApplicationArea = Basic, Suite; - } - part("User Tasks Activities"; "User Tasks Activities") - { - ApplicationArea = Suite; - } - part("Job Queue Tasks Activities"; "Job Queue Tasks Activities") - { - ApplicationArea = Suite; - } - part(Control99; "Finance Performance") - { - ApplicationArea = Basic, Suite; - Visible = false; - } - part(Control103; "Trailing Sales Orders Chart") - { - ApplicationArea = Basic, Suite; - Visible = false; - } - part(Control106; "My Job Queue") - { - ApplicationArea = Basic, Suite; - Visible = false; - } - part(Control100; "Cash Flow Forecast Chart") - { - ApplicationArea = Basic, Suite; - } - part(Control1907692008; "My Customers") - { - ApplicationArea = Basic, Suite; - } - part(Control1902476008; "My Vendors") - { - ApplicationArea = Basic, Suite; - } - part(Control108; "Report Inbox Part") - { - ApplicationArea = Basic, Suite; - } - systempart(Control1901377608; MyNotes) - { - ApplicationArea = Basic, Suite; - } + part(Control1902304208; "Account Manager Activities") + { + ApplicationArea = Basic, Suite; + } + part("User Tasks Activities"; "User Tasks Activities") + { + ApplicationArea = Suite; + } + part("Job Queue Tasks Activities"; "Job Queue Tasks Activities") + { + ApplicationArea = Suite; + } + part(Control99; "Finance Performance") + { + ApplicationArea = Basic, Suite; + Visible = false; + } + part(Control103; "Trailing Sales Orders Chart") + { + ApplicationArea = Basic, Suite; + Visible = false; + } + part(Control106; "My Job Queue") + { + ApplicationArea = Basic, Suite; + Visible = false; + } + part(Control100; "Cash Flow Forecast Chart") + { + ApplicationArea = Basic, Suite; + } + part(Control1907692008; "My Customers") + { + ApplicationArea = Basic, Suite; + } + part(Control1902476008; "My Vendors") + { + ApplicationArea = Basic, Suite; + } + part(Control108; "Report Inbox Part") + { + ApplicationArea = Basic, Suite; + } + systempart(Control1901377608; MyNotes) + { + ApplicationArea = Basic, Suite; + } } } @@ -668,7 +667,7 @@ page 9001 "Accounting Manager Role Center" } action("Cost Centers") { - ApplicationArea = Dimensions; + ApplicationArea = CostAccounting; Caption = 'Cost Centers'; RunObject = Page "Chart of Cost Centers"; ToolTip = 'Manage cost centers, which are departments and profit centers that are responsible for costs and income. Often, there are more cost centers set up in cost accounting than in any dimension that is set up in the general ledger. In the general ledger, usually only the first level cost centers for direct costs and the initial costs are used. In cost accounting, additional cost centers are created for additional allocation levels.'; @@ -1016,19 +1015,12 @@ page 9001 "Accounting Manager Role Center" } action("Cost Accounting Setup") { - ApplicationArea = Dimensions; + ApplicationArea = CostAccounting; Caption = 'Cost Accounting Setup'; Image = CostAccountingSetup; RunObject = Page "Cost Accounting Setup"; ToolTip = 'Specify how you transfer general ledger entries to cost accounting, how you link dimensions to cost centers and cost objects, and how you handle the allocation ID and allocation document number.'; } - action("Cartera Setup") - { - ApplicationArea = Basic, Suite; - Caption = 'Cartera Setup'; - RunObject = Page "Cartera Setup"; - ToolTip = 'Configure your company''s policies for bill groups and payment orders.'; - } separator(History) { Caption = 'History'; diff --git a/src/Layers/ES/BaseApp/Finance/RoleCenters/BookkeeperActivities.Page.al b/src/Layers/ES/BaseApp/Finance/RoleCenters/BookkeeperActivities.Page.al index fda4f647583..f155daa15d6 100644 --- a/src/Layers/ES/BaseApp/Finance/RoleCenters/BookkeeperActivities.Page.al +++ b/src/Layers/ES/BaseApp/Finance/RoleCenters/BookkeeperActivities.Page.al @@ -6,13 +6,10 @@ namespace Microsoft.Finance.RoleCenters; using Microsoft.Bank.Reconciliation; using Microsoft.Finance.GeneralLedger.Journal; -using Microsoft.Finance.ReceivablesPayables; using Microsoft.Purchases.Document; -using Microsoft.Purchases.History; using Microsoft.Purchases.Payables; using Microsoft.Purchases.Vendor; using Microsoft.Sales.Document; -using Microsoft.Sales.History; using Microsoft.Sales.Receivables; page 9036 "Bookkeeper Activities" @@ -102,90 +99,6 @@ page 9036 "Bookkeeper Activities" } } } - cuegroup("Cartera Receivables") - { - Caption = 'Cartera Receivables'; - field("Receivable Documents"; Rec."Receivable Documents") - { - ApplicationArea = Basic, Suite; - DrillDownPageID = "Receivables Cartera Docs"; - ToolTip = 'Specifies the receivables document that is associated with the bill group.'; - } - field("Posted Receivable Documents"; Rec."Posted Receivable Documents") - { - ApplicationArea = Basic, Suite; - DrillDownPageID = "Posted Cartera Documents"; - ToolTip = 'Specifies the receivables documents that have been posted.'; - } - - actions - { - action("New Bill Group") - { - ApplicationArea = Basic, Suite; - Caption = 'New Bill Group'; - RunObject = Page "Bill Groups"; - RunPageMode = Create; - ToolTip = 'Create a new group of receivables documents for submission to the bank for electronic collection.'; - } - action("Posted Bill Groups List") - { - ApplicationArea = Basic, Suite; - Caption = 'Posted Bill Groups List'; - RunObject = Page "Posted Bill Groups List"; - ToolTip = 'View the list of posted bill groups. When a bill group has been posted, the related documents are available for settlement, rejection, or recirculation.'; - } - action("Posted Bill Group Select.") - { - ApplicationArea = Basic, Suite; - Caption = 'Posted Bill Group Select.'; - RunObject = Page "Posted Bill Group Select."; - ToolTip = 'View or edit where ledger entries are posted when you post a bill group.'; - } - } - } - cuegroup("Cartera Payables") - { - Caption = 'Cartera Payables'; - field("Payable Documents"; Rec."Payable Documents") - { - ApplicationArea = Basic, Suite; - DrillDownPageID = "Payables Cartera Docs"; - ToolTip = 'Specifies the payables document that is associated with the bill group.'; - } - field("Posted Payable Documents"; Rec."Posted Payable Documents") - { - ApplicationArea = Basic, Suite; - DrillDownPageID = "Posted Cartera Documents"; - ToolTip = 'Specifies the payables documents that have been posted.'; - } - - actions - { - action("New Payment Order") - { - ApplicationArea = Basic, Suite; - Caption = 'New Payment Order'; - RunObject = Page "Payment Orders"; - RunPageMode = Create; - ToolTip = 'Create a new order for payables documents for submission to the bank for electronic payment.'; - } - action("Posted Payment Orders List") - { - ApplicationArea = Basic, Suite; - Caption = 'Posted Payment Orders List'; - RunObject = Page "Posted Payment Orders List"; - ToolTip = 'View posted payment orders that represent payables to submit to the bank as a file for electronic payment.'; - } - action("Posted Payment Orders Select.") - { - ApplicationArea = Basic, Suite; - Caption = 'Posted Payment Orders Select.'; - RunObject = Page "Posted Payment Orders Select."; - ToolTip = 'View or edit where ledger entries are posted when you post a payment order.'; - } - } - } cuegroup("Cash Management") { Caption = 'Cash Management'; diff --git a/src/Layers/ES/BaseApp/Finance/RoleCenters/BookkeeperRoleCenter.Page.al b/src/Layers/ES/BaseApp/Finance/RoleCenters/BookkeeperRoleCenter.Page.al index 1a82739511e..bd5d0e04e4a 100644 --- a/src/Layers/ES/BaseApp/Finance/RoleCenters/BookkeeperRoleCenter.Page.al +++ b/src/Layers/ES/BaseApp/Finance/RoleCenters/BookkeeperRoleCenter.Page.al @@ -25,14 +25,12 @@ using Microsoft.Foundation.Task; using Microsoft.Inventory.Costing; using Microsoft.Purchases.Document; using Microsoft.Purchases.History; -using Microsoft.Purchases.Payables; using Microsoft.Purchases.Reports; using Microsoft.Purchases.Vendor; using Microsoft.Sales.Customer; using Microsoft.Sales.Document; using Microsoft.Sales.FinanceCharge; using Microsoft.Sales.History; -using Microsoft.Sales.Receivables; using Microsoft.Sales.Reminder; using Microsoft.Sales.Reports; using Microsoft.Sales.Setup; @@ -292,58 +290,6 @@ page 9004 "Bookkeeper Role Center" RunObject = Report "Customer - Due Payments"; ToolTip = 'View a list of payments due from a particular customer sorted by due date.'; } - group("Cartera Bill Groups") - { - Caption = 'Cartera Bill Groups'; - action("Closed Bill Group Listing") - { - ApplicationArea = Basic, Suite; - Caption = 'Closed Bill Group Listing'; - Image = "Report"; - RunObject = Report "Closed Bill Group Listing"; - ToolTip = 'View the list of completed bill groups.'; - } - action("Posted Bill Group Listing") - { - ApplicationArea = Basic, Suite; - Caption = 'Posted Bill Group Listing'; - Image = "Report"; - RunObject = Report "Posted Bill Group Listing"; - ToolTip = 'View the list of posted bill groups. When a bill group has been posted, the related documents are available for settlement, rejection, or recirculation.'; - } - action("Bill Group Listing") - { - ApplicationArea = Basic, Suite; - Caption = 'Bill Group Listing'; - Image = "Report"; - RunObject = Report "Bill Group Listing"; - ToolTip = 'View or edit a bill group. Bill groups are receivables documents that are grouped together to submit to a bank for collection. For example, you may want to group documents for the same customer or group documents with the same due date.'; - } - action("Bank - Summ. Bill Group") - { - ApplicationArea = Basic, Suite; - Caption = 'Bank - Summ. Bill Group'; - Image = "Report"; - RunObject = Report "Bank - Summ. Bill Group"; - ToolTip = 'View a detailed summary for existing bill groups.'; - } - action("Bank - Risk") - { - ApplicationArea = Basic, Suite; - Caption = 'Bank - Risk'; - Image = "Report"; - RunObject = Report "Bank - Risk"; - ToolTip = 'View the risk status for discounting bills with the selected bank.'; - } - action("Notice Assignment Credits") - { - ApplicationArea = Basic, Suite; - Caption = 'Notice Assignment Credits'; - Image = "Report"; - RunObject = Report "Notice Assignment Credits"; - ToolTip = 'Define how your company decides to administer its billing using a factoring (factor) entity. You send your customers a notification letter, telling them that it is going to assign its billing to another entity. As of that moment, the client will no longer have to pay the company, they will pay the factoring entity instead.'; - } - } separator(Action1100024) { } @@ -355,34 +301,6 @@ page 9004 "Bookkeeper Role Center" RunObject = Report "Vendor - Due Payments"; ToolTip = 'View a list of payments to be made to a particular vendor sorted by due date.'; } - group("Cartera Payment Orders") - { - Caption = 'Cartera Payment Orders'; - action("Closed Payment Order Listing") - { - ApplicationArea = Basic, Suite; - Caption = 'Closed Payment Order Listing'; - Image = "Report"; - RunObject = Report "Closed Payment Order Listing"; - ToolTip = 'View the list of completed payment orders.'; - } - action("Posted Payment Order Listing") - { - ApplicationArea = Basic, Suite; - Caption = 'Posted Payment Order Listing'; - Image = "Report"; - RunObject = Report "Posted Payment Order Listing"; - ToolTip = 'View posted payment orders that represent payables to submit to the bank as a file for electronic payment.'; - } - action("Payment Order Listing") - { - ApplicationArea = Basic, Suite; - Caption = 'Payment Order Listing'; - Image = "Report"; - RunObject = Report "Payment Order Listing"; - ToolTip = 'View or edit payment orders that represent payables to submit to the bank as a file for electronic payment.'; - } - } } area(embedding) { @@ -489,34 +407,6 @@ page 9004 "Bookkeeper Role Center" RunObject = Page "Sales Order List"; ToolTip = 'Record your agreements with customers to sell certain products on certain delivery and payment terms. Sales orders, unlike sales invoices, allow you to ship partially, deliver directly from your vendor to your customer, initiate warehouse handling, and print various customer-facing documents. Sales invoicing is integrated in the sales order process.'; } - action("Bill Groups List") - { - ApplicationArea = Basic, Suite; - Caption = 'Bill Groups List'; - RunObject = Page "Bill Groups List"; - ToolTip = 'View or edit a bill group. Bill groups are receivables documents that are grouped together to submit to a bank for collection. For example, you may want to group documents for the same customer or group documents with the same due date.'; - } - action("Posted Bill Groups List") - { - ApplicationArea = Basic, Suite; - Caption = 'Posted Bill Groups List'; - RunObject = Page "Posted Bill Groups List"; - ToolTip = 'View the list of posted bill groups. When a bill group has been posted, the related documents are available for settlement, rejection, or recirculation.'; - } - action("Payment Orders List") - { - ApplicationArea = Basic, Suite; - Caption = 'Payment Orders List'; - RunObject = Page "Payment Orders List"; - ToolTip = 'View or edit payment orders that represent payables to submit to the bank as a file for electronic payment.'; - } - action("Posted Payment Orders List") - { - ApplicationArea = Basic, Suite; - Caption = 'Posted Payment Orders List'; - RunObject = Page "Posted Payment Orders List"; - ToolTip = 'View posted payment orders that represent payables to submit to the bank as a file for electronic payment.'; - } action(Approvals) { ApplicationArea = Basic, Suite; @@ -604,20 +494,6 @@ page 9004 "Bookkeeper Role Center" RunObject = Page "Posted Sales Credit Memos"; ToolTip = 'Open the list of posted sales credit memos.'; } - action("Receivable Closed Cartera Docs") - { - ApplicationArea = Basic, Suite; - Caption = 'Receivable Closed Cartera Docs'; - RunObject = Page "Receivable Closed Cartera Docs"; - ToolTip = 'View the customer bills and invoices that are in the closed bill groups.'; - } - action("Closed Bill Groups List") - { - ApplicationArea = Basic, Suite; - Caption = 'Closed Bill Groups List'; - RunObject = Page "Closed Bill Groups List"; - ToolTip = 'View the list of completed bill groups.'; - } action("Posted Purchase Receipts") { ApplicationArea = Basic, Suite; @@ -646,20 +522,6 @@ page 9004 "Bookkeeper Role Center" RunObject = Page "Posted Purchase Credit Memos"; ToolTip = 'Open the list of posted purchase credit memos.'; } - action("Payable Closed Cartera Docs") - { - ApplicationArea = Basic, Suite; - Caption = 'Payable Closed Cartera Docs'; - RunObject = Page "Payable Closed Cartera Docs"; - ToolTip = 'View the vendor bills and invoices that are in closed bill groups.'; - } - action("Closed Payment Orders List") - { - ApplicationArea = Basic, Suite; - Caption = 'Closed Payment Orders List'; - RunObject = Page "Closed Payment Orders List"; - ToolTip = 'View the list of completed payment orders.'; - } action("Issued Reminders") { ApplicationArea = Suite; @@ -770,21 +632,6 @@ page 9004 "Bookkeeper Role Center" RunPageMode = Create; ToolTip = 'Create a new sales credit memo to revert a posted sales invoice.'; } - action("Bill Group") - { - ApplicationArea = Basic, Suite; - Caption = 'Bill Group'; - Image = VoucherGroup; - RunObject = Page "Bill Groups"; - ToolTip = 'View or edit a bill group. Bill groups are receivables documents that are grouped together to submit to a bank for collection. For example, you may want to group documents for the same customer or group documents with the same due date.'; - } - action("Payment Order") - { - ApplicationArea = Basic, Suite; - Caption = 'Payment Order'; - RunObject = Page "Payment Orders"; - ToolTip = 'Create a new payment order to submit payables as a file to the bank for electronic payment.'; - } action("Sales &Fin. Charge Memo") { ApplicationArea = Suite; @@ -876,33 +723,6 @@ page 9004 "Bookkeeper Role Center" RunObject = Page "Bank Acc. Reconciliation"; ToolTip = 'Reconcile entries in your bank account ledger entries with the actual transactions in your bank account, according to the latest bank statement.'; } - action("Posted Bill Group Select.") - { - ApplicationArea = Basic, Suite; - Caption = 'Posted Bill Group Select.'; - RunObject = Page "Posted Bill Group Select."; - ToolTip = 'View or edit where ledger entries are posted when you post a bill group.'; - } - group("Bill Group - Export Formats") - { - Caption = 'Bill Group - Export Formats'; - action("Payment Order - Export N34") - { - ApplicationArea = Basic, Suite; - Caption = 'Payment Order - Export N34'; - Image = "Report"; - RunObject = Report "Payment order - Export N34"; - ToolTip = 'Send the payment orders to magnetic media, following the Higher Banking Council''s (CSB) guidelines (Norm 34).'; - } - action("Bill Group - Export Factoring") - { - ApplicationArea = Basic, Suite; - Caption = 'Bill Group - Export Factoring'; - Image = "Report"; - RunObject = Report "Bill group - Export factoring"; - ToolTip = 'Send the factoring bill groups to a magnetic media.'; - } - } action("Adjust E&xchange Rates") { ApplicationArea = Basic, Suite; diff --git a/src/Layers/ES/BaseApp/Finance/RoleCenters/FinanceCue.Table.al b/src/Layers/ES/BaseApp/Finance/RoleCenters/FinanceCue.Table.al index 808bc1e4199..f997706aac0 100644 --- a/src/Layers/ES/BaseApp/Finance/RoleCenters/FinanceCue.Table.al +++ b/src/Layers/ES/BaseApp/Finance/RoleCenters/FinanceCue.Table.al @@ -6,7 +6,6 @@ namespace Microsoft.Finance.RoleCenters; using Microsoft.Bank.Reconciliation; using Microsoft.EServices.EDocument; -using Microsoft.Finance.ReceivablesPayables; using Microsoft.FixedAssets.Ledger; using Microsoft.Purchases.Document; using Microsoft.Purchases.History; @@ -283,32 +282,6 @@ table 9054 "Finance Cue" Caption = 'Reminder Automation Failures'; ToolTip = 'Specifies the number of failures that occured for the existing reminder automations.'; } - field(7000000; "Receivable Documents"; Integer) - { - CalcFormula = count("Cartera Doc." where(Type = const(Receivable), - "Bill Gr./Pmt. Order No." = const(''))); - Caption = 'Receivable Documents'; - FieldClass = FlowField; - } - field(7000001; "Payable Documents"; Integer) - { - CalcFormula = count("Cartera Doc." where(Type = const(Payable), - "Bill Gr./Pmt. Order No." = const(''))); - Caption = 'Payable Documents'; - FieldClass = FlowField; - } - field(7000002; "Posted Receivable Documents"; Integer) - { - CalcFormula = count("Posted Cartera Doc." where(Type = const(Receivable))); - Caption = 'Posted Receivable Documents'; - FieldClass = FlowField; - } - field(7000003; "Posted Payable Documents"; Integer) - { - CalcFormula = count("Posted Cartera Doc." where(Type = const(Payable))); - Caption = 'Posted Payable Documents'; - FieldClass = FlowField; - } } keys diff --git a/src/Layers/ES/BaseApp/Finance/RoleCenters/FinanceManagerRoleCenter.Page.al b/src/Layers/ES/BaseApp/Finance/RoleCenters/FinanceManagerRoleCenter.Page.al index 268128b1614..7c318107791 100644 --- a/src/Layers/ES/BaseApp/Finance/RoleCenters/FinanceManagerRoleCenter.Page.al +++ b/src/Layers/ES/BaseApp/Finance/RoleCenters/FinanceManagerRoleCenter.Page.al @@ -38,7 +38,6 @@ using Microsoft.Finance.GeneralLedger.Journal; using Microsoft.Finance.GeneralLedger.Ledger; using Microsoft.Finance.GeneralLedger.Reports; using Microsoft.Finance.GeneralLedger.Setup; -using Microsoft.Finance.ReceivablesPayables; using Microsoft.Finance.VAT.Clause; using Microsoft.Finance.VAT.Ledger; using Microsoft.Finance.VAT.RateChange; @@ -484,6 +483,7 @@ page 8901 "Finance Manager Role Center" ApplicationArea = Basic, Suite; Caption = 'Financial Report'; RunObject = report "Account Schedule"; + Tooltip = 'Run the Account Schedule report.'; } action("Normalized Account Schedule") { @@ -697,238 +697,6 @@ page 8901 "Finance Manager Role Center" } } } - group("Group62") - { - Caption = 'Cartera'; - group("Group63") - { - Caption = 'Receivables'; - action("Cartera Journal") - { - ApplicationArea = Basic, Suite; - Caption = 'Cartera Journal'; - RunObject = page "Cartera Journal"; - } - action("Receivables Docs") - { - ApplicationArea = Basic, Suite; - Caption = 'Receivables Docs'; - RunObject = page "Receivables Cartera Docs"; - } - action("Bill Groups") - { - ApplicationArea = Basic, Suite; - Caption = 'Bill Groups'; - RunObject = page "Bill Groups List"; - } - action("Posted Bill Group Select.") - { - ApplicationArea = Basic, Suite; - Caption = 'Posted Bill Groups'; - RunObject = page "Posted Bill Groups List"; - } - action("Closed Receivables Docs") - { - ApplicationArea = Basic, Suite; - Caption = 'Closed Receivables Docs'; - RunObject = page "Receivable Closed Cartera Docs"; - } - action("Closed Bill Groups") - { - ApplicationArea = Basic, Suite; - Caption = 'Closed Bill Groups'; - RunObject = page "Closed Bill Groups List"; - } - group("Group64") - { - Caption = 'Batch Settlement'; - action("Posted Bill &Groups") - { - ApplicationArea = Basic, Suite; - Caption = 'Posted Bill Groups (Batch)'; - RunObject = page "Posted Bill Group Select."; - } - } - } - group("Group65") - { - Caption = 'Payables'; - action("Cartera Journal1") - { - ApplicationArea = Basic, Suite; - Caption = 'Cartera Journal'; - RunObject = page "Cartera Journal"; - } - action("Payables Docs") - { - ApplicationArea = Basic, Suite; - Caption = 'Payables Docs'; - RunObject = page "Payables Cartera Docs"; - } - action("Payment Orders") - { - ApplicationArea = Basic, Suite; - Caption = 'Payment Orders'; - RunObject = page "Payment Orders List"; - } - action("Posted Payment Orders") - { - ApplicationArea = Basic, Suite; - Caption = 'Posted Payment Orders'; - RunObject = page "Posted Payment Orders List"; - } - action("Closed Payables Docs") - { - ApplicationArea = Basic, Suite; - Caption = 'Closed Payables Docs'; - RunObject = page "Payable Closed Cartera Docs"; - } - action("Closed Payment Orders") - { - ApplicationArea = Basic, Suite; - Caption = 'Closed Payment Orders'; - RunObject = page "Closed Payment Orders List"; - } - group("Group66") - { - Caption = 'Batch Settlement'; - action("Posted Payment &Orders") - { - ApplicationArea = Basic, Suite; - Caption = 'Posted Payment Orders (Batch)'; - RunObject = page "Posted Payment Orders Select."; - } - } - } - group("Group67") - { - Caption = 'Reports'; - action("Bank - Summ. Bill Group") - { - ApplicationArea = Basic, Suite; - Caption = 'Bank - Summ. Bill Group'; - RunObject = report "Bank - Summ. Bill Group"; - } - action("Bank - Risk") - { - ApplicationArea = Basic, Suite; - Caption = 'Bank - Risk'; - RunObject = report "Bank - Risk"; - } - action("Customer - Due Payments") - { - ApplicationArea = Basic, Suite; - Caption = 'Customer - Due Payments'; - RunObject = report "Customer - Due Payments"; - } - action("Payment Order Listing") - { - ApplicationArea = Basic, Suite; - Caption = 'Payment Order Listing'; - RunObject = report "Payment Order Listing"; - } - action("Closed Payment Order Listing") - { - ApplicationArea = Basic, Suite; - Caption = 'Closed Payment Order Listing'; - RunObject = report "Closed Payment Order Listing"; - } - action("Posted Payment Order Listing") - { - ApplicationArea = Basic, Suite; - Caption = 'Posted Payment Order Listing'; - RunObject = report "Posted Payment Order Listing"; - } - action("Closed Bill Group Listing") - { - ApplicationArea = Basic, Suite; - Caption = 'Closed Bill Group Listing'; - RunObject = report "Closed Bill Group Listing"; - } - action("Posted Bill Group Listing") - { - ApplicationArea = Basic, Suite; - Caption = 'Posted Bill Group Listing'; - RunObject = report "Posted Bill Group Listing"; - } - action("Bill Group Listing") - { - ApplicationArea = Basic, Suite; - Caption = 'Bill Group Listing'; - RunObject = report "Bill Group Listing"; - } - action("Notice Assignement Credits") - { - ApplicationArea = Basic, Suite; - Caption = 'Notice Assignement Credits'; - RunObject = report "Notice Assignment Credits"; - } - action("Payment order - Export N34") - { - ApplicationArea = Basic, Suite; - Caption = 'Payment order - Export N34'; - RunObject = report "Payment order - Export N34"; - } - action("PO - Export N34.1") - { - ApplicationArea = Basic, Suite; - Caption = 'PO - Export N34.1'; - RunObject = report "PO - Export N34.1"; - } - action("Void PO - Export") - { - ApplicationArea = Basic, Suite; - Caption = 'Void PO - Export'; - RunObject = report "Void PO - Export"; - } - action("Vendor - Due Payments") - { - ApplicationArea = Basic, Suite; - Caption = 'Vendor - Due Payments'; - RunObject = report "Vendor - Due Payments"; - } - action("Bill group - Export factoring") - { - ApplicationArea = Basic, Suite; - Caption = 'Bill group - Export factoring'; - RunObject = report "Bill group - Export factoring"; - } - action("Bill group - Export factoring1") - { - ApplicationArea = Basic, Suite; - Caption = 'Bill group - Export factoring'; - RunObject = report "Bill group - Export factoring"; - } - } - group("Group68") - { - Caption = 'Setup'; - action("Cartera Setup") - { - ApplicationArea = Basic, Suite; - Caption = 'Cartera Setup'; - RunObject = page "Cartera Setup"; - } - action("Cartera Source Code Setup") - { - ApplicationArea = Basic, Suite; - Caption = 'Cartera Source Code Setup'; - RunObject = page "Cartera Source Cd. Setup"; - } - action("Category Codes") - { - ApplicationArea = Basic, Suite; - Caption = 'Category Codes'; - RunObject = page "Category Codes"; - } - action("Cartera Report Selections") - { - ApplicationArea = Basic, Suite; - Caption = 'Cartera Report Selections'; - RunObject = page "Report Selection - Cartera"; - } - } - } group("Group13") { Caption = 'Cash Management'; @@ -1658,6 +1426,7 @@ page 8901 "Finance Manager Role Center" ApplicationArea = Suite; Caption = 'Salesperson Commission'; RunObject = report "Salesperson - Commission"; + Tooltip = 'Run the Salesperson Commission report.'; } action("Customer - Overdue Payments") { @@ -1900,6 +1669,7 @@ page 8901 "Finance Manager Role Center" ApplicationArea = Basic, Suite; Caption = 'Purchase Statistics'; RunObject = report "Purchase Statistics"; + Tooltip = 'Run the Purchase Statistics report.'; } action("Purchases Invoice Book") { diff --git a/src/Layers/ES/BaseApp/Foundation/Company/CompanyInitialize.Codeunit.al b/src/Layers/ES/BaseApp/Foundation/Company/CompanyInitialize.Codeunit.al index 303c7b1681c..623badd153b 100644 --- a/src/Layers/ES/BaseApp/Foundation/Company/CompanyInitialize.Codeunit.al +++ b/src/Layers/ES/BaseApp/Foundation/Company/CompanyInitialize.Codeunit.al @@ -20,7 +20,6 @@ using Microsoft.Finance.FinancialReports; using Microsoft.Finance.GeneralLedger.Journal; using Microsoft.Finance.GeneralLedger.Ledger; using Microsoft.Finance.GeneralLedger.Setup; -using Microsoft.Finance.ReceivablesPayables; using Microsoft.Finance.SalesTax; using Microsoft.Finance.VAT.Ledger; using Microsoft.Finance.VAT.Registration; @@ -281,8 +280,6 @@ codeunit 2 "Company-Initialize" Text1100007: Label 'Your Invoice'; Text1100008: Label 'YP'; Text1100009: Label 'Your payment No.'; - XCARJNL: Label 'CARJNL'; - XCARJNLDescription: Label 'Cartera Journal'; #if not CLEAN29 PEPPOLBIS3_ElectronicFormatTxt: Label 'PEPPOL BIS3', Locked = true; PEPPOLBIS3_ElectronicFormatDescriptionTxt: Label 'PEPPOL BIS3 Format (Pan-European Public Procurement Online)'; @@ -325,7 +322,6 @@ codeunit 2 "Company-Initialize" VATReportSetup: Record "VAT Report Setup"; TaxSetup: Record "Tax Setup"; ConfigSetup: Record "Config. Setup"; - CarteraSetup: Record "Cartera Setup"; DataMigrationSetup: Record "Data Migration Setup"; IncomingDocumentsSetup: Record "Incoming Documents Setup"; CompanyInfo: Record "Company Information"; @@ -455,11 +451,6 @@ codeunit 2 "Company-Initialize" VATSetup.Insert(); end; - if not CarteraSetup.FindFirst() then begin - CarteraSetup.Init(); - CarteraSetup.Insert(); - end; - OnAfterInitSetupTables(); end; @@ -544,7 +535,6 @@ codeunit 2 "Company-Initialize" InsertSourceCode(SourceCodeSetup."Sales Deferral", SourceCodeSalesDeferralLbl, SourceCodeSalesDeferralTxt); InsertSourceCode(SourceCodeSetup."Purchase Deferral", SourceCodePurchaseDeferralLbl, SourceCodePurchaseDeferralTxt); InsertSourceCode(SourceCodeSetup."Production Order", ProductionOrderLbl, ProductionOrderTxt); - InsertSourceCode(SourceCodeSetup."Cartera Journal", XCARJNL, XCARJNLDescription); OnBeforeSourceCodeSetupInsert(SourceCodeSetup); SourceCodeSetup.Insert(); end; diff --git a/src/Layers/ES/BaseApp/Foundation/Navigate/Navigate.Page.al b/src/Layers/ES/BaseApp/Foundation/Navigate/Navigate.Page.al index 49df329cba4..14ea91afe48 100644 --- a/src/Layers/ES/BaseApp/Foundation/Navigate/Navigate.Page.al +++ b/src/Layers/ES/BaseApp/Foundation/Navigate/Navigate.Page.al @@ -11,7 +11,6 @@ using Microsoft.CostAccounting.Ledger; using Microsoft.EServices.EDocument; using Microsoft.Finance.GeneralLedger.Journal; using Microsoft.Finance.GeneralLedger.Ledger; -using Microsoft.Finance.ReceivablesPayables; using Microsoft.Finance.VAT.Ledger; using Microsoft.FixedAssets.Insurance; using Microsoft.FixedAssets.Ledger; @@ -97,21 +96,6 @@ page 344 Navigate FilterSelectionChanged(); end; } - field(CarteraDocNoFilter; CarteraDocNoFilter) - { - ApplicationArea = Basic, Suite; - Caption = 'Bill No.'; - ToolTip = 'Specifies the number of the bill.'; - - trigger OnValidate() - begin - SetPostingDate(PostingDateFilter); - ContactType := ContactType::" "; - ContactNo := ''; - ExtDocNo := ''; - CarteraDocNoFilterOnAfterValidate(); - end; - } field(PostingDateFilter; PostingDateFilter) { ApplicationArea = Basic, Suite; @@ -599,21 +583,6 @@ page 344 Navigate SourceType: Text[30]; SourceNo: Code[20]; SourceName: Text[100]; - [SecurityFiltering(SecurityFilter::Filtered)] - CarteraDoc: Record "Cartera Doc."; - [SecurityFiltering(SecurityFilter::Filtered)] - PostedCarteraDoc: Record "Posted Cartera Doc."; - [SecurityFiltering(SecurityFilter::Filtered)] - ClosedCarteraDoc: Record "Closed Cartera Doc."; - [SecurityFiltering(SecurityFilter::Filtered)] - PostedBillGr: Record "Posted Bill Group"; - [SecurityFiltering(SecurityFilter::Filtered)] - ClosedBillGr: Record "Closed Bill Group"; - [SecurityFiltering(SecurityFilter::Filtered)] - PostedPmtOrd: Record "Posted Payment Order"; - [SecurityFiltering(SecurityFilter::Filtered)] - ClosedPmtOrd: Record "Closed Payment Order"; - CarteraDocNoFilter: Text[250]; ShowEnable: Boolean; PrintEnable: Boolean; DocTypeEnable: Boolean; @@ -776,7 +745,7 @@ page 344 Navigate SalesShptHeader.SetFilter("External Document No.", ExtDocNo); Rec.InsertIntoDocEntry(Database::"Sales Shipment Header", PostedSalesShipmentTxt, SalesShptHeader.Count); end; - if SalesInvHeader.ReadPermission() and (CarteraDocNoFilter = '') then begin + if SalesInvHeader.ReadPermission() then begin SalesInvHeader.Reset(); SalesInvHeader.SetCurrentKey("Sell-to Customer No.", "External Document No."); SalesInvHeader.SetFilter("Sell-to Customer No.", ContactNo); @@ -791,7 +760,7 @@ page 344 Navigate ReturnRcptHeader.SetFilter("External Document No.", ExtDocNo); Rec.InsertIntoDocEntry(Database::"Return Receipt Header", PostedReturnReceiptTxt, ReturnRcptHeader.Count); end; - if SalesCrMemoHeader.ReadPermission() and (CarteraDocNoFilter = '') then begin + if SalesCrMemoHeader.ReadPermission() then begin SalesCrMemoHeader.Reset(); SalesCrMemoHeader.SetCurrentKey("Sell-to Customer No.", "External Document No."); SalesCrMemoHeader.SetFilter("Sell-to Customer No.", ContactNo); @@ -902,7 +871,7 @@ page 344 Navigate FindCostEntries(); FindPostedGenJournalLine(); - if NoTaxableEntry.ReadPermission() and (CarteraDocNoFilter = '') then begin + if NoTaxableEntry.ReadPermission() then begin NoTaxableEntry.Reset(); NoTaxableEntry.SetCurrentKey("Document No.", "Posting Date"); NoTaxableEntry.SetFilter("Document No.", DocNoFilter); @@ -921,22 +890,18 @@ page 344 Navigate OnBeforeFindCustLedgerEntry(CustLedgEntry, DocNoFilter, PostingDateFilter, ExtDocNo, IsHandled); if CustLedgEntry.ReadPermission() and (not IsHandled) then begin CustLedgEntry.Reset(); - CustLedgEntry.SetCurrentKey("Document No.", "Document Type"); + CustLedgEntry.SetCurrentKey("Document No."); CustLedgEntry.SetFilter("Document No.", DocNoFilter); - CustLedgEntry.SetFilter("Bill No.", CarteraDocNoFilter); CustLedgEntry.SetFilter("Posting Date", PostingDateFilter); CustLedgEntry.SetFilter("External Document No.", ExtDocNo); OnFindCustEntriesOnAfterSetFilters(CustLedgEntry); Rec.InsertIntoDocEntry(Database::"Cust. Ledger Entry", CustLedgEntry.TableCaption(), CustLedgEntry.Count); - if CustLedgEntry.FindFirst() then - FindCarteraDocs(CarteraDoc.Type::Receivable.AsInteger()); end; if (DocNoFilter <> '') or (PostingDateFilter <> '') then if DtldCustLedgEntry.ReadPermission() then begin DtldCustLedgEntry.Reset(); - DtldCustLedgEntry.SetCurrentKey("Document No.", "Document Type"); + DtldCustLedgEntry.SetCurrentKey("Document No."); DtldCustLedgEntry.SetFilter("Document No.", DocNoFilter); - DtldCustLedgEntry.SetFilter("Bill No.", CarteraDocNoFilter); DtldCustLedgEntry.SetFilter("Posting Date", PostingDateFilter); OnFindCustEntriesOnAfterDtldCustLedgEntriesSetFilters(DtldCustLedgEntry); Rec.InsertIntoDocEntry(Database::"Detailed Cust. Ledg. Entry", DtldCustLedgEntry.TableCaption(), DtldCustLedgEntry.Count); @@ -952,20 +917,16 @@ page 344 Navigate VendLedgEntry.Reset(); VendLedgEntry.SetCurrentKey("Document No."); VendLedgEntry.SetFilter("Document No.", DocNoFilter); - VendLedgEntry.SetFilter("Bill No.", CarteraDocNoFilter); VendLedgEntry.SetFilter("External Document No.", ExtDocNo); VendLedgEntry.SetFilter("Posting Date", PostingDateFilter); OnFindVendEntriesOnAfterSetFilters(VendLedgEntry); Rec.InsertIntoDocEntry(Database::"Vendor Ledger Entry", VendLedgEntry.TableCaption(), VendLedgEntry.Count); - if VendLedgEntry.FindFirst() then - FindCarteraDocs(CarteraDoc.Type::Payable.AsInteger()); end; if (DocNoFilter <> '') or (PostingDateFilter <> '') then if DtldVendLedgEntry.ReadPermission() then begin DtldVendLedgEntry.Reset(); DtldVendLedgEntry.SetCurrentKey("Document No."); DtldVendLedgEntry.SetFilter("Document No.", DocNoFilter); - DtldVendLedgEntry.SetFilter("Bill No.", CarteraDocNoFilter); DtldVendLedgEntry.SetFilter("Posting Date", PostingDateFilter); OnFindVendEntriesOnAfterDtldVendLedgEntriesSetFilters(DtldVendLedgEntry); Rec.InsertIntoDocEntry(Database::"Detailed Vendor Ledg. Entry", DtldVendLedgEntry.TableCaption(), DtldVendLedgEntry.Count); @@ -983,12 +944,11 @@ page 344 Navigate BankAccLedgEntry.Reset(); BankAccLedgEntry.SetCurrentKey("Document No.", "Posting Date"); BankAccLedgEntry.SetFilter("Document No.", DocNoFilter); - BankAccLedgEntry.SetFilter("Bill No.", CarteraDocNoFilter); BankAccLedgEntry.SetFilter("Posting Date", PostingDateFilter); OnFindBankEntriesOnAfterSetFilters(BankAccLedgEntry); Rec.InsertIntoDocEntry(Database::"Bank Account Ledger Entry", BankAccLedgEntry.TableCaption(), BankAccLedgEntry.Count); end; - if CheckLedgEntry.ReadPermission() and (CarteraDocNoFilter = '') then begin + if CheckLedgEntry.ReadPermission() then begin CheckLedgEntry.Reset(); CheckLedgEntry.SetCurrentKey("Document No.", "Posting Date"); CheckLedgEntry.SetFilter("Document No.", DocNoFilter); @@ -1006,7 +966,6 @@ page 344 Navigate GLEntry.Reset(); GLEntry.SetCurrentKey("Document No.", "Posting Date"); GLEntry.SetFilter("Document No.", DocNoFilter); - GLEntry.SetFilter("Bill No.", CarteraDocNoFilter); GLEntry.SetFilter("Posting Date", PostingDateFilter); GLEntry.SetFilter("External Document No.", ExtDocNo); OnFindGLEntriesOnAfterSetFilters(GLEntry); @@ -1018,7 +977,7 @@ page 344 Navigate begin if (DocNoFilter = '') and (PostingDateFilter = '') then exit; - if VATEntry.ReadPermission() and (CarteraDocNoFilter = '') then begin + if VATEntry.ReadPermission() then begin VATEntry.Reset(); VATEntry.SetCurrentKey("Document No.", "Posting Date"); VATEntry.SetFilter("Document No.", DocNoFilter); @@ -1032,7 +991,7 @@ page 344 Navigate begin if (DocNoFilter = '') and (PostingDateFilter = '') then exit; - if FALedgEntry.ReadPermission() and (CarteraDocNoFilter = '') then begin + if FALedgEntry.ReadPermission() then begin FALedgEntry.Reset(); FALedgEntry.SetCurrentKey("Document No.", "Posting Date"); FALedgEntry.SetFilter("Document No.", DocNoFilter); @@ -1040,14 +999,14 @@ page 344 Navigate OnFindFAEntriesOnAfterSetFilters(FALedgEntry); Rec.InsertIntoDocEntry(Database::"FA Ledger Entry", FALedgEntry.TableCaption(), FALedgEntry.Count); end; - if MaintenanceLedgEntry.ReadPermission() and (CarteraDocNoFilter = '') then begin + if MaintenanceLedgEntry.ReadPermission() then begin MaintenanceLedgEntry.Reset(); MaintenanceLedgEntry.SetCurrentKey("Document No.", "Posting Date"); MaintenanceLedgEntry.SetFilter("Document No.", DocNoFilter); MaintenanceLedgEntry.SetFilter("Posting Date", PostingDateFilter); Rec.InsertIntoDocEntry(Database::"Maintenance Ledger Entry", MaintenanceLedgEntry.TableCaption(), MaintenanceLedgEntry.Count); end; - if InsuranceCovLedgEntry.ReadPermission() and (CarteraDocNoFilter = '') then begin + if InsuranceCovLedgEntry.ReadPermission() then begin InsuranceCovLedgEntry.Reset(); InsuranceCovLedgEntry.SetCurrentKey("Document No.", "Posting Date"); InsuranceCovLedgEntry.SetFilter("Document No.", DocNoFilter); @@ -1074,7 +1033,7 @@ page 344 Navigate ValueEntry.SetFilter("Posting Date", PostingDateFilter); Rec.InsertIntoDocEntry(Database::"Value Entry", ValueEntry.TableCaption(), ValueEntry.Count); end; - if PhysInvtLedgEntry.ReadPermission() and (CarteraDocNoFilter = '') then begin + if PhysInvtLedgEntry.ReadPermission() then begin PhysInvtLedgEntry.Reset(); PhysInvtLedgEntry.SetCurrentKey("Document No.", "Posting Date"); PhysInvtLedgEntry.SetFilter("Document No.", DocNoFilter); @@ -1101,7 +1060,7 @@ page 344 Navigate begin if (DocNoFilter = '') and (PostingDateFilter = '') then exit; - if ResLedgEntry.ReadPermission() and (CarteraDocNoFilter = '') then begin + if ResLedgEntry.ReadPermission() then begin ResLedgEntry.Reset(); ResLedgEntry.SetCurrentKey("Document No.", "Posting Date"); ResLedgEntry.SetFilter("Document No.", DocNoFilter); @@ -1141,7 +1100,7 @@ page 344 Navigate begin if (DocNoFilter = '') and (PostingDateFilter = '') then exit; - if JobLedgEntry.ReadPermission() and (CarteraDocNoFilter = '') then begin + if JobLedgEntry.ReadPermission() then begin JobLedgEntry.Reset(); JobLedgEntry.SetCurrentKey("Document No.", "Posting Date"); JobLedgEntry.SetFilter("Document No.", DocNoFilter); @@ -1184,37 +1143,6 @@ page 344 Navigate FindPostedInvtReceipt(); FindPostedInvtShipment(); - if (DocNoFilter <> '') or (PostingDateFilter <> '') then begin - if PostedBillGr.ReadPermission() and (CarteraDocNoFilter = '') then begin - PostedBillGr.Reset(); - PostedBillGr.SetCurrentKey("No."); - PostedBillGr.SetFilter("No.", DocNoFilter); - PostedBillGr.SetFilter("Posting Date", PostingDateFilter); - Rec.InsertIntoDocEntry(DATABASE::"Posted Bill Group", PostedBillGr.TableCaption(), PostedBillGr.Count); - end; - if ClosedBillGr.ReadPermission() and (CarteraDocNoFilter = '') then begin - ClosedBillGr.Reset(); - ClosedBillGr.SetCurrentKey("No."); - ClosedBillGr.SetFilter("No.", DocNoFilter); - ClosedBillGr.SetFilter("Posting Date", PostingDateFilter); - Rec.InsertIntoDocEntry(DATABASE::"Closed Bill Group", ClosedBillGr.TableCaption(), ClosedBillGr.Count); - end; - if PostedPmtOrd.ReadPermission() and (CarteraDocNoFilter = '') then begin - PostedPmtOrd.Reset(); - PostedPmtOrd.SetCurrentKey("No."); - PostedPmtOrd.SetFilter("No.", DocNoFilter); - PostedPmtOrd.SetFilter("Posting Date", PostingDateFilter); - Rec.InsertIntoDocEntry(DATABASE::"Posted Payment Order", PostedPmtOrd.TableCaption(), PostedPmtOrd.Count); - end; - if ClosedPmtOrd.ReadPermission() and (CarteraDocNoFilter = '') then begin - ClosedPmtOrd.Reset(); - ClosedPmtOrd.SetCurrentKey("No."); - ClosedPmtOrd.SetFilter("No.", DocNoFilter); - ClosedPmtOrd.SetFilter("Posting Date", PostingDateFilter); - Rec.InsertIntoDocEntry(DATABASE::"Closed Payment Order", ClosedPmtOrd.TableCaption(), ClosedPmtOrd.Count); - end; - end; - OnAfterFindPostedDocuments(DocNoFilter, PostingDateFilter, Rec); end; @@ -1325,7 +1253,7 @@ page 344 Navigate local procedure FindPurchRcptHeader() begin - if PurchRcptHeader.ReadPermission() and (CarteraDocNoFilter = '') then begin + if PurchRcptHeader.ReadPermission() then begin PurchRcptHeader.Reset(); PurchRcptHeader.SetFilter("No.", DocNoFilter); PurchRcptHeader.SetFilter("Posting Date", PostingDateFilter); @@ -1339,7 +1267,7 @@ page 344 Navigate local procedure FindPurchInvoiceHeader() begin - if PurchInvHeader.ReadPermission() and (CarteraDocNoFilter = '') then begin + if PurchInvHeader.ReadPermission() then begin PurchInvHeader.Reset(); PurchInvHeader.SetFilter("No.", DocNoFilter); PurchInvHeader.SetFilter("Posting Date", PostingDateFilter); @@ -1757,20 +1685,6 @@ page 344 Navigate PAGE.Run(PAGE::"Posted Invt. Shipment", PostedInvtShptHeader) else PAGE.Run(0, PostedInvtShptHeader); - DATABASE::"Cartera Doc.": - PAGE.Run(0, CarteraDoc); - DATABASE::"Posted Cartera Doc.": - PAGE.Run(0, PostedCarteraDoc); - DATABASE::"Closed Cartera Doc.": - PAGE.Run(0, ClosedCarteraDoc); - DATABASE::"Posted Bill Group": - PAGE.Run(0, PostedBillGr); - DATABASE::"Closed Bill Group": - PAGE.Run(0, ClosedBillGr); - DATABASE::"Posted Payment Order": - PAGE.Run(0, PostedPmtOrd); - DATABASE::"Closed Payment Order": - PAGE.Run(0, ClosedPmtOrd); DATABASE::"No Taxable Entry": PAGE.Run(0, NoTaxableEntry); end; @@ -2066,40 +1980,6 @@ page 344 Navigate ContactNo := ''; end; - [Scope('OnPrem')] - procedure FindCarteraDocs(AccountType: Option Receivable,Payable) - begin - if (DocNoFilter = '') and (PostingDateFilter = '') and (CarteraDocNoFilter = '') then - exit; - - if CarteraDoc.ReadPermission() then begin - CarteraDoc.Reset(); - CarteraDoc.SetCurrentKey(Type, "Original Document No."); - CarteraDoc.SetFilter("Original Document No.", DocNoFilter); - CarteraDoc.SetFilter("No.", CarteraDocNoFilter); // C2 - CarteraDoc.SetFilter("Posting Date", PostingDateFilter); - CarteraDoc.SetRange(Type, AccountType); - Rec.InsertIntoDocEntry(DATABASE::"Cartera Doc.", CarteraDoc.TableCaption(), CarteraDoc.Count); - end; - if PostedCarteraDoc.ReadPermission() then begin - PostedCarteraDoc.Reset(); - PostedCarteraDoc.SetCurrentKey(Type, "Original Document No."); - PostedCarteraDoc.SetFilter("Original Document No.", DocNoFilter); - PostedCarteraDoc.SetFilter("No.", CarteraDocNoFilter); // C2 - PostedCarteraDoc.SetFilter("Posting Date", PostingDateFilter); - Rec.InsertIntoDocEntry(DATABASE::"Posted Cartera Doc.", PostedCarteraDoc.TableCaption(), PostedCarteraDoc.Count); - end; - if ClosedCarteraDoc.ReadPermission() then begin - ClosedCarteraDoc.Reset(); - ClosedCarteraDoc.SetCurrentKey(Type, "Original Document No."); - ClosedCarteraDoc.SetFilter("Original Document No.", DocNoFilter); - ClosedCarteraDoc.SetFilter("No.", CarteraDocNoFilter); // C2 - ClosedCarteraDoc.SetFilter("Posting Date", PostingDateFilter); - ClosedCarteraDoc.SetRange(Type, AccountType); - Rec.InsertIntoDocEntry(DATABASE::"Closed Cartera Doc.", ClosedCarteraDoc.TableCaption(), ClosedCarteraDoc.Count); - end; - end; - local procedure DocNoFilterOnAfterValidate() begin ClearSourceInfo(); @@ -2110,11 +1990,6 @@ page 344 Navigate ClearSourceInfo(); end; - local procedure CarteraDocNoFilterOnAfterValidate() - begin - ClearSourceInfo(); - end; - local procedure ExtDocNoOnAfterValidate() begin ClearSourceInfo(); diff --git a/src/Layers/ES/BaseApp/Local/CRTCopyDocumentMgt.Codeunit.al b/src/Layers/ES/BaseApp/Local/CRTCopyDocumentMgt.Codeunit.al new file mode 100644 index 00000000000..2741038046b --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/CRTCopyDocumentMgt.Codeunit.al @@ -0,0 +1,139 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Utilities; + +using Microsoft.Finance.GeneralLedger.Journal; +using Microsoft.Purchases.Document; +using Microsoft.Purchases.History; +using Microsoft.Purchases.Payables; +using Microsoft.Sales.Document; +using Microsoft.Sales.History; +using Microsoft.Sales.Receivables; + + +codeunit 7000111 "CRT Copy Document Mgt." +{ + var + SettlementErr: Label 'At least one document of %1 No. %2 is closed or in a Bill Group. This will avoid the document to be settled. The posting process of %3 No. %4 wont settle any document', Comment = '%1 - Document Type, %2 - Document No., %3 - Document Type, %4 - Document No.'; + + [EventSubscriber(ObjectType::Codeunit, Codeunit::"Copy Document Mgt.", 'OnUpdateCustLedgEntryOnAfterSetFilters', '', true, false)] + local procedure OnUpdateCustLedgEntryOnAfterSetFilters(var CustLedgerEntry: Record "Cust. Ledger Entry"; var ToSalesHeader: Record "Sales Header"; FromDocType: Enum "Gen. Journal Document Type"; FromDocNo: Code[20]) + begin + CustLedgerEntry.SetRange("Document Situation", CustLedgerEntry."Document Situation"::" "); + end; + + [EventSubscriber(ObjectType::Codeunit, Codeunit::"Copy Document Mgt.", 'OnUpdateVendLedgEntryOnAfterSetFilters', '', true, false)] + local procedure OnUpdateVendLedgEntryOnAfterSetFilters(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var ToPurchHeader: Record "Purchase Header"; FromDocType: Enum "Gen. Journal Document Type"; FromDocNo: Code[20]) + begin + VendorLedgerEntry.SetRange("Document Situation", VendorLedgerEntry."Document Situation"::" "); + end; + + [EventSubscriber(ObjectType::Codeunit, Codeunit::"Copy Document Mgt.", 'OnUpdateVendLedgEntryOnNoOpenEntries', '', true, false)] + local procedure OnUpdateVendLedgEntryOnNoOpenEntries(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var ToPurchHeader: Record "Purchase Header"; FromDocType: Enum "Gen. Journal Document Type"; FromDocNo: Code[20]) + var + FromPurchInvHeader: Record "Purch. Inv. Header"; + begin + if FromDocType = "Purchase Document Type From"::"Posted Invoice" then begin + FromPurchInvHeader.Get(FromDocNo); + TestPurchEfecs(FromDocType, ToPurchHeader, FromPurchInvHeader, VendorLedgerEntry); + end; + end; + + local procedure TestPurchEfecs(FromDocType: Enum "Gen. Journal Document Type"; var ToPurchHeader: Record "Purchase Header"; var FromPurchInvHeader: Record "Purch. Inv. Header"; var VendorLedgEntry: Record "Vendor Ledger Entry") + var + ApplyVendorEntries: Page "Apply Vendor Entries"; + ErrorCount: Integer; + begin + ErrorCount := 0; + VendorLedgEntry.SetFilter( + "Document Type", '%1|%2', VendorLedgEntry."Document Type"::Invoice, VendorLedgEntry."Document Type"::Bill); + VendorLedgEntry.SetFilter("Document Situation", '<>%1', VendorLedgEntry."Document Situation"::" "); + if not VendorLedgEntry.Find('-') then + exit; + + repeat + if VendorLedgEntry."Document Situation" <> VendorLedgEntry."Document Situation"::Cartera then + if not ((VendorLedgEntry."Document Situation" in + [VendorLedgEntry."Document Situation"::"Closed Documents", + VendorLedgEntry."Document Situation"::"Closed BG/PO"]) and + (VendorLedgEntry."Document Status" = VendorLedgEntry."Document Status"::Rejected)) + then + ErrorCount := ErrorCount + 1; + until VendorLedgEntry.Next() = 0; + if ErrorCount = 0 then + if VendorLedgEntry.Find('-') then + repeat + if VendorLedgEntry."Document Type" = VendorLedgEntry."Document Type"::Bill then begin + ToPurchHeader."Applies-to ID" := FromPurchInvHeader."No."; + ApplyVendorEntries.SetPurch(ToPurchHeader, VendorLedgEntry, ToPurchHeader.FieldNo("Applies-to ID")); + ApplyVendorEntries.SetRecord(VendorLedgEntry); + ApplyVendorEntries.SetTableView(VendorLedgEntry); + ApplyVendorEntries.SetVendApplId(false); + end else begin + ToPurchHeader."Applies-to Doc. Type" := ToPurchHeader."Applies-to Doc. Type"::Invoice; + ToPurchHeader."Applies-to Doc. No." := FromPurchInvHeader."No."; + end + until VendorLedgEntry.Next() = 0 + else + Message( + SettlementErr, + Format(FromDocType), Format(FromPurchInvHeader."No."), + Format(ToPurchHeader."Document Type"), Format(ToPurchHeader."No.")); + end; + + [EventSubscriber(ObjectType::Codeunit, Codeunit::"Copy Document Mgt.", 'OnUpdateCustLedgEntryOnNoOpenEntries', '', true, false)] + local procedure OnUpdateCustLedgEntryOnNoOpenEntries(var CustLedgerEntry: Record "Cust. Ledger Entry"; var ToSalesHeader: Record "Sales Header"; FromDocType: Enum "Gen. Journal Document Type"; FromDocNo: Code[20]) + var + FromSalesInvHeader: Record "Sales Invoice Header"; + begin + if FromDocType = "Sales Document Type From"::"Posted Invoice" then begin + FromSalesInvHeader.Get(FromDocNo); + TestSalesEfecs(FromDocType, ToSalesHeader, FromSalesInvHeader, CustLedgerEntry); + end; + end; + + local procedure TestSalesEfecs(FromDocType: Enum "Gen. Journal Document Type"; var ToSalesHeader: Record "Sales Header"; var FromSalesInvHeader: Record "Sales Invoice Header"; var CustLedgerEntry: Record "Cust. Ledger Entry") + var + ApplyCustEntries: Page "Apply Customer Entries"; + ErrorCount: Integer; + begin + ErrorCount := 0; + CustLedgerEntry.SetFilter( + "Document Type", '%1|%2', CustLedgerEntry."Document Type"::Invoice, CustLedgerEntry."Document Type"::Bill); + CustLedgerEntry.SetFilter("Document Situation", '<>%1', CustLedgerEntry."Document Situation"::" "); + if not CustLedgerEntry.Find('-') then + exit; + + repeat + if CustLedgerEntry."Document Situation" <> CustLedgerEntry."Document Situation"::Cartera then + if not ((CustLedgerEntry."Document Situation" in + [CustLedgerEntry."Document Situation"::"Closed Documents", + CustLedgerEntry."Document Situation"::"Closed BG/PO"]) and + (CustLedgerEntry."Document Status" = CustLedgerEntry."Document Status"::Rejected)) + then + ErrorCount := ErrorCount + 1; + + until CustLedgerEntry.Next() = 0; + if ErrorCount = 0 then + if CustLedgerEntry.Find('-') then + repeat + if CustLedgerEntry."Document Type" = CustLedgerEntry."Document Type"::Bill then begin + ToSalesHeader."Applies-to ID" := FromSalesInvHeader."No."; + ApplyCustEntries.SetSales(ToSalesHeader, CustLedgerEntry, ToSalesHeader.FieldNo("Applies-to ID")); + ApplyCustEntries.SetRecord(CustLedgerEntry); + ApplyCustEntries.SetTableView(CustLedgerEntry); + ApplyCustEntries.SetCustApplId(false); + end else begin + ToSalesHeader."Applies-to Doc. Type" := ToSalesHeader."Applies-to Doc. Type"::Invoice; + ToSalesHeader."Applies-to Doc. No." := FromSalesInvHeader."No."; + end + until CustLedgerEntry.Next() = 0 + else + Message( + SettlementErr, + Format(FromDocType), Format(FromSalesInvHeader."No."), + Format(ToSalesHeader."Document Type"), Format(ToSalesHeader."No.")); + end; +} \ No newline at end of file diff --git a/src/Layers/ES/BaseApp/Local/CRTDataClassEvalDataCountry.Codeunit.al b/src/Layers/ES/BaseApp/Local/CRTDataClassEvalDataCountry.Codeunit.al new file mode 100644 index 00000000000..8bd88720ba7 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/CRTDataClassEvalDataCountry.Codeunit.al @@ -0,0 +1,41 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Utilities; + +using Microsoft.Finance.ReceivablesPayables; +using Microsoft.Purchases.History; +using Microsoft.Purchases.Payables; +using Microsoft.Sales.History; +using Microsoft.Sales.Receivables; + +codeunit 7000114 "CRT DataClass EvalData Country" +{ + var + DataClassificationEvalData: Codeunit "Data Classification Eval. Data"; + + [EventSubscriber(ObjectType::Codeunit, Codeunit::"Data Class. Eval. Data Country", 'OnAfterClassifyCountrySpecificTables', '', true, false)] + local procedure OnAfterClassifyCountrySpecificTables() + begin + DataClassificationEvalData.SetTableFieldsToNormal(Database::"Payment Day"); + DataClassificationEvalData.SetTableFieldsToNormal(Database::"Non-Payment Period"); + DataClassificationEvalData.SetTableFieldsToNormal(Database::"Cartera Doc."); + DataClassificationEvalData.SetTableFieldsToNormal(Database::"Posted Cartera Doc."); + DataClassificationEvalData.SetTableFieldsToNormal(Database::"Closed Cartera Doc."); + DataClassificationEvalData.SetTableFieldsToNormal(Database::"Bill Group"); + DataClassificationEvalData.SetTableFieldsToNormal(Database::"Posted Bill Group"); + DataClassificationEvalData.SetTableFieldsToNormal(Database::"Closed Bill Group"); + DataClassificationEvalData.SetTableFieldsToNormal(Database::"BG/PO Comment Line"); + DataClassificationEvalData.SetTableFieldsToNormal(Database::"Operation Fee"); + DataClassificationEvalData.SetTableFieldsToNormal(Database::"Cartera Report Selections"); + DataClassificationEvalData.SetTableFieldsToNormal(Database::"Cartera Setup"); + DataClassificationEvalData.SetTableFieldsToNormal(Database::Installment); + DataClassificationEvalData.SetTableFieldsToNormal(Database::"Fee Range"); + DataClassificationEvalData.SetTableFieldsToNormal(Database::"Payment Order"); + DataClassificationEvalData.SetTableFieldsToNormal(Database::"Posted Payment Order"); + DataClassificationEvalData.SetTableFieldsToNormal(Database::"Closed Payment Order"); + DataClassificationEvalData.SetTableFieldsToNormal(Database::"Customer Rating"); + DataClassificationEvalData.SetTableFieldsToNormal(Database::Suffix); + end; +} \ No newline at end of file diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Bank/BankAccount/CRTBankAccount.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Bank/BankAccount/CRTBankAccount.Codeunit.al new file mode 100644 index 00000000000..03e93033de6 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Bank/BankAccount/CRTBankAccount.Codeunit.al @@ -0,0 +1,56 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Bank.BankAccount; + +using Microsoft.Finance.ReceivablesPayables; +using Microsoft.Purchases.History; +using Microsoft.Sales.History; +using Microsoft.Sales.Receivables; + +codeunit 7000080 "CRT Bank Account" +{ + var + CarteraSetup: Record "Cartera Setup"; + CannotChangeDueToPostedBillGroupsErr: Label 'You cannot change %1 because there are one or more posted bill groups for this bank account.', Comment = '%1 = Field caption'; + CannotChangeDueToPostedPmtOrdersErr: Label 'You cannot change %1 because there are one or more posted payment orders for this bank account.', Comment = '%1 = Field caption'; + + [EventSubscriber(ObjectType::Table, Database::"Bank Account", OnAfterValidateEvent, 'No.', true, false)] + local procedure NoOnAfterValidate(var Rec: Record "Bank Account"; var xRec: Record "Bank Account"; CurrFieldNo: Integer) + begin + Rec."Operation Fees Code" := Rec."No."; + end; + + [EventSubscriber(ObjectType::Table, Database::"Bank Account", OnAfterValidateEvent, 'Currency Code', true, false)] + local procedure CurrencyCodeOnAfterValidate(var Rec: Record "Bank Account"; var xRec: Record "Bank Account"; CurrFieldNo: Integer) + var + PostedBillGr: Record "Posted Bill Group"; + PostedPmtOrd: Record "Posted Payment Order"; + begin + if CarteraSetup.ReadPermission then begin + PostedBillGr.SetCurrentKey("Bank Account No."); + PostedBillGr.SetRange("Bank Account No.", Rec."No."); + if not PostedBillGr.IsEmpty() then + Error(CannotChangeDueToPostedBillGroupsErr, Rec.FieldCaption("Currency Code")); + PostedPmtOrd.SetCurrentKey("Bank Account No."); + PostedPmtOrd.SetRange("Bank Account No.", Rec."No."); + if not PostedPmtOrd.IsEmpty() then + Error(CannotChangeDueToPostedPmtOrdersErr, Rec.FieldCaption("Currency Code")); + end; + end; + + [EventSubscriber(ObjectType::Table, Database::"Bank Account", OnAfterDeleteEvent, '', true, false)] + local procedure CurrencyCodeOnAfterDelete(var Rec: Record "Bank Account") + var + Suffix: Record Suffix; + DocumentMove: Codeunit "Document-Move"; + begin + DocumentMove.MoveBankAccDocs(Rec); + + if CarteraSetup.ReadPermission then begin + Suffix.SetRange("Bank Acc. Code", Rec."No."); + Suffix.DeleteAll(); + end; + end; +} \ No newline at end of file diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Bank/BankAccount/CRTBankAccount.TableExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Bank/BankAccount/CRTBankAccount.TableExt.al new file mode 100644 index 00000000000..a26ced296eb --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Bank/BankAccount/CRTBankAccount.TableExt.al @@ -0,0 +1,555 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Bank.BankAccount; + +using Microsoft.Finance.ReceivablesPayables; +using Microsoft.Foundation.AuditCodes; +using Microsoft.Purchases.History; +using Microsoft.Purchases.Payables; +using Microsoft.Sales.History; +using Microsoft.Sales.Receivables; + +tableextension 7000080 "CRT Bank Account" extends "Bank Account" +{ + fields + { + field(7000000; "Delay for Notices"; Integer) + { + Caption = 'Delay for Notices'; + DataClassification = CustomerContent; + MinValue = 0; + } + field(7000001; "Credit Limit for Discount"; Decimal) + { + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + Caption = 'Credit Limit for Discount'; + DataClassification = CustomerContent; + MinValue = 0; + } + field(7000002; "Last Bill Gr. No."; Code[20]) + { + Caption = 'Last Bill Gr. No.'; + DataClassification = CustomerContent; + Editable = false; + } + field(7000003; "Date of Last Post. Bill Gr."; Date) + { + Caption = 'Date of Last Post. Bill Gr.'; + DataClassification = CustomerContent; + Editable = false; + } + field(7000004; "Operation Fees Code"; Code[20]) + { + Caption = 'Operation Fees Code'; + DataClassification = CustomerContent; + TableRelation = "Bank Account" where("Currency Code" = field("Currency Code")); + ValidateTableRelation = true; + } + field(7000005; "Posted Receiv. Bills Rmg. Amt."; Decimal) + { + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + CalcFormula = sum("Posted Cartera Doc."."Remaining Amount" where("Bank Account No." = field("No."), + "Global Dimension 1 Code" = field("Global Dimension 1 Filter"), + "Global Dimension 2 Code" = field("Global Dimension 2 Filter"), + "Dealing Type" = field("Dealing Type Filter"), + Status = field("Status Filter"), + "Category Code" = field("Category Filter"), + "Honored/Rejtd. at Date" = field("Honored/Rejtd. at Date Filter"), + "Due Date" = field("Due Date Filter"), + Type = const(Receivable), + "Document Type" = const(Bill))); + Caption = 'Posted Receiv. Bills Rmg. Amt.'; + Editable = false; + FieldClass = FlowField; + } + field(7000006; "Posted Receiv. Bills Amt."; Decimal) + { + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + CalcFormula = sum("Posted Cartera Doc."."Amount for Collection" where("Bank Account No." = field("No."), + "Global Dimension 1 Code" = field("Global Dimension 1 Filter"), + "Global Dimension 2 Code" = field("Global Dimension 2 Filter"), + "Dealing Type" = field("Dealing Type Filter"), + Status = field("Status Filter"), + "Category Code" = field("Category Filter"), + "Honored/Rejtd. at Date" = field("Honored/Rejtd. at Date Filter"), + "Due Date" = field("Due Date Filter"), + Type = const(Receivable), + "Document Type" = const(Bill))); + Caption = 'Posted Receiv. Bills Amt.'; + Editable = false; + FieldClass = FlowField; + } + field(7000007; "Closed Receiv. Bills Amt."; Decimal) + { + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + CalcFormula = sum("Closed Cartera Doc."."Amount for Collection" where("Bank Account No." = field("No."), + "Global Dimension 1 Code" = field("Global Dimension 1 Filter"), + "Global Dimension 2 Code" = field("Global Dimension 2 Filter"), + Status = field("Status Filter"), + "Honored/Rejtd. at Date" = field("Honored/Rejtd. at Date Filter"), + "Due Date" = field("Due Date Filter"), + Type = const(Receivable), + "Document Type" = const(Bill))); + Caption = 'Closed Receiv. Bills Amt.'; + Editable = false; + FieldClass = FlowField; + } + field(7000008; "Dealing Type Filter"; Enum "Cartera Dealing Type") + { + Caption = 'Dealing Type Filter'; + FieldClass = FlowFilter; + } + field(7000009; "Status Filter"; Enum "Cartera Document Status") + { + Caption = 'Status Filter'; + FieldClass = FlowFilter; + } + field(7000010; "Category Filter"; Code[10]) + { + Caption = 'Category Filter'; + FieldClass = FlowFilter; + TableRelation = "Category Code"; + } + field(7000011; "Due Date Filter"; Date) + { + Caption = 'Due Date Filter'; + FieldClass = FlowFilter; + } + field(7000012; "Honored/Rejtd. at Date Filter"; Date) + { + Caption = 'Honored/Rejtd. at Date Filter'; + FieldClass = FlowFilter; + } + field(7000013; "Posted R.Bills Rmg. Amt. (LCY)"; Decimal) + { + AutoFormatType = 1; + AutoFormatExpression = ''; + CalcFormula = sum("Posted Cartera Doc."."Remaining Amt. (LCY)" where("Bank Account No." = field("No."), + "Global Dimension 1 Code" = field("Global Dimension 1 Filter"), + "Global Dimension 2 Code" = field("Global Dimension 2 Filter"), + "Dealing Type" = field("Dealing Type Filter"), + Status = field("Status Filter"), + "Category Code" = field("Category Filter"), + "Honored/Rejtd. at Date" = field("Honored/Rejtd. at Date Filter"), + "Due Date" = field("Due Date Filter"), + Type = const(Receivable), + "Document Type" = const(Bill))); + Caption = 'Posted R.Bills Rmg. Amt. (LCY)'; + Editable = false; + FieldClass = FlowField; + } + field(7000014; "Posted Receiv Bills Amt. (LCY)"; Decimal) + { + AutoFormatType = 1; + AutoFormatExpression = ''; + CalcFormula = sum("Posted Cartera Doc."."Amt. for Collection (LCY)" where("Bank Account No." = field("No."), + "Global Dimension 1 Code" = field("Global Dimension 1 Filter"), + "Global Dimension 2 Code" = field("Global Dimension 2 Filter"), + "Dealing Type" = field("Dealing Type Filter"), + Status = field("Status Filter"), + "Category Code" = field("Category Filter"), + "Honored/Rejtd. at Date" = field("Honored/Rejtd. at Date Filter"), + "Due Date" = field("Due Date Filter"), + Type = const(Receivable), + "Document Type" = const(Bill))); + Caption = 'Posted Receiv Bills Amt. (LCY)'; + Editable = false; + FieldClass = FlowField; + } + field(7000015; "Closed Receiv Bills Amt. (LCY)"; Decimal) + { + AutoFormatType = 1; + AutoFormatExpression = ''; + CalcFormula = sum("Closed Cartera Doc."."Amt. for Collection (LCY)" where("Bank Account No." = field("No."), + "Global Dimension 1 Code" = field("Global Dimension 1 Filter"), + "Global Dimension 2 Code" = field("Global Dimension 2 Filter"), + Status = field("Status Filter"), + "Honored/Rejtd. at Date" = field("Honored/Rejtd. at Date Filter"), + "Due Date" = field("Due Date Filter"), + Type = const(Receivable), + "Document Type" = const(Bill))); + Caption = 'Closed Receiv Bills Amt. (LCY)'; + Editable = false; + FieldClass = FlowField; + } + field(7000016; "VAT Registration No."; Text[20]) + { + Caption = 'VAT Registration No.'; + DataClassification = CustomerContent; + } + field(7000017; "Customer Ratings Code"; Code[20]) + { + Caption = 'Customer Ratings Code'; + DataClassification = CustomerContent; + TableRelation = "Bank Account" where("Currency Code" = field("Currency Code")); + ValidateTableRelation = true; + } + field(7000018; "Posted Pay. Bills Rmg. Amt."; Decimal) + { + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + CalcFormula = sum("Posted Cartera Doc."."Remaining Amount" where("Bank Account No." = field("No."), + "Global Dimension 1 Code" = field("Global Dimension 1 Filter"), + "Global Dimension 2 Code" = field("Global Dimension 2 Filter"), + "Dealing Type" = field("Dealing Type Filter"), + Status = field("Status Filter"), + "Category Code" = field("Category Filter"), + "Honored/Rejtd. at Date" = field("Honored/Rejtd. at Date Filter"), + "Due Date" = field("Due Date Filter"), + Type = const(Payable), + "Document Type" = const(Bill))); + Caption = 'Posted Pay. Bills Rmg. Amt.'; + Editable = false; + FieldClass = FlowField; + } + field(7000019; "Posted Pay. Bills Amt."; Decimal) + { + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + CalcFormula = sum("Posted Cartera Doc."."Amount for Collection" where("Bank Account No." = field("No."), + "Global Dimension 1 Code" = field("Global Dimension 1 Filter"), + "Global Dimension 2 Code" = field("Global Dimension 2 Filter"), + "Dealing Type" = field("Dealing Type Filter"), + Status = field("Status Filter"), + "Category Code" = field("Category Filter"), + "Honored/Rejtd. at Date" = field("Honored/Rejtd. at Date Filter"), + "Due Date" = field("Due Date Filter"), + Type = const(Payable), + "Document Type" = const(Bill))); + Caption = 'Posted Pay. Bills Amt.'; + Editable = false; + FieldClass = FlowField; + } + field(7000020; "Closed Pay. Bills Amt."; Decimal) + { + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + CalcFormula = sum("Closed Cartera Doc."."Amount for Collection" where("Bank Account No." = field("No."), + "Global Dimension 1 Code" = field("Global Dimension 1 Filter"), + "Global Dimension 2 Code" = field("Global Dimension 2 Filter"), + Status = field("Status Filter"), + "Honored/Rejtd. at Date" = field("Honored/Rejtd. at Date Filter"), + "Due Date" = field("Due Date Filter"), + Type = const(Payable), + "Document Type" = const(Bill))); + Caption = 'Closed Pay. Bills Amt.'; + Editable = false; + FieldClass = FlowField; + } + field(7000021; "Posted P.Bills Rmg. Amt. (LCY)"; Decimal) + { + AutoFormatType = 1; + AutoFormatExpression = ''; + CalcFormula = sum("Posted Cartera Doc."."Remaining Amt. (LCY)" where("Bank Account No." = field("No."), + "Global Dimension 1 Code" = field("Global Dimension 1 Filter"), + "Global Dimension 2 Code" = field("Global Dimension 2 Filter"), + "Dealing Type" = field("Dealing Type Filter"), + Status = field("Status Filter"), + "Category Code" = field("Category Filter"), + "Honored/Rejtd. at Date" = field("Honored/Rejtd. at Date Filter"), + "Due Date" = field("Due Date Filter"), + "Document Type" = const(Bill), + Type = const(Payable))); + Caption = 'Posted P.Bills Rmg. Amt. (LCY)'; + Editable = false; + FieldClass = FlowField; + } + field(7000022; "Posted Pay. Bills Amt. (LCY)"; Decimal) + { + AutoFormatType = 1; + AutoFormatExpression = ''; + CalcFormula = sum("Posted Cartera Doc."."Amt. for Collection (LCY)" where("Bank Account No." = field("No."), + "Global Dimension 1 Code" = field("Global Dimension 1 Filter"), + "Global Dimension 2 Code" = field("Global Dimension 2 Filter"), + "Dealing Type" = field("Dealing Type Filter"), + Status = field("Status Filter"), + "Category Code" = field("Category Filter"), + "Honored/Rejtd. at Date" = field("Honored/Rejtd. at Date Filter"), + "Due Date" = field("Due Date Filter"), + Type = const(Payable), + "Document Type" = const(Bill))); + Caption = 'Posted Pay. Bills Amt. (LCY)'; + Editable = false; + FieldClass = FlowField; + } + field(7000023; "Closed Pay. Bills Amt. (LCY)"; Decimal) + { + AutoFormatType = 1; + AutoFormatExpression = ''; + CalcFormula = sum("Closed Cartera Doc."."Amt. for Collection (LCY)" where("Bank Account No." = field("No."), + "Global Dimension 1 Code" = field("Global Dimension 1 Filter"), + "Global Dimension 2 Code" = field("Global Dimension 2 Filter"), + Status = field("Status Filter"), + "Honored/Rejtd. at Date" = field("Honored/Rejtd. at Date Filter"), + "Due Date" = field("Due Date Filter"), + Type = const(Payable), + "Document Type" = const(Bill))); + Caption = 'Closed Pay. Bills Amt. (LCY)'; + Editable = false; + FieldClass = FlowField; + } + field(7000024; "Post. Receivable Inv. Amt."; Decimal) + { + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + CalcFormula = sum("Posted Cartera Doc."."Amount for Collection" where("Bank Account No." = field("No."), + "Global Dimension 1 Code" = field("Global Dimension 1 Filter"), + "Global Dimension 2 Code" = field("Global Dimension 2 Filter"), + "Dealing Type" = field("Dealing Type Filter"), + Status = field("Status Filter"), + "Category Code" = field("Category Filter"), + "Honored/Rejtd. at Date" = field("Honored/Rejtd. at Date Filter"), + "Due Date" = field("Due Date Filter"), + Type = const(Receivable), + "Document Type" = const(Invoice))); + Caption = 'Post. Receivable Inv. Amt.'; + Editable = false; + FieldClass = FlowField; + } + field(7000025; "Clos. Receivable Inv. Amt."; Decimal) + { + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + CalcFormula = sum("Closed Cartera Doc."."Amount for Collection" where("Bank Account No." = field("No."), + "Global Dimension 1 Code" = field("Global Dimension 1 Filter"), + "Global Dimension 2 Code" = field("Global Dimension 2 Filter"), + Status = field("Status Filter"), + "Honored/Rejtd. at Date" = field("Honored/Rejtd. at Date Filter"), + "Due Date" = field("Due Date Filter"), + Type = const(Receivable), + "Document Type" = const(Invoice))); + Caption = 'Clos. Receivable Inv. Amt.'; + Editable = false; + FieldClass = FlowField; + } + field(7000026; "Posted Pay. Invoices Amt."; Decimal) + { + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + CalcFormula = sum("Posted Cartera Doc."."Amount for Collection" where("Bank Account No." = field("No."), + "Global Dimension 1 Code" = field("Global Dimension 1 Filter"), + "Global Dimension 2 Code" = field("Global Dimension 2 Filter"), + "Dealing Type" = field("Dealing Type Filter"), + Status = field("Status Filter"), + "Category Code" = field("Category Filter"), + "Honored/Rejtd. at Date" = field("Honored/Rejtd. at Date Filter"), + "Due Date" = field("Due Date Filter"), + Type = const(Payable), + "Document Type" = const(Invoice))); + Caption = 'Posted Pay. Invoices Amt.'; + Editable = false; + FieldClass = FlowField; + } + field(7000027; "Closed Pay. Invoices Amt."; Decimal) + { + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + CalcFormula = sum("Closed Cartera Doc."."Amount for Collection" where("Bank Account No." = field("No."), + "Global Dimension 1 Code" = field("Global Dimension 1 Filter"), + "Global Dimension 2 Code" = field("Global Dimension 2 Filter"), + Status = field("Status Filter"), + "Honored/Rejtd. at Date" = field("Honored/Rejtd. at Date Filter"), + "Due Date" = field("Due Date Filter"), + Type = const(Payable), + "Document Type" = const(Invoice))); + Caption = 'Closed Pay. Invoices Amt.'; + Editable = false; + FieldClass = FlowField; + } + field(7000028; "Posted Pay. Inv. Rmg. Amt."; Decimal) + { + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + CalcFormula = sum("Posted Cartera Doc."."Remaining Amount" where("Bank Account No." = field("No."), + "Global Dimension 1 Code" = field("Global Dimension 1 Filter"), + "Global Dimension 2 Code" = field("Global Dimension 2 Filter"), + "Dealing Type" = field("Dealing Type Filter"), + Status = field("Status Filter"), + "Category Code" = field("Category Filter"), + "Honored/Rejtd. at Date" = field("Honored/Rejtd. at Date Filter"), + "Due Date" = field("Due Date Filter"), + Type = const(Payable), + "Document Type" = const(Invoice))); + Caption = 'Posted Pay. Inv. Rmg. Amt.'; + Editable = false; + FieldClass = FlowField; + } + field(7000029; "Posted Pay. Documents Amt."; Decimal) + { + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + CalcFormula = sum("Posted Cartera Doc."."Amount for Collection" where("Bank Account No." = field("No."), + "Global Dimension 1 Code" = field("Global Dimension 1 Filter"), + "Global Dimension 2 Code" = field("Global Dimension 2 Filter"), + "Dealing Type" = field("Dealing Type Filter"), + Status = field("Status Filter"), + "Category Code" = field("Category Filter"), + "Honored/Rejtd. at Date" = field("Honored/Rejtd. at Date Filter"), + "Due Date" = field("Due Date Filter"), + Type = const(Payable))); + Caption = 'Posted Pay. Documents Amt.'; + Editable = false; + FieldClass = FlowField; + } + field(7000030; "Closed Pay. Documents Amt."; Decimal) + { + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + CalcFormula = sum("Closed Cartera Doc."."Amount for Collection" where("Bank Account No." = field("No."), + "Global Dimension 1 Code" = field("Global Dimension 1 Filter"), + "Global Dimension 2 Code" = field("Global Dimension 2 Filter"), + Status = field("Status Filter"), + "Honored/Rejtd. at Date" = field("Honored/Rejtd. at Date Filter"), + "Due Date" = field("Due Date Filter"), + Type = const(Payable))); + Caption = 'Closed Pay. Documents Amt.'; + Editable = false; + FieldClass = FlowField; + } + } + + var + CarteraSetup: Record "Cartera Setup"; + PostedBillGr: Record "Posted Bill Group"; + ClosedBillGr: Record "Closed Bill Group"; + PostedPmtOrd: Record "Posted Payment Order"; + ClosedPmtOrd: Record "Closed Payment Order"; + + [Scope('OnPrem')] + procedure DiscInterestsTotalAmt(PostDateFilter: Code[250]): Decimal + begin + if CarteraSetup.ReadPermission then begin + PostedBillGr.SetCurrentKey("Bank Account No.", "Posting Date"); + PostedBillGr.SetRange("Bank Account No.", "No."); + PostedBillGr.SetFilter("Posting Date", PostDateFilter); + PostedBillGr.CalcSums("Discount Interests Amt."); + ClosedBillGr.SetCurrentKey("Bank Account No.", "Posting Date"); + ClosedBillGr.SetRange("Bank Account No.", "No."); + ClosedBillGr.SetFilter("Posting Date", PostDateFilter); + ClosedBillGr.CalcSums("Discount Interests Amt."); + exit(PostedBillGr."Discount Interests Amt." + ClosedBillGr."Discount Interests Amt."); + end; + end; + + [Scope('OnPrem')] + procedure ServicesFeesTotalAmt(PostDateFilter: Code[250]): Decimal + begin + if CarteraSetup.ReadPermission then begin + PostedBillGr.SetCurrentKey("Bank Account No.", "Posting Date"); + PostedBillGr.SetRange("Bank Account No.", "No."); + PostedBillGr.SetFilter("Posting Date", PostDateFilter); + PostedBillGr.CalcSums("Discount Expenses Amt."); + ClosedBillGr.SetCurrentKey("Bank Account No.", "Posting Date"); + ClosedBillGr.SetRange("Bank Account No.", "No."); + ClosedBillGr.SetFilter("Posting Date", PostDateFilter); + ClosedBillGr.CalcSums("Discount Expenses Amt."); + exit(PostedBillGr."Discount Expenses Amt." + ClosedBillGr."Discount Expenses Amt."); + end; + end; + + [Scope('OnPrem')] + procedure CollectionFeesTotalAmt(PostDateFilter: Code[250]): Decimal + begin + if CarteraSetup.ReadPermission then begin + PostedBillGr.SetCurrentKey("Bank Account No.", "Posting Date"); + PostedBillGr.SetRange("Bank Account No.", "No."); + PostedBillGr.SetFilter("Posting Date", PostDateFilter); + PostedBillGr.CalcSums("Collection Expenses Amt."); + ClosedBillGr.SetCurrentKey("Bank Account No.", "Posting Date"); + ClosedBillGr.SetRange("Bank Account No.", "No."); + ClosedBillGr.SetFilter("Posting Date", PostDateFilter); + ClosedBillGr.CalcSums("Collection Expenses Amt."); + exit(PostedBillGr."Collection Expenses Amt." + ClosedBillGr."Collection Expenses Amt."); + end; + end; + + [Scope('OnPrem')] + procedure RejExpensesAmt(PostDateFilter: Code[250]): Decimal + begin + if CarteraSetup.ReadPermission then begin + PostedBillGr.SetCurrentKey("Bank Account No.", "Posting Date"); + PostedBillGr.SetRange("Bank Account No.", "No."); + PostedBillGr.SetFilter("Posting Date", PostDateFilter); + PostedBillGr.CalcSums("Rejection Expenses Amt."); + ClosedBillGr.SetCurrentKey("Bank Account No.", "Posting Date"); + ClosedBillGr.SetRange("Bank Account No.", "No."); + ClosedBillGr.SetFilter("Posting Date", PostDateFilter); + ClosedBillGr.CalcSums("Rejection Expenses Amt."); + exit(PostedBillGr."Rejection Expenses Amt." + ClosedBillGr."Rejection Expenses Amt."); + end; + end; + + [Scope('OnPrem')] + procedure RiskFactFeesTotalAmt(PostDateFilter: Code[250]): Decimal + begin + if CarteraSetup.ReadPermission then begin + PostedBillGr.SetCurrentKey("Bank Account No.", "Posting Date", Factoring); + PostedBillGr.SetRange("Bank Account No.", "No."); + PostedBillGr.SetFilter("Posting Date", PostDateFilter); + PostedBillGr.CalcSums("Risked Factoring Exp. Amt."); + ClosedBillGr.SetCurrentKey("Bank Account No.", "Posting Date", Factoring); + ClosedBillGr.SetRange("Bank Account No.", "No."); + ClosedBillGr.SetFilter("Posting Date", PostDateFilter); + ClosedBillGr.CalcSums("Risked Factoring Exp. Amt."); + exit(PostedBillGr."Risked Factoring Exp. Amt." + ClosedBillGr."Risked Factoring Exp. Amt."); + end; + end; + + [Scope('OnPrem')] + procedure UnriskFactFeesTotalAmt(PostDateFilter: Code[250]): Decimal + begin + if CarteraSetup.ReadPermission then begin + PostedBillGr.SetCurrentKey("Bank Account No.", "Posting Date", Factoring); + PostedBillGr.SetRange("Bank Account No.", "No."); + PostedBillGr.SetFilter("Posting Date", PostDateFilter); + PostedBillGr.CalcSums("Collection Expenses Amt."); + ClosedBillGr.SetCurrentKey("Bank Account No.", "Posting Date", Factoring); + ClosedBillGr.SetRange("Bank Account No.", "No."); + ClosedBillGr.SetFilter("Posting Date", PostDateFilter); + ClosedBillGr.CalcSums("Unrisked Factoring Exp. Amt."); + exit(PostedBillGr."Unrisked Factoring Exp. Amt." + ClosedBillGr."Unrisked Factoring Exp. Amt."); + end; + end; + + [Scope('OnPrem')] + procedure DiscInterestFactTotalAmt(PostDateFilter: Code[250]): Decimal + begin + if CarteraSetup.ReadPermission then begin + PostedBillGr.SetCurrentKey("Bank Account No.", "Posting Date", Factoring); + PostedBillGr.SetRange("Bank Account No.", "No."); + PostedBillGr.SetFilter(Factoring, '<>%1', PostedBillGr.Factoring::" "); + PostedBillGr.SetFilter("Posting Date", PostDateFilter); + PostedBillGr.CalcSums("Discount Interests Amt."); + ClosedBillGr.SetCurrentKey("Bank Account No.", "Posting Date", Factoring); + ClosedBillGr.SetRange("Bank Account No.", "No."); + ClosedBillGr.SetFilter(Factoring, '<>%1', ClosedBillGr.Factoring::" "); + ClosedBillGr.SetFilter("Posting Date", PostDateFilter); + ClosedBillGr.CalcSums("Discount Interests Amt."); + PostedBillGr.SetRange(Factoring); + ClosedBillGr.SetRange(Factoring); + exit(PostedBillGr."Discount Interests Amt." + ClosedBillGr."Discount Interests Amt."); + end; + end; + + [Scope('OnPrem')] + procedure PaymentOrderFeesTotalAmt(PostDateFilter: Code[250]): Decimal + begin + if CarteraSetup.ReadPermission then begin + PostedPmtOrd.SetCurrentKey("Bank Account No.", "Posting Date"); + PostedPmtOrd.SetRange("Bank Account No.", "No."); + PostedPmtOrd.SetFilter("Posting Date", PostDateFilter); + PostedPmtOrd.CalcSums("Payment Order Expenses Amt."); + ClosedPmtOrd.SetCurrentKey("Bank Account No.", "Posting Date"); + ClosedPmtOrd.SetRange("Bank Account No.", "No."); + ClosedPmtOrd.SetFilter("Posting Date", PostDateFilter); + ClosedPmtOrd.CalcSums("Payment Order Expenses Amt."); + exit(PostedPmtOrd."Payment Order Expenses Amt." + ClosedPmtOrd."Payment Order Expenses Amt."); + end; + end; +} \ No newline at end of file diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Bank/BankAccount/CRTBankAccountCard.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Bank/BankAccount/CRTBankAccountCard.PageExt.al new file mode 100644 index 00000000000..90e01307723 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Bank/BankAccount/CRTBankAccountCard.PageExt.al @@ -0,0 +1,179 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Bank.BankAccount; + +using Microsoft.Bank.Reports; +using Microsoft.Finance.ReceivablesPayables; +using Microsoft.Purchases.History; +using Microsoft.Purchases.Payables; +using Microsoft.Sales.History; +using Microsoft.Sales.Receivables; + +pageextension 7000152 "CRT Bank Account Card" extends "Bank Account Card" +{ + layout + { + addlast(content) + { + group(Cartera) + { + Caption = 'Cartera'; + field("Delay for Notices"; Rec."Delay for Notices") + { + ApplicationArea = Basic, Suite; + ToolTip = 'Specifies, if applicable, the delay for notice defined for this bank.'; + } + field("Credit Limit for Discount"; Rec."Credit Limit for Discount") + { + ApplicationArea = Basic, Suite; + Importance = Promoted; + ToolTip = 'Specifies the credit limit for the discount of bills available at this particular bank.'; + } + field("Operation Fees Code"; Rec."Operation Fees Code") + { + ApplicationArea = Basic, Suite; + ToolTip = 'Specifies the operations fee code related to this particular bank.'; + } + field("Customer Ratings Code"; Rec."Customer Ratings Code") + { + ApplicationArea = Basic, Suite; + ToolTip = 'Specifies the code for insolvency risk percentages that the bank assigns to its customers.'; + } + } + } + } + + actions + { + addlast("&Bank Acc.") + { + separator(Action1100030) + { + } + action("&Operation Fees") + { + ApplicationArea = Basic, Suite; + Caption = '&Operation Fees'; + Image = Costs; + RunObject = Page "Operation Fees"; + RunPageLink = Code = field("Operation Fees Code"), + "Currency Code" = field("Currency Code"); + ToolTip = 'View the various operation fees that banks charge to process the documents that are remitted to them. These operations include collections, discounts, discount interest, rejections, payment orders, unrisked factoring, and risked factoring.'; + } + action("Customer Ratings") + { + ApplicationArea = Basic, Suite; + Caption = 'Customer Ratings'; + Image = CustomerRating; + RunObject = Page "Customer Ratings"; + RunPageLink = Code = field("Customer Ratings Code"), + "Currency Code" = field("Currency Code"); + ToolTip = 'View or edit the risk percentages that are assigned to customers according to their insolvency risk.'; + } + action("Sufi&xes") + { + ApplicationArea = Basic, Suite; + Caption = 'Sufi&xes'; + Image = NumberSetup; + RunObject = Page Suffixes; + RunPageLink = "Bank Acc. Code" = field("No."); + ToolTip = 'View the bank suffixes that area assigned to manage bill groups. Typically, banks assign the company a different suffix for managing bill groups, depending if they are receivable or discount management type operations.'; + } + separator(Action1100034) + { + } + action("Bill &Groups") + { + ApplicationArea = Basic, Suite; + Caption = 'Bill &Groups'; + Image = VoucherGroup; + RunObject = Page "Bill Groups List"; + RunPageLink = "Bank Account No." = field("No."); + RunPageView = sorting("Bank Account No."); + ToolTip = 'View the related bill groups.'; + } + action("&Posted Bill Groups") + { + ApplicationArea = Basic, Suite; + Caption = '&Posted Bill Groups'; + Image = PostedVoucherGroup; + RunObject = Page "Posted Bill Groups List"; + RunPageLink = "Bank Account No." = field("No."); + RunPageView = sorting("Bank Account No."); + ToolTip = 'View the list of posted bill groups. When a bill group has been posted, the related documents are available for settlement, rejection, or recirculation.'; + } + separator(Action1100038) + { + } + action("Payment O&rders") + { + ApplicationArea = Basic, Suite; + Caption = 'Payment O&rders'; + Image = Payment; + RunObject = Page "Payment Orders List"; + RunPageLink = "Bank Account No." = field("No."); + RunPageView = sorting("Bank Account No."); + ToolTip = 'View or edit related payment orders.'; + } + action("Posted P&ayment Orders") + { + ApplicationArea = Basic, Suite; + Caption = 'Posted P&ayment Orders'; + Image = PostedPayment; + RunObject = Page "Posted Payment Orders List"; + RunPageLink = "Bank Account No." = field("No."); + RunPageView = sorting("Bank Account No."); + ToolTip = 'View posted payment orders that represent payables to submit to the bank as a file for electronic payment.'; + } + separator(Action1100041) + { + } + action("Posted Recei&vable Bills") + { + ApplicationArea = Basic, Suite; + Caption = 'Posted Recei&vable Bills'; + Image = PostedReceivableVoucher; + RunObject = Page "Bank Cat. Posted Receiv. Bills"; + ToolTip = 'View the list of posted bill groups pertaining to receivables.'; + } + action("Posted Pa&yable Bills") + { + ApplicationArea = Basic, Suite; + Caption = 'Posted Pa&yable Bills'; + Image = PostedPayableVoucher; + RunObject = Page "Bank Cat. Posted Payable Bills"; + ToolTip = 'View the list of posted bill groups pertaining to payables.'; + } + } + addlast(reporting) + { + action("Bank - Summ. Bill Group") + { + ApplicationArea = Basic, Suite; + Caption = 'Bank - Summ. Bill Group'; + Image = "Report"; + RunObject = Report "Bank - Summ. Bill Group"; + ToolTip = 'View a detailed summary for existing bill groups.'; + } + action("Bank - Risk") + { + ApplicationArea = Basic, Suite; + Caption = 'Bank - Risk'; + Image = "Report"; + RunObject = Report "Bank - Risk"; + ToolTip = 'View the risk status for discounting bills with the selected bank.'; + } + } + addlast(Category_Report) + { + actionref("Bank - Summ. Bill Group_Promoted"; "Bank - Summ. Bill Group") + { + } + actionref("Bank - Risk_Promoted"; "Bank - Risk") + { + } + } + } +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Bank/BankAccount/CRTBankAccountList.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Bank/BankAccount/CRTBankAccountList.PageExt.al new file mode 100644 index 00000000000..00ac5eac8d9 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Bank/BankAccount/CRTBankAccountList.PageExt.al @@ -0,0 +1,142 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Bank.BankAccount; + +using Microsoft.Bank.Reports; +using Microsoft.Finance.ReceivablesPayables; +using Microsoft.Purchases.History; +using Microsoft.Purchases.Payables; +using Microsoft.Sales.History; +using Microsoft.Sales.Receivables; + +pageextension 7000153 "CRT Bank Account List" extends "Bank Account List" +{ + actions + { + addlast("&Bank Acc.") + { + separator(Action1100000) + { + } + action("&Operation Fees") + { + ApplicationArea = Basic, Suite; + Caption = '&Operation Fees'; + Image = Costs; + RunObject = Page "Operation Fees"; + RunPageLink = Code = field("Operation Fees Code"), + "Currency Code" = field("Currency Code"); + ToolTip = 'View the various operation fees that banks charge to process the documents that are remitted to them. These operations include collections, discounts, discount interest, rejections, payment orders, unrisked factoring, and risked factoring.'; + } + action("Customer Ratings") + { + ApplicationArea = Basic, Suite; + Caption = 'Customer Ratings'; + Image = CustomerRating; + RunObject = Page "Customer Ratings"; + RunPageLink = Code = field("Customer Ratings Code"), + "Currency Code" = field("Currency Code"); + ToolTip = 'View or edit the risk percentages that are assigned to customers according to their insolvency risk.'; + } + action("Sufi&xes") + { + ApplicationArea = Basic, Suite; + Caption = 'Sufi&xes'; + Image = NumberSetup; + RunObject = Page Suffixes; + RunPageLink = "Bank Acc. Code" = field("No."); + ToolTip = 'View the bank suffixes that area assigned to manage bill groups. Typically, banks assign the company a different suffix for managing bill groups, depending if they are receivable or discount management type operations.'; + } + separator(Action1100004) + { + } + action("Bill &Groups") + { + ApplicationArea = Basic, Suite; + Caption = 'Bill &Groups'; + Image = VoucherGroup; + RunObject = Page "Bill Groups List"; + RunPageLink = "Bank Account No." = field("No."); + RunPageView = sorting("Bank Account No."); + ToolTip = 'View the related bill groups.'; + } + action("&Posted Bill Groups") + { + ApplicationArea = Basic, Suite; + Caption = '&Posted Bill Groups'; + Image = PostedVoucherGroup; + RunObject = Page "Posted Bill Groups List"; + RunPageLink = "Bank Account No." = field("No."); + RunPageView = sorting("Bank Account No."); + ToolTip = 'View the list of posted bill groups. When a bill group has been posted, the related documents are available for settlement, rejection, or recirculation.'; + } + separator(Action1100007) + { + } + action("Payment O&rders") + { + ApplicationArea = Basic, Suite; + Caption = 'Payment O&rders'; + Image = Payment; + RunObject = Page "Payment Orders List"; + RunPageLink = "Bank Account No." = field("No."); + RunPageView = sorting("Bank Account No."); + ToolTip = 'View or edit related payment orders.'; + } + action("Posted P&ayment Orders") + { + ApplicationArea = Basic, Suite; + Caption = 'Posted P&ayment Orders'; + Image = PostedPayment; + RunObject = Page "Posted Payment Orders List"; + RunPageLink = "Bank Account No." = field("No."); + RunPageView = sorting("Bank Account No."); + ToolTip = 'View posted payment orders that represent payables to submit to the bank as a file for electronic payment.'; + } + separator(Action1100010) + { + } + action("Posted Recei&vable Bills") + { + ApplicationArea = Basic, Suite; + Caption = 'Posted Recei&vable Bills'; + Image = PostedReceivableVoucher; + RunObject = Page "Bank Cat. Posted Receiv. Bills"; + ToolTip = 'View the list of posted bill groups pertaining to receivables.'; + } + action("Posted Pa&yable Bills") + { + ApplicationArea = Basic, Suite; + Caption = 'Posted Pa&yable Bills'; + Image = PostedPayableVoucher; + RunObject = Page "Bank Cat. Posted Payable Bills"; + ToolTip = 'View the list of posted bill groups pertaining to payables.'; + } + } + addlast(reporting) + { + action("Bank - Summ. Bill Group") + { + ApplicationArea = Basic, Suite; + Caption = 'Bank - Summ. Bill Group'; + Image = "Report"; + //The property 'PromotedCategory' can only be set if the property 'Promoted' is set to 'true' + //PromotedCategory = "Report"; + RunObject = Report "Bank - Summ. Bill Group"; + ToolTip = 'View a detailed summary for existing bill groups.'; + } + action("Bank - Risk") + { + ApplicationArea = Basic, Suite; + Caption = 'Bank - Risk'; + Image = "Report"; + //The property 'PromotedCategory' can only be set if the property 'Promoted' is set to 'true' + //PromotedCategory = "Report"; + RunObject = Report "Bank - Risk"; + ToolTip = 'View the risk status for discounting bills with the selected bank.'; + } + } + } +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Bank/BankAccount/CRTBankAccountPostingGroup.TableExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Bank/BankAccount/CRTBankAccountPostingGroup.TableExt.al new file mode 100644 index 00000000000..9d9b7673270 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Bank/BankAccount/CRTBankAccountPostingGroup.TableExt.al @@ -0,0 +1,44 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Bank.BankAccount; + +using Microsoft.Finance.GeneralLedger.Account; + +tableextension 7000081 "CRT BankAccountPostingGroup" extends "Bank Account Posting Group" +{ + fields + { + field(7000000; "Liabs. for Disc. Bills Acc."; Code[20]) + { + Caption = 'Liabs. for Disc. Bills Acc.'; + DataClassification = CustomerContent; + TableRelation = "G/L Account"; + } + field(7000001; "Bank Services Acc."; Code[20]) + { + Caption = 'Bank Services Acc.'; + DataClassification = CustomerContent; + TableRelation = "G/L Account"; + } + field(7000002; "Discount Interest Acc."; Code[20]) + { + Caption = 'Discount Interest Acc.'; + DataClassification = CustomerContent; + TableRelation = "G/L Account"; + } + field(7000003; "Rejection Expenses Acc."; Code[20]) + { + Caption = 'Rejection Expenses Acc.'; + DataClassification = CustomerContent; + TableRelation = "G/L Account"; + } + field(7000004; "Liabs. for Factoring Acc."; Code[20]) + { + Caption = 'Liabs. for Factoring Acc.'; + DataClassification = CustomerContent; + TableRelation = "G/L Account"; + } + } +} \ No newline at end of file diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Bank/BankAccount/CRTBankAccountPostingGroups.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Bank/BankAccount/CRTBankAccountPostingGroups.PageExt.al new file mode 100644 index 00000000000..9615e42f8f3 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Bank/BankAccount/CRTBankAccountPostingGroups.PageExt.al @@ -0,0 +1,40 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Bank.BankAccount; + +pageextension 7000154 "CRT BankAccountPostingGroups" extends "Bank Account Posting Groups" +{ + layout + { + addafter("G/L Account No.") + { + field("Liabs. for Disc. Bills Acc."; Rec."Liabs. for Disc. Bills Acc.") + { + ApplicationArea = Basic, Suite; + ToolTip = 'Specifies the general ledger account that will reflect the debt due to the discounting of bills for this bank general ledger group.'; + } + field("Bank Services Acc."; Rec."Bank Services Acc.") + { + ApplicationArea = Basic, Suite; + ToolTip = 'Specifies the general ledger account that will reflect the banking expenses for document discount management services for this group.'; + } + field("Discount Interest Acc."; Rec."Discount Interest Acc.") + { + ApplicationArea = Basic, Suite; + ToolTip = 'Specifies the general ledger account that will reflect the interest charged for discounting of bills/invoices, for this group.'; + } + field("Rejection Expenses Acc."; Rec."Rejection Expenses Acc.") + { + ApplicationArea = Basic, Suite; + ToolTip = 'Specifies the general ledger account that will reflect the costs derived from the rejection of documents for this group.'; + } + field("Liabs. for Factoring Acc."; Rec."Liabs. for Factoring Acc.") + { + ApplicationArea = Basic, Suite; + ToolTip = 'Specifies the general ledger account that will reflect the debt due to the discounting of invoices for this group.'; + } + } + } +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Bank/BankAccount/CRTBankAccountStatistics.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Bank/BankAccount/CRTBankAccountStatistics.PageExt.al new file mode 100644 index 00000000000..cebeb71395b --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Bank/BankAccount/CRTBankAccountStatistics.PageExt.al @@ -0,0 +1,778 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Bank.BankAccount; + +using Microsoft.Foundation.Period; + +pageextension 7000155 "CRT Bank Account Statistics" extends "Bank Account Statistics" +{ + layout + { + addlast(content) + { + group("Receivable Bills") + { + Caption = 'Receivable Bills'; + fixed(Control1903836701) + { + ShowCaption = false; + group(Control1900249401) + { + Caption = 'This Period'; + field("Posted Receiv. Bills Amt."; Rec."Posted Receiv. Bills Amt.") + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + ToolTip = 'Specifies the amount of the bills, included in the bill groups, posted and delivered to this bank.'; + } + field("Closed Receiv. Bills Amt."; Rec."Closed Receiv. Bills Amt.") + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + ToolTip = 'Specifies the amount of the closed bills delivered to this bank.'; + } + field("TotalHonoredDocs[1]"; TotalHonoredDocs[1]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + Caption = 'Total Honored Bills Amt.'; + ToolTip = 'Specifies the amount on honored bills. '; + } + field("TotalRejectedDocs[1]"; TotalRejectedDocs[1]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + Caption = 'Total Rejected Bills Amt.'; + ToolTip = 'Specifies the amount on rejected bills.'; + } + field("DocDiscIntAmt[1]"; DocDiscIntAmt[1]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + Caption = 'Discount Interests Amt.'; + ToolTip = 'Specifies the amount that relates to interest charged in connection with discount payments.'; + } + field("DocDiscExpAmt[1]"; DocDiscExpAmt[1]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + Caption = 'Discount Expenses Amt.'; + ToolTip = 'Specifies the amount that relates to commission and charges in connection with discount payments.'; + } + field("DocCollExpAmt[1]"; DocCollExpAmt[1]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + Caption = 'Collection Expenses Amt.'; + ToolTip = 'Specifies the amount that relates to commission and charges in connection with collection payments.'; + } + field("DocRejExpAmt[1]"; DocRejExpAmt[1]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + Caption = 'Rejection Expenses Amt.'; + ToolTip = 'Specifies the amount that relates to commission and charges in connection with rejections.'; + } + } + group(Control1902148501) + { + Caption = 'This Year'; + field(Control1100031; PlaceholderESLbl) + { + ApplicationArea = Advanced; + Visible = false; + } + field(Control1100032; PlaceholderESLbl) + { + ApplicationArea = Advanced; + Visible = false; + } + field("TotalHonoredDocs[2]"; TotalHonoredDocs[2]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + } + field("TotalRejectedDocs[2]"; TotalRejectedDocs[2]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + } + field("DocDiscIntAmt[2]"; DocDiscIntAmt[2]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + } + field("DocDiscExpAmt[2]"; DocDiscExpAmt[2]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + } + field("DocCollExpAmt[2]"; DocCollExpAmt[2]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + } + field("DocRejExpAmt[2]"; DocRejExpAmt[2]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + } + } + group(Control1906484001) + { + Caption = 'Last Year'; + field(Control1100033; PlaceholderESLbl) + { + ApplicationArea = Advanced; + Visible = false; + } + field(Control1100034; PlaceholderESLbl) + { + ApplicationArea = Advanced; + Visible = false; + } + field("TotalHonoredDocs[3]"; TotalHonoredDocs[3]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + } + field("TotalRejectedDocs[3]"; TotalRejectedDocs[3]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + } + field("DocDiscIntAmt[3]"; DocDiscIntAmt[3]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + } + field("DocDiscExpAmt[3]"; DocDiscExpAmt[3]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + } + field("DocCollExpAmt[3]"; DocCollExpAmt[3]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + } + field("DocRejExpAmt[3]"; DocRejExpAmt[3]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + } + } + group(Control1906936701) + { + Caption = 'To Date'; + field(Control1100035; PlaceholderESLbl) + { + ApplicationArea = Advanced; + Visible = false; + } + field(Control1100036; PlaceholderESLbl) + { + ApplicationArea = Advanced; + Visible = false; + } + field("TotalHonoredDocs[4]"; TotalHonoredDocs[4]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + } + field("TotalRejectedDocs[4]"; TotalRejectedDocs[4]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + } + field("DocDiscIntAmt[4]"; DocDiscIntAmt[4]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + } + field("DocDiscExpAmt[4]"; DocDiscExpAmt[4]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + } + field("DocCollExpAmt[4]"; DocCollExpAmt[4]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + } + field("DocRejExpAmt[4]"; DocRejExpAmt[4]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + } + } + } + } + group(Factoring) + { + Caption = 'Factoring'; + fixed(Control1903442601) + { + ShowCaption = false; + group(Control1905716001) + { + Caption = 'This Period'; + field(Control66; BankAccDateName[1]) + { + ApplicationArea = Basic, Suite; + } + field("TotalHonoredInvoices[1]"; TotalHonoredInvoices[1]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + Caption = 'Total Honored Inv. Amt.'; + ToolTip = 'Specifies the amount on honored invoices. '; + } + field("TotalRejectedInvoices[1]"; TotalRejectedInvoices[1]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + Caption = 'Total Rejected Inv. Amt.'; + ToolTip = 'Specifies the amount on rejected invoices.'; + } + field("FactDiscIntAmt[1]"; FactDiscIntAmt[1]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + Caption = 'Discount Interests Amt.'; + ToolTip = 'Specifies the amount that relates to interest charged in connection with discount payments.'; + } + field("RiskFactExpAmt[1]"; RiskFactExpAmt[1]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + Caption = 'Risked Factoring Exp. Amt.'; + ToolTip = 'Specifies the amount that relates to commission and charges in connection risked factoring.'; + } + field("UnriskFactExpAmt[1]"; UnriskFactExpAmt[1]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + Caption = 'Unrisked Factoring Exp. Amt.'; + ToolTip = 'Specifies the amount that relates to commission and charges in connection unrisked factoring.'; + } + field("Post. Receivable Inv. Amt."; Rec."Post. Receivable Inv. Amt.") + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + ToolTip = 'Specifies the amount of the invoices included in bill groups, posted and delivered to this bank.'; + } + field("Clos. Receivable Inv. Amt."; Rec."Clos. Receivable Inv. Amt.") + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + ToolTip = 'Specifies the amount of the closed invoices delivered to this bank.'; + } + } + group(Control1905520001) + { + Caption = 'This Year'; + field(Control1100048; PlaceholderESLbl) + { + ApplicationArea = Advanced; + Visible = false; + } + field("TotalHonoredInvoices[2]"; TotalHonoredInvoices[2]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + } + field("TotalRejectedInvoices[2]"; TotalRejectedInvoices[2]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + } + field("FactDiscIntAmt[2]"; FactDiscIntAmt[2]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + } + field("RiskFactExpAmt[2]"; RiskFactExpAmt[2]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + } + field("UnriskFactExpAmt[2]"; UnriskFactExpAmt[2]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + } + field(Control1100038; PlaceholderESLbl) + { + ApplicationArea = Advanced; + Visible = false; + } + field(Control1100039; PlaceholderESLbl) + { + ApplicationArea = Advanced; + Visible = false; + } + } + group(Control1903594901) + { + Caption = 'Last Year'; + field(Control1100049; PlaceholderESLbl) + { + ApplicationArea = Advanced; + Visible = false; + } + field("TotalHonoredInvoices[3]"; TotalHonoredInvoices[3]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + } + field("TotalRejectedInvoices[3]"; TotalRejectedInvoices[3]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + } + field("FactDiscIntAmt[3]"; FactDiscIntAmt[3]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + } + field("RiskFactExpAmt[3]"; RiskFactExpAmt[3]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + } + field("UnriskFactExpAmt[3]"; UnriskFactExpAmt[3]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + } + field(Control1100044; PlaceholderESLbl) + { + ApplicationArea = Advanced; + Visible = false; + } + field(Control1100045; PlaceholderESLbl) + { + ApplicationArea = Advanced; + Visible = false; + } + } + group(Control1907930401) + { + Caption = 'To Date'; + field(Control1100050; PlaceholderESLbl) + { + ApplicationArea = Advanced; + Visible = false; + } + field("TotalHonoredInvoices[4]"; TotalHonoredInvoices[4]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + } + field("TotalRejectedInvoices[4]"; TotalRejectedInvoices[4]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + } + field("FactDiscIntAmt[4]"; FactDiscIntAmt[4]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + } + field("RiskFactExpAmt[4]"; RiskFactExpAmt[4]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + } + field("UnriskFactExpAmt[4]"; UnriskFactExpAmt[4]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + } + field(Control1100046; PlaceholderESLbl) + { + ApplicationArea = Advanced; + Visible = false; + } + field(Control1100047; PlaceholderESLbl) + { + ApplicationArea = Advanced; + Visible = false; + } + } + } + } + group("Payable Documents") + { + Caption = 'Payable Documents'; + fixed(Control1907778101) + { + ShowCaption = false; + group(Control1906168701) + { + Caption = 'This Period'; + field(Control91; BankAccDateName[1]) + { + ApplicationArea = Basic, Suite; + } + field("TotalHonoredPayableDoc[1]"; TotalHonoredPayableDoc[1]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + Caption = 'Total Honored Amt.'; + ToolTip = 'Specifies the amount on all honored documents. '; + } + field("PmtOrdExpAmt[1]"; PmtOrdExpAmt[1]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + Caption = 'Payment Order Expenses Amt.'; + ToolTip = 'Specifies the amount that relates to commission and charges in connection with payment orders.'; + } + field("Posted Pay. Documents Amt."; Rec."Posted Pay. Documents Amt.") + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + Caption = 'Posted Documents'; + ToolTip = 'Specifies the value of the pending amount, for payable documents posted to this bank.'; + } + field("Closed Pay. Documents Amt."; Rec."Closed Pay. Documents Amt.") + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + Caption = 'Closed Documents'; + ToolTip = 'Specifies the amount of the closed payable documents delivered to this bank.'; + } + } + group(Control1907591201) + { + Caption = 'This Year'; + field(Control1100053; PlaceholderESLbl) + { + ApplicationArea = Advanced; + Visible = false; + } + field("TotalHonoredPayableDoc[2]"; TotalHonoredPayableDoc[2]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + } + field("PmtOrdExpAmt[2]"; PmtOrdExpAmt[2]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + } + field(Control1100056; PlaceholderESLbl) + { + ApplicationArea = Advanced; + Visible = false; + } + field(Control1100059; PlaceholderESLbl) + { + ApplicationArea = Advanced; + Visible = false; + } + } + group(Control1904043901) + { + Caption = 'Last Year'; + field(Control1100054; PlaceholderESLbl) + { + ApplicationArea = Advanced; + Visible = false; + } + field("TotalHonoredPayableDoc[3]"; TotalHonoredPayableDoc[3]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + } + field("PmtOrdExpAmt[3]"; PmtOrdExpAmt[3]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + } + field(Control1100057; PlaceholderESLbl) + { + ApplicationArea = Advanced; + Visible = false; + } + field(Control1100060; PlaceholderESLbl) + { + ApplicationArea = Advanced; + Visible = false; + } + } + group(Control1907649801) + { + Caption = 'To Date'; + field(Control1100055; PlaceholderESLbl) + { + ApplicationArea = Advanced; + Visible = false; + } + field("TotalHonoredPayableDoc[4]"; TotalHonoredPayableDoc[4]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + } + field("PmtOrdExpAmt[4]"; PmtOrdExpAmt[4]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + } + field(Control1100058; PlaceholderESLbl) + { + ApplicationArea = Advanced; + Visible = false; + } + field(Control1100061; PlaceholderESLbl) + { + ApplicationArea = Advanced; + Visible = false; + } + } + } + } + group("Bill Groups") + { + Caption = 'Bill Groups'; + field(Control1100062; PlaceholderESLbl) + { + ApplicationArea = Advanced; + Visible = false; + } + field(Control1100063; PlaceholderESLbl) + { + ApplicationArea = Advanced; + Visible = false; + } + fixed(Control1903384001) + { + ShowCaption = false; + group(Control1905829501) + { + ShowCaption = false; + field("Last Bill Gr. No."; Rec."Last Bill Gr. No.") + { + ApplicationArea = Basic, Suite; + ToolTip = 'Specifies the number of the last posted bill group sent to this bank.'; + } + field("Date of Last Post. Bill Gr."; Rec."Date of Last Post. Bill Gr.") + { + ApplicationArea = Basic, Suite; + ToolTip = 'Specifies the posting date of the last bill group sent to this bank.'; + } + field("Credit Limit for Discount"; Rec."Credit Limit for Discount") + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + ToolTip = 'Specifies the credit limit for the discount of bills available at this particular bank.'; + } + field(DocsForDiscRmgAmt; DocsForDiscRmgAmt) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + Caption = 'Bills for Disc. Remg. Amt.'; + ToolTip = 'Specifies remaining amounts on bills for discount.'; + } + field(DocsForCollRmgAmt; DocsForCollRmgAmt) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = Rec."Currency Code"; + AutoFormatType = 1; + Caption = 'Bills for Coll. Remg. Amt.'; + ToolTip = 'Specifies remaining amounts on bills for collection.'; + } + } + group(Control1905435401) + { + ShowCaption = false; + field(Control1100064; PlaceholderESLbl) + { + ApplicationArea = Advanced; + Visible = false; + } + field(Control1100065; PlaceholderESLbl) + { + ApplicationArea = Advanced; + Visible = false; + } + field(Control1100066; PlaceholderESLbl) + { + ApplicationArea = Advanced; + Visible = false; + } + field(RiskPerc; RiskPerc) + { + AutoFormatType = 0; + ApplicationArea = Basic, Suite; + ExtendedDatatype = Ratio; + MaxValue = 100; + MinValue = 0; + } + field(Control1100067; PlaceholderESLbl) + { + ApplicationArea = Advanced; + Visible = false; + } + } + } + } + } + } + + trigger OnAfterGetRecord() + var + CTRi: Integer; + begin + BankAcc.Copy(Rec); + + if CurrentDate <> WorkDate() then begin + CurrentDate := WorkDate(); + DateFilterCalc.CreateAccountingPeriodFilter(BankAccDateFilter[1], BankAccDateName[1], CurrentDate, 0); + DateFilterCalc.CreateFiscalYearFilter(BankAccDateFilter[2], BankAccDateName[2], CurrentDate, 0); + DateFilterCalc.CreateFiscalYearFilter(BankAccDateFilter[3], BankAccDateName[3], CurrentDate, -1); + end; + + BankAcc.SetRange("Date Filter"); + BankAcc.SetRange("Dealing Type Filter", 1); + // Discount + BankAcc.CalcFields("Posted Receiv. Bills Rmg. Amt."); + DocsForDiscRmgAmt := BankAcc."Posted Receiv. Bills Rmg. Amt."; + if BankAcc."Credit Limit for Discount" = 0 then + if DocsForDiscRmgAmt = 0 then + RiskPerc := 0 + else + RiskPerc := 100 + else + RiskPerc := DocsForDiscRmgAmt / BankAcc."Credit Limit for Discount" * 100; + + BankAcc.SetRange("Dealing Type Filter", 0); + // Collection + BankAcc.CalcFields("Posted Receiv. Bills Rmg. Amt.", "Posted Pay. Bills Rmg. Amt.", "Posted Pay. Inv. Rmg. Amt."); + DocsForCollRmgAmt := BankAcc."Posted Receiv. Bills Rmg. Amt."; + PayableDocsRmgAmt := BankAcc."Posted Pay. Bills Rmg. Amt." + BankAcc."Posted Pay. Inv. Rmg. Amt."; + + BankAcc.SetRange("Date Filter", 0D, CurrentDate); + + for CTRi := 1 to 4 do begin + BankAcc.SetFilter("Honored/Rejtd. at Date Filter", BankAccDateFilter[CTRi]); + BankAcc.SetRange("Status Filter", BankAcc."Status Filter"::Honored); + BankAcc.CalcFields( + "Closed Receiv. Bills Amt.", "Posted Receiv. Bills Amt.", "Clos. Receivable Inv. Amt.", "Post. Receivable Inv. Amt.", + "Closed Pay. Bills Amt.", "Posted Pay. Bills Amt.", "Closed Pay. Invoices Amt.", "Posted Pay. Invoices Amt."); + TotalHonoredDocs[CTRi] := BankAcc."Closed Receiv. Bills Amt." + BankAcc."Posted Receiv. Bills Amt."; + TotalHonoredInvoices[CTRi] := BankAcc."Clos. Receivable Inv. Amt." + BankAcc."Post. Receivable Inv. Amt."; + TotalHonoredPayableDoc[CTRi] := BankAcc."Closed Pay. Bills Amt." + BankAcc."Closed Pay. Invoices Amt." + + BankAcc."Posted Pay. Bills Amt." + BankAcc."Posted Pay. Invoices Amt."; + BankAcc.SetRange("Status Filter", BankAcc."Status Filter"::Rejected); + BankAcc.CalcFields( + "Closed Receiv. Bills Amt.", "Posted Receiv. Bills Amt.", "Clos. Receivable Inv. Amt.", "Post. Receivable Inv. Amt.", + "Closed Pay. Bills Amt.", "Posted Pay. Bills Amt.", "Closed Pay. Invoices Amt.", "Posted Pay. Invoices Amt."); + TotalRejectedInvoices[CTRi] := BankAcc."Clos. Receivable Inv. Amt." + BankAcc."Post. Receivable Inv. Amt."; + TotalRejectedDocs[CTRi] := BankAcc."Closed Receiv. Bills Amt." + BankAcc."Posted Receiv. Bills Amt."; + TotalRejectedPayableDoc[CTRi] := BankAcc."Closed Pay. Bills Amt." + BankAcc."Closed Pay. Invoices Amt." + + BankAcc."Posted Pay. Bills Amt." + BankAcc."Posted Pay. Invoices Amt."; + end; + + for CTRi := 1 to 4 do begin + DocCollExpAmt[CTRi] := BankAcc.CollectionFeesTotalAmt(BankAccDateFilter[CTRi]); + DocDiscExpAmt[CTRi] := BankAcc.ServicesFeesTotalAmt(BankAccDateFilter[CTRi]); + DocDiscIntAmt[CTRi] := BankAcc.DiscInterestsTotalAmt(BankAccDateFilter[CTRi]); + DocRejExpAmt[CTRi] := BankAcc.RejExpensesAmt(BankAccDateFilter[CTRi]); + FactDiscIntAmt[CTRi] := BankAcc.DiscInterestFactTotalAmt(BankAccDateFilter[CTRi]); + RiskFactExpAmt[CTRi] := BankAcc.RiskFactFeesTotalAmt(BankAccDateFilter[CTRi]); + UnriskFactExpAmt[CTRi] := BankAcc.UnriskFactFeesTotalAmt(BankAccDateFilter[CTRi]); + PmtOrdExpAmt[CTRi] := BankAcc.PaymentOrderFeesTotalAmt(BankAccDateFilter[CTRi]); + end; + end; + + var + BankAcc: Record "Bank Account"; + DateFilterCalc: Codeunit "DateFilter-Calc"; + BankAccDateFilter: array[4] of Text[30]; + BankAccDateName: array[4] of Text[30]; + CurrentDate: Date; + PlaceholderESLbl: Label 'Placeholder'; + DocsForDiscRmgAmt: Decimal; + DocsForCollRmgAmt: Decimal; + PayableDocsRmgAmt: Decimal; + DocCollExpAmt: array[4] of Decimal; + DocDiscIntAmt: array[4] of Decimal; + DocDiscExpAmt: array[4] of Decimal; + DocRejExpAmt: array[4] of Decimal; + TotalHonoredDocs: array[4] of Decimal; + TotalRejectedDocs: array[4] of Decimal; + RiskPerc: Decimal; + TotalHonoredInvoices: array[4] of Decimal; + TotalRejectedInvoices: array[4] of Decimal; + FactDiscIntAmt: array[4] of Decimal; + RiskFactExpAmt: array[4] of Decimal; + UnriskFactExpAmt: array[4] of Decimal; + TotalHonoredPayableDoc: array[4] of Decimal; + TotalRejectedPayableDoc: array[4] of Decimal; + PmtOrdExpAmt: array[4] of Decimal; +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Bank/BankAccount/CRTPaymentMethod.TableExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Bank/BankAccount/CRTPaymentMethod.TableExt.al new file mode 100644 index 00000000000..0a6afe071c1 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Bank/BankAccount/CRTPaymentMethod.TableExt.al @@ -0,0 +1,56 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Bank.BankAccount; + +using Microsoft.Sales.Receivables; + +tableextension 7000083 "CRT Payment Method" extends "Payment Method" +{ + fields + { + field(7000000; "Create Bills"; Boolean) + { + Caption = 'Create Bills'; + DataClassification = CustomerContent; + + trigger OnValidate() + begin + if "Invoices to Cartera" and "Create Bills" then + Error(MustBeSetEqualToErr, FieldCaption("Invoices to Cartera")); + end; + } + field(7000001; "Collection Agent"; Option) + { + Caption = 'Collection Agent'; + DataClassification = CustomerContent; + OptionCaption = 'Direct,Bank'; + OptionMembers = Direct,Bank; + } + field(7000002; "Submit for Acceptance"; Boolean) + { + Caption = 'Submit for Acceptance'; + DataClassification = CustomerContent; + } + field(7000003; "Bill Type"; Enum "ES Bill Type") + { + Caption = 'Bill Type'; + DataClassification = CustomerContent; + } + field(7000004; "Invoices to Cartera"; Boolean) + { + Caption = 'Invoices to Cartera'; + DataClassification = CustomerContent; + + trigger OnValidate() + begin + if "Create Bills" and "Invoices to Cartera" then + Error(MustBeSetEqualToErr, FieldCaption("Create Bills")); + end; + } + } + + var + MustBeSetEqualToErr: Label '%1 must be set equal to False', Comment = '%1 - field caption'; +} \ No newline at end of file diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Bank/BankAccount/CRTPaymentMethods.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Bank/BankAccount/CRTPaymentMethods.PageExt.al new file mode 100644 index 00000000000..79b61c3026e --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Bank/BankAccount/CRTPaymentMethods.PageExt.al @@ -0,0 +1,40 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Bank.BankAccount; + +pageextension 7000156 "CRT Payment Methods" extends "Payment Methods" +{ + layout + { + addafter("Bal. Account No.") + { + field("Invoices to Cartera"; Rec."Invoices to Cartera") + { + ApplicationArea = Basic, Suite; + ToolTip = 'Specifies a check mark in this field to send the invoices to Portfolio for this specific payment method.'; + } + field("Create Bills"; Rec."Create Bills") + { + ApplicationArea = Basic, Suite; + ToolTip = 'Specifies a check mark so that this payment method creates bills.'; + } + field("Bill Type"; Rec."Bill Type") + { + ApplicationArea = Basic, Suite; + ToolTip = 'Specifies the type of document that originated from this specific payment method.'; + } + field("Collection Agent"; Rec."Collection Agent") + { + ApplicationArea = Basic, Suite; + ToolTip = 'Specifies the collection agent to which you will deliver the document that originated from this specific payment method.'; + } + field("Submit for Acceptance"; Rec."Submit for Acceptance") + { + ApplicationArea = Basic, Suite; + ToolTip = 'Specifies a check mark in this field if the bill must be sent to the customer for acceptance first.'; + } + } + } +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Bank/Ledger/CRTBankAccountLedgerEntries.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Bank/Ledger/CRTBankAccountLedgerEntries.PageExt.al new file mode 100644 index 00000000000..91b04f1f72d --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Bank/Ledger/CRTBankAccountLedgerEntries.PageExt.al @@ -0,0 +1,21 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Bank.Ledger; + +pageextension 7000157 "CRT BankAccountLedgerEntries" extends "Bank Account Ledger Entries" +{ + layout + { + addafter("Document No.") + { + field("Bill No."; Rec."Bill No.") + { + ApplicationArea = Basic, Suite; + Editable = false; + ToolTip = 'Specifies the number of the bill related to this bank ledger entry.'; + } + } + } +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Bank/Ledger/CRTBankAccountLedgerEntry.TableExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Bank/Ledger/CRTBankAccountLedgerEntry.TableExt.al new file mode 100644 index 00000000000..56c02767052 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Bank/Ledger/CRTBankAccountLedgerEntry.TableExt.al @@ -0,0 +1,17 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Bank.Ledger; + +tableextension 7000084 "CRT Bank Account Ledger Entry" extends "Bank Account Ledger Entry" +{ + fields + { + field(7000000; "Bill No."; Code[20]) + { + Caption = 'Bill No.'; + DataClassification = CustomerContent; + } + } +} \ No newline at end of file diff --git a/src/Layers/ES/BaseApp/Local/Bank/Reports/BankRisk.Report.al b/src/Layers/ES/BaseApp/Local/Cartera/Bank/Reports/BankRisk.Report.al similarity index 94% rename from src/Layers/ES/BaseApp/Local/Bank/Reports/BankRisk.Report.al rename to src/Layers/ES/BaseApp/Local/Cartera/Bank/Reports/BankRisk.Report.al index 5f55d26f364..13216583e35 100644 --- a/src/Layers/ES/BaseApp/Local/Bank/Reports/BankRisk.Report.al +++ b/src/Layers/ES/BaseApp/Local/Cartera/Bank/Reports/BankRisk.Report.al @@ -11,7 +11,7 @@ using Microsoft.Sales.Receivables; report 7000005 "Bank - Risk" { DefaultLayout = RDLC; - RDLCLayout = './Local/Bank/Reports/BankRisk.rdlc'; + RDLCLayout = './Local/Cartera/Bank/Reports/BankRisk.rdlc'; ApplicationArea = Basic, Suite; Caption = 'Bank - Risk'; UsageCategory = ReportsAndAnalysis; @@ -173,10 +173,10 @@ report 7000005 "Bank - Risk" column(NonPostedDiscAmtCaption; NonPostedDiscAmtCaptionLbl) { } - column(Credit_Limit_for_Discount___Posted_Receiv__Bills_Rmg__Amt_____ABS__Credit_Limit_for_Discount_Caption; ReminderInterestAmount_VAT_Amount_Issued_Reminder_Header_Additional_Fee_AddFeeInclVAT_VATInterest_100_1_VATInLbl) + column(Credit_Limit_for_Discount___Posted_Receiv__Bills_Rmg__Amt_____ABS__Credit_Limit_for_Discount_Caption; DiscountPossibleLbl) { } - column(Credit_Limit_for_Discount___Posted_Receiv__Bills_Rmg__Amt___NonPostedDiscAmt__ABS__Credit_Limit_for_Discount_Caption; Credit_Limit_for_Discount_Posted_Receiv_Bills_Rmg_Amt_NonPostedDiscAmt_ABS_Credit_Limit_for_Discount_Posted_Receiv_Lbl) + column(Credit_Limit_for_Discount___Posted_Receiv__Bills_Rmg__Amt___NonPostedDiscAmt__ABS__Credit_Limit_for_Discount_Caption; DiscPossibleAfterPostingLbl) { } column(BankAcc__Currency_Code_Caption; FieldCaption("Currency Code")) @@ -271,8 +271,8 @@ report 7000005 "Bank - Risk" CurrReport_PAGENOCaptionLbl: Label 'Page'; All_amounts_are_in_LCYCaptionLbl: Label 'All amounts are in LCY'; NonPostedDiscAmtCaptionLbl: Label 'Non-posted Bills for Discount (Amt.)'; - ReminderInterestAmount_VAT_Amount_Issued_Reminder_Header_Additional_Fee_AddFeeInclVAT_VATInterest_100_1_VATInLbl: Label 'Discount Possible'; - Credit_Limit_for_Discount_Posted_Receiv_Bills_Rmg_Amt_NonPostedDiscAmt_ABS_Credit_Limit_for_Discount_Posted_Receiv_Lbl: Label 'Disc. Possible after Posting'; + DiscountPossibleLbl: Label 'Discount Possible'; + DiscPossibleAfterPostingLbl: Label 'Disc. Possible after Posting'; TotalCaptionLbl: Label 'Total'; TotalCaption_Control43Lbl: Label 'Total'; } diff --git a/src/Layers/ES/BaseApp/Local/Bank/Reports/BankRisk.rdlc b/src/Layers/ES/BaseApp/Local/Cartera/Bank/Reports/BankRisk.rdlc similarity index 100% rename from src/Layers/ES/BaseApp/Local/Bank/Reports/BankRisk.rdlc rename to src/Layers/ES/BaseApp/Local/Cartera/Bank/Reports/BankRisk.rdlc diff --git a/src/Layers/ES/BaseApp/Finance/Currency/ExchRateAdjmtSubscribers.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/Currency/CRTExchRateAdjmtSubscribers.Codeunit.al similarity index 98% rename from src/Layers/ES/BaseApp/Finance/Currency/ExchRateAdjmtSubscribers.Codeunit.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/Currency/CRTExchRateAdjmtSubscribers.Codeunit.al index e60850c11df..cc68e0eee29 100644 --- a/src/Layers/ES/BaseApp/Finance/Currency/ExchRateAdjmtSubscribers.Codeunit.al +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/Currency/CRTExchRateAdjmtSubscribers.Codeunit.al @@ -20,10 +20,10 @@ using Microsoft.Sales.Receivables; /// for exchange rate adjustments without modifying core adjustment procedures. /// Event subscribers can be added to handle local compliance and calculation rules. /// -codeunit 597 "Exch. Rate Adjmt. Subscribers" +codeunit 7000097 "CRT ExchRateAdjmtSubscribers" { - [EventSubscriber(ObjectType::Codeunit, Codeunit::"Exch. Rate Adjmt. Process", 'OnBeforeGetLocalCustAccountNo', '', false, false)] + [EventSubscriber(ObjectType::Codeunit, Codeunit::"Exch. Rate Adjmt. Process", 'OnBeforeGetLocalCustAccountNo', '', true, false)] local procedure GetLocalCustAccountNo(CustLedgerEntry: Record "Cust. Ledger Entry"; var AccountNo: Code[20]; var IsHandled: Boolean) var CustPostingGr: Record "Customer Posting Group"; @@ -77,7 +77,7 @@ codeunit 597 "Exch. Rate Adjmt. Subscribers" IsHandled := AccountNo <> ''; end; - [EventSubscriber(ObjectType::Codeunit, Codeunit::"Exch. Rate Adjmt. Process", 'OnAdjustCustomerLedgerEntryOnAfterPrepareAdjust', '', false, false)] + [EventSubscriber(ObjectType::Codeunit, Codeunit::"Exch. Rate Adjmt. Process", 'OnAdjustCustomerLedgerEntryOnAfterPrepareAdjust', '', true, false)] local procedure CreateLocalCustDocuments(var CustLedgerEntry: Record "Cust. Ledger Entry"; CurrAdjAmount: Decimal; OldAdjAmount: Decimal) begin CreateCustCarteraDocuments(CustLedgerEntry, CurrAdjAmount, OldAdjAmount); @@ -120,7 +120,7 @@ codeunit 597 "Exch. Rate Adjmt. Subscribers" end; end; - [EventSubscriber(ObjectType::Codeunit, Codeunit::"Exch. Rate Adjmt. Process", 'OnBeforeGetLocalVendAccountNo', '', false, false)] + [EventSubscriber(ObjectType::Codeunit, Codeunit::"Exch. Rate Adjmt. Process", 'OnBeforeGetLocalVendAccountNo', '', true, false)] local procedure GetLocalVendAccountNo(VendLedgerEntry: Record "Vendor Ledger Entry"; var AccountNo: Code[20]; var IsHandled: Boolean) var VendPostingGr: Record "Vendor Posting Group"; @@ -151,7 +151,7 @@ codeunit 597 "Exch. Rate Adjmt. Subscribers" IsHandled := AccountNo <> ''; end; - [EventSubscriber(ObjectType::Codeunit, Codeunit::"Exch. Rate Adjmt. Process", 'OnAdjustVendorLedgerEntryOnAfterPrepareAdjust', '', false, false)] + [EventSubscriber(ObjectType::Codeunit, Codeunit::"Exch. Rate Adjmt. Process", 'OnAdjustVendorLedgerEntryOnAfterPrepareAdjust', '', true, false)] local procedure CreateLocalVendDocuments(var VendorLedgerEntry: Record "Vendor Ledger Entry"; CurrAdjAmount: Decimal; OldAdjAmount: Decimal) begin CreateVendCarteraDocuments(VendorLedgerEntry, CurrAdjAmount, OldAdjAmount); diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Journal/CRTCashReceiptJournal.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Journal/CRTCashReceiptJournal.PageExt.al new file mode 100644 index 00000000000..462161199f2 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Journal/CRTCashReceiptJournal.PageExt.al @@ -0,0 +1,29 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Finance.GeneralLedger.Journal; + +pageextension 7000165 "CRT Cash Receipt Journal" extends "Cash Receipt Journal" +{ + layout + { + addafter("Document No.") + { + field("Bill No."; Rec."Bill No.") + { + ApplicationArea = Basic, Suite; + ToolTip = 'Specifies a number for this bill generated from the journal.'; + Visible = false; + } + } + addafter("Applies-to Doc. No.") + { + field("Applies-to Bill No."; Rec."Applies-to Bill No.") + { + ApplicationArea = Basic, Suite; + ToolTip = 'Specifies the number of the bill to be settled.'; + } + } + } +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Journal/CRTGenJnlTemplateSubs.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Journal/CRTGenJnlTemplateSubs.Codeunit.al new file mode 100644 index 00000000000..2136c9d00e1 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Journal/CRTGenJnlTemplateSubs.Codeunit.al @@ -0,0 +1,23 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Finance.GeneralLedger.Journal; + +using Microsoft.Finance.ReceivablesPayables; +using Microsoft.Foundation.AuditCodes; + +/// +/// Codeunit that handles Cartera-specific configuration for Gen. Journal Template. +/// +codeunit 7000195 "CRT Gen. Jnl. Template Subs" +{ + [EventSubscriber(ObjectType::Table, Database::"Gen. Journal Template", 'OnAfterValidateType', '', true, false)] + local procedure OnAfterValidateType(var GenJournalTemplate: Record "Gen. Journal Template"; SourceCodeSetup: Record "Source Code Setup") + begin + if GenJournalTemplate.Type = "Gen. Journal Template Type"::Cartera then begin + GenJournalTemplate."Source Code" := SourceCodeSetup."Cartera Journal"; + GenJournalTemplate."Page ID" := Page::"Cartera Journal"; + end; + end; +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Journal/CRTGenJnlTemplateType.EnumExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Journal/CRTGenJnlTemplateType.EnumExt.al new file mode 100644 index 00000000000..f9381efd2df --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Journal/CRTGenJnlTemplateType.EnumExt.al @@ -0,0 +1,19 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Finance.GeneralLedger.Journal; + +/// +/// Extension that adds the Cartera template type for Spanish legal requirements. +/// +enumextension 7000100 "CRT Gen. Jnl. Template Type" extends "Gen. Journal Template Type" +{ + /// + /// Cartera template type for Spanish bill collections and cash management. + /// + value(12; Cartera) + { + Caption = 'Cartera'; + } +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Journal/CRTGenJournalLine.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Journal/CRTGenJournalLine.Codeunit.al new file mode 100644 index 00000000000..8b4cd9b015f --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Journal/CRTGenJournalLine.Codeunit.al @@ -0,0 +1,61 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Finance.GeneralLedger.Journal; + +using Microsoft.Foundation.PaymentTerms; +using Microsoft.Purchases.Payables; +using Microsoft.Sales.Receivables; + +codeunit 7000094 "CRT Gen. Journal Line" +{ + [EventSubscriber(ObjectType::Table, Database::"Gen. Journal Line", OnLookUpAppliesToDocCustOnAfterUpdateDocumentTypeAndAppliesTo, '', true, false)] + local procedure OnLookUpAppliesToDocCustOnAfterUpdateDocumentTypeAndAppliesTo(var GenJournalLine: Record "Gen. Journal Line"; CustLedgerEntry: Record "Cust. Ledger Entry") + begin + GenJournalLine."Applies-to Bill No." := CustLedgerEntry."Bill No."; + end; + + [EventSubscriber(ObjectType::Table, Database::"Gen. Journal Line", OnLookUpAppliesToDocVendOnAfterUpdateDocumentTypeAndAppliesTo, '', true, false)] + local procedure OnLookUpAppliesToDocVendOnAfterUpdateDocumentTypeAndAppliesTo(var GenJournalLine: Record "Gen. Journal Line"; VendorLedgerEntry: Record "Vendor Ledger Entry") + begin + GenJournalLine."Applies-to Bill No." := VendorLedgerEntry."Bill No."; + end; + + [EventSubscriber(ObjectType::Table, Database::"Gen. Journal Line", OnFindFirstCustLedgEntryWithAppliesToDocNoOnAfterSetFilters, '', true, false)] + local procedure OnFindFirstCustLedgEntryWithAppliesToDocNoOnAfterSetFilters(var GenJournalLine: Record "Gen. Journal Line"; AccNo: Code[20]; var CustLedgEntry: Record "Cust. Ledger Entry") + begin + CustLedgEntry.SetRange("Bill No.", GenJournalLine."Applies-to Bill No."); + end; + + [EventSubscriber(ObjectType::Table, Database::"Gen. Journal Line", OnFindFirstVendLedgEntryWithAppliesToDocNoOnAfterSetFilters, '', true, false)] + local procedure OnFindFirstVendLedgEntryWithAppliesToDocNoOnAfterSetFilters(var GenJournalLine: Record "Gen. Journal Line"; AccNo: Code[20]; var VendorLedgerEntry: Record "Vendor Ledger Entry") + begin + VendorLedgerEntry.SetRange("Bill No.", GenJournalLine."Applies-to Bill No."); + end; + + [EventSubscriber(ObjectType::Table, Database::"Gen. Journal Line", OnValidatePaymentTermsCodeOnBeforeCalculatePmtDiscountDate, '', true, false)] + local procedure OnValidatePaymentTermsCodeOnBeforeCalculatePmtDiscountDate(var GenJournalLine: Record "Gen. Journal Line"; PaymentTerms: Record "Payment Terms"; var IsHandled: Boolean) + begin + case GenJournalLine."Document Type" of + GenJournalLine."Document Type"::Invoice: + GenJournalLine.AdjustDueDate(PaymentTerms.CalculateMaxDueDate(GenJournalLine."Document Date")); + GenJournalLine."Document Type"::"Credit Memo": + GenJournalLine.AdjustDueDate(99991231D); + end; + end; + + [EventSubscriber(ObjectType::Table, Database::"Gen. Journal Line", OnValidatePaymentTermsCodeOnElseCase, '', true, false)] + local procedure OnValidatePaymentTermsCodeOnElseCase(var Rec: Record "Gen. Journal Line"; var PaymentTerms: Record "Payment Terms"; var IsHandled: Boolean) + begin + if not (Rec."Document Type" = Rec."Document Type"::Bill) then + exit; + + if (Rec."Payment Terms Code" <> '') and (Rec."Document Date" <> 0D) then begin + PaymentTerms.Get(Rec."Payment Terms Code"); + Rec."Due Date" := CalcDate(PaymentTerms."Due Date Calculation", Rec."Document Date"); + Rec.AdjustDueDate(99991231D); + end else + Rec."Due Date" := Rec."Document Date"; + end; +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Journal/CRTGenJournalLine.TableExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Journal/CRTGenJournalLine.TableExt.al new file mode 100644 index 00000000000..7826068c576 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Journal/CRTGenJournalLine.TableExt.al @@ -0,0 +1,50 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Finance.GeneralLedger.Journal; + +using Microsoft.Finance.ReceivablesPayables; + +tableextension 7000090 "CRT Gen. Journal Line" extends "Gen. Journal Line" +{ + fields + { + field(7000000; "Bill No."; Code[20]) + { + Caption = 'Bill No.'; + DataClassification = CustomerContent; + } + field(7000001; "Applies-to Bill No."; Code[20]) + { + Caption = 'Applies-to Bill No.'; + DataClassification = CustomerContent; + } +#if not CLEANSCHEMA25 + field(7000003; "Pmt. Address Code"; Code[10]) + { + Caption = 'Pmt. Address Code'; + DataClassification = CustomerContent; + ObsoleteReason = 'Address is taken from the fields Address, City, etc. of Customer/Vendor table.'; + ObsoleteState = Removed; + ObsoleteTag = '25.0'; + } +#endif + } + + [Scope('OnPrem')] + procedure AdjustDueDate(MaxDate: Date) + var + DueDateAdjust: Codeunit "Due Date-Adjust"; + begin + case "Account Type" of + "Account Type"::Customer: + if "Bill-to/Pay-to No." <> '' then + DueDateAdjust.SalesAdjustDueDate("Due Date", "Document Date", MaxDate, "Bill-to/Pay-to No.") + else + DueDateAdjust.SalesAdjustDueDate("Due Date", "Document Date", MaxDate, "Account No."); + "Account Type"::Vendor: + DueDateAdjust.PurchAdjustDueDate("Due Date", "Document Date", MaxDate, "Account No."); + end; + end; +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Journal/CRTGeneralJournal.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Journal/CRTGeneralJournal.PageExt.al new file mode 100644 index 00000000000..1ce443098de --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Journal/CRTGeneralJournal.PageExt.al @@ -0,0 +1,30 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Finance.GeneralLedger.Journal; + +pageextension 7000166 "CRT General Journal" extends "General Journal" +{ + layout + { + addafter("Document No.") + { + field("Bill No."; Rec."Bill No.") + { + ApplicationArea = Basic, Suite; + ToolTip = 'Specifies a number for this bill generated from the journal.'; + Visible = false; + } + } + addafter("Applies-to Doc. No.") + { + field("Applies-to Bill No."; Rec."Applies-to Bill No.") + { + ApplicationArea = Basic, Suite; + ToolTip = 'Specifies the number of the bill to be settled.'; + Visible = false; + } + } + } +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Journal/CRTPaymentJournal.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Journal/CRTPaymentJournal.PageExt.al new file mode 100644 index 00000000000..5d91ab63f9e --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Journal/CRTPaymentJournal.PageExt.al @@ -0,0 +1,29 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Finance.GeneralLedger.Journal; + +pageextension 7000167 "CRT Payment Journal" extends "Payment Journal" +{ + layout + { + addafter("Document No.") + { + field("Bill No."; Rec."Bill No.") + { + ApplicationArea = Basic, Suite; + ToolTip = 'Specifies a number for this bill generated from the journal.'; + Visible = false; + } + } + addafter(AppliesToDocNo) + { + field("Applies-to Bill No."; Rec."Applies-to Bill No.") + { + ApplicationArea = Basic, Suite; + ToolTip = 'Specifies the number of the bill to be settled.'; + } + } + } +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Journal/CRTPostedGenJournalLine.TableExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Journal/CRTPostedGenJournalLine.TableExt.al new file mode 100644 index 00000000000..6bffba5d5b0 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Journal/CRTPostedGenJournalLine.TableExt.al @@ -0,0 +1,22 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Finance.GeneralLedger.Journal; + +tableextension 7000092 "CRT Posted Gen. Journal Line" extends "Posted Gen. Journal Line" +{ + fields + { + field(7000000; "Bill No."; Code[20]) + { + Caption = 'Bill No.'; + DataClassification = CustomerContent; + } + field(7000001; "Applies-to Bill No."; Code[20]) + { + Caption = 'Applies-to Bill No.'; + DataClassification = CustomerContent; + } + } +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Journal/CRTPurchaseJournal.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Journal/CRTPurchaseJournal.PageExt.al new file mode 100644 index 00000000000..eee587e1f82 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Journal/CRTPurchaseJournal.PageExt.al @@ -0,0 +1,29 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Finance.GeneralLedger.Journal; + +pageextension 7000168 "CRT Purchase Journal" extends "Purchase Journal" +{ + layout + { + addafter("Document No.") + { + field("Bill No."; Rec."Bill No.") + { + ApplicationArea = Basic, Suite; + ToolTip = 'Specifies a number for this bill generated from the journal.'; + Visible = false; + } + } + addafter("Applies-to Doc. No.") + { + field("Applies-to Bill No."; Rec."Applies-to Bill No.") + { + ApplicationArea = Basic, Suite; + ToolTip = 'Specifies the number of the bill to be settled.'; + } + } + } +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Journal/CRTSalesJournal.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Journal/CRTSalesJournal.PageExt.al new file mode 100644 index 00000000000..6aa256609ee --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Journal/CRTSalesJournal.PageExt.al @@ -0,0 +1,29 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Finance.GeneralLedger.Journal; + +pageextension 7000169 "CRT Sales Journal" extends "Sales Journal" +{ + layout + { + addafter("Document No.") + { + field("Bill No."; Rec."Bill No.") + { + ApplicationArea = Basic, Suite; + ToolTip = 'Specifies a number for this bill generated from the journal.'; + Visible = false; + } + } + addafter("Applies-to Doc. No.") + { + field("Applies-to Bill No."; Rec."Applies-to Bill No.") + { + ApplicationArea = Basic, Suite; + ToolTip = 'Specifies the number of the bill to be settled.'; + } + } + } +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Ledger/CRTGLEntry.TableExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Ledger/CRTGLEntry.TableExt.al new file mode 100644 index 00000000000..b511b5ffd1b --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Ledger/CRTGLEntry.TableExt.al @@ -0,0 +1,17 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Finance.GeneralLedger.Ledger; + +tableextension 7000085 "CRT G/L Entry" extends "G/L Entry" +{ + fields + { + field(7000000; "Bill No."; Code[20]) + { + Caption = 'Bill No.'; + DataClassification = CustomerContent; + } + } +} \ No newline at end of file diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Ledger/CRTGLRegisters.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Ledger/CRTGLRegisters.PageExt.al new file mode 100644 index 00000000000..5a3fa113826 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Ledger/CRTGLRegisters.PageExt.al @@ -0,0 +1,59 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Finance.GeneralLedger.Ledger; + +using Microsoft.Finance.ReceivablesPayables; + +pageextension 7000010 "CRT G/L Registers" extends "G/L Registers" +{ + actions + { + addlast("&Register") + { + separator(Action1100006) + { + } + action("&Cartera Docs") + { + ApplicationArea = Basic, Suite; + Caption = '&Cartera Docs'; + Image = "Order"; + ToolTip = 'View bills and invoices for customers and vendors. Bills are used by customers to pay invoices. They are sent to customers, who pay them under particular conditions on a specified date. Typically, the total amount of an invoice is divided into parts as bills are generated.'; + + trigger OnAction() + begin + GLRegDocs.Docs(Rec); + end; + } + action("&Posted Cartera Docs.") + { + ApplicationArea = Basic, Suite; + Caption = '&Posted Cartera Docs.'; + Image = PostedOrder; + ToolTip = 'View posted bills and invoices for customers and vendors. Bills are used by customers to pay invoices. They are sent to customers, who pay them under particular conditions on a specified date. Typically, the total amount of an invoice is divided into parts as bills are generated.'; + + trigger OnAction() + begin + GLRegDocs.DocsinPostedBGPO(Rec); + end; + } + action("Cl&osed Cartera Docs.") + { + ApplicationArea = Basic, Suite; + Caption = 'Cl&osed Cartera Docs.'; + Image = Invoice; + ToolTip = 'View completed bills and invoices for customers and vendors. Bills are used by customers to pay invoices. They are sent to customers, who pay them under particular conditions on a specified date. Typically, the total amount of an invoice is divided into parts as bills are generated.'; + + trigger OnAction() + begin + GLRegDocs.ClosedDocs(Rec); + end; + } + } + } + + var + GLRegDocs: Codeunit "G/L Reg.-Docs."; +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Ledger/CRTGeneralLedgerEntries.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Ledger/CRTGeneralLedgerEntries.PageExt.al new file mode 100644 index 00000000000..ce3b09f0729 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Ledger/CRTGeneralLedgerEntries.PageExt.al @@ -0,0 +1,21 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Finance.GeneralLedger.Ledger; + +pageextension 7000158 "CRT General Ledger Entries" extends "General Ledger Entries" +{ + layout + { + addafter("Document No.") + { + field("Bill No."; Rec."Bill No.") + { + ApplicationArea = Basic, Suite; + Editable = false; + ToolTip = 'Specifies the bill number related to the ledger entry.'; + } + } + } +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Ledger/CarteraGeneralLedger.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Ledger/CarteraGeneralLedger.Codeunit.al new file mode 100644 index 00000000000..b6c1a7cbd32 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Ledger/CarteraGeneralLedger.Codeunit.al @@ -0,0 +1,43 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Finance.GeneralLedger.Ledger; + +using Microsoft.Finance.GeneralLedger.Journal; +using Microsoft.Finance.ReceivablesPayables; +using Microsoft.Purchases.Payables; + +codeunit 7000081 "Cartera General Ledger" +{ + + [EventSubscriber(ObjectType::Table, Database::"G/L Entry", 'OnAfterCopyGLEntryFromGenJnlLine', '', true, true)] + local procedure OnAfterCopyGLEntryFromGenJnlLine(var GLEntry: Record "G/L Entry"; var GenJournalLine: Record "Gen. Journal Line") + begin + GLEntry."Bill No." := GenJournalLine."Bill No."; + end; + + [EventSubscriber(ObjectType::Table, Database::"CV Ledger Entry Buffer", 'OnAfterCopyFromVendLedgerEntry', '', true, true)] + local procedure OnAfterCopyFromVendLedgerEntry(var CVLedgerEntryBuffer: Record "CV Ledger Entry Buffer"; VendorLedgerEntry: Record "Vendor Ledger Entry") + begin + CVLedgerEntryBuffer."Bill No." := VendorLedgerEntry."Bill No."; + CVLedgerEntryBuffer."Document Situation" := VendorLedgerEntry."Document Situation"; + CVLedgerEntryBuffer."Applies-to Bill No." := VendorLedgerEntry."Applies-to Bill No."; + CVLedgerEntryBuffer."Document Status" := VendorLedgerEntry."Document Status"; + end; + + [EventSubscriber(ObjectType::Table, Database::"Detailed CV Ledg. Entry Buffer", 'OnAfterCopyFromGenJnlLine', '', true, true)] + local procedure OnAfterCopyFromGenJnlLine(var DtldCVLedgEntryBuffer: Record "Detailed CV Ledg. Entry Buffer"; GenJnlLine: Record "Gen. Journal Line") + begin + DtldCVLedgEntryBuffer."Bill No." := GenJnlLine."Bill No."; + DtldCVLedgEntryBuffer."Applies-to Bill No." := GenJnlLine."Applies-to Bill No."; + end; + + [EventSubscriber(ObjectType::Table, Database::"Detailed CV Ledg. Entry Buffer", 'OnBeforeCreateDtldCVLedgEntryBuf', '', true, true)] + local procedure OnBeforeCreateDtldCVLedgEntryBuf(var DtldCVLedgEntryBuf: Record "Detailed CV Ledg. Entry Buffer"; var NewDtldCVLedgEntryBuf: Record "Detailed CV Ledg. Entry Buffer"; var NextDtldBufferEntryNo: Integer; var IsHandled: Boolean; var CVLedgEntryBuf: Record "CV Ledger Entry Buffer") + begin + DtldCVLedgEntryBuf.SetRange("Bill No.", NewDtldCVLedgEntryBuf."Bill No."); + DtldCVLedgEntryBuf.SetRange("Document Situation", NewDtldCVLedgEntryBuf."Document Situation"); + DtldCVLedgEntryBuf.SetRange("Document Status", NewDtldCVLedgEntryBuf."Document Status"); + end; +} \ No newline at end of file diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Posting/CRTGenJnlPostLine.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Posting/CRTGenJnlPostLine.Codeunit.al new file mode 100644 index 00000000000..67f1476fc86 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Posting/CRTGenJnlPostLine.Codeunit.al @@ -0,0 +1,88 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Finance.GeneralLedger.Posting; + +using Microsoft.Finance.GeneralLedger.Journal; +using Microsoft.Finance.VAT.Ledger; +using Microsoft.Finance.VAT.Setup; + +codeunit 7000110 "CRT Gen. Jnl.-Post Line" +{ + + [EventSubscriber(ObjectType::Codeunit, Codeunit::"Gen. Jnl.-Post Line", 'OnInsertVATOnAfterAssignVATEntryFields', '', true, false)] + local procedure OnInsertVATOnAfterAssignVATEntryFields(var GenJnlLine: Record "Gen. Journal Line"; var VATEntry: Record "VAT Entry"; var VATPostingSetup: Record "VAT Posting Setup") + var + VATProductPostingGroup: Record "VAT Product Posting Group"; + begin + VATEntry.SetVATCashRegime(VATPostingSetup, GenJnlLine."Gen. Posting Type".AsInteger()); + if GenJnlLine."Gen. Posting Type" = GenJnlLine."Gen. Posting Type"::Sale then + if VATProductPostingGroup.Get(GenJnlLine."VAT Prod. Posting Group") then + VATEntry."Delivery Operation Code" := VATProductPostingGroup."Delivery Operation Code"; + GetSellToBuyFrom(GenJnlLine, VATEntry); + VATEntry."No Taxable Type" := VATPostingSetup."No Taxable Type"; + end; + + [Scope('OnPrem')] + procedure GetSellToBuyFrom(GenJnlLine: Record "Gen. Journal Line"; var VATEntry: Record "VAT Entry") + var + GenJnlLine2: Record "Gen. Journal Line"; + begin + if GenJnlLine."Bill-to/Pay-to No." <> '' then begin + VATEntry."Bill-to/Pay-to No." := GenJnlLine."Bill-to/Pay-to No."; + exit; + end; + + if GenJnlLine."Bal. Account Type" in [GenJnlLine."Bal. Account Type"::"IC Partner", GenJnlLine."Bal. Account Type"::Employee] then + exit; + // Find in the current transaction the customer/vendor this VAT entry is linked to + GenJnlLine2.SetCurrentKey("Journal Template Name", "Journal Batch Name", "Posting Date", "Transaction No."); + GenJnlLine2.SetRange("Journal Template Name", GenJnlLine."Journal Template Name"); + GenJnlLine2.SetRange("Journal Batch Name", GenJnlLine."Journal Batch Name"); + GenJnlLine2.SetRange("Posting Date", GenJnlLine."Posting Date"); + GenJnlLine2.SetRange("Transaction No.", GenJnlLine."Transaction No."); + GenJnlLine2.SetFilter( + "Document Type", + '%1|%2|%3', + GenJnlLine2."Document Type"::Invoice, + GenJnlLine2."Document Type"::"Credit Memo", + GenJnlLine2."Document Type"::"Finance Charge Memo"); + GenJnlLine2.SetRange("Document No.", GenJnlLine."Document No."); + case VATEntry.Type of + VATEntry.Type::Sale: + GenJnlLine2.SetRange("Account Type", GenJnlLine2."Account Type"::Customer); + VATEntry.Type::Purchase: + GenJnlLine2.SetRange("Account Type", GenJnlLine2."Account Type"::Vendor); + else + exit; + end; + if not GenJnlLine2.Find('-') or (GenJnlLine2.Next() <> 0) then + Error( + GenJnlLineNotFoundErr, + GenJnlLine.FieldCaption(GenJnlLine."Document Type"), + GenJnlLine.FieldCaption(GenJnlLine."Document No."), + GenJnlLine.FieldCaption(GenJnlLine."VAT Bus. Posting Group"), + GenJnlLine.FieldCaption(GenJnlLine."VAT Prod. Posting Group")); + if GenJnlLine2."Bill-to/Pay-to No." <> '' then + VATEntry."Bill-to/Pay-to No." := GenJnlLine2."Bill-to/Pay-to No." + else + VATEntry."Bill-to/Pay-to No." := GenJnlLine2."Account No."; + + OnAfterGetSellToBuyFrom(VATEntry, GenJnlLine2); +#if not CLEAN29 + GenJnlPostLineEvents.RunOnAfterGetSellToBuyFrom(VATEntry, GenJnlLine2); +#endif + end; + + [IntegrationEvent(false, false)] + local procedure OnAfterGetSellToBuyFrom(var VATEntry: Record "VAT Entry"; GenJournalLine: Record "Gen. Journal Line") + begin + end; + + var +#if not CLEAN29 + GenJnlPostLineEvents: Codeunit "Gen. Jnl.-Post Line"; +#endif + GenJnlLineNotFoundErr: Label 'Check that all the entries with the same %2 and a %3 and \%4 associated have a Customer/Vendor associated, check that all the lines with the same \%2 have not more than one Customer/Vendor associated, check that all the lines with same \%2 have in the field %1 the same value: Invoice, Credit Memo or Finance Charge Memo.', Comment = 'Field captions: %1 = "Document Type", %2 = "Document No.", %3 = "VAT Bus. Posting Group", %4 = "VAT Prod. Posting Group"'; +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Reversal/CRTGenJnlPostReverse.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Reversal/CRTGenJnlPostReverse.Codeunit.al new file mode 100644 index 00000000000..2b1f713ded1 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Reversal/CRTGenJnlPostReverse.Codeunit.al @@ -0,0 +1,25 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Finance.GeneralLedger.Reversal; + +using Microsoft.Purchases.Payables; +using Microsoft.Sales.Receivables; + +codeunit 7000099 "CRT GenJnl Post Reverse" +{ + [EventSubscriber(ObjectType::Codeunit, Codeunit::"Gen. Jnl.-Post Reverse", 'OnReverseCustLedgEntryOnBeforeInsertCustLedgEntry', '', true, false)] + local procedure OnReverseCustLedgEntryOnBeforeInsertCustLedgEntry(var NewCustLedgerEntry: Record "Cust. Ledger Entry"; CustLedgerEntry: Record "Cust. Ledger Entry") + begin + NewCustLedgerEntry."Amount (LCY) stats." := -NewCustLedgerEntry."Amount (LCY) stats."; + NewCustLedgerEntry."Remaining Amount (LCY) stats." := -NewCustLedgerEntry."Remaining Amount (LCY) stats."; + end; + + [EventSubscriber(ObjectType::Codeunit, Codeunit::"Gen. Jnl.-Post Reverse", 'OnReverseVendLedgEntryOnBeforeInsertVendLedgEntry', '', true, false)] + local procedure OnReverseVendLedgEntryOnBeforeInsertVendLedgEntry(var NewVendLedgEntry: Record "Vendor Ledger Entry"; VendLedgEntry: Record "Vendor Ledger Entry") + begin + NewVendLedgEntry."Amount (LCY) stats." := -NewVendLedgEntry."Amount (LCY) stats."; + NewVendLedgEntry."Remaining Amount (LCY) stats." := -NewVendLedgEntry."Remaining Amount (LCY) stats."; + end; +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Reversal/CRTReversalEntry.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Reversal/CRTReversalEntry.Codeunit.al new file mode 100644 index 00000000000..73346aa4a94 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/GeneralLedger/Reversal/CRTReversalEntry.Codeunit.al @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Finance.GeneralLedger.Reversal; + +using Microsoft.Finance.GeneralLedger.Ledger; +using Microsoft.Finance.ReceivablesPayables; + +codeunit 7000098 "CRT Reversal Entry" +{ + var + EntryCannotBeReversedErr: Label 'The entry cannot be reversed'; + CannotReverseCarteraInvoiceErr: Label 'You can not reverse entries that sent invoices to Cartera.'; + + [EventSubscriber(ObjectType::Table, Database::"Reversal Entry", 'OnBeforeCheckGLAcc', '', true, false)] + local procedure OnBeforeCheckGLAcc(var GLEntry: Record "G/L Entry") + var + GLRegDoc: Codeunit "G/L Reg.-Docs."; + CarteraDoc: Record "Cartera Doc."; + CarteraSetup: Record "Cartera Setup"; + begin + if not CarteraSetup.ReadPermission then + exit; + + if (GLEntry."Bill No." <> '') or GLRegDoc.CheckPostedDocsInPostedBGPO(GLEntry) then + Error(EntryCannotBeReversedErr); + + if GLEntry."Document Type" <> GLEntry."Document Type"::Invoice then + exit; + + CarteraDoc.SetCurrentKey(Type, "Document No."); + CarteraDoc.SetRange("Document No.", GLEntry."Document No."); + CarteraDoc.SetRange("Document Type", CarteraDoc."Document Type"::Invoice); + if CarteraDoc.FindFirst() then + Error(CannotReverseCarteraInvoiceErr); + end; +} \ No newline at end of file diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/BGPOCommentLine.Table.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/BGPOCommentLine.Table.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/BGPOCommentLine.Table.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/BGPOCommentLine.Table.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/BGPOCommentList.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/BGPOCommentList.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/BGPOCommentList.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/BGPOCommentList.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/BGPOCommentSheet.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/BGPOCommentSheet.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/BGPOCommentSheet.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/BGPOCommentSheet.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/BGPOMaturityLines.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/BGPOMaturityLines.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/BGPOMaturityLines.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/BGPOMaturityLines.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/BGPOPostBuffer.Table.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/BGPOPostBuffer.Table.al similarity index 82% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/BGPOPostBuffer.Table.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/BGPOPostBuffer.Table.al index 51f6d0d2107..0c3ac1e2939 100644 --- a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/BGPOPostBuffer.Table.al +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/BGPOPostBuffer.Table.al @@ -16,46 +16,38 @@ table 7000012 "BG/PO Post. Buffer" field(1; Account; Code[20]) { Caption = 'Account'; - DataClassification = SystemMetadata; } field(2; "Balance Account"; Code[20]) { Caption = 'Balance Account'; - DataClassification = SystemMetadata; } field(3; Amount; Decimal) { AutoFormatType = 1; AutoFormatExpression = ''; Caption = 'Amount'; - DataClassification = SystemMetadata; } field(4; "Gain - Loss Amount (LCY)"; Decimal) { AutoFormatType = 1; AutoFormatExpression = ''; Caption = 'Gain - Loss Amount (LCY)'; - DataClassification = SystemMetadata; } field(5; "Global Dimension 1 Code"; Code[20]) { Caption = 'Global Dimension 1 Code'; - DataClassification = SystemMetadata; } field(6; "Global Dimension 2 Code"; Code[20]) { Caption = 'Global Dimension 2 Code'; - DataClassification = SystemMetadata; } field(7; "Entry No."; Integer) { Caption = 'Entry No.'; - DataClassification = SystemMetadata; } field(480; "Dimension Set ID"; Integer) { Caption = 'Dimension Set ID'; - DataClassification = SystemMetadata; TableRelation = "Dimension Set Entry"; } } diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/BGPOPostandPrint.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/BGPOPostandPrint.Codeunit.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/BGPOPostandPrint.Codeunit.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/BGPOPostandPrint.Codeunit.al diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/CRTCVLedgerEntryBuffer.TableExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/CRTCVLedgerEntryBuffer.TableExt.al new file mode 100644 index 00000000000..d6775d52f00 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/CRTCVLedgerEntryBuffer.TableExt.al @@ -0,0 +1,42 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Finance.ReceivablesPayables; + +using Microsoft; +using Microsoft.Sales.Receivables; + +tableextension 7000086 "CRT CVLedgerEntryBuffer" extends "CV Ledger Entry Buffer" +{ + fields + { + field(7000000; "Bill No."; Code[20]) + { + Caption = 'Bill No.'; + DataClassification = CustomerContent; + } + field(7000001; "Document Situation"; Enum "ES Document Situation") + { + Caption = 'Document Situation'; + DataClassification = CustomerContent; + } + field(7000002; "Applies-to Bill No."; Code[20]) + { + Caption = 'Applies-to Bill No.'; + DataClassification = CustomerContent; + } + field(7000003; "Document Status"; Enum "ES Document Status") + { + Caption = 'Document Status'; + DataClassification = CustomerContent; + } + field(7000004; "CV Ledger Entry Type"; Option) + { + Caption = 'CV Ledger Entry Type'; + DataClassification = CustomerContent; + OptionCaption = 'Customer,Vendor'; + OptionMembers = Customer,Vendor; + } + } +} \ No newline at end of file diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/CRTDetailedCVLedgEntryBuffer.TableExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/CRTDetailedCVLedgEntryBuffer.TableExt.al new file mode 100644 index 00000000000..1a663dbf0c7 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/CRTDetailedCVLedgEntryBuffer.TableExt.al @@ -0,0 +1,35 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Finance.ReceivablesPayables; + +using Microsoft; +using Microsoft.Sales.Receivables; + +tableextension 7000088 "CRT DetailedCVLedgEntryBuffer" extends "Detailed CV Ledg. Entry Buffer" +{ + fields + { + field(7000000; "Bill No."; Code[20]) + { + Caption = 'Bill No.'; + DataClassification = CustomerContent; + } + field(7000001; "Document Situation"; Enum "ES Document Situation") + { + Caption = 'Document Situation'; + DataClassification = CustomerContent; + } + field(7000002; "Applies-to Bill No."; Code[20]) + { + Caption = 'Applies-to Bill No.'; + DataClassification = CustomerContent; + } + field(7000003; "Document Status"; Enum "ES Document Status") + { + Caption = 'Document Status'; + DataClassification = CustomerContent; + } + } +} \ No newline at end of file diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/CarteraDealingType.Enum.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/CarteraDealingType.Enum.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/CarteraDealingType.Enum.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/CarteraDealingType.Enum.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/CarteraDoc.Table.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/CarteraDoc.Table.al similarity index 95% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/CarteraDoc.Table.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/CarteraDoc.Table.al index 870ac3a6d7d..90029998cc3 100644 --- a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/CarteraDoc.Table.al +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/CarteraDoc.Table.al @@ -337,23 +337,23 @@ table 7000002 "Cartera Doc." end; var - BillGr: Record "Bill Group"; - PmtOrd: Record "Payment Order"; + BillGroup: Record "Bill Group"; + PaymentOrder: Record "Payment Order"; ElectPmtMgmt: Codeunit "Elect. Pmts Management"; - Text001: Label '%1 is more than the legal limit of %2 days after the document date %3 for the original document'; + MoreThatLimitErr: Label '%1 is more than the legal limit of %2 days after the document date %3 for the original document', Comment = '%1 - Field Name, %2 - Max. No. of Days till Due Date, %3 - Document Date'; [Scope('OnPrem')] procedure ResetNoPrinted() begin if "Bill Gr./Pmt. Order No." <> '' then if Type = Type::Receivable then begin - BillGr.Get("Bill Gr./Pmt. Order No."); - BillGr."No. Printed" := 0; - BillGr.Modify(); + BillGroup.Get("Bill Gr./Pmt. Order No."); + BillGroup."No. Printed" := 0; + BillGroup.Modify(); end else begin - PmtOrd.Get("Bill Gr./Pmt. Order No."); - PmtOrd."No. Printed" := 0; - PmtOrd.Modify(); + PaymentOrder.Get("Bill Gr./Pmt. Order No."); + PaymentOrder."No. Printed" := 0; + PaymentOrder.Modify(); end; end; @@ -375,7 +375,7 @@ table 7000002 "Cartera Doc." GetDocumentDates(DocumentDate, MaxNoOfDaysTillDueDate); if not InvoiceSplitPayment.CheckDueDate("Due Date", DocumentDate, MaxNoOfDaysTillDueDate) then - FieldError("Due Date", StrSubstNo(Text001, "Due Date", MaxNoOfDaysTillDueDate, DocumentDate)); + FieldError("Due Date", StrSubstNo(MoreThatLimitErr, "Due Date", MaxNoOfDaysTillDueDate, DocumentDate)); end; local procedure GetDocumentDates(var DocumentDate: Date; var MaxNoOfDaysTillDueDate: Integer) diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/CarteraDocumentDocType.Enum.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/CarteraDocumentDocType.Enum.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/CarteraDocumentDocType.Enum.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/CarteraDocumentDocType.Enum.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/CarteraDocumentStatus.Enum.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/CarteraDocumentStatus.Enum.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/CarteraDocumentStatus.Enum.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/CarteraDocumentStatus.Enum.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/CarteraDocumentType.Enum.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/CarteraDocumentType.Enum.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/CarteraDocumentType.Enum.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/CarteraDocumentType.Enum.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/CarteraDocuments.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/CarteraDocuments.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/CarteraDocuments.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/CarteraDocuments.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/CarteraFactStatisticsFB.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/CarteraFactStatisticsFB.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/CarteraFactStatisticsFB.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/CarteraFactStatisticsFB.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/CarteraJournal.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/CarteraJournal.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/CarteraJournal.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/CarteraJournal.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/CarteraManagement.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/CarteraManagement.Codeunit.al similarity index 96% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/CarteraManagement.Codeunit.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/CarteraManagement.Codeunit.al index d0c6ac95524..fec865f73ba 100644 --- a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/CarteraManagement.Codeunit.al +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/CarteraManagement.Codeunit.al @@ -37,24 +37,23 @@ codeunit 7000000 CarteraManagement end; var - Text1100000: Label 'The Bill Group does not exist.'; - Text1100001: Label 'This Bill Group has already been printed. Proceed anyway?'; - Text1100002: Label 'The process has been interrupted to respect the warning.'; - Text1100003: Label 'The Payment Order does not exist.'; - Text1100004: Label 'This Payment Order has already been printed. Proceed anyway?'; - Text1100005: Label 'The update has been interrupted to respect the warning.'; - Text1100006: Label 'Document settlement %1/%2'; - Text1100007: Label 'Bill %1/%2 settl. rev.'; - Text1100008: Label 'Redrawing a settled bill is only possible for bills in posted or closed bill groups.'; - Text1100009: Label 'Redrawing a settled bill is only possible for bills in posted or closed payment orders.'; VATPostingSetup: Record "VAT Posting Setup"; - VATEntryNo: Integer; - VATUnrealAcc: Code[20]; - VATAcc: Code[20]; - TotalVATAmount: Decimal; - EntryIsAppliedErr: Label 'The document %1/%2 is marked to apply.'; GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; ElectPmtMgmt: Codeunit "Elect. Pmts Management"; + VATEntryNo: Integer; + TotalVATAmount: Decimal; + + Text1100000Err: Label 'The Bill Group does not exist.'; + Text1100001Err: Label 'This Bill Group has already been printed. Proceed anyway?'; + Text1100002Err: Label 'The process has been interrupted to respect the warning.'; + Text1100003Err: Label 'The Payment Order does not exist.'; + Text1100004Err: Label 'This Payment Order has already been printed. Proceed anyway?'; + Text1100005Err: Label 'The update has been interrupted to respect the warning.'; + Text1100006Err: Label 'Document settlement %1/%2', Comment = '%1 = Document No., %2 = Bill Group No.'; + Text1100007Err: Label 'Bill %1/%2 settl. rev.', Comment = '%1 = Bill No., %2 = Bill Group No.'; + Text1100008Err: Label 'Redrawing a settled bill is only possible for bills in posted or closed bill groups.'; + Text1100009Err: Label 'Redrawing a settled bill is only possible for bills in posted or closed payment orders.'; + EntryIsAppliedErr: Label 'The document %1/%2 is marked to apply.', Comment = '%1 = Document No., %2 = Bill Group No.'; procedure CategorizeDocs(var Doc: Record "Cartera Doc.") begin @@ -95,9 +94,9 @@ codeunit 7000000 CarteraManagement procedure NavigateDoc(var CarteraDoc: Record "Cartera Doc.") var - Navigate: Page Navigate; VendLedgEntry: Record "Vendor Ledger Entry"; CustLedgEntry: Record "Cust. Ledger Entry"; + Navigate: Page Navigate; begin case CarteraDoc.Type of CarteraDoc.Type::Receivable: @@ -118,9 +117,9 @@ codeunit 7000000 CarteraManagement procedure NavigatePostedDoc(var PostedCarteraDoc: Record "Posted Cartera Doc.") var - Navigate: Page Navigate; VendLedgEntry: Record "Vendor Ledger Entry"; CustLedgEntry: Record "Cust. Ledger Entry"; + Navigate: Page Navigate; begin case PostedCarteraDoc.Type of PostedCarteraDoc.Type::Receivable: @@ -141,9 +140,9 @@ codeunit 7000000 CarteraManagement procedure NavigateClosedDoc(var ClosedCarteraDoc: Record "Closed Cartera Doc.") var - Navigate: Page Navigate; VendLedgEntry: Record "Vendor Ledger Entry"; CustLedgEntry: Record "Cust. Ledger Entry"; + Navigate: Page Navigate; begin case ClosedCarteraDoc.Type of ClosedCarteraDoc.Type::Receivable: @@ -174,10 +173,10 @@ codeunit 7000000 CarteraManagement CarteraDoc2.FilterGroup(0); GroupNo := CarteraDoc2.GetRangeMin("Bill Gr./Pmt. Order No."); if not BillGr.Get(GroupNo) then - Error(Text1100000); + Error(Text1100000Err); if BillGr."No. Printed" <> 0 then - if not Confirm(Text1100001, false) then + if not Confirm(Text1100001Err, false) then exit; CarteraDoc.Reset(); @@ -210,7 +209,7 @@ codeunit 7000000 CarteraManagement CarteraSetup: Record "Cartera Setup"; Cust: Record Customer; CustLedgEntry: Record "Cust. Ledger Entry"; - CheckDiscCreditLimit: Page "Check Discount Credit Limit"; + CheckDiscountCreditLimit: Page "Check Discount Credit Limit"; SelectedEntryNos: List of [Integer]; EntryNo: Integer; SelectedAmount: Decimal; @@ -233,11 +232,11 @@ codeunit 7000000 CarteraManagement BankAcc.CalcFields("Posted Receiv. Bills Rmg. Amt."); if BillGr.Amount + SelectedAmount + BankAcc."Posted Receiv. Bills Rmg. Amt." > BankAcc."Credit Limit for Discount" then begin - CheckDiscCreditLimit.SetRecord(BankAcc); - CheckDiscCreditLimit.SetValues(BillGr.Amount, SelectedAmount); - if CheckDiscCreditLimit.RunModal() <> ACTION::Yes then - Error(Text1100002); - Clear(CheckDiscCreditLimit); + CheckDiscountCreditLimit.SetRecord(BankAcc); + CheckDiscountCreditLimit.SetValues(BillGr.Amount, SelectedAmount); + if CheckDiscountCreditLimit.RunModal() <> ACTION::Yes then + Error(Text1100002Err); + Clear(CheckDiscountCreditLimit); end; end; end; @@ -288,10 +287,10 @@ codeunit 7000000 CarteraManagement CarteraDoc2.FilterGroup(0); GroupNo := CarteraDoc2.GetRangeMin("Bill Gr./Pmt. Order No."); if not PmtOrd.Get(GroupNo) then - Error(Text1100003); + Error(Text1100003Err); if PmtOrd."No. Printed" <> 0 then - if not Confirm(Text1100004, false) then + if not Confirm(Text1100004Err, false) then exit; CarteraSetup.Get(); @@ -450,7 +449,7 @@ codeunit 7000000 CarteraManagement exit(Result); if BillGr."No. Printed" <> 0 then - if not Confirm(Text1100001, false) then + if not Confirm(Text1100001Err, false) then exit(false); exit(true); @@ -490,7 +489,7 @@ codeunit 7000000 CarteraManagement exit(Result); if PaymentOrder."No. Printed" <> 0 then - if not Confirm(Text1100004, false) then + if not Confirm(Text1100004Err, false) then exit(false); exit(true); @@ -500,7 +499,7 @@ codeunit 7000000 CarteraManagement var CarteraSetup: Record "Cartera Setup"; BankAcc: Record "Bank Account"; - CheckDiscCreditLimit: Page "Check Discount Credit Limit"; + CheckDiscountCreditLimit: Page "Check Discount Credit Limit"; begin CarteraSetup.Get(); if not CarteraSetup."Bills Discount Limit Warnings" then @@ -509,11 +508,11 @@ codeunit 7000000 CarteraManagement BankAcc.CalcFields("Posted Receiv. Bills Rmg. Amt."); BillGr.CalcFields(Amount); if BillGr.Amount + BankAcc."Posted Receiv. Bills Rmg. Amt." > BankAcc."Credit Limit for Discount" then begin - CheckDiscCreditLimit.SetRecord(BankAcc); - CheckDiscCreditLimit.SetValues(BillGr.Amount, 0); - if CheckDiscCreditLimit.RunModal() <> ACTION::Yes then - Error(Text1100005); - Clear(CheckDiscCreditLimit); + CheckDiscountCreditLimit.SetRecord(BankAcc); + CheckDiscountCreditLimit.SetValues(BillGr.Amount, 0); + if CheckDiscountCreditLimit.RunModal() <> ACTION::Yes then + Error(Text1100005Err); + Clear(CheckDiscountCreditLimit); end; end; end; @@ -528,7 +527,7 @@ codeunit 7000000 CarteraManagement GenJnlLine2."Document No." := CustLedgEntry."Document No."; GenJnlLine2."Bill No." := CustLedgEntry."Bill No."; GenJnlLine2.Description := StrSubstNo( - Text1100006, + Text1100006Err, CustLedgEntry."Document No.", CustLedgEntry."Bill No."); GenJnlLine2.Validate("Currency Code", CustLedgEntry."Currency Code"); @@ -563,7 +562,7 @@ codeunit 7000000 CarteraManagement GenJnlLine2."Document No." := CustLedgEntry."Document No."; GenJnlLine2."Bill No." := CustLedgEntry."Bill No."; GenJnlLine2.Description := StrSubstNo( - Text1100007, + Text1100007Err, CustLedgEntry."Document No.", CustLedgEntry."Bill No."); GenJnlLine2.Validate("Currency Code", CustLedgEntry."Currency Code"); @@ -578,7 +577,7 @@ codeunit 7000000 CarteraManagement end else if ClosedDoc.Get(ClosedDoc.Type::Receivable, CustLedgEntry."Entry No.") then begin if ClosedDoc."Bill Gr./Pmt. Order No." = '' then - Error(Text1100008); + Error(Text1100008Err); ClosedBillGr.Get(ClosedDoc."Bill Gr./Pmt. Order No."); GenJnlLine2.Validate("Account No.", ClosedBillGr."Bank Account No."); GenJnlLine2.Validate(Amount, -ClosedDoc."Amount for Collection"); @@ -602,7 +601,7 @@ codeunit 7000000 CarteraManagement GenJnlLine2."Document No." := VendLedgEntry."Document No."; GenJnlLine2."Bill No." := VendLedgEntry."Bill No."; GenJnlLine2.Description := StrSubstNo( - Text1100006, + Text1100006Err, VendLedgEntry."Document No.", VendLedgEntry."Bill No."); GenJnlLine2.Validate("Currency Code", VendLedgEntry."Currency Code"); @@ -636,7 +635,7 @@ codeunit 7000000 CarteraManagement GenJnlLine2."Document No." := VendLedgEntry."Document No."; GenJnlLine2."Bill No." := VendLedgEntry."Bill No."; GenJnlLine2.Description := StrSubstNo( - Text1100007, + Text1100007Err, VendLedgEntry."Document No.", VendLedgEntry."Bill No."); GenJnlLine2.Validate("Currency Code", VendLedgEntry."Currency Code"); @@ -651,7 +650,7 @@ codeunit 7000000 CarteraManagement end else if ClosedDoc.Get(ClosedDoc.Type::Payable, VendLedgEntry."Entry No.") then begin if ClosedDoc."Bill Gr./Pmt. Order No." = '' then - Error(Text1100009); + Error(Text1100009Err); ClosedPmtOrd.Get(ClosedDoc."Bill Gr./Pmt. Order No."); GenJnlLine2.Validate("Account No.", ClosedPmtOrd."Bank Account No."); GenJnlLine2.Validate(Amount, ClosedDoc."Amount for Collection"); @@ -789,8 +788,6 @@ codeunit 7000000 CarteraManagement VATBase := Round(VATEntry2."Unrealized Base" * VATPart); end; - VATUnrealAcc := SalesVATUnrealAccount; - VATAcc := SalesVATAccount; if CustLedgEntry2."Currency Code" = '' then TotalVATAmount := VATAmount else @@ -826,7 +823,7 @@ codeunit 7000000 CarteraManagement VATEntry."Add.-Currency Unrealized Base" := 0; VATEntry."Add.-Curr. Rem. Unreal. Amount" := 0; VATEntry."Add.-Curr. Rem. Unreal. Base" := 0; - VATEntry."User ID" := UserId; + VATEntry."User ID" := CopyStr(UserId, 1, MaxStrLen(VATEntry."User ID")); VATEntry."Source Code" := GenJnlLine."Source Code"; VATEntry."Reason Code" := GenJnlLine."Reason Code"; VATEntry."Closed by Entry No." := 0; @@ -996,8 +993,6 @@ codeunit 7000000 CarteraManagement VATBase := Round(VATEntry2."Unrealized Base" * VATPart); end; - VATUnrealAcc := PurchVATUnrealAccount; - VATAcc := PurchVATAccount; if VendLedgEntry2."Currency Code" = '' then TotalVATAmount := VATAmount else @@ -1045,7 +1040,7 @@ codeunit 7000000 CarteraManagement VATEntry."Add.-Currency Unrealized Base" := 0; VATEntry."Add.-Curr. Rem. Unreal. Amount" := 0; VATEntry."Add.-Curr. Rem. Unreal. Base" := 0; - VATEntry."User ID" := UserId; + VATEntry."User ID" := CopyStr(UserId, 1, MaxStrLen(VATEntry."User ID")); VATEntry."Source Code" := GenJnlLine."Source Code"; VATEntry."Reason Code" := GenJnlLine."Reason Code"; VATEntry."Closed by Entry No." := 0; diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/CarteraReportSelections.Table.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/CarteraReportSelections.Table.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/CarteraReportSelections.Table.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/CarteraReportSelections.Table.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/CarteraSetup.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/CarteraSetup.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/CarteraSetup.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/CarteraSetup.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/CarteraSetup.Table.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/CarteraSetup.Table.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/CarteraSetup.Table.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/CarteraSetup.Table.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/CarteraSourceCdSetup.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/CarteraSourceCdSetup.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/CarteraSourceCdSetup.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/CarteraSourceCdSetup.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/CheckDiscountCreditLimit.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/CheckDiscountCreditLimit.Page.al similarity index 87% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/CheckDiscountCreditLimit.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/CheckDiscountCreditLimit.Page.al index 24aaa134cf1..113a17d283b 100644 --- a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/CheckDiscountCreditLimit.Page.al +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/CheckDiscountCreditLimit.Page.al @@ -44,7 +44,7 @@ page 7000037 "Check Discount Credit Limit" { ApplicationArea = Basic, Suite; Caption = 'Discounted so far'; - ToolTip = 'Shows the amount pending from the receivables registered at this bank.'; + ToolTip = 'Specifies the amount pending from the receivables registered at this bank.'; } field(CurrBillGrAmount; CurrBillGrAmount) { @@ -52,6 +52,7 @@ page 7000037 "Check Discount Credit Limit" AutoFormatExpression = Rec."Currency Code"; AutoFormatType = 1; Caption = 'Amount of this Bill Group'; + ToolTip = 'Specifies the amount of the current bill group.'; } field(AmountSelected; AmountSelected) { @@ -59,6 +60,7 @@ page 7000037 "Check Discount Credit Limit" AutoFormatExpression = Rec."Currency Code"; AutoFormatType = 1; Caption = 'Amount Selected'; + ToolTip = 'Specifies the amount selected for the discount.'; Visible = AmountSelectedVisible; } field(TotalAmount; TotalAmount) @@ -67,6 +69,7 @@ page 7000037 "Check Discount Credit Limit" AutoFormatExpression = Rec."Currency Code"; AutoFormatType = 1; Caption = 'Total Amount'; + ToolTip = 'Specifies the total amount of the receivables registered at this bank.'; } field("Credit Limit for Discount"; Rec."Credit Limit for Discount") { @@ -101,6 +104,7 @@ page 7000037 "Check Discount Credit Limit" RunPageLink = "Bank Account No." = field("No."); RunPageView = sorting("Bank Account No.", "Posting Date"); ShortCutKey = 'Ctrl+F7'; + ToolTip = 'Shows the ledger entries for this bank account.'; } action("Co&mments") { @@ -110,20 +114,20 @@ page 7000037 "Check Discount Credit Limit" RunObject = Page "Comment Sheet"; RunPageLink = "Table Name" = const("Bank Account"), "No." = field("No."); + ToolTip = 'Shows the comments for this bank account.'; } action(Statistics) { ApplicationArea = Basic, Suite; Caption = 'Statistics'; Image = Statistics; - Promoted = true; - PromotedCategory = Process; RunObject = Page "Bank Account Statistics"; RunPageLink = "No." = field("No."), "Date Filter" = field("Date Filter"), "Global Dimension 1 Filter" = field("Global Dimension 1 Filter"), "Global Dimension 2 Filter" = field("Global Dimension 2 Filter"); ShortCutKey = 'F7'; + ToolTip = 'Specifies the statistics for this bank account.'; } action(Balance) { @@ -134,6 +138,7 @@ page 7000037 "Check Discount Credit Limit" RunPageLink = "No." = field("No."), "Global Dimension 1 Filter" = field("Global Dimension 1 Filter"), "Global Dimension 2 Filter" = field("Global Dimension 2 Filter"); + ToolTip = 'Specifies the balance for this bank account.'; } action("St&atements") { @@ -141,6 +146,7 @@ page 7000037 "Check Discount Credit Limit" Caption = 'St&atements'; RunObject = Page "Bank Account Statement List"; RunPageLink = "Bank Account No." = field("No."); + ToolTip = 'Specifies the statements for this bank account.'; } action("Chec&k Ledger Entries") { @@ -150,6 +156,7 @@ page 7000037 "Check Discount Credit Limit" RunObject = Page "Check Ledger Entries"; RunPageLink = "Bank Account No." = field("No."); RunPageView = sorting("Bank Account No.", "Entry Status", "Check No."); + ToolTip = 'Specifies the ledger entries for this bank account.'; } separator(Action41) { @@ -161,6 +168,7 @@ page 7000037 "Check Discount Credit Limit" RunObject = Page "Operation Fees"; RunPageLink = Code = field("Operation Fees Code"), "Currency Code" = field("Currency Code"); + ToolTip = 'Specifies the operation fees for this bank account.'; } action("Customer Ratings") { @@ -170,6 +178,7 @@ page 7000037 "Check Discount Credit Limit" RunObject = Page "Customer Ratings"; RunPageLink = Code = field("Customer Ratings Code"), "Currency Code" = field("Currency Code"); + ToolTip = 'Specifies the customer ratings for this bank account.'; } separator(Action5) { @@ -183,6 +192,7 @@ page 7000037 "Check Discount Credit Limit" RunObject = Page "Bill Groups List"; RunPageLink = "Bank Account No." = field("No."); RunPageView = sorting("Bank Account No."); + ToolTip = 'Specifies the bill groups for this bank account.'; } action("Posted Bill Groups") { @@ -192,6 +202,7 @@ page 7000037 "Check Discount Credit Limit" RunObject = Page "Posted Bill Groups List"; RunPageLink = "Bank Account No." = field("No."); RunPageView = sorting("Bank Account No."); + ToolTip = 'Specifies the posted bill groups for this bank account.'; } separator(Action7) { @@ -204,6 +215,7 @@ page 7000037 "Check Discount Credit Limit" RunObject = Page "Payment Orders List"; RunPageLink = "Bank Account No." = field("No."); RunPageView = sorting("Bank Account No."); + ToolTip = 'Specifies the payment orders for this bank account.'; } action("Posted P&ayment Orders") { @@ -213,6 +225,7 @@ page 7000037 "Check Discount Credit Limit" RunObject = Page "Posted Payment Orders List"; RunPageLink = "Bank Account No." = field("No."); RunPageView = sorting("Bank Account No."); + ToolTip = 'Specifies the posted payment orders for this bank account.'; } separator(Action50) { @@ -223,6 +236,7 @@ page 7000037 "Check Discount Credit Limit" Caption = 'Posted Recei&vable Bills'; Image = PostedReceivableVoucher; RunObject = Page "Bank Cat. Posted Receiv. Bills"; + ToolTip = 'Specifies the posted receivable bills for this bank account.'; } action("Posted Pa&yable Bills") { @@ -230,6 +244,7 @@ page 7000037 "Check Discount Credit Limit" Caption = 'Posted Pa&yable Bills'; Image = PostedPayableVoucher; RunObject = Page "Bank Cat. Posted Payable Bills"; + ToolTip = 'Specifies the posted payable bills for this bank account.'; } } } diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/ClosedCarteraDoc.Table.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/ClosedCarteraDoc.Table.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/ClosedCarteraDoc.Table.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/ClosedCarteraDoc.Table.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/ClosedCarteraDocuments.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/ClosedCarteraDocuments.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/ClosedCarteraDocuments.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/ClosedCarteraDocuments.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/ClosedDocsAnalysisLCYFB.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/ClosedDocsAnalysisLCYFB.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/ClosedDocsAnalysisLCYFB.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/ClosedDocsAnalysisLCYFB.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/ClosedDocsAnalysisNonLCYFB.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/ClosedDocsAnalysisNonLCYFB.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/ClosedDocsAnalysisNonLCYFB.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/ClosedDocsAnalysisNonLCYFB.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/ClosedDocumentsAnalysis.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/ClosedDocumentsAnalysis.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/ClosedDocumentsAnalysis.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/ClosedDocumentsAnalysis.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/DocPostBuffer.Table.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/DocPostBuffer.Table.al similarity index 83% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/DocPostBuffer.Table.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/DocPostBuffer.Table.al index 1cfd7563ace..770c54aa845 100644 --- a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/DocPostBuffer.Table.al +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/DocPostBuffer.Table.al @@ -7,25 +7,22 @@ namespace Microsoft.Finance.ReceivablesPayables; table 7000011 "Doc. Post. Buffer" { Caption = 'Doc. Post. Buffer'; - DataClassification = CustomerContent; + DataClassification = SystemMetadata; fields { field(1; "Entry No."; Integer) { Caption = 'Entry No.'; - DataClassification = SystemMetadata; } field(2; "No. of Days"; Integer) { Caption = 'No. of Days'; - DataClassification = SystemMetadata; } field(3; Amount; Decimal) { AutoFormatType = 0; Caption = 'Amount'; - DataClassification = SystemMetadata; } } diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/DocumentEdit.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/DocumentEdit.Codeunit.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/DocumentEdit.Codeunit.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/DocumentEdit.Codeunit.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/DocumentMisc.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/DocumentMisc.Codeunit.al similarity index 98% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/DocumentMisc.Codeunit.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/DocumentMisc.Codeunit.al index b156af27efc..366da603f41 100644 --- a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/DocumentMisc.Codeunit.al +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/DocumentMisc.Codeunit.al @@ -247,14 +247,14 @@ codeunit 7000007 "Document-Misc" exit(true); end; - [EventSubscriber(ObjectType::Codeunit, Codeunit::"Sales-Quote to Order", 'OnAfterInsertAllSalesOrderLines', '', false, false)] + [EventSubscriber(ObjectType::Codeunit, Codeunit::"Sales-Quote to Order", 'OnAfterInsertAllSalesOrderLines', '', true, false)] local procedure RecalculateDiscountOnAfterInsertAllSalesOrderLines(var SalesOrderLine: Record "Sales Line"; SalesQuoteHeader: Record "Sales Header") begin if SalesQuoteHeader."Payment Discount %" <> 0 then CODEUNIT.Run(CODEUNIT::"Sales-Calc. Discount", SalesOrderLine); end; - [EventSubscriber(ObjectType::Codeunit, Codeunit::"Purch.-Quote to Order", 'OnAfterInsertAllPurchOrderLines', '', false, false)] + [EventSubscriber(ObjectType::Codeunit, Codeunit::"Purch.-Quote to Order", 'OnAfterInsertAllPurchOrderLines', '', true, false)] local procedure RecalculateDiscountOnAfterInsertAllPurchOrderLines(var PurchOrderLine: Record "Purchase Line"; PurchQuoteHeader: Record "Purchase Header") begin if PurchQuoteHeader."Payment Discount %" <> 0 then diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/DocumentMove.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/DocumentMove.Codeunit.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/DocumentMove.Codeunit.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/DocumentMove.Codeunit.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/DocumentPost.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/DocumentPost.Codeunit.al similarity index 94% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/DocumentPost.Codeunit.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/DocumentPost.Codeunit.al index 460b09959ea..233cf99fc7f 100644 --- a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/DocumentPost.Codeunit.al +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/DocumentPost.Codeunit.al @@ -40,21 +40,26 @@ codeunit 7000006 "Document-Post" var JournalErrorsMgt: Codeunit "Journal Errors Mgt."; - Text1100000: Label 'must be of a type that creates bills'; - Text1100001: Label 'A customer or vendor must be specified when a bill is created.'; - Text1100004: Label 'Sales Bill %1/%2 already exists.'; - Text1100005: Label 'Purchase Document %1/%2 already exists.'; - Text1100006: Label 'Receivable %1 %2/%3 cannot be applied to, because it is included in a posted Bill Group.'; - Text1100007: Label 'Payable %1 %2/%3 cannot be applied to, because it is included in a posted Payment Order.'; - Text1100008: Label 'Date %1 is not within your range of allowed posting dates'; - Text1100009: Label '%1 must be entered.'; - Text1100010: Label '%1 must be of a type that creates bills.'; - Text1100011: Label 'A grouped document cannot be settled from a journal. Remove it from its group or payment order and try again.'; - Text1100012: Label 'cannot be filtered when posting recurring journals'; - Text1100013: Label 'Do you want to post the journal lines and print the posting report?'; - Text1100014: Label 'Do you want to post the journal lines?'; - Text1100016: Label 'The journal lines were successfully posted.'; - Text1100017: Label 'The journal lines were successfully posted. You are now in the %1 journal.'; + Text1100000Err: Label 'must be of a type that creates bills'; + Text1100001Err: Label 'A customer or vendor must be specified when a bill is created.'; + Text1100004Err: Label 'Sales Bill %1/%2 already exists.', Comment = '%1=Bill Number,%2=Customer Number'; + Text1100005Err: Label 'Purchase Document %1/%2 already exists.', Comment = '%1=Document Number,%2=Vendor Number'; + Text1100006Err: Label 'Receivable %1 %2/%3 cannot be applied to, because it is included in a posted Bill Group.', Comment = '%1=Document Type,%2=Document Number,%3=Bill Group Number'; + Text1100007Err: Label 'Payable %1 %2/%3 cannot be applied to, because it is included in a posted Payment Order.', Comment = '%1=Document Type,%2=Document Number,%3=Payment Order Number'; + Text1100008Err: Label 'Date %1 is not within your range of allowed posting dates', Comment = '%1=Date'; + Text1100009Err: Label '%1 must be entered.', Comment = '%1=Field Name'; + Text1100010Err: Label '%1 must be of a type that creates bills.', Comment = '%1=Field Name'; + Text1100011Err: Label 'A grouped document cannot be settled from a journal. Remove it from its group or payment order and try again.'; + Text1100012Err: Label 'cannot be filtered when posting recurring journals'; + Text1100013Err: Label 'Do you want to post the journal lines and print the posting report?'; + Text1100014Err: Label 'Do you want to post the journal lines?'; + Text1100016Err: Label 'The journal lines were successfully posted.'; + Text1100017Err: Label 'The journal lines were successfully posted. You are now in the %1 journal.', Comment = '%1=Journal Name'; + Text1100101Err: Label ' Remove it from its bill group and try again.'; + Text1100102Err: Label '%1 cannot be unapplied, since it is included in a bill group.', Comment = '%1=Document Description'; + Text1100103Err: Label ' Remove it from its payment order and try again.'; + Text1100104Err: Label '%1 cannot be unapplied, since it is included in a payment order.'; + CarteraDocBillGroupErr: Label 'A grouped document cannot be settled from a journal.\Remove Document %1/%2 from Group/Pmt. Order %3 and try again.', Comment = '%1=Document Number,%2=Bill number,%3=Bill Group number.'; procedure CheckGenJnlLine(var GenJnlLine: Record "Gen. Journal Line") @@ -79,9 +84,9 @@ codeunit 7000006 "Document-Post" GenJnlLine.TestField("Payment Method Code"); PaymentMethod.Get(GenJnlLine."Payment Method Code"); if not PaymentMethod."Create Bills" then - GenJnlLine.FieldError("Payment Method Code", Text1100000); + GenJnlLine.FieldError("Payment Method Code", Text1100000Err); if not (GenJnlLine."Account Type" in [GenJnlLine."Account Type"::Customer, GenJnlLine."Account Type"::Vendor]) then - Error(Text1100001) + Error(Text1100001Err) end; if GenJnlLine."Document Type" = GenJnlLine."Document Type"::"Credit Memo" then SystemCreated := false @@ -129,10 +134,8 @@ codeunit 7000006 "Document-Post" if GenJnlLine."Document Type" = GenJnlLine."Document Type"::Invoice then OldCustLedgEntry.SetRange("Document Type", OldCustLedgEntry."Document Type"::Invoice); OldCustLedgEntry.SetRange("Bill No.", CVLedgEntryBuf."Bill No."); - if OldCustLedgEntry.FindFirst() then - Error( - Text1100004, - CVLedgEntryBuf."Document No.", CVLedgEntryBuf."Bill No."); + if not OldCustLedgEntry.IsEmpty() then + Error(Text1100004Err, CVLedgEntryBuf."Document No.", CVLedgEntryBuf."Bill No."); if IsFromJournal then CarteraDoc."From Journal" := true; @@ -168,10 +171,8 @@ codeunit 7000006 "Document-Post" if GenJnlLine."Document Type" = GenJnlLine."Document Type"::Invoice then OldVendLedgEntry.SetRange("Document Type", OldVendLedgEntry."Document Type"::Invoice); OldVendLedgEntry.SetRange("Bill No.", CVLedgEntryBuf."Bill No."); - if OldVendLedgEntry.FindFirst() then - Error( - Text1100005, - CVLedgEntryBuf."Document No.", CVLedgEntryBuf."Bill No."); + if not OldVendLedgEntry.IsEmpty() then + Error(Text1100005Err, CVLedgEntryBuf."Document No.", CVLedgEntryBuf."Bill No."); if IsFromJournal then CarteraDoc."From Journal" := true; @@ -495,7 +496,7 @@ codeunit 7000006 "Document-Post" and not SystemCreatedEntry then Error( - Text1100006, + Text1100006Err, OldCustLedgEntry."Document Type", OldCustLedgEntry."Document No.", OldCustLedgEntry."Bill No."); end; @@ -506,7 +507,7 @@ codeunit 7000006 "Document-Post" and not SystemCreatedEntry then Error( - Text1100007, + Text1100007Err, OldVendLedgEntry."Document Type", OldVendLedgEntry."Document No.", OldVendLedgEntry."Bill No."); end; @@ -531,8 +532,7 @@ codeunit 7000006 "Document-Post" if AllowPostingTo = 0D then AllowPostingTo := 99991231D; if (CheckDate < AllowPostingFrom) or (CheckDate > AllowPostingTo) then - Error(Text1100008, - CheckDate); + Error(Text1100008Err, CheckDate); end; local procedure CheckCarteraDocsForBillGroups(CarteraDocType: Enum "Cartera Document Type"; DocumentNo: Code[20]; BillNo: Code[20]) @@ -644,23 +644,23 @@ codeunit 7000006 "Document-Post" then begin if GenJnlLine."Bill No." = '' then AddError( - StrSubstNo(Text1100009, GenJnlLine.FieldCaption("Bill No.")), + StrSubstNo(Text1100009Err, GenJnlLine.FieldCaption("Bill No.")), ErrorCounter, ErrorText); if GenJnlLine."Due Date" = 0D then AddError( - StrSubstNo(Text1100009, GenJnlLine.FieldCaption("Due Date")), + StrSubstNo(Text1100009Err, GenJnlLine.FieldCaption("Due Date")), ErrorCounter, ErrorText); if GenJnlLine."Payment Method Code" = '' then AddError( - StrSubstNo(Text1100009, GenJnlLine.FieldCaption("Payment Method Code")), ErrorCounter, ErrorText); + StrSubstNo(Text1100009Err, GenJnlLine.FieldCaption("Payment Method Code")), ErrorCounter, ErrorText); PaymentMethod.Get(GenJnlLine."Payment Method Code"); if not PaymentMethod."Create Bills" then AddError( - StrSubstNo(Text1100010, GenJnlLine.FieldCaption("Payment Method Code")), ErrorCounter, ErrorText); + StrSubstNo(Text1100010Err, GenJnlLine.FieldCaption("Payment Method Code")), ErrorCounter, ErrorText); if not (GenJnlLine."Account Type" in [GenJnlLine."Account Type"::Customer, GenJnlLine."Account Type"::Vendor]) then - AddError(Text1100001, ErrorCounter, ErrorText); + AddError(Text1100001Err, ErrorCounter, ErrorText); end; if (GenJnlLine."Account Type" = GenJnlLine."Account Type"::Customer) and (GenJnlLine."Applies-to Doc. Type" = GenJnlLine."Applies-to Doc. Type"::Bill) and @@ -672,7 +672,7 @@ codeunit 7000006 "Document-Post" CarteraDoc.SetRange("Document No.", GenJnlLine."Applies-to Doc. No."); CarteraDoc.SetRange("No.", GenJnlLine."Applies-to Bill No."); if CarteraDoc.FindFirst() and (CarteraDoc."Bill Gr./Pmt. Order No." <> '') then - AddError(Text1100011, ErrorCounter, ErrorText); + AddError(Text1100011Err, ErrorCounter, ErrorText); end; end; @@ -696,22 +696,22 @@ codeunit 7000006 "Document-Post" local procedure "Code"(var GenJnlLine: Record "Gen. Journal Line"; var PostOk: Boolean; Print: Boolean) var + GLReg: Record "G/L Register"; GenJnlTemplate: Record "Gen. Journal Template"; GenJnlPostBatch: Codeunit "Gen. Jnl.-Post Batch"; TempJnlBatchName: Code[10]; - GLReg: Record "G/L Register"; IsHandled: Boolean; begin GenJnlTemplate.Get(GenJnlLine."Journal Template Name"); GenJnlTemplate.TestField("Force Posting Report", false); if GenJnlTemplate.Recurring and (GenJnlLine.GetFilter("Posting Date") <> '') then - GenJnlLine.FieldError("Posting Date", Text1100012); + GenJnlLine.FieldError("Posting Date", Text1100012Err); if Print then begin - if not Confirm(Text1100013, false) then + if not Confirm(Text1100013Err, false) then exit; end else - if not Confirm(Text1100014, false) then + if not Confirm(Text1100014Err, false) then exit; TempJnlBatchName := GenJnlLine."Journal Batch Name"; @@ -759,10 +759,10 @@ codeunit 7000006 "Document-Post" Message(JournalErrorsMgt.GetNothingToPostErrorMsg()) else if TempJnlBatchName = GenJournalLine."Journal Batch Name" then begin - Message(Text1100016); + Message(Text1100016Err); PostOk := true; end else - Message(Text1100017, GenJournalLine."Journal Batch Name"); + Message(Text1100017Err, GenJournalLine."Journal Batch Name"); end; procedure PostLines(var GenJnlLine2: Record "Gen. Journal Line"; var PostOk: Boolean; Print: Boolean) @@ -856,7 +856,7 @@ codeunit 7000006 "Document-Post" DtldCVLedgEntryBuf."Amount (LCY)" := Amount2LCY; DtldCVLedgEntryBuf."Customer No." := CustLedgEntry2."Customer No."; DtldCVLedgEntryBuf."Currency Code" := CustLedgEntry2."Currency Code"; - DtldCVLedgEntryBuf."User ID" := UserId; + DtldCVLedgEntryBuf."User ID" := CopyStr(UserId, 1, MaxStrLen(DtldCVLedgEntryBuf."User ID")); DtldCVLedgEntryBuf."Initial Entry Global Dim. 1" := CustLedgEntry2."Global Dimension 1 Code"; DtldCVLedgEntryBuf."Initial Entry Global Dim. 2" := CustLedgEntry2."Global Dimension 2 Code"; DtldCVLedgEntryBuf."Bill No." := CustLedgEntry2."Bill No."; @@ -894,7 +894,7 @@ codeunit 7000006 "Document-Post" DtldCVLedgEntryBuf."Amount (LCY)" := Amount2LCY; DtldCVLedgEntryBuf."Vendor No." := VendLedgEntry2."Vendor No."; DtldCVLedgEntryBuf."Currency Code" := VendLedgEntry2."Currency Code"; - DtldCVLedgEntryBuf."User ID" := UserId; + DtldCVLedgEntryBuf."User ID" := CopyStr(UserId, 1, MaxStrLen(DtldCVLedgEntryBuf."User ID")); DtldCVLedgEntryBuf."Initial Entry Global Dim. 1" := VendLedgEntry2."Global Dimension 1 Code"; DtldCVLedgEntryBuf."Initial Entry Global Dim. 2" := VendLedgEntry2."Global Dimension 2 Code"; DtldCVLedgEntryBuf."Bill No." := VendLedgEntry2."Bill No."; @@ -922,10 +922,10 @@ codeunit 7000006 "Document-Post" procedure UpdateReceivableCurrFact(PostedCarteraDoc: Record "Posted Cartera Doc."; AppliedAmountLCY: Decimal; var DocAmountLCY: Decimal; var RejDocAmountLCY: Decimal; var DiscDocAmountLCY: Decimal; var CollDocAmountLCY: Decimal; var DiscRiskFactAmountLCY: Decimal; var DiscUnriskFactAmountLCY: Decimal; var CollFactAmountLCY: Decimal) var + CurrExchRate: Record "Currency Exchange Rate"; SalesInvHeader: Record "Sales Invoice Header"; PostedBillGroup: Record "Posted Bill Group"; CurrFact: Decimal; - CurrExchRate: Record "Currency Exchange Rate"; begin if SalesInvHeader.Get(PostedCarteraDoc."Document No.") then if SalesInvHeader."Currency Factor" <> 0 then begin @@ -1007,13 +1007,9 @@ codeunit 7000006 "Document-Post" CarteraDoc: Record "Cartera Doc."; PostedCarteraDoc: Record "Posted Cartera Doc."; ClosedCarteraDoc: Record "Closed Cartera Doc."; - CarteraDoc2: Record "Cartera Doc."; - ClosedCarteraDoc2: Record "Closed Cartera Doc."; + DtldCustLedgEntry: Record "Detailed Cust. Ledg. Entry"; DocLock: Boolean; - Text1100101: Label ' Remove it from its bill group and try again.'; - Text1100102: Label '%1 cannot be unapplied, since it is included in a bill group.'; InBillGroup: Boolean; - DtldCustLedgEntry: Record "Detailed Cust. Ledg. Entry"; IsRejection: Boolean; begin InBillGroup := false; @@ -1027,17 +1023,12 @@ codeunit 7000006 "Document-Post" if ClosedCarteraDoc."Bill Gr./Pmt. Order No." <> '' then InBillGroup := true; if InBillGroup then - Error( - Text1100102 + - Text1100101, - CustLedgEntry.Description); + Error(Text1100102Err + Text1100101Err, CustLedgEntry.Description); CustLedgEntry.CalcFields("Remaining Amount", "Remaining Amt. (LCY)"); if not DocLock then begin DocLock := true; CarteraDoc.LockTable(); ClosedCarteraDoc.LockTable(); - if CarteraDoc2.FindLast() then; - if ClosedCarteraDoc2.FindLast() then; end; if CustLedgEntry."Remaining Amount" = 0 then CustLedgEntry."Remaining Amt. (LCY)" := 0; @@ -1103,11 +1094,7 @@ codeunit 7000006 "Document-Post" CarteraDoc: Record "Cartera Doc."; PostedCarteraDoc: Record "Posted Cartera Doc."; ClosedCarteraDoc: Record "Closed Cartera Doc."; - CarteraDoc2: Record "Cartera Doc."; - ClosedCarteraDoc2: Record "Closed Cartera Doc."; - Text1100101: Label ' Remove it from its payment order and try again.'; InBillGroup: Boolean; - Text1100102: Label '%1 cannot be unapplied, since it is included in a payment order.'; begin InBillGroup := false; if CarteraDoc.Get(CarteraDoc.Type::Payable, VendLedgEntry."Entry No.") then @@ -1120,16 +1107,11 @@ codeunit 7000006 "Document-Post" if ClosedCarteraDoc."Bill Gr./Pmt. Order No." <> '' then InBillGroup := true; if InBillGroup then - Error( - Text1100102 + - Text1100101, - VendLedgEntry.Description); + Error(Text1100103Err + Text1100104Err, VendLedgEntry.Description); VendLedgEntry.CalcFields("Remaining Amount", "Remaining Amt. (LCY)"); if not DocLock then begin DocLock := true; CarteraDoc.LockTable(); - if CarteraDoc2.FindLast() then; - if ClosedCarteraDoc2.FindLast() then; ClosedCarteraDoc.LockTable(); end; if VendLedgEntry."Remaining Amount" = 0 then diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/DocumentsAnalysis.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/DocumentsAnalysis.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/DocumentsAnalysis.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/DocumentsAnalysis.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/DocumentsMaturity.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/DocumentsMaturity.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/DocumentsMaturity.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/DocumentsMaturity.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/DocumentsMaturityLines.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/DocumentsMaturityLines.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/DocumentsMaturityLines.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/DocumentsMaturityLines.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/DueDateAdjust.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/DueDateAdjust.Codeunit.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/DueDateAdjust.Codeunit.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/DueDateAdjust.Codeunit.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/FeeRange.Table.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/FeeRange.Table.al similarity index 63% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/FeeRange.Table.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/FeeRange.Table.al index fa12b1fbf99..df72b110a4c 100644 --- a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/FeeRange.Table.al +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/FeeRange.Table.al @@ -79,24 +79,15 @@ table 7000019 "Fee Range" } var - Text1100000: Label 'untitled'; - Text1100001: Label 'CollExpenses'; - Text1100002: Label 'Out of Range'; - Text1100003: Label 'DiscExpenses'; - Text1100004: Label 'DiscInterests'; - Text1100005: Label 'RejExpenses'; - Text1100006: Label 'PmtOrdCollExpenses'; - Text1100007: Label 'RiskFactExpenses'; - Text1100008: Label 'UnriskFactExpenses'; Currency: Record Currency; OperationFee: Record "Operation Fee"; - DiscExpenses: Record "BG/PO Post. Buffer" temporary; - CollExpenses: Record "BG/PO Post. Buffer" temporary; - DiscInterests: Record "BG/PO Post. Buffer" temporary; - RejExpenses: Record "BG/PO Post. Buffer" temporary; - PmtOrdCollExpenses: Record "BG/PO Post. Buffer" temporary; - RiskFactExpenses: Record "BG/PO Post. Buffer" temporary; - UnriskFactExpenses: Record "BG/PO Post. Buffer" temporary; + TempDiscExpenses: Record "BG/PO Post. Buffer" temporary; + TempCollExpenses: Record "BG/PO Post. Buffer" temporary; + TempDiscInterests: Record "BG/PO Post. Buffer" temporary; + TempRejExpenses: Record "BG/PO Post. Buffer" temporary; + TempPmtOrdCollExpenses: Record "BG/PO Post. Buffer" temporary; + TempRiskFactExpenses: Record "BG/PO Post. Buffer" temporary; + TempUnriskFactExpenses: Record "BG/PO Post. Buffer" temporary; Initialized: Boolean; TotalDiscExpensesAmt: Decimal; InitDiscExpensesAmt: Decimal; @@ -113,12 +104,22 @@ table 7000019 "Fee Range" "Sum": Decimal; Factor: Decimal; + UntitledLbl: Label 'untitled'; + CollExpensesLbl: Label 'CollExpenses'; + OutOfRangeLbl: Label 'Out of Range'; + DiscExpensesLbl: Label 'DiscExpenses'; + DiscInterestsLbl: Label 'DiscInterests'; + RejExpensesLbl: Label 'RejExpenses'; + PmtOrdCollExpensesLbl: Label 'PmtOrdCollExpenses'; + RiskFactExpensesLbl: Label 'RiskFactExpenses'; + UnriskFactExpensesLbl: Label 'UnriskFactExpenses'; + procedure Caption(): Text var BankAcc: Record "Bank Account"; begin if Code = '' then - exit(Text1100000); + exit(UntitledLbl); BankAcc.Get(Code); exit(StrSubstNo('%1 %2 %3 %4', BankAcc."No.", BankAcc.Name, "Currency Code", "Type of Fee")); end; @@ -146,7 +147,7 @@ table 7000019 "Fee Range" TotalCollExpensesAmt := Round(OperationFee."Charge Amt. per Operation", Currency."Amount Rounding Precision"); - CollExpenses.DeleteAll(); + TempCollExpenses.DeleteAll(); end; procedure CalcCollExpensesAmt(Code2: Code[20]; CurrencyCode2: Code[10]; Amount: Decimal; EntryNo: Integer) @@ -164,17 +165,17 @@ table 7000019 "Fee Range" Amount := "Minimum Amount"; TotalCollExpensesAmt := TotalCollExpensesAmt + Amount; end; - if CollExpenses.Get(Text1100001, '', EntryNo) then begin - CollExpenses.Amount := CollExpenses.Amount + Amount; - CollExpenses.Modify(); + if TempCollExpenses.Get(CollExpensesLbl, '', EntryNo) then begin + TempCollExpenses.Amount := TempCollExpenses.Amount + Amount; + TempCollExpenses.Modify(); end else begin - CollExpenses.Init(); - CollExpenses.Account := Text1100001; - CollExpenses."Entry No." := EntryNo; - // CollExpenses."Global Dimension 1 Code" := Dep; - // CollExpenses."Global Dimension 2 Code" := Proj; - CollExpenses.Amount := Amount; - CollExpenses.Insert(); + TempCollExpenses.Init(); + TempCollExpenses.Account := CollExpensesLbl; + TempCollExpenses."Entry No." := EntryNo; + // TempCollExpenses."Global Dimension 1 Code" := Dep; + // TempCollExpenses."Global Dimension 2 Code" := Proj; + TempCollExpenses.Amount := Amount; + TempCollExpenses.Insert(); end; end; @@ -193,7 +194,7 @@ table 7000019 "Fee Range" Round(OperationFee."Charge Amt. per Operation", Currency."Amount Rounding Precision"); InitDiscExpensesAmt := TotalDiscExpensesAmt; - DiscExpenses.DeleteAll(); + TempDiscExpenses.DeleteAll(); end; procedure CalcDiscExpensesAmt(Code2: Code[20]; CurrencyCode2: Code[10]; Amount: Decimal; EntryNo: Integer) @@ -213,17 +214,17 @@ table 7000019 "Fee Range" end else Amount := 0; - if DiscExpenses.Get(Text1100003, '', EntryNo) then begin - DiscExpenses.Amount := DiscExpenses.Amount + Amount; - DiscExpenses.Modify(); + if TempDiscExpenses.Get(DiscExpensesLbl, '', EntryNo) then begin + TempDiscExpenses.Amount := TempDiscExpenses.Amount + Amount; + TempDiscExpenses.Modify(); end else begin - DiscExpenses.Init(); - DiscExpenses.Account := Text1100003; - DiscExpenses."Entry No." := EntryNo; - // DiscExpenses."Global Dimension 1 Code" := Dep; - // DiscExpenses."Global Dimension 2 Code" := Proj; - DiscExpenses.Amount := Amount; - DiscExpenses.Insert(); + TempDiscExpenses.Init(); + TempDiscExpenses.Account := DiscExpensesLbl; + TempDiscExpenses."Entry No." := EntryNo; + // TempDiscExpenses."Global Dimension 1 Code" := Dep; + // TempDiscExpenses."Global Dimension 2 Code" := Proj; + TempDiscExpenses.Amount := Amount; + TempDiscExpenses.Insert(); end; end; @@ -234,41 +235,41 @@ table 7000019 "Fee Range" procedure NoRegsDiscExpenses(): Integer begin - DiscExpenses.SetRange(Account, Text1100003); - if DiscExpenses.Find('-') and (InitDiscExpensesAmt <> 0) then begin + TempDiscExpenses.SetRange(Account, DiscExpensesLbl); + if TempDiscExpenses.Find('-') and (InitDiscExpensesAmt <> 0) then begin Sum := 0; repeat - Sum := Sum + DiscExpenses.Amount; - until DiscExpenses.Next() <= 0; + Sum := Sum + TempDiscExpenses.Amount; + until TempDiscExpenses.Next() <= 0; if Sum <> 0 then Factor := InitDiscExpensesAmt / Sum else Factor := 1; - DiscExpenses.Find('-'); + TempDiscExpenses.Find('-'); repeat - Sum := Round(DiscExpenses.Amount * Factor, Currency."Amount Rounding Precision"); - DiscExpenses.Amount := DiscExpenses.Amount + Sum; + Sum := Round(TempDiscExpenses.Amount * Factor, Currency."Amount Rounding Precision"); + TempDiscExpenses.Amount := TempDiscExpenses.Amount + Sum; InitDiscExpensesAmt := InitDiscExpensesAmt - Sum; - DiscExpenses.Modify(); - until DiscExpenses.Next() <= 0; + TempDiscExpenses.Modify(); + until TempDiscExpenses.Next() <= 0; if Round(InitDiscExpensesAmt, Currency."Amount Rounding Precision") <> 0 then begin - DiscExpenses.Find('+'); - DiscExpenses.Amount := DiscExpenses.Amount + Round(InitDiscExpensesAmt, Currency."Amount Rounding Precision"); + TempDiscExpenses.Find('+'); + TempDiscExpenses.Amount := TempDiscExpenses.Amount + Round(InitDiscExpensesAmt, Currency."Amount Rounding Precision"); InitDiscExpensesAmt := 0; - DiscExpenses.Modify(); + TempDiscExpenses.Modify(); end; end; - exit(DiscExpenses.Count); + exit(TempDiscExpenses.Count); end; procedure GetDiscExpensesAmt(var value: Record "BG/PO Post. Buffer"; Register: Integer) begin - DiscExpenses.SetRange(Account, Text1100003); - DiscExpenses.Find('-'); - if Register <> DiscExpenses.Next(Register) then - Error(Text1100002); - value := DiscExpenses; + TempDiscExpenses.SetRange(Account, DiscExpensesLbl); + TempDiscExpenses.Find('-'); + if Register <> TempDiscExpenses.Next(Register) then + Error(OutOfRangeLbl); + value := TempDiscExpenses; end; procedure InitDiscInterests(Code2: Code[20]; CurrencyCode2: Code[10]) @@ -281,7 +282,7 @@ table 7000019 "Fee Range" Round(OperationFee."Charge Amt. per Operation", Currency."Amount Rounding Precision"); InitDiscInterestsAmt := TotalDiscInterestsAmt; - DiscInterests.DeleteAll(); + TempDiscInterests.DeleteAll(); end; procedure CalcDiscInterestsAmt(Code2: Code[20]; CurrencyCode2: Code[10]; NoOfDays: Integer; Amount: Decimal; EntryNo: Integer) @@ -306,15 +307,15 @@ table 7000019 "Fee Range" SetRange("Type of Fee"); - if DiscInterests.Get(Text1100004, '', EntryNo) then begin - DiscInterests.Amount := DiscInterests.Amount + Amount; - DiscInterests.Modify(); + if TempDiscInterests.Get(DiscInterestsLbl, '', EntryNo) then begin + TempDiscInterests.Amount := TempDiscInterests.Amount + Amount; + TempDiscInterests.Modify(); end else begin - DiscInterests.Init(); - DiscInterests.Account := Text1100004; - DiscInterests."Entry No." := EntryNo; - DiscInterests.Amount := Amount; - DiscInterests.Insert(); + TempDiscInterests.Init(); + TempDiscInterests.Account := DiscInterestsLbl; + TempDiscInterests."Entry No." := EntryNo; + TempDiscInterests.Amount := Amount; + TempDiscInterests.Insert(); end; end; @@ -325,41 +326,41 @@ table 7000019 "Fee Range" procedure NoRegsDiscInterests(): Integer begin - DiscInterests.SetRange(Account, Text1100004); - if DiscInterests.Find('-') and (InitDiscInterestsAmt <> 0) then begin + TempDiscInterests.SetRange(Account, DiscInterestsLbl); + if TempDiscInterests.Find('-') and (InitDiscInterestsAmt <> 0) then begin Sum := 0; repeat - Sum := Sum + DiscInterests.Amount; - until DiscInterests.Next() <= 0; + Sum := Sum + TempDiscInterests.Amount; + until TempDiscInterests.Next() <= 0; if Sum <> 0 then Factor := InitDiscInterestsAmt / Sum else Factor := 1; - DiscInterests.Find('-'); + TempDiscInterests.Find('-'); repeat - Sum := Round(DiscInterests.Amount * Factor, Currency."Amount Rounding Precision"); - DiscInterests.Amount := DiscInterests.Amount + Sum; + Sum := Round(TempDiscInterests.Amount * Factor, Currency."Amount Rounding Precision"); + TempDiscInterests.Amount := TempDiscInterests.Amount + Sum; InitDiscInterestsAmt := InitDiscInterestsAmt - Sum; - DiscInterests.Modify(); - until DiscInterests.Next() <= 0; + TempDiscInterests.Modify(); + until TempDiscInterests.Next() <= 0; if Round(InitDiscInterestsAmt, Currency."Amount Rounding Precision") <> 0 then begin - DiscInterests.Find('+'); - DiscInterests.Amount := DiscInterests.Amount + Round(InitDiscInterestsAmt, Currency."Amount Rounding Precision"); + TempDiscInterests.Find('+'); + TempDiscInterests.Amount := TempDiscInterests.Amount + Round(InitDiscInterestsAmt, Currency."Amount Rounding Precision"); InitDiscInterestsAmt := 0; - DiscInterests.Modify(); + TempDiscInterests.Modify(); end; end; - exit(DiscInterests.Count); + exit(TempDiscInterests.Count); end; procedure GetDiscInterestsAmt(var value: Record "BG/PO Post. Buffer"; Register: Integer) begin - DiscInterests.SetRange(Account, Text1100004); - DiscInterests.Find('-'); - if Register <> DiscInterests.Next(Register) then - Error(Text1100002); - value := DiscInterests; + TempDiscInterests.SetRange(Account, DiscInterestsLbl); + TempDiscInterests.Find('-'); + if Register <> TempDiscInterests.Next(Register) then + Error(OutOfRangeLbl); + value := TempDiscInterests; end; procedure InitRejExpenses(Code2: Code[20]; CurrencyCode2: Code[10]) @@ -372,7 +373,7 @@ table 7000019 "Fee Range" Round(OperationFee."Charge Amt. per Operation", Currency."Amount Rounding Precision"); InitRejExpensesAmt := TotalRejExpensesAmt; - RejExpenses.DeleteAll(); + TempRejExpenses.DeleteAll(); end; procedure CalcRejExpensesAmt(Code2: Code[20]; CurrencyCode2: Code[10]; Amount: Decimal; EntryNo: Integer) @@ -392,15 +393,15 @@ table 7000019 "Fee Range" end; SetRange("Type of Fee"); - if RejExpenses.Get(Text1100005, '', EntryNo) then begin - RejExpenses.Amount := RejExpenses.Amount + Amount; - RejExpenses.Modify(); + if TempRejExpenses.Get(RejExpensesLbl, '', EntryNo) then begin + TempRejExpenses.Amount := TempRejExpenses.Amount + Amount; + TempRejExpenses.Modify(); end else begin - RejExpenses.Init(); - RejExpenses.Account := Text1100005; - RejExpenses."Entry No." := EntryNo; - RejExpenses.Amount := Amount; - RejExpenses.Insert(); + TempRejExpenses.Init(); + TempRejExpenses.Account := RejExpensesLbl; + TempRejExpenses."Entry No." := EntryNo; + TempRejExpenses.Amount := Amount; + TempRejExpenses.Insert(); end; end; @@ -411,41 +412,41 @@ table 7000019 "Fee Range" procedure NoRegRejExpenses(): Integer begin - RejExpenses.SetRange(Account, Text1100005); - if RejExpenses.Find('-') and (InitRejExpensesAmt <> 0) then begin + TempRejExpenses.SetRange(Account, RejExpensesLbl); + if TempRejExpenses.Find('-') and (InitRejExpensesAmt <> 0) then begin Sum := 0; repeat - Sum := Sum + RejExpenses.Amount; - until RejExpenses.Next() <= 0; + Sum := Sum + TempRejExpenses.Amount; + until TempRejExpenses.Next() <= 0; if Sum <> 0 then Factor := InitRejExpensesAmt / Sum else Factor := 1; - RejExpenses.Find('-'); + TempRejExpenses.Find('-'); repeat - Sum := Round(RejExpenses.Amount * Factor, Currency."Amount Rounding Precision"); - RejExpenses.Amount := RejExpenses.Amount + Sum; + Sum := Round(TempRejExpenses.Amount * Factor, Currency."Amount Rounding Precision"); + TempRejExpenses.Amount := TempRejExpenses.Amount + Sum; InitRejExpensesAmt := InitRejExpensesAmt - Sum; - RejExpenses.Modify(); - until RejExpenses.Next() <= 0; + TempRejExpenses.Modify(); + until TempRejExpenses.Next() <= 0; if Round(InitRejExpensesAmt, Currency."Amount Rounding Precision") <> 0 then begin - RejExpenses.Find('+'); - RejExpenses.Amount := RejExpenses.Amount + Round(InitRejExpensesAmt, Currency."Amount Rounding Precision"); + TempRejExpenses.Find('+'); + TempRejExpenses.Amount := TempRejExpenses.Amount + Round(InitRejExpensesAmt, Currency."Amount Rounding Precision"); InitRejExpensesAmt := 0; - RejExpenses.Modify(); + TempRejExpenses.Modify(); end; end; - exit(RejExpenses.Count); + exit(TempRejExpenses.Count); end; procedure GetRejExpensesAmt(var value: Record "BG/PO Post. Buffer"; Register: Integer) begin - RejExpenses.SetRange(Account, Text1100005); - RejExpenses.Find('-'); - if Register <> RejExpenses.Next(Register) then - Error(Text1100002); - value := RejExpenses; + TempRejExpenses.SetRange(Account, RejExpensesLbl); + TempRejExpenses.Find('-'); + if Register <> TempRejExpenses.Next(Register) then + Error(OutOfRangeLbl); + value := TempRejExpenses; end; procedure InitPmtOrdCollExpenses(Code2: Code[20]; CurrencyCode2: Code[10]) @@ -457,7 +458,7 @@ table 7000019 "Fee Range" TotalPmtOrdCollExpensesAmt := Round(OperationFee."Charge Amt. per Operation", Currency."Amount Rounding Precision"); - PmtOrdCollExpenses.DeleteAll(); + TempPmtOrdCollExpenses.DeleteAll(); end; procedure CalcPmtOrdCollExpensesAmt(Code2: Code[20]; CurrencyCode2: Code[10]; Amount: Decimal; EntryNo: Integer) @@ -476,15 +477,15 @@ table 7000019 "Fee Range" TotalPmtOrdCollExpensesAmt := TotalPmtOrdCollExpensesAmt + Amount; end; - if PmtOrdCollExpenses.Get(Text1100006, '', EntryNo) then begin - PmtOrdCollExpenses.Amount := PmtOrdCollExpenses.Amount + Amount; - PmtOrdCollExpenses.Modify(); + if TempPmtOrdCollExpenses.Get(PmtOrdCollExpensesLbl, '', EntryNo) then begin + TempPmtOrdCollExpenses.Amount := TempPmtOrdCollExpenses.Amount + Amount; + TempPmtOrdCollExpenses.Modify(); end else begin - PmtOrdCollExpenses.Init(); - PmtOrdCollExpenses.Account := Text1100006; - PmtOrdCollExpenses."Entry No." := EntryNo; - PmtOrdCollExpenses.Amount := Amount; - PmtOrdCollExpenses.Insert(); + TempPmtOrdCollExpenses.Init(); + TempPmtOrdCollExpenses.Account := PmtOrdCollExpensesLbl; + TempPmtOrdCollExpenses."Entry No." := EntryNo; + TempPmtOrdCollExpenses.Amount := Amount; + TempPmtOrdCollExpenses.Insert(); end; end; @@ -503,7 +504,7 @@ table 7000019 "Fee Range" Round(OperationFee."Charge Amt. per Operation", Currency."Amount Rounding Precision"); InitRiskFactExpensesAmt := TotalRiskFactExpensesAmt; - RiskFactExpenses.DeleteAll(); + TempRiskFactExpenses.DeleteAll(); end; procedure CalcRiskFactExpensesAmt(Code2: Code[20]; CurrencyCode2: Code[10]; Amount: Decimal; EntryNo: Integer) @@ -522,15 +523,15 @@ table 7000019 "Fee Range" TotalRiskFactExpensesAmt := TotalRiskFactExpensesAmt + Amount; end; - if RiskFactExpenses.Get(Text1100007, '', EntryNo) then begin - RiskFactExpenses.Amount := RiskFactExpenses.Amount + Amount; - RiskFactExpenses.Modify(); + if TempRiskFactExpenses.Get(RiskFactExpensesLbl, '', EntryNo) then begin + TempRiskFactExpenses.Amount := TempRiskFactExpenses.Amount + Amount; + TempRiskFactExpenses.Modify(); end else begin - RiskFactExpenses.Init(); - RiskFactExpenses.Account := Text1100007; - RiskFactExpenses."Entry No." := EntryNo; - RiskFactExpenses.Amount := Amount; - RiskFactExpenses.Insert(); + TempRiskFactExpenses.Init(); + TempRiskFactExpenses.Account := RiskFactExpensesLbl; + TempRiskFactExpenses."Entry No." := EntryNo; + TempRiskFactExpenses.Amount := Amount; + TempRiskFactExpenses.Insert(); end; end; @@ -541,41 +542,41 @@ table 7000019 "Fee Range" procedure NoRegRiskFactExpenses(): Integer begin - RiskFactExpenses.SetRange(Account, Text1100007); - if RiskFactExpenses.Find('-') and (InitRiskFactExpensesAmt <> 0) then begin + TempRiskFactExpenses.SetRange(Account, RiskFactExpensesLbl); + if TempRiskFactExpenses.Find('-') and (InitRiskFactExpensesAmt <> 0) then begin Sum := 0; repeat - Sum := Sum + RiskFactExpenses.Amount; - until RiskFactExpenses.Next() <= 0; + Sum := Sum + TempRiskFactExpenses.Amount; + until TempRiskFactExpenses.Next() <= 0; if Sum <> 0 then Factor := InitRiskFactExpensesAmt / Sum else Factor := 1; - RiskFactExpenses.Find('-'); + TempRiskFactExpenses.Find('-'); repeat - Sum := Round(RiskFactExpenses.Amount * Factor, Currency."Amount Rounding Precision"); - RiskFactExpenses.Amount := RiskFactExpenses.Amount + Sum; + Sum := Round(TempRiskFactExpenses.Amount * Factor, Currency."Amount Rounding Precision"); + TempRiskFactExpenses.Amount := TempRiskFactExpenses.Amount + Sum; InitRiskFactExpensesAmt := InitRiskFactExpensesAmt - Sum; - RiskFactExpenses.Modify(); - until RiskFactExpenses.Next() <= 0; + TempRiskFactExpenses.Modify(); + until TempRiskFactExpenses.Next() <= 0; if Round(InitRiskFactExpensesAmt, Currency."Amount Rounding Precision") <> 0 then begin - RiskFactExpenses.Find('+'); - RiskFactExpenses.Amount := RiskFactExpenses.Amount + Round(InitRiskFactExpensesAmt, Currency."Amount Rounding Precision"); + TempRiskFactExpenses.Find('+'); + TempRiskFactExpenses.Amount := TempRiskFactExpenses.Amount + Round(InitRiskFactExpensesAmt, Currency."Amount Rounding Precision"); InitRiskFactExpensesAmt := 0; - RiskFactExpenses.Modify(); + TempRiskFactExpenses.Modify(); end; end; - exit(RiskFactExpenses.Count); + exit(TempRiskFactExpenses.Count); end; procedure GetRiskFactExpenses(var value: Record "BG/PO Post. Buffer"; Register: Integer) begin - RiskFactExpenses.SetRange(Account, Text1100007); - RiskFactExpenses.Find('-'); - if Register <> RiskFactExpenses.Next(Register) then - Error(Text1100002); - value := RiskFactExpenses; + TempRiskFactExpenses.SetRange(Account, RiskFactExpensesLbl); + TempRiskFactExpenses.Find('-'); + if Register <> TempRiskFactExpenses.Next(Register) then + Error(OutOfRangeLbl); + value := TempRiskFactExpenses; end; procedure InitUnriskFactExpenses(Code2: Code[20]; CurrencyCode2: Code[10]) @@ -588,7 +589,7 @@ table 7000019 "Fee Range" Round(OperationFee."Charge Amt. per Operation", Currency."Amount Rounding Precision"); InitUnriskFactExpensesAmt := TotalUnriskFactExpensesAmt; - UnriskFactExpenses.DeleteAll(); + TempUnriskFactExpenses.DeleteAll(); end; procedure CalcUnriskFactExpensesAmt(Code2: Code[20]; CurrencyCode2: Code[10]; Amount: Decimal; EntryNo: Integer) @@ -607,15 +608,15 @@ table 7000019 "Fee Range" TotalUnriskFactExpensesAmt := TotalUnriskFactExpensesAmt + Amount; end; - if UnriskFactExpenses.Get(Text1100008, '', EntryNo) then begin - UnriskFactExpenses.Amount := UnriskFactExpenses.Amount + Amount; - UnriskFactExpenses.Modify(); + if TempUnriskFactExpenses.Get(UnriskFactExpensesLbl, '', EntryNo) then begin + TempUnriskFactExpenses.Amount := TempUnriskFactExpenses.Amount + Amount; + TempUnriskFactExpenses.Modify(); end else begin - UnriskFactExpenses.Init(); - UnriskFactExpenses.Account := Text1100008; - UnriskFactExpenses."Entry No." := EntryNo; - UnriskFactExpenses.Amount := Amount; - UnriskFactExpenses.Insert(); + TempUnriskFactExpenses.Init(); + TempUnriskFactExpenses.Account := UnriskFactExpensesLbl; + TempUnriskFactExpenses."Entry No." := EntryNo; + TempUnriskFactExpenses.Amount := Amount; + TempUnriskFactExpenses.Insert(); end; end; @@ -626,42 +627,42 @@ table 7000019 "Fee Range" procedure NoRegUnriskFactExpenses(): Integer begin - UnriskFactExpenses.SetRange(Account, Text1100008); - if UnriskFactExpenses.Find('-') and (InitUnriskFactExpensesAmt <> 0) then begin + TempUnriskFactExpenses.SetRange(Account, UnriskFactExpensesLbl); + if TempUnriskFactExpenses.Find('-') and (InitUnriskFactExpensesAmt <> 0) then begin Sum := 0; repeat - Sum := Sum + UnriskFactExpenses.Amount; - until UnriskFactExpenses.Next() <= 0; + Sum := Sum + TempUnriskFactExpenses.Amount; + until TempUnriskFactExpenses.Next() <= 0; if Sum <> 0 then Factor := InitUnriskFactExpensesAmt / Sum else Factor := 1; - UnriskFactExpenses.Find('-'); + TempUnriskFactExpenses.Find('-'); repeat - Sum := Round(UnriskFactExpenses.Amount * Factor, Currency."Amount Rounding Precision"); - UnriskFactExpenses.Amount := UnriskFactExpenses.Amount + Sum; + Sum := Round(TempUnriskFactExpenses.Amount * Factor, Currency."Amount Rounding Precision"); + TempUnriskFactExpenses.Amount := TempUnriskFactExpenses.Amount + Sum; InitUnriskFactExpensesAmt := InitUnriskFactExpensesAmt - Sum; - UnriskFactExpenses.Modify(); - until UnriskFactExpenses.Next() <= 0; + TempUnriskFactExpenses.Modify(); + until TempUnriskFactExpenses.Next() <= 0; if Round(InitUnriskFactExpensesAmt, Currency."Amount Rounding Precision") <> 0 then begin - UnriskFactExpenses.Find('+'); - UnriskFactExpenses.Amount := UnriskFactExpenses.Amount + + TempUnriskFactExpenses.Find('+'); + TempUnriskFactExpenses.Amount := TempUnriskFactExpenses.Amount + Round(InitUnriskFactExpensesAmt, Currency."Amount Rounding Precision"); InitUnriskFactExpensesAmt := 0; - UnriskFactExpenses.Modify(); + TempUnriskFactExpenses.Modify(); end; end; - exit(UnriskFactExpenses.Count); + exit(TempUnriskFactExpenses.Count); end; procedure GetUnriskFactExpenses(var value: Record "BG/PO Post. Buffer"; Register: Integer) begin - UnriskFactExpenses.SetRange(Account, Text1100008); - UnriskFactExpenses.Find('-'); - if Register <> UnriskFactExpenses.Next(Register) then - Error(Text1100002); - value := UnriskFactExpenses; + TempUnriskFactExpenses.SetRange(Account, UnriskFactExpensesLbl); + TempUnriskFactExpenses.Find('-'); + if Register <> TempUnriskFactExpenses.Next(Register) then + Error(OutOfRangeLbl); + value := TempUnriskFactExpenses; end; } diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/FeeRanges.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/FeeRanges.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/FeeRanges.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/FeeRanges.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/GLRegDocs.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/GLRegDocs.Codeunit.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/GLRegDocs.Codeunit.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/GLRegDocs.Codeunit.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/Installment.Table.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/Installment.Table.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/Installment.Table.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/Installment.Table.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/Installments.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/Installments.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/Installments.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/Installments.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/InvoiceSplitPayment.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/InvoiceSplitPayment.Codeunit.al similarity index 95% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/InvoiceSplitPayment.Codeunit.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/InvoiceSplitPayment.Codeunit.al index 465c66c002a..abbcd9fd2aa 100644 --- a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/InvoiceSplitPayment.Codeunit.al +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/InvoiceSplitPayment.Codeunit.al @@ -51,14 +51,14 @@ codeunit 7000005 "Invoice-Split Payment" TotalPerc: Decimal; ExistsVATNoReal: Boolean; ErrorMessage: Boolean; - Text001: Label 'Sales %1 no. %2 cannot be posted, because the due date field for one or more installments is more than the legal limit of %3 days after the document date %4 for the original document.'; - Text002: Label 'Purchase %1 no. %2 cannot be posted, because the due date field for one or more installments is more than the legal limit of %3 days after the document date %4 for the original document.'; - Text1100000: Label 'You cannot select a bill-based %1 for a Credit memo.'; - Text1100001: Label '%1 must be 1 if %2 is True in %3'; - Text1100002: Label 'Transfer of Invoice %1 into bills'; - Text1100003: Label 'Unrealized VAT Type must be "Percentage" in VAT Posting Setup.'; - Text1100004: Label 'Bill %1/%2'; - Text1100005: Label 'The sum of %1 cannot be greater then 100 in the installments for %2 %3.'; + Text001Err: Label 'Sales %1 no. %2 cannot be posted, because the due date field for one or more installments is more than the legal limit of %3 days after the document date %4 for the original document.', Comment = '%1 - Document Type, %2 - Document No., %3 - Max. No. of Days till Due Date, %4 - Document Date'; + Text002Err: Label 'Purchase %1 no. %2 cannot be posted, because the due date field for one or more installments is more than the legal limit of %3 days after the document date %4 for the original document.', Comment = '%1 - Document Type, %2 - Document No., %3 - Max. No. of Days till Due Date, %4 - Document Date'; + Text1100000Err: Label 'You cannot select a bill-based %1 for a Credit memo.', Comment = '%1 - Payment Method Code'; + Text1100001Err: Label '%1 must be 1 if %2 is True in %3', Comment = '%1 - Payment Terms Code, %2 - Invoices to Cartera, %3 - Payment Method'; + Text1100002Err: Label 'Transfer of Invoice %1 into bills', Comment = '%1 - Document No.'; + Text1100003Err: Label 'Unrealized VAT Type must be "Percentage" in VAT Posting Setup.'; + Text1100004Txt: Label 'Bill %1/%2', Comment = '%1 - Bill No., %2 - Document No.'; + Text1100005Err: Label 'The sum of %1 cannot be greater then 100 in the installments for %2 %3.', Comment = '%1 - % of Total, %2 - Payment Terms, %3 - Payment Terms Code'; procedure SplitSalesInv(var SalesHeader: Record "Sales Header"; var CustLedgEntry: Record "Cust. Ledger Entry"; var Window: Dialog; SourceCode: Code[10]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocNo: Code[20]; VATAmount: Decimal; HideProgressWindow: Boolean) var @@ -75,7 +75,7 @@ codeunit 7000005 "Invoice-Split Payment" OnSplitSalesInvOnBeforeCheckPaymentMethod(SalesHeader, PaymentMethod, PaymentTerms, IsHandled); if not IsHandled then if PaymentMethod."Create Bills" and (SalesHeader."Document Type" = SalesHeader."Document Type"::"Credit Memo") then - Error(Text1100000, SalesHeader.FieldCaption("Payment Method Code")); + Error(Text1100000Err, SalesHeader.FieldCaption("Payment Method Code")); if SalesHeader."Currency Code" = '' then CurrencyFactor := 1 @@ -94,7 +94,7 @@ codeunit 7000005 "Invoice-Split Payment" if not IsHandled then if PaymentMethod."Invoices to Cartera" and (PaymentTerms."No. of Installments" > 1) then Error( - Text1100001, + Text1100001Err, PaymentTerms.FieldCaption("No. of Installments"), PaymentMethod.FieldCaption("Invoices to Cartera"), PaymentMethod.TableCaption()); @@ -116,7 +116,7 @@ codeunit 7000005 "Invoice-Split Payment" GenJnlLine.Validate("Account No.", SalesHeader."Bill-to Customer No."); GenJnlLine."Document Type" := GenJnlLine."Document Type"::" "; GenJnlLine."Document No." := GenJnlLineDocNo; - GenJnlLine.Description := CopyStr(StrSubstNo(Text1100002, GenJnlLineDocNo), 1, MaxStrLen(GenJnlLine.Description)); + GenJnlLine.Description := CopyStr(StrSubstNo(Text1100002Err, GenJnlLineDocNo), 1, MaxStrLen(GenJnlLine.Description)); GenJnlLine."Shortcut Dimension 1 Code" := SalesHeader."Shortcut Dimension 1 Code"; GenJnlLine."Shortcut Dimension 2 Code" := SalesHeader."Shortcut Dimension 2 Code"; GenJnlLine."Dimension Set ID" := SalesHeader."Dimension Set ID"; @@ -143,7 +143,7 @@ codeunit 7000005 "Invoice-Split Payment" if GLSetup."Unrealized VAT" then begin FindCustVATSetup(VATPostingSetup, SalesHeader); if ErrorMessage then - Error(Text1100003); + Error(Text1100003Err); end; OnBeforeSplitSalesInvCloseEntry(GenJnlLine, SalesHeader); @@ -245,7 +245,7 @@ codeunit 7000005 "Invoice-Split Payment" TotalPerc := TotalPerc + Installment."% of Total"; if TotalPerc >= 100 then Error( - Text1100005, + Text1100005Err, Installment.FieldCaption("% of Total"), PaymentTerms.TableCaption(), PaymentTerms.Code); @@ -285,7 +285,7 @@ codeunit 7000005 "Invoice-Split Payment" GenJnlLine."Bill No." := Format(BillNo); GenJnlLine.Description := CopyStr( - StrSubstNo(Text1100004, GenJnlLineDocNo, BillNo), + StrSubstNo(Text1100004Txt, GenJnlLineDocNo, BillNo), 1, MaxStrLen(GenJnlLine.Description)); OnSplitSalesInvOnCreateBillsOnBeforePostGenJnlLine(GenJnlLine, SalesHeader); @@ -318,7 +318,7 @@ codeunit 7000005 "Invoice-Split Payment" if not IsHandled then if PaymentMethod."Create Bills" and (PurchHeader."Document Type" = PurchHeader."Document Type"::"Credit Memo") then Error( - Text1100000, + Text1100000Err, PurchHeader.FieldCaption("Payment Method Code")); if PurchHeader."Currency Code" = '' then @@ -338,7 +338,7 @@ codeunit 7000005 "Invoice-Split Payment" if not IsHandled then if PaymentMethod."Invoices to Cartera" and (PaymentTerms."No. of Installments" > 1) then Error( - Text1100001, + Text1100001Err, PaymentTerms.FieldCaption("No. of Installments"), PaymentMethod.FieldCaption("Invoices to Cartera"), PaymentMethod.TableCaption()); @@ -359,7 +359,7 @@ codeunit 7000005 "Invoice-Split Payment" GenJnlLine.Validate("Account No.", PurchHeader."Pay-to Vendor No."); GenJnlLine."Document Type" := GenJnlLine."Document Type"::" "; GenJnlLine."Document No." := GenJnlLineDocNo; - GenJnlLine.Description := CopyStr(StrSubstNo(Text1100002, GenJnlLineDocNo), 1, MaxStrLen(GenJnlLine.Description)); + GenJnlLine.Description := CopyStr(StrSubstNo(Text1100002Err, GenJnlLineDocNo), 1, MaxStrLen(GenJnlLine.Description)); GenJnlLine."Shortcut Dimension 1 Code" := PurchHeader."Shortcut Dimension 1 Code"; GenJnlLine."Shortcut Dimension 2 Code" := PurchHeader."Shortcut Dimension 2 Code"; GenJnlLine."Dimension Set ID" := PurchHeader."Dimension Set ID"; @@ -383,7 +383,7 @@ codeunit 7000005 "Invoice-Split Payment" if GLSetup."Unrealized VAT" then begin FindVendVATSetup(VATPostingSetup, PurchHeader); if ErrorMessage then - Error(Text1100003); + Error(Text1100003Err); end; OnBeforeSplitPurchInvCloseEntry(GenJnlLine, PurchHeader); @@ -483,7 +483,7 @@ codeunit 7000005 "Invoice-Split Payment" TotalPerc := TotalPerc + Installment."% of Total"; if TotalPerc >= 100 then Error( - Text1100005, + Text1100005Err, Installment.FieldCaption("% of Total"), PaymentTerms.TableCaption(), PaymentTerms.Code); @@ -521,7 +521,7 @@ codeunit 7000005 "Invoice-Split Payment" GenJnlLine."Bill No." := Format(BillNo); GenJnlLine.Description := CopyStr( - StrSubstNo(Text1100004, GenJnlLineDocNo, BillNo), + StrSubstNo(Text1100004Txt, GenJnlLineDocNo, BillNo), 1, MaxStrLen(GenJnlLine.Description)); OnSplitPurchInvOnCreateBillsOnBeforePostGenJnlLine(GenJnlLine, PurchHeader); @@ -713,13 +713,13 @@ codeunit 7000005 "Invoice-Split Payment" local procedure CheckSalesDueDate(SalesHeader: Record "Sales Header"; NewDueDate: Date; MaxNoOfDays: Integer) begin if not CheckDueDate(NewDueDate, SalesHeader."Document Date", MaxNoOfDays) then - Error(Text001, SalesHeader."Document Type", SalesHeader."No.", MaxNoOfDays, SalesHeader."Document Date"); + Error(Text001Err, SalesHeader."Document Type", SalesHeader."No.", MaxNoOfDays, SalesHeader."Document Date"); end; local procedure CheckPurchDueDate(PurchaseHeader: Record "Purchase Header"; NewDueDate: Date; MaxNoOfDays: Integer) begin if not CheckDueDate(NewDueDate, PurchaseHeader."Document Date", MaxNoOfDays) then - Error(Text002, PurchaseHeader."Document Type", PurchaseHeader."No.", MaxNoOfDays, PurchaseHeader."Document Date"); + Error(Text002Err, PurchaseHeader."Document Type", PurchaseHeader."No.", MaxNoOfDays, PurchaseHeader."Document Date"); end; [IntegrationEvent(false, false)] diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/NonPaymentPeriod.Table.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/NonPaymentPeriod.Table.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/NonPaymentPeriod.Table.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/NonPaymentPeriod.Table.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/NonPaymentPeriods.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/NonPaymentPeriods.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/NonPaymentPeriods.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/NonPaymentPeriods.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/OperationFee.Table.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/OperationFee.Table.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/OperationFee.Table.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/OperationFee.Table.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/OperationFees.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/OperationFees.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/OperationFees.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/OperationFees.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/PaymentDay.Table.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/PaymentDay.Table.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/PaymentDay.Table.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/PaymentDay.Table.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/PaymentDays.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/PaymentDays.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/PaymentDays.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/PaymentDays.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/PostedBills.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/PostedBills.Page.al similarity index 83% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/PostedBills.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/PostedBills.Page.al index 8936c4565e2..1f5efef81e9 100644 --- a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/PostedBills.Page.al +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/PostedBills.Page.al @@ -279,8 +279,8 @@ page 7000067 "Posted Bills" trigger OnAction() begin - CurrPage.SetSelectionFilter(PostedDoc); - CarteraManagement.CategorizePostedDocs(PostedDoc); + CurrPage.SetSelectionFilter(PostedCarteraDoc); + CarteraManagement.CategorizePostedDocs(PostedCarteraDoc); end; } action(Decategorize) @@ -292,8 +292,8 @@ page 7000067 "Posted Bills" trigger OnAction() begin - CurrPage.SetSelectionFilter(PostedDoc); - CarteraManagement.DecategorizePostedDocs(PostedDoc); + CurrPage.SetSelectionFilter(PostedCarteraDoc); + CarteraManagement.DecategorizePostedDocs(PostedCarteraDoc); end; } separator(Action37) @@ -308,20 +308,18 @@ page 7000067 "Posted Bills" trigger OnAction() begin - CurrPage.SetSelectionFilter(PostedDoc); - if not PostedDoc.Find('=><') then + CurrPage.SetSelectionFilter(PostedCarteraDoc); + if not PostedCarteraDoc.Find('=><') then exit; - PostedDoc.SetRange(Status, PostedDoc.Status::Open); - if not PostedDoc.Find('-') then - Error( - Text1100000 + - Text1100001); + PostedCarteraDoc.SetRange(Status, PostedCarteraDoc.Status::Open); + if not PostedCarteraDoc.Find('-') then + Error(Text1100000Err + Text1100001Err); - if PostedDoc.Type = PostedDoc.Type::Receivable then - REPORT.RunModal(REPORT::"Settle Docs. in Post. Bill Gr.", true, false, PostedDoc) + if PostedCarteraDoc.Type = PostedCarteraDoc.Type::Receivable then + REPORT.RunModal(REPORT::"Settle Docs. in Post. Bill Gr.", true, false, PostedCarteraDoc) else - REPORT.RunModal(REPORT::"Settle Docs. in Posted PO", true, false, PostedDoc); + REPORT.RunModal(REPORT::"Settle Docs. in Posted PO", true, false, PostedCarteraDoc); end; } action(Reject) @@ -376,7 +374,7 @@ page 7000067 "Posted Bills" trigger OnAction() begin - Option := StrMenu(Text1100002); + Option := StrMenu(Text1100002Err); case Option of 0: exit; @@ -384,8 +382,8 @@ page 7000067 "Posted Bills" CarteraManagement.NavigatePostedDoc(Rec); 2: begin - Navigate.SetDoc(Rec."Posting Date", Rec."Bill Gr./Pmt. Order No."); - Navigate.Run(); + NavigatePage.SetDoc(Rec."Posting Date", Rec."Bill Gr./Pmt. Order No."); + NavigatePage.Run(); end; end; end; @@ -438,23 +436,13 @@ page 7000067 "Posted Bills" end; var - Text1100000: Label 'No bills have been found that can be settled. \'; - Text1100001: Label 'Please check that at least one open bill was selected.'; - Text1100002: Label 'Related to Bill,Related to Bill Group'; - Text1100003: Label 'Open|Honored|Rejected'; - Text1100004: Label 'Only Receivable Bills can be printed.'; - Text1100005: Label 'Only Receivable Bills can be rejected.'; - Text1100006: Label 'No bills have been found that can be rejected. \'; - Text1100007: Label 'No bills have been found that can be redrawn. \'; - Text1100008: Label 'Please check that at least one rejected or honored bill was selected.'; - Text1100009: Label 'Only bills can be redrawn.'; - PostedDoc: Record "Posted Cartera Doc."; + PostedCarteraDoc: Record "Posted Cartera Doc."; CustLedgEntry: Record "Cust. Ledger Entry"; VendLedgEntry: Record "Vendor Ledger Entry"; - Navigate: Page Navigate; CarteraManagement: Codeunit CarteraManagement; - CategoryFilter: Code[250]; - ActiveFilter: Text[250]; + NavigatePage: Page Navigate; + CategoryFilter: Text; + ActiveFilter: Text; TotalCurrAmtLCY: Decimal; StatusFilter: Option Open,Honored,Rejected,All; Option: Option "0","1","2"; @@ -462,23 +450,34 @@ page 7000067 "Posted Bills" ClasFilterEditable: Boolean; StatusFilterEditable: Boolean; + Text1100000Err: Label 'No bills have been found that can be settled. \'; + Text1100001Err: Label 'Please check that at least one open bill was selected.'; + Text1100002Err: Label 'Related to Bill,Related to Bill Group'; + Text1100003Err: Label 'Open|Honored|Rejected'; + Text1100004Err: Label 'Only Receivable Bills can be printed.'; + Text1100005Err: Label 'Only Receivable Bills can be rejected.'; + Text1100006Err: Label 'No bills have been found that can be rejected. \'; + Text1100007Err: Label 'No bills have been found that can be redrawn. \'; + Text1100008Err: Label 'Please check that at least one rejected or honored bill was selected.'; + Text1100009Err: Label 'Only bills can be redrawn.'; + [Scope('OnPrem')] procedure UpdateStatistics() begin - PostedDoc.Reset(); - PostedDoc.SetCurrentKey("Bank Account No.", "Bill Gr./Pmt. Order No.", Status, + PostedCarteraDoc.Reset(); + PostedCarteraDoc.SetCurrentKey("Bank Account No.", "Bill Gr./Pmt. Order No.", Status, "Category Code", Redrawn, "Due Date", "Document Type"); - PostedDoc.CopyFilters(Rec); - PostedDoc.SetRange("Document Type", PostedDoc."Document Type"::Bill); - PostedDoc.SetFilter("Category Code", CategoryFilter); - PostedDoc.CalcSums(PostedDoc."Remaining Amt. (LCY)"); - TotalCurrAmtLCY := PostedDoc."Remaining Amt. (LCY)"; + PostedCarteraDoc.CopyFilters(Rec); + PostedCarteraDoc.SetRange("Document Type", PostedCarteraDoc."Document Type"::Bill); + PostedCarteraDoc.SetFilter("Category Code", CategoryFilter); + PostedCarteraDoc.CalcSums(PostedCarteraDoc."Remaining Amt. (LCY)"); + TotalCurrAmtLCY := PostedCarteraDoc."Remaining Amt. (LCY)"; ActiveFilter := Rec.GetFilter(Status); case ActiveFilter of '': StatusFilter := StatusFilter::All; - Text1100003: + Text1100003Err: StatusFilter := StatusFilter::All else StatusFilter := Rec.Status.AsInteger(); @@ -497,18 +496,18 @@ page 7000067 "Posted Bills" [Scope('OnPrem')] procedure PrintBillRec() begin - CurrPage.SetSelectionFilter(PostedDoc); - if not PostedDoc.Find('-') then + CurrPage.SetSelectionFilter(PostedCarteraDoc); + if not PostedCarteraDoc.Find('-') then exit; - if PostedDoc.Type <> PostedDoc.Type::Receivable then - Error(Text1100004); + if PostedCarteraDoc.Type <> PostedCarteraDoc.Type::Receivable then + Error(Text1100004Err); CustLedgEntry.Reset(); repeat - CustLedgEntry.Get(PostedDoc."Entry No."); + CustLedgEntry.Get(PostedCarteraDoc."Entry No."); CustLedgEntry.Mark(true); - until PostedDoc.Next() = 0; + until PostedCarteraDoc.Next() = 0; CustLedgEntry.MarkedOnly(true); CustLedgEntry.PrintBill(true); @@ -517,23 +516,21 @@ page 7000067 "Posted Bills" [Scope('OnPrem')] procedure RejectDocs() begin - CurrPage.SetSelectionFilter(PostedDoc); - if not PostedDoc.Find('=><') then + CurrPage.SetSelectionFilter(PostedCarteraDoc); + if not PostedCarteraDoc.Find('=><') then exit; - if PostedDoc.Type <> PostedDoc.Type::Receivable then - Error(Text1100005); + if PostedCarteraDoc.Type <> PostedCarteraDoc.Type::Receivable then + Error(Text1100005Err); - PostedDoc.SetRange(Status, PostedDoc.Status::Open); - if not PostedDoc.Find('-') then - Error( - Text1100006 + - Text1100001); + PostedCarteraDoc.SetRange(Status, PostedCarteraDoc.Status::Open); + if not PostedCarteraDoc.Find('-') then + Error(Text1100006Err + Text1100001Err); CustLedgEntry.Reset(); repeat - CustLedgEntry.Get(PostedDoc."Entry No."); + CustLedgEntry.Get(PostedCarteraDoc."Entry No."); CustLedgEntry.Mark(true); - until PostedDoc.Next() = 0; + until PostedCarteraDoc.Next() = 0; CustLedgEntry.MarkedOnly(true); REPORT.RunModal(REPORT::"Reject Docs.", true, false, CustLedgEntry); @@ -542,36 +539,36 @@ page 7000067 "Posted Bills" [Scope('OnPrem')] procedure RedrawDocs() begin - CurrPage.SetSelectionFilter(PostedDoc); - if not PostedDoc.Find('=><') then + CurrPage.SetSelectionFilter(PostedCarteraDoc); + if not PostedCarteraDoc.Find('=><') then exit; - PostedDoc.SetFilter(Status, '<>%1', PostedDoc.Status::Open); - if not PostedDoc.Find('-') then + PostedCarteraDoc.SetFilter(Status, '<>%1', PostedCarteraDoc.Status::Open); + if not PostedCarteraDoc.Find('-') then Error( - Text1100007 + - Text1100008); + Text1100007Err + + Text1100008Err); - PostedDoc.SetFilter("Document Type", '<>%1', PostedDoc."Document Type"::Bill); - if PostedDoc.Find('-') then - Error(Text1100009); - PostedDoc.SetRange("Document Type"); + PostedCarteraDoc.SetFilter("Document Type", '<>%1', PostedCarteraDoc."Document Type"::Bill); + if PostedCarteraDoc.Find('-') then + Error(Text1100009Err); + PostedCarteraDoc.SetRange("Document Type"); if Rec.Type = Rec.Type::Receivable then begin CustLedgEntry.Reset(); repeat - CustLedgEntry.Get(PostedDoc."Entry No."); + CustLedgEntry.Get(PostedCarteraDoc."Entry No."); CustLedgEntry.Mark(true); - until PostedDoc.Next() = 0; + until PostedCarteraDoc.Next() = 0; CustLedgEntry.MarkedOnly(true); REPORT.RunModal(REPORT::"Redraw Receivable Bills", true, false, CustLedgEntry); end else begin VendLedgEntry.Reset(); repeat - VendLedgEntry.Get(PostedDoc."Entry No."); + VendLedgEntry.Get(PostedCarteraDoc."Entry No."); VendLedgEntry.Mark(true); - until PostedDoc.Next() = 0; + until PostedCarteraDoc.Next() = 0; VendLedgEntry.MarkedOnly(true); REPORT.RunModal(REPORT::"Redraw Payable Bills", true, false, VendLedgEntry); diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/PostedCarteraDoc.Table.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/PostedCarteraDoc.Table.al similarity index 99% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/PostedCarteraDoc.Table.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/PostedCarteraDoc.Table.al index f1d2832b48b..8ecc5602506 100644 --- a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/PostedCarteraDoc.Table.al +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/PostedCarteraDoc.Table.al @@ -278,14 +278,14 @@ table 7000003 "Posted Cartera Doc." } var - Text1100000: Label 'untitled'; + UntitledLbl: Label 'untitled'; procedure Caption(): Text var BankAcc: Record "Bank Account"; begin if "Bank Account No." = '' then - exit(Text1100000); + exit(UntitledLbl); BankAcc.Get("Bank Account No."); exit(StrSubstNo(BankAcc.Name)); end; diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/PostedCarteraDocEdit.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/PostedCarteraDocEdit.Codeunit.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/PostedCarteraDocEdit.Codeunit.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/PostedCarteraDocEdit.Codeunit.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/PostedCarteraDocuments.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/PostedCarteraDocuments.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/PostedCarteraDocuments.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/PostedCarteraDocuments.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/RecDocsAnalysisFactBox.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/RecDocsAnalysisFactBox.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/RecDocsAnalysisFactBox.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/RecDocsAnalysisFactBox.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/RejectDocs.Report.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/RejectDocs.Report.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/RejectDocs.Report.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/RejectDocs.Report.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/ReportSelectionCartera.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/ReportSelectionCartera.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/ReportSelectionCartera.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/ReportSelectionCartera.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/ReportSelectionUsageCartera.Enum.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/ReportSelectionUsageCartera.Enum.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/ReportSelectionUsageCartera.Enum.al rename to src/Layers/ES/BaseApp/Local/Cartera/Finance/ReceivablesPayables/ReportSelectionUsageCartera.Enum.al diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Finance/RoleCenters/CRTAccPayablesActivities.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/RoleCenters/CRTAccPayablesActivities.PageExt.al new file mode 100644 index 00000000000..4a7e78e5b4d --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/RoleCenters/CRTAccPayablesActivities.PageExt.al @@ -0,0 +1,61 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Finance.RoleCenters; + +using Microsoft.Finance.ReceivablesPayables; +using Microsoft.Purchases.History; +using Microsoft.Purchases.Payables; + +pageextension 7000003 "CRT Acc. Payables Activities" extends "Acc. Payables Activities" +{ + layout + { + addafter("Document Approvals") + { + cuegroup(Cartera) + { + Caption = 'Cartera'; + field("Payable Documents"; Rec."Payable Documents") + { + ApplicationArea = Basic, Suite; + DrillDownPageID = "Payables Cartera Docs"; + ToolTip = 'Specifies the payables document that is associated with the bill group.'; + } + field("Posted Payable Documents"; Rec."Posted Payable Documents") + { + ApplicationArea = Basic, Suite; + DrillDownPageID = "Posted Cartera Documents"; + ToolTip = 'Specifies the payables documents that have been posted.'; + } + + actions + { + action("New Payment Order") + { + ApplicationArea = Basic, Suite; + Caption = 'New Payment Order'; + RunObject = Page "Payment Orders"; + RunPageMode = Create; + ToolTip = 'Create a new order for payables documents for submission to the bank for electronic payment.'; + } + action("Posted Payment Orders List") + { + ApplicationArea = Basic, Suite; + Caption = 'Posted Payment Orders List'; + RunObject = Page "Posted Payment Orders List"; + ToolTip = 'View posted payment orders that represent payables to submit to the bank as a file for electronic payment.'; + } + action("Posted Payment Orders Select.") + { + ApplicationArea = Basic, Suite; + Caption = 'Posted Payment Orders Select.'; + RunObject = Page "Posted Payment Orders Select."; + ToolTip = 'View or edit where ledger entries are posted when you post a payment order.'; + } + } + } + } + } +} \ No newline at end of file diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Finance/RoleCenters/CRTAccPayablesCoordRC.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/RoleCenters/CRTAccPayablesCoordRC.PageExt.al new file mode 100644 index 00000000000..d5cf4d73bf5 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/RoleCenters/CRTAccPayablesCoordRC.PageExt.al @@ -0,0 +1,98 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Finance.RoleCenters; + +using Microsoft.Finance.GeneralLedger.Journal; +using Microsoft.Purchases.History; +using Microsoft.Purchases.Payables; +using Microsoft.Purchases.Reports; + +pageextension 7000173 "CRT Acc. Payables Coord. RC" extends "Acc. Payables Coordinator RC" +{ + actions + { + addafter(Action63) + { + separator(Action1100008) + { + } + action("Vendor - Due Payments") + { + ApplicationArea = Basic, Suite; + Caption = 'Vendor - Due Payments'; + Image = "Report"; + RunObject = Report "Vendor - Due Payments"; + ToolTip = 'View a list of payments to be made to a particular vendor sorted by due date.'; + } + group("Cartera Payment Order") + { + Caption = 'Cartera Payment Order'; + action("Closed Payment Order Listing") + { + ApplicationArea = Basic, Suite; + Caption = 'Closed Payment Order Listing'; + Image = "Report"; + RunObject = Report "Closed Payment Order Listing"; + ToolTip = 'View the list of completed payment orders.'; + } + action("Posted Payment Order Listing") + { + ApplicationArea = Basic, Suite; + Caption = 'Posted Payment Order Listing'; + Image = "Report"; + RunObject = Report "Posted Payment Order Listing"; + ToolTip = 'View posted payment orders that represent payables to submit to the bank as a file for electronic payment.'; + } + action("Payment Order Listing") + { + ApplicationArea = Basic, Suite; + Caption = 'Payment Order Listing'; + Image = "Report"; + RunObject = Report "Payment Order Listing"; + ToolTip = 'View or edit payment orders that represent payables to submit to the bank as a file for electronic payment.'; + } + } + } + addafter(GeneralJournals) + { + action("Cartera Journal") + { + ApplicationArea = Basic, Suite; + Caption = 'Cartera Journal'; + RunObject = Page "General Journal Batches"; + RunPageView = where("Template Type" = const(Cartera), + Recurring = const(false)); + ToolTip = 'Prepare to post entries for Cartera documents, which are bills and invoices for customers and vendors. There are two types of bills: receivable bills and payable bills. Receivable bills are sent to a customer to be credited after their due date arrives. Payable bills are sent to a customer from a vendor in order to receive payment when the due date arrives.'; + } + } + addafter("Posted Purchase Credit Memos") + { + action("Payable Closed Cartera Docs") + { + ApplicationArea = Basic, Suite; + Caption = 'Payable Closed Cartera Docs'; + RunObject = Page "Payable Closed Cartera Docs"; + ToolTip = 'View the vendor bills and invoices that are in closed bill groups.'; + } + action("Closed Payment Orders List") + { + ApplicationArea = Basic, Suite; + Caption = 'Closed Payment Orders List'; + RunObject = Page "Closed Payment Orders List"; + ToolTip = 'View the list of completed payment orders.'; + } + } + addafter("Payment Orders List") + { + action("Posted Payment Orders List") + { + ApplicationArea = Basic, Suite; + Caption = 'Posted Payment Orders List'; + RunObject = Page "Posted Payment Orders List"; + ToolTip = 'View posted payment orders that represent payables to submit to the bank as a file for electronic payment.'; + } + } + } +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Finance/RoleCenters/CRTAccReceivableActivities.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/RoleCenters/CRTAccReceivableActivities.PageExt.al new file mode 100644 index 00000000000..8984be28f27 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/RoleCenters/CRTAccReceivableActivities.PageExt.al @@ -0,0 +1,61 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Finance.RoleCenters; + +using Microsoft.Finance.ReceivablesPayables; +using Microsoft.Sales.History; +using Microsoft.Sales.Receivables; + +pageextension 7000005 "CRT Acc. Receivable Activities" extends "Acc. Receivable Activities" +{ + layout + { + addafter("Document Approvals") + { + cuegroup(Cartera) + { + Caption = 'Cartera'; + field("Receivable Documents"; Rec."Receivable Documents") + { + ApplicationArea = Basic, Suite; + DrillDownPageID = "Receivables Cartera Docs"; + ToolTip = 'Specifies the receivables document that is associated with the bill group.'; + } + field("Posted Receivable Documents"; Rec."Posted Receivable Documents") + { + ApplicationArea = Basic, Suite; + DrillDownPageID = "Posted Cartera Documents"; + ToolTip = 'Specifies the receivables documents that have been posted.'; + } + + actions + { + action("New Bill Group") + { + ApplicationArea = Basic, Suite; + Caption = 'New Bill Group'; + RunObject = Page "Bill Groups"; + RunPageMode = Create; + ToolTip = 'Create a new group of receivables documents for submission to the bank for electronic collection.'; + } + action("Posted Bill Groups List") + { + ApplicationArea = Basic, Suite; + Caption = 'Posted Bill Groups List'; + RunObject = Page "Posted Bill Groups List"; + ToolTip = 'View the list of posted bill groups. When a bill group has been posted, the related documents are available for settlement, rejection, or recirculation.'; + } + action("Posted Bill Group Select.") + { + ApplicationArea = Basic, Suite; + Caption = 'Posted Bill Group Select.'; + RunObject = Page "Posted Bill Group Select."; + ToolTip = 'View or edit where ledger entries are posted when you post a bill group.'; + } + } + } + } + } +} \ No newline at end of file diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Finance/RoleCenters/CRTAccReceivablesAdmRC.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/RoleCenters/CRTAccReceivablesAdmRC.PageExt.al new file mode 100644 index 00000000000..220ac383673 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/RoleCenters/CRTAccReceivablesAdmRC.PageExt.al @@ -0,0 +1,142 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Finance.RoleCenters; + +using Microsoft.Bank.Reports; +using Microsoft.Sales.History; +using Microsoft.Sales.Receivables; +using Microsoft.Sales.Reports; + +pageextension 7000163 "CRT Acc. Receivables Adm. RC" extends "Acc. Receivables Adm. RC" +{ + actions + { + addafter("Customer - Due Payments") + { + group("Cartera Bill Groups") + { + Caption = 'Cartera Bill Groups'; + action("Closed Bill Group Listing") + { + ApplicationArea = Basic, Suite; + Caption = 'Closed Bill Group Listing'; + Image = "Report"; + RunObject = Report "Closed Bill Group Listing"; + ToolTip = 'View the list of completed bill groups.'; + } + action("Posted Bill Group Listing") + { + ApplicationArea = Basic, Suite; + Caption = 'Posted Bill Group Listing'; + Image = "Report"; + RunObject = Report "Posted Bill Group Listing"; + ToolTip = 'View the list of posted bill groups. When a bill group has been posted, the related documents are available for settlement, rejection, or recirculation.'; + } + action("Bill Group Listing") + { + ApplicationArea = Basic, Suite; + Caption = 'Bill Group Listing'; + Image = "Report"; + RunObject = Report "Bill Group Listing"; + ToolTip = 'View or edit a bill group. Bill groups are receivables documents that are grouped together to submit to a bank for collection. For example, you may want to group documents for the same customer or group documents with the same due date.'; + } + action("Bank - Summ. Bill Group") + { + ApplicationArea = Basic, Suite; + Caption = 'Bank - Summ. Bill Group'; + Image = "Report"; + RunObject = Report "Bank - Summ. Bill Group"; + ToolTip = 'View a detailed summary for existing bill groups.'; + } + action("Bank - Risk") + { + ApplicationArea = Basic, Suite; + Caption = 'Bank - Risk'; + Image = "Report"; + RunObject = Report "Bank - Risk"; + ToolTip = 'View the risk status for discounting bills with the selected bank.'; + } + action("Notice Assignment Credits") + { + ApplicationArea = Basic, Suite; + Caption = 'Notice Assignment Credits'; + Image = "Report"; + RunObject = Report "Notice Assignment Credits"; + ToolTip = 'Define how your company decides to administer its billing using a factoring (factor) entity. You send your customers a notification letter, telling them that it is going to assign its billing to another entity. As of that moment, the client will no longer have to pay the company, they will pay the factoring entity instead.'; + } + } + } + addafter("Sales Invoices") + { + action("Bill Groups List") + { + ApplicationArea = Basic, Suite; + Caption = 'Bill Groups List'; + RunObject = Page "Bill Groups List"; + ToolTip = 'View or edit a bill group. Bill groups are receivables documents that are grouped together to submit to a bank for collection. For example, you may want to group documents for the same customer or group documents with the same due date.'; + } + action("Posted Bill Groups List") + { + ApplicationArea = Basic, Suite; + Caption = 'Posted Bill Groups List'; + RunObject = Page "Posted Bill Groups List"; + ToolTip = 'View the list of posted bill groups. When a bill group has been posted, the related documents are available for settlement, rejection, or recirculation.'; + } + } + addafter("Posted Sales Credit Memos") + { + action("Receivable Closed Cartera Docs") + { + ApplicationArea = Basic, Suite; + Caption = 'Receivable Closed Cartera Docs'; + RunObject = Page "Receivable Closed Cartera Docs"; + ToolTip = 'View the customer bills and invoices that are in the closed bill groups.'; + } + action("Closed Bill Groups List") + { + ApplicationArea = Basic, Suite; + Caption = 'Closed Bill Groups List'; + RunObject = Page "Closed Bill Groups List"; + ToolTip = 'View the list of completed bill groups.'; + } + } + addafter("&Sales") + { + action("Bill Group") + { + ApplicationArea = Basic, Suite; + Caption = 'Bill Group'; + Image = VoucherGroup; + RunObject = Page "Bill Groups"; + ToolTip = 'View or edit a bill group. Bill groups are receivables documents that are grouped together to submit to a bank for collection. For example, you may want to group documents for the same customer or group documents with the same due date.'; + } + } + addafter("Combine Return S&hipments") + { + separator(Action1100020) + { + } + action("Posted Bill Group Select.") + { + ApplicationArea = Basic, Suite; + Caption = 'Posted Bill Group Select.'; + RunObject = Page "Posted Bill Group Select."; + ToolTip = 'View or edit where ledger entries are posted when you post a bill group.'; + } + group("Bill Group - Export Formats") + { + Caption = 'Bill Group - Export Formats'; + action("Bill Group - Export Factoring") + { + ApplicationArea = Basic, Suite; + Caption = 'Bill Group - Export Factoring'; + Image = "Report"; + RunObject = Report "Bill group - Export factoring"; + ToolTip = 'Send the factoring bill groups to a magnetic media.'; + } + } + } + } +} \ No newline at end of file diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Finance/RoleCenters/CRTAccountMgrActivities.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/RoleCenters/CRTAccountMgrActivities.PageExt.al new file mode 100644 index 00000000000..ebb4d06af42 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/RoleCenters/CRTAccountMgrActivities.PageExt.al @@ -0,0 +1,54 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Finance.RoleCenters; + +using Microsoft.Purchases.Payables; +using Microsoft.Sales.Receivables; + +pageextension 7000162 "CRT Account Mgr. Activities" extends "Account Manager Activities" +{ + layout + { + addafter("Document Approvals") + { + cuegroup(Cartera) + { + Caption = 'Cartera'; + field("Receivable Documents"; Rec."Receivable Documents") + { + ApplicationArea = Basic, Suite; + DrillDownPageID = "Receivables Cartera Docs"; + ToolTip = 'Specifies the receivables document that is associated with the bill group.'; + } + field("Payable Documents"; Rec."Payable Documents") + { + ApplicationArea = Basic, Suite; + DrillDownPageID = "Payables Cartera Docs"; + ToolTip = 'Specifies the payables document that is associated with the bill group.'; + } + + actions + { + action("New Bill Group") + { + ApplicationArea = Basic, Suite; + Caption = 'New Bill Group'; + RunObject = Page "Bill Groups"; + RunPageMode = Create; + ToolTip = 'Create a new group of receivables documents for submission to the bank for electronic collection.'; + } + action("New Payment Order") + { + ApplicationArea = Basic, Suite; + Caption = 'New Payment Order'; + RunObject = Page "Payment Orders"; + RunPageMode = Create; + ToolTip = 'Create a new order for payables documents for submission to the bank for electronic payment.'; + } + } + } + } + } +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Finance/RoleCenters/CRTAccountingMgrRoleCtr.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/RoleCenters/CRTAccountingMgrRoleCtr.PageExt.al new file mode 100644 index 00000000000..f24266b4560 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/RoleCenters/CRTAccountingMgrRoleCtr.PageExt.al @@ -0,0 +1,24 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Finance.RoleCenters; + +using Microsoft.Finance.ReceivablesPayables; + +pageextension 7000161 "CRT Accounting Mgr. Role Ctr." extends "Accounting Manager Role Center" +{ + actions + { + addafter("Cost Accounting Setup") + { + action("Cartera Setup") + { + ApplicationArea = Basic, Suite; + Caption = 'Cartera Setup'; + RunObject = Page "Cartera Setup"; + ToolTip = 'Configure your company''s policies for bill groups and payment orders.'; + } + } + } +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Finance/RoleCenters/CRTBookkeeperActivities.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/RoleCenters/CRTBookkeeperActivities.PageExt.al new file mode 100644 index 00000000000..0851a6629ba --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/RoleCenters/CRTBookkeeperActivities.PageExt.al @@ -0,0 +1,105 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Finance.RoleCenters; + +using Microsoft.Finance.ReceivablesPayables; +using Microsoft.Purchases.History; +using Microsoft.Purchases.Payables; +using Microsoft.Sales.History; +using Microsoft.Sales.Receivables; + +pageextension 7000009 "CRT Bookkeeper Activities" extends "Bookkeeper Activities" +{ + layout + { + addafter(Receivables) + { + cuegroup("Cartera Receivables") + { + Caption = 'Cartera Receivables'; + field("Receivable Documents"; Rec."Receivable Documents") + { + ApplicationArea = Basic, Suite; + DrillDownPageID = "Receivables Cartera Docs"; + ToolTip = 'Specifies the receivables document that is associated with the bill group.'; + } + field("Posted Receivable Documents"; Rec."Posted Receivable Documents") + { + ApplicationArea = Basic, Suite; + DrillDownPageID = "Posted Cartera Documents"; + ToolTip = 'Specifies the receivables documents that have been posted.'; + } + + actions + { + action("New Bill Group") + { + ApplicationArea = Basic, Suite; + Caption = 'New Bill Group'; + RunObject = Page "Bill Groups"; + RunPageMode = Create; + ToolTip = 'Create a new group of receivables documents for submission to the bank for electronic collection.'; + } + action("Posted Bill Groups List") + { + ApplicationArea = Basic, Suite; + Caption = 'Posted Bill Groups List'; + RunObject = Page "Posted Bill Groups List"; + ToolTip = 'View the list of posted bill groups. When a bill group has been posted, the related documents are available for settlement, rejection, or recirculation.'; + } + action("Posted Bill Group Select.") + { + ApplicationArea = Basic, Suite; + Caption = 'Posted Bill Group Select.'; + RunObject = Page "Posted Bill Group Select."; + ToolTip = 'View or edit where ledger entries are posted when you post a bill group.'; + } + } + } + cuegroup("Cartera Payables") + { + Caption = 'Cartera Payables'; + field("Payable Documents"; Rec."Payable Documents") + { + ApplicationArea = Basic, Suite; + DrillDownPageID = "Payables Cartera Docs"; + ToolTip = 'Specifies the payables document that is associated with the bill group.'; + } + field("Posted Payable Documents"; Rec."Posted Payable Documents") + { + ApplicationArea = Basic, Suite; + DrillDownPageID = "Posted Cartera Documents"; + ToolTip = 'Specifies the payables documents that have been posted.'; + } + + actions + { + action("New Payment Order") + { + ApplicationArea = Basic, Suite; + Caption = 'New Payment Order'; + RunObject = Page "Payment Orders"; + RunPageMode = Create; + ToolTip = 'Create a new order for payables documents for submission to the bank for electronic payment.'; + } + action("Posted Payment Orders List") + { + ApplicationArea = Basic, Suite; + Caption = 'Posted Payment Orders List'; + RunObject = Page "Posted Payment Orders List"; + ToolTip = 'View posted payment orders that represent payables to submit to the bank as a file for electronic payment.'; + } + action("Posted Payment Orders Select.") + { + ApplicationArea = Basic, Suite; + Caption = 'Posted Payment Orders Select.'; + RunObject = Page "Posted Payment Orders Select."; + ToolTip = 'View or edit where ledger entries are posted when you post a payment order.'; + } + } + } + } + } +} \ No newline at end of file diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Finance/RoleCenters/CRTBookkeeperRoleCenter.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/RoleCenters/CRTBookkeeperRoleCenter.PageExt.al new file mode 100644 index 00000000000..32f87850645 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/RoleCenters/CRTBookkeeperRoleCenter.PageExt.al @@ -0,0 +1,218 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Finance.RoleCenters; + +using Microsoft.Bank.Reports; +using Microsoft.Purchases.History; +using Microsoft.Purchases.Payables; +using Microsoft.Sales.History; +using Microsoft.Sales.Receivables; +using Microsoft.Sales.Reports; + +pageextension 7000164 "CRT Bookkeeper Role Center" extends "Bookkeeper Role Center" +{ + actions + { + addafter("Customer - Due Payments") + { + group("Cartera Bill Groups") + { + Caption = 'Cartera Bill Groups'; + action("Closed Bill Group Listing") + { + ApplicationArea = Basic, Suite; + Caption = 'Closed Bill Group Listing'; + Image = "Report"; + RunObject = Report "Closed Bill Group Listing"; + ToolTip = 'View the list of completed bill groups.'; + } + action("Posted Bill Group Listing") + { + ApplicationArea = Basic, Suite; + Caption = 'Posted Bill Group Listing'; + Image = "Report"; + RunObject = Report "Posted Bill Group Listing"; + ToolTip = 'View the list of posted bill groups. When a bill group has been posted, the related documents are available for settlement, rejection, or recirculation.'; + } + action("Bill Group Listing") + { + ApplicationArea = Basic, Suite; + Caption = 'Bill Group Listing'; + Image = "Report"; + RunObject = Report "Bill Group Listing"; + ToolTip = 'View or edit a bill group. Bill groups are receivables documents that are grouped together to submit to a bank for collection. For example, you may want to group documents for the same customer or group documents with the same due date.'; + } + action("Bank - Summ. Bill Group") + { + ApplicationArea = Basic, Suite; + Caption = 'Bank - Summ. Bill Group'; + Image = "Report"; + RunObject = Report "Bank - Summ. Bill Group"; + ToolTip = 'View a detailed summary for existing bill groups.'; + } + action("Bank - Risk") + { + ApplicationArea = Basic, Suite; + Caption = 'Bank - Risk'; + Image = "Report"; + RunObject = Report "Bank - Risk"; + ToolTip = 'View the risk status for discounting bills with the selected bank.'; + } + action("Notice Assignment Credits") + { + ApplicationArea = Basic, Suite; + Caption = 'Notice Assignment Credits'; + Image = "Report"; + RunObject = Report "Notice Assignment Credits"; + ToolTip = 'Define how your company decides to administer its billing using a factoring (factor) entity. You send your customers a notification letter, telling them that it is going to assign its billing to another entity. As of that moment, the client will no longer have to pay the company, they will pay the factoring entity instead.'; + } + } + } + addafter("Vendor - Due Payments") + { + group("Cartera Payment Orders") + { + Caption = 'Cartera Payment Orders'; + action("Closed Payment Order Listing") + { + ApplicationArea = Basic, Suite; + Caption = 'Closed Payment Order Listing'; + Image = "Report"; + RunObject = Report "Closed Payment Order Listing"; + ToolTip = 'View the list of completed payment orders.'; + } + action("Posted Payment Order Listing") + { + ApplicationArea = Basic, Suite; + Caption = 'Posted Payment Order Listing'; + Image = "Report"; + RunObject = Report "Posted Payment Order Listing"; + ToolTip = 'View posted payment orders that represent payables to submit to the bank as a file for electronic payment.'; + } + action("Payment Order Listing") + { + ApplicationArea = Basic, Suite; + Caption = 'Payment Order Listing'; + Image = "Report"; + RunObject = Report "Payment Order Listing"; + ToolTip = 'View or edit payment orders that represent payables to submit to the bank as a file for electronic payment.'; + } + } + } + addafter("Sales Orders") + { + action("Bill Groups List") + { + ApplicationArea = Basic, Suite; + Caption = 'Bill Groups List'; + RunObject = Page "Bill Groups List"; + ToolTip = 'View or edit a bill group. Bill groups are receivables documents that are grouped together to submit to a bank for collection. For example, you may want to group documents for the same customer or group documents with the same due date.'; + } + action("Posted Bill Groups List") + { + ApplicationArea = Basic, Suite; + Caption = 'Posted Bill Groups List'; + RunObject = Page "Posted Bill Groups List"; + ToolTip = 'View the list of posted bill groups. When a bill group has been posted, the related documents are available for settlement, rejection, or recirculation.'; + } + action("Payment Orders List") + { + ApplicationArea = Basic, Suite; + Caption = 'Payment Orders List'; + RunObject = Page "Payment Orders List"; + ToolTip = 'View or edit payment orders that represent payables to submit to the bank as a file for electronic payment.'; + } + action("Posted Payment Orders List") + { + ApplicationArea = Basic, Suite; + Caption = 'Posted Payment Orders List'; + RunObject = Page "Posted Payment Orders List"; + ToolTip = 'View posted payment orders that represent payables to submit to the bank as a file for electronic payment.'; + } + } + addafter("Posted Sales Credit Memos") + { + action("Receivable Closed Cartera Docs") + { + ApplicationArea = Basic, Suite; + Caption = 'Receivable Closed Cartera Docs'; + RunObject = Page "Receivable Closed Cartera Docs"; + ToolTip = 'View the customer bills and invoices that are in the closed bill groups.'; + } + action("Closed Bill Groups List") + { + ApplicationArea = Basic, Suite; + Caption = 'Closed Bill Groups List'; + RunObject = Page "Closed Bill Groups List"; + ToolTip = 'View the list of completed bill groups.'; + } + } + addafter("Posted Purchase Credit Memos") + { + action("Payable Closed Cartera Docs") + { + ApplicationArea = Basic, Suite; + Caption = 'Payable Closed Cartera Docs'; + RunObject = Page "Payable Closed Cartera Docs"; + ToolTip = 'View the vendor bills and invoices that are in closed bill groups.'; + } + action("Closed Payment Orders List") + { + ApplicationArea = Basic, Suite; + Caption = 'Closed Payment Orders List'; + RunObject = Page "Closed Payment Orders List"; + ToolTip = 'View the list of completed payment orders.'; + } + } + addafter("Sales Credit &Memo") + { + action("Bill Group") + { + ApplicationArea = Basic, Suite; + Caption = 'Bill Group'; + Image = VoucherGroup; + RunObject = Page "Bill Groups"; + ToolTip = 'View or edit a bill group. Bill groups are receivables documents that are grouped together to submit to a bank for collection. For example, you may want to group documents for the same customer or group documents with the same due date.'; + } + action("Payment Order") + { + ApplicationArea = Basic, Suite; + Caption = 'Payment Order'; + RunObject = Page "Payment Orders"; + ToolTip = 'Create a new payment order to submit payables as a file to the bank for electronic payment.'; + } + } + addafter("B&ank Account Reconciliations") + { + action("Posted Bill Group Select.") + { + ApplicationArea = Basic, Suite; + Caption = 'Posted Bill Group Select.'; + RunObject = Page "Posted Bill Group Select."; + ToolTip = 'View or edit where ledger entries are posted when you post a bill group.'; + } + group("Bill Group - Export Formats") + { + Caption = 'Bill Group - Export Formats'; + action("Payment Order - Export N34") + { + ApplicationArea = Basic, Suite; + Caption = 'Payment Order - Export N34'; + Image = "Report"; + RunObject = Report "Payment order - Export N34"; + ToolTip = 'Send the payment orders to magnetic media, following the Higher Banking Council''s (CSB) guidelines (Norm 34).'; + } + action("Bill Group - Export Factoring") + { + ApplicationArea = Basic, Suite; + Caption = 'Bill Group - Export Factoring'; + Image = "Report"; + RunObject = Report "Bill group - Export factoring"; + ToolTip = 'Send the factoring bill groups to a magnetic media.'; + } + } + } + } +} \ No newline at end of file diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Finance/RoleCenters/CRTFinanceCue.TableExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/RoleCenters/CRTFinanceCue.TableExt.al new file mode 100644 index 00000000000..5ea902982c4 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/RoleCenters/CRTFinanceCue.TableExt.al @@ -0,0 +1,40 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Finance.RoleCenters; + +using Microsoft.Finance.ReceivablesPayables; + +tableextension 7000054 "CRT Finance Cue" extends "Finance Cue" +{ + fields + { + field(7000000; "Receivable Documents"; Integer) + { + CalcFormula = count("Cartera Doc." where(Type = const(Receivable), + "Bill Gr./Pmt. Order No." = const(''))); + Caption = 'Receivable Documents'; + FieldClass = FlowField; + } + field(7000001; "Payable Documents"; Integer) + { + CalcFormula = count("Cartera Doc." where(Type = const(Payable), + "Bill Gr./Pmt. Order No." = const(''))); + Caption = 'Payable Documents'; + FieldClass = FlowField; + } + field(7000002; "Posted Receivable Documents"; Integer) + { + CalcFormula = count("Posted Cartera Doc." where(Type = const(Receivable))); + Caption = 'Posted Receivable Documents'; + FieldClass = FlowField; + } + field(7000003; "Posted Payable Documents"; Integer) + { + CalcFormula = count("Posted Cartera Doc." where(Type = const(Payable))); + Caption = 'Posted Payable Documents'; + FieldClass = FlowField; + } + } +} \ No newline at end of file diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Finance/RoleCenters/CRTFinanceManagerRC.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/RoleCenters/CRTFinanceManagerRC.PageExt.al new file mode 100644 index 00000000000..c16be2b75e5 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/RoleCenters/CRTFinanceManagerRC.PageExt.al @@ -0,0 +1,291 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Finance.RoleCenters; + +using Microsoft.Bank.Reports; +using Microsoft.Finance.ReceivablesPayables; +using Microsoft.Foundation.AuditCodes; +using Microsoft.Purchases.History; +using Microsoft.Purchases.Payables; +using Microsoft.Purchases.Reports; +using Microsoft.Sales.History; +using Microsoft.Sales.Receivables; +using Microsoft.Sales.Reports; + +pageextension 7000171 "CRT Finance Manager RC" extends "Finance Manager Role Center" +{ + actions + { + addafter("Group") + { + group("Group62") + { + Caption = 'Cartera'; + group("Group63") + { + Caption = 'Receivables'; + action("Cartera Journal") + { + ApplicationArea = Basic, Suite; + Caption = 'Cartera Journal'; + RunObject = page "Cartera Journal"; + ToolTip = 'Specifies the Cartera Journal for this bank account.'; + } + action("Receivables Docs") + { + ApplicationArea = Basic, Suite; + Caption = 'Receivables Docs'; + RunObject = page "Receivables Cartera Docs"; + ToolTip = 'Specifies the receivables documents for this bank account.'; + } + action("Bill Groups") + { + ApplicationArea = Basic, Suite; + Caption = 'Bill Groups'; + RunObject = page "Bill Groups List"; + ToolTip = 'Specifies the bill groups for this bank account.'; + } + action("Posted Bill Group Select.") + { + ApplicationArea = Basic, Suite; + Caption = 'Posted Bill Groups'; + RunObject = page "Posted Bill Groups List"; + ToolTip = 'Specifies the posted bill groups for this bank account.'; + } + action("Closed Receivables Docs") + { + ApplicationArea = Basic, Suite; + Caption = 'Closed Receivables Docs'; + RunObject = page "Receivable Closed Cartera Docs"; + ToolTip = 'Specifies the closed receivables documents for this bank account.'; + } + action("Closed Bill Groups") + { + ApplicationArea = Basic, Suite; + Caption = 'Closed Bill Groups'; + RunObject = page "Closed Bill Groups List"; + ToolTip = 'Specifies the closed bill groups for this bank account.'; + } + group("Group64") + { + Caption = 'Batch Settlement'; + action("Posted Bill &Groups") + { + ApplicationArea = Basic, Suite; + Caption = 'Posted Bill Groups (Batch)'; + RunObject = page "Posted Bill Group Select."; + ToolTip = 'Specifies the posted bill groups for this bank account.'; + } + } + } + group("Group65") + { + Caption = 'Payables'; + action("Cartera Journal1") + { + ApplicationArea = Basic, Suite; + Caption = 'Cartera Journal'; + RunObject = page "Cartera Journal"; + ToolTip = 'Specifies the Cartera Journal for this bank account.'; + } + action("Payables Docs") + { + ApplicationArea = Basic, Suite; + Caption = 'Payables Docs'; + RunObject = page "Payables Cartera Docs"; + ToolTip = 'Specifies the payables documents for this bank account.'; + } + action("Payment Orders") + { + ApplicationArea = Basic, Suite; + Caption = 'Payment Orders'; + RunObject = page "Payment Orders List"; + ToolTip = 'Specifies the payment orders for this bank account.'; + } + action("Posted Payment Orders") + { + ApplicationArea = Basic, Suite; + Caption = 'Posted Payment Orders'; + RunObject = page "Posted Payment Orders List"; + ToolTip = 'Specifies the posted payment orders for this bank account.'; + } + action("Closed Payables Docs") + { + ApplicationArea = Basic, Suite; + Caption = 'Closed Payables Docs'; + RunObject = page "Payable Closed Cartera Docs"; + ToolTip = 'Specifies the closed payables documents for this bank account.'; + } + action("Closed Payment Orders") + { + ApplicationArea = Basic, Suite; + Caption = 'Closed Payment Orders'; + RunObject = page "Closed Payment Orders List"; + ToolTip = 'Specifies the closed payment orders for this bank account.'; + } + group("Group66") + { + Caption = 'Batch Settlement'; + action("Posted Payment &Orders") + { + ApplicationArea = Basic, Suite; + Caption = 'Posted Payment Orders (Batch)'; + RunObject = page "Posted Payment Orders Select."; + ToolTip = 'Specifies the posted payment orders for this bank account.'; + } + } + } + group("Group67") + { + Caption = 'Reports'; + action("Bank - Summ. Bill Group") + { + ApplicationArea = Basic, Suite; + Caption = 'Bank - Summ. Bill Group'; + RunObject = report "Bank - Summ. Bill Group"; + ToolTip = 'Specifies the bank summary bill group for this bank account.'; + } + action("Bank - Risk") + { + ApplicationArea = Basic, Suite; + Caption = 'Bank - Risk'; + RunObject = report "Bank - Risk"; + ToolTip = 'Specifies the bank risk report for this bank account.'; + } + action("Customer - Due Payments") + { + ApplicationArea = Basic, Suite; + Caption = 'Customer - Due Payments'; + RunObject = report "Customer - Due Payments"; + ToolTip = 'Specifies the customer due payments for this bank account.'; + } + action("Payment Order Listing") + { + ApplicationArea = Basic, Suite; + Caption = 'Payment Order Listing'; + RunObject = report "Payment Order Listing"; + ToolTip = 'Specifies the payment order listing for this bank account.'; + } + action("Closed Payment Order Listing") + { + ApplicationArea = Basic, Suite; + Caption = 'Closed Payment Order Listing'; + RunObject = report "Closed Payment Order Listing"; + ToolTip = 'Specifies the closed payment order listing for this bank account.'; + } + action("Posted Payment Order Listing") + { + ApplicationArea = Basic, Suite; + Caption = 'Posted Payment Order Listing'; + RunObject = report "Posted Payment Order Listing"; + ToolTip = 'Specifies the posted payment order listing for this bank account.'; + } + action("Closed Bill Group Listing") + { + ApplicationArea = Basic, Suite; + Caption = 'Closed Bill Group Listing'; + RunObject = report "Closed Bill Group Listing"; + ToolTip = 'Specifies the closed bill group listing for this bank account.'; + } + action("Posted Bill Group Listing") + { + ApplicationArea = Basic, Suite; + Caption = 'Posted Bill Group Listing'; + RunObject = report "Posted Bill Group Listing"; + ToolTip = 'Specifies the posted bill group listing for this bank account.'; + } + action("Bill Group Listing") + { + ApplicationArea = Basic, Suite; + Caption = 'Bill Group Listing'; + RunObject = report "Bill Group Listing"; + ToolTip = 'Specifies the bill group listing for this bank account.'; + } + action("Notice Assignement Credits") + { + ApplicationArea = Basic, Suite; + Caption = 'Notice Assignement Credits'; + ToolTip = 'Specifies the notice assignment credits for this bank account.'; + RunObject = report "Notice Assignment Credits"; + } + action("Payment order - Export N34") + { + ApplicationArea = Basic, Suite; + Caption = 'Payment order - Export N34'; + ToolTip = 'Specifies the payment order export N34 for this bank account.'; + RunObject = report "Payment order - Export N34"; + } + action("PO - Export N34.1") + { + ApplicationArea = Basic, Suite; + Caption = 'PO - Export N34.1'; + ToolTip = 'Specifies the PO export N34.1 for this bank account.'; + RunObject = report "PO - Export N34.1"; + } + action("Void PO - Export") + { + ApplicationArea = Basic, Suite; + Caption = 'Void PO - Export'; + ToolTip = 'Specifies the void PO export for this bank account.'; + RunObject = report "Void PO - Export"; + } + action("Vendor - Due Payments") + { + ApplicationArea = Basic, Suite; + Caption = 'Vendor - Due Payments'; + ToolTip = 'Specifies the vendor due payments for this bank account.'; + RunObject = report "Vendor - Due Payments"; + } + action("Bill group - Export factoring") + { + ApplicationArea = Basic, Suite; + Caption = 'Bill group - Export factoring'; + ToolTip = 'Specifies the bill group export factoring for this bank account.'; + RunObject = report "Bill group - Export factoring"; + } + action("Bill group - Export factoring1") + { + ApplicationArea = Basic, Suite; + Caption = 'Bill group - Export factoring'; + RunObject = report "Bill group - Export factoring"; + ToolTip = 'Specifies the bill group export factoring for this bank account.'; + } + } + group("Group68") + { + Caption = 'Setup'; + action("Cartera Setup") + { + ApplicationArea = Basic, Suite; + Caption = 'Cartera Setup'; + ToolTip = 'Specifies the Cartera setup for this bank account.'; + RunObject = page "Cartera Setup"; + } + action("Cartera Source Code Setup") + { + ApplicationArea = Basic, Suite; + Caption = 'Cartera Source Code Setup'; + RunObject = page "Cartera Source Cd. Setup"; + ToolTip = 'Specifies the Cartera source code setup for this bank account.'; + } + action("Category Codes") + { + ApplicationArea = Basic, Suite; + Caption = 'Category Codes'; + RunObject = page "Category Codes"; + ToolTip = 'Specifies the category codes for this bank account.'; + } + action("Cartera Report Selections") + { + ApplicationArea = Basic, Suite; + Caption = 'Cartera Report Selections'; + RunObject = page "Report Selection - Cartera"; + ToolTip = 'Specifies the Cartera report selections for this bank account.'; + } + } + } + } + } +} \ No newline at end of file diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Finance/RoleCenters/CRTSBOwnerCue.TableExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/RoleCenters/CRTSBOwnerCue.TableExt.al new file mode 100644 index 00000000000..7c48a4f8b83 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/RoleCenters/CRTSBOwnerCue.TableExt.al @@ -0,0 +1,42 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.RoleCenters; + +using Microsoft.Finance.ReceivablesPayables; + +tableextension 7000091 "CRT SB Owner Cue" extends "SB Owner Cue" +{ + fields + { + field(7000000; "Receivable Documents"; Integer) + { + CalcFormula = count("Cartera Doc." where(Type = const(Receivable), + "Bill Gr./Pmt. Order No." = const(''))); + Caption = 'Receivable Documents'; + FieldClass = FlowField; + } + field(7000001; "Payable Documents"; Integer) + { + CalcFormula = count("Cartera Doc." where(Type = const(Payable), + "Bill Gr./Pmt. Order No." = const(''))); + Caption = 'Payable Documents'; + FieldClass = FlowField; + } + field(7000002; "Posted Receivable Documents"; Integer) + { + CalcFormula = count("Posted Cartera Doc." where(Type = const(Receivable), + "Bill Gr./Pmt. Order No." = const(''))); + Caption = 'Posted Receivable Documents'; + FieldClass = FlowField; + } + field(7000003; "Posted Payable Documents"; Integer) + { + CalcFormula = count("Posted Cartera Doc." where(Type = const(Payable), + "Bill Gr./Pmt. Order No." = const(''))); + Caption = 'Posted Payable Documents'; + FieldClass = FlowField; + } + } +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Finance/RoleCenters/CRTSmallBusinessOwnerAct.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/RoleCenters/CRTSmallBusinessOwnerAct.PageExt.al new file mode 100644 index 00000000000..b3d1a0068a8 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/RoleCenters/CRTSmallBusinessOwnerAct.PageExt.al @@ -0,0 +1,105 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.RoleCenters; + +using Microsoft.Finance.ReceivablesPayables; +using Microsoft.Purchases.History; +using Microsoft.Purchases.Payables; +using Microsoft.Sales.History; +using Microsoft.Sales.Receivables; + +pageextension 7000186 "CRT Small Business Owner Act." extends "Small Business Owner Act." +{ + layout + { + addlast(content) + { + cuegroup("Cartera Receivables") + { + Caption = 'Cartera Receivables'; + field("Receivable Documents"; Rec."Receivable Documents") + { + ApplicationArea = Basic, Suite; + DrillDownPageID = "Receivables Cartera Docs"; + ToolTip = 'Specifies the receivables document associated with the bill group.'; + } + field("Posted Receivable Documents"; Rec."Posted Receivable Documents") + { + ApplicationArea = Basic, Suite; + DrillDownPageID = "Posted Cartera Documents"; + ToolTip = 'Specifies the receivables documents that have been posted.'; + } + + actions + { + action("New Bill Group") + { + ApplicationArea = Basic, Suite; + Caption = 'New Bill Group'; + RunObject = Page "Bill Groups"; + RunPageMode = Create; + ToolTip = 'Create a new group of receivables documents for submission to the bank for electronic collection.'; + } + action("Posted Bill Groups List") + { + ApplicationArea = Basic, Suite; + Caption = 'Posted Bill Groups List'; + RunObject = Page "Posted Bill Groups List"; + ToolTip = 'View the list of posted bill groups. When a bill group has been posted, the related documents are available for settlement, rejection, or recirculation.'; + } + action("Posted Bill Group Select.") + { + ApplicationArea = Basic, Suite; + Caption = 'Posted Bill Group Select.'; + RunObject = Page "Posted Bill Group Select."; + ToolTip = 'View or edit where ledger entries are posted when you post a bill group.'; + } + } + } + cuegroup("Cartera Payables") + { + Caption = 'Cartera Payables'; + field("Payable Documents"; Rec."Payable Documents") + { + ApplicationArea = Basic, Suite; + DrillDownPageID = "Payables Cartera Docs"; + ToolTip = 'Specifies the payables document associated with the bill group.'; + } + field("Posted Payable Documents"; Rec."Posted Payable Documents") + { + ApplicationArea = Basic, Suite; + DrillDownPageID = "Posted Cartera Documents"; + ToolTip = 'Specifies the payables documents that have been posted.'; + } + + actions + { + action("New Payment Order") + { + ApplicationArea = Basic, Suite; + Caption = 'New Payment Order'; + RunObject = Page "Payment Orders"; + RunPageMode = Create; + ToolTip = 'Create a new order for payables documents for submission to the bank for electronic payment.'; + } + action("Posted Payment Orders List") + { + ApplicationArea = Basic, Suite; + Caption = 'Posted Payment Orders List'; + RunObject = Page "Posted Payment Orders List"; + ToolTip = 'View posted payment orders that represent payables to submit to the bank as a file for electronic payment.'; + } + action("Posted Payment Orders Select.") + { + ApplicationArea = Basic, Suite; + Caption = 'Posted Payment Orders Select.'; + RunObject = Page "Posted Payment Orders Select."; + ToolTip = 'View or edit where ledger entries are posted when you post a payment order.'; + } + } + } + } + } +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Finance/RoleCenters/CRTSmallBusinessOwnerRC.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Finance/RoleCenters/CRTSmallBusinessOwnerRC.PageExt.al new file mode 100644 index 00000000000..07709dbf77f --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Finance/RoleCenters/CRTSmallBusinessOwnerRC.PageExt.al @@ -0,0 +1,244 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.RoleCenters; + +using Microsoft.Bank.Reports; +using Microsoft.Finance.GeneralLedger.Journal; +using Microsoft.Finance.ReceivablesPayables; +using Microsoft.Purchases.History; +using Microsoft.Purchases.Payables; +using Microsoft.Sales.History; +using Microsoft.Sales.Receivables; +using Microsoft.Sales.Reports; + +pageextension 7000187 "CRT Small Business Owner RC" extends "Small Business Owner RC" +{ + actions + { + addlast(reporting) + { + group("Cartera Bill Groups") + { + Caption = 'Cartera Bill Groups'; + action("Closed Bill Group Listing") + { + ApplicationArea = Basic, Suite; + Caption = 'Closed Bill Group Listing'; + Image = "Report"; + RunObject = Report "Closed Bill Group Listing"; + ToolTip = 'View the list of completed bill groups.'; + } + action("Posted Bill Group Listing") + { + ApplicationArea = Basic, Suite; + Caption = 'Posted Bill Group Listing'; + Image = "Report"; + RunObject = Report "Posted Bill Group Listing"; + ToolTip = 'View the list of posted bill groups. When a bill group has been posted, the related documents are available for settlement, rejection, or recirculation.'; + } + action("Bill Group Listing") + { + ApplicationArea = Basic, Suite; + Caption = 'Bill Group Listing'; + Image = "Report"; + RunObject = Report "Bill Group Listing"; + ToolTip = 'View or edit a bill group. Bill groups are receivables documents that are grouped together to submit to a bank for collection. For example, you may want to group documents for the same customer or group documents with the same due date.'; + } + } + action("Bank - Summ. Bill Group") + { + ApplicationArea = Basic, Suite; + Caption = 'Bank - Summ. Bill Group'; + Image = "Report"; + RunObject = Report "Bank - Summ. Bill Group"; + ToolTip = 'View a detailed summary for existing bill groups.'; + } + action("Bank - Risk") + { + ApplicationArea = Basic, Suite; + Caption = 'Bank - Risk'; + Image = "Report"; + RunObject = Report "Bank - Risk"; + ToolTip = 'View the risk status for discounting bills with the selected bank.'; + } + action("Notice Assignment Credits") + { + ApplicationArea = Basic, Suite; + Caption = 'Notice Assignment Credits'; + Image = "Report"; + RunObject = Report "Notice Assignment Credits"; + ToolTip = 'Define how your company decides to administer its billing using a factoring (factor) entity. You send your customers a notification letter, telling them that it is going to assign its billing to another entity. As of that moment, the client will no longer have to pay the company, they will pay the factoring entity instead.'; + } + separator(Action1100023) + { + } + group("Cartera Payment Orders") + { + Caption = 'Cartera Payment Orders'; + action("Closed Payment Order Listing") + { + ApplicationArea = Basic, Suite; + Caption = 'Closed Payment Order Listing'; + Image = "Report"; + RunObject = Report "Closed Payment Order Listing"; + ToolTip = 'View the list of completed payment orders.'; + } + action("Posted Payment Order Listing") + { + ApplicationArea = Basic, Suite; + Caption = 'Posted Payment Order Listing'; + Image = "Report"; + RunObject = Report "Posted Payment Order Listing"; + ToolTip = 'View posted payment orders that represent payables to submit to the bank as a file for electronic payment.'; + } + action("Payment Order Listing") + { + ApplicationArea = Basic, Suite; + Caption = 'Payment Order Listing'; + Image = "Report"; + RunObject = Report "Payment Order Listing"; + ToolTip = 'View or edit payment orders that represent payables to submit to the bank as a file for electronic payment.'; + } + } + } + addafter("Sales Orders") + { + action("Bill Groups List") + { + ApplicationArea = Basic, Suite; + Caption = 'Bill Groups List'; + RunObject = Page "Bill Groups List"; + ToolTip = 'View or edit a bill group. Bill groups are receivables documents that are grouped together to submit to a bank for collection. For example, you may want to group documents for the same customer or group documents with the same due date.'; + } + action("Posted Bill Groups List") + { + ApplicationArea = Basic, Suite; + Caption = 'Posted Bill Groups List'; + RunObject = Page "Posted Bill Groups List"; + ToolTip = 'View the list of posted bill groups. When a bill group has been posted, the related documents are available for settlement, rejection, or recirculation.'; + } + } + addafter("Purchase Orders") + { + action("Payment Orders List") + { + ApplicationArea = Basic, Suite; + Caption = 'Payment Orders List'; + RunObject = Page "Payment Orders List"; + ToolTip = 'View or edit payment orders that represent payables to submit to the bank as a file for electronic payment.'; + } + action("Posted Payment Orders List") + { + ApplicationArea = Basic, Suite; + Caption = 'Posted Payment Orders List'; + RunObject = Page "Posted Payment Orders List"; + ToolTip = 'View posted payment orders that represent payables to submit to the bank as a file for electronic payment.'; + } + } + addlast(Journals) + { + action("Cartera Journal") + { + ApplicationArea = Basic, Suite; + Caption = 'Cartera Journal'; + RunObject = Page "General Journal Batches"; + RunPageView = where("Template Type" = const(Cartera)); + ToolTip = 'Prepare to post entries for Cartera documents, which are bills and invoices for customers and vendors. There are two types of bills: receivable bills and payable bills. Receivable bills are sent to a customer to be credited after their due date arrives. Payable bills are sent to a customer from a vendor in order to receive payment when the due date arrives.'; + } + } + addafter("Posted Sales Credit Memos") + { + action("Receivable Closed Cartera Docs") + { + ApplicationArea = Basic, Suite; + Caption = 'Receivable Closed Cartera Docs'; + RunObject = Page "Receivable Closed Cartera Docs"; + ToolTip = 'View the customer bills and invoices that are in the closed bill groups.'; + } + action("Closed Bill Groups List") + { + ApplicationArea = Basic, Suite; + Caption = 'Closed Bill Groups List'; + RunObject = Page "Closed Bill Groups List"; + ToolTip = 'View the list of completed bill groups.'; + } + } + addafter("Posted Purchase Credit Memos") + { + action("Payable Closed Cartera Docs") + { + ApplicationArea = Basic, Suite; + Caption = 'Payable Closed Cartera Docs'; + RunObject = Page "Payable Closed Cartera Docs"; + ToolTip = 'View the vendor bills and invoices that are in closed bill groups.'; + } + action("Closed Payment Orders List") + { + ApplicationArea = Basic, Suite; + Caption = 'Closed Payment Orders List'; + RunObject = Page "Closed Payment Orders List"; + ToolTip = 'View the list of completed payment orders.'; + } + } + addafter("Sales Credit &Memo") + { + action("Bill Group") + { + ApplicationArea = Basic, Suite; + Caption = 'Bill Group'; + Image = VoucherGroup; + RunObject = Page "Bill Groups"; + ToolTip = 'View or edit a bill group. Bill groups are receivables documents that are grouped together to submit to a bank for collection. For example, you may want to group documents for the same customer or group documents with the same due date.'; + } + action("Payment Order") + { + ApplicationArea = Basic, Suite; + Caption = 'Payment Order'; + RunObject = Page "Payment Orders"; + ToolTip = 'Create a new payment order to submit payables as a file to the bank for electronic payment.'; + } + } + addafter("&Bank Account Reconciliation") + { + action("Posted Bill Group Select.") + { + ApplicationArea = Basic, Suite; + Caption = 'Posted Bill Group Select.'; + RunObject = Page "Posted Bill Group Select."; + ToolTip = 'View or edit where ledger entries are posted when you post a bill group.'; + } + group("Bill Group - Export Formats") + { + Caption = 'Bill Group - Export Formats'; + action("Payment Order - Export N34") + { + ApplicationArea = Basic, Suite; + Caption = 'Payment Order - Export N34'; + Image = "Report"; + RunObject = Report "Payment order - Export N34"; + ToolTip = 'Send the payment orders to magnetic media, following the Higher Banking Council''s (CSB) guidelines (Norm 34).'; + } + action("Bill Group - Export Factoring") + { + ApplicationArea = Basic, Suite; + Caption = 'Bill Group - Export Factoring'; + Image = "Report"; + RunObject = Report "Bill group - Export factoring"; + ToolTip = 'Send the factoring bill groups to a magnetic media.'; + } + } + } + addafter("S&ales && Receivables Setup") + { + action("Cartera Setup") + { + ApplicationArea = Basic, Suite; + Caption = 'Cartera Setup'; + RunObject = Page "Cartera Setup"; + ToolTip = 'Configure your company''s policies for bill groups and payment orders.'; + } + } + } +} diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/CompanyInitializeCartera.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Foundation/Company/CompanyInitializeCartera.Codeunit.al similarity index 79% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/CompanyInitializeCartera.Codeunit.al rename to src/Layers/ES/BaseApp/Local/Cartera/Foundation/Company/CompanyInitializeCartera.Codeunit.al index cf1f547206e..961c004d4ea 100644 --- a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/CompanyInitializeCartera.Codeunit.al +++ b/src/Layers/ES/BaseApp/Local/Cartera/Foundation/Company/CompanyInitializeCartera.Codeunit.al @@ -5,6 +5,7 @@ namespace Microsoft.Finance.ReceivablesPayables; using Microsoft.Foundation.AuditCodes; +using Microsoft.Foundation.Company; using Microsoft.Purchases.History; using Microsoft.Purchases.Payables; using Microsoft.Sales.History; @@ -15,13 +16,6 @@ codeunit 7000010 "Company-Initialize Cartera" trigger OnRun() begin - if not CarteraSetup.FindFirst() then begin - CarteraSetup.Init(); - CarteraSetup.Insert(); - end; - - InsertSourceCode(SourceCodeSetup."Cartera Journal", Text1100000, Text1100001); - if not CarteraReportSelection.FindFirst() then begin InsertBGPORepSelection(CarteraReportSelection.Usage::"Bill Group", '1', REPORT::"Bill Group Listing"); InsertBGPORepSelection(CarteraReportSelection.Usage::"Posted Bill Group", '1', REPORT::"Posted Bill Group Listing"); @@ -36,20 +30,24 @@ codeunit 7000010 "Company-Initialize Cartera" end; var - Text1100000: Label 'CARJNL'; CarteraSetup: Record "Cartera Setup"; - SourceCode: Record "Source Code"; - SourceCodeSetup: Record "Source Code Setup"; CarteraReportSelection: Record "Cartera Report Selections"; - Text1100001: Label 'Cartera Journal'; + CARJNLTok: Label 'CARJNL'; + CarteraJournalLbl: Label 'Cartera Journal'; + + [EventSubscriber(ObjectType::Codeunit, Codeunit::"Company-Initialize", 'OnAfterInitSetupTables', '', true, false)] + local procedure OnAfterInitSetupTables() + begin + if not CarteraSetup.FindFirst() then begin + CarteraSetup.Init(); + CarteraSetup.Insert(); + end; + end; - local procedure InsertSourceCode(var SourceCodeDefCode: Code[10]; "Code": Code[10]; Description: Text[50]) + [EventSubscriber(ObjectType::Codeunit, Codeunit::"Company-Initialize", 'OnBeforeSourceCodeSetupInsert', '', true, false)] + local procedure OnBeforeSourceCodeSetupInsert(var SourceCodeSetup: Record "Source Code Setup"; sender: Codeunit "Company-Initialize") begin - SourceCodeDefCode := Code; - SourceCode.Init(); - SourceCode.Code := Code; - SourceCode.Description := Description; - if SourceCode.Insert() then; + sender.InsertSourceCode(SourceCodeSetup."Cartera Journal", CARJNLTok, CarteraJournalLbl); end; local procedure InsertBGPORepSelection(ReportUsage: Enum "Report Selection Usage Cartera"; Sequence: Code[10]; ReportID: Integer) diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Foundation/Navigate/CRTNavigate.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Foundation/Navigate/CRTNavigate.PageExt.al new file mode 100644 index 00000000000..4637d72c8f8 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Foundation/Navigate/CRTNavigate.PageExt.al @@ -0,0 +1,45 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Foundation.Navigate; + +pageextension 7000116 "CRTNavigate" extends Navigate +{ + layout + { + addafter(DocNoFilter) + { + field(CarteraDocNoFilter; CarteraDocNoFilter) + { + ApplicationArea = Basic, Suite; + Caption = 'Bill No.'; + ToolTip = 'Specifies the number of the bill.'; + + trigger OnValidate() + begin + SetPostingDate(PostingDateFilter); + ContactType := ContactType::" "; + ContactNo := ''; + ExtDocNo := ''; + CRTNavigateCartera.SetCarteraDocNoFilter(CarteraDocNoFilter); + ClearSourceInfo(); + end; + } + } + } + + trigger OnOpenPage() + begin + CRTNavigateCartera.SetCarteraDocNoFilter(CarteraDocNoFilter); + end; + + trigger OnClosePage() + begin + CRTNavigateCartera.SetCarteraDocNoFilter(''); + end; + + var + CRTNavigateCartera: Codeunit "CRTNavigateCartera"; + CarteraDocNoFilter: Text[250]; +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Foundation/Navigate/CRTNavigateCartera.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Foundation/Navigate/CRTNavigateCartera.Codeunit.al new file mode 100644 index 00000000000..3611f663486 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Foundation/Navigate/CRTNavigateCartera.Codeunit.al @@ -0,0 +1,293 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Foundation.Navigate; + +using Microsoft.Bank.Check; +using Microsoft.Bank.Ledger; +using Microsoft.Finance.GeneralLedger.Ledger; +using Microsoft.Finance.ReceivablesPayables; +using Microsoft.Finance.VAT.Ledger; +using Microsoft.FixedAssets.Insurance; +using Microsoft.FixedAssets.Ledger; +using Microsoft.FixedAssets.Maintenance; +using Microsoft.Projects.Project.Ledger; +using Microsoft.Projects.Resources.Ledger; +using Microsoft.Purchases.History; +using Microsoft.Purchases.Payables; +using Microsoft.Sales.History; +using Microsoft.Sales.Receivables; + +codeunit 7000115 "CRTNavigateCartera" +{ + SingleInstance = true; + + var + CarteraDocNoFilter: Text[250]; + + procedure SetCarteraDocNoFilter(NewCarteraDocNoFilter: Text[250]) + begin + CarteraDocNoFilter := NewCarteraDocNoFilter; + end; + + local procedure IsCarteraFilterActive(): Boolean + begin + exit(CarteraDocNoFilter <> ''); + end; + + local procedure RemoveDocumentEntry(var TempDocumentEntry: Record "Document Entry" temporary; TableId: Integer) + begin + TempDocumentEntry.SetRange("Table ID", TableId); + TempDocumentEntry.DeleteAll(); + TempDocumentEntry.SetRange("Table ID"); + end; + + local procedure HasDocumentEntry(var TempDocumentEntry: Record "Document Entry" temporary; TableId: Integer): Boolean + begin + TempDocumentEntry.SetRange("Table ID", TableId); + exit(not TempDocumentEntry.IsEmpty()); + end; + + local procedure AddCarteraDocsByType(var TempDocumentEntry: Record "Document Entry" temporary; DocNoFilter: Text; PostingDateFilter: Text; AccountType: Option Receivable,Payable) + var + CarteraDoc: Record "Cartera Doc."; + PostedCarteraDoc: Record "Posted Cartera Doc."; + ClosedCarteraDoc: Record "Closed Cartera Doc."; + begin + if (DocNoFilter = '') and (PostingDateFilter = '') and (CarteraDocNoFilter = '') then + exit; + + if CarteraDoc.ReadPermission() then begin + CarteraDoc.Reset(); + CarteraDoc.SetCurrentKey(Type, "Original Document No."); + CarteraDoc.SetFilter("Original Document No.", DocNoFilter); + CarteraDoc.SetFilter("No.", CarteraDocNoFilter); + CarteraDoc.SetFilter("Posting Date", PostingDateFilter); + CarteraDoc.SetRange(Type, AccountType); + TempDocumentEntry.InsertIntoDocEntry(Database::"Cartera Doc.", CarteraDoc.TableCaption(), CarteraDoc.Count()); + end; + + if PostedCarteraDoc.ReadPermission() then begin + PostedCarteraDoc.Reset(); + PostedCarteraDoc.SetCurrentKey(Type, "Original Document No."); + PostedCarteraDoc.SetFilter("Original Document No.", DocNoFilter); + PostedCarteraDoc.SetFilter("No.", CarteraDocNoFilter); + PostedCarteraDoc.SetFilter("Posting Date", PostingDateFilter); + TempDocumentEntry.InsertIntoDocEntry(Database::"Posted Cartera Doc.", PostedCarteraDoc.TableCaption(), PostedCarteraDoc.Count()); + end; + + if ClosedCarteraDoc.ReadPermission() then begin + ClosedCarteraDoc.Reset(); + ClosedCarteraDoc.SetCurrentKey(Type, "Original Document No."); + ClosedCarteraDoc.SetFilter("Original Document No.", DocNoFilter); + ClosedCarteraDoc.SetFilter("No.", CarteraDocNoFilter); + ClosedCarteraDoc.SetFilter("Posting Date", PostingDateFilter); + ClosedCarteraDoc.SetRange(Type, AccountType); + TempDocumentEntry.InsertIntoDocEntry(Database::"Closed Cartera Doc.", ClosedCarteraDoc.TableCaption(), ClosedCarteraDoc.Count()); + end; + end; + + [EventSubscriber(ObjectType::Page, Page::Navigate, 'OnFindCustEntriesOnAfterSetFilters', '', true, false)] + local procedure OnFindCustEntriesOnAfterSetFilters(var CustLedgerEntry: Record "Cust. Ledger Entry") + begin + if IsCarteraFilterActive() then + CustLedgerEntry.SetFilter("Bill No.", CarteraDocNoFilter); + end; + + [EventSubscriber(ObjectType::Page, Page::Navigate, 'OnFindCustEntriesOnAfterDtldCustLedgEntriesSetFilters', '', true, false)] + local procedure OnFindCustEntriesOnAfterDtldCustLedgEntriesSetFilters(var DetailedCustLedgEntry: Record "Detailed Cust. Ledg. Entry") + begin + if IsCarteraFilterActive() then + DetailedCustLedgEntry.SetFilter("Bill No.", CarteraDocNoFilter); + end; + + [EventSubscriber(ObjectType::Page, Page::Navigate, 'OnFindVendEntriesOnAfterSetFilters', '', true, false)] + local procedure OnFindVendEntriesOnAfterSetFilters(var VendorLedgerEntry: Record "Vendor Ledger Entry") + begin + if IsCarteraFilterActive() then + VendorLedgerEntry.SetFilter("Bill No.", CarteraDocNoFilter); + end; + + [EventSubscriber(ObjectType::Page, Page::Navigate, 'OnFindVendEntriesOnAfterDtldVendLedgEntriesSetFilters', '', true, false)] + local procedure OnFindVendEntriesOnAfterDtldVendLedgEntriesSetFilters(var DetailedVendorLedgEntry: Record "Detailed Vendor Ledg. Entry") + begin + if IsCarteraFilterActive() then + DetailedVendorLedgEntry.SetFilter("Bill No.", CarteraDocNoFilter); + end; + + [EventSubscriber(ObjectType::Page, Page::Navigate, 'OnFindBankEntriesOnAfterSetFilters', '', true, false)] + local procedure OnFindBankEntriesOnAfterSetFilters(var BankAccountLedgerEntry: Record "Bank Account Ledger Entry") + begin + if IsCarteraFilterActive() then + BankAccountLedgerEntry.SetFilter("Bill No.", CarteraDocNoFilter); + end; + + [EventSubscriber(ObjectType::Page, Page::Navigate, 'OnFindGLEntriesOnAfterSetFilters', '', true, false)] + local procedure OnFindGLEntriesOnAfterSetFilters(var GLEntry: Record "G/L Entry") + begin + if IsCarteraFilterActive() then + GLEntry.SetFilter("Bill No.", CarteraDocNoFilter); + end; + + [EventSubscriber(ObjectType::Page, Page::Navigate, 'OnAfterFindLedgerEntries', '', true, false)] + local procedure OnAfterFindLedgerEntries(var DocumentEntry: Record "Document Entry"; DocNoFilter: Text; PostingDateFilter: Text) + begin + if HasDocumentEntry(DocumentEntry, Database::"Cust. Ledger Entry") then + AddCarteraDocsByType(DocumentEntry, DocNoFilter, PostingDateFilter, 0); + + if HasDocumentEntry(DocumentEntry, Database::"Vendor Ledger Entry") then + AddCarteraDocsByType(DocumentEntry, DocNoFilter, PostingDateFilter, 1); + + DocumentEntry.SetRange("Table ID"); + + if not IsCarteraFilterActive() then + exit; + + RemoveDocumentEntry(DocumentEntry, Database::"No Taxable Entry"); + RemoveDocumentEntry(DocumentEntry, Database::"Check Ledger Entry"); + RemoveDocumentEntry(DocumentEntry, Database::"VAT Entry"); + RemoveDocumentEntry(DocumentEntry, Database::"FA Ledger Entry"); + RemoveDocumentEntry(DocumentEntry, Database::"Maintenance Ledger Entry"); + RemoveDocumentEntry(DocumentEntry, Database::"Ins. Coverage Ledger Entry"); + RemoveDocumentEntry(DocumentEntry, Database::"Res. Ledger Entry"); + RemoveDocumentEntry(DocumentEntry, Database::"Job Ledger Entry"); + end; + + [EventSubscriber(ObjectType::Page, Page::Navigate, 'OnAfterFindPostedDocuments', '', true, false)] + local procedure OnAfterFindPostedDocuments(var DocNoFilter: Text; var PostingDateFilter: Text; var DocumentEntry: Record "Document Entry") + var + PostedBillGr: Record "Posted Bill Group"; + ClosedBillGr: Record "Closed Bill Group"; + PostedPmtOrd: Record "Posted Payment Order"; + ClosedPmtOrd: Record "Closed Payment Order"; + begin + if (DocNoFilter <> '') or (PostingDateFilter <> '') then + if not IsCarteraFilterActive() then begin + if PostedBillGr.ReadPermission() then begin + PostedBillGr.Reset(); + PostedBillGr.SetCurrentKey("No."); + PostedBillGr.SetFilter("No.", DocNoFilter); + PostedBillGr.SetFilter("Posting Date", PostingDateFilter); + DocumentEntry.InsertIntoDocEntry(Database::"Posted Bill Group", PostedBillGr.TableCaption(), PostedBillGr.Count()); + end; + + if ClosedBillGr.ReadPermission() then begin + ClosedBillGr.Reset(); + ClosedBillGr.SetCurrentKey("No."); + ClosedBillGr.SetFilter("No.", DocNoFilter); + ClosedBillGr.SetFilter("Posting Date", PostingDateFilter); + DocumentEntry.InsertIntoDocEntry(Database::"Closed Bill Group", ClosedBillGr.TableCaption(), ClosedBillGr.Count()); + end; + + if PostedPmtOrd.ReadPermission() then begin + PostedPmtOrd.Reset(); + PostedPmtOrd.SetCurrentKey("No."); + PostedPmtOrd.SetFilter("No.", DocNoFilter); + PostedPmtOrd.SetFilter("Posting Date", PostingDateFilter); + DocumentEntry.InsertIntoDocEntry(Database::"Posted Payment Order", PostedPmtOrd.TableCaption(), PostedPmtOrd.Count()); + end; + + if ClosedPmtOrd.ReadPermission() then begin + ClosedPmtOrd.Reset(); + ClosedPmtOrd.SetCurrentKey("No."); + ClosedPmtOrd.SetFilter("No.", DocNoFilter); + ClosedPmtOrd.SetFilter("Posting Date", PostingDateFilter); + DocumentEntry.InsertIntoDocEntry(Database::"Closed Payment Order", ClosedPmtOrd.TableCaption(), ClosedPmtOrd.Count()); + end; + end; + + if not IsCarteraFilterActive() then + exit; + + RemoveDocumentEntry(DocumentEntry, Database::"Purch. Rcpt. Header"); + RemoveDocumentEntry(DocumentEntry, Database::"Purch. Inv. Header"); + end; + + [EventSubscriber(ObjectType::Page, Page::Navigate, 'OnFindExtRecordsOnBeforeFormUpdate', '', true, false)] + local procedure OnFindExtRecordsOnBeforeFormUpdate(var Rec: Record "Document Entry"; var SalesInvHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header") + begin + if not IsCarteraFilterActive() then + exit; + + RemoveDocumentEntry(Rec, Database::"Sales Invoice Header"); + RemoveDocumentEntry(Rec, Database::"Sales Cr.Memo Header"); + end; + + [EventSubscriber(ObjectType::Page, Page::Navigate, 'OnBeforeShowRecords', '', true, false)] + local procedure OnBeforeShowRecords(var TempDocumentEntry: Record "Document Entry" temporary; DocNoFilter: Text; PostingDateFilter: Text; ItemTrackingSearch: Boolean; ContactNo: Code[250]; ExtDocNo: Code[250]; var IsHandled: Boolean) + var + CarteraDoc: Record "Cartera Doc."; + PostedCarteraDoc: Record "Posted Cartera Doc."; + ClosedCarteraDoc: Record "Closed Cartera Doc."; + PostedBillGr: Record "Posted Bill Group"; + ClosedBillGr: Record "Closed Bill Group"; + PostedPmtOrd: Record "Posted Payment Order"; + ClosedPmtOrd: Record "Closed Payment Order"; + begin + if ItemTrackingSearch then + exit; + + case TempDocumentEntry."Table ID" of + Database::"Cartera Doc.": + begin + CarteraDoc.SetCurrentKey(Type, "Original Document No."); + CarteraDoc.SetFilter("Original Document No.", DocNoFilter); + CarteraDoc.SetFilter("No.", CarteraDocNoFilter); + CarteraDoc.SetFilter("Posting Date", PostingDateFilter); + Page.Run(0, CarteraDoc); + IsHandled := true; + end; + Database::"Posted Cartera Doc.": + begin + PostedCarteraDoc.SetCurrentKey(Type, "Original Document No."); + PostedCarteraDoc.SetFilter("Original Document No.", DocNoFilter); + PostedCarteraDoc.SetFilter("No.", CarteraDocNoFilter); + PostedCarteraDoc.SetFilter("Posting Date", PostingDateFilter); + Page.Run(0, PostedCarteraDoc); + IsHandled := true; + end; + Database::"Closed Cartera Doc.": + begin + ClosedCarteraDoc.SetCurrentKey(Type, "Original Document No."); + ClosedCarteraDoc.SetFilter("Original Document No.", DocNoFilter); + ClosedCarteraDoc.SetFilter("No.", CarteraDocNoFilter); + ClosedCarteraDoc.SetFilter("Posting Date", PostingDateFilter); + Page.Run(0, ClosedCarteraDoc); + IsHandled := true; + end; + Database::"Posted Bill Group": + begin + PostedBillGr.SetCurrentKey("No."); + PostedBillGr.SetFilter("No.", DocNoFilter); + PostedBillGr.SetFilter("Posting Date", PostingDateFilter); + Page.Run(0, PostedBillGr); + IsHandled := true; + end; + Database::"Closed Bill Group": + begin + ClosedBillGr.SetCurrentKey("No."); + ClosedBillGr.SetFilter("No.", DocNoFilter); + ClosedBillGr.SetFilter("Posting Date", PostingDateFilter); + Page.Run(0, ClosedBillGr); + IsHandled := true; + end; + Database::"Posted Payment Order": + begin + PostedPmtOrd.SetCurrentKey("No."); + PostedPmtOrd.SetFilter("No.", DocNoFilter); + PostedPmtOrd.SetFilter("Posting Date", PostingDateFilter); + Page.Run(0, PostedPmtOrd); + IsHandled := true; + end; + Database::"Closed Payment Order": + begin + ClosedPmtOrd.SetCurrentKey("No."); + ClosedPmtOrd.SetFilter("No.", DocNoFilter); + ClosedPmtOrd.SetFilter("Posting Date", PostingDateFilter); + Page.Run(0, ClosedPmtOrd); + IsHandled := true; + end; + end; + end; +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Permissions/CRTBankAccountsView.PermissionSetExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Permissions/CRTBankAccountsView.PermissionSetExt.al new file mode 100644 index 00000000000..2d579bd7199 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Permissions/CRTBankAccountsView.PermissionSetExt.al @@ -0,0 +1,24 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace System.Security.AccessControl; + +using Microsoft.Finance.ReceivablesPayables; +using Microsoft.Purchases.History; +using Microsoft.Purchases.Payables; +using Microsoft.Sales.History; +using Microsoft.Sales.Receivables; + +permissionsetextension 7000103 "CRT Bank Accounts - View" extends "Bank Accounts - View" +{ + Permissions = tabledata "Bill Group" = R, + tabledata "Cartera Doc." = R, + tabledata "Closed Bill Group" = R, + tabledata "Closed Cartera Doc." = R, + tabledata "Closed Payment Order" = R, + tabledata "Payment Order" = R, + tabledata "Posted Bill Group" = R, + tabledata "Posted Cartera Doc." = R, + tabledata "Posted Payment Order" = R; +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Permissions/CRTGLJournalsEdit.PermissionSetExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Permissions/CRTGLJournalsEdit.PermissionSetExt.al new file mode 100644 index 00000000000..decba6b6474 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Permissions/CRTGLJournalsEdit.PermissionSetExt.al @@ -0,0 +1,24 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace System.Security.AccessControl; + +using Microsoft.Finance.ReceivablesPayables; +using Microsoft.Purchases.History; +using Microsoft.Purchases.Payables; +using Microsoft.Sales.History; +using Microsoft.Sales.Receivables; + +permissionsetextension 7000104 "CRT GL Journals - Edit" extends "General Ledger Journals - Edit" +{ + Permissions = tabledata "Bill Group" = R, + tabledata "Cartera Doc." = R, + tabledata "Closed Bill Group" = R, + tabledata "Closed Cartera Doc." = R, + tabledata "Closed Payment Order" = R, + tabledata "Payment Order" = R, + tabledata "Posted Bill Group" = R, + tabledata "Posted Cartera Doc." = R, + tabledata "Posted Payment Order" = R; +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Permissions/CRTGlobalDimMgt.PermissionSetExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Permissions/CRTGlobalDimMgt.PermissionSetExt.al new file mode 100644 index 00000000000..7e145bb87d0 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Permissions/CRTGlobalDimMgt.PermissionSetExt.al @@ -0,0 +1,14 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace System.Security.AccessControl; + +using Microsoft.Finance.ReceivablesPayables; + +permissionsetextension 7000102 "CRT GLOBAL DIM MGT" extends "D365 GLOBAL DIM MGT" +{ + Permissions = tabledata "Cartera Doc." = RM, + tabledata "Closed Cartera Doc." = RM, + tabledata "Posted Cartera Doc." = RM; +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Permissions/CRTLOCAL.PermissionSetExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Permissions/CRTLOCAL.PermissionSetExt.al new file mode 100644 index 00000000000..91b7c154fc6 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Permissions/CRTLOCAL.PermissionSetExt.al @@ -0,0 +1,36 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace System.Security.AccessControl; + +using Microsoft.Finance.ReceivablesPayables; +using Microsoft.Purchases.History; +using Microsoft.Purchases.Payables; +using Microsoft.Sales.History; +using Microsoft.Sales.Receivables; + +permissionsetextension 7000100 "CRT LOCAL" extends "LOCAL" +{ + Permissions = tabledata "BG/PO Comment Line" = RIMD, + tabledata "BG/PO Post. Buffer" = RIMD, + tabledata "Bill Group" = RIMD, + tabledata "Cartera Doc." = RIMd, + tabledata "Cartera Report Selections" = RIMD, + tabledata "Cartera Setup" = RIMD, + tabledata "Closed Bill Group" = RIMd, + tabledata "Closed Cartera Doc." = RIMd, + tabledata "Closed Payment Order" = RIMd, + tabledata "Customer Rating" = RIMD, + tabledata "Doc. Post. Buffer" = RIMD, + tabledata "Fee Range" = RIMD, + tabledata Installment = RIMD, + tabledata "Non-Payment Period" = RIMD, + tabledata "Operation Fee" = RIMD, + tabledata "Payment Day" = RIMD, + tabledata "Payment Order" = RIMD, + tabledata "Posted Bill Group" = RIMd, + tabledata "Posted Cartera Doc." = RIMd, + tabledata "Posted Payment Order" = RIMd, + tabledata Suffix = RIMD; +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Permissions/CRTLOCALREAD.PermissionSetExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Permissions/CRTLOCALREAD.PermissionSetExt.al new file mode 100644 index 00000000000..a4fc8362364 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Permissions/CRTLOCALREAD.PermissionSetExt.al @@ -0,0 +1,36 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace System.Security.AccessControl; + +using Microsoft.Finance.ReceivablesPayables; +using Microsoft.Purchases.History; +using Microsoft.Purchases.Payables; +using Microsoft.Sales.History; +using Microsoft.Sales.Receivables; + +permissionsetextension 7000101 "CRT LOCAL READ" extends "LOCAL READ" +{ + Permissions = tabledata "BG/PO Comment Line" = R, + tabledata "BG/PO Post. Buffer" = R, + tabledata "Bill Group" = R, + tabledata "Cartera Doc." = R, + tabledata "Cartera Report Selections" = R, + tabledata "Cartera Setup" = R, + tabledata "Closed Bill Group" = R, + tabledata "Closed Cartera Doc." = R, + tabledata "Closed Payment Order" = R, + tabledata "Customer Rating" = R, + tabledata "Doc. Post. Buffer" = R, + tabledata "Fee Range" = R, + tabledata Installment = R, + tabledata "Non-Payment Period" = R, + tabledata "Operation Fee" = R, + tabledata "Payment Day" = R, + tabledata "Payment Order" = R, + tabledata "Posted Bill Group" = R, + tabledata "Posted Cartera Doc." = R, + tabledata "Posted Payment Order" = R, + tabledata Suffix = R; +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Document/CRTPurchaseCreditMemo.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Document/CRTPurchaseCreditMemo.PageExt.al new file mode 100644 index 00000000000..79858656d2f --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Document/CRTPurchaseCreditMemo.PageExt.al @@ -0,0 +1,31 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Purchases.Document; + +using Microsoft.Purchases.Payables; + +pageextension 7000172 "CRT Purchase Credit Memo" extends "Purchase Credit Memo" +{ + layout + { + addafter("Applies-to Doc. No.") + { + field("Applies-to Bill No."; Rec."Applies-to Bill No.") + { + ApplicationArea = Basic, Suite; + ToolTip = 'Specifies if you want to settle an open payable bill with a credit memo from a vendor.'; + } + } + addafter(Control1904651607) + { + part(Control1903433907; "Cartera Payables Statistics FB") + { + ApplicationArea = Basic, Suite; + SubPageLink = "No." = field("Pay-to Vendor No."); + Visible = true; + } + } + } +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Document/CRTPurchaseInvoice.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Document/CRTPurchaseInvoice.PageExt.al new file mode 100644 index 00000000000..27ca80ac076 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Document/CRTPurchaseInvoice.PageExt.al @@ -0,0 +1,23 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Purchases.Document; + +using Microsoft.Purchases.Payables; + +pageextension 7000178 "CRT Purchase Invoice" extends "Purchase Invoice" +{ + layout + { + addafter(Control1904651607) + { + part(Control1903433907; "Cartera Payables Statistics FB") + { + ApplicationArea = Basic, Suite; + SubPageLink = "No." = field("Pay-to Vendor No."); + Visible = true; + } + } + } +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Document/CRTPurchaseOrder.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Document/CRTPurchaseOrder.PageExt.al new file mode 100644 index 00000000000..702828dd598 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Document/CRTPurchaseOrder.PageExt.al @@ -0,0 +1,23 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Purchases.Document; + +using Microsoft.Purchases.Payables; + +pageextension 7000177 "CRT Purchase Order" extends "Purchase Order" +{ + layout + { + addafter(Control1904651607) + { + part(Control1903433907; "Cartera Payables Statistics FB") + { + ApplicationArea = Basic, Suite; + SubPageLink = "No." = field("Pay-to Vendor No."); + Visible = true; + } + } + } +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Document/CRTPurchaseQuote.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Document/CRTPurchaseQuote.PageExt.al new file mode 100644 index 00000000000..466d57c580d --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Document/CRTPurchaseQuote.PageExt.al @@ -0,0 +1,23 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Purchases.Document; + +using Microsoft.Purchases.Payables; + +pageextension 7000176 "CRT Purchase Quote" extends "Purchase Quote" +{ + layout + { + addafter(Control1904651607) + { + part(Control1903433907; "Cartera Payables Statistics FB") + { + ApplicationArea = Basic, Suite; + SubPageLink = "No." = field("Pay-to Vendor No."); + Visible = true; + } + } + } +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Document/CRTPurchaseReturnOrder.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Document/CRTPurchaseReturnOrder.PageExt.al new file mode 100644 index 00000000000..6079a0d7561 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Document/CRTPurchaseReturnOrder.PageExt.al @@ -0,0 +1,23 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Purchases.Document; + +using Microsoft.Purchases.Payables; + +pageextension 7000175 "CRT Purchase Return Order" extends "Purchase Return Order" +{ + layout + { + addafter(IncomingDocAttachFactBox) + { + part(Control1903433907; "Cartera Payables Statistics FB") + { + ApplicationArea = Basic, Suite; + SubPageLink = "No." = field("Pay-to Vendor No."); + Visible = true; + } + } + } +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/CRTPurchCrMemoHdr.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/CRTPurchCrMemoHdr.Codeunit.al new file mode 100644 index 00000000000..afabe26b9f9 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/CRTPurchCrMemoHdr.Codeunit.al @@ -0,0 +1,19 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Purchases.History; + +using Microsoft.Purchases.Payables; + +codeunit 7000101 "CRT Purch. Cr. Memo Hdr." +{ + Access = Internal; + + [EventSubscriber(ObjectType::Table, Database::"Purch. Cr. Memo Hdr.", 'OnLookupAppliesToDocNoOnAfterSetFilters', '', true, false)] + local procedure OnLookupAppliesToDocNoOnAfterSetFilters(var VendLedgEntry: Record "Vendor Ledger Entry"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr.") + begin + VendLedgEntry.SetRange("Bill No.", PurchCrMemoHeader."Applies-to Bill No."); + end; + +} \ No newline at end of file diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/CRTPurchCrMemoHdr.TableExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/CRTPurchCrMemoHdr.TableExt.al new file mode 100644 index 00000000000..ca1147bf931 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/CRTPurchCrMemoHdr.TableExt.al @@ -0,0 +1,18 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Purchases.History; + +tableextension 7000093 "CRT Purch. Cr. Memo Hdr." extends "Purch. Cr. Memo Hdr." +{ + fields + { + field(7000000; "Applies-to Bill No."; Code[20]) + { + Caption = 'Applies-to Bill No.'; + DataClassification = CustomerContent; + } + } +} + diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/CRTPurchInvHeader.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/CRTPurchInvHeader.Codeunit.al new file mode 100644 index 00000000000..eaf8951c9a1 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/CRTPurchInvHeader.Codeunit.al @@ -0,0 +1,18 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Purchases.History; + +using Microsoft.Purchases.Payables; + +codeunit 7000106 "CRT Purch. Inv. Header" +{ + Access = Internal; + + [EventSubscriber(ObjectType::Table, Database::"Purch. Inv. Header", 'OnLookupAppliesToDocNoOnAfterSetFilters', '', true, false)] + local procedure OnLookupAppliesToDocNoOnAfterSetFilters(var VendLedgEntry: Record "Vendor Ledger Entry"; PurchInvHeader: Record "Purch. Inv. Header") + begin + VendLedgEntry.SetRange("Bill No.", PurchInvHeader."Applies-to Bill No."); + end; +} \ No newline at end of file diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/CRTPurchInvHeader.TableExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/CRTPurchInvHeader.TableExt.al new file mode 100644 index 00000000000..0c166d2cc1e --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/CRTPurchInvHeader.TableExt.al @@ -0,0 +1,18 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Purchases.History; + +tableextension 7000094 "CRT Purch. Inv. Header" extends "Purch. Inv. Header" +{ + fields + { + field(7000000; "Applies-to Bill No."; Code[20]) + { + Caption = 'Applies-to Bill No.'; + DataClassification = CustomerContent; + } + } +} + diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/CRTPurchRcptHeader.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/CRTPurchRcptHeader.Codeunit.al new file mode 100644 index 00000000000..08a3bf5acaf --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/CRTPurchRcptHeader.Codeunit.al @@ -0,0 +1,19 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Purchases.History; + +using Microsoft.Purchases.Payables; + +codeunit 7000102 "CRT Purch. Rcpt. Header" +{ + Access = Internal; + + [EventSubscriber(ObjectType::Table, Database::"Purch. Rcpt. Header", 'OnLookupAppliesToDocNoOnAfterSetFilters', '', true, true)] + local procedure OnLookupAppliesToDocNoOnAfterSetFilters(var VendLedgEntry: Record "Vendor Ledger Entry"; PurchRcptHeader: Record "Purch. Rcpt. Header") + begin + VendLedgEntry.SetRange("Bill No.", PurchRcptHeader."Applies-to Bill No."); + end; + +} \ No newline at end of file diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/CRTPurchRcptHeader.TableExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/CRTPurchRcptHeader.TableExt.al new file mode 100644 index 00000000000..5708ef334a7 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/CRTPurchRcptHeader.TableExt.al @@ -0,0 +1,18 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Purchases.History; + +tableextension 7000095 "CRT Purch. Rcpt. Header" extends "Purch. Rcpt. Header" +{ + fields + { + field(7000000; "Applies-to Bill No."; Code[20]) + { + Caption = 'Applies-to Bill No.'; + DataClassification = CustomerContent; + } + } +} + diff --git a/src/Layers/ES/BaseApp/Local/Purchases/History/PostPOAnalysisLCYFactBox.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/PostPOAnalysisLCYFactBox.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/History/PostPOAnalysisLCYFactBox.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/PostPOAnalysisLCYFactBox.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Purchases/History/PostPOAnalysisNonLCYFB.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/PostPOAnalysisNonLCYFB.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/History/PostPOAnalysisNonLCYFB.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/PostPOAnalysisNonLCYFB.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Purchases/History/PostPaymentOrdersAnalysis.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/PostPaymentOrdersAnalysis.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/History/PostPaymentOrdersAnalysis.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/PostPaymentOrdersAnalysis.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Purchases/History/PostPmtOrdMaturityLin.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/PostPmtOrdMaturityLin.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/History/PostPmtOrdMaturityLin.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/PostPmtOrdMaturityLin.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Purchases/History/PostedPaymentOrder.Table.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/PostedPaymentOrder.Table.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/History/PostedPaymentOrder.Table.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/PostedPaymentOrder.Table.al diff --git a/src/Layers/ES/BaseApp/Local/Purchases/History/PostedPaymentOrderListing.Report.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/PostedPaymentOrderListing.Report.al similarity index 99% rename from src/Layers/ES/BaseApp/Local/Purchases/History/PostedPaymentOrderListing.Report.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/PostedPaymentOrderListing.Report.al index e84f0fe794c..bdc35698d0f 100644 --- a/src/Layers/ES/BaseApp/Local/Purchases/History/PostedPaymentOrderListing.Report.al +++ b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/PostedPaymentOrderListing.Report.al @@ -14,7 +14,7 @@ using System.Utilities; report 7000011 "Posted Payment Order Listing" { DefaultLayout = RDLC; - RDLCLayout = './Local/Purchases/History/PostedPaymentOrderListing.rdlc'; + RDLCLayout = './Local/Cartera/Purchases/History/PostedPaymentOrderListing.rdlc'; ApplicationArea = Basic, Suite; Caption = 'Posted Payment Order Listing'; Permissions = TableData "Posted Payment Order" = r; diff --git a/src/Layers/ES/BaseApp/Local/Purchases/History/PostedPaymentOrderListing.rdlc b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/PostedPaymentOrderListing.rdlc similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/History/PostedPaymentOrderListing.rdlc rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/PostedPaymentOrderListing.rdlc diff --git a/src/Layers/ES/BaseApp/Local/Purchases/History/PostedPaymentOrders.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/PostedPaymentOrders.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/History/PostedPaymentOrders.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/PostedPaymentOrders.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Purchases/History/PostedPaymentOrdersList.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/PostedPaymentOrdersList.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/History/PostedPaymentOrdersList.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/PostedPaymentOrdersList.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Purchases/History/PostedPaymentOrdersMaturity.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/PostedPaymentOrdersMaturity.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/History/PostedPaymentOrdersMaturity.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/PostedPaymentOrdersMaturity.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Purchases/History/PostedPaymentOrdersSelect.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/PostedPaymentOrdersSelect.Page.al similarity index 99% rename from src/Layers/ES/BaseApp/Local/Purchases/History/PostedPaymentOrdersSelect.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/PostedPaymentOrdersSelect.Page.al index bf05796fe30..97257758b45 100644 --- a/src/Layers/ES/BaseApp/Local/Purchases/History/PostedPaymentOrdersSelect.Page.al +++ b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/History/PostedPaymentOrdersSelect.Page.al @@ -248,7 +248,7 @@ page 7000065 "Posted Payment Orders Select." CurrPage.SetSelectionFilter(PostedPmtOrd2); if not PostedPmtOrd2.Find('=><') then exit; - REPORT.RunModal(REPORT::"Batch Settl. Posted POs", true, false, PostedPmtOrd2); + REPORT.RunModal(Report::"Batch Settl. Posted POs", true, false, PostedPmtOrd2); UpdateStatistics(); CurrPage.Update(false); end; diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Payables/BankCatPostPayBillsMatrix.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/BankCatPostPayBillsMatrix.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/Payables/BankCatPostPayBillsMatrix.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/BankCatPostPayBillsMatrix.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Payables/BankCatPostedPayableBills.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/BankCatPostedPayableBills.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/Payables/BankCatPostedPayableBills.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/BankCatPostedPayableBills.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Payables/BatchSettlPostedPOs.Report.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/BatchSettlPostedPOs.Report.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/Payables/BatchSettlPostedPOs.Report.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/BatchSettlPostedPOs.Report.al diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/CRTApplyVendorEntries.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/CRTApplyVendorEntries.PageExt.al new file mode 100644 index 00000000000..165e854e13f --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/CRTApplyVendorEntries.PageExt.al @@ -0,0 +1,33 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Purchases.Payables; + +pageextension 7000190 "CRTApplyVendorEntries" extends "Apply Vendor Entries" +{ + layout + { + addafter("Document No.") + { + field("Bill No."; Rec."Bill No.") + { + ApplicationArea = Basic, Suite; + Editable = false; + ToolTip = 'Specifies the bill number related to the vendor ledger entry.'; + } + field("Document Status"; Rec."Document Status") + { + ApplicationArea = Basic, Suite; + Editable = false; + ToolTip = 'Specifies the status of the document.'; + } + field("Document Situation"; Rec."Document Situation") + { + ApplicationArea = Basic, Suite; + Editable = false; + ToolTip = 'Specifies the document location.'; + } + } + } +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/CRTDetailedVendorLedgEntry.TableExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/CRTDetailedVendorLedgEntry.TableExt.al new file mode 100644 index 00000000000..888808c24f8 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/CRTDetailedVendorLedgEntry.TableExt.al @@ -0,0 +1,35 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Purchases.Payables; + +using Microsoft; +using Microsoft.Sales.Receivables; + +tableextension 7000087 "CRT DetailedVendorLedgEntry" extends "Detailed Vendor Ledg. Entry" +{ + fields + { + field(7000000; "Bill No."; Code[20]) + { + Caption = 'Bill No.'; + DataClassification = CustomerContent; + } + field(7000001; "Document Situation"; Enum "ES Document Situation") + { + Caption = 'Document Situation'; + DataClassification = CustomerContent; + } + field(7000002; "Applies-to Bill No."; Code[20]) + { + Caption = 'Applies-to Bill No.'; + DataClassification = CustomerContent; + } + field(7000003; "Document Status"; Enum "ES Document Status") + { + Caption = 'Document Status'; + DataClassification = CustomerContent; + } + } +} \ No newline at end of file diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/CRTVendEntryApplyPostedEntries.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/CRTVendEntryApplyPostedEntries.Codeunit.al new file mode 100644 index 00000000000..e1c68a62a05 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/CRTVendEntryApplyPostedEntries.Codeunit.al @@ -0,0 +1,83 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Purchases.Payables; + +using Microsoft.Finance.GeneralLedger.Journal; +using Microsoft.Finance.GeneralLedger.Posting; + +codeunit 7000188 "CRTVendEntryApplyPostedEntries" +{ + var + ApplicationEntryDescriptionLbl: Label 'Application of %1 %2', Comment = '%1 = Document Type, %2 = Document No.'; + ApplicationBillDescriptionLbl: Label 'Application of %1 %2/%3', Comment = '%1 = Document Type, %2 = Document No., %3 = Bill No.'; + CarteraApplyPositionErr: Label 'To apply a set of entries containing bills, the cursor should be positioned on an entry different than bill type or Invoice to cartera type.'; + UnapplyBlankedDocTypeErr: Label 'You cannot unapply the entries because one entry has a blank document type.'; + + [EventSubscriber(ObjectType::Codeunit, Codeunit::"VendEntry-Apply Posted Entries", 'OnBeforeApply', '', true, false)] + local procedure OnBeforeApply(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var DocumentNo: Code[20]; var ApplicationDate: Date) + begin + if (VendorLedgerEntry."Document Type" = VendorLedgerEntry."Document Type"::Bill) or + ((VendorLedgerEntry."Document Type" = VendorLedgerEntry."Document Type"::Invoice) and + (VendorLedgerEntry."Document Situation" = VendorLedgerEntry."Document Situation"::Cartera) and + (VendorLedgerEntry."Document Status" = VendorLedgerEntry."Document Status"::Open)) + then + Error(CarteraApplyPositionErr); + end; + + [EventSubscriber(ObjectType::Codeunit, Codeunit::"VendEntry-Apply Posted Entries", 'OnBeforePostApplyVendLedgEntry', '', true, false)] + local procedure OnBeforePostApplyVendLedgEntry(var GenJournalLine: Record "Gen. Journal Line"; VendorLedgerEntry: Record "Vendor Ledger Entry"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") + begin + if VendorLedgerEntry."Document Type" <> VendorLedgerEntry."Document Type"::Bill then + GenJournalLine.Description := StrSubstNo(ApplicationEntryDescriptionLbl, VendorLedgerEntry."Document Type", VendorLedgerEntry."Document No.") + else + GenJournalLine.Description := StrSubstNo(ApplicationBillDescriptionLbl, VendorLedgerEntry."Document Type", VendorLedgerEntry."Document No.", VendorLedgerEntry."Bill No."); + + GenJnlPostLine.SetIDBillSettlement(BeAppliedToBill(VendorLedgerEntry)); + GenJnlPostLine.SetIDInvoiceSettlement(BeAppliedToInvoice(VendorLedgerEntry)); + end; + + [EventSubscriber(ObjectType::Codeunit, Codeunit::"VendEntry-Apply Posted Entries", 'OnAfterCheckInitialDocumentType', '', true, false)] + local procedure OnAfterCheckInitialDocumentType(var DtldVendLedgEntry: Record "Detailed Vendor Ledg. Entry") + begin + if DtldVendLedgEntry."Initial Document Type" = DtldVendLedgEntry."Initial Document Type"::" " then + Error(UnapplyBlankedDocTypeErr); + end; + + [EventSubscriber(ObjectType::Codeunit, Codeunit::"VendEntry-Apply Posted Entries", 'OnPostUnApplyVendorOnAfterDtldVendLedgEntrySetFilters', '', true, false)] + local procedure OnPostUnApplyVendorOnAfterDtldVendLedgEntrySetFilters(var DetailedVendorLedgEntry: Record "Detailed Vendor Ledg. Entry"; DetailedVendorLedgEntry2: Record "Detailed Vendor Ledg. Entry") + begin + if DetailedVendorLedgEntry.FindSet() then + repeat + if DetailedVendorLedgEntry."Initial Document Type" = DetailedVendorLedgEntry."Initial Document Type"::" " then + Error(UnapplyBlankedDocTypeErr); + until DetailedVendorLedgEntry.Next() = 0; + end; + + local procedure BeAppliedToBill(VendorLedgerEntry: Record "Vendor Ledger Entry"): Boolean + var + VendorLedgerEntry2: Record "Vendor Ledger Entry"; + begin + if VendorLedgerEntry."Applies-to ID" = '' then + exit(false); + + VendorLedgerEntry2.SetCurrentKey("Applies-to ID", "Document Type"); + VendorLedgerEntry2.SetRange("Applies-to ID", VendorLedgerEntry."Applies-to ID"); + VendorLedgerEntry2.SetRange("Document Type", VendorLedgerEntry."Document Type"::Bill); + exit(not VendorLedgerEntry2.IsEmpty()); + end; + + local procedure BeAppliedToInvoice(VendorLedgerEntry: Record "Vendor Ledger Entry"): Boolean + var + VendorLedgerEntry2: Record "Vendor Ledger Entry"; + begin + if VendorLedgerEntry."Applies-to ID" = '' then + exit(false); + + VendorLedgerEntry2.SetCurrentKey("Applies-to ID", "Document Type"); + VendorLedgerEntry2.SetRange("Applies-to ID", VendorLedgerEntry."Applies-to ID"); + VendorLedgerEntry2.SetRange("Document Type", VendorLedgerEntry."Document Type"::Invoice); + exit(not VendorLedgerEntry2.IsEmpty()); + end; +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/CRTVendEntrySetApplID.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/CRTVendEntrySetApplID.Codeunit.al new file mode 100644 index 00000000000..7a1307c4e7b --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/CRTVendEntrySetApplID.Codeunit.al @@ -0,0 +1,39 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Purchases.Payables; + +using Microsoft.Finance.ReceivablesPayables; + +codeunit 7000107 "CRTVendEntrySetApplID" +{ + var + CannotBeAppliedErr: Label '%1 cannot be applied, since it is included in a bill group.', Comment = '%1 = Description'; + CannotBeAppliedTryAgainErr: Label '%1 cannot be applied, since it is included in a bill group. Remove it from its bill group and try again.', Comment = '%1 = Description'; + + [EventSubscriber(ObjectType::Codeunit, Codeunit::"Vend. Entry-SetAppl.ID", 'OnBeforeUpdateVendLedgerEntry', '', true, false)] + local procedure OnBeforeUpdateVendLedgerEntry(var TempVendLedgEntry: Record "Vendor Ledger Entry" temporary; ApplyingVendLedgEntry: Record "Vendor Ledger Entry"; AppliesToID: Code[50]; VendEntryApplID: Code[50]; var IsHandled: Boolean) + var + VendorLedgerEntry: Record "Vendor Ledger Entry"; + CarteraSetup: Record "Cartera Setup"; + CarteraDoc: Record "Cartera Doc."; + begin + VendorLedgerEntry.Copy(TempVendLedgEntry); + + if VendorLedgerEntry."Document Situation" = VendorLedgerEntry."Document Situation"::"Posted BG/PO" then + Error(CannotBeAppliedErr, VendorLedgerEntry.Description); + if ApplyingVendLedgEntry."Document Situation" = ApplyingVendLedgEntry."Document Situation"::"Posted BG/PO" then + Error(CannotBeAppliedErr, ApplyingVendLedgEntry.Description); + + if not CarteraSetup.ReadPermission then + exit; + + if not (VendorLedgerEntry."Document Type" in [VendorLedgerEntry."Document Type"::Bill, VendorLedgerEntry."Document Type"::Invoice]) then + exit; + + if CarteraDoc.Get(CarteraDoc.Type::Payable, VendorLedgerEntry."Entry No.") then + if CarteraDoc."Bill Gr./Pmt. Order No." <> '' then + Error(CannotBeAppliedTryAgainErr, VendorLedgerEntry.Description); + end; +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/CRTVendorLedgerEntries.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/CRTVendorLedgerEntries.PageExt.al new file mode 100644 index 00000000000..e69dc2390bf --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/CRTVendorLedgerEntries.PageExt.al @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Purchases.Payables; + +pageextension 7000189 "CRTVendorLedgerEntries" extends "Vendor Ledger Entries" +{ + layout + { + addafter("Invoice Received Date") + { + field("Autodocument No."; Rec."Autodocument No.") + { + ApplicationArea = Basic, Suite; + ToolTip = 'This field is used internally.'; + } + } + addafter("Document No.") + { + field("Bill No."; Rec."Bill No.") + { + ApplicationArea = Basic, Suite; + ToolTip = 'Specifies the bill number related to the vendor ledger entry.'; + } + field("Document Situation"; Rec."Document Situation") + { + ApplicationArea = Basic, Suite; + ToolTip = 'Specifies the document location.'; + } + field("Document Status"; Rec."Document Status") + { + ApplicationArea = Basic, Suite; + ToolTip = 'Specifies the status of the document.'; + } + } + } +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/CRTVendorLedgerEntry.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/CRTVendorLedgerEntry.Codeunit.al new file mode 100644 index 00000000000..07bae9ddfeb --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/CRTVendorLedgerEntry.Codeunit.al @@ -0,0 +1,71 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Purchases.Payables; + +using Microsoft.Finance.GeneralLedger.Journal; +using Microsoft.Finance.ReceivablesPayables; +using Microsoft.Foundation.PaymentTerms; + +codeunit 7000086 "CRT Vendor Ledger Entry" +{ + [EventSubscriber(ObjectType::Table, Database::"Vendor Ledger Entry", OnAfterValidateEvent, 'Due Date', true, false)] + local procedure DueDateOnAfterValidate(var Rec: Record "Vendor Ledger Entry"; var xRec: Record "Vendor Ledger Entry"; CurrFieldNo: Integer) + var + PaymentTerms: Record "Payment Terms"; + DocMisc: Codeunit "Document-Misc"; + begin + Rec.CheckBillSituation(); + if PaymentTerms.Get(Rec."Payment Terms Code") then + PaymentTerms.VerifyMaxNoDaysTillDueDate(Rec."Due Date", Rec."Document Date", Rec.FieldCaption("Due Date")); + if Rec."Document Situation" <> Rec."Document Situation"::" " then + DocMisc.UpdatePayableDueDate(Rec); + end; + + [EventSubscriber(ObjectType::Table, Database::"Vendor Ledger Entry", OnAfterValidateEvent, 'Amount to Apply', true, false)] + local procedure AmountToApplyOnAfterValidate(var Rec: Record "Vendor Ledger Entry"; var xRec: Record "Vendor Ledger Entry"; CurrFieldNo: Integer) + begin + Rec.CheckBillSituation(); + end; + + [EventSubscriber(ObjectType::Table, Database::"Vendor Ledger Entry", OnAfterValidateEvent, 'Payment Method Code', true, false)] + local procedure PaymentMethodCodeOnAfterValidate(var Rec: Record "Vendor Ledger Entry"; var xRec: Record "Vendor Ledger Entry"; CurrFieldNo: Integer) + var + CarteraDoc: Record "Cartera Doc."; + begin + if Rec."Payment Method Code" <> xRec."Payment Method Code" then begin + Rec.ValidatePaymentMethod(); + CarteraDoc.UpdatePaymentMethodCode( + Rec."Document No.", Rec."Vendor No.", Rec."Bill No.", Rec."Payment Method Code") + end; + end; + + [EventSubscriber(ObjectType::Table, Database::"Vendor Ledger Entry", OnAfterCopyVendLedgerEntryFromGenJnlLine, '', true, false)] + local procedure OnAfterCopyVendLedgerEntryFromGenJnlLine(var VendorLedgerEntry: Record "Vendor Ledger Entry"; GenJournalLine: Record "Gen. Journal Line") + begin + VendorLedgerEntry."Bill No." := GenJournalLine."Bill No."; + VendorLedgerEntry."Applies-to Bill No." := GenJournalLine."Applies-to Bill No."; + end; + + [EventSubscriber(ObjectType::Table, Database::"Vendor Ledger Entry", OnAfterCopyVendLedgerEntryFromCVLedgEntryBuffer, '', true, false)] + local procedure OnAfterCopyVendLedgerEntryFromCVLedgEntryBuffer(var VendorLedgerEntry: Record "Vendor Ledger Entry"; CVLedgerEntryBuffer: Record "CV Ledger Entry Buffer") + begin + VendorLedgerEntry."Bill No." := CVLedgerEntryBuffer."Bill No."; + VendorLedgerEntry."Document Situation" := CVLedgerEntryBuffer."Document Situation"; + VendorLedgerEntry."Applies-to Bill No." := CVLedgerEntryBuffer."Applies-to Bill No."; + VendorLedgerEntry."Document Status" := CVLedgerEntryBuffer."Document Status"; + end; + + [EventSubscriber(ObjectType::Table, Database::"Vendor Ledger Entry", OnAfterSetAppliesToDocFilters, '', true, false)] + local procedure OnAfterSetAppliesToDocFilters(var Rec: Record "Vendor Ledger Entry"; var GenJnlLine: Record "Gen. Journal Line") + begin + Rec.SetRange("Bill No.", GenJnlLine."Applies-to Bill No."); + end; + + [EventSubscriber(ObjectType::Table, Database::"Vendor Ledger Entry", OnAfterClearDocumentFilters, '', true, false)] + local procedure OnAfterClearDocumentFilters(var Rec: Record "Vendor Ledger Entry") + begin + Rec.SetRange("Bill No."); + end; +} \ No newline at end of file diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/CRTVendorLedgerEntry.TableExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/CRTVendorLedgerEntry.TableExt.al new file mode 100644 index 00000000000..82fb39cc150 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/CRTVendorLedgerEntry.TableExt.al @@ -0,0 +1,92 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Purchases.Payables; + +using Microsoft; +using Microsoft.Bank.BankAccount; +using Microsoft.Finance.ReceivablesPayables; +using Microsoft.Sales.Receivables; + +tableextension 7000006 "CRT Vendor Ledger Entry" extends "Vendor Ledger Entry" +{ + fields + { + field(7000000; "Bill No."; Code[20]) + { + Caption = 'Bill No.'; + DataClassification = CustomerContent; + } + field(7000001; "Document Situation"; Enum "ES Document Situation") + { + Caption = 'Document Situation'; + DataClassification = CustomerContent; + } + field(7000002; "Applies-to Bill No."; Code[20]) + { + Caption = 'Applies-to Bill No.'; + DataClassification = CustomerContent; + } + field(7000003; "Document Status"; Enum "ES Document Status") + { + Caption = 'Document Status'; + DataClassification = CustomerContent; + } + field(7000005; "Remaining Amount (LCY) stats."; Decimal) + { + AutoFormatType = 1; + AutoFormatExpression = ''; + DataClassification = CustomerContent; + Caption = 'Remaining Amount (LCY) stats.'; + } + field(7000006; "Amount (LCY) stats."; Decimal) + { + AutoFormatType = 1; + AutoFormatExpression = ''; + DataClassification = CustomerContent; + Caption = 'Amount (LCY) stats.'; + } + } + + var + CannotChangePmtMethodErr: Label 'For Cartera-based bills and invoices, you cannot change the Payment Method Code to this value.'; + CheckBillSituationOrderErr: Label '%1 cannot be applied because it is included in a payment order. To apply the document, remove it from the payment order and try again.', Comment = '%1 - document type and number'; + CheckBillSituationPostedErr: Label '%1 cannot be applied because it is included in a posted payment order.', Comment = '%1 - document type and number'; + + [Scope('OnPrem')] + procedure CheckBillSituation() + var + CarteraDoc: Record "Cartera Doc."; + PostedCarteraDoc: Record "Posted Cartera Doc."; + begin + OnBeforeCheckBillSituation(Rec); + + case true of + CarteraDoc.Get(CarteraDoc.Type::Payable, "Entry No."): + if CarteraDoc."Bill Gr./Pmt. Order No." <> '' then + Error(CheckBillSituationOrderErr, Description); + PostedCarteraDoc.Get(PostedCarteraDoc.Type::Payable, "Entry No."): + if PostedCarteraDoc."Bill Gr./Pmt. Order No." <> '' then + Error(CheckBillSituationPostedErr, Description); + end; + end; + + procedure ValidatePaymentMethod() + var + PaymentMethod: Record "Payment Method"; + begin + PaymentMethod.Get("Payment Method Code"); + if (("Document Type" = "Document Type"::Bill) and not PaymentMethod."Create Bills") or + (("Document Type" = "Document Type"::Invoice) and + ("Document Situation" <> "Document Situation"::" ") and + not PaymentMethod."Invoices to Cartera") + then + Error(CannotChangePmtMethodErr); + end; + + [IntegrationEvent(false, false)] + local procedure OnBeforeCheckBillSituation(var VendorLedgerEntry: Record "Vendor Ledger Entry") + begin + end; +} diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Payables/CarteraPayablesStatisticsFB.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/CarteraPayablesStatisticsFB.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/Payables/CarteraPayablesStatisticsFB.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/CarteraPayablesStatisticsFB.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Payables/ClosedPOAnalysisLCYFB.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/ClosedPOAnalysisLCYFB.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/Payables/ClosedPOAnalysisLCYFB.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/ClosedPOAnalysisLCYFB.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Payables/ClosedPOAnalysisNonLCYFB.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/ClosedPOAnalysisNonLCYFB.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/Payables/ClosedPOAnalysisNonLCYFB.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/ClosedPOAnalysisNonLCYFB.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Payables/ClosedPaymentOrder.Table.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/ClosedPaymentOrder.Table.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/Payables/ClosedPaymentOrder.Table.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/ClosedPaymentOrder.Table.al diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Payables/ClosedPaymentOrderListing.Report.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/ClosedPaymentOrderListing.Report.al similarity index 99% rename from src/Layers/ES/BaseApp/Local/Purchases/Payables/ClosedPaymentOrderListing.Report.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/ClosedPaymentOrderListing.Report.al index a02fb696348..ad3613e030c 100644 --- a/src/Layers/ES/BaseApp/Local/Purchases/Payables/ClosedPaymentOrderListing.Report.al +++ b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/ClosedPaymentOrderListing.Report.al @@ -14,7 +14,7 @@ using System.Utilities; report 7000012 "Closed Payment Order Listing" { DefaultLayout = RDLC; - RDLCLayout = './Local/Purchases/Payables/ClosedPaymentOrderListing.rdlc'; + RDLCLayout = './Local/Cartera/Purchases/Payables/ClosedPaymentOrderListing.rdlc'; ApplicationArea = Basic, Suite; Caption = 'Closed Payment Order Listing'; Permissions = TableData "Closed Payment Order" = r; diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Payables/ClosedPaymentOrderListing.rdlc b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/ClosedPaymentOrderListing.rdlc similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/Payables/ClosedPaymentOrderListing.rdlc rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/ClosedPaymentOrderListing.rdlc diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Payables/ClosedPaymentOrders.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/ClosedPaymentOrders.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/Payables/ClosedPaymentOrders.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/ClosedPaymentOrders.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Payables/ClosedPaymentOrdersList.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/ClosedPaymentOrdersList.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/Payables/ClosedPaymentOrdersList.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/ClosedPaymentOrdersList.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Payables/ClosedPmtOrdAnalysis.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/ClosedPmtOrdAnalysis.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/Payables/ClosedPmtOrdAnalysis.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/ClosedPmtOrdAnalysis.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Payables/DocsinClosedPOSubform.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/DocsinClosedPOSubform.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/Payables/DocsinClosedPOSubform.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/DocsinClosedPOSubform.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Payables/DocsinPOSubform.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/DocsinPOSubform.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/Payables/DocsinPOSubform.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/DocsinPOSubform.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Payables/DocsinPostedPOSubform.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/DocsinPostedPOSubform.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/Payables/DocsinPostedPOSubform.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/DocsinPostedPOSubform.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Payables/POExportN341.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/POExportN341.Codeunit.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/Payables/POExportN341.Codeunit.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/POExportN341.Codeunit.al diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Payables/POExportN341.Report.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/POExportN341.Report.al similarity index 99% rename from src/Layers/ES/BaseApp/Local/Purchases/Payables/POExportN341.Report.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/POExportN341.Report.al index 45815901512..166859ebf8f 100644 --- a/src/Layers/ES/BaseApp/Local/Purchases/Payables/POExportN341.Report.al +++ b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/POExportN341.Report.al @@ -16,10 +16,10 @@ using System.Utilities; report 7000060 "PO - Export N34.1" { DefaultLayout = RDLC; - RDLCLayout = './Local/Purchases/Payables/POExportN341.rdlc'; + RDLCLayout = './Local/Cartera/Purchases/Payables/POExportN341.rdlc'; ApplicationArea = Basic, Suite; Caption = 'PO - Export N34.1'; - Permissions = TableData "Cartera Doc." = rimd, + Permissions = TableData "Cartera Doc." = rm, TableData "Payment Order" = m; UsageCategory = ReportsAndAnalysis; diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Payables/POExportN341.rdlc b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/POExportN341.rdlc similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/Payables/POExportN341.rdlc rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/POExportN341.rdlc diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Payables/PartialSettlPayable.Report.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/PartialSettlPayable.Report.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/Payables/PartialSettlPayable.Report.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/PartialSettlPayable.Report.al diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Payables/PayableClosedCarteraDocs.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/PayableClosedCarteraDocs.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/Payables/PayableClosedCarteraDocs.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/PayableClosedCarteraDocs.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Payables/PayablesCarteraDocs.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/PayablesCarteraDocs.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/Payables/PayablesCarteraDocs.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/PayablesCarteraDocs.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Payables/PaymentOrder.Table.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/PaymentOrder.Table.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/Payables/PaymentOrder.Table.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/PaymentOrder.Table.al diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Payables/PaymentOrderListing.Report.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/PaymentOrderListing.Report.al similarity index 99% rename from src/Layers/ES/BaseApp/Local/Purchases/Payables/PaymentOrderListing.Report.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/PaymentOrderListing.Report.al index 18502623861..d4b08452008 100644 --- a/src/Layers/ES/BaseApp/Local/Purchases/Payables/PaymentOrderListing.Report.al +++ b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/PaymentOrderListing.Report.al @@ -14,7 +14,7 @@ using System.Utilities; report 7000010 "Payment Order Listing" { DefaultLayout = RDLC; - RDLCLayout = './Local/Purchases/Payables/PaymentOrderListing.rdlc'; + RDLCLayout = './Local/Cartera/Purchases/Payables/PaymentOrderListing.rdlc'; ApplicationArea = Basic, Suite; Caption = 'Payment Order Listing'; Permissions = TableData "Payment Order" = r; diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Payables/PaymentOrderListing.rdlc b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/PaymentOrderListing.rdlc similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/Payables/PaymentOrderListing.rdlc rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/PaymentOrderListing.rdlc diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Payables/PaymentOrderTest.Report.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/PaymentOrderTest.Report.al similarity index 99% rename from src/Layers/ES/BaseApp/Local/Purchases/Payables/PaymentOrderTest.Report.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/PaymentOrderTest.Report.al index 9cc45f76053..36e68a51637 100644 --- a/src/Layers/ES/BaseApp/Local/Purchases/Payables/PaymentOrderTest.Report.al +++ b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/PaymentOrderTest.Report.al @@ -13,7 +13,7 @@ using System.Utilities; report 7000009 "Payment Order - Test" { DefaultLayout = RDLC; - RDLCLayout = './Local/Purchases/Payables/PaymentOrderTest.rdlc'; + RDLCLayout = './Local/Cartera/Purchases/Payables/PaymentOrderTest.rdlc'; Caption = 'Payment Order - Test'; dataset diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Payables/PaymentOrderTest.rdlc b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/PaymentOrderTest.rdlc similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/Payables/PaymentOrderTest.rdlc rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/PaymentOrderTest.rdlc diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Payables/PaymentOrders.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/PaymentOrders.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/Payables/PaymentOrders.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/PaymentOrders.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Payables/PaymentOrdersAnalysis.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/PaymentOrdersAnalysis.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/Payables/PaymentOrdersAnalysis.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/PaymentOrdersAnalysis.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Payables/PaymentOrdersList.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/PaymentOrdersList.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/Payables/PaymentOrdersList.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/PaymentOrdersList.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Payables/PaymentOrdersMaturity.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/PaymentOrdersMaturity.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/Payables/PaymentOrdersMaturity.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/PaymentOrdersMaturity.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Payables/PaymentorderExportN34.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/PaymentorderExportN34.Codeunit.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/Payables/PaymentorderExportN34.Codeunit.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/PaymentorderExportN34.Codeunit.al diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Payables/PaymentorderExportN34.Report.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/PaymentorderExportN34.Report.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/Payables/PaymentorderExportN34.Report.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/PaymentorderExportN34.Report.al diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Payables/PmtOrdersAnalysisFactBox.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/PmtOrdersAnalysisFactBox.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/Payables/PmtOrdersAnalysisFactBox.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/PmtOrdersAnalysisFactBox.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Payables/RedrawPayableBills.Report.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/RedrawPayableBills.Report.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/Payables/RedrawPayableBills.Report.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/RedrawPayableBills.Report.al diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Payables/SettleDocsinPostedPO.Report.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/SettleDocsinPostedPO.Report.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/Payables/SettleDocsinPostedPO.Report.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/SettleDocsinPostedPO.Report.al diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Payables/VoidPOExport.Report.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/VoidPOExport.Report.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/Payables/VoidPOExport.Report.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Payables/VoidPOExport.Report.al diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Posting/CRTPurchPost.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Posting/CRTPurchPost.Codeunit.al new file mode 100644 index 00000000000..f0661631494 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Posting/CRTPurchPost.Codeunit.al @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Purchases.Posting; + +using Microsoft.Bank.BankAccount; +using Microsoft.Finance.ReceivablesPayables; +using Microsoft.Purchases.Document; +using Microsoft.Purchases.Payables; + +codeunit 7000095 "CRT Purch.-Post" +{ + + var + CannotCreateCarteraDocErr: Label 'You do not have permissions to create Documents in Cartera.\Please, change the Payment Method.'; + ClosedDocumentErr: Label 'At least one document of %1 No. %2 is closed or in a Payment Order. This will avoid the document to be settled.\The posting process of %3 No. %4 will not settle any document.\Please remove the lines for the Payment Order before posting.', Comment = '%1 = Document Type, %2 = Document No., %3 = Purchase Document Type, %4 = Purchase No.'; + + [EventSubscriber(ObjectType::Codeunit, Codeunit::"Purch.-Post", 'OnAfterProcessPostingLines', '', true, true)] + local procedure OnAfterProcessPostingLines(var PurchHeader: Record "Purchase Header"; var TotalPurchLine: Record "Purchase Line"; var VendLedgEntry: Record "Vendor Ledger Entry"; InvoicePostingParameters: Record "Invoice Posting Parameters"; SuppressCommit: Boolean; EverythingInvoiced: Boolean; var Window: Dialog) + var + CarteraSetup: Record "Cartera Setup"; + PaymentMethod: Record "Payment Method"; + InvoiceSplitPayment: Codeunit "Invoice-Split Payment"; +#if not CLEAN29 + PurchPost: Codeunit "Purch.-Post"; +#endif + begin + if PaymentMethod.Get(PurchHeader."Payment Method Code") then + if (PaymentMethod."Create Bills" or PaymentMethod."Invoices to Cartera") and + (not CarteraSetup.ReadPermission) and PurchHeader.Invoice + then + Error(CannotCreateCarteraDocErr); + + if PurchHeader.Invoice and (PurchHeader."Bal. Account No." = '') and + not PurchHeader.IsCreditDocType() and CarteraSetup.ReadPermission + then begin + OnBeforeCreateCarteraBills(PurchHeader, VendLedgEntry, TotalPurchLine, SuppressCommit); +#if not CLEAN29 + PurchPost.RunOnBeforeCreateCarteraBills(PurchHeader, VendLedgEntry, TotalPurchLine, SuppressCommit); +#endif + InvoiceSplitPayment.SplitPurchInv( + PurchHeader, VendLedgEntry, Window, InvoicePostingParameters."Source Code", + InvoicePostingParameters."External Document No.", InvoicePostingParameters."Document No.", + -(TotalPurchLine."Amount Including VAT" - TotalPurchLine.Amount)); + end; + end; + + [IntegrationEvent(false, false)] + local procedure OnBeforeCreateCarteraBills(PurchHeader: Record "Purchase Header"; var VendLedgEntry: Record "Vendor Ledger Entry"; var TotalPurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean) + begin + end; + + [EventSubscriber(ObjectType::Codeunit, Codeunit::"Purch.-Post", 'OnAfterCheckPostRestrictions', '', true, true)] + local procedure OnAfterCheckPostRestrictions(var PurchaseHeader: Record "Purchase Header") + begin + TestPurchEffects(PurchaseHeader); + end; + + internal procedure TestPurchEffects(PurchHeader: Record "Purchase Header") + var + VendLedgEntry: Record "Vendor Ledger Entry"; + ShowError: Boolean; + begin + ShowError := false; + if PurchHeader."Document Type" = PurchHeader."Document Type"::"Credit Memo" then begin + VendLedgEntry.SetCurrentKey("Document No.", "Document Type", "Vendor No."); + VendLedgEntry.SetFilter("Document Type", '%1|%2', VendLedgEntry."Document Type"::Invoice, + VendLedgEntry."Document Type"::Bill); + VendLedgEntry.SetFilter("Document Situation", '<>%1', VendLedgEntry."Document Situation"::" "); + VendLedgEntry.SetRange("Vendor No.", PurchHeader."Pay-to Vendor No."); + VendLedgEntry.SetRange(Open, true); + if VendLedgEntry.FindSet() then + repeat + if VendLedgEntry."Document Situation" <> VendLedgEntry."Document Situation"::Cartera then + if not ((VendLedgEntry."Document Situation" in + [VendLedgEntry."Document Situation"::"Closed Documents", + VendLedgEntry."Document Situation"::"Closed BG/PO"]) and + (VendLedgEntry."Document Status" = VendLedgEntry."Document Status"::Rejected)) + then + ShowError := true; + until (VendLedgEntry.Next() = 0) or ShowError; + + if ShowError then + Error( + ClosedDocumentErr, + Format(VendLedgEntry."Document Type"), Format(VendLedgEntry."Document No."), + Format(PurchHeader."Document Type"), Format(PurchHeader."No.")); + end; + end; +} \ No newline at end of file diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Reports/LongTermPurchaseInvoices.Report.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Reports/LongTermPurchaseInvoices.Report.al similarity index 99% rename from src/Layers/ES/BaseApp/Local/Purchases/Reports/LongTermPurchaseInvoices.Report.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Reports/LongTermPurchaseInvoices.Report.al index ceea27a9647..6596f12e7ea 100644 --- a/src/Layers/ES/BaseApp/Local/Purchases/Reports/LongTermPurchaseInvoices.Report.al +++ b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Reports/LongTermPurchaseInvoices.Report.al @@ -12,7 +12,7 @@ using System.Utilities; report 10741 "Long Term Purchase Invoices" { DefaultLayout = RDLC; - RDLCLayout = './Local/Purchases/Reports/LongTermPurchaseInvoices.rdlc'; + RDLCLayout = './Local/Cartera/Purchases/Reports/LongTermPurchaseInvoices.rdlc'; ApplicationArea = Basic, Suite; Caption = 'Long Term Purchase Invoices'; UsageCategory = ReportsAndAnalysis; diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Reports/LongTermPurchaseInvoices.rdlc b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Reports/LongTermPurchaseInvoices.rdlc similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/Reports/LongTermPurchaseInvoices.rdlc rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Reports/LongTermPurchaseInvoices.rdlc diff --git a/src/Layers/ES/BaseApp/Local/PostPaymentOrder.Report.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Reports/PostPaymentOrder.Report.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/PostPaymentOrder.Report.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Reports/PostPaymentOrder.Report.al diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Reports/VendorDuePayments.Report.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Reports/VendorDuePayments.Report.al similarity index 80% rename from src/Layers/ES/BaseApp/Local/Purchases/Reports/VendorDuePayments.Report.al rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Reports/VendorDuePayments.Report.al index 651de149c0f..01b15634000 100644 --- a/src/Layers/ES/BaseApp/Local/Purchases/Reports/VendorDuePayments.Report.al +++ b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Reports/VendorDuePayments.Report.al @@ -12,7 +12,7 @@ using System.Utilities; report 7000007 "Vendor - Due Payments" { DefaultLayout = RDLC; - RDLCLayout = './Local/Purchases/Reports/VendorDuePayments.rdlc'; + RDLCLayout = './Local/Cartera/Purchases/Reports/VendorDuePayments.rdlc'; ApplicationArea = Basic, Suite; Caption = 'Vendor - Due Payments'; UsageCategory = ReportsAndAnalysis; @@ -125,7 +125,7 @@ report 7000007 "Vendor - Due Payments" { AutoFormatType = 1; } - column(STRSUBSTNO_Text1100000_Date__Period_Name__DATE2DMY_Date__Period_Start__3__; StrSubstNo(Text1100000, Date."Period Name", Date2DMY(Date."Period Start", 3))) + column(STRSUBSTNO_Text1100000_Date__Period_Name__DATE2DMY_Date__Period_Start__3__; StrSubstNo(Text1100000Txt, Date."Period Name", Date2DMY(Date."Period Start", 3))) { } column(Vendor_Ledger_Entry__Remaining_Amt___LCY___Control18; "Remaining Amt. (LCY)") @@ -155,23 +155,26 @@ report 7000007 "Vendor - Due Payments" PaymentMethod := PurchInv."Payment Method Code"; "Document Type"::Bill: begin - Doc.SetCurrentKey(Type, "Document No."); - Doc.SetRange(Type, Doc.Type::Payable); - Doc.SetRange("Document No.", "Document No."); - if Doc.FindFirst() then - PaymentMethod := Doc."Payment Method Code" + CarteraDoc.SetLoadFields("Payment Method Code"); + CarteraDoc.SetCurrentKey(Type, "Document No."); + CarteraDoc.SetRange(Type, CarteraDoc.Type::Payable); + CarteraDoc.SetRange("Document No.", "Document No."); + if CarteraDoc.FindFirst() then + PaymentMethod := CarteraDoc."Payment Method Code" else begin - PostedDoc.SetCurrentKey(Type, "Document No."); - PostedDoc.SetRange(Type, PostedDoc.Type::Payable); - PostedDoc.SetRange("Document No.", "Document No."); - if PostedDoc.FindFirst() then - PaymentMethod := PostedDoc."Payment Method Code" + PostedCarteraDoc.SetLoadFields("Payment Method Code"); + PostedCarteraDoc.SetCurrentKey(Type, "Document No."); + PostedCarteraDoc.SetRange(Type, PostedCarteraDoc.Type::Payable); + PostedCarteraDoc.SetRange("Document No.", "Document No."); + if PostedCarteraDoc.FindFirst() then + PaymentMethod := PostedCarteraDoc."Payment Method Code" else begin - ClosedDoc.SetCurrentKey(Type, "Document No."); - ClosedDoc.SetRange(Type, ClosedDoc.Type::Payable); - ClosedDoc.SetRange("Document No.", "Document No."); - if ClosedDoc.FindFirst() then - PaymentMethod := ClosedDoc."Payment Method Code"; + ClosedCarteraDoc.SetLoadFields("Payment Method Code"); + ClosedCarteraDoc.SetCurrentKey(Type, "Document No."); + ClosedCarteraDoc.SetRange(Type, ClosedCarteraDoc.Type::Payable); + ClosedCarteraDoc.SetRange("Document No.", "Document No."); + if ClosedCarteraDoc.FindFirst() then + PaymentMethod := ClosedCarteraDoc."Payment Method Code"; end; end; end; @@ -186,6 +189,7 @@ report 7000007 "Vendor - Due Payments" trigger OnPreDataItem() begin + AddLoadFields("Due Date", Description, "Vendor No.", "Currency Code", "Document Type", "Document No.", "Entry No."); FilterGroup(2); SetRange("Due Date", FromDate, ToDate); FilterGroup(0); @@ -233,20 +237,21 @@ report 7000007 "Vendor - Due Payments" end; var - Text1100000: Label 'Total %1 %2'; + CarteraDoc: Record "Cartera Doc."; + PostedCarteraDoc: Record "Posted Cartera Doc."; + ClosedCarteraDoc: Record "Closed Cartera Doc."; PurchInv: Record "Purch. Inv. Header"; - DueDateFilter: Code[250]; - VLETableFilter: Code[250]; + DueDateFilter: Text; + VLETableFilter: Text; FromDate: Date; ToDate: Date; StartFirstMonth: Date; EndLastMonth: Date; PaymentMethod: Code[10]; - Doc: Record "Cartera Doc."; - PostedDoc: Record "Posted Cartera Doc."; - ClosedDoc: Record "Closed Cartera Doc."; AccumRemainingAmtLCY: Decimal; AccumRemainingAmtLCYTrans: Decimal; + + Text1100000Txt: Label 'Total %1 %2', Comment = '%1 = Total label, %2 = amount'; CurrReport_PAGENOCaptionLbl: Label 'Page'; Vendor___Due_PaymentsCaptionLbl: Label 'Vendor - Due Payments'; PaymentMethodCaptionLbl: Label 'Pmt. Method Code'; diff --git a/src/Layers/ES/BaseApp/Local/Purchases/Reports/VendorDuePayments.rdlc b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Reports/VendorDuePayments.rdlc similarity index 100% rename from src/Layers/ES/BaseApp/Local/Purchases/Reports/VendorDuePayments.rdlc rename to src/Layers/ES/BaseApp/Local/Cartera/Purchases/Reports/VendorDuePayments.rdlc diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Vendor/CRTVendorCard.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Vendor/CRTVendorCard.PageExt.al new file mode 100644 index 00000000000..e1c416b7624 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Vendor/CRTVendorCard.PageExt.al @@ -0,0 +1,23 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Purchases.Vendor; + +using Microsoft.Purchases.Payables; + +pageextension 7000174 "CRT Vendor Card" extends "Vendor Card" +{ + layout + { + addafter(VendorStatisticsFactBox) + { + part(Control1903433907; "Cartera Payables Statistics FB") + { + ApplicationArea = Basic, Suite; + SubPageLink = "No." = field("No."); + Visible = true; + } + } + } +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Vendor/CRTVendorList.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Vendor/CRTVendorList.PageExt.al new file mode 100644 index 00000000000..556642c3b17 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Vendor/CRTVendorList.PageExt.al @@ -0,0 +1,23 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Purchases.Vendor; + +using Microsoft.Purchases.Payables; + +pageextension 7000193 "CRT Vendor List" extends "Vendor List" +{ + layout + { + addafter(VendorHistPayToFactBox) + { + part(Control1903433907; "Cartera Payables Statistics FB") + { + ApplicationArea = Basic, Suite; + SubPageLink = "No." = field("No."); + Visible = true; + } + } + } +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Vendor/CRTVendorStatistics.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Vendor/CRTVendorStatistics.PageExt.al new file mode 100644 index 00000000000..8d2041b45bc --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Purchases/Vendor/CRTVendorStatistics.PageExt.al @@ -0,0 +1,274 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Purchases.Vendor; + +using Microsoft.Purchases.Payables; + +pageextension 7000184 "CRT Vendor Statistics" extends "Vendor Statistics" +{ + layout + { + addlast(content) + { + group("Payable Docs.") + { + Caption = 'Payable Docs.'; + fixed(Control1903836701) + { + ShowCaption = false; + group("No. of Documents") + { + Caption = 'No. of Documents'; + field("NoOpen[1]"; NoOpen[1]) + { + ApplicationArea = Basic, Suite; + Caption = 'Open Documents'; + Editable = false; + ToolTip = 'Specifies non-processed payments.'; + } + field("NoOpen[2]"; NoOpen[2]) + { + ApplicationArea = Basic, Suite; + Caption = 'Open Docs. in Payment Order'; + Editable = false; + ToolTip = 'Specifies non-processed payments.'; + } + field("NoOpen[3]"; NoOpen[3]) + { + ApplicationArea = Basic, Suite; + Caption = 'Open Docs. in Posted Payment Order'; + Editable = false; + ToolTip = 'Specifies non-processed payments.'; + } + field("NoHonored[3]"; NoHonored[3]) + { + ApplicationArea = Basic, Suite; + Caption = 'Honored Docs. in Posted Payment Order'; + Editable = false; + ToolTip = 'Specifies settled payments.'; + } + } + group("Amount (LCY)") + { + Caption = 'Amount (LCY)'; + field("OpenAmtLCY[1]"; OpenAmtLCY[1]) + { + ApplicationArea = Basic, Suite; + AutoFormatType = 1; + AutoFormatExpression = ''; + Caption = 'Open'; + Editable = false; + ToolTip = 'Specifies that the related payment is not processed yet. '; + + trigger OnDrillDown() + begin + DrillDownOpen(4); // Cartera + end; + } + field("OpenAmtLCY[2]"; OpenAmtLCY[2]) + { + ApplicationArea = Basic, Suite; + AutoFormatType = 1; + AutoFormatExpression = ''; + Caption = 'Open'; + Editable = false; + ToolTip = 'Specifies that the related payment is not processed yet. '; + + trigger OnDrillDown() + begin + DrillDownOpen(3); // Payment Order + end; + } + field("OpenAmtLCY[3]"; OpenAmtLCY[3]) + { + ApplicationArea = Basic, Suite; + AutoFormatType = 1; + AutoFormatExpression = ''; + Caption = 'Open'; + Editable = false; + ToolTip = 'Specifies that the related payment is not processed yet. '; + + trigger OnDrillDown() + begin + DrillDownOpen(1); // Posted Payment Order + end; + } + field("HonoredAmtLCY[3]"; HonoredAmtLCY[3]) + { + ApplicationArea = Basic, Suite; + AutoFormatType = 1; + AutoFormatExpression = ''; + Caption = 'Honored'; + Editable = false; + ToolTip = 'Specifies that the related payment is settled. '; + + trigger OnDrillDown() + begin + DrillDownHonored(1); // Posted Payment Order + end; + } + } + group("Remaining Amt. (LCY)") + { + Caption = 'Remaining Amt. (LCY)'; + field("OpenRemainingAmtLCY[1]"; OpenRemainingAmtLCY[1]) + { + ApplicationArea = Basic, Suite; + AutoFormatType = 1; + AutoFormatExpression = ''; + Caption = 'Open'; + Editable = false; + ToolTip = 'Specifies that the related payment is not processed yet. '; + + trigger OnDrillDown() + begin + DrillDownOpen(4); // Cartera + end; + } + field("OpenRemainingAmtLCY[2]"; OpenRemainingAmtLCY[2]) + { + ApplicationArea = Basic, Suite; + AutoFormatType = 1; + AutoFormatExpression = ''; + Caption = 'Open'; + Editable = false; + ToolTip = 'Specifies that the related payment is not processed yet. '; + + trigger OnDrillDown() + begin + DrillDownOpen(3); // Payment Order + end; + } + field("OpenRemainingAmtLCY[3]"; OpenRemainingAmtLCY[3]) + { + ApplicationArea = Basic, Suite; + AutoFormatType = 1; + AutoFormatExpression = ''; + Caption = 'Open'; + Editable = false; + ToolTip = 'Specifies that the related payment is not processed yet. '; + + trigger OnDrillDown() + begin + DrillDownOpen(1); // Posted Payment Order + end; + } + field("HonoredRemainingAmtLCY[3]"; HonoredRemainingAmtLCY[3]) + { + ApplicationArea = Basic, Suite; + AutoFormatType = 1; + AutoFormatExpression = ''; + Caption = 'Honored'; + Editable = false; + ToolTip = 'Specifies that the related payment is settled. '; + + trigger OnDrillDown() + begin + DrillDownHonored(1); // Posted Payment Order + end; + } + } + } + } + } + } + + trigger OnAfterGetRecord() + begin + UpdateBillStatistics(); + end; + +#pragma warning disable AS0107 + var + NoOpen: array[3] of Integer; + NoHonored: array[3] of Integer; + OpenAmtLCY: array[3] of Decimal; + OpenRemainingAmtLCY: array[3] of Decimal; + HonoredAmtLCY: array[3] of Decimal; + HonoredRemainingAmtLCY: array[3] of Decimal; + DocumentSituationFilter: array[3] of Option " ","Posted BG/PO","Closed BG/PO","BG/PO",Cartera,"Closed Documents"; + j: Integer; +#pragma warning restore AS0107 + + [Scope('OnPrem')] + procedure UpdateBillStatistics() + var + VendLedgEntry: Record "Vendor Ledger Entry"; + begin + DocumentSituationFilter[1] := DocumentSituationFilter::Cartera; + DocumentSituationFilter[2] := DocumentSituationFilter::"BG/PO"; + DocumentSituationFilter[3] := DocumentSituationFilter::"Posted BG/PO"; + + VendLedgEntry.SetCurrentKey("Vendor No.", "Document Type", "Document Situation", "Document Status"); + VendLedgEntry.SetRange("Vendor No.", Rec."No."); + for j := 1 to 3 do begin + VendLedgEntry.SetRange("Document Situation", DocumentSituationFilter[j]); + VendLedgEntry.SetRange("Document Status", VendLedgEntry."Document Status"::Open); + VendLedgEntry.CalcSums("Amount (LCY) stats.", "Remaining Amount (LCY) stats."); + OpenAmtLCY[j] := VendLedgEntry."Amount (LCY) stats."; + OpenRemainingAmtLCY[j] := VendLedgEntry."Remaining Amount (LCY) stats."; + NoOpen[j] := VendLedgEntry.Count(); + VendLedgEntry.SetRange("Document Status"); + + VendLedgEntry.SetRange("Document Status", VendLedgEntry."Document Status"::Honored); + VendLedgEntry.CalcSums("Amount (LCY) stats.", "Remaining Amount (LCY) stats."); + HonoredAmtLCY[j] := VendLedgEntry."Amount (LCY) stats."; + HonoredRemainingAmtLCY[j] := VendLedgEntry."Remaining Amount (LCY) stats."; + NoHonored[j] := VendLedgEntry.Count(); + VendLedgEntry.SetRange("Document Status"); + + VendLedgEntry.SetRange("Document Situation"); + end; + end; + + [Scope('OnPrem')] + procedure DrillDownOpen(Situation: Option " ","Posted BG/PO","Closed BG/PO","BG/PO",Cartera,"Closed Documents") + var + VendLedgEntry: Record "Vendor Ledger Entry"; + VendLedgEntriesForm: Page "Vendor Ledger Entries"; + begin + VendLedgEntry.SetCurrentKey("Vendor No.", "Document Type", "Document Situation", "Document Status"); + VendLedgEntry.SetRange("Vendor No.", Rec."No."); + case Situation of + Situation::Cartera: + VendLedgEntry.SetRange("Document Situation", VendLedgEntry."Document Situation"::Cartera); + Situation::"BG/PO": + VendLedgEntry.SetRange("Document Situation", VendLedgEntry."Document Situation"::"BG/PO"); + Situation::"Posted BG/PO": + VendLedgEntry.SetRange("Document Situation", VendLedgEntry."Document Situation"::"Posted BG/PO"); + end; + VendLedgEntry.SetRange("Document Status", VendLedgEntry."Document Status"::Open); + VendLedgEntriesForm.SetTableView(VendLedgEntry); + VendLedgEntriesForm.SetRecord(VendLedgEntry); + VendLedgEntriesForm.RunModal(); + VendLedgEntry.SetRange("Document Status"); + VendLedgEntry.SetRange("Document Situation"); + end; + + [Scope('OnPrem')] + procedure DrillDownHonored(Situation: Option " ","Posted BG/PO","Closed BG/PO","BG/PO",Cartera,"Closed Documents") + var + VendLedgEntry: Record "Vendor Ledger Entry"; + VendLedgEntriesForm: Page "Vendor Ledger Entries"; + begin + VendLedgEntry.SetCurrentKey("Vendor No.", "Document Type", "Document Situation", "Document Status"); + VendLedgEntry.SetRange("Vendor No.", Rec."No."); + case Situation of + Situation::Cartera: + VendLedgEntry.SetRange("Document Situation", VendLedgEntry."Document Situation"::Cartera); + Situation::"BG/PO": + VendLedgEntry.SetRange("Document Situation", VendLedgEntry."Document Situation"::"BG/PO"); + Situation::"Posted BG/PO": + VendLedgEntry.SetRange("Document Situation", VendLedgEntry."Document Situation"::"Posted BG/PO"); + end; + + VendLedgEntry.SetRange("Document Status", VendLedgEntry."Document Status"::Honored); + VendLedgEntriesForm.SetTableView(VendLedgEntry); + VendLedgEntriesForm.SetRecord(VendLedgEntry); + VendLedgEntriesForm.RunModal(); + VendLedgEntry.SetRange("Document Status"); + VendLedgEntry.SetRange("Document Situation"); + end; +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Sales/Customer/CRTCustomerCard.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Customer/CRTCustomerCard.PageExt.al new file mode 100644 index 00000000000..85aced2abac --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Customer/CRTCustomerCard.PageExt.al @@ -0,0 +1,30 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Sales.Customer; + +using Microsoft.Finance.ReceivablesPayables; +using Microsoft.Sales.Receivables; + +pageextension 7000180 "CRT Customer Card" extends "Customer Card" +{ + layout + { + addafter(CustomerStatisticsFactBox) + { + part(Control1903433807; "Cartera Receiv. Statistics FB") + { + ApplicationArea = Basic, Suite; + SubPageLink = "No." = field("No."); + Visible = true; + } + part(Control1903433607; "Cartera Fact. Statistics FB") + { + ApplicationArea = Basic, Suite; + SubPageLink = "No." = field("No."); + Visible = true; + } + } + } +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Sales/Customer/CRTCustomerList.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Customer/CRTCustomerList.PageExt.al new file mode 100644 index 00000000000..b9b390abb0c --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Customer/CRTCustomerList.PageExt.al @@ -0,0 +1,30 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Sales.Customer; + +using Microsoft.Finance.ReceivablesPayables; +using Microsoft.Sales.Receivables; + +pageextension 7000179 "CRT Customer List" extends "Customer List" +{ + layout + { + addafter(CustomerDetailsFactBox) + { + part(Control1903433807; "Cartera Receiv. Statistics FB") + { + ApplicationArea = Basic, Suite; + SubPageLink = "No." = field("No."); + Visible = true; + } + part(Control1903433607; "Cartera Fact. Statistics FB") + { + ApplicationArea = Basic, Suite; + SubPageLink = "No." = field("No."); + Visible = true; + } + } + } +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Sales/Customer/CRTCustomerPostingGroup.TableExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Customer/CRTCustomerPostingGroup.TableExt.al new file mode 100644 index 00000000000..739ed70d7e3 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Customer/CRTCustomerPostingGroup.TableExt.al @@ -0,0 +1,114 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Sales.Customer; + +using Microsoft.Finance.GeneralLedger.Account; +using Microsoft.Finance.ReceivablesPayables; + +tableextension 7000002 "CRT Customer Posting Group" extends "Customer Posting Group" +{ + fields + { + field(7000000; "Bills Account"; Code[20]) + { + Caption = 'Bills Account'; + DataClassification = CustomerContent; + TableRelation = "G/L Account"; + } + field(7000001; "Discted. Bills Acc."; Code[20]) + { + Caption = 'Discted. Bills Acc.'; + DataClassification = CustomerContent; + TableRelation = "G/L Account"; + } + field(7000002; "Bills on Collection Acc."; Code[20]) + { + Caption = 'Bills on Collection Acc.'; + DataClassification = CustomerContent; + TableRelation = "G/L Account"; + } + field(7000003; "Rejected Bills Acc."; Code[20]) + { + Caption = 'Rejected Bills Acc.'; + DataClassification = CustomerContent; + TableRelation = "G/L Account"; + } + field(7000004; "Finance Income Acc."; Code[20]) + { + Caption = 'Finance Income Acc.'; + DataClassification = CustomerContent; + TableRelation = "G/L Account"; + } + field(7000005; "Factoring for Collection Acc."; Code[20]) + { + Caption = 'Factoring for Collection Acc.'; + DataClassification = CustomerContent; + TableRelation = "G/L Account"; + } + field(7000006; "Factoring for Discount Acc."; Code[20]) + { + Caption = 'Factoring for Discount Acc.'; + DataClassification = CustomerContent; + TableRelation = "G/L Account"; + } + field(7000007; "Rejected Factoring Acc."; Code[20]) + { + Caption = 'Rejected Factoring Acc.'; + DataClassification = CustomerContent; + TableRelation = "G/L Account"; + } + } + + var + PostingSetupMgt: Codeunit PostingSetupManagement; + + procedure GetBillsAccount(Rejected: Boolean): Code[20] + begin + if Rejected then begin + TestField("Rejected Bills Acc."); + exit("Rejected Bills Acc."); + end; + TestField("Bills Account"); + exit("Bills Account"); + end; + + procedure GetBillsOnCollAccount(): Code[20] + begin + TestField("Bills on Collection Acc."); + exit("Bills on Collection Acc."); + end; + + procedure GetRejectedFactoringAcc(): Code[20] + begin + if "Rejected Factoring Acc." = '' then + PostingSetupMgt.LogCustPostingGroupFieldError(Rec, FieldNo("Rejected Factoring Acc.")); + + exit("Rejected Factoring Acc."); + end; + + procedure GetFactoringForDiscountAcc(): Code[20] + begin + if "Factoring for Discount Acc." = '' then + PostingSetupMgt.LogCustPostingGroupFieldError(Rec, FieldNo("Factoring for Discount Acc.")); + + exit("Factoring for Discount Acc."); + end; + + procedure GetFactoringForCollectionAcc(): Code[20] + begin + if "Factoring for Collection Acc." = '' then + PostingSetupMgt.LogCustPostingGroupFieldError(Rec, FieldNo("Factoring for Collection Acc.")); + + exit("Factoring for Collection Acc."); + end; + + procedure GetDiscountedBillsAcc(): Code[20] + begin + if "Discted. Bills Acc." = '' then + PostingSetupMgt.LogCustPostingGroupFieldError(Rec, FieldNo("Discted. Bills Acc.")); + + exit("Discted. Bills Acc."); + end; +} \ No newline at end of file diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Sales/Customer/CRTCustomerStatistics.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Customer/CRTCustomerStatistics.PageExt.al new file mode 100644 index 00000000000..58738c7dede --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Customer/CRTCustomerStatistics.PageExt.al @@ -0,0 +1,676 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Sales.Customer; + +using Microsoft.Sales.Receivables; + +pageextension 7000185 "CRT Customer Statistics" extends "Customer Statistics" +{ + layout + { + addlast(content) + { + group("Receivable Bills") + { + Caption = 'Receivable Bills'; + fixed(Control1903836701) + { + ShowCaption = false; + group("No. of Bills") + { + Caption = 'No. of Bills'; + field("NoOpen[1]"; NoOpen[1]) + { + ApplicationArea = Basic, Suite; + Caption = 'Open Bills'; + Editable = false; + ToolTip = 'Specifies non-processed payments.'; + } + field("NoOpen[2]"; NoOpen[2]) + { + ApplicationArea = Basic, Suite; + Caption = 'Open Bills in Bill Gr.'; + Editable = false; + ToolTip = 'Specifies non-processed payments.'; + } + field("NoOpen[3]"; NoOpen[3]) + { + ApplicationArea = Basic, Suite; + Caption = 'Open Bills in Post. Bill Gr.'; + Editable = false; + ToolTip = 'Specifies non-processed payments.'; + } + field("NoHonored[3]"; NoHonored[3]) + { + ApplicationArea = Basic, Suite; + Caption = 'Hon. Bills in Post. Bill Gr.'; + Editable = false; + ToolTip = 'Specifies settled payments.'; + } + field("NoRejected[3]"; NoRejected[3]) + { + ApplicationArea = Basic, Suite; + Caption = 'Rej. Bills in Post. Bill Gr.'; + Editable = false; + ToolTip = 'Specifies rejected payments.'; + } + field("NoRedrawn[3]"; NoRedrawn[3]) + { + ApplicationArea = Basic, Suite; + Caption = 'Redr. Bills in Post. Bill Gr.'; + Editable = false; + ToolTip = 'Specifies recirculated payments.'; + } + field("NoHonored[4]"; NoHonored[4]) + { + ApplicationArea = Basic, Suite; + Caption = 'Hon. Closed Bills'; + Editable = false; + ToolTip = 'Specifies settled payments.'; + } + field("NoRejected[4]"; NoRejected[4]) + { + ApplicationArea = Basic, Suite; + Caption = 'Rej. Closed Bills'; + Editable = false; + ToolTip = 'Specifies rejected payments.'; + } + } + group("Amount (LCY)") + { + Caption = 'Amount (LCY)'; + field("OpenAmtLCY[1]"; OpenAmtLCY[1]) + { + ApplicationArea = Basic, Suite; + AutoFormatType = 1; + AutoFormatExpression = ''; + Caption = 'Open'; + Editable = false; + ToolTip = 'Specifies that the related payment is not processed yet. '; + + trigger OnDrillDown() + begin + DrillDownOpen(4, 1); // Cartera + end; + } + field("OpenAmtLCY[2]"; OpenAmtLCY[2]) + { + ApplicationArea = Basic, Suite; + AutoFormatType = 1; + AutoFormatExpression = ''; + Caption = 'Open'; + Editable = false; + ToolTip = 'Specifies that the related payment is not processed yet. '; + + trigger OnDrillDown() + begin + DrillDownOpen(3, 1); // Bill Group + end; + } + field("OpenAmtLCY[3]"; OpenAmtLCY[3]) + { + ApplicationArea = Basic, Suite; + AutoFormatType = 1; + AutoFormatExpression = ''; + Caption = 'Open'; + Editable = false; + ToolTip = 'Specifies that the related payment is not processed yet. '; + + trigger OnDrillDown() + begin + DrillDownOpen(1, 1); // Posted Bill Group + end; + } + field("HonoredAmtLCY[3]"; HonoredAmtLCY[3]) + { + ApplicationArea = Basic, Suite; + AutoFormatType = 1; + AutoFormatExpression = ''; + Caption = 'Honored'; + Editable = false; + ToolTip = 'Specifies that the related payment is settled. '; + + trigger OnDrillDown() + begin + DrillDownHonored(1, 1); // Posted Bill Group + end; + } + field("RejectedAmtLCY[3]"; RejectedAmtLCY[3]) + { + ApplicationArea = Basic, Suite; + AutoFormatType = 1; + AutoFormatExpression = ''; + Caption = 'Rejected'; + Editable = false; + ToolTip = 'Specifies that the related payment is rejected.'; + + trigger OnDrillDown() + begin + DrillDownRejected(1, 1); // Posted Bill Group + end; + } + field("RedrawnAmtLCY[3]"; RedrawnAmtLCY[3]) + { + ApplicationArea = Basic, Suite; + AutoFormatType = 1; + AutoFormatExpression = ''; + Caption = 'Redrawn'; + Editable = false; + ToolTip = 'Specifies that the related payment is recirculated because it was rejected when its due date arrived.'; + + trigger OnDrillDown() + begin + DrillDownRedrawn(1, 1); // Posted Bill Group + end; + } + field("HonoredAmtLCY[4]"; HonoredAmtLCY[4]) + { + ApplicationArea = Basic, Suite; + AutoFormatType = 1; + AutoFormatExpression = ''; + Caption = 'Honored'; + Editable = false; + ToolTip = 'Specifies that the related payment is settled. '; + + trigger OnDrillDown() + begin + DrillDownHonored(5, 1); // Closed Bills + end; + } + field("RejectedAmtLCY[4]"; RejectedAmtLCY[4]) + { + ApplicationArea = Basic, Suite; + AutoFormatType = 1; + AutoFormatExpression = ''; + Caption = 'Rejected'; + Editable = false; + ToolTip = 'Specifies that the related payment is rejected.'; + + trigger OnDrillDown() + begin + DrillDownRejected(5, 1); // Closed Bills + end; + } + } + group("Remaining Amt. (LCY)") + { + Caption = 'Remaining Amt. (LCY)'; + field("OpenRemainingAmtLCY[1]"; OpenRemainingAmtLCY[1]) + { + ApplicationArea = Basic, Suite; + AutoFormatType = 1; + AutoFormatExpression = ''; + Caption = 'Open'; + Editable = false; + ToolTip = 'Specifies that the related payment is not processed yet. '; + + trigger OnDrillDown() + begin + DrillDownOpen(4, 1); // Cartera + end; + } + field("OpenRemainingAmtLCY[2]"; OpenRemainingAmtLCY[2]) + { + ApplicationArea = Basic, Suite; + AutoFormatType = 1; + AutoFormatExpression = ''; + Caption = 'Open'; + Editable = false; + ToolTip = 'Specifies that the related payment is not processed yet. '; + + trigger OnDrillDown() + begin + DrillDownOpen(3, 1); // Bill Group; + end; + } + field("OpenRemainingAmtLCY[3]"; OpenRemainingAmtLCY[3]) + { + ApplicationArea = Basic, Suite; + AutoFormatType = 1; + AutoFormatExpression = ''; + Caption = 'Open'; + Editable = false; + ToolTip = 'Specifies that the related payment is not processed yet. '; + + trigger OnDrillDown() + begin + DrillDownOpen(1, 1); // Posted Bill Group + end; + } + field("HonoredRemainingAmtLCY[3]"; HonoredRemainingAmtLCY[3]) + { + ApplicationArea = Basic, Suite; + AutoFormatType = 1; + AutoFormatExpression = ''; + Caption = 'Honored'; + Editable = false; + ToolTip = 'Specifies that the related payment is settled. '; + + trigger OnDrillDown() + begin + DrillDownHonored(1, 1); // Posted Bill Group + end; + } + field("RejectedRemainingAmtLCY[3]"; RejectedRemainingAmtLCY[3]) + { + ApplicationArea = Basic, Suite; + AutoFormatType = 1; + AutoFormatExpression = ''; + Caption = 'Rejected'; + Editable = false; + ToolTip = 'Specifies that the related payment is rejected.'; + + trigger OnDrillDown() + begin + DrillDownRejected(1, 1); // Posted Bill Group + end; + } + field("RedrawnRemainingAmtLCY[3]"; RedrawnRemainingAmtLCY[3]) + { + ApplicationArea = Basic, Suite; + AutoFormatType = 1; + AutoFormatExpression = ''; + Caption = 'Redrawn'; + Editable = false; + ToolTip = 'Specifies that the related payment is recirculated because it was rejected when its due date arrived.'; + + trigger OnDrillDown() + begin + DrillDownRedrawn(1, 1); // Posted Bill Group + end; + } + field("HonoredRemainingAmtLCY[4]"; HonoredRemainingAmtLCY[4]) + { + ApplicationArea = Basic, Suite; + AutoFormatType = 1; + AutoFormatExpression = ''; + Caption = 'Honored'; + Editable = false; + ToolTip = 'Specifies that the related payment is settled. '; + + trigger OnDrillDown() + begin + DrillDownHonored(5, 1); // Closed Bills + end; + } + field("RejectedRemainingAmtLCY[4]"; RejectedRemainingAmtLCY[4]) + { + ApplicationArea = Basic, Suite; + AutoFormatType = 1; + AutoFormatExpression = ''; + Caption = 'Rejected'; + Editable = false; + ToolTip = 'Specifies that the related payment is rejected.'; + + trigger OnDrillDown() + begin + DrillDownRejected(5, 1); // Closed Bills + end; + } + } + } + } + group(Factoring) + { + Caption = 'Factoring'; + fixed(Control1903442601) + { + ShowCaption = false; + group("No. of Invoices") + { + Caption = 'No. of Invoices'; + field("NoOpen[5]"; NoOpen[5]) + { + ApplicationArea = Basic, Suite; + Caption = 'Open'; + Editable = false; + ToolTip = 'Specifies that the related payment is not processed yet. '; + } + field("NoHonored[5]"; NoHonored[5]) + { + ApplicationArea = Basic, Suite; + Caption = 'Honored'; + Editable = false; + ToolTip = 'Specifies that the related payment is settled. '; + } + field("NoRejected[5]"; NoRejected[5]) + { + ApplicationArea = Basic, Suite; + Caption = 'Rejected'; + Editable = false; + ToolTip = 'Specifies that the related payment is rejected.'; + } + } + group(Control1903422801) + { + Caption = 'Amount (LCY)'; + field("OpenAmtLCY[5]"; OpenAmtLCY[5]) + { + ApplicationArea = Basic, Suite; + AutoFormatExpression = ''; + AutoFormatType = 1; + Caption = 'Open'; + Editable = false; + ToolTip = 'Specifies that the related payment is not processed yet. '; + + trigger OnDrillDown() + begin + DrillDownOpen(0, 0); + end; + } + field("HonoredAmtLCY[5]"; HonoredAmtLCY[5]) + { + ApplicationArea = Basic, Suite; + AutoFormatType = 1; + AutoFormatExpression = ''; + Caption = 'Honored'; + Editable = false; + ToolTip = 'Specifies that the related payment is settled. '; + + trigger OnDrillDown() + begin + DrillDownHonored(0, 0); + end; + } + field("RejectedAmtLCY[5]"; RejectedAmtLCY[5]) + { + ApplicationArea = Basic, Suite; + AutoFormatType = 1; + AutoFormatExpression = ''; + Caption = 'Rejected'; + Editable = false; + ToolTip = 'Specifies that the related payment is rejected.'; + + trigger OnDrillDown() + begin + DrillDownRejected(0, 0); + end; + } + } + group(Control1907816901) + { + Caption = 'Remaining Amt. (LCY)'; + field("OpenRemainingAmtLCY[5]"; OpenRemainingAmtLCY[5]) + { + ApplicationArea = Basic, Suite; + AutoFormatType = 1; + AutoFormatExpression = ''; + Caption = 'Open'; + Editable = false; + ToolTip = 'Specifies that the related payment is not processed yet. '; + + trigger OnDrillDown() + begin + DrillDownOpen(0, 0); + end; + } + field("HonoredRemainingAmtLCY[5]"; HonoredRemainingAmtLCY[5]) + { + ApplicationArea = Basic, Suite; + AutoFormatType = 1; + AutoFormatExpression = ''; + Caption = 'Honored'; + Editable = false; + ToolTip = 'Specifies that the related payment is settled. '; + + trigger OnDrillDown() + begin + DrillDownHonored(0, 0); + end; + } + field("RejectedRemainingAmtLCY[5]"; RejectedRemainingAmtLCY[5]) + { + ApplicationArea = Basic, Suite; + AutoFormatType = 1; + AutoFormatExpression = ''; + Caption = 'Rejected'; + Editable = false; + ToolTip = 'Specifies that the related payment is rejected.'; + + trigger OnDrillDown() + begin + DrillDownRejected(0, 0); + end; + } + } + } + } + } + } + + trigger OnAfterGetRecord() + begin + UpdateDocStatistics(); + end; + +#pragma warning disable AS0107 + var + DocumentSituationFilter: array[3] of Option " ","Posted BG/PO","Closed BG/PO","BG/PO",Cartera,"Closed Documents"; + NoOpen: array[5] of Integer; + NoHonored: array[5] of Integer; + NoRejected: array[5] of Integer; + NoRedrawn: array[5] of Integer; + OpenAmtLCY: array[5] of Decimal; + HonoredAmtLCY: array[5] of Decimal; + RejectedAmtLCY: array[5] of Decimal; + RedrawnAmtLCY: array[5] of Decimal; + OpenRemainingAmtLCY: array[5] of Decimal; + RejectedRemainingAmtLCY: array[5] of Decimal; + HonoredRemainingAmtLCY: array[5] of Decimal; + RedrawnRemainingAmtLCY: array[5] of Decimal; + j: Integer; +#pragma warning restore AS0107 + + [Scope('OnPrem')] + procedure UpdateDocStatistics() + var + CustLedgEntry: Record "Cust. Ledger Entry"; + begin + DocumentSituationFilter[1] := DocumentSituationFilter::Cartera; + DocumentSituationFilter[2] := DocumentSituationFilter::"BG/PO"; + DocumentSituationFilter[3] := DocumentSituationFilter::"Posted BG/PO"; + + CustLedgEntry.SetCurrentKey("Customer No.", "Document Type", "Document Situation", "Document Status"); + CustLedgEntry.SetRange("Customer No.", Rec."No."); + for j := 1 to 5 do begin + case j of + 4: + // Closed Bill Group and Closed Documents + begin + CustLedgEntry.SetRange("Document Type", CustLedgEntry."Document Type"::Bill); + CustLedgEntry.SetFilter("Document Situation", '%1|%2', + CustLedgEntry."Document Situation"::"Closed BG/PO", + CustLedgEntry."Document Situation"::"Closed Documents"); + end; + 5: + // Invoices + begin + CustLedgEntry.SetRange("Document Type", CustLedgEntry."Document Type"::Invoice); + CustLedgEntry.SetFilter("Document Situation", '<>0'); + end; + else begin + CustLedgEntry.SetRange("Document Type", CustLedgEntry."Document Type"::Bill); + CustLedgEntry.SetRange("Document Situation", DocumentSituationFilter[j]); + end; + end; + CustLedgEntry.SetRange("Document Status", CustLedgEntry."Document Status"::Open); + CustLedgEntry.CalcSums("Amount (LCY) stats.", "Remaining Amount (LCY) stats."); + OpenAmtLCY[j] := CustLedgEntry."Amount (LCY) stats."; + OpenRemainingAmtLCY[j] := CustLedgEntry."Remaining Amount (LCY) stats."; + NoOpen[j] := CustLedgEntry.Count(); + CustLedgEntry.SetRange("Document Status"); + + CustLedgEntry.SetRange("Document Status", CustLedgEntry."Document Status"::Honored); + CustLedgEntry.CalcSums("Amount (LCY) stats.", "Remaining Amount (LCY) stats."); + HonoredAmtLCY[j] := CustLedgEntry."Amount (LCY) stats."; + HonoredRemainingAmtLCY[j] := CustLedgEntry."Remaining Amount (LCY) stats."; + NoHonored[j] := CustLedgEntry.Count(); + CustLedgEntry.SetRange("Document Status"); + + CustLedgEntry.SetRange("Document Status", CustLedgEntry."Document Status"::Rejected); + CustLedgEntry.CalcSums("Amount (LCY) stats.", "Remaining Amount (LCY) stats."); + RejectedAmtLCY[j] := CustLedgEntry."Amount (LCY) stats."; + RejectedRemainingAmtLCY[j] := CustLedgEntry."Remaining Amount (LCY) stats."; + NoRejected[j] := CustLedgEntry.Count(); + CustLedgEntry.SetRange("Document Status"); + + CustLedgEntry.SetRange("Document Status", CustLedgEntry."Document Status"::Redrawn); + CustLedgEntry.CalcSums("Amount (LCY) stats.", "Remaining Amount (LCY) stats."); + RedrawnAmtLCY[j] := CustLedgEntry."Amount (LCY) stats."; + RedrawnRemainingAmtLCY[j] := CustLedgEntry."Remaining Amount (LCY) stats."; + NoRedrawn[j] := CustLedgEntry.Count(); + CustLedgEntry.SetRange("Document Status"); + + CustLedgEntry.SetRange("Document Situation"); + end; + end; + + [Scope('OnPrem')] + procedure DrillDownOpen(Situation: Option " ","Posted BG/PO","Closed BG/PO","BG/PO",Cartera,"Closed Documents"; DocType: Option Invoice,Bill) + var + CustLedgEntry: Record "Cust. Ledger Entry"; + CustLedgEntriesForm: Page "Customer Ledger Entries"; + begin + CustLedgEntry.SetCurrentKey("Customer No.", "Document Type", "Document Situation", "Document Status"); + CustLedgEntry.SetRange("Customer No.", Rec."No."); + case Situation of + Situation::Cartera: + CustLedgEntry.SetRange("Document Situation", CustLedgEntry."Document Situation"::Cartera); + Situation::"BG/PO": + CustLedgEntry.SetRange("Document Situation", CustLedgEntry."Document Situation"::"BG/PO"); + Situation::"Posted BG/PO": + CustLedgEntry.SetRange("Document Situation", CustLedgEntry."Document Situation"::"Posted BG/PO"); + Situation::"Closed BG/PO": + CustLedgEntry.SetFilter("Document Situation", '%1|%2', + CustLedgEntry."Document Situation"::"Closed BG/PO", + CustLedgEntry."Document Situation"::"Closed Documents"); + else + CustLedgEntry.SetFilter("Document Situation", '<>0'); + end; + case DocType of + DocType::Invoice: + CustLedgEntry.SetRange("Document Type", CustLedgEntry."Document Type"::Invoice); + DocType::Bill: + CustLedgEntry.SetRange("Document Type", CustLedgEntry."Document Type"::Bill); + end; + + CustLedgEntry.SetRange("Document Status", CustLedgEntry."Document Status"::Open); + CustLedgEntriesForm.SetTableView(CustLedgEntry); + CustLedgEntriesForm.SetRecord(CustLedgEntry); + CustLedgEntriesForm.RunModal(); + CustLedgEntry.SetRange("Document Status"); + CustLedgEntry.SetRange("Document Situation"); + end; + + [Scope('OnPrem')] + procedure DrillDownHonored(Situation: Option " ","Posted BG/PO","Closed BG/PO","BG/PO",Cartera,"Closed Documents"; DocType: Option Invoice,Bill) + var + CustLedgEntry: Record "Cust. Ledger Entry"; + CustLedgEntriesForm: Page "Customer Ledger Entries"; + begin + CustLedgEntry.SetCurrentKey("Customer No.", "Document Type", "Document Situation", "Document Status"); + CustLedgEntry.SetRange("Customer No.", Rec."No."); + case Situation of + Situation::Cartera: + CustLedgEntry.SetRange("Document Situation", CustLedgEntry."Document Situation"::Cartera); + Situation::"BG/PO": + CustLedgEntry.SetRange("Document Situation", CustLedgEntry."Document Situation"::"BG/PO"); + Situation::"Posted BG/PO": + CustLedgEntry.SetRange("Document Situation", CustLedgEntry."Document Situation"::"Posted BG/PO"); + Situation::"Closed BG/PO": + CustLedgEntry.SetFilter("Document Situation", '%1|%2', + CustLedgEntry."Document Situation"::"Closed BG/PO", + CustLedgEntry."Document Situation"::"Closed Documents"); + else + CustLedgEntry.SetFilter("Document Situation", '<>0'); + end; + case DocType of + DocType::Invoice: + CustLedgEntry.SetRange("Document Type", CustLedgEntry."Document Type"::Invoice); + DocType::Bill: + CustLedgEntry.SetRange("Document Type", CustLedgEntry."Document Type"::Bill); + end; + + CustLedgEntry.SetRange("Document Status", CustLedgEntry."Document Status"::Honored); + CustLedgEntriesForm.SetTableView(CustLedgEntry); + CustLedgEntriesForm.SetRecord(CustLedgEntry); + CustLedgEntriesForm.RunModal(); + CustLedgEntry.SetRange("Document Status"); + CustLedgEntry.SetRange("Document Situation"); + end; + + [Scope('OnPrem')] + procedure DrillDownRejected(Situation: Option " ","Posted BG/PO","Closed BG/PO","BG/PO",Cartera,"Closed Documents"; DocType: Option Invoice,Bill) + var + CustLedgEntry: Record "Cust. Ledger Entry"; + CustLedgEntriesForm: Page "Customer Ledger Entries"; + begin + CustLedgEntry.SetCurrentKey("Customer No.", "Document Type", "Document Situation", "Document Status"); + CustLedgEntry.SetRange("Customer No.", Rec."No."); + case Situation of + Situation::Cartera: + CustLedgEntry.SetRange("Document Situation", CustLedgEntry."Document Situation"::Cartera); + Situation::"BG/PO": + CustLedgEntry.SetRange("Document Situation", CustLedgEntry."Document Situation"::"BG/PO"); + Situation::"Posted BG/PO": + CustLedgEntry.SetRange("Document Situation", CustLedgEntry."Document Situation"::"Posted BG/PO"); + Situation::"Closed BG/PO": + CustLedgEntry.SetFilter("Document Situation", '%1|%2', + CustLedgEntry."Document Situation"::"Closed BG/PO", + CustLedgEntry."Document Situation"::"Closed Documents"); + else + CustLedgEntry.SetFilter("Document Situation", '<>0'); + end; + case DocType of + DocType::Invoice: + CustLedgEntry.SetRange("Document Type", CustLedgEntry."Document Type"::Invoice); + DocType::Bill: + CustLedgEntry.SetRange("Document Type", CustLedgEntry."Document Type"::Bill); + end; + + CustLedgEntry.SetRange("Document Status", CustLedgEntry."Document Status"::Rejected); + CustLedgEntriesForm.SetTableView(CustLedgEntry); + CustLedgEntriesForm.SetRecord(CustLedgEntry); + CustLedgEntriesForm.RunModal(); + CustLedgEntry.SetRange("Document Status"); + CustLedgEntry.SetRange("Document Situation"); + end; + + [Scope('OnPrem')] + procedure DrillDownRedrawn(Situation: Option " ","Posted BG/PO","Closed BG/PO","BG/PO",Cartera,"Closed Documents"; DocType: Option Invoice,Bill) + var + CustLedgEntry: Record "Cust. Ledger Entry"; + CustLedgEntriesForm: Page "Customer Ledger Entries"; + begin + CustLedgEntry.SetCurrentKey("Customer No.", "Document Type", "Document Situation", "Document Status"); + CustLedgEntry.SetRange("Customer No.", Rec."No."); + case Situation of + Situation::Cartera: + CustLedgEntry.SetRange("Document Situation", CustLedgEntry."Document Situation"::Cartera); + Situation::"BG/PO": + CustLedgEntry.SetRange("Document Situation", CustLedgEntry."Document Situation"::"BG/PO"); + Situation::"Posted BG/PO": + CustLedgEntry.SetRange("Document Situation", CustLedgEntry."Document Situation"::"Posted BG/PO"); + Situation::"Closed BG/PO", Situation::"Closed Documents": + CustLedgEntry.SetFilter("Document Situation", '%1|%2', + CustLedgEntry."Document Situation"::"Closed BG/PO", + CustLedgEntry."Document Situation"::"Closed Documents"); + else + CustLedgEntry.SetFilter("Document Situation", '<>0'); + end; + case DocType of + DocType::Invoice: + CustLedgEntry.SetRange("Document Type", CustLedgEntry."Document Type"::Invoice); + DocType::Bill: + CustLedgEntry.SetRange("Document Type", CustLedgEntry."Document Type"::Bill); + end; + CustLedgEntry.SetRange("Document Status", CustLedgEntry."Document Status"::Redrawn); + CustLedgEntriesForm.SetTableView(CustLedgEntry); + CustLedgEntriesForm.SetRecord(CustLedgEntry); + CustLedgEntriesForm.RunModal(); + CustLedgEntry.SetRange("Document Status"); + CustLedgEntry.SetRange("Document Situation"); + end; +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Sales/Document/CRTSalesCreditMemo.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Document/CRTSalesCreditMemo.PageExt.al new file mode 100644 index 00000000000..0794f3918db --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Document/CRTSalesCreditMemo.PageExt.al @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Sales.Document; + +using Microsoft.Finance.ReceivablesPayables; +using Microsoft.Sales.Receivables; + +pageextension 7000170 "CRT Sales Credit Memo" extends "Sales Credit Memo" +{ + layout + { + addafter("Applies-to Doc. No.") + { + field("Applies-to Bill No."; Rec."Applies-to Bill No.") + { + ApplicationArea = Basic, Suite; + ToolTip = 'Specifies if you want to apply an open receivable bill with a credit memo from a customer.'; + } + } + addafter(Control1900316107) + { + part(Control1903433807; "Cartera Receiv. Statistics FB") + { + ApplicationArea = Basic, Suite; + SubPageLink = "No." = field("Bill-to Customer No."); + Visible = true; + } + part(Control1903433607; "Cartera Fact. Statistics FB") + { + ApplicationArea = Basic, Suite; + SubPageLink = "No." = field("Bill-to Customer No."); + Visible = true; + } + } + } +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Sales/Document/CRTSalesInvoice.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Document/CRTSalesInvoice.PageExt.al new file mode 100644 index 00000000000..e61cf8c9e31 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Document/CRTSalesInvoice.PageExt.al @@ -0,0 +1,30 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Sales.Document; + +using Microsoft.Finance.ReceivablesPayables; +using Microsoft.Sales.Receivables; + +pageextension 7000183 "CRT Sales Invoice" extends "Sales Invoice" +{ + layout + { + addafter(Control1900316107) + { + part(Control1903433807; "Cartera Receiv. Statistics FB") + { + ApplicationArea = Basic, Suite; + SubPageLink = "No." = field("Bill-to Customer No."); + Visible = true; + } + part(Control1903433607; "Cartera Fact. Statistics FB") + { + ApplicationArea = Basic, Suite; + SubPageLink = "No." = field("Bill-to Customer No."); + Visible = true; + } + } + } +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Sales/Document/CRTSalesOrder.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Document/CRTSalesOrder.PageExt.al new file mode 100644 index 00000000000..bac3eef46c1 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Document/CRTSalesOrder.PageExt.al @@ -0,0 +1,30 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Sales.Document; + +using Microsoft.Finance.ReceivablesPayables; +using Microsoft.Sales.Receivables; + +pageextension 7000182 "CRT Sales Order" extends "Sales Order" +{ + layout + { + addafter(SalesDocCheckFactbox) + { + part(Control1903433807; "Cartera Receiv. Statistics FB") + { + ApplicationArea = Basic, Suite; + SubPageLink = "No." = field("Sell-to Customer No."); + Visible = true; + } + part(Control1903433607; "Cartera Fact. Statistics FB") + { + ApplicationArea = Basic, Suite; + SubPageLink = "No." = field("Sell-to Customer No."); + Visible = true; + } + } + } +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Sales/Document/CRTSalesQuote.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Document/CRTSalesQuote.PageExt.al new file mode 100644 index 00000000000..b354842bf20 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Document/CRTSalesQuote.PageExt.al @@ -0,0 +1,30 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Sales.Document; + +using Microsoft.Finance.ReceivablesPayables; +using Microsoft.Sales.Receivables; + +pageextension 7000181 "CRT Sales Quote" extends "Sales Quote" +{ + layout + { + addfirst(Factboxes) + { + part(Control1903433807; "Cartera Receiv. Statistics FB") + { + ApplicationArea = Basic, Suite; + SubPageLink = "No." = field("Bill-to Customer No."); + Visible = true; + } + part(Control1903433607; "Cartera Fact. Statistics FB") + { + ApplicationArea = Basic, Suite; + SubPageLink = "No." = field("Bill-to Customer No."); + Visible = true; + } + } + } +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Sales/Document/CRTSalesReturnOrder.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Document/CRTSalesReturnOrder.PageExt.al new file mode 100644 index 00000000000..ecf89289e17 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Document/CRTSalesReturnOrder.PageExt.al @@ -0,0 +1,30 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Sales.Document; + +using Microsoft.Finance.ReceivablesPayables; +using Microsoft.Sales.Receivables; + +pageextension 7000006 "CRT Sales Return Order" extends "Sales Return Order" +{ + layout + { + addafter(Control1900316107) + { + part(Control1903433807; "Cartera Receiv. Statistics FB") + { + ApplicationArea = Basic, Suite; + SubPageLink = "No." = field("Bill-to Customer No."); + Visible = true; + } + part(Control1903433607; "Cartera Fact. Statistics FB") + { + ApplicationArea = Basic, Suite; + SubPageLink = "No." = field("Bill-to Customer No."); + Visible = true; + } + } + } +} \ No newline at end of file diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Sales/History/CRTSalesCrMemoHeader.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/History/CRTSalesCrMemoHeader.Codeunit.al new file mode 100644 index 00000000000..f35a05be57d --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Sales/History/CRTSalesCrMemoHeader.Codeunit.al @@ -0,0 +1,18 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Sales.History; + +using Microsoft.Sales.Receivables; + +codeunit 7000103 "CRT Sales Cr. Memo Header" +{ + Access = Internal; + + [EventSubscriber(ObjectType::Table, Database::"Sales Cr.Memo Header", 'OnLookupAppliesToDocNoOnAfterSetFilters', '', true, false)] + local procedure OnLookupAppliesToDocNoOnAfterSetFilters(var CustLedgEntry: Record "Cust. Ledger Entry"; SalesCrMemoHeader: Record "Sales Cr.Memo Header") + begin + CustLedgEntry.SetRange("Bill No.", SalesCrMemoHeader."Applies-to Bill No."); + end; +} \ No newline at end of file diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Sales/History/CRTSalesCrMemoHeader.TableExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/History/CRTSalesCrMemoHeader.TableExt.al new file mode 100644 index 00000000000..2355864adea --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Sales/History/CRTSalesCrMemoHeader.TableExt.al @@ -0,0 +1,18 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Sales.History; + +tableextension 7000098 "CRT Sales Cr.Memo Header" extends "Sales Cr.Memo Header" +{ + fields + { + field(7000000; "Applies-to Bill No."; Code[20]) + { + Caption = 'Applies-to Bill No.'; + DataClassification = CustomerContent; + } + } +} + diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Sales/History/CRTSalesInvoiceHeader.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/History/CRTSalesInvoiceHeader.Codeunit.al new file mode 100644 index 00000000000..3131a457723 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Sales/History/CRTSalesInvoiceHeader.Codeunit.al @@ -0,0 +1,19 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Sales.History; + +using Microsoft.Sales.Receivables; + +codeunit 7000104 "CRT Sales Invoice Header" +{ + Access = Internal; + + [EventSubscriber(ObjectType::Table, Database::"Sales Invoice Header", 'OnLookupAppliesToDocNoOnAfterSetFilters', '', true, false)] + local procedure OnLookupAppliesToDocNoOnAfterSetFilters(var CustLedgEntry: Record "Cust. Ledger Entry"; SalesInvoiceHeader: Record "Sales Invoice Header") + begin + CustLedgEntry.SetRange("Bill No.", SalesInvoiceHeader."Applies-to Bill No."); + end; + +} \ No newline at end of file diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Sales/History/CRTSalesInvoiceHeader.TableExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/History/CRTSalesInvoiceHeader.TableExt.al new file mode 100644 index 00000000000..759a829c064 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Sales/History/CRTSalesInvoiceHeader.TableExt.al @@ -0,0 +1,18 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Sales.History; + +tableextension 7000097 "CRT Sales Invoice Header" extends "Sales Invoice Header" +{ + fields + { + field(7000000; "Applies-to Bill No."; Code[20]) + { + Caption = 'Applies-to Bill No.'; + DataClassification = CustomerContent; + } + } +} + diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Sales/History/CRTSalesShipmentHeader.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/History/CRTSalesShipmentHeader.Codeunit.al new file mode 100644 index 00000000000..73e5d341074 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Sales/History/CRTSalesShipmentHeader.Codeunit.al @@ -0,0 +1,19 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Sales.History; + +using Microsoft.Sales.Receivables; + +codeunit 7000105 "CRT Sales Shipment Header" +{ + Access = Internal; + + [EventSubscriber(ObjectType::Table, Database::"Sales Shipment Header", 'OnLookupAppliesToDocNoOnAfterSetFilters', '', true, false)] + local procedure OnLookupAppliesToDocNoOnAfterSetFilters(var CustLedgEntry: Record "Cust. Ledger Entry"; SalesShipmentHeader: Record "Sales Shipment Header") + begin + CustLedgEntry.SetRange("Bill No.", SalesShipmentHeader."Applies-to Bill No."); + end; + +} \ No newline at end of file diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Sales/History/CRTSalesShipmentHeader.TableExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/History/CRTSalesShipmentHeader.TableExt.al new file mode 100644 index 00000000000..5cc931014c5 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Sales/History/CRTSalesShipmentHeader.TableExt.al @@ -0,0 +1,18 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Sales.History; + +tableextension 7000099 "CRT Sales Shipment Header" extends "Sales Shipment Header" +{ + fields + { + field(7000000; "Applies-to Bill No."; Code[20]) + { + Caption = 'Applies-to Bill No.'; + DataClassification = CustomerContent; + } + } +} + diff --git a/src/Layers/ES/BaseApp/Local/Sales/History/PostBGAnalysisLCYFactBox.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/History/PostBGAnalysisLCYFactBox.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/History/PostBGAnalysisLCYFactBox.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/History/PostBGAnalysisLCYFactBox.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/History/PostBGAnalysisNonLCYFB.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/History/PostBGAnalysisNonLCYFB.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/History/PostBGAnalysisNonLCYFB.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/History/PostBGAnalysisNonLCYFB.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/History/PostedBillGrMaturityLines.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/History/PostedBillGrMaturityLines.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/History/PostedBillGrMaturityLines.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/History/PostedBillGrMaturityLines.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/History/PostedBillGroup.Table.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/History/PostedBillGroup.Table.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/History/PostedBillGroup.Table.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/History/PostedBillGroup.Table.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/History/PostedBillGroupListing.Report.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/History/PostedBillGroupListing.Report.al similarity index 99% rename from src/Layers/ES/BaseApp/Local/Sales/History/PostedBillGroupListing.Report.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/History/PostedBillGroupListing.Report.al index 834ab98e324..91e38ef35d4 100644 --- a/src/Layers/ES/BaseApp/Local/Sales/History/PostedBillGroupListing.Report.al +++ b/src/Layers/ES/BaseApp/Local/Cartera/Sales/History/PostedBillGroupListing.Report.al @@ -14,7 +14,7 @@ using System.Utilities; report 7000001 "Posted Bill Group Listing" { DefaultLayout = RDLC; - RDLCLayout = './Local/Sales/History/PostedBillGroupListing.rdlc'; + RDLCLayout = './Local/Cartera/Sales/History/PostedBillGroupListing.rdlc'; ApplicationArea = Basic, Suite; Caption = 'Posted Bill Group Listing'; UsageCategory = ReportsAndAnalysis; diff --git a/src/Layers/ES/BaseApp/Local/Sales/History/PostedBillGroupListing.rdlc b/src/Layers/ES/BaseApp/Local/Cartera/Sales/History/PostedBillGroupListing.rdlc similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/History/PostedBillGroupListing.rdlc rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/History/PostedBillGroupListing.rdlc diff --git a/src/Layers/ES/BaseApp/Local/Sales/History/PostedBillGroupSelect.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/History/PostedBillGroupSelect.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/History/PostedBillGroupSelect.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/History/PostedBillGroupSelect.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/History/PostedBillGroups.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/History/PostedBillGroups.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/History/PostedBillGroups.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/History/PostedBillGroups.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/History/PostedBillGroupsAnalysis.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/History/PostedBillGroupsAnalysis.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/History/PostedBillGroupsAnalysis.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/History/PostedBillGroupsAnalysis.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/History/PostedBillGroupsList.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/History/PostedBillGroupsList.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/History/PostedBillGroupsList.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/History/PostedBillGroupsList.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/History/PostedBillGroupsMaturity.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/History/PostedBillGroupsMaturity.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/History/PostedBillGroupsMaturity.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/History/PostedBillGroupsMaturity.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/History/PostedBillsAnalysis.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/History/PostedBillsAnalysis.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/History/PostedBillsAnalysis.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/History/PostedBillsAnalysis.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/History/PostedBillsMaturityLin.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/History/PostedBillsMaturityLin.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/History/PostedBillsMaturityLin.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/History/PostedBillsMaturityLin.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/History/PostedPayableBillsMaturity.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/History/PostedPayableBillsMaturity.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/History/PostedPayableBillsMaturity.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/History/PostedPayableBillsMaturity.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/History/PostedReceivBillsMaturity.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/History/PostedReceivBillsMaturity.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/History/PostedReceivBillsMaturity.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/History/PostedReceivBillsMaturity.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Sales/Posting/CRTSalesPost.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Posting/CRTSalesPost.Codeunit.al new file mode 100644 index 00000000000..7f8cd793768 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Posting/CRTSalesPost.Codeunit.al @@ -0,0 +1,96 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Sales.Posting; + +using Microsoft.Bank.BankAccount; +using Microsoft.Finance.ReceivablesPayables; +using Microsoft.Sales.Document; +using Microsoft.Sales.Receivables; + +codeunit 7000096 "CRT Sales-Post" +{ + Access = Internal; + + var + CannotCreateCarteraDocErr: Label 'You do not have permissions to create Documents in Cartera.\Please, change the Payment Method.'; + ClosedDocumentErr: Label 'At least one document of %1 No. %2 is closed or in a Bill Group. This will avoid the document to be settled.\The posting process of %3 No. %4 will not settle any document.\ Please remove the lines for the Bill Group before posting.', Comment = '%1 = Document Type, %2 = Document No., %3 = Document Type, %4 = Document No.'; + + [EventSubscriber(ObjectType::Codeunit, Codeunit::"Sales-Post", 'OnAfterProcessPostingLines', '', true, true)] + local procedure OnAfterProcessPostingLines(var SalesHeader: Record "Sales Header"; var TotalSalesLine: Record "Sales Line"; var CustLedgEntry: Record "Cust. Ledger Entry"; InvoicePostingParameters: Record "Invoice Posting Parameters"; SuppressCommit: Boolean; EverythingInvoiced: Boolean; var Window: Dialog; HideProgressWindow: Boolean) + var + CarteraSetup: Record "Cartera Setup"; + PaymentMethod: Record "Payment Method"; + InvoiceSplitPayment: Codeunit "Invoice-Split Payment"; +#if not CLEAN29 + SalesPost: Codeunit "Sales-Post"; +#endif + begin + // Create Bills + if PaymentMethod.Get(SalesHeader."Payment Method Code") then + if (PaymentMethod."Create Bills" or PaymentMethod."Invoices to Cartera") and + (not CarteraSetup.ReadPermission) and SalesHeader.Invoice + then + Error(CannotCreateCarteraDocErr); + + if SalesHeader.Invoice and (SalesHeader."Bal. Account No." = '') and + (not SalesHeader.IsCreditDocType()) and CarteraSetup.ReadPermission + then begin + OnBeforeCreateCarteraBills(SalesHeader, CustLedgEntry, TotalSalesLine); +#if not CLEAN29 + SalesPost.RunOnBeforeCreateCarteraBills(SalesHeader, CustLedgEntry, TotalSalesLine); +#endif + InvoiceSplitPayment.SplitSalesInv( + SalesHeader, CustLedgEntry, Window, InvoicePostingParameters."Source Code", + InvoicePostingParameters."External Document No.", InvoicePostingParameters."Document No.", + -(TotalSalesLine."Amount Including VAT" - TotalSalesLine.Amount), HideProgressWindow); + end; + end; + + [IntegrationEvent(false, false)] + local procedure OnBeforeCreateCarteraBills(SalesHeader: Record "Sales Header"; var CustLedgerEntry: Record "Cust. Ledger Entry"; var TotalSalesLine: Record "Sales Line") + begin + end; + + [EventSubscriber(ObjectType::Codeunit, Codeunit::"Sales-Post", 'OnAfterCheckPostRestrictions', '', true, true)] + local procedure OnAfterCheckPostRestrictions(var SalesHeader: Record "Sales Header") + begin + TestSalesEffects(SalesHeader); + end; + + internal procedure TestSalesEffects(SalesHeader: Record "Sales Header") + var + CustLedgEntry: Record "Cust. Ledger Entry"; + ShowError: Boolean; + begin + ShowError := false; + if SalesHeader."Document Type" = SalesHeader."Document Type"::"Credit Memo" then begin + CustLedgEntry.SetCurrentKey("Document No.", "Document Type", "Customer No."); + CustLedgEntry.SetFilter("Document Type", '%1|%2', CustLedgEntry."Document Type"::Invoice, + CustLedgEntry."Document Type"::Bill); + CustLedgEntry.SetFilter("Document Situation", '<>%1', CustLedgEntry."Document Situation"::" "); + CustLedgEntry.SetRange("Customer No.", SalesHeader."Bill-to Customer No."); + CustLedgEntry.SetRange(Open, true); + + if CustLedgEntry.Find('-') then + repeat + if CustLedgEntry."Document Situation" <> CustLedgEntry."Document Situation"::Cartera then + if not ((CustLedgEntry."Document Situation" in + [CustLedgEntry."Document Situation"::"Closed Documents", + CustLedgEntry."Document Situation"::"Closed BG/PO"]) and + (CustLedgEntry."Document Status" = CustLedgEntry."Document Status"::Rejected)) + then + ShowError := true; + until (CustLedgEntry.Next() = 0) or ShowError; + + if ShowError then + Error( + ClosedDocumentErr, + Format(CustLedgEntry."Document Type"), + Format(CustLedgEntry."Document No."), + Format(SalesHeader."Document Type"), + Format(SalesHeader."No.")); + end; + end; +} diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/BGAnalysisFactBox.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BGAnalysisFactBox.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/BGAnalysisFactBox.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BGAnalysisFactBox.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/BankAccountInformationFB.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BankAccountInformationFB.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/BankAccountInformationFB.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BankAccountInformationFB.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/BankAccountSelection.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BankAccountSelection.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/BankAccountSelection.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BankAccountSelection.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/BankCatPostRecBillsMatrix.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BankCatPostRecBillsMatrix.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/BankCatPostRecBillsMatrix.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BankCatPostRecBillsMatrix.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/BankCatPostedReceivBills.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BankCatPostedReceivBills.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/BankCatPostedReceivBills.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BankCatPostedReceivBills.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/BankSummBillGroup.Report.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BankSummBillGroup.Report.al similarity index 99% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/BankSummBillGroup.Report.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BankSummBillGroup.Report.al index d93df0d96c7..e7c3a0a8bc2 100644 --- a/src/Layers/ES/BaseApp/Local/Sales/Receivables/BankSummBillGroup.Report.al +++ b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BankSummBillGroup.Report.al @@ -10,7 +10,7 @@ using Microsoft.Foundation.Address; report 7000004 "Bank - Summ. Bill Group" { DefaultLayout = RDLC; - RDLCLayout = './Local/Sales/Receivables/BankSummBillGroup.rdlc'; + RDLCLayout = './Local/Cartera/Sales/Receivables/BankSummBillGroup.rdlc'; ApplicationArea = Basic, Suite; Caption = 'Bank - Summ. Bill Group'; UsageCategory = ReportsAndAnalysis; diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/BankSummBillGroup.rdlc b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BankSummBillGroup.rdlc similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/BankSummBillGroup.rdlc rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BankSummBillGroup.rdlc diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/BatchSettlPostedBillGrs.Report.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BatchSettlPostedBillGrs.Report.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/BatchSettlPostedBillGrs.Report.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BatchSettlPostedBillGrs.Report.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/BillGroup.Table.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BillGroup.Table.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/BillGroup.Table.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BillGroup.Table.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/BillGroupListing.Report.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BillGroupListing.Report.al similarity index 99% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/BillGroupListing.Report.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BillGroupListing.Report.al index 41cb0d12bc9..b5661d75748 100644 --- a/src/Layers/ES/BaseApp/Local/Sales/Receivables/BillGroupListing.Report.al +++ b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BillGroupListing.Report.al @@ -14,7 +14,7 @@ using System.Utilities; report 7000000 "Bill Group Listing" { DefaultLayout = RDLC; - RDLCLayout = './Local/Sales/Receivables/BillGroupListing.rdlc'; + RDLCLayout = './Local/Cartera/Sales/Receivables/BillGroupListing.rdlc'; ApplicationArea = Basic, Suite; Caption = 'Bill Group Listing'; UsageCategory = ReportsAndAnalysis; diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/BillGroupListing.rdlc b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BillGroupListing.rdlc similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/BillGroupListing.rdlc rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BillGroupListing.rdlc diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/BillGroupTest.Report.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BillGroupTest.Report.al similarity index 99% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/BillGroupTest.Report.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BillGroupTest.Report.al index c3fc6f30157..608c620529b 100644 --- a/src/Layers/ES/BaseApp/Local/Sales/Receivables/BillGroupTest.Report.al +++ b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BillGroupTest.Report.al @@ -13,7 +13,7 @@ using System.Utilities; report 7000008 "Bill Group - Test" { DefaultLayout = RDLC; - RDLCLayout = './Local/Sales/Receivables/BillGroupTest.rdlc'; + RDLCLayout = './Local/Cartera/Sales/Receivables/BillGroupTest.rdlc'; Caption = 'Bill Group - Test'; dataset diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/BillGroupTest.rdlc b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BillGroupTest.rdlc similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/BillGroupTest.rdlc rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BillGroupTest.rdlc diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/BillGroups.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BillGroups.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/BillGroups.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BillGroups.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/BillGroupsAnalysis.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BillGroupsAnalysis.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/BillGroupsAnalysis.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BillGroupsAnalysis.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/BillGroupsList.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BillGroupsList.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/BillGroupsList.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BillGroupsList.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/BillGroupsMaturity.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BillGroupsMaturity.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/BillGroupsMaturity.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BillGroupsMaturity.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/BillgroupExportN19.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BillgroupExportN19.Codeunit.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/BillgroupExportN19.Codeunit.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BillgroupExportN19.Codeunit.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/BillgroupExportN19.Report.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BillgroupExportN19.Report.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/BillgroupExportN19.Report.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BillgroupExportN19.Report.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/BillgroupExportN32.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BillgroupExportN32.Codeunit.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/BillgroupExportN32.Codeunit.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BillgroupExportN32.Codeunit.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/BillgroupExportN32.Report.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BillgroupExportN32.Report.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/BillgroupExportN32.Report.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BillgroupExportN32.Report.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/BillgroupExportN58.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BillgroupExportN58.Codeunit.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/BillgroupExportN58.Codeunit.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BillgroupExportN58.Codeunit.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/BillgroupExportN58.Report.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BillgroupExportN58.Report.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/BillgroupExportN58.Report.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BillgroupExportN58.Report.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/BillgroupExportfactoring.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BillgroupExportfactoring.Codeunit.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/BillgroupExportfactoring.Codeunit.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BillgroupExportfactoring.Codeunit.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/BillgroupExportfactoring.Report.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BillgroupExportfactoring.Report.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/BillgroupExportfactoring.Report.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/BillgroupExportfactoring.Report.al diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/CRTApplyCustomerEntries.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/CRTApplyCustomerEntries.PageExt.al new file mode 100644 index 00000000000..af7423c92d7 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/CRTApplyCustomerEntries.PageExt.al @@ -0,0 +1,33 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Sales.Receivables; + +pageextension 7000191 "CRTApplyCustomerEntries" extends "Apply Customer Entries" +{ + layout + { + addafter("Document No.") + { + field("Bill No."; Rec."Bill No.") + { + ApplicationArea = Basic, Suite; + Editable = false; + ToolTip = 'Specifies the bill number related to the customer entry.'; + } + field("Document Status"; Rec."Document Status") + { + ApplicationArea = Basic, Suite; + Editable = false; + ToolTip = 'Specifies the status of the document.'; + } + field("Document Situation"; Rec."Document Situation") + { + ApplicationArea = Basic, Suite; + Editable = false; + ToolTip = 'Specifies the document location.'; + } + } + } +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/CRTCustEntryApplyPostedEnt.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/CRTCustEntryApplyPostedEnt.Codeunit.al new file mode 100644 index 00000000000..f4c8426c0d3 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/CRTCustEntryApplyPostedEnt.Codeunit.al @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Sales.Receivables; + +using Microsoft.Finance.GeneralLedger.Journal; +using Microsoft.Finance.GeneralLedger.Posting; +using Microsoft.Finance.ReceivablesPayables; + +codeunit 7000112 "CRTCustEntryApplyPostedEnt" +{ + var + ApplicationEntryDescriptionLbl: Label 'Application of %1 %2', Comment = '%1 = Document Type, %2 = Document No.'; + ApplicationBillDescriptionLbl: Label 'Application of %1 %2/%3', Comment = '%1 = Document Type, %2 = Document No., %3 = Bill No.'; + CarteraApplyPositionErr: Label 'To apply a set of entries containing bills, rejected invoices or invoices to cartera, the cursor should be positioned on an entry different than bill type, rejected invoice or invoices to cartera.'; + UnapplyBlankedDocTypeErr: Label 'You cannot unapply the entries because one entry has a blank document type.'; + + [EventSubscriber(ObjectType::Codeunit, Codeunit::"CustEntry-Apply Posted Entries", 'OnBeforeApply', '', true, false)] + local procedure OnBeforeApply(var CustLedgerEntry: Record "Cust. Ledger Entry"; var DocumentNo: Code[20]; var ApplicationDate: Date) + begin + if (CustLedgerEntry."Document Type" = CustLedgerEntry."Document Type"::Bill) or + ((CustLedgerEntry."Document Type" = CustLedgerEntry."Document Type"::Invoice) and + (CustLedgerEntry."Document Situation" = CustLedgerEntry."Document Situation"::"Closed BG/PO") and + (CustLedgerEntry."Document Status" = CustLedgerEntry."Document Status"::Rejected)) or + ((CustLedgerEntry."Document Type" = CustLedgerEntry."Document Type"::Invoice) and + (CustLedgerEntry."Document Situation" = CustLedgerEntry."Document Situation"::Cartera) and + (CustLedgerEntry."Document Status" = CustLedgerEntry."Document Status"::Open)) + then + Error(CarteraApplyPositionErr); + end; + + [EventSubscriber(ObjectType::Codeunit, Codeunit::"CustEntry-Apply Posted Entries", 'OnBeforePostApplyCustLedgEntry', '', true, false)] + local procedure OnBeforePostApplyCustLedgEntry(var GenJournalLine: Record "Gen. Journal Line"; CustLedgerEntry: Record "Cust. Ledger Entry"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; ApplyUnapplyParameters: Record "Apply Unapply Parameters") + begin + if CustLedgerEntry."Document Type" <> CustLedgerEntry."Document Type"::Bill then + GenJournalLine.Description := StrSubstNo(ApplicationEntryDescriptionLbl, CustLedgerEntry."Document Type", CustLedgerEntry."Document No.") + else + GenJournalLine.Description := StrSubstNo(ApplicationBillDescriptionLbl, CustLedgerEntry."Document Type", CustLedgerEntry."Document No.", CustLedgerEntry."Bill No."); + + GenJnlPostLine.SetIDBillSettlement(IsToSetIDBillSettlement(CustLedgerEntry)); + end; + + [EventSubscriber(ObjectType::Codeunit, Codeunit::"CustEntry-Apply Posted Entries", 'OnAfterCheckInitialDocumentType', '', true, false)] + local procedure OnAfterCheckInitialDocumentType(var DtldCustLedgEntry: Record "Detailed Cust. Ledg. Entry") + begin + if DtldCustLedgEntry."Initial Document Type" = DtldCustLedgEntry."Initial Document Type"::" " then + Error(UnapplyBlankedDocTypeErr); + end; + + [EventSubscriber(ObjectType::Codeunit, Codeunit::"CustEntry-Apply Posted Entries", 'OnPostUnApplyCustomerCommitOnAfterSetFilters', '', true, false)] + local procedure OnPostUnApplyCustomerCommitOnAfterSetFilters(var DetailedCustLedgEntry: Record "Detailed Cust. Ledg. Entry"; DetailedCustLedgEntry2: Record "Detailed Cust. Ledg. Entry") + begin + if DetailedCustLedgEntry.FindSet() then + repeat + if DetailedCustLedgEntry."Initial Document Type" = DetailedCustLedgEntry."Initial Document Type"::" " then + Error(UnapplyBlankedDocTypeErr); + until DetailedCustLedgEntry.Next() = 0; + end; + + local procedure BeAppliedToBill(CustLedgEntry2: Record "Cust. Ledger Entry"): Boolean + var + CustLedgEntry3: Record "Cust. Ledger Entry"; + begin + CustLedgEntry3.SetCurrentKey("Applies-to ID", "Document Type"); + CustLedgEntry3.SetRange("Applies-to ID", CustLedgEntry2."Applies-to ID"); + CustLedgEntry3.SetRange("Document Type", CustLedgEntry2."Document Type"::Bill); + exit(not CustLedgEntry3.IsEmpty()); + end; + + local procedure BeAppliedToInvoiceToCartera(CustLedgEntry2: Record "Cust. Ledger Entry"): Boolean + var + CustLedgEntry3: Record "Cust. Ledger Entry"; + begin + CustLedgEntry3.SetCurrentKey("Applies-to ID", "Document Type", "Document Situation", "Document Status"); + CustLedgEntry3.SetRange("Applies-to ID", CustLedgEntry2."Applies-to ID"); + CustLedgEntry3.SetRange("Document Type", CustLedgEntry2."Document Type"::Invoice); + CustLedgEntry3.SetRange("Document Situation", CustLedgEntry3."Document Situation"::"Closed BG/PO"); + CustLedgEntry3.SetRange("Document Status", CustLedgEntry3."Document Status"::Rejected); + exit(not CustLedgEntry3.IsEmpty()); + end; + + local procedure IsToSetIDBillSettlement(CustLedgEntry2: Record "Cust. Ledger Entry"): Boolean + begin + if CustLedgEntry2."Applies-to ID" = '' then + exit(false); + if BeAppliedToBill(CustLedgEntry2) then + exit(true); + exit(BeAppliedToInvoiceToCartera(CustLedgEntry2)); + end; +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/CRTCustEntrySetApplID.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/CRTCustEntrySetApplID.Codeunit.al new file mode 100644 index 00000000000..6996c597347 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/CRTCustEntrySetApplID.Codeunit.al @@ -0,0 +1,39 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Sales.Receivables; + +using Microsoft.Finance.ReceivablesPayables; + +codeunit 7000113 "CRTCustEntrySetApplID" +{ + var + CannotBeAppliedErr: Label '%1 cannot be applied, since it is included in a bill group.', Comment = '%1 = Description'; + CannotBeAppliedTryAgainErr: Label '%1 cannot be applied, since it is included in a bill group. Remove it from its bill group and try again.', Comment = '%1 = Description'; + + [EventSubscriber(ObjectType::Codeunit, Codeunit::"Cust. Entry-SetAppl.ID", 'OnBeforeUpdateCustLedgerEntry', '', true, false)] + local procedure OnBeforeUpdateCustLedgerEntry(var TempCustLedgerEntry: Record "Cust. Ledger Entry" temporary; ApplyingCustLedgerEntry: Record "Cust. Ledger Entry"; AppliesToID: Code[50]; var IsHandled: Boolean; var CustEntryApplID: Code[50]) + var + CustLedgerEntry: Record "Cust. Ledger Entry"; + CarteraDoc: Record "Cartera Doc."; + CarteraSetup: Record "Cartera Setup"; + begin + CustLedgerEntry.Copy(TempCustLedgerEntry); + + if CustLedgerEntry."Document Situation" = CustLedgerEntry."Document Situation"::"Posted BG/PO" then + Error(CannotBeAppliedErr, CustLedgerEntry.Description); + if ApplyingCustLedgerEntry."Document Situation" = ApplyingCustLedgerEntry."Document Situation"::"Posted BG/PO" then + Error(CannotBeAppliedErr, ApplyingCustLedgerEntry.Description); + + if not CarteraSetup.ReadPermission then + exit; + + if not (CustLedgerEntry."Document Type" in [CustLedgerEntry."Document Type"::Bill, CustLedgerEntry."Document Type"::Invoice]) then + exit; + + if CarteraDoc.Get(CarteraDoc.Type::Receivable, CustLedgerEntry."Entry No.") then + if CarteraDoc."Bill Gr./Pmt. Order No." <> '' then + Error(CannotBeAppliedTryAgainErr, CustLedgerEntry.Description); + end; +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/CRTCustLedgerEntry.Codeunit.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/CRTCustLedgerEntry.Codeunit.al new file mode 100644 index 00000000000..882047af1bd --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/CRTCustLedgerEntry.Codeunit.al @@ -0,0 +1,58 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Sales.Receivables; + +using Microsoft.Finance.GeneralLedger.Journal; +using Microsoft.Finance.ReceivablesPayables; + +codeunit 7000088 "CRT Cust. Ledger Entry" +{ + + [EventSubscriber(ObjectType::Table, Database::"Cust. Ledger Entry", OnAfterValidateEvent, 'Due Date', true, false)] + local procedure DueDateOnAfterValidate(var Rec: Record "Cust. Ledger Entry"; var xRec: Record "Cust. Ledger Entry"; CurrFieldNo: Integer) + var + DocumentMisc: Codeunit "Document-Misc"; + begin + if Rec."Document Situation" <> Rec."Document Situation"::" " then + DocumentMisc.UpdateReceivableDueDate(Rec); + end; + + [EventSubscriber(ObjectType::Table, Database::"Cust. Ledger Entry", OnAfterValidateEvent, 'Payment Method Code', true, false)] + local procedure PaymentMethodCodeOnAfterValidate(var Rec: Record "Cust. Ledger Entry"; var xRec: Record "Cust. Ledger Entry"; CurrFieldNo: Integer) + var + CarteraDoc: Record "Cartera Doc."; + begin + if Rec."Payment Method Code" <> xRec."Payment Method Code" then begin + Rec.ValidatePaymentMethod(); + CarteraDoc.UpdatePaymentMethodCode( + Rec."Document No.", Rec."Customer No.", Rec."Bill No.", Rec."Payment Method Code") + end; + end; + + [EventSubscriber(ObjectType::Table, Database::"Cust. Ledger Entry", OnAfterCopyCustLedgerEntryFromGenJnlLine, '', true, false)] + local procedure OnAfterCopyCustLedgerEntryFromGenJnlLine(var CustLedgerEntry: Record "Cust. Ledger Entry"; GenJournalLine: Record "Gen. Journal Line") + begin + CustLedgerEntry."Bill No." := GenJournalLine."Bill No."; + CustLedgerEntry."Applies-to Bill No." := GenJournalLine."Applies-to Bill No."; + end; + + [EventSubscriber(ObjectType::Table, Database::"Cust. Ledger Entry", OnSetApplyToFiltersOnBeforeSetFilters, '', true, false)] + local procedure OnSetApplyToFiltersOnBeforeSetFilters(var Rec: Record "Cust. Ledger Entry") + begin + Rec.SetFilter("Document Situation", '<>%1', Rec."Document Situation"::"Posted BG/PO"); + end; + + [EventSubscriber(ObjectType::Table, Database::"Cust. Ledger Entry", OnAfterSetAppliesToDocFilters, '', true, false)] + local procedure OnAfterSetAppliesToDocFilters(var Rec: Record "Cust. Ledger Entry"; var GenJnlLine: Record "Gen. Journal Line") + begin + Rec.SetRange("Bill No.", GenJnlLine."Applies-to Bill No."); + end; + + [EventSubscriber(ObjectType::Table, Database::"Cust. Ledger Entry", OnAfterClearDocumentFilters, '', true, false)] + local procedure OnAfterClearDocumentFilters(var Rec: Record "Cust. Ledger Entry") + begin + Rec.SetRange("Bill No."); + end; +} \ No newline at end of file diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/CRTCustLedgerEntry.TableExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/CRTCustLedgerEntry.TableExt.al new file mode 100644 index 00000000000..ba19959c93c --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/CRTCustLedgerEntry.TableExt.al @@ -0,0 +1,157 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Sales.Receivables; + +using Microsoft.Bank.BankAccount; +using Microsoft.Finance.ReceivablesPayables; + +tableextension 7000089 "CRT Cust. Ledger Entry" extends "Cust. Ledger Entry" +{ + fields + { + field(7000000; "Bill No."; Code[20]) + { + Caption = 'Bill No.'; + DataClassification = CustomerContent; + } + field(7000001; "Document Situation"; Enum Microsoft."ES Document Situation") + { + Caption = 'Document Situation'; + DataClassification = CustomerContent; + } + field(7000002; "Applies-to Bill No."; Code[20]) + { + Caption = 'Applies-to Bill No.'; + DataClassification = CustomerContent; + } + field(7000003; "Document Status"; Enum "ES Document Status") + { + Caption = 'Document Status'; + DataClassification = CustomerContent; + } + field(7000005; "Remaining Amount (LCY) stats."; Decimal) + { + AutoFormatType = 1; + AutoFormatExpression = ''; + Caption = 'Remaining Amount (LCY) stats.'; + DataClassification = CustomerContent; + } + field(7000006; "Amount (LCY) stats."; Decimal) + { + AutoFormatType = 1; + AutoFormatExpression = ''; + Caption = 'Amount (LCY) stats.'; + DataClassification = CustomerContent; + } + } + + keys + { + key(Key7000000; "Bill No.") + { + } + key(Key7000001; "Document Situation", "Document Status") + { + SumIndexFields = "Remaining Amount (LCY) stats.", "Amount (LCY) stats."; + } + } + + var + CannotChangePmtMethodErr: Label 'For Cartera-based bills and invoices, you cannot change the Payment Method Code to this value.'; + CheckBillSituationGroupErr: Label '%1 cannot be applied because it is included in a bill group. To apply the document, remove it from the bill group and try again.', Comment = '%1 - document type and number'; + CheckBillSituationPostedErr: Label '%1 cannot be applied because it is included in a posted bill group.', Comment = '%1 - document type and number'; + +#if not CLEAN27 + [Obsolete('Replaced by W1 version of procedure', '27.0')] + procedure SetApplyToFilters(CustomerNo: Code[20]; ApplyDocType: Option; ApplyDocNo: Code[20]; ApplyBillNo: Code[20]; ApplyAmount: Decimal) + begin + SetCurrentKey("Customer No.", Open, Positive, "Due Date"); + SetRange("Customer No.", CustomerNo); + SetRange(Open, true); + SetFilter("Document Situation", '<>%1', "Document Situation"::"Posted BG/PO"); + if ApplyDocNo <> '' then begin + SetRange("Document Type", ApplyDocType); + SetRange("Document No.", ApplyDocNo); + if ApplyBillNo <> '' then + SetRange("Bill No.", ApplyBillNo); + if FindFirst() then; + SetRange("Document Type"); + SetRange("Document No."); + SetRange("Bill No."); + end else + if ApplyDocType <> 0 then begin + SetRange("Document Type", ApplyDocType); + if FindFirst() then; + SetRange("Document Type"); + end else + if ApplyAmount <> 0 then begin + SetRange(Positive, ApplyAmount < 0); + if FindFirst() then; + SetRange(Positive); + end; + end; +#endif + +#if not CLEAN27 + [Obsolete('Replaced by W1 version of procedure', '27.0')] + procedure SetAmountToApply(AppliesToDocNo: Code[20]; CustomerNo: Code[20]; var AppliesToBillNo: Code[20]) + begin + SetAmountToApply(AppliesToDocNo, CustomerNo); + AppliesToBillNo := "Bill No."; + end; +#endif + + procedure ValidatePaymentMethod() + var + PaymentMethod: Record "Payment Method"; + begin + PaymentMethod.Get("Payment Method Code"); + if (("Document Type" = "Document Type"::Bill) and not PaymentMethod."Create Bills") or + (("Document Type" = "Document Type"::Invoice) and + ("Document Situation" <> "Document Situation"::" ") and + not PaymentMethod."Invoices to Cartera") + then + Error(CannotChangePmtMethodErr); + end; + + [Scope('OnPrem')] + procedure PrintBill(ShowRequestForm: Boolean) + var + CarteraReportSelection: Record "Cartera Report Selections"; + CustLedgEntry: Record "Cust. Ledger Entry"; + begin + CustLedgEntry.Copy(Rec); + CarteraReportSelection.SetRange(Usage, CarteraReportSelection.Usage::Bill); + CarteraReportSelection.SetFilter("Report ID", '<>0'); + CarteraReportSelection.Find('-'); + repeat + REPORT.RunModal(CarteraReportSelection."Report ID", ShowRequestForm, false, CustLedgEntry); + until CarteraReportSelection.Next() = 0; + end; + + [Scope('OnPrem')] + procedure CheckBillSituation() + var + CarteraDoc: Record "Cartera Doc."; + PostedCarteraDoc: Record "Posted Cartera Doc."; + begin + OnBeforeCheckBillSituation(Rec); + + case true of + CarteraDoc.Get(CarteraDoc.Type::Receivable, "Entry No."): + if CarteraDoc."Bill Gr./Pmt. Order No." <> '' then + Error(CheckBillSituationGroupErr, Description); + PostedCarteraDoc.Get(PostedCarteraDoc.Type::Receivable, "Entry No."): + if PostedCarteraDoc."Bill Gr./Pmt. Order No." <> '' then + Error(CheckBillSituationPostedErr, Description); + end; + end; + + [IntegrationEvent(false, false)] + local procedure OnBeforeCheckBillSituation(var CustLedgerEntry: Record "Cust. Ledger Entry") + begin + end; + +} \ No newline at end of file diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/CRTCustomerLedgerEntries.PageExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/CRTCustomerLedgerEntries.PageExt.al new file mode 100644 index 00000000000..3b807bf89ee --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/CRTCustomerLedgerEntries.PageExt.al @@ -0,0 +1,32 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Sales.Receivables; + +pageextension 7000011 "CRT Customer Ledger Entries" extends "Customer Ledger Entries" +{ + layout + { + addafter("Document No.") + { + field("Bill No."; Rec."Bill No.") + { + ApplicationArea = Basic, Suite; + Editable = false; + ToolTip = 'Specifies the bill number related to the customer entry.'; + } + field("Document Situation"; Rec."Document Situation") + { + ApplicationArea = Basic, Suite; + ToolTip = 'Specifies the document location.'; + } + field("Document Status"; Rec."Document Status") + { + ApplicationArea = Basic, Suite; + Editable = false; + ToolTip = 'Specifies the status of the document.'; + } + } + } +} diff --git a/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/CRTDetailedCustLedgEntry.TableExt.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/CRTDetailedCustLedgEntry.TableExt.al new file mode 100644 index 00000000000..4b8625f87a3 --- /dev/null +++ b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/CRTDetailedCustLedgEntry.TableExt.al @@ -0,0 +1,34 @@ +// ------------------------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// ------------------------------------------------------------------------------------------------ +namespace Microsoft.Sales.Receivables; + +using Microsoft; + +tableextension 7000100 "CRT DetailedCustLedgEntry" extends "Detailed Cust. Ledg. Entry" +{ + fields + { + field(7000000; "Bill No."; Code[20]) + { + Caption = 'Bill No.'; + DataClassification = CustomerContent; + } + field(7000001; "Document Situation"; Enum "ES Document Situation") + { + Caption = 'Document Situation'; + DataClassification = CustomerContent; + } + field(7000002; "Applies-to Bill No."; Code[20]) + { + Caption = 'Applies-to Bill No.'; + DataClassification = CustomerContent; + } + field(7000003; "Document Status"; Enum "ES Document Status") + { + Caption = 'Document Status'; + DataClassification = CustomerContent; + } + } +} diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/CarteraReceivStatisticsFB.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/CarteraReceivStatisticsFB.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/CarteraReceivStatisticsFB.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/CarteraReceivStatisticsFB.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/CategorizeDocuments.Report.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/CategorizeDocuments.Report.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/CategorizeDocuments.Report.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/CategorizeDocuments.Report.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/CategorizePostedDocuments.Report.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/CategorizePostedDocuments.Report.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/CategorizePostedDocuments.Report.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/CategorizePostedDocuments.Report.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/ClosedBillGroup.Table.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/ClosedBillGroup.Table.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/ClosedBillGroup.Table.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/ClosedBillGroup.Table.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/ClosedBillGroupListing.Report.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/ClosedBillGroupListing.Report.al similarity index 99% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/ClosedBillGroupListing.Report.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/ClosedBillGroupListing.Report.al index e3e84cf6956..d8d3b117d9b 100644 --- a/src/Layers/ES/BaseApp/Local/Sales/Receivables/ClosedBillGroupListing.Report.al +++ b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/ClosedBillGroupListing.Report.al @@ -14,7 +14,7 @@ using System.Utilities; report 7000002 "Closed Bill Group Listing" { DefaultLayout = RDLC; - RDLCLayout = './Local/Sales/Receivables/ClosedBillGroupListing.rdlc'; + RDLCLayout = './Local/Cartera/Sales/Receivables/ClosedBillGroupListing.rdlc'; ApplicationArea = Basic, Suite; Caption = 'Closed Bill Group Listing'; UsageCategory = ReportsAndAnalysis; diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/ClosedBillGroupListing.rdlc b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/ClosedBillGroupListing.rdlc similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/ClosedBillGroupListing.rdlc rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/ClosedBillGroupListing.rdlc diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/ClosedBillGroups.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/ClosedBillGroups.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/ClosedBillGroups.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/ClosedBillGroups.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/ClosedBillGroupsAnalysis.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/ClosedBillGroupsAnalysis.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/ClosedBillGroupsAnalysis.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/ClosedBillGroupsAnalysis.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/ClosedBillGroupsList.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/ClosedBillGroupsList.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/ClosedBillGroupsList.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/ClosedBillGroupsList.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/CustomerPmtAddress.Table.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/CustomerPmtAddress.Table.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/CustomerPmtAddress.Table.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/CustomerPmtAddress.Table.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/CustomerRating.Table.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/CustomerRating.Table.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/CustomerRating.Table.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/CustomerRating.Table.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/CustomerRatings.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/CustomerRatings.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/CustomerRatings.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/CustomerRatings.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/DocsinBGSubform.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/DocsinBGSubform.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/DocsinBGSubform.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/DocsinBGSubform.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/DocsinClosedBGSubform.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/DocsinClosedBGSubform.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/DocsinClosedBGSubform.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/DocsinClosedBGSubform.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/DocsinPostedBGSubform.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/DocsinPostedBGSubform.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/DocsinPostedBGSubform.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/DocsinPostedBGSubform.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/ESBillType.Enum.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/ESBillType.Enum.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/ESBillType.Enum.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/ESBillType.Enum.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/ESDocumentStatus.Enum.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/ESDocumentStatus.Enum.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/ESDocumentStatus.Enum.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/ESDocumentStatus.Enum.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/PartialSettlReceivable.Report.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/PartialSettlReceivable.Report.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/PartialSettlReceivable.Report.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/PartialSettlReceivable.Report.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/PostBillGroup.Report.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/PostBillGroup.Report.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/PostBillGroup.Report.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/PostBillGroup.Report.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/ReceivableBill.Report.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/ReceivableBill.Report.al similarity index 99% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/ReceivableBill.Report.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/ReceivableBill.Report.al index 3683197cecc..cb474c8eb17 100644 --- a/src/Layers/ES/BaseApp/Local/Sales/Receivables/ReceivableBill.Report.al +++ b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/ReceivableBill.Report.al @@ -14,7 +14,7 @@ using Microsoft.Sales.History; report 7000003 "Receivable Bill" { DefaultLayout = RDLC; - RDLCLayout = './Local/Sales/Receivables/ReceivableBill.rdlc'; + RDLCLayout = './Local/Cartera/Sales/Receivables/ReceivableBill.rdlc'; Caption = 'Receivable Bill'; dataset diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/ReceivableBill.rdlc b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/ReceivableBill.rdlc similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/ReceivableBill.rdlc rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/ReceivableBill.rdlc diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/ReceivableClosedCarteraDocs.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/ReceivableClosedCarteraDocs.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/ReceivableClosedCarteraDocs.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/ReceivableClosedCarteraDocs.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/ReceivablesCarteraDocs.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/ReceivablesCarteraDocs.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/ReceivablesCarteraDocs.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/ReceivablesCarteraDocs.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/RedrawReceivableBills.Report.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/RedrawReceivableBills.Report.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/RedrawReceivableBills.Report.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/RedrawReceivableBills.Report.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/SettleDocsinPostBillGr.Report.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/SettleDocsinPostBillGr.Report.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/SettleDocsinPostBillGr.Report.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/SettleDocsinPostBillGr.Report.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/Suffix.Table.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/Suffix.Table.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/Suffix.Table.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/Suffix.Table.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Receivables/Suffixes.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/Suffixes.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Receivables/Suffixes.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Receivables/Suffixes.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Reports/ClosedBGAnalysisLCYFB.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Reports/ClosedBGAnalysisLCYFB.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Reports/ClosedBGAnalysisLCYFB.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Reports/ClosedBGAnalysisLCYFB.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Reports/ClosedBGAnalysisNonLCYFB.Page.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Reports/ClosedBGAnalysisNonLCYFB.Page.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Reports/ClosedBGAnalysisNonLCYFB.Page.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Reports/ClosedBGAnalysisNonLCYFB.Page.al diff --git a/src/Layers/ES/BaseApp/Local/Sales/Reports/CustomerDuePayments.Report.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Reports/CustomerDuePayments.Report.al similarity index 78% rename from src/Layers/ES/BaseApp/Local/Sales/Reports/CustomerDuePayments.Report.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Reports/CustomerDuePayments.Report.al index bedcd2795ca..92007e85aa2 100644 --- a/src/Layers/ES/BaseApp/Local/Sales/Reports/CustomerDuePayments.Report.al +++ b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Reports/CustomerDuePayments.Report.al @@ -12,7 +12,7 @@ using System.Utilities; report 7000006 "Customer - Due Payments" { DefaultLayout = RDLC; - RDLCLayout = './Local/Sales/Reports/CustomerDuePayments.rdlc'; + RDLCLayout = './Local/Cartera/Sales/Reports/CustomerDuePayments.rdlc'; ApplicationArea = Basic, Suite; Caption = 'Customer - Due Payments'; UsageCategory = ReportsAndAnalysis; @@ -125,7 +125,7 @@ report 7000006 "Customer - Due Payments" { AutoFormatType = 1; } - column(STRSUBSTNO_Text1100000_Date__Period_Name__DATE2DMY_Date__Period_Start__3__; StrSubstNo(Text1100000, Date."Period Name", Date2DMY(Date."Period Start", 3))) + column(STRSUBSTNO_Text1100000_Date__Period_Name__DATE2DMY_Date__Period_Start__3__; StrSubstNo(Text1100000Err, Date."Period Name", Date2DMY(Date."Period Start", 3))) { } column(Cust__Ledger_Entry__Remaining_Amt___LCY___Control18; "Remaining Amt. (LCY)") @@ -153,23 +153,27 @@ report 7000006 "Customer - Due Payments" PaymentMethod := SalesInv."Payment Method Code"; "Document Type"::Bill: begin - Doc.SetCurrentKey(Type, "Document No."); - Doc.SetRange(Type, Doc.Type::Receivable); - Doc.SetRange("Document No.", "Document No."); - if Doc.FindFirst() then - PaymentMethod := Doc."Payment Method Code" + CarteraDoc.SetLoadFields("Payment Method Code"); + CarteraDoc.SetCurrentKey(Type, "Document No."); + CarteraDoc.SetRange(Type, CarteraDoc.Type::Receivable); + CarteraDoc.SetRange("Document No.", "Document No."); + if CarteraDoc.FindFirst() then + PaymentMethod := CarteraDoc."Payment Method Code" else begin - PostedDoc.SetCurrentKey(Type, "Document No."); - PostedDoc.SetRange(Type, PostedDoc.Type::Receivable); - PostedDoc.SetRange("Document No.", "Document No."); - if PostedDoc.FindFirst() then - PaymentMethod := PostedDoc."Payment Method Code" + PostedCarteraDoc.SetLoadFields("Payment Method Code"); + PostedCarteraDoc.SetCurrentKey(Type, "Document No."); + PostedCarteraDoc.SetRange(Type, PostedCarteraDoc.Type::Receivable); + PostedCarteraDoc.SetRange("Document No.", "Document No."); + if PostedCarteraDoc.FindFirst() then + PaymentMethod := PostedCarteraDoc."Payment Method Code" else begin - ClosedDoc.SetCurrentKey(Type, "Document No."); - ClosedDoc.SetRange(Type, ClosedDoc.Type::Receivable); - ClosedDoc.SetRange("Document No.", "Document No."); - if ClosedDoc.FindFirst() then - PaymentMethod := ClosedDoc."Payment Method Code" + ClosedCarteraDoc.SetLoadFields("Payment Method Code"); + ClosedCarteraDoc.SetLoadFields("Payment Method Code"); + ClosedCarteraDoc.SetCurrentKey(Type, "Document No."); + ClosedCarteraDoc.SetRange(Type, ClosedCarteraDoc.Type::Receivable); + ClosedCarteraDoc.SetRange("Document No.", "Document No."); + if ClosedCarteraDoc.FindFirst() then + PaymentMethod := ClosedCarteraDoc."Payment Method Code" end; end; end; @@ -180,6 +184,7 @@ report 7000006 "Customer - Due Payments" trigger OnPreDataItem() begin + AddLoadFields("Due Date", Description, "Customer No.", "Currency Code", "Document Type", "Document No.", "Entry No."); FilterGroup(2); SetRange("Due Date", FromDate, ToDate); FilterGroup(0); @@ -227,20 +232,21 @@ report 7000006 "Customer - Due Payments" end; var - Text1100000: Label 'Total %1 %2'; + CarteraDoc: Record "Cartera Doc."; + PostedCarteraDoc: Record "Posted Cartera Doc."; + ClosedCarteraDoc: Record "Closed Cartera Doc."; SalesInv: Record "Sales Invoice Header"; - DueDateFilter: Code[250]; - CLETableFilter: Code[250]; + DueDateFilter: Text; + CLETableFilter: Text; FromDate: Date; ToDate: Date; StartFirstMonth: Date; EndLastMonth: Date; PaymentMethod: Code[10]; - Doc: Record "Cartera Doc."; - PostedDoc: Record "Posted Cartera Doc."; - ClosedDoc: Record "Closed Cartera Doc."; AccumRemainingAmtLCY: Decimal; AccumRemainingAmtLCYTrans: Decimal; + + Text1100000Err: Label 'Total %1 %2', Comment = '%1 - period, %2 - date'; CurrReport_PAGENOCaptionLbl: Label 'Page'; Customer___Due_PaymentsCaptionLbl: Label 'Customer - Due Payments'; PaymentMethodCaptionLbl: Label 'Pmt. Method Code'; diff --git a/src/Layers/ES/BaseApp/Local/Sales/Reports/CustomerDuePayments.rdlc b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Reports/CustomerDuePayments.rdlc similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Reports/CustomerDuePayments.rdlc rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Reports/CustomerDuePayments.rdlc diff --git a/src/Layers/ES/BaseApp/Local/Sales/Reports/LongTermSalesInvoices.Report.al b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Reports/LongTermSalesInvoices.Report.al similarity index 99% rename from src/Layers/ES/BaseApp/Local/Sales/Reports/LongTermSalesInvoices.Report.al rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Reports/LongTermSalesInvoices.Report.al index 1f4cf32592f..45f68d304f9 100644 --- a/src/Layers/ES/BaseApp/Local/Sales/Reports/LongTermSalesInvoices.Report.al +++ b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Reports/LongTermSalesInvoices.Report.al @@ -12,7 +12,7 @@ using System.Utilities; report 10740 "Long Term Sales Invoices" { DefaultLayout = RDLC; - RDLCLayout = './Local/Sales/Reports/LongTermSalesInvoices.rdlc'; + RDLCLayout = './Local/Cartera/Sales/Reports/LongTermSalesInvoices.rdlc'; ApplicationArea = Basic, Suite; Caption = 'Long Term Sales Invoices'; UsageCategory = ReportsAndAnalysis; diff --git a/src/Layers/ES/BaseApp/Local/Sales/Reports/LongTermSalesInvoices.rdlc b/src/Layers/ES/BaseApp/Local/Cartera/Sales/Reports/LongTermSalesInvoices.rdlc similarity index 100% rename from src/Layers/ES/BaseApp/Local/Sales/Reports/LongTermSalesInvoices.rdlc rename to src/Layers/ES/BaseApp/Local/Cartera/Sales/Reports/LongTermSalesInvoices.rdlc diff --git a/src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/SalesPurchBookVATBuffer.Table.al b/src/Layers/ES/BaseApp/Local/Finance/VAT/Calculation/SalesPurchBookVATBuffer.Table.al similarity index 100% rename from src/Layers/ES/BaseApp/Local/Finance/ReceivablesPayables/SalesPurchBookVATBuffer.Table.al rename to src/Layers/ES/BaseApp/Local/Finance/VAT/Calculation/SalesPurchBookVATBuffer.Table.al diff --git a/src/Layers/ES/BaseApp/Local/SII/Finance/VAT/SIIVATSUbscribers.Codeunit.al b/src/Layers/ES/BaseApp/Local/SII/Finance/VAT/SIIVATSUbscribers.Codeunit.al index 511f19b6684..ef269a69adb 100644 --- a/src/Layers/ES/BaseApp/Local/SII/Finance/VAT/SIIVATSUbscribers.Codeunit.al +++ b/src/Layers/ES/BaseApp/Local/SII/Finance/VAT/SIIVATSUbscribers.Codeunit.al @@ -65,8 +65,8 @@ codeunit 7000129 "SII VAT Subscribers" GenJournalLine.SetSIILastSummaryDocNo(SalesHeader.GetSIILastSummaryDocNo()); end; - [EventSubscriber(ObjectType::Codeunit, Codeunit::"Gen. Jnl.-Post Line", 'OnInsertVATOnAfterCopyVATPostingSetupFields', '', true, false)] - local procedure OnInsertVATOnAfterCopyVATPostingSetupFields(var VATPostingSetup: Record "VAT Posting Setup"; var VATEntry: Record "VAT Entry") + [EventSubscriber(ObjectType::Codeunit, Codeunit::"Gen. Jnl.-Post Line", 'OnInsertVATOnAfterAssignVATEntryFields', '', false, false)] + local procedure OnInsertVATOnAfterAssignVATEntryFields(var VATPostingSetup: Record "VAT Posting Setup"; var VATEntry: Record "VAT Entry") begin VATEntry."Ignore In SII" := VATPostingSetup."Ignore In SII"; VATEntry."One Stop Shop Reporting" := VATPostingSetup."One Stop Shop Reporting"; diff --git a/src/Layers/ES/BaseApp/Permissions/OnPrem/General Ledger/Bank Accounts/BankAccountsView.PermissionSet.al b/src/Layers/ES/BaseApp/Permissions/OnPrem/General Ledger/Bank Accounts/BankAccountsView.PermissionSet.al index 24f90c9b3af..7b3fb56fd33 100644 --- a/src/Layers/ES/BaseApp/Permissions/OnPrem/General Ledger/Bank Accounts/BankAccountsView.PermissionSet.al +++ b/src/Layers/ES/BaseApp/Permissions/OnPrem/General Ledger/Bank Accounts/BankAccountsView.PermissionSet.al @@ -5,11 +5,6 @@ using Microsoft.Bank.Check; using Microsoft.Bank.Ledger; using Microsoft.Bank.Statement; using Microsoft.Finance.Dimension; -using Microsoft.Finance.ReceivablesPayables; -using Microsoft.Purchases.History; -using Microsoft.Purchases.Payables; -using Microsoft.Sales.History; -using Microsoft.Sales.Receivables; permissionset 1083 "Bank Accounts - View" { @@ -22,15 +17,6 @@ permissionset 1083 "Bank Accounts - View" tabledata "Bank Account Posting Group" = R, tabledata "Bank Account Statement" = R, tabledata "Bank Account Statement Line" = R, - tabledata "Bill Group" = R, - tabledata "Cartera Doc." = R, tabledata "Check Ledger Entry" = R, - tabledata "Closed Bill Group" = R, - tabledata "Closed Cartera Doc." = R, - tabledata "Closed Payment Order" = R, - tabledata "Default Dimension" = RIMD, - tabledata "Payment Order" = R, - tabledata "Posted Bill Group" = R, - tabledata "Posted Cartera Doc." = R, - tabledata "Posted Payment Order" = R; + tabledata "Default Dimension" = RIMD; } diff --git a/src/Layers/ES/BaseApp/Permissions/OnPrem/General Ledger/Journals/GeneralLedgerJournalsEdit.PermissionSet.al b/src/Layers/ES/BaseApp/Permissions/OnPrem/General Ledger/Journals/GeneralLedgerJournalsEdit.PermissionSet.al index dfcd5415cba..ef6960a53c1 100644 --- a/src/Layers/ES/BaseApp/Permissions/OnPrem/General Ledger/Journals/GeneralLedgerJournalsEdit.PermissionSet.al +++ b/src/Layers/ES/BaseApp/Permissions/OnPrem/General Ledger/Journals/GeneralLedgerJournalsEdit.PermissionSet.al @@ -8,7 +8,6 @@ using Microsoft.Finance.Dimension; using Microsoft.Finance.GeneralLedger.Account; using Microsoft.Finance.GeneralLedger.Journal; using Microsoft.Finance.GeneralLedger.Setup; -using Microsoft.Finance.ReceivablesPayables; using Microsoft.Finance.SalesTax; using Microsoft.Finance.VAT.Calculation; using Microsoft.Finance.VAT.RateChange; @@ -16,10 +15,6 @@ using Microsoft.Finance.VAT.Reporting; using Microsoft.Finance.VAT.Setup; using Microsoft.Foundation.AuditCodes; using Microsoft.Foundation.Comment; -using Microsoft.Purchases.History; -using Microsoft.Purchases.Payables; -using Microsoft.Sales.History; -using Microsoft.Sales.Receivables; using System.IO; using System.Xml; @@ -30,11 +25,6 @@ permissionset 4103 "General Ledger Journals - Edit" Caption = 'Create entries in G/L journals'; Permissions = - tabledata "Bill Group" = R, - tabledata "Cartera Doc." = R, - tabledata "Closed Bill Group" = R, - tabledata "Closed Cartera Doc." = R, - tabledata "Closed Payment Order" = R, tabledata "Alloc. Acc. Manual Override" = R, tabledata "Alloc. Account Distribution" = R, tabledata "Allocation Account" = RIMD, @@ -65,10 +55,6 @@ permissionset 4103 "General Ledger Journals - Edit" tabledata "Gen. Product Posting Group" = R, tabledata "General Posting Setup" = R, tabledata "Intermediate Data Import" = Rimd, - tabledata "Payment Order" = R, - tabledata "Posted Bill Group" = R, - tabledata "Posted Cartera Doc." = R, - tabledata "Posted Payment Order" = R, tabledata "Reason Code" = R, tabledata "Referenced XML Schema" = RIMD, tabledata "Source Code Setup" = R, diff --git a/src/Layers/ES/BaseApp/Permissions/d365globaldimmgt.permissionset.al b/src/Layers/ES/BaseApp/Permissions/d365globaldimmgt.permissionset.al index 77e4b02c6a5..0016126eaff 100644 --- a/src/Layers/ES/BaseApp/Permissions/d365globaldimmgt.permissionset.al +++ b/src/Layers/ES/BaseApp/Permissions/d365globaldimmgt.permissionset.al @@ -1,17 +1,13 @@ namespace System.Security.AccessControl; using Microsoft.Finance.Dimension; -using Microsoft.Finance.ReceivablesPayables; permissionset 2332 "D365 GLOBAL DIM MGT" { Assignable = true; Caption = 'Dyn. 365 Change Global Dim'; - - Permissions = tabledata "Cartera Doc." = RM, - tabledata "Change Global Dim. Header" = RIMD, - tabledata "Change Global Dim. Log Entry" = RIMD, - tabledata "Closed Cartera Doc." = RM, - tabledata "Posted Cartera Doc." = RM; + + Permissions = tabledata "Change Global Dim. Header" = RIMD, + tabledata "Change Global Dim. Log Entry" = RIMD; } diff --git a/src/Layers/ES/BaseApp/Permissions/local.permissionset.al b/src/Layers/ES/BaseApp/Permissions/local.permissionset.al index f187cbc54cf..9a30c122795 100644 --- a/src/Layers/ES/BaseApp/Permissions/local.permissionset.al +++ b/src/Layers/ES/BaseApp/Permissions/local.permissionset.al @@ -6,10 +6,6 @@ using Microsoft.Finance.ReceivablesPayables; using Microsoft.Finance.VAT.Ledger; using Microsoft.Finance.VAT.Reporting; using Microsoft.Foundation.AuditCodes; -using Microsoft.Purchases.History; -using Microsoft.Purchases.Payables; -using Microsoft.Sales.History; -using Microsoft.Sales.Receivables; permissionset 1001 "LOCAL" { @@ -21,39 +17,18 @@ permissionset 1001 "LOCAL" tabledata "Acc. Schedule Buffer" = RIMD, tabledata "AEAT Transference Format" = RIMD, tabledata "AEAT Transference Format XML" = RIMD, - tabledata "BG/PO Comment Line" = RIMD, - tabledata "BG/PO Post. Buffer" = RIMD, - tabledata "Bill Group" = RIMD, - tabledata "Cartera Doc." = RIMd, - tabledata "Cartera Report Selections" = RIMD, - tabledata "Cartera Setup" = RIMD, tabledata "Category Code" = RIMD, - tabledata "Closed Bill Group" = RIMd, - tabledata "Closed Cartera Doc." = RIMd, - tabledata "Closed Payment Order" = RIMd, tabledata "Customer Cash Buffer" = RIMD, - tabledata "Customer Rating" = RIMD, tabledata "Customer/Vendor Warning 349" = RIMD, - tabledata "Doc. Post. Buffer" = RIMD, - tabledata "Fee Range" = RIMD, tabledata "G/L Account Buffer" = RIMD, tabledata "Gen. Prod. Post. Group Buffer" = RIMD, tabledata "Inc. Stmt. Clos. Buffer" = RIMD, - tabledata Installment = RIMD, tabledata "No Taxable Entry" = Rimd, - tabledata "Non-Payment Period" = RIMD, tabledata "Operation Code" = RIMD, - tabledata "Operation Fee" = RIMD, - tabledata "Payment Day" = RIMD, - tabledata "Payment Order" = RIMD, - tabledata "Posted Bill Group" = RIMd, - tabledata "Posted Cartera Doc." = RIMd, - tabledata "Posted Payment Order" = RIMd, tabledata "Sales/Purch. Book VAT Buffer" = RIMD, tabledata "Selected G/L Accounts" = RIMD, tabledata "Selected Gen. Prod. Post. 340" = RIMD, tabledata "Selected Gen. Prod. Post. Gr." = RIMD, tabledata "Selected Rev. Charge Grp. 340" = RIMD, - tabledata "Statistical Code" = RIMD, - tabledata Suffix = RIMD; + tabledata "Statistical Code" = RIMD; } \ No newline at end of file diff --git a/src/Layers/ES/BaseApp/Permissions/localread.permissionset.al b/src/Layers/ES/BaseApp/Permissions/localread.permissionset.al index bdc1df1b19e..9e14f5212e3 100644 --- a/src/Layers/ES/BaseApp/Permissions/localread.permissionset.al +++ b/src/Layers/ES/BaseApp/Permissions/localread.permissionset.al @@ -6,10 +6,6 @@ using Microsoft.Finance.ReceivablesPayables; using Microsoft.Finance.VAT.Ledger; using Microsoft.Finance.VAT.Reporting; using Microsoft.Foundation.AuditCodes; -using Microsoft.Purchases.History; -using Microsoft.Purchases.Payables; -using Microsoft.Sales.History; -using Microsoft.Sales.Receivables; permissionset 1002 "LOCAL READ" { @@ -21,39 +17,18 @@ permissionset 1002 "LOCAL READ" tabledata "Acc. Schedule Buffer" = R, tabledata "AEAT Transference Format" = R, tabledata "AEAT Transference Format XML" = R, - tabledata "BG/PO Comment Line" = R, - tabledata "BG/PO Post. Buffer" = R, - tabledata "Bill Group" = R, - tabledata "Cartera Doc." = R, - tabledata "Cartera Report Selections" = R, - tabledata "Cartera Setup" = R, tabledata "Category Code" = R, - tabledata "Closed Bill Group" = R, - tabledata "Closed Cartera Doc." = R, - tabledata "Closed Payment Order" = R, tabledata "Customer Cash Buffer" = R, - tabledata "Customer Rating" = R, tabledata "Customer/Vendor Warning 349" = R, - tabledata "Doc. Post. Buffer" = R, - tabledata "Fee Range" = R, tabledata "G/L Account Buffer" = R, tabledata "Gen. Prod. Post. Group Buffer" = R, tabledata "Inc. Stmt. Clos. Buffer" = R, - tabledata Installment = R, tabledata "No Taxable Entry" = R, - tabledata "Non-Payment Period" = R, tabledata "Operation Code" = R, - tabledata "Operation Fee" = R, - tabledata "Payment Day" = R, - tabledata "Payment Order" = R, - tabledata "Posted Bill Group" = R, - tabledata "Posted Cartera Doc." = R, - tabledata "Posted Payment Order" = R, tabledata "Sales/Purch. Book VAT Buffer" = R, tabledata "Selected G/L Accounts" = R, tabledata "Selected Gen. Prod. Post. 340" = R, tabledata "Selected Gen. Prod. Post. Gr." = R, tabledata "Selected Rev. Charge Grp. 340" = R, - tabledata "Statistical Code" = R, - tabledata Suffix = R; + tabledata "Statistical Code" = R; } \ No newline at end of file diff --git a/src/Layers/ES/BaseApp/Purchases/Document/PurchaseCreditMemo.Page.al b/src/Layers/ES/BaseApp/Purchases/Document/PurchaseCreditMemo.Page.al index 6e389ff08ff..341285acbfc 100644 --- a/src/Layers/ES/BaseApp/Purchases/Document/PurchaseCreditMemo.Page.al +++ b/src/Layers/ES/BaseApp/Purchases/Document/PurchaseCreditMemo.Page.al @@ -811,11 +811,6 @@ page 52 "Purchase Credit Memo" { ApplicationArea = Basic, Suite; } - field("Applies-to Bill No."; Rec."Applies-to Bill No.") - { - ApplicationArea = Basic, Suite; - ToolTip = 'Specifies if you want to settle an open payable bill with a credit memo from a vendor.'; - } field("Applies-to ID"; Rec."Applies-to ID") { ApplicationArea = Basic, Suite; @@ -868,12 +863,6 @@ page 52 "Purchase Credit Memo" SubPageLink = "No." = field("Pay-to Vendor No."), "Date Filter" = field("Date Filter"); } - part(Control1903433907; "Cartera Payables Statistics FB") - { - ApplicationArea = Basic, Suite; - SubPageLink = "No." = field("Pay-to Vendor No."); - Visible = true; - } part(Control1903435607; "Vendor Hist. Buy-from FactBox") { ApplicationArea = Basic, Suite; diff --git a/src/Layers/ES/BaseApp/Purchases/Document/PurchaseHeader.Table.al b/src/Layers/ES/BaseApp/Purchases/Document/PurchaseHeader.Table.al index 4ec29e891cb..449819257e0 100644 --- a/src/Layers/ES/BaseApp/Purchases/Document/PurchaseHeader.Table.al +++ b/src/Layers/ES/BaseApp/Purchases/Document/PurchaseHeader.Table.al @@ -1067,9 +1067,7 @@ table 38 "Purchase Header" if "Applies-to Bill No." <> '' then VendLedgEntry.SetRange("Bill No.", "Applies-to Bill No."); if VendLedgEntry.FindFirst() then; - VendLedgEntry.SetRange("Document Type"); - VendLedgEntry.SetRange("Document No."); - VendLedgEntry.SetRange("Bill No."); + VendLedgEntry.ClearDocumentFilters(); end else if "Applies-to Doc. Type" <> "Applies-to Doc. Type"::" " then begin VendLedgEntry.SetRange("Document Type", "Applies-to Doc. Type"); diff --git a/src/Layers/ES/BaseApp/Purchases/Document/PurchaseInvoice.Page.al b/src/Layers/ES/BaseApp/Purchases/Document/PurchaseInvoice.Page.al index d13041580dd..e046306e346 100644 --- a/src/Layers/ES/BaseApp/Purchases/Document/PurchaseInvoice.Page.al +++ b/src/Layers/ES/BaseApp/Purchases/Document/PurchaseInvoice.Page.al @@ -1029,12 +1029,6 @@ page 51 "Purchase Invoice" SubPageLink = "No." = field("Pay-to Vendor No."), "Date Filter" = field("Date Filter"); } - part(Control1903433907; "Cartera Payables Statistics FB") - { - ApplicationArea = Basic, Suite; - SubPageLink = "No." = field("Pay-to Vendor No."); - Visible = true; - } part(Control1903435607; "Vendor Hist. Buy-from FactBox") { ApplicationArea = Basic, Suite; diff --git a/src/Layers/ES/BaseApp/Purchases/Document/PurchaseOrder.Page.al b/src/Layers/ES/BaseApp/Purchases/Document/PurchaseOrder.Page.al index f36d13d9cf7..b78e79fd9ed 100644 --- a/src/Layers/ES/BaseApp/Purchases/Document/PurchaseOrder.Page.al +++ b/src/Layers/ES/BaseApp/Purchases/Document/PurchaseOrder.Page.al @@ -1090,12 +1090,6 @@ page 50 "Purchase Order" SubPageLink = "No." = field("Pay-to Vendor No."), "Date Filter" = field("Date Filter"); } - part(Control1903433907; "Cartera Payables Statistics FB") - { - ApplicationArea = Basic, Suite; - SubPageLink = "No." = field("Pay-to Vendor No."); - Visible = true; - } part(IncomingDocAttachFactBox; "Incoming Doc. Attach. FactBox") { ApplicationArea = Suite; diff --git a/src/Layers/ES/BaseApp/Purchases/Document/PurchaseQuote.Page.al b/src/Layers/ES/BaseApp/Purchases/Document/PurchaseQuote.Page.al index 70e813149e0..9fa19c18599 100644 --- a/src/Layers/ES/BaseApp/Purchases/Document/PurchaseQuote.Page.al +++ b/src/Layers/ES/BaseApp/Purchases/Document/PurchaseQuote.Page.al @@ -815,12 +815,6 @@ page 49 "Purchase Quote" SubPageLink = "No." = field("Pay-to Vendor No."), "Date Filter" = field("Date Filter"); } - part(Control1903433907; "Cartera Payables Statistics FB") - { - ApplicationArea = Basic, Suite; - SubPageLink = "No." = field("Pay-to Vendor No."); - Visible = true; - } part(Control1903435607; "Vendor Hist. Buy-from FactBox") { ApplicationArea = Suite; diff --git a/src/Layers/ES/BaseApp/Purchases/Document/PurchaseReturnOrder.Page.al b/src/Layers/ES/BaseApp/Purchases/Document/PurchaseReturnOrder.Page.al index 9eef2ef1f18..9c909d5ad46 100644 --- a/src/Layers/ES/BaseApp/Purchases/Document/PurchaseReturnOrder.Page.al +++ b/src/Layers/ES/BaseApp/Purchases/Document/PurchaseReturnOrder.Page.al @@ -803,12 +803,6 @@ page 6640 "Purchase Return Order" ShowFilter = false; Visible = false; } - part(Control1903433907; "Cartera Payables Statistics FB") - { - ApplicationArea = Basic, Suite; - SubPageLink = "No." = field("Pay-to Vendor No."); - Visible = true; - } part(Control1903435607; "Vendor Hist. Buy-from FactBox") { ApplicationArea = PurchReturnOrder; diff --git a/src/Layers/ES/BaseApp/Purchases/History/PurchCrMemoHdr.Table.al b/src/Layers/ES/BaseApp/Purchases/History/PurchCrMemoHdr.Table.al index df622bea4b9..89c17403f26 100644 --- a/src/Layers/ES/BaseApp/Purchases/History/PurchCrMemoHdr.Table.al +++ b/src/Layers/ES/BaseApp/Purchases/History/PurchCrMemoHdr.Table.al @@ -280,7 +280,6 @@ table 124 "Purch. Cr. Memo Hdr." VendLedgEntry.SetCurrentKey("Document No."); VendLedgEntry.SetRange("Document Type", "Applies-to Doc. Type"); VendLedgEntry.SetRange("Document No.", "Applies-to Doc. No."); - VendLedgEntry.SetRange("Bill No.", "Applies-to Bill No."); OnLookupAppliesToDocNoOnAfterSetFilters(VendLedgEntry, Rec); PAGE.Run(0, VendLedgEntry); end; @@ -664,10 +663,6 @@ table 124 "Purch. Cr. Memo Hdr." Caption = 'Autocredit Memo No.'; Editable = false; } - field(7000000; "Applies-to Bill No."; Code[20]) - { - Caption = 'Applies-to Bill No.'; - } field(7000001; "Vendor Bank Acc. Code"; Code[20]) { Caption = 'Vendor Bank Acc. Code'; diff --git a/src/Layers/ES/BaseApp/Purchases/History/PurchInvHeader.Table.al b/src/Layers/ES/BaseApp/Purchases/History/PurchInvHeader.Table.al index 98f0d84853c..fb65b3507cd 100644 --- a/src/Layers/ES/BaseApp/Purchases/History/PurchInvHeader.Table.al +++ b/src/Layers/ES/BaseApp/Purchases/History/PurchInvHeader.Table.al @@ -297,7 +297,6 @@ table 122 "Purch. Inv. Header" VendLedgEntry.SetCurrentKey("Document No."); VendLedgEntry.SetRange("Document Type", "Applies-to Doc. Type"); VendLedgEntry.SetRange("Document No.", "Applies-to Doc. No."); - VendLedgEntry.SetRange("Bill No.", "Applies-to Bill No."); OnLookupAppliesToDocNoOnAfterSetFilters(VendLedgEntry, Rec); PAGE.Run(0, VendLedgEntry); end; @@ -717,10 +716,6 @@ table 122 "Purch. Inv. Header" Caption = 'Autoinvoice No.'; Editable = false; } - field(7000000; "Applies-to Bill No."; Code[20]) - { - Caption = 'Applies-to Bill No.'; - } field(7000001; "Vendor Bank Acc. Code"; Code[20]) { Caption = 'Vendor Bank Acc. Code'; diff --git a/src/Layers/ES/BaseApp/Purchases/History/PurchRcptHeader.Table.al b/src/Layers/ES/BaseApp/Purchases/History/PurchRcptHeader.Table.al index adfef82c392..c887be32808 100644 --- a/src/Layers/ES/BaseApp/Purchases/History/PurchRcptHeader.Table.al +++ b/src/Layers/ES/BaseApp/Purchases/History/PurchRcptHeader.Table.al @@ -283,7 +283,6 @@ table 120 "Purch. Rcpt. Header" VendLedgEntry.SetCurrentKey("Document No."); VendLedgEntry.SetRange("Document Type", "Applies-to Doc. Type"); VendLedgEntry.SetRange("Document No.", "Applies-to Doc. No."); - VendLedgEntry.SetRange("Bill No.", "Applies-to Bill No."); OnLookupAppliesToDocNoOnAfterSetFilters(VendLedgEntry, Rec); PAGE.Run(0, VendLedgEntry); end; @@ -592,10 +591,6 @@ table 120 "Purch. Rcpt. Header" Caption = 'Generate AutoInvoices'; Editable = false; } - field(7000000; "Applies-to Bill No."; Code[20]) - { - Caption = 'Applies-to Bill No.'; - } field(7000001; "Vendor Bank Acc. Code"; Code[20]) { Caption = 'Vendor Bank Acc. Code'; diff --git a/src/Layers/ES/BaseApp/Purchases/Payables/ApplyVendorEntries.Page.al b/src/Layers/ES/BaseApp/Purchases/Payables/ApplyVendorEntries.Page.al index 74aea98034e..d783a4c216c 100644 --- a/src/Layers/ES/BaseApp/Purchases/Payables/ApplyVendorEntries.Page.al +++ b/src/Layers/ES/BaseApp/Purchases/Payables/ApplyVendorEntries.Page.al @@ -34,21 +34,27 @@ page 233 "Apply Vendor Entries" group(General) { Caption = 'General'; +#pragma warning disable AA0100 field("ApplyingVendLedgEntry.""Posting Date"""; TempApplyingVendLedgEntry."Posting Date") +#pragma warning restore AA0100 { ApplicationArea = Basic, Suite; Caption = 'Posting Date'; Editable = false; ToolTip = 'Specifies the posting date of the entry to be applied. This date is used to find the correct exchange rate when applying entries in different currencies.'; } +#pragma warning disable AA0100 field("ApplyingVendLedgEntry.""Document Type"""; TempApplyingVendLedgEntry."Document Type") +#pragma warning restore AA0100 { ApplicationArea = Basic, Suite; Caption = 'Document Type'; Editable = false; ToolTip = 'Specifies the document type of the entry to be applied.'; } +#pragma warning disable AA0100 field("ApplyingVendLedgEntry.""Document No."""; TempApplyingVendLedgEntry."Document No.") +#pragma warning restore AA0100 { ApplicationArea = Basic, Suite; Caption = 'Document No.'; @@ -79,7 +85,9 @@ page 233 "Apply Vendor Entries" ToolTip = 'Specifies the description of the entry to be applied.'; Visible = false; } +#pragma warning disable AA0100 field("ApplyingVendLedgEntry.""Currency Code"""; TempApplyingVendLedgEntry."Currency Code") +#pragma warning restore AA0100 { ApplicationArea = Suite; Caption = 'Currency Code'; @@ -93,7 +101,9 @@ page 233 "Apply Vendor Entries" Editable = false; ToolTip = 'Specifies the amount on the entry to be applied.'; } +#pragma warning disable AA0100 field("ApplyingVendLedgEntry.""Remaining Amount"""; TempApplyingVendLedgEntry."Remaining Amount") +#pragma warning restore AA0100 { ApplicationArea = Basic, Suite; Caption = 'Remaining Amount'; @@ -142,24 +152,6 @@ page 233 "Apply Vendor Entries" Editable = false; StyleExpr = StyleTxt; } - field("Bill No."; Rec."Bill No.") - { - ApplicationArea = Basic, Suite; - Editable = false; - ToolTip = 'Specifies the bill number related to the vendor ledger entry.'; - } - field("Document Status"; Rec."Document Status") - { - ApplicationArea = Basic, Suite; - Editable = false; - ToolTip = 'Specifies the status of the document.'; - } - field("Document Situation"; Rec."Document Situation") - { - ApplicationArea = Basic, Suite; - Editable = false; - ToolTip = 'Specifies the document location.'; - } field("External Document No."; Rec."External Document No.") { ApplicationArea = Basic, Suite; @@ -211,7 +203,9 @@ page 233 "Apply Vendor Entries" ApplicationArea = Basic, Suite; Editable = false; } +#pragma warning disable AA0100 field("CalcApplnRemainingAmount(""Remaining Amount"")"; CalcApplnRemainingAmount(Rec."Remaining Amount")) +#pragma warning restore AA0100 { ApplicationArea = Basic, Suite; AutoFormatExpression = ApplnCurrencyCode; @@ -284,7 +278,9 @@ page 233 "Apply Vendor Entries" ApplicationArea = Basic, Suite; ToolTip = 'Specifies the payment discount that has been received, in LCY.'; } +#pragma warning disable AA0100 field("CalcApplnRemainingAmount(""Remaining Pmt. Disc. Possible"")"; CalcApplnRemainingAmount(Rec."Remaining Pmt. Disc. Possible")) +#pragma warning restore AA0100 { ApplicationArea = Basic, Suite; AutoFormatExpression = ApplnCurrencyCode; @@ -1306,7 +1302,7 @@ page 233 "Apply Vendor Entries" if IsHandled then exit; - if not AppliedVendLedgEntry.FindSet(false, false) then + if not AppliedVendLedgEntry.FindSet(false) then exit; repeat diff --git a/src/Layers/ES/BaseApp/Purchases/Payables/DetailedVendorLedgEntry.Table.al b/src/Layers/ES/BaseApp/Purchases/Payables/DetailedVendorLedgEntry.Table.al index de57f10c3b6..d9a9944784d 100644 --- a/src/Layers/ES/BaseApp/Purchases/Payables/DetailedVendorLedgEntry.Table.al +++ b/src/Layers/ES/BaseApp/Purchases/Payables/DetailedVendorLedgEntry.Table.al @@ -4,7 +4,6 @@ // ------------------------------------------------------------------------------------------------ namespace Microsoft.Purchases.Payables; -using Microsoft; using Microsoft.Finance.Currency; using Microsoft.Finance.Dimension; using Microsoft.Finance.GeneralLedger.Journal; @@ -15,7 +14,6 @@ using Microsoft.Finance.SalesTax; using Microsoft.Finance.VAT.Setup; using Microsoft.Foundation.AuditCodes; using Microsoft.Purchases.Vendor; -using Microsoft.Sales.Receivables; using Microsoft.Utilities; using System.Security.AccessControl; using System.Security.User; @@ -267,22 +265,6 @@ table 380 "Detailed Vendor Ledg. Entry" { Caption = 'VAT Date'; } - field(7000000; "Bill No."; Code[20]) - { - Caption = 'Bill No.'; - } - field(7000001; "Document Situation"; Enum "ES Document Situation") - { - Caption = 'Document Situation'; - } - field(7000002; "Applies-to Bill No."; Code[20]) - { - Caption = 'Applies-to Bill No.'; - } - field(7000003; "Document Status"; Enum "ES Document Status") - { - Caption = 'Document Status'; - } field(7000004; "Excluded from calculation"; Boolean) { Caption = 'Excluded from calculation'; diff --git a/src/Layers/ES/BaseApp/Purchases/Payables/VendEntryApplyPostedEntries.Codeunit.al b/src/Layers/ES/BaseApp/Purchases/Payables/VendEntryApplyPostedEntries.Codeunit.al index 2873fdc0e89..7f2f946f7ab 100644 --- a/src/Layers/ES/BaseApp/Purchases/Payables/VendEntryApplyPostedEntries.Codeunit.al +++ b/src/Layers/ES/BaseApp/Purchases/Payables/VendEntryApplyPostedEntries.Codeunit.al @@ -78,10 +78,6 @@ codeunit 227 "VendEntry-Apply Posted Entries" CannotUnapplyInReversalErr: Label 'You cannot unapply Vendor Ledger Entry No. %1 because the entry is part of a reversal.'; #pragma warning restore AA0470 CannotApplyClosedEntriesErr: Label 'One or more of the entries that you selected is closed. You cannot apply closed entries.'; - Text1100000: Label 'Application of %1 %2'; - Text1100001: Label 'Application of %1 %2/%3'; - Text1100002: Label 'To apply a set of entries containing bills, the cursor should be positioned on an entry different than bill type or Invoice to cartera type.'; - UnapplyBlankedDocTypeErr: Label 'You cannot unapply the entries because one entry has a blank document type.'; procedure Apply(VendLedgEntry: Record "Vendor Ledger Entry"; ApplyUnapplyParameters: Record "Apply Unapply Parameters"): Boolean var @@ -90,13 +86,6 @@ codeunit 227 "VendEntry-Apply Posted Entries" begin OnBeforeApply(VendLedgEntry, ApplyUnapplyParameters."Document No.", ApplyUnapplyParameters."Posting Date"); - if (VendLedgEntry."Document Type" = VendLedgEntry."Document Type"::Bill) or - ((VendLedgEntry."Document Type" = VendLedgEntry."Document Type"::Invoice) and - (VendLedgEntry."Document Situation" = VendLedgEntry."Document Situation"::Cartera) and - (VendLedgEntry."Document Status" = VendLedgEntry."Document Status"::Open)) - then - Error(Text1100002); - IsHandled := false; OnApplyOnBeforePmtTolVend(VendLedgEntry, PaymentToleranceMgt, PreviewMode, IsHandled); if not IsHandled then @@ -181,20 +170,14 @@ codeunit 227 "VendEntry-Apply Posted Entries" (VendLedgEntry."Debit Amount" < 0) or (VendLedgEntry."Credit Amount" < 0) or (VendLedgEntry."Debit Amount (LCY)" < 0) or (VendLedgEntry."Credit Amount (LCY)" < 0); GenJnlLine.CopyVendLedgEntry(VendLedgEntry); - if VendLedgEntry."Document Type" <> VendLedgEntry."Document Type"::Bill then - GenJnlLine.Description := StrSubstNo(Text1100000, VendLedgEntry."Document Type", VendLedgEntry."Document No.") - else - GenJnlLine.Description := StrSubstNo(Text1100001, VendLedgEntry."Document Type", VendLedgEntry."Document No.", VendLedgEntry."Bill No."); GenJnlLine."Source Code" := SourceCodeSetup."Purchase Entry Application"; GenJnlLine."System-Created Entry" := true; + GenJnlLine."External Document No." := VendLedgEntry."External Document No."; GenJnlLine."Journal Template Name" := ApplyUnapplyParameters."Journal Template Name"; GenJnlLine."Journal Batch Name" := ApplyUnapplyParameters."Journal Batch Name"; EntryNoBeforeApplication := FindLastApplDtldVendLedgEntry(); - GenJnlPostLine.SetIDBillSettlement(BeAppliedToBill(VendLedgEntry)); - GenJnlPostLine.SetIDInvoiceSettlement(BeAppliedToInvoice(VendLedgEntry)); - OnBeforePostApplyVendLedgEntry(GenJnlLine, VendLedgEntry, GenJnlPostLine, ApplyUnapplyParameters); GenJnlPostLine.VendPostApplyVendLedgEntry(GenJnlLine, VendLedgEntry); OnAfterPostApplyVendLedgEntry(GenJnlLine, VendLedgEntry, GenJnlPostLine); @@ -455,8 +438,7 @@ codeunit 227 "VendEntry-Apply Posted Entries" if IsHandled then exit; - if DtldVendLedgEntry."Initial Document Type" = DtldVendLedgEntry."Initial Document Type"::" " then - Error(UnapplyBlankedDocTypeErr); + OnAfterCheckInitialDocumentType(DtldVEndLedgEntry); end; local procedure CheckPostingDate(ApplyUnapplyParameters: Record "Apply Unapply Parameters"; var MaxPostingDate: Date) @@ -596,36 +578,6 @@ codeunit 227 "VendEntry-Apply Posted Entries" exit(LastTransactionNo); end; - local procedure BeAppliedToBill(VendLedgEntry2: Record "Vendor Ledger Entry"): Boolean - var - VendLedgEntry3: Record "Vendor Ledger Entry"; - begin - if VendLedgEntry2."Applies-to ID" = '' then - exit(false); - VendLedgEntry3.SetCurrentKey("Applies-to ID", "Document Type"); - VendLedgEntry3.SetRange("Applies-to ID", VendLedgEntry2."Applies-to ID"); - VendLedgEntry3.SetRange("Document Type", VendLedgEntry2."Document Type"::Bill); - if not VendLedgEntry3.IsEmpty() then - exit(true); - exit(false); - end; - - local procedure BeAppliedToInvoice(VendLedgEntry2: Record "Vendor Ledger Entry"): Boolean - var - VendLedgEntry3: Record "Vendor Ledger Entry"; - begin - if VendLedgEntry2."Applies-to ID" = '' then - exit(false); - - VendLedgEntry3.SetCurrentKey("Applies-to ID", "Document Type"); - VendLedgEntry3.SetRange("Applies-to ID", VendLedgEntry2."Applies-to ID"); - VendLedgEntry3.SetRange("Document Type", VendLedgEntry2."Document Type"::Invoice); - if not VendLedgEntry3.IsEmpty() then - exit(true); - - exit(false); - end; - procedure PreviewApply(VendorLedgerEntry: Record "Vendor Ledger Entry"; ApplyUnapplyParameters: Record "Apply Unapply Parameters") var GenJnlPostPreview: Codeunit "Gen. Jnl.-Post Preview"; @@ -855,6 +807,22 @@ codeunit 227 "VendEntry-Apply Posted Entries" begin end; + /// + /// Raised after checking initial document Type + /// + /// The detailed vendor ledger entry. + [IntegrationEvent(false, false)] + local procedure OnAfterCheckInitialDocumentType(var DtldVendLedgEntry: Record "Detailed Vendor Ledg. Entry") + begin + end; + + /// + /// Raised before checking initial document Type + /// + /// The detailed vendor ledger entry. + /// The document number. + /// The posting date. + /// Indicates whether the event is handled. [IntegrationEvent(false, false)] local procedure OnBeforeCheckInitialDocumentType(var DtldVendLedgEntry: Record "Detailed Vendor Ledg. Entry"; DocNo: Code[20]; PostingDate: Date; var IsHandled: Boolean) begin diff --git a/src/Layers/ES/BaseApp/Purchases/Payables/VendEntrySetApplID.Codeunit.al b/src/Layers/ES/BaseApp/Purchases/Payables/VendEntrySetApplID.Codeunit.al index ca29cbec875..586eaa9a94c 100644 --- a/src/Layers/ES/BaseApp/Purchases/Payables/VendEntrySetApplID.Codeunit.al +++ b/src/Layers/ES/BaseApp/Purchases/Payables/VendEntrySetApplID.Codeunit.al @@ -4,8 +4,6 @@ // ------------------------------------------------------------------------------------------------ namespace Microsoft.Purchases.Payables; -using Microsoft.Finance.ReceivablesPayables; - codeunit 111 "Vend. Entry-SetAppl.ID" { Permissions = TableData "Vendor Ledger Entry" = rimd; @@ -16,8 +14,6 @@ codeunit 111 "Vend. Entry-SetAppl.ID" var VendEntryApplID: Code[50]; - CannotBeAppliedErr: Label '%1 cannot be applied, since it is included in a bill group.', Comment = '%1 = Description'; - CannotBeAppliedTryAgainErr: Label '%1 cannot be applied, since it is included in a bill group. Remove it from its bill group and try again.', Comment = '%1 = Description'; procedure SetApplId(var VendLedgEntry: Record "Vendor Ledger Entry"; ApplyingVendLedgEntry: Record "Vendor Ledger Entry"; AppliesToID: Code[50]) var @@ -52,8 +48,6 @@ codeunit 111 "Vend. Entry-SetAppl.ID" local procedure UpdateVendLedgerEntry(var TempVendLedgEntry: Record "Vendor Ledger Entry" temporary; ApplyingVendLedgEntry: Record "Vendor Ledger Entry"; AppliesToID: Code[50]) var VendorLedgerEntry: Record "Vendor Ledger Entry"; - CarteraSetup: Record "Cartera Setup"; - CarteraDoc: Record "Cartera Doc."; IsHandled: Boolean; begin IsHandled := false; @@ -63,19 +57,6 @@ codeunit 111 "Vend. Entry-SetAppl.ID" VendorLedgerEntry.Copy(TempVendLedgEntry); VendorLedgerEntry.TestField(Open, true); - if VendorLedgerEntry."Document Situation" = VendorLedgerEntry."Document Situation"::"Posted BG/PO" then - Error(CannotBeAppliedErr, VendorLedgerEntry.Description); - if ApplyingVendLedgEntry."Document Situation" = ApplyingVendLedgEntry."Document Situation"::"Posted BG/PO" then - Error(CannotBeAppliedErr, ApplyingVendLedgEntry.Description); - - if CarteraSetup.ReadPermission then - if ((VendorLedgerEntry."Document Type" = VendorLedgerEntry."Document Type"::Bill) or - (VendorLedgerEntry."Document Type" = VendorLedgerEntry."Document Type"::Invoice)) - then - if CarteraDoc.Get(CarteraDoc.Type::Payable, VendorLedgerEntry."Entry No.") then - if CarteraDoc."Bill Gr./Pmt. Order No." <> '' then - Error(CannotBeAppliedTryAgainErr, VendorLedgerEntry.Description); - VendorLedgerEntry."Applies-to ID" := VendEntryApplID; if VendorLedgerEntry."Applies-to ID" = '' then begin VendorLedgerEntry."Accepted Pmt. Disc. Tolerance" := false; diff --git a/src/Layers/ES/BaseApp/Purchases/Payables/VendorLedgerEntries.Page.al b/src/Layers/ES/BaseApp/Purchases/Payables/VendorLedgerEntries.Page.al index 7e19fc890a3..b1898fd9756 100644 --- a/src/Layers/ES/BaseApp/Purchases/Payables/VendorLedgerEntries.Page.al +++ b/src/Layers/ES/BaseApp/Purchases/Payables/VendorLedgerEntries.Page.al @@ -57,11 +57,6 @@ page 29 "Vendor Ledger Entries" Editable = false; Visible = false; } - field("Autodocument No."; Rec."Autodocument No.") - { - ApplicationArea = Basic, Suite; - ToolTip = 'This field is used internally.'; - } field("Document Type"; Rec."Document Type") { ApplicationArea = Basic, Suite; @@ -74,21 +69,6 @@ page 29 "Vendor Ledger Entries" Editable = false; StyleExpr = StyleTxt; } - field("Bill No."; Rec."Bill No.") - { - ApplicationArea = Basic, Suite; - ToolTip = 'Specifies the bill number related to the vendor ledger entry.'; - } - field("Document Situation"; Rec."Document Situation") - { - ApplicationArea = Basic, Suite; - ToolTip = 'Specifies the document location.'; - } - field("Document Status"; Rec."Document Status") - { - ApplicationArea = Basic, Suite; - ToolTip = 'Specifies the status of the document.'; - } field("External Document No."; Rec."External Document No.") { ApplicationArea = Basic, Suite; diff --git a/src/Layers/ES/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al b/src/Layers/ES/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al index 82d0c93c355..ed299705ed1 100644 --- a/src/Layers/ES/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al +++ b/src/Layers/ES/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al @@ -4,7 +4,6 @@ // ------------------------------------------------------------------------------------------------ namespace Microsoft.Purchases.Payables; -using Microsoft; using Microsoft.Bank.BankAccount; using Microsoft.CRM.Team; using Microsoft.EServices.EDocument; @@ -24,7 +23,6 @@ using Microsoft.Purchases.History; using Microsoft.Purchases.Remittance; using Microsoft.Purchases.Vendor; using Microsoft.Sales.Customer; -using Microsoft.Sales.Receivables; using Microsoft.Utilities; using System.Security.AccessControl; using System.Utilities; @@ -246,15 +244,8 @@ table 25 "Vendor Ledger Entry" ToolTip = 'Specifies the due date on the entry.'; trigger OnValidate() - var - PaymentTerms: Record "Payment Terms"; begin TestField(Open, true); - CheckBillSituation(); - if PaymentTerms.Get("Payment Terms Code") then - PaymentTerms.VerifyMaxNoDaysTillDueDate("Due Date", "Document Date", FieldCaption("Due Date")); - if "Document Situation" <> "Document Situation"::" " then - DocMisc.UpdatePayableDueDate(Rec); end; } field(38; "Pmt. Discount Date"; Date) @@ -550,8 +541,6 @@ table 25 "Vendor Ledger Entry" TestField(Open, true); CalcFields("Remaining Amount"); - CheckBillSituation(); - if AreOppositeSign("Amount to Apply", "Remaining Amount") then FieldError("Amount to Apply", StrSubstNo(MustHaveSameSignErr, FieldCaption("Remaining Amount"))); @@ -597,6 +586,7 @@ table 25 "Vendor Ledger Entry" Caption = 'Payment Terms Code'; Editable = false; TableRelation = "Payment Terms"; + ToolTip = 'Specifies the payment terms that determine the due date and payment discount date for the entry.'; } field(95; "G/L Register No."; Integer) { @@ -622,15 +612,8 @@ table 25 "Vendor Ledger Entry" TableRelation = "Payment Method"; trigger OnValidate() - var - CarteraDoc: Record "Cartera Doc."; begin TestField(Open, true); - if "Payment Method Code" <> xRec."Payment Method Code" then begin - ValidatePaymentMethod(); - CarteraDoc.UpdatePaymentMethodCode( - "Document No.", "Vendor No.", "Bill No.", "Payment Method Code") - end; end; } field(173; "Applies-to Ext. Doc. No."; Code[35]) @@ -770,34 +753,6 @@ table 25 "Vendor Ledger Entry" Caption = 'Autodocument No.'; Editable = false; } - field(7000000; "Bill No."; Code[20]) - { - Caption = 'Bill No.'; - } - field(7000001; "Document Situation"; Enum "ES Document Situation") - { - Caption = 'Document Situation'; - } - field(7000002; "Applies-to Bill No."; Code[20]) - { - Caption = 'Applies-to Bill No.'; - } - field(7000003; "Document Status"; Enum "ES Document Status") - { - Caption = 'Document Status'; - } - field(7000005; "Remaining Amount (LCY) stats."; Decimal) - { - AutoFormatType = 1; - AutoFormatExpression = ''; - Caption = 'Remaining Amount (LCY) stats.'; - } - field(7000006; "Amount (LCY) stats."; Decimal) - { - AutoFormatType = 1; - AutoFormatExpression = ''; - Caption = 'Amount (LCY) stats.'; - } } keys @@ -869,13 +824,9 @@ table 25 "Vendor Ledger Entry" } var - DocMisc: Codeunit "Document-Misc"; #pragma warning disable AA0470 MustHaveSameSignErr: Label 'must have the same sign as %1'; MustNotBeLargerErr: Label 'must not be larger than %1'; - CannotChangePmtMethodErr: Label 'For Cartera-based bills and invoices, you cannot change the Payment Method Code to this value.'; - CheckBillSituationOrderErr: Label '%1 cannot be applied because it is included in a payment order. To apply the document, remove it from the payment order and try again.', Comment = '%1 - document type and number'; - CheckBillSituationPostedErr: Label '%1 cannot be applied because it is included in a posted payment order.', Comment = '%1 - document type and number'; #pragma warning restore AA0470 NetBalanceOnHoldErr: Label 'General journal line number %3 on template name %1 batch name %2 is applied. Do you want to change On Hold value anyway?', Comment = '%1 - template name, %2 - batch name, %3 - line number'; @@ -1005,24 +956,6 @@ table 25 "Vendor Ledger Entry" exit("Original Currency Factor"); end; - [Scope('OnPrem')] - procedure CheckBillSituation() - var - CarteraDoc: Record "Cartera Doc."; - PostedCarteraDoc: Record "Posted Cartera Doc."; - begin - OnBeforeCheckBillSituation(Rec); - - case true of - CarteraDoc.Get(CarteraDoc.Type::Payable, "Entry No."): - if CarteraDoc."Bill Gr./Pmt. Order No." <> '' then - Error(CheckBillSituationOrderErr, Description); - PostedCarteraDoc.Get(PostedCarteraDoc.Type::Payable, "Entry No."): - if PostedCarteraDoc."Bill Gr./Pmt. Order No." <> '' then - Error(CheckBillSituationPostedErr, Description); - end; - end; - procedure GetAdjustedCurrencyFactor(): Decimal begin if "Adjusted Currency Factor" = 0 then @@ -1055,6 +988,22 @@ table 25 "Vendor Ledger Entry" exit(''); end; + procedure SetAppliesToDocFilters(var GenJnlLine: Record "Gen. Journal Line") + begin + SetRange("Document Type", GenJnlLine."Applies-to Doc. Type"); + SetRange("Document No.", GenJnlLine."Applies-to Doc. No."); + + OnAfterSetAppliesToDocFilters(Rec, GenJnlLine); + end; + + procedure ClearDocumentFilters() + begin + SetRange("Document Type"); + SetRange("Document No."); + + OnAfterClearDocumentFilters(Rec); + end; + procedure CopyFromGenJnlLine(GenJnlLine: Record "Gen. Journal Line") begin "Vendor No." := GenJnlLine."Account No."; @@ -1096,12 +1045,10 @@ table 25 "Vendor Ledger Entry" "Creditor No." := GenJnlLine."Creditor No."; "Payment Reference" := GenJnlLine."Payment Reference"; "Payment Method Code" := GenJnlLine."Payment Method Code"; + "Payment Terms Code" := GenJnlLine."Payment Terms Code"; "Exported to Payment File" := GenJnlLine."Exported to Payment File"; "Generated Autodocument" := GenJnlLine."Generate AutoInvoices"; "Autodocument No." := GenJnlLine."AutoDoc. No."; - "Payment Terms Code" := GenJnlLine."Payment Terms Code"; - "Bill No." := GenJnlLine."Bill No."; - "Applies-to Bill No." := GenJnlLine."Applies-to Bill No."; if (GenJnlLine."Remit-to Code" <> '') then "Remit-to Code" := GenJnlLine."Remit-to Code"; "VAT Reporting Date" := GenJnlLine."VAT Reporting Date"; @@ -1174,10 +1121,6 @@ table 25 "Vendor Ledger Entry" "Pmt. Tolerance (LCY)" := CVLedgerEntryBuffer."Pmt. Tolerance (LCY)"; "Amount to Apply" := CVLedgerEntryBuffer."Amount to Apply"; Prepayment := CVLedgerEntryBuffer.Prepayment; - "Bill No." := CVLedgerEntryBuffer."Bill No."; - "Document Situation" := CVLedgerEntryBuffer."Document Situation"; - "Applies-to Bill No." := CVLedgerEntryBuffer."Applies-to Bill No."; - "Document Status" := CVLedgerEntryBuffer."Document Status"; OnAfterCopyVendLedgerEntryFromCVLedgEntryBuffer(Rec, CVLedgerEntryBuffer); end; @@ -1205,19 +1148,6 @@ table 25 "Vendor Ledger Entry" OnAfterRecalculateAmounts(Rec, FromCurrencyCode, ToCurrencyCode, PostingDate); end; - local procedure ValidatePaymentMethod() - var - PaymentMethod: Record "Payment Method"; - begin - PaymentMethod.Get("Payment Method Code"); - if (("Document Type" = "Document Type"::Bill) and not PaymentMethod."Create Bills") or - (("Document Type" = "Document Type"::Invoice) and - ("Document Situation" <> "Document Situation"::" ") and - not PaymentMethod."Invoices to Cartera") - then - Error(CannotChangePmtMethodErr); - end; - procedure UpdateAmountsForApplication(ApplnDate: Date; ApplnCurrencyCode: Code[10]; RoundAmounts: Boolean; UpdateMaxPaymentTolerance: Boolean) var CurrencyExchangeRate: Record "Currency Exchange Rate"; @@ -1359,9 +1289,13 @@ table 25 "Vendor Ledger Entry" end; [IntegrationEvent(false, false)] - local procedure OnBeforeCheckBillSituation(var VendorLedgerEntry: Record "Vendor Ledger Entry") + local procedure OnAfterSetAppliesToDocFilters(var Rec: Record "Vendor Ledger Entry"; var GenJnlLine: Record "Gen. Journal Line") begin end; -} + [IntegrationEvent(false, false)] + local procedure OnAfterClearDocumentFilters(var Rec: Record "Vendor Ledger Entry") + begin + end; +} diff --git a/src/Layers/ES/BaseApp/Purchases/Posting/PurchPost.Codeunit.al b/src/Layers/ES/BaseApp/Purchases/Posting/PurchPost.Codeunit.al index 9e8964bb530..a00e32d877a 100644 --- a/src/Layers/ES/BaseApp/Purchases/Posting/PurchPost.Codeunit.al +++ b/src/Layers/ES/BaseApp/Purchases/Posting/PurchPost.Codeunit.al @@ -4,7 +4,6 @@ // ------------------------------------------------------------------------------------------------ namespace Microsoft.Purchases.Posting; -using Microsoft.Bank.BankAccount; using Microsoft.CRM.Contact; using Microsoft.EServices.EDocument; using Microsoft.Finance.Analysis; @@ -187,10 +186,7 @@ codeunit 90 "Purch.-Post" /// The purchase header of the document that is being posted. /// Accumulates drop-shipment buffer records during posting. /// Set to false during posting if any line is partially invoiced. - local procedure ProcessPosting( - var PurchHeader: Record "Purchase Header"; - var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; - var EverythingInvoiced: Boolean) + local procedure ProcessPosting(var PurchHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var EverythingInvoiced: Boolean) var IgnoreCommit: Boolean; begin @@ -235,8 +231,6 @@ codeunit 90 "Purch.-Post" var TempVATAmountLine: Record "VAT Amount Line" temporary; TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; - PaymentMethod: Record "Payment Method"; - CarteraSetup: Record "Cartera Setup"; ErrorContextElementProcessLines: Codeunit "Error Context Element"; ErrorContextElementPostLine: Codeunit "Error Context Element"; ZeroPurchLineRecID: RecordId; @@ -334,23 +328,9 @@ codeunit 90 "Purch.-Post" if not IsHandled then MakeInventoryAdjustment(); - // Create Bills - if PaymentMethod.Get(PurchHeader."Payment Method Code") then - if (PaymentMethod."Create Bills" or PaymentMethod."Invoices to Cartera") and - (not CarteraSetup.ReadPermission) and PurchHeader.Invoice - then - Error(CannotCreateCarteraDocErr); - - if PurchHeader.Invoice and (PurchHeader."Bal. Account No." = '') and - not PurchHeader.IsCreditDocType() and CarteraSetup.ReadPermission - then begin - OnBeforeCreateCarteraBills(PurchHeader, VendLedgEntry, TotalPurchLine, SuppressCommit); - SplitPayment.SplitPurchInv( - PurchHeader, VendLedgEntry, Window, SrcCode, GenJnlLineExtDocNo, GenJnlLineDocNo, - -(TotalPurchLine."Amount Including VAT" - TotalPurchLine.Amount)); - end; - Clear(GenJnlPostLine); + + OnAfterProcessPostingLines(PurchHeader, TotalPurchLine, VendLedgEntry, InvoicePostingParameters, SuppressCommit, EverythingInvoiced, Window); end; var @@ -446,7 +426,6 @@ codeunit 90 "Purch.-Post" UOMMgt: Codeunit "Unit of Measure Management"; ApplicationAreaMgmt: Codeunit "Application Area Mgmt."; NonDeductibleVAT: Codeunit "Non-Deductible VAT"; - SplitPayment: Codeunit "Invoice-Split Payment"; MatchedOrderLineMgmt: Codeunit "Matched Order Line Mgmt."; InvoicePostingInterface: Interface "Invoice Posting"; IsInterfaceInitialized: Boolean; @@ -510,7 +489,6 @@ codeunit 90 "Purch.-Post" #pragma warning disable AA0470 Text1100000: Label 'The Credit Memo doesn''t have a Corrected Invoice No. Do you want to continue?'; Text1100011: Label 'The posting process has been cancelled by the user.'; - CannotCreateCarteraDocErr: Label 'You do not have permissions to create Documents in Cartera.\Please, change the Payment Method.'; Text1100102: Label 'Posting to bal. account #5######\'; Text1100103: Label 'Creating documents #6######'; Text1100104: Label 'Corrective Invoice'; @@ -781,7 +759,7 @@ codeunit 90 "Purch.-Post" begin OnBeforeCheckAndUpdate(PurchHeader, ModifyHeader); DocumentIsReadyToBeChecked := true; - + CheckPurchDocument(PurchHeader); if GuiAllowed() and not HideProgressWindow then @@ -3096,6 +3074,7 @@ codeunit 90 "Purch.-Post" if NoSeries.IsNoSeriesInDateOrder(PurchHeader."Receiving No. Series") then DateOrderSeriesUsed := true; ModifyHeader := true; + // Check for posting conflicts. if PurchRcptHeader.Get(PurchHeader."Receiving No.") then Error(PurchRcptHeaderConflictErr, PurchHeader."Receiving No."); @@ -3113,6 +3092,7 @@ codeunit 90 "Purch.-Post" DateOrderSeriesUsed := true; ModifyHeader := true; OnUpdatePostingNosOnAfterSetReturnShipmentNoFromNos(PurchHeader); + // Check for posting conflicts. if ReturnShptHeader.Get(PurchHeader."Return Shipment No.") then Error(ReturnShptHeaderConflictErr, PurchHeader."Return Shipment No."); @@ -4172,6 +4152,8 @@ codeunit 90 "Purch.-Post" if PurchaseHeader."Pay-to Contact No." <> '' then if Contact.Get(PurchaseHeader."Pay-to Contact No.") then Contact.CheckIfPrivacyBlocked(true); + + OnAfterCheckPostRestrictions(PurchaseHeader); end; local procedure CheckFAPostingPossibility(PurchaseHeader: Record "Purchase Header") @@ -6345,47 +6327,16 @@ codeunit 90 "Purch.-Post" exit(true); end; +#if not CLEAN29 + [Obsolete('Not used anywhere. Moved to codeunit CRT Purch-Post', '29.0')] [Scope('OnPrem')] procedure TestPurchEfects(PurchHeader: Record "Purchase Header"; Vend: Record Vendor) var - VendLedgEntry: Record "Vendor Ledger Entry"; - Text1100000: Label 'At least one document of %1 No. %2 is closed or in a Payment Order.'; - Text1100001: Label 'This will avoid the document to be settled.\'; - Text1100002: Label 'The posting process of %3 No. %4 will not settle any document.\'; - ShowError: Boolean; - Text1100003: Label 'Please remove the lines for the Payment Order before posting.'; - begin - ShowError := false; - if PurchHeader."Document Type" = PurchHeader."Document Type"::"Credit Memo" then begin - VendLedgEntry.SetCurrentKey("Document No.", "Document Type", "Vendor No."); - VendLedgEntry.SetFilter("Document Type", '%1|%2', VendLedgEntry."Document Type"::Invoice, - VendLedgEntry."Document Type"::Bill); - VendLedgEntry.SetFilter("Document Situation", '<>%1', VendLedgEntry."Document Situation"::" "); - VendLedgEntry.SetRange("Vendor No.", PurchHeader."Pay-to Vendor No."); - VendLedgEntry.SetRange(Open, true); - - if VendLedgEntry.Find('-') then - repeat - if VendLedgEntry."Document Situation" <> VendLedgEntry."Document Situation"::Cartera then - if not ((VendLedgEntry."Document Situation" in - [VendLedgEntry."Document Situation"::"Closed Documents", - VendLedgEntry."Document Situation"::"Closed BG/PO"]) and - (VendLedgEntry."Document Status" = VendLedgEntry."Document Status"::Rejected)) - then - ShowError := true; - until VendLedgEntry.Next() = 0; - - if ShowError then - Error(Text1100000 + - Text1100001 + - Text1100002 + - Text1100003, - Format(VendLedgEntry."Document Type"), - Format(VendLedgEntry."Document No."), - Format(PurchHeader."Document Type"), - Format(PurchHeader."No.")); - end; + CRTPurchPost: Codeunit "CRT Purch.-Post"; + begin + CRTPurchPost.TestPurchEffects(PurchHeader); end; +#endif local procedure UpdateIncomingDocument(IncomingDocNo: Integer; PostingDate: Date; GenJnlLineDocNo: Code[20]) var @@ -7383,7 +7334,7 @@ codeunit 90 "Purch.-Post" exit; if PurchHeader."Send IC Document" and (PurchHeader."IC Status" = PurchHeader."IC Status"::New) and (PurchHeader."IC Direction" = PurchHeader."IC Direction"::Outgoing) and - (PurchHeader."Document Type" in [PurchHeader."Document Type"::Order, PurchHeader."Document Type"::"Return Order"]) + (PurchHeader."Document Type" in [PurchHeader."Document Type"::Order, PurchHeader."Document Type"::"Return Order"]) then begin ICInboxOutboxMgt.SendPurchDoc(PurchHeader, true); PurchHeader."IC Status" := PurchHeader."IC Status"::Pending; @@ -9174,169 +9125,404 @@ codeunit 90 "Purch.-Post" ItemsToAdjust.Add(Item2."No."); end; + /// + /// Event raised by OnArchiveSalesOrdersOnBeforeSalesOrderLineModify. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnArchiveSalesOrdersOnBeforeSalesOrderLineModify(var SalesOrderLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnAfterBlanketOrderPurchLineModify. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnAfterBlanketOrderPurchLineModify(var BlanketOrderPurchLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnAfterCheckPurchDoc. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the ErrorMessageMgt parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckPurchDoc(var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; WhseShip: Boolean; WhseReceive: Boolean; PreviewMode: Boolean; var ErrorMessageMgt: Codeunit "Error Message Management") begin end; + /// + /// Event raised by OnAfterCheckAndUpdate. + /// + /// + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckAndUpdate(var PurchaseHeader: Record "Purchase Header"; CommitIsSuppressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterCheckTrackingSpecification. + /// + /// + /// Specifies the TempItemPurchaseLine parameter. [IntegrationEvent(true, false)] local procedure OnAfterCheckTrackingSpecification(PurchaseHeader: Record "Purchase Header"; var TempItemPurchaseLine: Record "Purchase Line" temporary); begin end; + /// + /// Event raised by OnAfterCheckTrackingAndWarehouseForReceive. + /// + /// + /// Specifies the Receive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckTrackingAndWarehouseForReceive(var PurchaseHeader: Record "Purchase Header"; var Receive: Boolean; CommitIsSupressed: Boolean; var TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterCheckTrackingAndWarehouseForShip. + /// + /// + /// Specifies the Ship parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchaseLine parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckTrackingAndWarehouseForShip(var PurchaseHeader: Record "Purchase Header"; var Ship: Boolean; CommitIsSupressed: Boolean; var TempPurchaseLine: Record "Purchase Line" temporary; var TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary) begin end; + /// + /// Event raised by OnAfterCreateJobPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCreateJobPurchLine(var JobPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterCreateWhseJnlLine. + /// + /// + /// Specifies the TempWhseJnlLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCreateWhseJnlLine(PurchaseLine: Record "Purchase Line"; var TempWhseJnlLine: record "Warehouse Journal Line" temporary) begin end; + /// + /// Event raised by OnAfterDeleteAfterPosting. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterDeleteAfterPosting(PurchHeader: Record "Purchase Header"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterDeleteApprovalEntries. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchRcptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterDeleteApprovalEntries(var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; PurchRcptHeader: Record "Purch. Rcpt. Header") begin end; + /// + /// Event raised by OnAfterDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. [IntegrationEvent(false, false)] local procedure OnAfterDivideAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping; PurchLineQty: Decimal; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary) begin end; + /// + /// Event raised by OnAfterGetAmountRoundingPrecisionInLCY. + /// + /// + /// Specifies the DocNo parameter. + /// Specifies the CurrencyCode parameter. + /// Specifies the AmountRoundingPrecision parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetAmountRoundingPrecisionInLCY(DocType: Enum "Purchase Document Type"; DocNo: Code[20]; CurrencyCode: Code[10]; var AmountRoundingPrecision: Decimal) begin end; + /// + /// Event raised by OnAfterGetLineDataFromOrder. + /// + /// + /// Specifies the PurchOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetLineDataFromOrder(var PurchLine: Record "Purchase Line"; PurchOrderLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterGetPurchSetup. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterGetPurchSetup(var PurchSetup: Record "Purchases & Payables Setup") begin end; + /// + /// Event raised by OnAfterModifyTempLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterModifyTempLine(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostPurchaseDoc. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PurchRcpHdrNo parameter. + /// Specifies the RetShptHdrNo parameter. + /// Specifies the PurchInvHdrNo parameter. + /// Specifies the PurchCrMemoHdrNo parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] procedure OnAfterPostPurchaseDoc(var PurchaseHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PurchRcpHdrNo: Code[20]; RetShptHdrNo: Code[20]; PurchInvHdrNo: Code[20]; PurchCrMemoHdrNo: Code[20]; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterPostPurchaseDocDropShipment. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostPurchaseDocDropShipment(SalesShptNo: Code[20]; CommitIsSupressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterRetrieveInvoiceTrackingSpecificationIfExists. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. [IntegrationEvent(false, false)] local procedure OnAfterRetrieveInvoiceTrackingSpecificationIfExists(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TrackingSpecificationExists: Boolean) begin end; + /// + /// Event raised by OnAfterUpdatePostingNos. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePostingNos(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; PreviewMode: Boolean; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnAfterCheckMandatoryFields. + /// + /// + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckMandatoryFields(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterFinalizePosting. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterFinalizePosting(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShptHeader: Record "Return Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PreviewMode: Boolean; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterFinalizePostingOnBeforeCommit. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnAfterFinalizePostingOnBeforeCommit(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShptHeader: Record "Return Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PreviewMode: Boolean; CommitIsSupressed: Boolean; EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnAfterIncrAmount. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterIncrAmount(var TotalPurchLine: Record "Purchase Line"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterInitAssocItemJnlLine. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the QtyToBeShipped parameter. [IntegrationEvent(false, false)] local procedure OnAfterInitAssocItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; PurchaseHeader: Record "Purchase Header"; QtyToBeShipped: Decimal) begin end; + /// + /// Event raised by OnAfterInsertCombinedSalesShipment. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterInsertCombinedSalesShipment(var SalesShipmentHeader: Record "Sales Shipment Header") begin end; + /// + /// Event raised by OnAfterInsertPostedHeaders. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchSetup parameter. + /// Specifies the Window parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertPostedHeaders(var PurchaseHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShptHeader: Record "Return Shipment Header"; var PurchSetup: Record "Purchases & Payables Setup"; var Window: Dialog) begin end; + /// + /// Event raised by OnAfterInsertReceiptHeader. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertReceiptHeader(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var TempWhseRcptHeader: Record "Warehouse Receipt Header" temporary; WhseReceive: Boolean; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnAfterInsertReturnShipmentHeader. + /// + /// + /// Specifies the ReturnShptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertReturnShipmentHeader(var PurchHeader: Record "Purchase Header"; var ReturnShptHeader: Record "Return Shipment Header") begin end; + /// + /// Event raised by OnAfterInvoiceRoundingAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TotalPurchaseLine parameter. + /// Specifies the UseTempData parameter. + /// Specifies the InvoiceRoundingAmount parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the RoundingLineNo parameter. [IntegrationEvent(false, false)] local procedure OnAfterInvoiceRoundingAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TotalPurchaseLine: Record "Purchase Line"; UseTempData: Boolean; InvoiceRoundingAmount: Decimal; CommitIsSuppressed: Boolean; RoundingLineInserted: Boolean; RoundingLineNo: Integer) begin end; + /// + /// Event raised by OnAfterInsertedPrepmtVATBaseToDeduct. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PrepmtLineNo parameter. + /// Specifies the TotalPrepmtAmtToDeduct parameter. + /// Specifies the TempPrepmtDeductLCYPurchLine parameter. + /// Specifies the PrepmtVATBaseToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertedPrepmtVATBaseToDeduct(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; PrepmtLineNo: Integer; TotalPrepmtAmtToDeduct: Decimal; var TempPrepmtDeductLCYPurchLine: Record "Purchase Line" temporary; var PrepmtVATBaseToDeduct: Decimal) begin end; + /// + /// Event raised by OnAfterPostAssocItemJnlLine. + /// + /// + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the SalesLineOrder parameter. + /// Specifies the SalesOrderHeader parameter. + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostAssocItemJnlLine(var ItemJnlLine: Record "Item Journal Line"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var SalesLineOrder: Record "Sales Line"; var SalesOrderHeader: Record "Sales Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAfterPostCombineSalesOrderShipment. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostCombineSalesOrderShipment(var PurchaseHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin @@ -9349,275 +9535,680 @@ codeunit 90 "Purch.-Post" end; [Obsolete('Moved to codeunit MfgPurchPost', '27.0')] + /// + /// Event raised by OnAfterPostItemJnlLineCopyProdOrder. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLineCopyProdOrder(var ItemJnlLine: Record "Item Journal Line"; PurchLine: Record "Purchase Line"; PurchRcptHeader: Record "Purch. Rcpt. Header"; QtyToBeReceived: Decimal; CommitIsSupressed: Boolean; QtyToBeInvoiced: Decimal) begin end; #endif + /// + /// Event raised by OnAfterPostItemJnlLineItemCharges. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLineItemCharges(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerOrder. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerOrder(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemTrackingLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemTrackingLine(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnAfterPostUpdateCreditMemoLine. + /// + /// [IntegrationEvent(true, false)] local procedure OnAfterPostUpdateCreditMemoLine(var PurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPostUpdateInvoiceLine. + /// + /// [IntegrationEvent(true, false)] local procedure OnAfterPostUpdateInvoiceLine(var PurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPurchRcptHeaderInsert. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchRcptHeaderInsert(var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterPurchRcptLineInsert. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchRcptLineInsert(PurchaseLine: Record "Purchase Line"; var PurchRcptLine: Record "Purch. Rcpt. Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; PurchInvHeader: Record "Purch. Inv. Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; PurchRcptHeader: Record "Purch. Rcpt. Header"; TempWhseRcptHeader: Record "Warehouse Receipt Header"; xPurchLine: Record "Purchase Line"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPurchInvHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchInvHeaderInsert(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterPurchInvLineInsert. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchInvLineInsert(var PurchInvLine: Record "Purch. Inv. Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; PurchHeader: Record "Purchase Header"; PurchRcptHeader: Record "Purch. Rcpt. Header"; TempWhseRcptHeader: Record "Warehouse Receipt Header"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnAfterPurchCrMemoHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchCrMemoHeaderInsert(var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterPurchCrMemoLineInsert. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchCrMemoLineInsert(var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var PurchaseHeader: Record "Purchase Header"; GenJnlLineDocNo: Code[20]; RoundingLineInserted: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnAfterReturnShptHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterReturnShptHeaderInsert(var ReturnShptHeader: Record "Return Shipment Header"; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterReturnShptLineInsert. + /// + /// + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempWhseShptHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the xPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterReturnShptLineInsert(var ReturnShptLine: Record "Return Shipment Line"; ReturnShptHeader: Record "Return Shipment Header"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; var TempWhseShptHeader: Record "Warehouse Shipment Header" temporary; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; xPurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterRevertWarehouseEntry. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterRevertWarehouseEntry(var TempWhseJnlLine: Record "Warehouse Journal Line" temporary) begin end; + /// + /// Event raised by OnAfterSalesShptHeaderInsert. + /// + /// + /// Specifies the SalesOrderHeader parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterSalesShptHeaderInsert(var SalesShipmentHeader: Record "Sales Shipment Header"; SalesOrderHeader: Record "Sales Header"; CommitIsSuppressed: Boolean; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterSalesShptLineInsert. + /// + /// + /// Specifies the SalesShptHeader parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the DropShptPostBuffer parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnAfterSalesShptLineInsert(var SalesShptLine: Record "Sales Shipment Line"; SalesShptHeader: Record "Sales Shipment Header"; SalesOrderLine: Record "Sales Line"; CommitIsSuppressed: Boolean; DropShptPostBuffer: Record "Drop Shpt. Post. Buffer"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPostAccICLine. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostAccICLine(PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnAfterPostItemLine. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(true, false)] local procedure OnAfterPostItemLine(PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; PurchaseHeader: Record "Purchase Header"; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnAfterPostItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the WhseJnlRegisterLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseRcptHeader parameter. + /// Specifies the WhseShptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var WhseJnlRegisterLine: Codeunit "Whse. Jnl.-Register Line"; var WhseReceive: Boolean; var WhseShip: Boolean; var WhseRcptHeader: Record "Warehouse Receipt Header"; var WhseShptHeader: Record "Warehouse Shipment Header") begin end; + /// + /// Event raised by OnAfterPostWhseJnlLine. + /// + /// + /// Specifies the ItemLedgEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostWhseJnlLine(var PurchaseLine: Record "Purchase Line"; ItemLedgEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterPostUpdateOrderLine. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostUpdateOrderLine(var PurchaseLine: Record "Purchase Line"; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterPostInvoice. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the VendorLedgerEntry parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostInvoice(var PurchHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; TotalPurchLine: Record "Purchase Line"; TotalPurchLineLCY: Record "Purchase Line"; CommitIsSupressed: Boolean; var VendorLedgerEntry: Record "Vendor Ledger Entry") begin end; + /// + /// Event raised by OnAfterPostPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchInvLine parameter. + /// Specifies the PurchCrMemoLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLineACY parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostPurchLine(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var PurchInvLine: Record "Purch. Inv. Line"; var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchLineACY: Record "Purchase Line"; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; SrcCode: Code[10]; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterProcessPurchLines. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the PurchLinesProcessed parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnAfterProcessPurchLines(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShipmentHeader: Record "Return Shipment Header"; WhseShip: Boolean; WhseReceive: Boolean; var PurchLinesProcessed: Boolean; CommitIsSuppressed: Boolean; EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnAfterProcessAssocItemJnlLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnAfterProcessAssocItemJnlLine(var PurchLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnAfterReleasePurchDoc. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterReleasePurchDoc(var PurchHeader: Record "Purchase Header"); begin end; + /// + /// Event raised by OnAfterRefreshTempLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterRefreshTempLines(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterResetTempLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterResetTempLines(var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterRestorePurchaseHeader. + /// + /// + /// Specifies the PurchaseHeaderCopy parameter. [IntegrationEvent(false, false)] local procedure OnAfterRestorePurchaseHeader(var PurchaseHeader: Record "Purchase Header"; PurchaseHeaderCopy: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterReverseAmount. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterReverseAmount(var PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterRoundAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchLineQty parameter. [IntegrationEvent(false, false)] local procedure OnAfterRoundAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchLineQty: Decimal) begin end; + /// + /// Event raised by OnAfterSaveTempWhseSplitSpec. + /// + /// + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnAfterSaveTempWhseSplitSpec(PurchaseLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAfterSetPostingFlags. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterSetPostingFlags(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterTestPurchLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(false, false)] local procedure OnAfterTestPurchLine(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateInvoicedQtyOnPurchRcptLine. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoicedQtyOnPurchRcptLine(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchRcptLine: Record "Purch. Rcpt. Line"; var PurchaseLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; TrackingSpecificationExists: Boolean; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; var PurchaseHeader: Record "Purchase Header"; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateInvoicedQtyOnReturnShptLine. + /// + /// + /// Specifies the ReturnShipmentLine parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoicedQtyOnReturnShptLine(PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShipmentLine: Record "Return Shipment Line"; PurchaseLine: Record "Purchase Line"; TempTrackingSpecification: Record "Tracking Specification" temporary; TrackingSpecificationExists: Boolean; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnAfterUpdateLastPostingNos. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterUpdateLastPostingNos(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterUpdatePurchLineBeforePost. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the RoundingLineInserted parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePurchLineBeforePost(var PurchaseLine: Record "Purchase Line"; WhseShip: Boolean; WhseReceive: Boolean; PurchaseHeader: Record "Purchase Header"; RoundingLineInserted: Boolean) begin end; + /// + /// Event raised by OnAfterUpdatePrepmtPurchLineWithRounding. + /// + /// + /// Specifies the TotalRoundingAmount parameter. + /// Specifies the TotalPrepmtAmount parameter. + /// Specifies the FinalInvoice parameter. + /// Specifies the PricesInclVATRoundingAmount parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePrepmtPurchLineWithRounding(var PrepmtPurchLine: Record "Purchase Line"; TotalRoundingAmount: array[2] of Decimal; TotalPrepmtAmount: array[2] of Decimal; FinalInvoice: Boolean; PricesInclVATRoundingAmount: array[2] of Decimal; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterUpdatePurchaseHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePurchaseHeader(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; GenJnlLineDocType: Integer; GenJnlLineDocNo: Code[20]; PreviewMode: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterUpdatePurchLineDimSetIDFromAppliedEntry. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePurchLineDimSetIDFromAppliedEntry(var PurchLineToPost: Record "Purchase Line"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterValidatePostingAndDocumentDate. + /// + /// + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterValidatePostingAndDocumentDate(var PurchaseHeader: Record "Purchase Header"; CommitIsSuppressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnBeforeAddAssociatedOrderLineToBuffer. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAddAssociatedOrderLineToBuffer(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeModifyTempLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeModifyTempLine(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnModifyTempLineOnBeforeTransferFields. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnBeforeTransferFields(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeAdjustQuantityRoundingForReceipt. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustQuantityRoundingForReceipt(PurchRcptLine: Record "Purch. Rcpt. Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeArchiveUnpostedOrder. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the OrderArchived parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeArchiveUnpostedOrder(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; var OrderArchived: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnBeforeArchiveSalesOrders. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeArchiveSalesOrders(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeBlanketOrderPurchLineModify. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnBeforeBlanketOrderPurchLineModify(var BlanketOrderPurchLine: Record "Purchase Line"; PurchLine: Record "Purchase Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcInvoice. + /// + /// + /// Specifies the NewInvoice parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcInvoice(var PurchHeader: Record "Purchase Header"; var NewInvoice: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalculateAmountsInclVAT. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalculateAmountsInclVAT(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalculateInvoiceEverything. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the InvoiceEverything parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalculateInvoiceEverything(var TempPurchaseLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; var InvoiceEverything: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcLineAmountAndLineDiscountAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Currency parameter. [IntegrationEvent(true, false)] local procedure OnBeforeCalcLineAmountAndLineDiscountAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; PurchLineQty: Decimal; var IsHandled: Boolean; Currency: Record Currency) begin @@ -9625,168 +10216,389 @@ codeunit 90 "Purch.-Post" #if not CLEAN28 [Obsolete('This event is no longer used.', '28.0')] + /// + /// Event raised by OnBeforeCheckDropShipmentReceiveInvoice. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforeCheckDropShipmentReceiveInvoice(PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; #endif + /// + /// Event raised by OnBeforeCheckDocumentTotalAmounts. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforeCheckDocumentTotalAmounts(PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckCorrectedInvoiceNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckCorrectedInvoiceNo(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckExternalDocumentNumber. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the Handled parameter. + /// Specifies the DocType parameter. + /// Specifies the ExtDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckExternalDocumentNumber(VendorLedgerEntry: Record "Vendor Ledger Entry"; PurchaseHeader: Record "Purchase Header"; var Handled: Boolean; DocType: Option; ExtDocNo: Text[35]; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeCheckExtDocNo. + /// + /// + /// Specifies the DocumentType parameter. + /// Specifies the ExtDocNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckExtDocNo(PurchaseHeader: Record "Purchase Header"; DocumentType: Enum "Gen. Journal Document Type"; ExtDocNo: Text[35]; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckGLAccDirectPosting. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckGLAccDirectPosting(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckICDocumentDuplicatePosting. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckICDocumentDuplicatePosting(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckIfInvPutawayExists. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckIfInvPutawayExists(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckHeaderPostingType. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckHeaderPostingType(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckFieldsOnReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckFieldsOnReturnShipmentLine(var ReturnShipmentLine: Record "Return Shipment Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterCheckFieldsOnReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckFieldsOnReturnShipmentLine(ReturnShipmentLine: Record "Return Shipment Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeCheckPrepmtAmtToDeduct. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPrepmtAmtToDeduct(PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckPurchRcptLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckTrackingSpecification. + /// + /// + /// Specifies the TempItemPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckTrackingSpecification(PurchHeader: Record "Purchase Header"; var TempItemPurchLine: Record "Purchase Line" temporary); begin end; + /// + /// Event raised by OnBeforeCheckTrackingAndWarehouseForShip. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the Ship parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckTrackingAndWarehouseForShip(PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var Ship: Boolean; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeCheckWarehouse. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckWarehouse(var TempItemPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckWhseRcptLineQtyToReceive. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckWhseRcptLineQtyToReceive(var WhseRcptLine: Record "Warehouse Receipt Line"; var PurchRcptLine: Record "Purch. Rcpt. Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeClearRemAmt. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlRollRndg parameter. + /// Specifies the RemAmt parameter. + /// Specifies the RemDiscAmt parameter. [IntegrationEvent(false, false)] local procedure OnBeforeClearRemAmt(PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; ItemJnlRollRndg: Boolean; var RemAmt: Decimal; var RemDiscAmt: Decimal) begin end; + /// + /// Event raised by OnBeforeCreatePositiveEntry. + /// + /// + /// Specifies the JobNo parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePositiveEntry(var WarehouseJournalLine: Record "Warehouse Journal Line"; JobNo: Code[20]; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCreatePostedWhseRcptHeader. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedWhseRcptHeader(var PostedWhseReceiptHeader: Record "Posted Whse. Receipt Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeCreatePostedWhseShptHeader. + /// + /// + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedWhseShptHeader(var PostedWhseShipmentHeader: Record "Posted Whse. Shipment Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeCreatePostedWhseShptLine. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedWhseShptLine(PurchLine: Record "Purchase Line"; ReturnShptLine: Record "Return Shipment Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCreatePostedRcptLine. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedRcptLine(PurchLine: Record "Purchase Line"; ReturnShptLine: Record "Return Shipment Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCreateWhseLineFromReturnShptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreateWhseLineFromReturnShptLine(var ReturnShptLine: Record "Return Shipment Line"; PurchLine: Record "Purchase Line"; CostBaseAmount: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCommitAndUpdateAnalysisVeiw. + /// + /// + /// Specifies the SuppressCommit parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCommitAndUpdateAnalysisVeiw(InvtPickPutaway: Boolean; SuppressCommit: Boolean; PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCopyAndCheckItemChargeTempPurchLine. + /// + /// + /// Specifies the TempPrepmtPurchaseLine parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the IsHandled parameter. + /// Specifies the AssignError parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCopyAndCheckItemChargeTempPurchLine(PurchaseHeader: Record "Purchase Header"; var TempPrepmtPurchaseLine: Record "Purchase Line" temporary; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean; var AssignError: Boolean) begin end; + /// + /// Event raised by OnBeforeCreatePrepmtLines. + /// + /// + /// Specifies the TempPrepmtPurchaseLine parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePrepmtLines(PurchaseHeader: Record "Purchase Header"; var TempPrepmtPurchaseLine: Record "Purchase Line" temporary; CompleteFunctionality: Boolean; var IsHandled: Boolean; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeDeleteAfterPosting. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the SkipDelete parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDeleteAfterPosting(var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var SkipDelete: Boolean; CommitIsSupressed: Boolean; var TempPurchLine: Record "Purchase Line" temporary; var TempPurchLineGlobal: Record "Purchase Line" temporary; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnBeforeDeleteApprovalEntries. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDeleteApprovalEntries(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnBeforeDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDivideAmount(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping; var PurchLineQty: Decimal; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; - [IntegrationEvent(false, false)] + /// + /// Event raised by OnBeforeFinalizePosting. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the GenJnlPostLine parameter. + [IntegrationEvent(false, false)] local procedure OnBeforeFinalizePosting(var PurchaseHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var EverythingInvoiced: Boolean; CommitIsSupressed: Boolean; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnBeforeGetInvoicePostingSetup. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetInvoicePostingSetup(var InvoicePostingInterface: Interface "Invoice Posting"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInitAssocItemJnlLine. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInitAssocItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; PurchaseHeader: Record "Purchase Header") begin @@ -9794,97 +10606,265 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforeInvoiceRoundingAmount. + /// + /// + /// Specifies the TotalAmountIncludingVAT parameter. + /// Specifies the UseTempData parameter. + /// Specifies the InvoiceRoundingAmount parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInvoiceRoundingAmount(PurchHeader: Record "Purchase Header"; TotalAmountIncludingVAT: Decimal; UseTempData: Boolean; var InvoiceRoundingAmount: Decimal; CommitIsSupressed: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeInsertICGenJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ICGenJnlLineNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertICGenJnlLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var ICGenJnlLineNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertPostedHeaders. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertPostedHeaders(var PurchaseHeader: Record "Purchase Header"; var WarehouseReceiptHeader: Record "Warehouse Receipt Header"; var WarehouseShipmentHeader: Record "Warehouse Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertRcptEntryRelation. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the TempTrackingSpecificationInv parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertRcptEntryRelation(PurchaseLine: Record "Purchase Line"; var PurchRcptLine: Record "Purch. Rcpt. Line"; var TempHandlingSpecification: Record "Tracking Specification" temporary; TempTrackingSpecificationInv: Record "Tracking Specification" temporary; ItemLedgShptEntryNo: Integer; var Result: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertReceiptHeader. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReceiptHeader(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var IsHandled: Boolean; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertReceiptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReceiptLine(var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchLine: Record "Purchase Line"; var CostBaseAmount: Decimal; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeInsertReturnShipmentLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReturnShipmentLine(var ReturnShptHeader: Record "Return Shipment Header"; var PurchLine: Record "Purchase Line"; var CostBaseAmount: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertTrackingSpecification(PurchHeader: Record "Purchase Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeItemJnlPostLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. + /// Specifies the WhseReceiptHeader parameter. + /// Specifies the WhseShipmentHeader parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. [IntegrationEvent(true, false)] local procedure OnBeforeItemJnlPostLine(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; var IsHandled: Boolean; WhseReceiptHeader: Record "Warehouse Receipt Header"; WhseShipmentHeader: Record "Warehouse Shipment Header"; TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnBeforeIsEndLoopForShippedNotInvoiced. + /// + /// + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the ReturnShptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the PurchLine parameter. + /// Specifies the EndLoop parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeIsEndLoopForShippedNotInvoiced(RemQtyToBeInvoiced: Decimal; TrackingSpecificationExists: Boolean; var ReturnShptLine: Record "Return Shipment Line"; var InvoicingTrackingSpecification: Record "Tracking Specification"; PurchLine: Record "Purchase Line"; var EndLoop: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeIsEndLoopForReceivedNotInvoiced. + /// + /// + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PurchRcptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the PurchLine parameter. + /// Specifies the EndLoop parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeIsEndLoopForReceivedNotInvoiced(RemQtyToBeInvoiced: Decimal; TrackingSpecificationExists: Boolean; var PurchRcptLine: Record "Purch. Rcpt. Line"; var InvoicingTrackingSpecification: Record "Tracking Specification"; PurchLine: Record "Purchase Line"; var EndLoop: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeGetPurchRcptLineFromTrackingOrUpdateItemEntryRelation. + /// + /// + /// Specifies the TrackingSpecification parameter. + /// Specifies the ItemEntryRelation parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetPurchRcptLineFromTrackingOrUpdateItemEntryRelation(var PurchRcptLine: Record "Purch. Rcpt. Line"; var TrackingSpecification: Record "Tracking Specification"; var ItemEntryRelation: Record "Item Entry Relation"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeGetPurchLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeGetPurchLines(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeLockTables. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempPurchaseLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnBeforeLockTables(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSuppressed: Boolean; var IsHandled: Boolean; var TempPurchaseLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforePostLines. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostLines(var PurchLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSupressed: Boolean; var TempPurchLineGlobal: Record "Purchase Line" temporary; var TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary) begin end; + /// + /// Event raised by OnBeforePostDistributeItemCharge. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemLedgerEntry parameter. + /// Specifies the NonDistrQuantity parameter. + /// Specifies the NonDistrQtyToAssign parameter. + /// Specifies the NonDistrAmountToAssign parameter. + /// Specifies the Sign parameter. + /// Specifies the IndirectCostPct parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostDistributeItemCharge(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var TempItemLedgerEntry: Record "Item Ledger Entry"; NonDistrQuantity: Decimal; NonDistrQtyToAssign: Decimal; NonDistrAmountToAssign: Decimal; Sign: Decimal; IndirectCostPct: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostInvoice. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Window parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the InvoicePostingInterface parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostInvoice(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSupressed: Boolean; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var IsHandled: Boolean; var Window: Dialog; HideProgressWindow: Boolean; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line"; var InvoicePostingInterface: Interface "Invoice Posting"; var InvoicePostingParameters: Record "Invoice Posting Parameters"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnBeforePostGLAccICLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ICGenJnlLineNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostGLAccICLine(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ICGenJnlLineNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerSalesShpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerSalesShpt(var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin @@ -9897,98 +10877,245 @@ codeunit 90 "Purch.-Post" end; [Obsolete('Moved to codeunit MfgPurchPost', '27.0')] + /// + /// Event raised by OnBeforePostItemJnlLineCopyProdOrder. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemJnlLineCopyProdOrder(PurchLine: Record "Purchase Line"; var ItemJnlLine: Record "Item Journal Line"; QtyToBeReceived: Decimal; QtyToBeInvoiced: Decimal; CommitIsSupressed: Boolean; var IsHandled: Boolean) begin end; #endif + /// + /// Event raised by OnBeforePostPurchaseDoc. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostPurchaseDoc(var PurchaseHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSupressed: Boolean; var HideProgressWindow: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostCommitPurchaseDoc. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostCommitPurchaseDoc(var PurchaseHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PreviewMode: Boolean; var ModifyHeader: Boolean; var CommitIsSupressed: Boolean; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeProcessAssocItemJnlLine. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the SourceCode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeProcessAssocItemJnlLine(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary; ItemLedgShptEntryNo: Integer; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; SourceCode: Code[10]) begin end; + /// + /// Event raised by OnBeforePrepareCheckDocument. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforePrepareCheckDocument(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforePurchLineDeleteAll. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchLineDeleteAll(var PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforePurchRcptHeaderInsert. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchRcptHeaderInsert(var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseReceive: Boolean; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseShip: Boolean) begin end; + /// + /// Event raised by OnBeforePurchRcptLineInsert. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PostedWhseRcptLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemLedgShptEntryNo parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchRcptLineInsert(var PurchRcptLine: Record "Purch. Rcpt. Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean; PostedWhseRcptLine: Record "Posted Whse. Receipt Line"; var IsHandled: Boolean; ItemLedgShptEntryNo: Integer) begin end; + /// + /// Event raised by OnBeforePurchInvHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchInvHeaderInsert(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnBeforePurchInvLineInsert. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchInvLineInsert(var PurchInvLine: Record "Purch. Inv. Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePurchCrMemoHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchCrMemoHeaderInsert(var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnBeforePurchCrMemoLineInsert. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchCrMemoLineInsert(var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeReleasePurchDoc. + /// + /// + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeReleasePurchDoc(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean); begin end; + /// + /// Event raised by OnBeforeReturnShptHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(false, false)] local procedure OnBeforeReturnShptHeaderInsert(var ReturnShptHeader: Record "Return Shipment Header"; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseReceive: Boolean; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseShip: Boolean) begin end; + /// + /// Event raised by OnBeforeReturnShptLineInsert. + /// + /// + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeReturnShptLineInsert(var ReturnShptLine: Record "Return Shipment Line"; var ReturnShptHeader: Record "Return Shipment Header"; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnBeforeRoundAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchLineQty parameter. [IntegrationEvent(false, false)] local procedure OnBeforeRoundAmount(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchLineQty: Decimal) begin end; + /// + /// Event raised by OnBeforeSalesShptHeaderInsert. + /// + /// + /// Specifies the SalesOrderHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSalesShptHeaderInsert(var SalesShptHeader: Record "Sales Shipment Header"; SalesOrderHeader: Record "Sales Header"; CommitIsSupressed: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeSalesShptLineInsert. + /// + /// + /// Specifies the SalesShptHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the DropShptPostBuffer parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSalesShptLineInsert(var SalesShptLine: Record "Sales Shipment Line"; SalesShptHeader: Record "Sales Shipment Header"; SalesLine: Record "Sales Line"; CommitIsSupressed: Boolean; DropShptPostBuffer: Record "Drop Shpt. Post. Buffer"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSetCheckApplToItemEntry. + /// + /// + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSetCheckApplToItemEntry(var PurchaseLine: Record "Purchase Line"; var Result: Boolean; var IsHandled: Boolean; PurchaseHeader: Record "Purchase Header"; ItemJournalLine: Record "Item Journal Line") begin @@ -9996,6 +11123,17 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforePostCombineSalesOrderShipment. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostCombineSalesOrderShipment(var PurchaseHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesShipmentHeader: Record "Sales Shipment Header"; var ItemLedgShptEntryNo: Integer; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempHandlingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean) begin @@ -10003,246 +11141,636 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforePostItemJnlLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeReceivedBase parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the ItemChargeNo parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the Result parameter. + /// Specifies the WarehouseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLine(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var QtyToBeReceived: Decimal; var QtyToBeReceivedBase: Decimal; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; var ItemLedgShptEntryNo: Integer; var ItemChargeNo: Code[20]; var TrackingSpecification: Record "Tracking Specification"; CommitIsSupressed: Boolean; var IsHandled: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var Result: Integer; var WarehouseReceiptHeader: Record "Warehouse Receipt Header") begin end; + /// + /// Event raised by OnBeforePostItemJnlLineItemCharges. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLineItemCharges(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostAssocItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostAssocItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var SalesLine: Record "Sales Line"; CommitIsSupressed: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePostItemChargePerOrder. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the ItemChargePurchLine parameter. + /// Specifies the TempTrackingSpecificationChargeAssmt parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerOrder(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ItemJnlLine2: Record "Item Journal Line"; var ItemChargePurchLine: Record "Purchase Line"; var TempTrackingSpecificationChargeAssmt: Record "Tracking Specification" temporary; CommitIsSupressed: Boolean; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargeLineProcedure. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargeLineProcedure(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemLine(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; PurchRcptHeader: Record "Purch. Rcpt. Header"; var RemQtyToBeInvoiced: Decimal; var TempPurchLineGlobal: Record "Purchase Line" temporary; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var RemQtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemJnlLineJobConsumption. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the SourceCode parameter. + /// Specifies the PostJobConsumptionBeforePurch parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemJnlLineJobConsumption(var ItemJournalLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; SourceCode: Code[10]; var PostJobConsumptionBeforePurch: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTracking. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PreciseTotalChargeAmt parameter. + /// Specifies the PreciseTotalChargeAmtACY parameter. + /// Specifies the RoundedPrevTotalChargeAmt parameter. + /// Specifies the RoundedPrevTotalChargeAmtACY parameter. + /// Specifies the IsHandled parameter. + /// Specifies the RemQtyToBeInvoiced parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemTracking(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TrackingSpecificationExists: Boolean; var PreciseTotalChargeAmt: Decimal; var PreciseTotalChargeAmtACY: Decimal; var RoundedPrevTotalChargeAmt: Decimal; var RoundedPrevTotalChargeAmtACY: Decimal; var IsHandled: Boolean; RemQtyToBeInvoiced: Decimal) begin end; + /// + /// Event raised by OnBeforePostItemTrackingCheckReceipt. + /// + /// + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingCheckReceipt(PurchaseLine: Record "Purchase Line"; RemQtyToBeInvoiced: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingCheckShipment. + /// + /// + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingCheckShipment(PurchaseLine: Record "Purchase Line"; RemQtyToBeInvoiced: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForReceiptCondition. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the Condition parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForReceiptCondition(PurchaseLine: Record "Purchase Line"; PurchRcptLine: Record "Purch. Rcpt. Line"; var Condition: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingItemChargePerOrder. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the TempTrackingSpecificationChargeAssmtCorrect parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingItemChargePerOrder(var TempTrackingSpecificationChargeAssmt: Record "Tracking Specification" temporary; var IsHandled: Boolean; var ItemJnlLine2: Record "Item Journal Line"; var TempTrackingSpecificationChargeAssmtCorrect: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnBeforePostItemTrackingLineOnPostPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemTrackingLineOnPostPurchLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; TempTrackingSpecification: Record "Tracking Specification" temporary; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForShipmentCondition. + /// + /// + /// Specifies the ReturnShipmentLine parameter. + /// Specifies the Condition parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForShipmentCondition(PurchaseLine: Record "Purchase Line"; ReturnShipmentLine: Record "Return Shipment Line"; var Condition: Boolean) begin end; + /// + /// Event raised by OnBeforePostResourceLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the JobPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostResourceLine(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; SrcCode: Code[10]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocNo: Code[20]; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; JobPurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePostUpdateOrderLine. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PurchSetup parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateOrderLine(PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; CommitIsSuppressed: Boolean; PurchSetup: Record "Purchases & Payables Setup") begin end; + /// + /// Event raised by OnBeforePostUpdateOrderLineModifyTempLine. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateOrderLineModifyTempLine(var TempPurchaseLine: Record "Purchase Line" temporary; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSuppressed: Boolean; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeRevertWarehouseEntry. + /// + /// + /// Specifies the JobNo parameter. + /// Specifies the PostJobConsumption parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeRevertWarehouseEntry(var WarehouseJournalLine: Record "Warehouse Journal Line"; JobNo: Code[20]; PostJobConsumption: Boolean; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSendICDocument. + /// + /// + /// Specifies the ModifyHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSendICDocument(var PurchHeader: Record "Purchase Header"; var ModifyHeader: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSumPurchLines2. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the VATAmountLine parameter. + /// Specifies the InsertPurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforeSumPurchLines2(QtyType: Option; var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var VATAmountLine: Record "VAT Amount Line"; InsertPurchLine: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSumPurchLinesTemp. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeSumPurchLinesTemp(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeTempDropShptPostBufferInsert. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTempDropShptPostBufferInsert(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; PurchaseLine: Record "Purchase Line"; var ItemLedgShptEntryNo: Integer) begin end; + /// + /// Event raised by OnBeforeTempPrepmtPurchLineInsert. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTempPrepmtPurchLineInsert(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var TempPurchLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnBeforeTempPrepmtPurchLineModify. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTempPrepmtPurchLineModify(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var TempPurchLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnBeforeTransferReservToItemJnlLine. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the PurchLine parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the ApplySpecificItemTracking parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTransferReservToItemJnlLine(var SalesOrderLine: Record "Sales Line"; var ItemJnlLine: Record "Item Journal Line"; PurchLine: Record "Purchase Line"; QtyToBeShippedBase: Decimal; var ApplySpecificItemTracking: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateAssocOrder. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(true, false)] local procedure OnBeforeUpdateAssocOrder(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var IsHandled: Boolean; SuppressCommit: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the Receive parameter. + /// Specifies the Ship parameter. + /// Specifies the Invoice parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateBlanketOrderLine(PurchLine: Record "Purchase Line"; Receive: Boolean; Ship: Boolean; Invoice: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePostingNos. + /// + /// + /// Specifies the ModifyHeader parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the IsHandled parameter. + /// Specifies the DateOrderSeriesUsed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePostingNos(var PurchHeader: Record "Purchase Header"; var ModifyHeader: Boolean; SuppressCommit: Boolean; var IsHandled: Boolean; var DateOrderSeriesUsed: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePurchaseHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePurchaseHeader(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; GenJnlLineDocType: Option; var IsHandled: Boolean; var PurchaseHeader: Record "Purchase Header"; GenJnlLineDocNo: Code[20]; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePurchLineBeforePost. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePurchLineBeforePost(var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; WhseShip: Boolean; WhseReceive: Boolean; RoundingLineInserted: Boolean; CommitIsSupressed: Boolean) begin end; +#if not CLEAN29 + internal procedure RunOnBeforeCreateCarteraBills(PurchHeader: Record "Purchase Header"; var VendLedgEntry: Record "Vendor Ledger Entry"; var TotalPurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean) + begin + OnBeforeCreateCarteraBills(PurchHeader, VendLedgEntry, TotalPurchLine, CommitIsSupressed); + end; + + [Obsolete('Moved to codeunit "CRT Purch.-Post"', '29.0')] + /// + /// Event raised by OnBeforeCreateCarteraBills. + /// + /// + /// Specifies the VendLedgEntry parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreateCarteraBills(PurchHeader: Record "Purchase Header"; var VendLedgEntry: Record "Vendor Ledger Entry"; var TotalPurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean) begin end; +#endif + /// + /// Event raised by OnBeforeUpdateInvoicedQtyOnPurchRcptLine. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateInvoicedQtyOnPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; CommitIsSupressed: Boolean; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeUpdatePrepmtPurchLineWithRounding. + /// + /// + /// Specifies the TotalRoundingAmount parameter. + /// Specifies the TotalPrepmtAmount parameter. + /// Specifies the FinalInvoice parameter. + /// Specifies the PricesInclVATRoundingAmount parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePrepmtPurchLineWithRounding(var PrepmtPurchLine: Record "Purchase Line"; TotalRoundingAmount: array[2] of Decimal; TotalPrepmtAmount: array[2] of Decimal; FinalInvoice: Boolean; PricesInclVATRoundingAmount: array[2] of Decimal; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeUpdateQtyToInvoiceForOrder. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToInvoiceForOrder(var PurchHeader: Record "Purchase Header"; TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateQtyToInvoiceForReturnOrder. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToInvoiceForReturnOrder(var PurchHeader: Record "Purchase Header"; TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateQtyToBeInvoicedForReceipt. + /// + /// + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToBeInvoicedForReceipt(var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; PurchLine: Record "Purchase Line"; PurchRcptLine: Record "Purch. Rcpt. Line"; InvoicingTrackingSpecification: Record "Tracking Specification"; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateQtyToBeInvoicedForReturnShipment. + /// + /// + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ReturnShipmentLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToBeInvoicedForReturnShipment(var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; PurchLine: Record "Purchase Line"; ReturnShipmentLine: Record "Return Shipment Line"; InvoicingTrackingSpecification: Record "Tracking Specification"; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateJobConsumptionReservationApplToItemEntry. + /// + /// + /// Specifies the ItemJournalLine parameter. + /// Specifies the IsNonInventoriableItem parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateJobConsumptionReservationApplToItemEntry(var TempReservEntryJobCons: Record "Reservation Entry" temporary; var ItemJournalLine: Record "Item Journal Line"; IsNonInventoriableItem: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLine. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLine(var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineFixedAsset. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineFixedAsset(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineItemCharge. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineItemCharge(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineJob. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineJob(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineOthers. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineOthers(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestStatusRelease. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestStatusRelease(PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateItemChargeAssgnt. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateItemChargeAssgnt(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateHandledICInboxTransaction. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateHandledICInboxTransaction(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeValidatePostingAndDocumentDate. + /// + /// + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeValidatePostingAndDocumentDate(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnSetPostingDateExists. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PostingDateExists parameter. + /// Specifies the ReplacePostingDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnSetPostingDateExists(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; var PostingDateExists: Boolean; var ReplacePostingDate: Boolean; var PostingDate: Date; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeWhseHandlingRequired. + /// + /// + /// Specifies the Required parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeWhseHandlingRequired(PurchaseLine: Record "Purchase Line"; var Required: Boolean; var IsHandled: Boolean) begin @@ -10250,62 +11778,140 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforeGetCountryCode. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the CountryRegionCode parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetCountryCode(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var CountryRegionCode: Code[10]; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeShouldPostWhseJnlLine. + /// + /// + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlLine parameter. + /// Specifies the TempWhseJnlLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeShouldPostWhseJnlLine(PurchLine: Record "Purchase Line"; var Result: Boolean; var IsHandled: Boolean; var ItemJnlLine: Record "Item Journal Line"; var TempWhseJnlLine: Record "Warehouse Journal Line" temporary; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnCalcInvDiscountSetFilter. + /// + /// + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvDiscountSetFilter(var PurchLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterClearPostingFromWhseRef. + /// + /// + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterClearPostingFromWhseRef(var PurchHeader: Record "Purchase Header"; var InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetPostingFlags. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetPostingFlags(var PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary); begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeSetPostingFlags. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeSetPostingFlags(var PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetSourceCode. + /// + /// + /// Specifies the SourceCodeSetup parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetSourceCode(var PurchHeader: Record "Purchase Header"; SourceCodeSetup: Record "Source Code Setup"; var SrcCode: Code[10]); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterArchiveUnpostedOrder. + /// + /// + /// Specifies the Currency parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterArchiveUnpostedOrder(var PurchHeader: Record "Purchase Header"; Currency: Record "Currency"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCalcInvDiscount. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the RefreshNeeded parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCalcInvDiscount(var PurchaseHeader: Record "Purchase Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseReceive: Boolean; WhseShip: Boolean; var RefreshNeeded: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateAssocOrderPostingDateOnBeforeValidateDocumentDate. + /// + /// + /// Specifies the OriginalDocumentDate parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateAssocOrderPostingDateOnBeforeValidateDocumentDate(var SalesHeader: Record "Sales Header"; var OriginalDocumentDate: Date) begin end; + /// + /// Event raised by OnCheckAssociatedOrderLinesOnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssociatedOrderLinesOnAfterSetFilters(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnCheckAssociatedOrderLinesOnAfterCheckDimensions. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssociatedOrderLinesOnAfterCheckDimensions(PurchaseHeader: Record "Purchase Header"; SalesHeader: Record "Sales Header"; var PurchaseLine: Record "Purchase Line"; TempSalesLine: Record "Sales Line" temporary) begin @@ -10313,72 +11919,146 @@ codeunit 90 "Purch.-Post" #if not CLEAN28 [Obsolete('This event is no longer used.', '28.0')] + /// + /// Event raised by OnCheckAssocOrderLinesOnBeforeCheckOrderLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssocOrderLinesOnBeforeCheckOrderLine(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; #endif + /// + /// Event raised by OnCheckExternalDocumentNumberOnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnCheckExternalDocumentNumberOnAfterSetFilters(var VendLedgEntry: Record "Vendor Ledger Entry"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForShipOnAfterTempPurchLineSetFilters. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForShipOnAfterTempPurchLineSetFilters(PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForReceiveOnAfterTempPurchLineSetFilters. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForReceiveOnAfterTempPurchLineSetFilters(PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCheckWarehouseOnAfterSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnCheckWarehouseOnAfterSetFilters(var TempItemPurchLine: Record "Purchase Line"); begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeLoop. + /// + /// + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeLoop(var TempPurchLine: Record "Purchase Line" temporary; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeCheckIfEmpty. + /// + /// [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeCheckIfEmpty(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCopyToTempLinesOnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnCopyToTempLinesOnAfterSetFilters(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterInitTempPrepmtPurchLineFromPurchHeader. + /// + /// [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterInitTempPrepmtPurchLineFromPurchHeader(var TempPrepmtPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterTempPurchLineSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterTempPurchLineSetFilters(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterTempPrepmtPurchLineSetFilters. + /// + /// + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterTempPrepmtPurchLineSetFilters(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnDivideAmountOnAfterClearAmounts. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterClearAmounts(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var PurchLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnAfterCalcLineAmountAndLineDiscountAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterCalcLineAmountAndLineDiscountAmount(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchaseLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineRemainderModify. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineRemainderModify(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency) begin @@ -10389,227 +12069,589 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnGetItemChargeLineOnAfterGet. + /// + /// + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnGetItemChargeLineOnAfterGet(var ItemChargePurchLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnGetPurchLinesOnAfterFillTempLines. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnGetPurchLinesOnAfterFillTempLines(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyType: Option; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnInsertICGenJnlLineOnAfterCopyDocumentFields. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempICGenJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertICGenJnlLineOnAfterCopyDocumentFields(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var TempICGenJournalLine: Record "Gen. Journal Line") begin end; + /// + /// Event raised by OnInsertAssocOrderChargeOnBeforeInsert. + /// + /// + /// Specifies the NewItemChargeAssignmentPurch parameter. [IntegrationEvent(false, false)] local procedure OnInsertAssocOrderChargeOnBeforeInsert(TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)"; var NewItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)") begin end; + /// + /// Event raised by OnInsertICGenJnlLineOnBeforeICGenJnlLineInsert. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnInsertICGenJnlLineOnBeforeICGenJnlLineInsert(var TempICGenJournalLine: Record "Gen. Journal Line" temporary; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnInsertReceiptLineOnAfterGetWhseRcptLine. + /// + /// + /// Specifies the PurchRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterGetWhseRcptLine(var WhseRcptLine: Record "Warehouse Receipt Line"; PurchRcptLine: Record "Purch. Rcpt. Line") begin end; + /// + /// Event raised by OnInsertReceiptLineOnAfterInitPurchRcptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the PostedWhseRcptHeader parameter. + /// Specifies the WhseRcptHeader parameter. + /// Specifies the WhseRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterInitPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; xPurchLine: Record "Purchase Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var CostBaseAmount: Decimal; PostedWhseRcptHeader: Record "Posted Whse. Receipt Header"; WhseRcptHeader: Record "Warehouse Receipt Header"; var WhseRcptLine: Record "Warehouse Receipt Line") begin end; + /// + /// Event raised by OnInsertReceiptLineOnAfterCalcShouldGetWhseRcptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PostedWhseRcptHeader parameter. + /// Specifies the WhseRcptHeader parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ShouldGetWhseRcptLine parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the PurchRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterCalcShouldGetWhseRcptLine(PurchRcptHeader: Record "Purch. Rcpt. Header"; PurchLine: Record "Purchase Line"; PostedWhseRcptHeader: Record "Posted Whse. Receipt Header"; WhseRcptHeader: Record "Warehouse Receipt Header"; CostBaseAmount: Decimal; WhseReceive: Boolean; WhseShip: Boolean; var ShouldGetWhseRcptLine: Boolean; xPurchLine: Record "Purchase Line"; var PurchRcptLine: Record "Purch. Rcpt. Line") begin end; - [IntegrationEvent(false, false)] + /// + /// Event raised by OnInsertReceiptLineOnAfterCalcShouldGetWhseShptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PostedWhseShptHeader parameter. + /// Specifies the WhseShptHeader parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ShouldGetWhseShptLine parameter. + [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterCalcShouldGetWhseShptLine(PurchRcptHeader: Record "Purch. Rcpt. Header"; PurchLine: Record "Purchase Line"; PostedWhseShptHeader: Record "Posted Whse. Shipment Header"; WhseShptHeader: Record "Warehouse Shipment Header"; CostBaseAmount: Decimal; WhseReceive: Boolean; WhseShip: Boolean; var ShouldGetWhseShptLine: Boolean) begin end; + /// + /// Event raised by OnInsertReturnShipmentLineOnAfterGetWhseShptLine. + /// + /// + /// Specifies the ReturnShptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReturnShipmentLineOnAfterGetWhseShptLine(var WhseShptLine: Record "Warehouse Shipment Line"; ReturnShptLine: Record "Return Shipment Line") begin end; + /// + /// Event raised by OnInsertReturnShipmentLineOnAfterReturnShptLineInit. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the PurchLine parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnInsertReturnShipmentLineOnAfterReturnShptLineInit(var ReturnShptHeader: Record "Return Shipment Header"; var ReturnShptLine: Record "Return Shipment Line"; var PurchLine: Record "Purchase Line"; var xPurchLine: Record "Purchase Line"; var CostBaseAmount: Decimal; WhseShip: Boolean; WhseReceive: Boolean); begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforePost. + /// + /// + /// Specifies the SalesOrderLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforePost(var ItemJournalLine: Record "Item Journal Line"; SalesOrderLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnAfterUpdateBlanketOrderLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the SalesOrderHeader parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the SrcCode parameter. + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnAfterUpdateBlanketOrderLine(var PurchaseHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer"; var SalesOrderLine: Record "Sales Line"; var SalesOrderHeader: record "Sales Header"; var SalesShptLine: record "Sales Shipment Line"; SalesShptHeader: Record "Sales Shipment Header"; SrcCode: Code[10]; Currency: Record Currency) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the SalesShptLine parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnBeforeUpdateBlanketOrderLine(var SalesOrderLine: Record "Sales Line"; SalesShptLine: Record "Sales Shipment Line") begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnAfterProcessDropShptPostBuffer. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnAfterProcessDropShptPostBuffer(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; PurchRcptHeader: Record "Purch. Rcpt. Header"; SalesShptLine: Record "Sales Shipment Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary); begin end; + /// + /// Event raised by OnPostDistributeItemChargeOnAfterCalcAmountToAssign. + /// + /// + /// Specifies the TempItemLedgerEntry parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the AmountToAssign parameter. + /// Specifies the Sign parameter. + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostDistributeItemChargeOnAfterCalcAmountToAssign(var PurchaseLine: Record "Purchase Line"; TempItemLedgerEntry: Record "Item Ledger Entry"; QtyToAssign: Decimal; AmountToAssign: Decimal; Sign: Decimal; Factor: Decimal) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterPostItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ItemChargeAssignmentPurch parameter. [IntegrationEvent(true, false)] local procedure OnPostItemChargeOnAfterPostItemJnlLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; ItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)") begin end; + /// + /// Event raised by OnPostItemChargeLineOnAfterPostItemCharge. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchaseLineBackup parameter. + /// Specifies the PurchLine parameter. [IntegrationEvent(true, false)] local procedure OnPostItemChargeLineOnAfterPostItemCharge(var TempItemChargeAssgntPurch: record "Item Charge Assignment (Purch)" temporary; PurchHeader: Record "Purchase Header"; PurchaseLineBackup: Record "Purchase Line"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargeLineOnBeforePostItemCharge. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeLineOnBeforePostItemCharge(var TempItemChargeAssgntPurch: record "Item Charge Assignment (Purch)" temporary; PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var GenJnlLineDocNo: Code[20]) begin end; + /// + /// Event raised by OnPostItemChargeOnBeforePostItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the PurchInvHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnBeforePostItemJnlLine(var PurchaseLineToPost: Record "Purchase Line"; var PurchaseLine: Record "Purchase Line"; QtyToAssign: Decimal; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; PurchInvHeader: Record "Purch. Inv. Header") begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnAfterCopyToItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the GeneralLedgerSetup parameter. + /// Specifies the QtyToInvoice parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnAfterCopyToItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; GeneralLedgerSetup: Record "General Ledger Setup"; QtyToInvoice: Decimal; var TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ReturnRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ReturnRcptLine: Record "Return Receipt Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerSalesRetRcptOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerSalesRetRcptOnBeforeTestJobNo(ReturnReceiptLine: Record "Return Receipt Line"; var IsHandled: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerSalesShptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerSalesShptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var SalesShptLine: Record "Sales Shipment Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerSalesShptOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerSalesShptOnBeforeTestJobNo(SalesShipmentLine: Record "Sales Shipment Line"; var IsHandled: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerRetShptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ReturnShptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetShptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ReturnShptLine: Record "Return Shipment Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRetShptOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetShptOnBeforeTestJobNo(ReturnShipmentLine: Record "Return Shipment Line"; var IsHandled: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerRcptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRcptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var PurchRcptLine: record "Purch. Rcpt. Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRcptOnAfterPurchRcptLineGet. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRcptOnAfterPurchRcptLineGet(PurchRcptLine: Record "Purch. Rcpt. Line"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerTransferOnAfterInitPurchLine2. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerTransferOnAfterInitPurchLine2(TransferReceiptLine: Record "Transfer Receipt Line"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerTransferOnBeforePostItemJnlLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemApplnEntry parameter. + /// Specifies the TransferReceiptLine parameter. + /// Specifies the ItemChargeAssignmentPurch parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerTransferOnBeforePostItemJnlLine(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; ItemApplnEntry: Record "Item Application Entry"; TransferReceiptLine: Record "Transfer Receipt Line"; ItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)") begin end; + /// + /// Event raised by OnPostItemChargePerITTransferOnAfterCollectItemEntryRelation. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TransRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerITTransferOnAfterCollectItemEntryRelation(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; TransRcptLine: Record "Transfer Receipt Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnBeforeTempWhseJnlLine2Find. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnBeforeTempWhseJnlLine2Find(var TempWarehouseJournalLine2: Record "Warehouse Journal Line" temporary; PurchaseLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyDocumentFields. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; PurchRcptHeader: Record "Purch. Rcpt. Header"; GenJnlLineExtDocNo: Code[35]; QtyToBeInvoiced: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforePostItemJnlLineCopyDocumentFields. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforePostItemJnlLineCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; QtyToBeInvoiced: Decimal; QtyToBeReceived: Decimal; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterPostItemJnlLineJobConsumption. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the OriginalItemJnlLine parameter. + /// Specifies the TempReservationEntry parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the PostJobConsumptionBeforePurch parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the TempWhseTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterPostItemJnlLineJobConsumption(var ItemJournalLine: Record "Item Journal Line"; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; OriginalItemJnlLine: Record "Item Journal Line"; var TempReservationEntry: Record "Reservation Entry" temporary; var TrackingSpecification: Record "Tracking Specification" temporary; QtyToBeInvoiced: Decimal; QtyToBeReceived: Decimal; var PostJobConsumptionBeforePurch: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyItemCharge. + /// + /// + /// Specifies the TempItemChargeAssgntPurch parameter. [IntegrationEvent(true, false)] local procedure OnPostItemJnlLineOnAfterCopyItemCharge(var ItemJournalLine: Record "Item Journal Line"; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeCopyDocumentFields. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforePostWhseJnlLine. + /// + /// + /// Specifies the TempWhseJnlLine parameter. + /// Specifies the ItemJnlLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforePostWhseJnlLine(TempHandlingSpecification: Record "Tracking Specification"; var TempWhseJnlLine: Record "Warehouse Journal Line"; ItemJnlLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumptionOnBeforeRunItemJnlPostLineWithReservation. + /// + /// + /// Specifies the TempReservationEntry parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(true, false)] local procedure OnPostItemJnlLineJobConsumptionOnBeforeRunItemJnlPostLineWithReservation(var ItemJournalLine: Record "Item Journal Line"; var TempReservationEntry: Record "Reservation Entry" temporary; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumption. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemJournalLine parameter. + /// Specifies the TempPurchReservEntry parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the PurchItemLedgEntryNo parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineJobConsumption(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; ItemJournalLine: Record "Item Journal Line"; var TempPurchReservEntry: Record "Reservation Entry" temporary; QtyToBeInvoiced: Decimal; QtyToBeReceived: Decimal; var TempTrackingSpecification: Record "Tracking Specification" temporary; PurchItemLedgEntryNo: Integer; var IsHandled: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterSetFactor. + /// + /// + /// Specifies the Factor parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterSetFactor(var PurchaseLine: Record "Purchase Line"; var Factor: Decimal; var GenJnlLineExtDocNo: Code[35]; var ItemJournalLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterPrepareItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterPrepareItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; PreviewMode: Boolean; var GenJnlLineDocNo: code[20]; TrackingSpecification: Record "Tracking Specification"; QtyToBeReceived: Decimal; QtyToBeInvoiced: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnCopyProdOrder. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the SuppressCommit parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnCopyProdOrder(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; QtyToBeReceived: Decimal; QtyToBeInvoiced: Decimal; SuppressCommit: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumptionOnBeforeJobPost. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the SrcCode parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the IsHandled parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineJobConsumptionOnBeforeJobPost( var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; @@ -10618,191 +12660,471 @@ codeunit 90 "Purch.-Post" begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnAfterPostRevert. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnAfterPostRevert(var TempWhseJnlLine: Record "Warehouse Journal Line" temporary; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnBeforePostSingleLine. + /// + /// + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the TempWhseJnlLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnBeforePostSingleLine(WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean; var TempWhseJnlLine: Record "Warehouse Journal Line" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the QtyToBeReceivedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck(var ItemJnlLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; QtyToBeReceived: Decimal; WhseReceive: Boolean; var TempWhseRcptHeader: Record "Warehouse Receipt Header" temporary; QtyToBeReceivedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeItemJnlPostLineRunWithCheck. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the DropShipOrder parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeReceivedBase parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeItemJnlPostLineRunWithCheck(var ItemJnlLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; DropShipOrder: Boolean; PurchaseHeader: Record "Purchase Header"; WhseReceive: Boolean; QtyToBeReceived: Decimal; QtyToBeReceivedBase: Decimal; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeInitAmount. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeInitAmount(var ItemJnlLine: Record "Item Journal Line"; PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine(var ItemChargePurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemLineOnBeforePostShipReceive. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemLineOnBeforePostShipReceive(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforeReceiptInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforeReceiptInvoiceErr(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforePostItemTrackingForReceiptCondition. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforePostItemTrackingForReceiptCondition(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchRcptLine: Record "Purch. Rcpt. Line"; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnAfterPurchRcptLineTestFields. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnAfterPurchRcptLineTestFields(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnAfterPurchRcptLineSetFilters. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnAfterPurchRcptLineSetFilters(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeReturnShipmentInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeReturnShipmentInvoiceErr(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostPurchLineOnAfterSetEverythingInvoiced. + /// + /// + /// Specifies the EverythingInvoiced parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the AmountsOnly parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterSetEverythingInvoiced(var PurchaseLine: Record "Purchase Line"; var EverythingInvoiced: Boolean; PurchaseHeader: Record "Purchase Header"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; var AmountsOnly: Boolean) begin end; + /// + /// Event raised by OnPostPurchLineOnAfterPostByType. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterPostByType(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnAfterCollectPurchaseLineReservEntries. + /// + /// + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCollectPurchaseLineReservEntries(var JobReservationEntry: Record "Reservation Entry"; ItemJournalLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnAfterGetPurchOrderLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetPurchOrderLine(var PurchaseLineOrder: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; PurchRcptLine: Record "Purch. Rcpt. Line") begin end; + /// + /// Event raised by OnPostPurchLineOnBeforePostByType. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLine parameter. + /// Specifies the PurchLineACY parameter. + /// Specifies the Sourcecode parameter. [IntegrationEvent(true, false)] local procedure OnPostPurchLineOnBeforePostByType(PurchHeader: Record "Purchase Header"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; PurchLine: Record "Purchase Line"; PurchLineACY: Record "Purchase Line"; Sourcecode: Code[10]) begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertCrMemoLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchCrMemoLine parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeInsertCrMemoLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; xPurchaseLine: Record "Purchase Line"); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertInvoiceLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchInvLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeInsertInvoiceLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; var PurchInvLine: Record "Purch. Inv. Line"); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertReceiptLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(true, false)] local procedure OnPostPurchLineOnBeforeInsertReceiptLine(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; PurchRcptHeader: Record "Purch. Rcpt. Header"; RoundingLineInserted: Boolean; CostBaseAmount: Decimal; xPurchaseLine: Record "Purchase Line"; var ReturnShipmentHeader: Record "Return Shipment Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var ItemLedgShptEntryNo: Integer; SrcCode: Code[10]; PreviewMode: Boolean; var WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseReceive: Boolean; WhseShip: Boolean; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; GenJnlLineDocNo: Code[20]); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the PurchRcptHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeInsertReturnShipmentLine(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; ReturnShptHeader: Record "Return Shipment Header"; TempPurchLineGlobal: Record "Purchase Line"; RoundingLineInserted: Boolean; xPurchaseLine: Record "Purchase Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeRoundAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeRoundAmount(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnPostPurchLineOnTypeCaseElse. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the SourceCode parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnTypeCaseElse(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; SourceCode: Code[10]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary); begin end; + /// + /// Event raised by OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDoc. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDoc(var PurchInvLine: Record "Purch. Inv. Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDocCrMemo. + /// + /// + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDocCrMemo(var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnAfterPurchOrderLineModify. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the ReturnShptLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnAfterPurchOrderLineModify(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary; var ReturnShptLine: Record "Return Shipment Line") begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnAfterResetTempLines. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnAfterResetTempLines(var TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnBeforeInitQtyToInvoice(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterPurchOrderLineGet. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the PurchOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterPurchOrderLineGet(var TempPurchLine: Record "Purchase Line" temporary; PurchRcptLine: Record "Purch. Rcpt. Line"; PurchOrderLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterPurchOrderLineModify. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchOrderLine parameter. + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterPurchOrderLineModify(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary; var PurchOrderLine: Record "Purchase Line"; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeUpdateBlanketOrderLine(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitOutstanding(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitQtyToInvoice(var TempPurchaseLine: Record "Purchase Line" temporary; WhseShip: Boolean; WhseReceive: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeLoop. + /// + /// + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeLoop(PurchHeader: Record "Purchase Header"; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnPurchHeaderReceive. + /// + /// + /// Specifies the PurchRcptHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnPurchHeaderReceive(var TempPurchLine: Record "Purchase Line"; PurchRcptHeader: Record "Purch. Rcpt. Header") begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnSetDefaultQtyBlank. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchPost parameter. + /// Specifies the SetDefaultQtyBlank parameter. [IntegrationEvent(true, false)] local procedure OnPostUpdateOrderLineOnSetDefaultQtyBlank(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary; PurchPost: Record "Purchases & Payables Setup"; var SetDefaultQtyBlank: Boolean) begin @@ -10810,162 +13132,360 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnProcessAssocItemJnlLineOnAfterInitTempDropShptPostBuffer. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnProcessAssocItemJnlLineOnAfterInitTempDropShptPostBuffer(var PurchLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnReleasePurchDocumentOnBeforeSetStatus. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnReleasePurchDocumentOnBeforeSetStatus(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRoundAmountOnBeforeCalculateLCYAmounts. + /// + /// + /// Specifies the PurchLineACY parameter. + /// Specifies the PurchHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TotalPurchaseLine parameter. + /// Specifies the TotalPurchaseLineLCY parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnBeforeCalculateLCYAmounts(var xPurchLine: Record "Purchase Line"; var PurchLineACY: Record "Purchase Line"; PurchHeader: Record "Purchase Header"; var IsHandled: Boolean; TotalPurchaseLine: Record "Purchase Line"; TotalPurchaseLineLCY: Record "Purchase Line"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnRoundAmountOnBeforeIncrAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the CurrExchRate parameter. + /// Specifies the NoVAT parameter. + /// Specifies the IsHandled parameter. + /// Specifies the NonDeductibleVAT parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnBeforeIncrAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchLineQty: Decimal; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line"; var xPurchaseLine: Record "Purchase Line"; var CurrExchRate: Record "Currency Exchange Rate"; var NoVAT: Boolean; var IsHandled: Boolean; var NonDeductibleVAT: Codeunit "Non-Deductible VAT") begin end; + /// + /// Event raised by OnRunOnBeforeFinalizePosting. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeFinalizePosting(var PurchaseHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShipmentHeader: Record "Return Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforeMakeInventoryAdjustment. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeMakeInventoryAdjustment(var PurchaseHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; PreviewMode: Boolean; PurchRcptHeader: Record "Purch. Rcpt. Header"; PurchInvHeader: Record "Purch. Inv. Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumPurchLines2OnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnAfterSetFilters(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnSumPurchLines2OnAfterDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnAfterDivideAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping; PurchLineQty: Decimal; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary) begin end; + /// + /// Event raised by OnSumPurchLines2OnBeforeDivideAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyType parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnBeforeDivideAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping) begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterSalesOrderHeaderModify. + /// + /// + /// Specifies the SalesSetup parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterSalesOrderHeaderModify(var SalesOrderHeader: Record "Sales Header"; var SalesSetup: Record "Sales & Receivables Setup") begin end; + /// + /// Event raised by OnUpdateAssociatedSalesOrderOnBeforeClearTempDropShptPostBuffer. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateAssociatedSalesOrderOnBeforeClearTempDropShptPostBuffer(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer") begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterSalesOrderLineModify. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesOrderHeader parameter. + /// Specifies the SalesShptHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterSalesOrderLineModify(var SalesOrderLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesOrderHeader: Record "Sales Header"; SalesShptHeader: Record "Sales Shipment Header") begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterOrderNoClearFilter. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterOrderNoClearFilter(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnUpdateAssocOrderOnBeforeSalesOrderLineModify. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnBeforeSalesOrderLineModify(var SalesOrderLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheck. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheck(var BlanketOrderPurchLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeInitOutstanding(var BlanketOrderPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnAfterCheckBlanketOrderPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnAfterCheckBlanketOrderPurchLine(var BlanketOrderPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnUpdatePurchLineBeforePostOnAfterCalcInitQtyToInvoiceNeeded. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the InitQtyToInvoiceNeeded parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePurchLineBeforePostOnAfterCalcInitQtyToInvoiceNeeded(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var InitQtyToInvoiceNeeded: Boolean) begin end; + /// + /// Event raised by OnUpdateWhseDocumentsOnAfterUpdateWhseRcpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateWhseDocumentsOnAfterUpdateWhseRcpt(var WarehouseReceiptHeader: Record "Warehouse Receipt Header") begin end; + /// + /// Event raised by OnUpdateWhseDocumentsOnAfterUpdateWhseShpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateWhseDocumentsOnAfterUpdateWhseShpt(var WarehouseShipmentHeader: Record "Warehouse Shipment Header") begin end; + /// + /// Event raised by OnBeforeRunItemJnlPostLineWithReservation. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeRunItemJnlPostLineWithReservation(var ItemJournalLine: Record "Item Journal Line"); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterCopyAndCheckItemCharge. + /// + /// [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterCopyAndCheckItemCharge(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterCalcCopyAndCheckItemChargeNeeded. + /// + /// + /// Specifies the CopyAndCheckItemChargeNeeded parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterCalcCopyAndCheckItemChargeNeeded(var PurchHeader: Record "Purchase Header"; var CopyAndCheckItemChargeNeeded: Boolean) begin end; + /// + /// Event raised by OnUpdatePostingNosOnBeforeUpdatePostingNo. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnBeforeUpdatePostingNo(PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; var ModifyHeader: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdatePostingNosOnAfterCalcShouldUpdateReceivingNo. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the ShouldUpdateReceivingNo parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnAfterCalcShouldUpdateReceivingNo(PurchaseHeader: Record "Purchase Header"; PreviewMode: Boolean; var ModifyHeader: Boolean; var ShouldUpdateReceivingNo: Boolean) begin end; + /// + /// Event raised by OnCreatePositiveOnBeforeWhseJnlPostLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnCreatePositiveOnBeforeWhseJnlPostLine(var WhseJnlLine: Record "Warehouse Journal Line") begin end; + /// + /// Event raised by OnCreatePostedWhseShptLineOnBeforeCreatePostedShptLine. + /// + /// + /// Specifies the WarehouseShipmentLine parameter. + /// Specifies the PostedWhseShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnCreatePostedWhseShptLineOnBeforeCreatePostedShptLine(var ReturnShipmentLine: Record "Return Shipment Line"; var WarehouseShipmentLine: Record "Warehouse Shipment Line"; PostedWhseShipmentHeader: Record "Posted Whse. Shipment Header") begin end; + /// + /// Event raised by OnCreatePostedRcptLineOnBeforeCreatePostedRcptLine. + /// + /// + /// Specifies the WarehouseReceiptLine parameter. + /// Specifies the PostedWhseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnCreatePostedRcptLineOnBeforeCreatePostedRcptLine(var ReturnShipmentLine: Record "Return Shipment Line"; var WarehouseReceiptLine: Record "Warehouse Receipt Line"; PostedWhseReceiptHeader: Record "Posted Whse. Receipt Header") begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnBeforeTempTrackingSpecificationModify. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnBeforeTempTrackingSpecificationModify(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification. + /// + /// [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification(var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnBeforePostUpdateInvoiceLine. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateInvoiceLine(var TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean; var PurchaseHeader: Record "Purchase Header") begin @@ -10973,102 +13493,228 @@ codeunit 90 "Purch.-Post" #if not CLEAN28 [Obsolete('This event is no longer used.', '28.0')] + /// + /// Event raised by OnBeforeCheckAssociatedSalesOrderLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckAssociatedSalesOrderLine(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; #endif + /// + /// Event raised by OnBeforeCheckAssociatedOrderLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeCheckAssociatedOrderLines(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeCheckReceiveInvoiceShip. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckReceiveInvoiceShip(var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingItemChargePerOrderOnAfterCalcFactor. + /// + /// + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the TempTrackingSpecificationChargeAssmt parameter. + /// Specifies the SignFactor parameter. + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingItemChargePerOrderOnAfterCalcFactor(var NonDistrItemJnlLine: Record "Item Journal Line"; var ItemJnlLine2: Record "Item Journal Line"; var TempTrackingSpecificationChargeAssmt: Record "Tracking Specification"; SignFactor: Integer; Factor: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingItemChargePerOrderOnAfterUpdateItemJnlLine2LocationCode. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostItemTrackingItemChargePerOrderOnAfterUpdateItemJnlLine2LocationCode(var ItemJnlLine2: Record "Item Journal Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnAfterReturnShptLineReset. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnAfterReturnShptLineReset(var ReturnShptLine: Record "Return Shipment Line"; PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeSetItemEntryRelationForShipment. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeSetItemEntryRelationForShipment(var ItemEntryRelation: Record "Item Entry Relation"; var ReturnShptLine: Record "Return Shipment Line"; var InvoicingTrackingSpecification: Record "Tracking Specification"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding(ReturnShptLine: Record "Return Shipment Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnAfterFillTempLines. + /// + /// [IntegrationEvent(true, false)] local procedure OnRunOnAfterFillTempLines(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnRunOnAfterInvoiceRounding. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(true, false)] local procedure OnRunOnAfterInvoiceRounding(var PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnRunOnBeforeFillTempLines. + /// + /// + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(true, false)] local procedure OnRunOnBeforeFillTempLines(PreviewMode: Boolean; var GenJnlLineDocNo: Code[20]) begin end; + /// + /// Event raised by OnRunOnAfterPostPurchLine. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the ReturnShipmentHeader parameter. [IntegrationEvent(true, false)] local procedure OnRunOnAfterPostPurchLine(var TempPurchLineGlobal: Record "Purchase Line" temporary; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var ReturnShipmentHeader: Record "Return Shipment Header") begin end; + /// + /// Event raised by OnAfterCalcInvDiscount. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(true, false)] local procedure OnAfterCalcInvDiscount(PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostGLAccICLineOnBeforeCheckAndInsertICGenJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the ICGenJnlLineNo parameter. [IntegrationEvent(false, false)] local procedure OnPostGLAccICLineOnBeforeCheckAndInsertICGenJnlLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; ICGenJnlLineNo: Integer) begin end; + /// + /// Event raised by OnPostGLAccICLineOnAfterCreateJobPurchLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostGLAccICLineOnAfterCreateJobPurchLine(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostItemJnlLineTrackingOnBeforeTempHandlingSpecificationFind. + /// + /// + /// Specifies the TempHandlingSpecification parameter. [IntegrationEvent(true, false)] local procedure OnPostItemJnlLineTrackingOnBeforeTempHandlingSpecificationFind(PurchLine: Record "Purchase Line"; var TempHandlingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnFinalizePostingOnAfterUpdateItemChargeAssgnt. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the TempPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(true, false)] local procedure OnFinalizePostingOnAfterUpdateItemChargeAssgnt(var PurchHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var EverythingInvoiced: Boolean; var TempPurchLine: Record "Purchase Line" temporary; var TempPurchLineGlobal: Record "Purchase Line" temporary; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeInsertValueEntryRelation. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(true, false)] local procedure OnFinalizePostingOnBeforeInsertValueEntryRelation(var PurchHeader: Record "Purchase Header"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the TempPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(true, false)] local procedure OnFinalizePostingOnBeforeInsertTrackingSpecification(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; PurchHeader: Record "Purchase Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; EverythingInvoiced: Boolean; var TempPurchLine: Record "Purchase Line"; var TempPurchLineGlobal: Record "Purchase Line") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeUpdateWhseDocuments. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the WarehouseReceive parameter. + /// Specifies the WarehouseShip parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeUpdateWhseDocuments(var PurchaseHeader: Record "Purchase Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; WarehouseReceive: Boolean; WarehouseShip: Boolean; var IsHandled: Boolean) @@ -11078,660 +13724,1476 @@ codeunit 90 "Purch.-Post" - [IntegrationEvent(false, false)] + /// + /// Event raised by OnFinalizePostingOnBeforeCommit. + /// + /// + /// Specifies the IsHandled parameter. + [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeCommit(PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertReceiptLineOnBeforeCreatePostedRcptLine. + /// + /// + /// Specifies the WarehouseReceiptLine parameter. + /// Specifies the PostedWhseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnBeforeCreatePostedRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var WarehouseReceiptLine: Record "Warehouse Receipt Line"; PostedWhseReceiptHeader: Record "Posted Whse. Receipt Header") begin end; + /// + /// Event raised by OnInsertReceiptLineOnBeforeCreatePostedShptLine. + /// + /// + /// Specifies the WarehouseShipmentLine parameter. + /// Specifies the PostedWhseShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnBeforeCreatePostedShptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var WarehouseShipmentLine: Record "Warehouse Shipment Line"; PostedWhseShipmentHeader: Record "Posted Whse. Shipment Header") begin end; + /// + /// Event raised by OnInsertReceiptLineOnBeforeProcessWhseShptRcpt. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the PurchRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnBeforeProcessWhseShptRcpt(var PurchLine: Record "Purchase Line"; var IsHandled: Boolean; var CostBaseAmount: Decimal; PurchRcptLine: Record "Purch. Rcpt. Line") begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeArchiveUnpostedOrder. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeArchiveUnpostedOrder(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterInsertPostedHeaders. + /// + /// [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterInsertPostedHeaders(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeReleaseSalesHeader. + /// + /// + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeReleaseSalesHeader(var PurchHeader: Record "Purchase Header"; var SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnAfterReleaseSalesHeader. + /// + /// + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnAfterReleaseSalesHeader(var PurchHeader: Record "Purchase Header"; var SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdatePostingNosOnAfterSetReturnShipmentNoFromNos. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnAfterSetReturnShipmentNoFromNos(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnUpdatePostingNosOnInvoiceOnBeforeSetPostingNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnInvoiceOnBeforeSetPostingNo(var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists. + /// + /// + /// Specifies the PostingDateExists parameter. + /// Specifies the ReplacePostingDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the VATDateExists parameter. + /// Specifies the ReplaceVATDate parameter. + /// Specifies the VATDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists(var PurchHeader: Record "Purchase Header"; var PostingDateExists: Boolean; var ReplacePostingDate: Boolean; var PostingDate: Date; var ReplaceDocumentDate: Boolean; var ModifyHeader: Boolean; var VATDateExists: Boolean; var ReplaceVATDate: Boolean; var VATDate: Date) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchaseLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchaseLine(PurchaseLine: Record "Purchase Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchRcptLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchRcptLine(PurchRcptLine: Record "Purch. Rcpt. Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnShipmentLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnShipmentLine(ReturnShipmentLine: Record "Return Shipment Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertReturnShipmentHeader. + /// + /// + /// Specifies the ReturnShptHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReturnShipmentHeader(var PurchHeader: Record "Purchase Header"; var ReturnShptHeader: Record "Return Shipment Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertInvoiceHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Window parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PurchCommentLine parameter. + /// Specifies the RecordLinkManagement parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertInvoiceHeader(var PurchHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var IsHandled: Boolean; var Window: Dialog; var HideProgressWindow: Boolean; var SrcCode: Code[10]; var PurchCommentLine: Record "Purch. Comment Line"; var RecordLinkManagement: Codeunit "Record Link Management") begin end; + /// + /// Event raised by OnBeforeInserCrMemoHeader. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the Window parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the PurchCommentLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInserCrMemoHeader(var PurchHeader: Record "Purchase Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var HideProgressWindow: Boolean; var Window: Dialog; var IsHandled: Boolean; SrcCode: Code[10]; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; var PurchCommentLine: Record "Purch. Comment Line") begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnBeforeCopyComments. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnBeforeCopyComments(var PurchHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesShptHeader: Record "Sales Shipment Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnBeforePostBalancingEntry. + /// + /// + /// Specifies the LineCount parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnBeforePostBalancingEntry(var PurchHeader: Record "Purchase Header"; var LineCount: Integer) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterReceive. + /// + /// + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterReceive(var PurchHeader: Record "Purchase Header"; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeUpdateAssosOrderPostingNos. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the DropShipment parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateAssosOrderPostingNos(var TempPurchLine: Record "Purchase Line" temporary; var PurchHeader: Record "Purchase Header"; var DropShipment: Boolean; var IsHandled: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeUpdateAfterPosting. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeUpdateAfterPosting(var PurchHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var EverythingInvoiced: Boolean; var IsHandled: Boolean; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforePurchOrderLineModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforePurchOrderLineModify(var PurchOrderLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePostPurchLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostPurchLine(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeFindTempPurchLine. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeFindTempPurchLine(var TempPurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"); begin end; + /// + /// Event raised by OnCalcInvoiceOnAfterResetTempLines. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the NewInvoice parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvoiceOnAfterResetTempLines(var PurchHeader: Record "Purchase Header"; var TempPurchLine: Record "Purchase Line" temporary; var NewInvoice: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnAfterPostInvoice. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the Window parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnRunOnAfterPostInvoice(var PurchaseHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var ReturnShipmentHeader: Record "Return Shipment Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PreviewMode: Boolean; var Window: Dialog; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnCopyToTempLinesLoop. + /// + /// [IntegrationEvent(false, false)] local procedure OnCopyToTempLinesLoop(var PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnRunOnBeforePostPurchLine. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforePostPurchLine(var PurchLine: Record "Purchase Line"; var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeValidateICPartnerBusPostingGroups. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeValidateICPartnerBusPostingGroups(var TempICGenJnlLine: Record "Gen. Journal Line" temporary; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterGetCurrency. + /// + /// + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetCurrency(CurrencyCode: Code[10]; var Currency: Record Currency) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterGetPurchPrepmtAccount. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterGetPurchPrepmtAccount(var GLAcc: Record "G/L Account"; var TempPurchaseLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeGetPurchPrepmtAccount. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the GenPostingSetup parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeGetPurchPrepmtAccount(var GLAcc: Record "G/L Account"; var TempPurchaseLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; var GenPostingSetup: Record "General Posting Setup"; CompleteFunctionality: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertReturnEntryRelation. + /// + /// + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReturnEntryRelation(var ReturnShptLine: Record "Return Shipment Line"; var Result: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestPurchLineOnBeforeTestFieldQtyToReceive. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnTestPurchLineOnBeforeTestFieldQtyToReceive(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestPurchLineOnBeforeTestFieldReturnQtyToShip. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnTestPurchLineOnBeforeTestFieldReturnQtyToShip(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnAfterCalcVATAmountLines. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TempVATAmountLine parameter. [IntegrationEvent(false, false)] local procedure OnRunOnAfterCalcVATAmountLines(var PurchaseHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var TempVATAmountLine: Record "VAT Amount Line" temporary) begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforeInitAssocItemJnlLine. + /// + /// + /// Specifies the ItemShptEntryNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforeInitAssocItemJnlLine(var SalesOrderLine: Record "Sales Line"; var ItemShptEntryNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingSpecificationOnBeforeGetItemTrackingSetup. + /// + /// + /// Specifies the ItemTrackingSetup parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingSpecificationOnBeforeGetItemTrackingSetup(var PurchaseLine: Record "Purchase Line"; var ItemTrackingSetup: Record "Item Tracking Setup"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcItemJnlLineToBeReceivedAmounts. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the RemAmt parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcItemJnlLineToBeReceivedAmounts(var ItemJnlLine: Record "Item Journal Line"; var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyToBeReceived: Decimal; var RemAmt: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforeExit. + /// + /// + /// Specifies the ItemShptEntryNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforeExit(SalesOrderHeader: Record "Sales Header"; var ItemShptEntryNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeCalcQty. + /// + /// + /// Specifies the PurchOrderLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeCalcQty(var TempPurchLine: Record "Purchase Line" temporary; var PurchOrderLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnBeforeInsertSalesShptHeader. + /// + /// + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnBeforeInsertSalesShptHeader(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterShouldCalcAmounts. + /// + /// + /// Specifies the ShouldCalcAmounts parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterShouldCalcAmounts(PurchHeader: Record "Purchase Header"; var ShouldCalcAmounts: Boolean; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeDivideAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnAfterUpdateSalesOrderLine. + /// + /// + /// Specifies the SalesOrderHeader parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the SalesShipmentLine parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnAfterUpdateSalesOrderLine(SalesShptHeader: Record "Sales Shipment Header"; SalesOrderHeader: Record "Sales Header"; var SalesOrderLine: Record "Sales Line"; SalesShipmentLine: Record "Sales Shipment Line") begin end; + /// + /// Event raised by OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckPosted. + /// + /// + /// Specifies the ShouldCheckPosted parameter. [IntegrationEvent(false, false)] local procedure OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckPosted(PurchHeader: Record "Purchase Header"; var ShouldCheckPosted: Boolean) begin end; + /// + /// Event raised by OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckUnposted. + /// + /// + /// Specifies the ShouldCheckUnposted parameter. [IntegrationEvent(false, false)] local procedure OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckUnposted(PurchHeader: Record "Purchase Header"; var ShouldCheckUnposted: Boolean) begin end; + /// + /// Event raised by OnAfterCopyToTempLines. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterCopyToTempLines(var TempPurchLine: Record "Purchase Line" temporary; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnBeforeTempPurchLineSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnBeforeTempPurchLineSetFilters(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForShipment. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForShipment(var PurchHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostGLAccICLineOnBeforeCreateJobPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostGLAccICLineOnBeforeCreateJobPurchLine(var PurchHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeIsItemChargeLineWithQuantityToInvoice. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeIsItemChargeLineWithQuantityToInvoice(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerRcpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRcpt(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterGetAppliedOutboundItemLedgEntryNo. + /// + /// + /// Specifies the ItemApplicationEntry parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetAppliedOutboundItemLedgEntryNo(var ItemJnlLine: Record "Item Journal Line"; var ItemApplicationEntry: Record "Item Application Entry") begin end; + /// + /// Event raised by OnAfterGetGeneralPostingSetup. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetGeneralPostingSetup(var GeneralPostingSetup: Record "General Posting Setup"; PurchLine: Record "Purchase Line"); begin end; + /// + /// Event raised by OnBeforeConfirmJobLineType. + /// + /// + /// Specifies the HideDialog parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeConfirmJobLineType(PurchLine: Record "Purchase Line"; var HideDialog: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeConfirmJobPlanningLineNo. + /// + /// + /// Specifies the HideDialog parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeConfirmJobPlanningLineNo(PurchLine: Record "Purchase Line"; var HideDialog: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldProcessShipment. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ShouldProcessShipment parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldProcessShipment(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ShouldProcessShipment: Boolean) begin end; + /// + /// Event raised by OnCheckItemReservDisruptionOnAfterInsertTempSKU. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckItemReservDisruptionOnAfterInsertTempSKU(var Item: Record Item; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterPostItemChargePerRetRcpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerRetRcpt(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerTransfer. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerTransfer(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerRetShpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerRetShpt(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerSalesShpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerSalesShpt(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnInsertInvoiceHeaderOnBeforeCopyLinks. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertInvoiceHeaderOnBeforeCopyLinks(var PurchHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeUpdateIncomingDocument. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeUpdateIncomingDocument(var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumptionOnAfterItemLedgEntrySetFilters. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineJobConsumptionOnAfterItemLedgEntrySetFilters(var ItemLedgEntry: Record "Item Ledger Entry"; var PurchLine: Record "Purchase Line"; var ItemJournalLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnTestPurchLineOnTypeCaseOnDocumentTypeCaseElse. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnTestPurchLineOnTypeCaseOnDocumentTypeCaseElse(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterDecrementPrepmtAmtInvLCY. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PrepmtAmountInvLCY parameter. + /// Specifies the PrepmtVATAmountInvLCY parameter. [IntegrationEvent(false, false)] local procedure OnAfterDecrementPrepmtAmtInvLCY(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var PrepmtAmountInvLCY: Decimal; var PrepmtVATAmountInvLCY: Decimal) begin end; #if not CLEAN27 + /// + /// Event raised by OnSetPostingPreviewDocumentNo. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnSetPostingPreviewDocumentNo(var PreviewDocumentNo: Code[20]) begin end; + /// + /// Event raised by OnGetPostingPreviewDocumentNos. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnGetPostingPreviewDocumentNos(var PreviewDocumentNos: List of [Code[20]]) begin end; #endif + /// + /// Event raised by OnInsertPostedHeadersOnAfterInvoice. + /// + /// + /// Specifies the GenJournalLine parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInvoice(var PurchaseHeader: Record "Purchase Header"; var GenJournalLine: Record "Gen. Journal Line"; var GenJnlLineDocType: Enum "Gen. Journal Document Type"; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterSumPurchLines2. + /// + /// + /// Specifies the OldPurchaseLine parameter. + /// Specifies the NewPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterSumPurchLines2(var PurchaseHeader: Record "Purchase Header"; var OldPurchaseLine: Record "Purchase Line"; var NewPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnTypeCaseElse. + /// + /// + /// Specifies the Sign parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnTypeCaseElse(var PurchaseLine: Record "Purchase Line"; var Sign: Decimal) begin end; + /// + /// Event raised by OnSumPurchLines2OnAfterIsRoundingLineInserted. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the OldPurchaseLine parameter. + /// Specifies the RoundingLineInserted parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnAfterIsRoundingLineInserted(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var OldPurchaseLine: Record "Purchase Line"; RoundingLineInserted: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckICPartnerBlocked. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckICPartnerBlocked(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnAfterPostLines. + /// + /// + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TotalAmount parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnAfterPostLines(var PurchaseHeader: Record "Purchase Header"; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line"; var TempPurchLineGlobal: Record "Purchase Line" temporary; TotalAmount: Decimal) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforePurchaseHeaderModify. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforePurchaseHeaderModify(var PurchaseHeader: Record "Purchase Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePurchLineDimSetIDFromAppliedEntry. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePurchLineDimSetIDFromAppliedEntry(var PurchaseLineToPost: Record "Purchase Line"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterDeleteItemChargeAssgnt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterDeleteItemChargeAssgnt(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforePostItemChargePerRetRcpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRetRcpt(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerITTransfer. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TransRcptLine parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerITTransfer(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; TransRcptLine: Record "Transfer Receipt Line"; var TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerRetShpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRetShpt(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeShouldTestGetReceiptPPmtAmtToDeduct. + /// + /// + /// Specifies the CompleteFunctionality parameter. + /// Specifies the ShouldTestGetReceiptPPmtAmtToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeShouldTestGetReceiptPPmtAmtToDeduct(PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean; var ShouldTestGetReceiptPPmtAmtToDeduct: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeAmountIncludingVATAmountRound. + /// + /// + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeAmountIncludingVATAmountRound(var PurchaseLine: Record "Purchase Line"; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeCalcAmountsForFullVAT. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeCalcAmountsForFullVAT(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckMandatoryFields. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckMandatoryFields(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckPostingDate. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPostingDate(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterInsertCrMemoHeader. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertCrMemoHeader(var PurchaseHeader: Record "Purchase Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnAfterInsertInvoiceHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertInvoiceHeader(var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header") begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeOnBeforeDoCommit. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeOnBeforeDoCommit(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnReleasePurchDocumentOnBeforeDoCommit. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnReleasePurchDocumentOnBeforeDoCommit(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateAssociatedSalesOrderBeforeInitOutstanding. + /// + /// + /// Specifies the SalesOrderLine parameter. + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssociatedSalesOrderBeforeInitOutstanding(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesOrderLine: Record "Sales Line"; SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnRunOnBeforePostInvoice. + /// + /// + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforePostInvoice(PurchaseHeader: Record "Purchase Header"; var EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnCheckPurchDocumentOnBeforeCheckPurchDim. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckPurchDocumentOnBeforeCheckPurchDim(var PurchaseHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnCalcInvDiscountOnBeforeDoCommit. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvDiscountOnBeforeDoCommit(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeSetReplaceDocumentDate. + /// + /// + /// Specifies the PostingDate parameter. + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeSetReplaceDocumentDate(var PurchaseHeader: Record "Purchase Header"; var PostingDate: Date; var ReplaceDocumentDate: Boolean; var ModifyHeader: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineGet. + /// + /// + /// Specifies the TempVATAmountLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineGet(PurchaseLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckFAPostingPossibility. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckFAPostingPossibility(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckPostRestrictions. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPostRestrictions(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeTestGeneralPostingGroups. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeTestGeneralPostingGroups(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeTestFieldBilltoCustomerNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeTestFieldBilltoCustomerNo(var SalesOrderHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnAfterCalcVATBaseAmount. + /// + /// [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterCalcVATBaseAmount(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeUpdateAfterPosting. + /// + /// + /// Specifies the SuppressCommit parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateAfterPosting(var PurchaseHeader: Record "Purchase Header"; SuppressCommit: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckAndUpdate. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckAndUpdate(var PurchaseHeader: Record "Purchase Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterCalcTotalChargeAmt. + /// + /// + /// Specifies the QtyToAssign parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnAfterCalcTotalChargeAmt(var PurchaseLineToPost: Record "Purchase Line"; QtyToAssign: Decimal; var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostPurchLineOnAfterInsertReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the TempPurchaseLineGlobal parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterInsertReturnShipmentLine(var PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; ReturnShptHeader: Record "Return Shipment Header"; TempPurchaseLineGlobal: Record "Purchase Line"; RoundingLineInserted: Boolean; xPurchaseLine: Record "Purchase Line"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."); begin end; + /// + /// Event raised by OnBeforeMakeInventoryAdjustment. + /// + /// [IntegrationEvent(false, false)] procedure OnBeforeMakeInventoryAdjustment(var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeCheckItemReservDisruption. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckItemReservDisruption(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterSetCheckApplToItemEntry. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterSetCheckApplToItemEntry(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheckBlanketOrderPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheckBlanketOrderPurchLine(var BlanketOrderPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeModifyInvoicedQtyOnPurchRcptLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeModifyInvoicedQtyOnPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeTestPostingDate. + /// + /// + /// Specifies the ReplacePostingDate parameter. + /// Specifies the SkipTestPostingDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeTestPostingDate(var PurchaseHeader: Record "Purchase Header"; ReplacePostingDate: Boolean; var SkipTestPostingDate: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckItemCharge. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckItemCharge(var ItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeProcedurePostAssocItemJnlLine. + /// + /// + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the ItemShptEntryNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeProcedurePostAssocItemJnlLine(var SalesOrderLine: Record "Sales Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempHandlingSpecification: Record "Tracking Specification" temporary; QtyToBeShipped: Decimal; QtyToBeShippedBase: Decimal; var ItemShptEntryNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostDistributeItemChargeOnAfterSetFactor. + /// + /// + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostDistributeItemChargeOnAfterSetFactor(TempItemLedgerEntry: Record "Item Ledger Entry"; var Factor: Decimal) begin end; + /// + /// Event raised by OnBeforeCalcItemJnlLineToBeInvoicedAmounts. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the RemAmt parameter. + /// Specifies the RemDiscAmt parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcItemJnlLineToBeInvoicedAmounts(var ItemJournalLine: Record "Item Journal Line"; var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; var RemAmt: Decimal; var RemDiscAmt: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemJnlLineWhseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the PostBefore parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLineWhseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary; PurchaseLine: Record "Purchase Line"; PostBefore: Boolean) begin end; + /// + /// Event raised by OnAfterPostItemJnlLineWhseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLineWhseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerTransferOnBeforeProcessItemApplicationEntry. + /// + /// + /// Specifies the ItemApplicationEntry parameter. + /// Specifies the TransferReceiptLine parameter. + /// Specifies the TotalAmountToPostFCY parameter. + /// Specifies the AmountToPostFCY parameter. + /// Specifies the GeneralLedgerSetup parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerTransferOnBeforeProcessItemApplicationEntry(PurchaseLine: Record "Purchase Line"; ItemApplicationEntry: Record "Item Application Entry"; TransferReceiptLine: Record "Transfer Receipt Line"; TotalAmountToPostFCY: Decimal; var AmountToPostFCY: Decimal; GeneralLedgerSetup: Record "General Ledger Setup"; PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemCharge. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ItemEntryNo parameter. + /// Specifies the QuantityBase parameter. + /// Specifies the AmountToAssign parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the IndirectCostPct parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemCharge(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; ItemEntryNo: Integer; QuantityBase: Decimal; AmountToAssign: Decimal; QtyToAssign: Decimal; IndirectCostPct: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertedPrepmtVATBaseToDeductOnAfterSetTempPrepmtDeductLCYPurchaseLine. + /// + /// + /// Specifies the PrepmtVATBaseToDeduct parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertedPrepmtVATBaseToDeductOnAfterSetTempPrepmtDeductLCYPurchaseLine(var TempPrepmtDeductLCYPurchaseLine: Record "Purchase Line" temporary; var PrepmtVATBaseToDeduct: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeAdjustPrepmtAmountLCY. + /// + /// + /// Specifies the PrepmtPurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustPrepmtAmountLCY(PurchaseHeader: Record "Purchase Header"; var PrepmtPurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeAdjustFinalInvWith100PctPrepmt. + /// + /// + /// Specifies the TempPrepmtDeductLCYPurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustFinalInvWith100PctPrepmt(var CombinedPurchaseLine: Record "Purchase Line"; var TempPrepmtDeductLCYPurchaseLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateInvoicedQtyOnReturnShipmentLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoicedQtyOnReturnShipmentLine(var ReturnShipmentLine: Record "Return Shipment Line") begin end; + /// + /// Event raised by OnAfterCheckPurchRcptLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckPurchRcptLine(PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnUpdateItemChargeAssgntOnBeforeItemChargeAssignmentPurchModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateItemChargeAssgntOnBeforeItemChargeAssignmentPurchModify(var ItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)") begin end; + /// + /// Event raised by OnBeforeUpdateReceiptInvoicingQuantities. + /// + /// + /// Specifies the SkipQuantityUpdate parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateReceiptInvoicingQuantities(PurchLine: Record "Purchase Line"; var SkipQuantityUpdate: Boolean) begin end; + /// + /// Event raised by OnSetCommitBehavior. + /// + /// [IntegrationEvent(false, false)] local procedure OnSetCommitBehavior(var IgnoreCommit: Boolean) begin end; + + /// + /// Event raised by OnAfterProcessPostingLines. + /// + /// + /// Specifies the TotalPurchLine parameter. + /// Specifies the VendLedgEntry parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the Window parameter. + [IntegrationEvent(false, false)] + local procedure OnAfterProcessPostingLines(var PurchHeader: Record "Purchase Header"; var TotalPurchLine: Record "Purchase Line"; var VendLedgEntry: Record "Vendor Ledger Entry"; InvoicePostingParameters: Record "Invoice Posting Parameters"; SuppressCommit: Boolean; EverythingInvoiced: Boolean; var Window: Dialog) + begin + end; + + /// + /// Event is raised after the CheckPostRestrictions function is executed + /// + /// The purchase header record that was checked for post restrictions. + [IntegrationEvent(false, false)] + local procedure OnAfterCheckPostRestrictions(var PurchaseHeader: Record "Purchase Header") + begin + end; } + diff --git a/src/Layers/ES/BaseApp/Purchases/Vendor/VendorCard.Page.al b/src/Layers/ES/BaseApp/Purchases/Vendor/VendorCard.Page.al index 1ecb216f733..9d4bdf80f38 100644 --- a/src/Layers/ES/BaseApp/Purchases/Vendor/VendorCard.Page.al +++ b/src/Layers/ES/BaseApp/Purchases/Vendor/VendorCard.Page.al @@ -564,12 +564,6 @@ page 26 "Vendor Card" "Global Dimension 1 Filter" = field("Global Dimension 1 Filter"), "Global Dimension 2 Filter" = field("Global Dimension 2 Filter"); } - part(Control1903433907; "Cartera Payables Statistics FB") - { - ApplicationArea = Basic, Suite; - SubPageLink = "No." = field("No."); - Visible = true; - } part(AgedAccPayableChart; "Aged Acc. Payable Chart") { ApplicationArea = Basic, Suite; diff --git a/src/Layers/ES/BaseApp/Purchases/Vendor/VendorList.Page.al b/src/Layers/ES/BaseApp/Purchases/Vendor/VendorList.Page.al index 7f9a4e0f425..4a0289ae579 100644 --- a/src/Layers/ES/BaseApp/Purchases/Vendor/VendorList.Page.al +++ b/src/Layers/ES/BaseApp/Purchases/Vendor/VendorList.Page.al @@ -288,12 +288,6 @@ page 27 "Vendor List" "Global Dimension 2 Filter" = field("Global Dimension 2 Filter"); Visible = false; } - part(Control1903433907; "Cartera Payables Statistics FB") - { - ApplicationArea = Basic, Suite; - SubPageLink = "No." = field("No."); - Visible = true; - } systempart(Control1900383207; Links) { ApplicationArea = RecordLinks; diff --git a/src/Layers/ES/BaseApp/Purchases/Vendor/VendorStatistics.Page.al b/src/Layers/ES/BaseApp/Purchases/Vendor/VendorStatistics.Page.al index df1101d4cad..9542e066765 100644 --- a/src/Layers/ES/BaseApp/Purchases/Vendor/VendorStatistics.Page.al +++ b/src/Layers/ES/BaseApp/Purchases/Vendor/VendorStatistics.Page.al @@ -611,166 +611,6 @@ page 152 "Vendor Statistics" } } } - group("Payable Docs.") - { - Caption = 'Payable Docs.'; - fixed(Control1903836701) - { - ShowCaption = false; - group("No. of Documents") - { - Caption = 'No. of Documents'; - field("NoOpen[1]"; NoOpen[1]) - { - ApplicationArea = Basic, Suite; - Caption = 'Open Documents'; - Editable = false; - ToolTip = 'Specifies non-processed payments.'; - } - field("NoOpen[2]"; NoOpen[2]) - { - ApplicationArea = Basic, Suite; - Caption = 'Open Docs. in Payment Order'; - Editable = false; - ToolTip = 'Specifies non-processed payments.'; - } - field("NoOpen[3]"; NoOpen[3]) - { - ApplicationArea = Basic, Suite; - Caption = 'Open Docs. in Posted Payment Order'; - Editable = false; - ToolTip = 'Specifies non-processed payments.'; - } - field("NoHonored[3]"; NoHonored[3]) - { - ApplicationArea = Basic, Suite; - Caption = 'Honored Docs. in Posted Payment Order'; - Editable = false; - ToolTip = 'Specifies settled payments.'; - } - } - group("Amount (LCY)") - { - Caption = 'Amount (LCY)'; - field("OpenAmtLCY[1]"; OpenAmtLCY[1]) - { - ApplicationArea = Basic, Suite; - AutoFormatType = 1; - AutoFormatExpression = ''; - Caption = 'Open'; - Editable = false; - ToolTip = 'Specifies that the related payment is not processed yet. '; - - trigger OnDrillDown() - begin - DrillDownOpen(4); // Cartera - end; - } - field("OpenAmtLCY[2]"; OpenAmtLCY[2]) - { - ApplicationArea = Basic, Suite; - AutoFormatType = 1; - AutoFormatExpression = ''; - Caption = 'Open'; - Editable = false; - ToolTip = 'Specifies that the related payment is not processed yet. '; - - trigger OnDrillDown() - begin - DrillDownOpen(3); // Payment Order - end; - } - field("OpenAmtLCY[3]"; OpenAmtLCY[3]) - { - ApplicationArea = Basic, Suite; - AutoFormatType = 1; - AutoFormatExpression = ''; - Caption = 'Open'; - Editable = false; - ToolTip = 'Specifies that the related payment is not processed yet. '; - - trigger OnDrillDown() - begin - DrillDownOpen(1); // Posted Payment Order - end; - } - field("HonoredAmtLCY[3]"; HonoredAmtLCY[3]) - { - ApplicationArea = Basic, Suite; - AutoFormatType = 1; - AutoFormatExpression = ''; - Caption = 'Honored'; - Editable = false; - ToolTip = 'Specifies that the related payment is settled. '; - - trigger OnDrillDown() - begin - DrillDownHonored(1); // Posted Payment Order - end; - } - } - group("Remaining Amt. (LCY)") - { - Caption = 'Remaining Amt. (LCY)'; - field("OpenRemainingAmtLCY[1]"; OpenRemainingAmtLCY[1]) - { - ApplicationArea = Basic, Suite; - AutoFormatType = 1; - AutoFormatExpression = ''; - Caption = 'Open'; - Editable = false; - ToolTip = 'Specifies that the related payment is not processed yet. '; - - trigger OnDrillDown() - begin - DrillDownOpen(4); // Cartera - end; - } - field("OpenRemainingAmtLCY[2]"; OpenRemainingAmtLCY[2]) - { - ApplicationArea = Basic, Suite; - AutoFormatType = 1; - AutoFormatExpression = ''; - Caption = 'Open'; - Editable = false; - ToolTip = 'Specifies that the related payment is not processed yet. '; - - trigger OnDrillDown() - begin - DrillDownOpen(3); // Payment Order - end; - } - field("OpenRemainingAmtLCY[3]"; OpenRemainingAmtLCY[3]) - { - ApplicationArea = Basic, Suite; - AutoFormatType = 1; - AutoFormatExpression = ''; - Caption = 'Open'; - Editable = false; - ToolTip = 'Specifies that the related payment is not processed yet. '; - - trigger OnDrillDown() - begin - DrillDownOpen(1); // Posted Payment Order - end; - } - field("HonoredRemainingAmtLCY[3]"; HonoredRemainingAmtLCY[3]) - { - ApplicationArea = Basic, Suite; - AutoFormatType = 1; - AutoFormatExpression = ''; - Caption = 'Honored'; - Editable = false; - ToolTip = 'Specifies that the related payment is settled. '; - - trigger OnDrillDown() - begin - DrillDownHonored(1); // Posted Payment Order - end; - } - } - } - } } } @@ -812,8 +652,6 @@ page 152 "Vendor Statistics" NumberOfDistinctItemsPurchased[i] := CalcNumberOfDistinctItemsPurchased(VendDateFilter[i]); end; Rec.SetRange("Date Filter", 0D, CurrentDate); - - UpdateBillStatistics(); end; var @@ -841,15 +679,7 @@ page 152 "Vendor Statistics" InvAmountsLCY: array[4] of Decimal; NumberOfPurchaseDocs: array[4] of Integer; NumberOfDistinctItemsPurchased: array[4] of Integer; - NoOpen: array[3] of Integer; - NoHonored: array[3] of Integer; - OpenAmtLCY: array[3] of Decimal; - OpenRemainingAmtLCY: array[3] of Decimal; - HonoredAmtLCY: array[3] of Decimal; - HonoredRemainingAmtLCY: array[3] of Decimal; - DocumentSituationFilter: array[3] of Option " ","Posted BG/PO","Closed BG/PO","BG/PO",Cartera,"Closed Documents"; i: Integer; - j: Integer; local procedure SetDateFilter() begin @@ -858,86 +688,6 @@ page 152 "Vendor Statistics" OnAfterSetDateFilter(Rec); end; - [Scope('OnPrem')] - procedure UpdateBillStatistics() - var - VendLedgEntry: Record "Vendor Ledger Entry"; - begin - DocumentSituationFilter[1] := DocumentSituationFilter::Cartera; - DocumentSituationFilter[2] := DocumentSituationFilter::"BG/PO"; - DocumentSituationFilter[3] := DocumentSituationFilter::"Posted BG/PO"; - - VendLedgEntry.SetCurrentKey("Vendor No.", "Document Type", "Document Situation", "Document Status"); - VendLedgEntry.SetRange("Vendor No.", Rec."No."); - for j := 1 to 3 do begin - VendLedgEntry.SetRange("Document Situation", DocumentSituationFilter[j]); - VendLedgEntry.SetRange("Document Status", VendLedgEntry."Document Status"::Open); - VendLedgEntry.CalcSums("Amount (LCY) stats.", "Remaining Amount (LCY) stats."); - OpenAmtLCY[j] := VendLedgEntry."Amount (LCY) stats."; - OpenRemainingAmtLCY[j] := VendLedgEntry."Remaining Amount (LCY) stats."; - NoOpen[j] := VendLedgEntry.Count; - VendLedgEntry.SetRange("Document Status"); - - VendLedgEntry.SetRange("Document Status", VendLedgEntry."Document Status"::Honored); - VendLedgEntry.CalcSums("Amount (LCY) stats.", "Remaining Amount (LCY) stats."); - HonoredAmtLCY[j] := VendLedgEntry."Amount (LCY) stats."; - HonoredRemainingAmtLCY[j] := VendLedgEntry."Remaining Amount (LCY) stats."; - NoHonored[j] := VendLedgEntry.Count; - VendLedgEntry.SetRange("Document Status"); - - VendLedgEntry.SetRange("Document Situation"); - end; - end; - - [Scope('OnPrem')] - procedure DrillDownOpen(Situation: Option " ","Posted BG/PO","Closed BG/PO","BG/PO",Cartera,"Closed Documents") - var - VendLedgEntry: Record "Vendor Ledger Entry"; - VendLedgEntriesForm: Page "Vendor Ledger Entries"; - begin - VendLedgEntry.SetCurrentKey("Vendor No.", "Document Type", "Document Situation", "Document Status"); - VendLedgEntry.SetRange("Vendor No.", Rec."No."); - case Situation of - Situation::Cartera: - VendLedgEntry.SetRange("Document Situation", VendLedgEntry."Document Situation"::Cartera); - Situation::"BG/PO": - VendLedgEntry.SetRange("Document Situation", VendLedgEntry."Document Situation"::"BG/PO"); - Situation::"Posted BG/PO": - VendLedgEntry.SetRange("Document Situation", VendLedgEntry."Document Situation"::"Posted BG/PO"); - end; - VendLedgEntry.SetRange("Document Status", VendLedgEntry."Document Status"::Open); - VendLedgEntriesForm.SetTableView(VendLedgEntry); - VendLedgEntriesForm.SetRecord(VendLedgEntry); - VendLedgEntriesForm.RunModal(); - VendLedgEntry.SetRange("Document Status"); - VendLedgEntry.SetRange("Document Situation"); - end; - - [Scope('OnPrem')] - procedure DrillDownHonored(Situation: Option " ","Posted BG/PO","Closed BG/PO","BG/PO",Cartera,"Closed Documents") - var - VendLedgEntry: Record "Vendor Ledger Entry"; - VendLedgEntriesForm: Page "Vendor Ledger Entries"; - begin - VendLedgEntry.SetCurrentKey("Vendor No.", "Document Type", "Document Situation", "Document Status"); - VendLedgEntry.SetRange("Vendor No.", Rec."No."); - case Situation of - Situation::Cartera: - VendLedgEntry.SetRange("Document Situation", VendLedgEntry."Document Situation"::Cartera); - Situation::"BG/PO": - VendLedgEntry.SetRange("Document Situation", VendLedgEntry."Document Situation"::"BG/PO"); - Situation::"Posted BG/PO": - VendLedgEntry.SetRange("Document Situation", VendLedgEntry."Document Situation"::"Posted BG/PO"); - end; - - VendLedgEntry.SetRange("Document Status", VendLedgEntry."Document Status"::Honored); - VendLedgEntriesForm.SetTableView(VendLedgEntry); - VendLedgEntriesForm.SetRecord(VendLedgEntry); - VendLedgEntriesForm.RunModal(); - VendLedgEntry.SetRange("Document Status"); - VendLedgEntry.SetRange("Document Situation"); - end; - local procedure CalcDaysSinceLastPurchase(): Integer var VendorLedgerEntry: Record "Vendor Ledger Entry"; diff --git a/src/Layers/ES/BaseApp/RoleCenters/SBOwnerCue.Table.al b/src/Layers/ES/BaseApp/RoleCenters/SBOwnerCue.Table.al index a1550884a3a..569e3d11c3e 100644 --- a/src/Layers/ES/BaseApp/RoleCenters/SBOwnerCue.Table.al +++ b/src/Layers/ES/BaseApp/RoleCenters/SBOwnerCue.Table.al @@ -4,7 +4,6 @@ // ------------------------------------------------------------------------------------------------ namespace Microsoft.RoleCenters; -using Microsoft.Finance.ReceivablesPayables; using Microsoft.Purchases.Document; using Microsoft.Purchases.History; using Microsoft.Purchases.Payables; @@ -145,34 +144,6 @@ table 9060 "SB Owner Cue" Caption = 'User ID Filter'; FieldClass = FlowFilter; } - field(7000000; "Receivable Documents"; Integer) - { - CalcFormula = count("Cartera Doc." where(Type = const(Receivable), - "Bill Gr./Pmt. Order No." = const(''))); - Caption = 'Receivable Documents'; - FieldClass = FlowField; - } - field(7000001; "Payable Documents"; Integer) - { - CalcFormula = count("Cartera Doc." where(Type = const(Payable), - "Bill Gr./Pmt. Order No." = const(''))); - Caption = 'Payable Documents'; - FieldClass = FlowField; - } - field(7000002; "Posted Receivable Documents"; Integer) - { - CalcFormula = count("Posted Cartera Doc." where(Type = const(Receivable), - "Bill Gr./Pmt. Order No." = const(''))); - Caption = 'Posted Receivable Documents'; - FieldClass = FlowField; - } - field(7000003; "Posted Payable Documents"; Integer) - { - CalcFormula = count("Posted Cartera Doc." where(Type = const(Payable), - "Bill Gr./Pmt. Order No." = const(''))); - Caption = 'Posted Payable Documents'; - FieldClass = FlowField; - } } keys diff --git a/src/Layers/ES/BaseApp/RoleCenters/SmallBusinessOwnerAct.Page.al b/src/Layers/ES/BaseApp/RoleCenters/SmallBusinessOwnerAct.Page.al index e575319b93f..bea84b7467e 100644 --- a/src/Layers/ES/BaseApp/RoleCenters/SmallBusinessOwnerAct.Page.al +++ b/src/Layers/ES/BaseApp/RoleCenters/SmallBusinessOwnerAct.Page.al @@ -6,15 +6,12 @@ namespace Microsoft.RoleCenters; using Microsoft.Bank.Reconciliation; using Microsoft.Finance.GeneralLedger.Journal; -using Microsoft.Finance.ReceivablesPayables; using Microsoft.Foundation.Navigate; using Microsoft.Purchases.Document; -using Microsoft.Purchases.History; using Microsoft.Purchases.Payables; using Microsoft.Purchases.Vendor; using Microsoft.Sales.Customer; using Microsoft.Sales.Document; -using Microsoft.Sales.History; using Microsoft.Sales.Receivables; page 9073 "Small Business Owner Act." @@ -139,48 +136,6 @@ page 9073 "Small Business Owner Act." } } } - cuegroup("Cartera Receivables") - { - Caption = 'Cartera Receivables'; - field("Receivable Documents"; Rec."Receivable Documents") - { - ApplicationArea = Basic, Suite; - DrillDownPageID = "Receivables Cartera Docs"; - ToolTip = 'Specifies the receivables document associated with the bill group.'; - } - field("Posted Receivable Documents"; Rec."Posted Receivable Documents") - { - ApplicationArea = Basic, Suite; - DrillDownPageID = "Posted Cartera Documents"; - ToolTip = 'Specifies the receivables documents that have been posted.'; - } - - actions - { - action("New Bill Group") - { - ApplicationArea = Basic, Suite; - Caption = 'New Bill Group'; - RunObject = Page "Bill Groups"; - RunPageMode = Create; - ToolTip = 'Create a new group of receivables documents for submission to the bank for electronic collection.'; - } - action("Posted Bill Groups List") - { - ApplicationArea = Basic, Suite; - Caption = 'Posted Bill Groups List'; - RunObject = Page "Posted Bill Groups List"; - ToolTip = 'View the list of posted bill groups. When a bill group has been posted, the related documents are available for settlement, rejection, or recirculation.'; - } - action("Posted Bill Group Select.") - { - ApplicationArea = Basic, Suite; - Caption = 'Posted Bill Group Select.'; - RunObject = Page "Posted Bill Group Select."; - ToolTip = 'View or edit where ledger entries are posted when you post a bill group.'; - } - } - } cuegroup(Payables) { Caption = 'Payables'; @@ -215,48 +170,6 @@ page 9073 "Small Business Owner Act." } } } - cuegroup("Cartera Payables") - { - Caption = 'Cartera Payables'; - field("Payable Documents"; Rec."Payable Documents") - { - ApplicationArea = Basic, Suite; - DrillDownPageID = "Payables Cartera Docs"; - ToolTip = 'Specifies the payables document associated with the bill group.'; - } - field("Posted Payable Documents"; Rec."Posted Payable Documents") - { - ApplicationArea = Basic, Suite; - DrillDownPageID = "Posted Cartera Documents"; - ToolTip = 'Specifies the payables documents that have been posted.'; - } - - actions - { - action("New Payment Order") - { - ApplicationArea = Basic, Suite; - Caption = 'New Payment Order'; - RunObject = Page "Payment Orders"; - RunPageMode = Create; - ToolTip = 'Create a new order for payables documents for submission to the bank for electronic payment.'; - } - action("Posted Payment Orders List") - { - ApplicationArea = Basic, Suite; - Caption = 'Posted Payment Orders List'; - RunObject = Page "Posted Payment Orders List"; - ToolTip = 'View posted payment orders that represent payables to submit to the bank as a file for electronic payment.'; - } - action("Posted Payment Orders Select.") - { - ApplicationArea = Basic, Suite; - Caption = 'Posted Payment Orders Select.'; - RunObject = Page "Posted Payment Orders Select."; - ToolTip = 'View or edit where ledger entries are posted when you post a payment order.'; - } - } - } } } diff --git a/src/Layers/ES/BaseApp/RoleCenters/SmallBusinessOwnerRC.Page.al b/src/Layers/ES/BaseApp/RoleCenters/SmallBusinessOwnerRC.Page.al index da13b9b16b8..8fcf5f86d16 100644 --- a/src/Layers/ES/BaseApp/RoleCenters/SmallBusinessOwnerRC.Page.al +++ b/src/Layers/ES/BaseApp/RoleCenters/SmallBusinessOwnerRC.Page.al @@ -8,7 +8,6 @@ using Microsoft.Bank.BankAccount; using Microsoft.Bank.Deposit; using Microsoft.Bank.Payment; using Microsoft.Bank.Reconciliation; -using Microsoft.Bank.Reports; using Microsoft.CRM.Contact; using Microsoft.CRM.Task; using Microsoft.CRM.Team; @@ -19,7 +18,6 @@ using Microsoft.Finance.GeneralLedger.Account; using Microsoft.Finance.GeneralLedger.Journal; using Microsoft.Finance.GeneralLedger.Reports; using Microsoft.Finance.GeneralLedger.Setup; -using Microsoft.Finance.ReceivablesPayables; using Microsoft.Finance.RoleCenters; using Microsoft.Finance.VAT.Registration; using Microsoft.Finance.VAT.Reporting; @@ -44,7 +42,6 @@ using Microsoft.Projects.Resources.Ledger; using Microsoft.Projects.Resources.Resource; using Microsoft.Purchases.Document; using Microsoft.Purchases.History; -using Microsoft.Purchases.Payables; using Microsoft.Purchases.Reports; using Microsoft.Purchases.Vendor; using Microsoft.Sales.Analysis; @@ -53,7 +50,6 @@ using Microsoft.Sales.Document; using Microsoft.Sales.FinanceCharge; using Microsoft.Sales.History; using Microsoft.Sales.Pricing; -using Microsoft.Sales.Receivables; using Microsoft.Sales.Reminder; using Microsoft.Sales.Reports; using Microsoft.Sales.RoleCenters; @@ -354,61 +350,6 @@ page 9020 "Small Business Owner RC" RunObject = Report "Customer - Due Payments"; ToolTip = 'View a list of payments due from a particular customer sorted by due date.'; } - group("Cartera Bill Groups") - { - Caption = 'Cartera Bill Groups'; - action("Closed Bill Group Listing") - { - ApplicationArea = Basic, Suite; - Caption = 'Closed Bill Group Listing'; - Image = "Report"; - RunObject = Report "Closed Bill Group Listing"; - ToolTip = 'View the list of completed bill groups.'; - } - action("Posted Bill Group Listing") - { - ApplicationArea = Basic, Suite; - Caption = 'Posted Bill Group Listing'; - Image = "Report"; - RunObject = Report "Posted Bill Group Listing"; - ToolTip = 'View the list of posted bill groups. When a bill group has been posted, the related documents are available for settlement, rejection, or recirculation.'; - } - action("Bill Group Listing") - { - ApplicationArea = Basic, Suite; - Caption = 'Bill Group Listing'; - Image = "Report"; - RunObject = Report "Bill Group Listing"; - ToolTip = 'View or edit a bill group. Bill groups are receivables documents that are grouped together to submit to a bank for collection. For example, you may want to group documents for the same customer or group documents with the same due date.'; - } - } - action("Bank - Summ. Bill Group") - { - ApplicationArea = Basic, Suite; - Caption = 'Bank - Summ. Bill Group'; - Image = "Report"; - RunObject = Report "Bank - Summ. Bill Group"; - ToolTip = 'View a detailed summary for existing bill groups.'; - } - action("Bank - Risk") - { - ApplicationArea = Basic, Suite; - Caption = 'Bank - Risk'; - Image = "Report"; - RunObject = Report "Bank - Risk"; - ToolTip = 'View the risk status for discounting bills with the selected bank.'; - } - action("Notice Assignment Credits") - { - ApplicationArea = Basic, Suite; - Caption = 'Notice Assignment Credits'; - Image = "Report"; - RunObject = Report "Notice Assignment Credits"; - ToolTip = 'Define how your company decides to administer its billing using a factoring (factor) entity. You send your customers a notification letter, telling them that it is going to assign its billing to another entity. As of that moment, the client will no longer have to pay the company, they will pay the factoring entity instead.'; - } - separator(Action1100023) - { - } action("Vendor - Due Payments") { ApplicationArea = Basic, Suite; @@ -417,34 +358,6 @@ page 9020 "Small Business Owner RC" RunObject = Report "Vendor - Due Payments"; ToolTip = 'View a list of payments to be made to a particular vendor sorted by due date.'; } - group("Cartera Payment Orders") - { - Caption = 'Cartera Payment Orders'; - action("Closed Payment Order Listing") - { - ApplicationArea = Basic, Suite; - Caption = 'Closed Payment Order Listing'; - Image = "Report"; - RunObject = Report "Closed Payment Order Listing"; - ToolTip = 'View the list of completed payment orders.'; - } - action("Posted Payment Order Listing") - { - ApplicationArea = Basic, Suite; - Caption = 'Posted Payment Order Listing'; - Image = "Report"; - RunObject = Report "Posted Payment Order Listing"; - ToolTip = 'View posted payment orders that represent payables to submit to the bank as a file for electronic payment.'; - } - action("Payment Order Listing") - { - ApplicationArea = Basic, Suite; - Caption = 'Payment Order Listing'; - Image = "Report"; - RunObject = Report "Payment Order Listing"; - ToolTip = 'View or edit payment orders that represent payables to submit to the bank as a file for electronic payment.'; - } - } } area(embedding) { @@ -464,20 +377,6 @@ page 9020 "Small Business Owner RC" RunObject = Page "Sales Order List"; ToolTip = 'Record your agreements with customers to sell certain products on certain delivery and payment terms. Sales orders, unlike sales invoices, allow you to ship partially, deliver directly from your vendor to your customer, initiate warehouse handling, and print various customer-facing documents. Sales invoicing is integrated in the sales order process.'; } - action("Bill Groups List") - { - ApplicationArea = Basic, Suite; - Caption = 'Bill Groups List'; - RunObject = Page "Bill Groups List"; - ToolTip = 'View or edit a bill group. Bill groups are receivables documents that are grouped together to submit to a bank for collection. For example, you may want to group documents for the same customer or group documents with the same due date.'; - } - action("Posted Bill Groups List") - { - ApplicationArea = Basic, Suite; - Caption = 'Posted Bill Groups List'; - RunObject = Page "Posted Bill Groups List"; - ToolTip = 'View the list of posted bill groups. When a bill group has been posted, the related documents are available for settlement, rejection, or recirculation.'; - } action("Sales Orders - Microsoft Dynamics 365 for Sales") { ApplicationArea = Suite; @@ -509,20 +408,6 @@ page 9020 "Small Business Owner RC" RunObject = Page "Purchase Order List"; ToolTip = 'Create purchase orders to mirror sales documents that vendors send to you. This enables you to record the cost of purchases and to track accounts payable. Posting purchase orders dynamically updates inventory levels so that you can minimize inventory costs and provide better customer service. Purchase orders allow partial receipts, unlike with purchase invoices, and enable drop shipment directly from your vendor to your customer. Purchase orders can be created automatically from PDF or image files from your vendors by using the Incoming Documents feature.'; } - action("Payment Orders List") - { - ApplicationArea = Basic, Suite; - Caption = 'Payment Orders List'; - RunObject = Page "Payment Orders List"; - ToolTip = 'View or edit payment orders that represent payables to submit to the bank as a file for electronic payment.'; - } - action("Posted Payment Orders List") - { - ApplicationArea = Basic, Suite; - Caption = 'Posted Payment Orders List'; - RunObject = Page "Posted Payment Orders List"; - ToolTip = 'View posted payment orders that represent payables to submit to the bank as a file for electronic payment.'; - } action(Vendors) { ApplicationArea = Basic, Suite; @@ -628,14 +513,6 @@ page 9020 "Small Business Owner RC" Recurring = const(false)); ToolTip = 'Post financial transactions directly to general ledger accounts and other accounts, such as bank, customer, vendor, and employee accounts. Posting with a general journal always creates entries on general ledger accounts. This is true even when, for example, you post a journal line to a customer account, because an entry is posted to a general ledger receivables account through a posting group.'; } - action("Cartera Journal") - { - ApplicationArea = Basic, Suite; - Caption = 'Cartera Journal'; - RunObject = Page "General Journal Batches"; - RunPageView = where("Template Type" = const(Cartera)); - ToolTip = 'Prepare to post entries for Cartera documents, which are bills and invoices for customers and vendors. There are two types of bills: receivable bills and payable bills. Receivable bills are sent to a customer to be credited after their due date arrives. Payable bills are sent to a customer from a vendor in order to receive payment when the due date arrives.'; - } action(RecurringJournals) { ApplicationArea = Basic, Suite; @@ -688,20 +565,6 @@ page 9020 "Small Business Owner RC" RunObject = Page "Posted Sales Credit Memos"; ToolTip = 'Open the list of posted sales credit memos.'; } - action("Receivable Closed Cartera Docs") - { - ApplicationArea = Basic, Suite; - Caption = 'Receivable Closed Cartera Docs'; - RunObject = Page "Receivable Closed Cartera Docs"; - ToolTip = 'View the customer bills and invoices that are in the closed bill groups.'; - } - action("Closed Bill Groups List") - { - ApplicationArea = Basic, Suite; - Caption = 'Closed Bill Groups List'; - RunObject = Page "Closed Bill Groups List"; - ToolTip = 'View the list of completed bill groups.'; - } action("Posted Purchase Receipts") { ApplicationArea = Basic, Suite; @@ -723,20 +586,6 @@ page 9020 "Small Business Owner RC" RunObject = Page "Posted Purchase Credit Memos"; ToolTip = 'Open the list of posted purchase credit memos.'; } - action("Payable Closed Cartera Docs") - { - ApplicationArea = Basic, Suite; - Caption = 'Payable Closed Cartera Docs'; - RunObject = Page "Payable Closed Cartera Docs"; - ToolTip = 'View the vendor bills and invoices that are in closed bill groups.'; - } - action("Closed Payment Orders List") - { - ApplicationArea = Basic, Suite; - Caption = 'Closed Payment Orders List'; - RunObject = Page "Closed Payment Orders List"; - ToolTip = 'View the list of completed payment orders.'; - } action("Issued Reminders") { ApplicationArea = Suite; @@ -1049,21 +898,6 @@ page 9020 "Small Business Owner RC" RunPageMode = Create; ToolTip = 'Create a new sales credit memo to revert a posted sales invoice.'; } - action("Bill Group") - { - ApplicationArea = Basic, Suite; - Caption = 'Bill Group'; - Image = VoucherGroup; - RunObject = Page "Bill Groups"; - ToolTip = 'View or edit a bill group. Bill groups are receivables documents that are grouped together to submit to a bank for collection. For example, you may want to group documents for the same customer or group documents with the same due date.'; - } - action("Payment Order") - { - ApplicationArea = Basic, Suite; - Caption = 'Payment Order'; - RunObject = Page "Payment Orders"; - ToolTip = 'Create a new payment order to submit payables as a file to the bank for electronic payment.'; - } action("&Sales Reminder") { ApplicationArea = Basic, Suite; @@ -1163,33 +997,6 @@ page 9020 "Small Business Owner RC" RunObject = Page "Bank Acc. Reconciliation"; ToolTip = 'Reconcile entries in your bank account ledger entries with the actual transactions in your bank account, according to the latest bank statement. '; } - action("Posted Bill Group Select.") - { - ApplicationArea = Basic, Suite; - Caption = 'Posted Bill Group Select.'; - RunObject = Page "Posted Bill Group Select."; - ToolTip = 'View or edit where ledger entries are posted when you post a bill group.'; - } - group("Bill Group - Export Formats") - { - Caption = 'Bill Group - Export Formats'; - action("Payment Order - Export N34") - { - ApplicationArea = Basic, Suite; - Caption = 'Payment Order - Export N34'; - Image = "Report"; - RunObject = Report "Payment order - Export N34"; - ToolTip = 'Send the payment orders to magnetic media, following the Higher Banking Council''s (CSB) guidelines (Norm 34).'; - } - action("Bill Group - Export Factoring") - { - ApplicationArea = Basic, Suite; - Caption = 'Bill Group - Export Factoring'; - Image = "Report"; - RunObject = Report "Bill group - Export factoring"; - ToolTip = 'Send the factoring bill groups to a magnetic media.'; - } - } action("Payment Registration") { ApplicationArea = Basic, Suite; @@ -1259,13 +1066,6 @@ page 9020 "Small Business Owner RC" RunObject = Page "Sales & Receivables Setup"; ToolTip = 'Define your general policies for sales invoicing and returns, such as when to show credit and stockout warnings and how to post sales discounts. Set up your number series for creating customers and different sales documents.'; } - action("Cartera Setup") - { - ApplicationArea = Basic, Suite; - Caption = 'Cartera Setup'; - RunObject = Page "Cartera Setup"; - ToolTip = 'Configure your company''s policies for bill groups and payment orders.'; - } separator(History) { Caption = 'History'; diff --git a/src/Layers/ES/BaseApp/Sales/Customer/CustomerCard.Page.al b/src/Layers/ES/BaseApp/Sales/Customer/CustomerCard.Page.al index 1eb327bc97c..ddba650f018 100644 --- a/src/Layers/ES/BaseApp/Sales/Customer/CustomerCard.Page.al +++ b/src/Layers/ES/BaseApp/Sales/Customer/CustomerCard.Page.al @@ -1016,18 +1016,6 @@ page 21 "Customer Card" "Global Dimension 1 Filter" = field("Global Dimension 1 Filter"), "Global Dimension 2 Filter" = field("Global Dimension 2 Filter"); } - part(Control1903433807; "Cartera Receiv. Statistics FB") - { - ApplicationArea = Basic, Suite; - SubPageLink = "No." = field("No."); - Visible = true; - } - part(Control1903433607; "Cartera Fact. Statistics FB") - { - ApplicationArea = Basic, Suite; - SubPageLink = "No." = field("No."); - Visible = true; - } part(Control1905532107; "Dimensions FactBox") { ApplicationArea = Basic, Suite; diff --git a/src/Layers/ES/BaseApp/Sales/Customer/CustomerList.Page.al b/src/Layers/ES/BaseApp/Sales/Customer/CustomerList.Page.al index 7f3976ce5d1..57f1a1f24e0 100644 --- a/src/Layers/ES/BaseApp/Sales/Customer/CustomerList.Page.al +++ b/src/Layers/ES/BaseApp/Sales/Customer/CustomerList.Page.al @@ -315,18 +315,6 @@ page 22 "Customer List" "Global Dimension 2 Filter" = field("Global Dimension 2 Filter"); Visible = false; } - part(Control1903433807; "Cartera Receiv. Statistics FB") - { - ApplicationArea = Basic, Suite; - SubPageLink = "No." = field("No."); - Visible = true; - } - part(Control1903433607; "Cartera Fact. Statistics FB") - { - ApplicationArea = Basic, Suite; - SubPageLink = "No." = field("No."); - Visible = true; - } systempart(Control1900383207; Links) { ApplicationArea = RecordLinks; diff --git a/src/Layers/ES/BaseApp/Sales/Customer/CustomerPostingGroup.Table.al b/src/Layers/ES/BaseApp/Sales/Customer/CustomerPostingGroup.Table.al index 506c63506e0..92b514a1852 100644 --- a/src/Layers/ES/BaseApp/Sales/Customer/CustomerPostingGroup.Table.al +++ b/src/Layers/ES/BaseApp/Sales/Customer/CustomerPostingGroup.Table.al @@ -437,46 +437,6 @@ table 92 "Customer Posting Group" Caption = 'View All Accounts on Lookup'; ToolTip = 'Specifies that all possible accounts are shown when you look up from a field. If the check box is not selected, then only accounts related to the involved account category are shown.'; } - field(7000000; "Bills Account"; Code[20]) - { - Caption = 'Bills Account'; - TableRelation = "G/L Account"; - } - field(7000001; "Discted. Bills Acc."; Code[20]) - { - Caption = 'Discted. Bills Acc.'; - TableRelation = "G/L Account"; - } - field(7000002; "Bills on Collection Acc."; Code[20]) - { - Caption = 'Bills on Collection Acc.'; - TableRelation = "G/L Account"; - } - field(7000003; "Rejected Bills Acc."; Code[20]) - { - Caption = 'Rejected Bills Acc.'; - TableRelation = "G/L Account"; - } - field(7000004; "Finance Income Acc."; Code[20]) - { - Caption = 'Finance Income Acc.'; - TableRelation = "G/L Account"; - } - field(7000005; "Factoring for Collection Acc."; Code[20]) - { - Caption = 'Factoring for Collection Acc.'; - TableRelation = "G/L Account"; - } - field(7000006; "Factoring for Discount Acc."; Code[20]) - { - Caption = 'Factoring for Discount Acc.'; - TableRelation = "G/L Account"; - } - field(7000007; "Rejected Factoring Acc."; Code[20]) - { - Caption = 'Rejected Factoring Acc.'; - TableRelation = "G/L Account"; - } } keys @@ -622,24 +582,6 @@ table 92 "Customer Posting Group" exit("Credit Curr. Appln. Rndg. Acc."); end; - [Scope('OnPrem')] - procedure GetBillsAccount(Rejected: Boolean): Code[20] - begin - if Rejected then begin - TestField("Rejected Bills Acc."); - exit("Rejected Bills Acc."); - end; - TestField("Bills Account"); - exit("Bills Account"); - end; - - [Scope('OnPrem')] - procedure GetBillsOnCollAccount(): Code[20] - begin - TestField("Bills on Collection Acc."); - exit("Bills on Collection Acc."); - end; - /// /// Gets the invoice rounding G/L account and validates its posting group. /// @@ -745,37 +687,5 @@ table 92 "Customer Posting Group" local procedure OnAfterGetReceivablesAccount(var CustomerPostingGroup: Record "Customer Posting Group"; var Result: Code[20]) begin end; - - procedure GetRejectedFactoringAcc(): Code[20] - begin - if "Rejected Factoring Acc." = '' then - PostingSetupMgt.LogCustPostingGroupFieldError(Rec, FieldNo("Rejected Factoring Acc.")); - - exit("Rejected Factoring Acc."); - end; - - procedure GetFactoringForDiscountAcc(): Code[20] - begin - if "Factoring for Discount Acc." = '' then - PostingSetupMgt.LogCustPostingGroupFieldError(Rec, FieldNo("Factoring for Discount Acc.")); - - exit("Factoring for Discount Acc."); - end; - - procedure GetFactoringForCollectionAcc(): Code[20] - begin - if "Factoring for Collection Acc." = '' then - PostingSetupMgt.LogCustPostingGroupFieldError(Rec, FieldNo("Factoring for Collection Acc.")); - - exit("Factoring for Collection Acc."); - end; - - procedure GetDiscountedBillsAcc(): Code[20] - begin - if "Discted. Bills Acc." = '' then - PostingSetupMgt.LogCustPostingGroupFieldError(Rec, FieldNo("Discted. Bills Acc.")); - - exit("Discted. Bills Acc."); - end; } diff --git a/src/Layers/ES/BaseApp/Sales/Customer/CustomerStatistics.Page.al b/src/Layers/ES/BaseApp/Sales/Customer/CustomerStatistics.Page.al index 4ad7fa9c7a6..e933ba5c10d 100644 --- a/src/Layers/ES/BaseApp/Sales/Customer/CustomerStatistics.Page.al +++ b/src/Layers/ES/BaseApp/Sales/Customer/CustomerStatistics.Page.al @@ -835,429 +835,6 @@ page 151 "Customer Statistics" #endif } } - group("Receivable Bills") - { - Caption = 'Receivable Bills'; - fixed(Control1903836701) - { - ShowCaption = false; - group("No. of Bills") - { - Caption = 'No. of Bills'; - field("NoOpen[1]"; NoOpen[1]) - { - ApplicationArea = Basic, Suite; - Caption = 'Open Bills'; - Editable = false; - ToolTip = 'Specifies non-processed payments.'; - } - field("NoOpen[2]"; NoOpen[2]) - { - ApplicationArea = Basic, Suite; - Caption = 'Open Bills in Bill Gr.'; - Editable = false; - ToolTip = 'Specifies non-processed payments.'; - } - field("NoOpen[3]"; NoOpen[3]) - { - ApplicationArea = Basic, Suite; - Caption = 'Open Bills in Post. Bill Gr.'; - Editable = false; - ToolTip = 'Specifies non-processed payments.'; - } - field("NoHonored[3]"; NoHonored[3]) - { - ApplicationArea = Basic, Suite; - Caption = 'Hon. Bills in Post. Bill Gr.'; - Editable = false; - ToolTip = 'Specifies settled payments.'; - } - field("NoRejected[3]"; NoRejected[3]) - { - ApplicationArea = Basic, Suite; - Caption = 'Rej. Bills in Post. Bill Gr.'; - Editable = false; - ToolTip = 'Specifies rejected payments.'; - } - field("NoRedrawn[3]"; NoRedrawn[3]) - { - ApplicationArea = Basic, Suite; - Caption = 'Redr. Bills in Post. Bill Gr.'; - Editable = false; - ToolTip = 'Specifies recirculated payments.'; - } - field("NoHonored[4]"; NoHonored[4]) - { - ApplicationArea = Basic, Suite; - Caption = 'Hon. Closed Bills'; - Editable = false; - ToolTip = 'Specifies settled payments.'; - } - field("NoRejected[4]"; NoRejected[4]) - { - ApplicationArea = Basic, Suite; - Caption = 'Rej. Closed Bills'; - Editable = false; - ToolTip = 'Specifies rejected payments.'; - } - } - group("Amount (LCY)") - { - Caption = 'Amount (LCY)'; - field("OpenAmtLCY[1]"; OpenAmtLCY[1]) - { - ApplicationArea = Basic, Suite; - AutoFormatType = 1; - AutoFormatExpression = ''; - Editable = false; - - trigger OnDrillDown() - begin - DrillDownOpen(4, 1); // Cartera - end; - } - field("OpenAmtLCY[2]"; OpenAmtLCY[2]) - { - ApplicationArea = Basic, Suite; - AutoFormatType = 1; - AutoFormatExpression = ''; - Caption = 'Open'; - Editable = false; - ToolTip = 'Specifies that the related payment is not processed yet. '; - - trigger OnDrillDown() - begin - DrillDownOpen(3, 1); // Bill Group - end; - } - field("OpenAmtLCY[3]"; OpenAmtLCY[3]) - { - ApplicationArea = Basic, Suite; - AutoFormatType = 1; - AutoFormatExpression = ''; - Caption = 'Open'; - Editable = false; - ToolTip = 'Specifies that the related payment is not processed yet. '; - - trigger OnDrillDown() - begin - DrillDownOpen(1, 1); // Posted Bill Group - end; - } - field("HonoredAmtLCY[3]"; HonoredAmtLCY[3]) - { - ApplicationArea = Basic, Suite; - AutoFormatType = 1; - AutoFormatExpression = ''; - Caption = 'Honored'; - Editable = false; - ToolTip = 'Specifies that the related payment is settled. '; - - trigger OnDrillDown() - begin - DrillDownHonored(1, 1); // Posted Bill Group - end; - } - field("RejectedAmtLCY[3]"; RejectedAmtLCY[3]) - { - ApplicationArea = Basic, Suite; - AutoFormatType = 1; - AutoFormatExpression = ''; - Caption = 'Rejected'; - Editable = false; - ToolTip = 'Specifies that the related payment is rejected.'; - - trigger OnDrillDown() - begin - DrillDownRejected(1, 1); // Posted Bill Group - end; - } - field("RedrawnAmtLCY[3]"; RedrawnAmtLCY[3]) - { - ApplicationArea = Basic, Suite; - AutoFormatType = 1; - AutoFormatExpression = ''; - Caption = 'Redrawn'; - Editable = false; - ToolTip = 'Specifies that the related payment is recirculated because it was rejected when its due date arrived.'; - - trigger OnDrillDown() - begin - DrillDownRedrawn(1, 1); // Posted Bill Group - end; - } - field("HonoredAmtLCY[4]"; HonoredAmtLCY[4]) - { - ApplicationArea = Basic, Suite; - AutoFormatType = 1; - AutoFormatExpression = ''; - Caption = 'Honored'; - Editable = false; - ToolTip = 'Specifies that the related payment is settled. '; - - trigger OnDrillDown() - begin - DrillDownHonored(5, 1); // Closed Bills - end; - } - field("RejectedAmtLCY[4]"; RejectedAmtLCY[4]) - { - ApplicationArea = Basic, Suite; - AutoFormatType = 1; - AutoFormatExpression = ''; - Caption = 'Rejected'; - Editable = false; - ToolTip = 'Specifies that the related payment is rejected.'; - - trigger OnDrillDown() - begin - DrillDownRejected(5, 1); // Closed Bills - end; - } - } - group("Remaining Amt. (LCY)") - { - Caption = 'Remaining Amt. (LCY)'; - field("OpenRemainingAmtLCY[1]"; OpenRemainingAmtLCY[1]) - { - ApplicationArea = Basic, Suite; - AutoFormatType = 1; - AutoFormatExpression = ''; - Caption = 'Open'; - Editable = false; - ToolTip = 'Specifies that the related payment is not processed yet. '; - - trigger OnDrillDown() - begin - DrillDownOpen(4, 1); // Cartera - end; - } - field("OpenRemainingAmtLCY[2]"; OpenRemainingAmtLCY[2]) - { - ApplicationArea = Basic, Suite; - AutoFormatType = 1; - AutoFormatExpression = ''; - Caption = 'Open'; - Editable = false; - ToolTip = 'Specifies that the related payment is not processed yet. '; - - trigger OnDrillDown() - begin - DrillDownOpen(3, 1); // Bill Group; - end; - } - field("OpenRemainingAmtLCY[3]"; OpenRemainingAmtLCY[3]) - { - ApplicationArea = Basic, Suite; - AutoFormatType = 1; - AutoFormatExpression = ''; - Caption = 'Open'; - Editable = false; - ToolTip = 'Specifies that the related payment is not processed yet. '; - - trigger OnDrillDown() - begin - DrillDownOpen(1, 1); // Posted Bill Group - end; - } - field("HonoredRemainingAmtLCY[3]"; HonoredRemainingAmtLCY[3]) - { - ApplicationArea = Basic, Suite; - AutoFormatType = 1; - AutoFormatExpression = ''; - Caption = 'Honored'; - Editable = false; - ToolTip = 'Specifies that the related payment is settled. '; - - trigger OnDrillDown() - begin - DrillDownHonored(1, 1); // Posted Bill Group - end; - } - field("RejectedRemainingAmtLCY[3]"; RejectedRemainingAmtLCY[3]) - { - ApplicationArea = Basic, Suite; - AutoFormatType = 1; - AutoFormatExpression = ''; - Caption = 'Rejected'; - Editable = false; - ToolTip = 'Specifies that the related payment is rejected.'; - - trigger OnDrillDown() - begin - DrillDownRejected(1, 1); // Posted Bill Group - end; - } - field("RedrawnRemainingAmtLCY[3]"; RedrawnRemainingAmtLCY[3]) - { - ApplicationArea = Basic, Suite; - AutoFormatType = 1; - AutoFormatExpression = ''; - Caption = 'Redrawn'; - Editable = false; - ToolTip = 'Specifies that the related payment is recirculated because it was rejected when its due date arrived.'; - - trigger OnDrillDown() - begin - DrillDownRedrawn(1, 1); // Posted Bill Group - end; - } - field("HonoredRemainingAmtLCY[4]"; HonoredRemainingAmtLCY[4]) - { - ApplicationArea = Basic, Suite; - AutoFormatType = 1; - AutoFormatExpression = ''; - Caption = 'Honored'; - Editable = false; - ToolTip = 'Specifies that the related payment is settled. '; - - trigger OnDrillDown() - begin - DrillDownHonored(5, 1); // Closed Bills - end; - } - field("RejectedRemainingAmtLCY[4]"; RejectedRemainingAmtLCY[4]) - { - ApplicationArea = Basic, Suite; - AutoFormatType = 1; - AutoFormatExpression = ''; - Caption = 'Rejected'; - Editable = false; - ToolTip = 'Specifies that the related payment is rejected.'; - - trigger OnDrillDown() - begin - DrillDownRejected(5, 1); // Closed Bills - end; - } - } - } - } - group(Factoring) - { - Caption = 'Factoring'; - fixed(Control1903442601) - { - ShowCaption = false; - group("No. of Invoices") - { - Caption = 'No. of Invoices'; - field("NoOpen[5]"; NoOpen[5]) - { - ApplicationArea = Basic, Suite; - Caption = 'Open'; - Editable = false; - ToolTip = 'Specifies that the related payment is not processed yet. '; - } - field("NoHonored[5]"; NoHonored[5]) - { - ApplicationArea = Basic, Suite; - Caption = 'Honored'; - Editable = false; - ToolTip = 'Specifies that the related payment is settled. '; - } - field("NoRejected[5]"; NoRejected[5]) - { - ApplicationArea = Basic, Suite; - Caption = 'Rejected'; - Editable = false; - ToolTip = 'Specifies that the related payment is rejected.'; - } - } - group(Control1903422801) - { - Caption = 'Amount (LCY)'; - field("OpenAmtLCY[5]"; OpenAmtLCY[5]) - { - ApplicationArea = Basic, Suite; - AutoFormatExpression = ''; - AutoFormatType = 1; - Caption = 'Open'; - Editable = false; - ToolTip = 'Specifies that the related payment is not processed yet. '; - - trigger OnDrillDown() - begin - DrillDownOpen(0, 0); - end; - } - field("HonoredAmtLCY[5]"; HonoredAmtLCY[5]) - { - ApplicationArea = Basic, Suite; - AutoFormatType = 1; - AutoFormatExpression = ''; - Caption = 'Honored'; - Editable = false; - ToolTip = 'Specifies that the related payment is settled. '; - - trigger OnDrillDown() - begin - DrillDownHonored(0, 0); - end; - } - field("RejectedAmtLCY[5]"; RejectedAmtLCY[5]) - { - ApplicationArea = Basic, Suite; - AutoFormatType = 1; - AutoFormatExpression = ''; - Caption = 'Rejected'; - Editable = false; - ToolTip = 'Specifies that the related payment is rejected.'; - - trigger OnDrillDown() - begin - DrillDownRejected(0, 0); - end; - } - } - group(Control1907816901) - { - Caption = 'Remaining Amt. (LCY)'; - field("OpenRemainingAmtLCY[5]"; OpenRemainingAmtLCY[5]) - { - ApplicationArea = Basic, Suite; - AutoFormatType = 1; - AutoFormatExpression = ''; - Caption = 'Open'; - Editable = false; - ToolTip = 'Specifies that the related payment is not processed yet. '; - - trigger OnDrillDown() - begin - DrillDownOpen(0, 0); - end; - } - field("HonoredRemainingAmtLCY[5]"; HonoredRemainingAmtLCY[5]) - { - ApplicationArea = Basic, Suite; - AutoFormatType = 1; - AutoFormatExpression = ''; - Caption = 'Honored'; - Editable = false; - ToolTip = 'Specifies that the related payment is settled. '; - - trigger OnDrillDown() - begin - DrillDownHonored(0, 0); - end; - } - field("RejectedRemainingAmtLCY[5]"; RejectedRemainingAmtLCY[5]) - { - ApplicationArea = Basic, Suite; - AutoFormatType = 1; - AutoFormatExpression = ''; - Caption = 'Rejected'; - Editable = false; - ToolTip = 'Specifies that the related payment is rejected.'; - - trigger OnDrillDown() - begin - DrillDownRejected(0, 0); - end; - } - } - } - } } } @@ -1314,8 +891,6 @@ page 151 "Customer Statistics" NumberOfDistinctItemsSold[i] := CalcNumberOfDistinctItemsSold(CustDateFilter[i]); end; Rec.SetRange("Date Filter", 0D, CurrentDate); - - UpdateDocStatistics(); end; var @@ -1349,20 +924,6 @@ page 151 "Customer Statistics" CustOtherAmountsLCY: array[4] of Decimal; InvAmountsLCY: array[4] of Decimal; i: Integer; - DocumentSituationFilter: array[3] of Option " ","Posted BG/PO","Closed BG/PO","BG/PO",Cartera,"Closed Documents"; - NoOpen: array[5] of Integer; - NoHonored: array[5] of Integer; - NoRejected: array[5] of Integer; - NoRedrawn: array[5] of Integer; - OpenAmtLCY: array[5] of Decimal; - HonoredAmtLCY: array[5] of Decimal; - RejectedAmtLCY: array[5] of Decimal; - RedrawnAmtLCY: array[5] of Decimal; - OpenRemainingAmtLCY: array[5] of Decimal; - RejectedRemainingAmtLCY: array[5] of Decimal; - HonoredRemainingAmtLCY: array[5] of Decimal; - RedrawnRemainingAmtLCY: array[5] of Decimal; - j: Integer; NumberOfSalesDocs: array[4] of Integer; NumberOfDistinctItemsSold: array[4] of Integer; @@ -1373,217 +934,6 @@ page 151 "Customer Statistics" OnAfterSetDateFilter(Rec); end; - [Scope('OnPrem')] - procedure UpdateDocStatistics() - var - CustLedgEntry: Record "Cust. Ledger Entry"; - begin - DocumentSituationFilter[1] := DocumentSituationFilter::Cartera; - DocumentSituationFilter[2] := DocumentSituationFilter::"BG/PO"; - DocumentSituationFilter[3] := DocumentSituationFilter::"Posted BG/PO"; - - CustLedgEntry.SetCurrentKey("Customer No.", "Document Type", "Document Situation", "Document Status"); - CustLedgEntry.SetRange("Customer No.", Rec."No."); - for j := 1 to 5 do begin - case j of - 4: - // Closed Bill Group and Closed Documents - begin - CustLedgEntry.SetRange("Document Type", CustLedgEntry."Document Type"::Bill); - CustLedgEntry.SetFilter("Document Situation", '%1|%2', - CustLedgEntry."Document Situation"::"Closed BG/PO", - CustLedgEntry."Document Situation"::"Closed Documents"); - end; - 5: - // Invoices - begin - CustLedgEntry.SetRange("Document Type", CustLedgEntry."Document Type"::Invoice); - CustLedgEntry.SetFilter("Document Situation", '<>0'); - end; - else begin - CustLedgEntry.SetRange("Document Type", CustLedgEntry."Document Type"::Bill); - CustLedgEntry.SetRange("Document Situation", DocumentSituationFilter[j]); - end; - end; - CustLedgEntry.SetRange("Document Status", CustLedgEntry."Document Status"::Open); - CustLedgEntry.CalcSums("Amount (LCY) stats.", "Remaining Amount (LCY) stats."); - OpenAmtLCY[j] := CustLedgEntry."Amount (LCY) stats."; - OpenRemainingAmtLCY[j] := CustLedgEntry."Remaining Amount (LCY) stats."; - NoOpen[j] := CustLedgEntry.Count; - CustLedgEntry.SetRange("Document Status"); - - CustLedgEntry.SetRange("Document Status", CustLedgEntry."Document Status"::Honored); - CustLedgEntry.CalcSums("Amount (LCY) stats.", "Remaining Amount (LCY) stats."); - HonoredAmtLCY[j] := CustLedgEntry."Amount (LCY) stats."; - HonoredRemainingAmtLCY[j] := CustLedgEntry."Remaining Amount (LCY) stats."; - NoHonored[j] := CustLedgEntry.Count; - CustLedgEntry.SetRange("Document Status"); - - CustLedgEntry.SetRange("Document Status", CustLedgEntry."Document Status"::Rejected); - CustLedgEntry.CalcSums("Amount (LCY) stats.", "Remaining Amount (LCY) stats."); - RejectedAmtLCY[j] := CustLedgEntry."Amount (LCY) stats."; - RejectedRemainingAmtLCY[j] := CustLedgEntry."Remaining Amount (LCY) stats."; - NoRejected[j] := CustLedgEntry.Count; - CustLedgEntry.SetRange("Document Status"); - - CustLedgEntry.SetRange("Document Status", CustLedgEntry."Document Status"::Redrawn); - CustLedgEntry.CalcSums("Amount (LCY) stats.", "Remaining Amount (LCY) stats."); - RedrawnAmtLCY[j] := CustLedgEntry."Amount (LCY) stats."; - RedrawnRemainingAmtLCY[j] := CustLedgEntry."Remaining Amount (LCY) stats."; - NoRedrawn[j] := CustLedgEntry.Count; - CustLedgEntry.SetRange("Document Status"); - - CustLedgEntry.SetRange("Document Situation"); - end; - end; - - [Scope('OnPrem')] - procedure DrillDownOpen(Situation: Option " ","Posted BG/PO","Closed BG/PO","BG/PO",Cartera,"Closed Documents"; DocType: Option Invoice,Bill) - var - CustLedgEntry: Record "Cust. Ledger Entry"; - CustLedgEntriesForm: Page "Customer Ledger Entries"; - begin - CustLedgEntry.SetCurrentKey("Customer No.", "Document Type", "Document Situation", "Document Status"); - CustLedgEntry.SetRange("Customer No.", Rec."No."); - case Situation of - Situation::Cartera: - CustLedgEntry.SetRange("Document Situation", CustLedgEntry."Document Situation"::Cartera); - Situation::"BG/PO": - CustLedgEntry.SetRange("Document Situation", CustLedgEntry."Document Situation"::"BG/PO"); - Situation::"Posted BG/PO": - CustLedgEntry.SetRange("Document Situation", CustLedgEntry."Document Situation"::"Posted BG/PO"); - Situation::"Closed BG/PO": - CustLedgEntry.SetFilter("Document Situation", '%1|%2', - CustLedgEntry."Document Situation"::"Closed BG/PO", - CustLedgEntry."Document Situation"::"Closed Documents"); - else - CustLedgEntry.SetFilter("Document Situation", '<>0'); - end; - case DocType of - DocType::Invoice: - CustLedgEntry.SetRange("Document Type", CustLedgEntry."Document Type"::Invoice); - DocType::Bill: - CustLedgEntry.SetRange("Document Type", CustLedgEntry."Document Type"::Bill); - end; - - CustLedgEntry.SetRange("Document Status", CustLedgEntry."Document Status"::Open); - CustLedgEntriesForm.SetTableView(CustLedgEntry); - CustLedgEntriesForm.SetRecord(CustLedgEntry); - CustLedgEntriesForm.RunModal(); - CustLedgEntry.SetRange("Document Status"); - CustLedgEntry.SetRange("Document Situation"); - end; - - [Scope('OnPrem')] - procedure DrillDownHonored(Situation: Option " ","Posted BG/PO","Closed BG/PO","BG/PO",Cartera,"Closed Documents"; DocType: Option Invoice,Bill) - var - CustLedgEntry: Record "Cust. Ledger Entry"; - CustLedgEntriesForm: Page "Customer Ledger Entries"; - begin - CustLedgEntry.SetCurrentKey("Customer No.", "Document Type", "Document Situation", "Document Status"); - CustLedgEntry.SetRange("Customer No.", Rec."No."); - case Situation of - Situation::Cartera: - CustLedgEntry.SetRange("Document Situation", CustLedgEntry."Document Situation"::Cartera); - Situation::"BG/PO": - CustLedgEntry.SetRange("Document Situation", CustLedgEntry."Document Situation"::"BG/PO"); - Situation::"Posted BG/PO": - CustLedgEntry.SetRange("Document Situation", CustLedgEntry."Document Situation"::"Posted BG/PO"); - Situation::"Closed BG/PO": - CustLedgEntry.SetFilter("Document Situation", '%1|%2', - CustLedgEntry."Document Situation"::"Closed BG/PO", - CustLedgEntry."Document Situation"::"Closed Documents"); - else - CustLedgEntry.SetFilter("Document Situation", '<>0'); - end; - case DocType of - DocType::Invoice: - CustLedgEntry.SetRange("Document Type", CustLedgEntry."Document Type"::Invoice); - DocType::Bill: - CustLedgEntry.SetRange("Document Type", CustLedgEntry."Document Type"::Bill); - end; - - CustLedgEntry.SetRange("Document Status", CustLedgEntry."Document Status"::Honored); - CustLedgEntriesForm.SetTableView(CustLedgEntry); - CustLedgEntriesForm.SetRecord(CustLedgEntry); - CustLedgEntriesForm.RunModal(); - CustLedgEntry.SetRange("Document Status"); - CustLedgEntry.SetRange("Document Situation"); - end; - - [Scope('OnPrem')] - procedure DrillDownRejected(Situation: Option " ","Posted BG/PO","Closed BG/PO","BG/PO",Cartera,"Closed Documents"; DocType: Option Invoice,Bill) - var - CustLedgEntry: Record "Cust. Ledger Entry"; - CustLedgEntriesForm: Page "Customer Ledger Entries"; - begin - CustLedgEntry.SetCurrentKey("Customer No.", "Document Type", "Document Situation", "Document Status"); - CustLedgEntry.SetRange("Customer No.", Rec."No."); - case Situation of - Situation::Cartera: - CustLedgEntry.SetRange("Document Situation", CustLedgEntry."Document Situation"::Cartera); - Situation::"BG/PO": - CustLedgEntry.SetRange("Document Situation", CustLedgEntry."Document Situation"::"BG/PO"); - Situation::"Posted BG/PO": - CustLedgEntry.SetRange("Document Situation", CustLedgEntry."Document Situation"::"Posted BG/PO"); - Situation::"Closed BG/PO": - CustLedgEntry.SetFilter("Document Situation", '%1|%2', - CustLedgEntry."Document Situation"::"Closed BG/PO", - CustLedgEntry."Document Situation"::"Closed Documents"); - else - CustLedgEntry.SetFilter("Document Situation", '<>0'); - end; - case DocType of - DocType::Invoice: - CustLedgEntry.SetRange("Document Type", CustLedgEntry."Document Type"::Invoice); - DocType::Bill: - CustLedgEntry.SetRange("Document Type", CustLedgEntry."Document Type"::Bill); - end; - - CustLedgEntry.SetRange("Document Status", CustLedgEntry."Document Status"::Rejected); - CustLedgEntriesForm.SetTableView(CustLedgEntry); - CustLedgEntriesForm.SetRecord(CustLedgEntry); - CustLedgEntriesForm.RunModal(); - CustLedgEntry.SetRange("Document Status"); - CustLedgEntry.SetRange("Document Situation"); - end; - - [Scope('OnPrem')] - procedure DrillDownRedrawn(Situation: Option " ","Posted BG/PO","Closed BG/PO","BG/PO",Cartera,"Closed Documents"; DocType: Option Invoice,Bill) - var - CustLedgEntry: Record "Cust. Ledger Entry"; - CustLedgEntriesForm: Page "Customer Ledger Entries"; - begin - CustLedgEntry.SetCurrentKey("Customer No.", "Document Type", "Document Situation", "Document Status"); - CustLedgEntry.SetRange("Customer No.", Rec."No."); - case Situation of - Situation::Cartera: - CustLedgEntry.SetRange("Document Situation", CustLedgEntry."Document Situation"::Cartera); - Situation::"BG/PO": - CustLedgEntry.SetRange("Document Situation", CustLedgEntry."Document Situation"::"BG/PO"); - Situation::"Posted BG/PO": - CustLedgEntry.SetRange("Document Situation", CustLedgEntry."Document Situation"::"Posted BG/PO"); - Situation::"Closed BG/PO", Situation::"Closed Documents": - CustLedgEntry.SetFilter("Document Situation", '%1|%2', - CustLedgEntry."Document Situation"::"Closed BG/PO", - CustLedgEntry."Document Situation"::"Closed Documents"); - else - CustLedgEntry.SetFilter("Document Situation", '<>0'); - end; - case DocType of - DocType::Invoice: - CustLedgEntry.SetRange("Document Type", CustLedgEntry."Document Type"::Invoice); - DocType::Bill: - CustLedgEntry.SetRange("Document Type", CustLedgEntry."Document Type"::Bill); - end; - CustLedgEntry.SetRange("Document Status", CustLedgEntry."Document Status"::Redrawn); - CustLedgEntriesForm.SetTableView(CustLedgEntry); - CustLedgEntriesForm.SetRecord(CustLedgEntry); - CustLedgEntriesForm.RunModal(); - CustLedgEntry.SetRange("Document Status"); - CustLedgEntry.SetRange("Document Situation"); - end; - local procedure CalcDaysSinceLastSale(): Integer var CustLedgerEntry: Record "Cust. Ledger Entry"; diff --git a/src/Layers/ES/BaseApp/Sales/Document/SalesCreditMemo.Page.al b/src/Layers/ES/BaseApp/Sales/Document/SalesCreditMemo.Page.al index a81954afcd3..d38f3723086 100644 --- a/src/Layers/ES/BaseApp/Sales/Document/SalesCreditMemo.Page.al +++ b/src/Layers/ES/BaseApp/Sales/Document/SalesCreditMemo.Page.al @@ -10,7 +10,6 @@ using Microsoft.EServices.EDocument; using Microsoft.Finance.Currency; using Microsoft.Finance.Dimension; using Microsoft.Finance.GeneralLedger.Setup; -using Microsoft.Finance.ReceivablesPayables; using Microsoft.Finance.VAT.Calculation; using Microsoft.Foundation.Address; using Microsoft.Foundation.Attachment; @@ -20,7 +19,7 @@ using Microsoft.Sales.Comment; using Microsoft.Sales.Customer; using Microsoft.Sales.History; using Microsoft.Sales.Posting; -using Microsoft.Sales.Receivables; +using Microsoft.Sales.Pricing; using Microsoft.Sales.Setup; using Microsoft.Utilities; using System.Automation; @@ -352,11 +351,6 @@ page 44 "Sales Credit Memo" ApplicationArea = Basic, Suite; Importance = Additional; } - field("Applies-to Bill No."; Rec."Applies-to Bill No.") - { - ApplicationArea = Basic, Suite; - ToolTip = 'Specifies if you want to apply an open receivable bill with a credit memo from a customer.'; - } field("Applies-to ID"; Rec."Applies-to ID") { ApplicationArea = Basic, Suite; @@ -772,18 +766,6 @@ page 44 "Sales Credit Memo" SubPageLink = "No." = field("Sell-to Customer No."), "Date Filter" = field("Date Filter"); } - part(Control1903433807; "Cartera Receiv. Statistics FB") - { - ApplicationArea = Basic, Suite; - SubPageLink = "No." = field("Bill-to Customer No."); - Visible = true; - } - part(Control1903433607; "Cartera Fact. Statistics FB") - { - ApplicationArea = Basic, Suite; - SubPageLink = "No." = field("Bill-to Customer No."); - Visible = true; - } part(Control1906127307; "Sales Line FactBox") { ApplicationArea = Basic, Suite; @@ -1059,19 +1041,6 @@ page 44 "Sales Credit Memo" { Caption = 'F&unctions'; Image = "Action"; - action(CalculateInvoiceDiscount) - { - ApplicationArea = Basic, Suite; - Caption = 'Calculate &Inv. and Pmt. Discounts'; - Image = CalculateDiscount; - ToolTip = 'Update the lines with any payment discount that is specified in the related payment terms.'; - - trigger OnAction() - begin - ApproveCalcInvDisc(); - SalesCalcDiscByType.ResetRecalculateInvoiceDisc(Rec); - end; - } action(GetPostedDocumentLinesToReverse) { ApplicationArea = Basic, Suite; @@ -1087,6 +1056,20 @@ page 44 "Sales Credit Memo" CurrPage.Update(); end; } + action(CalculateInvoiceDiscount) + { + AccessByPermission = TableData "Cust. Invoice Disc." = R; + ApplicationArea = Basic, Suite; + Caption = 'Calculate &Inv. and Pmt. Discounts'; + Image = CalculateDiscount; + ToolTip = 'Update the lines with any payment discount that is specified in the related payment terms.'; + + trigger OnAction() + begin + ApproveCalcInvDisc(); + SalesCalcDiscByType.ResetRecalculateInvoiceDisc(Rec); + end; + } action(ApplyEntries) { ApplicationArea = Basic, Suite; @@ -1502,6 +1485,7 @@ page 44 "Sales Credit Memo" WorkDescription := Rec.GetWorkDescription(); SellToContact.GetOrClear(Rec."Sell-to Contact No."); BillToContact.GetOrClear(Rec."Bill-to Contact No."); + OnAfterOnAfterGetRecord(Rec); end; diff --git a/src/Layers/ES/BaseApp/Sales/Document/SalesHeader.Table.al b/src/Layers/ES/BaseApp/Sales/Document/SalesHeader.Table.al index 42616b52ec2..26ab7c24eca 100644 --- a/src/Layers/ES/BaseApp/Sales/Document/SalesHeader.Table.al +++ b/src/Layers/ES/BaseApp/Sales/Document/SalesHeader.Table.al @@ -3737,7 +3737,6 @@ table 36 "Sales Header" field(7000003; "Pay-at Code"; Code[10]) { Caption = 'Pay-at Code'; - TableRelation = "Customer Pmt. Address".Code where("Customer No." = field("Bill-to Customer No.")); ObsoleteReason = 'Address is taken from the fields Bill-to Address, Bill-to City, etc.'; ObsoleteState = Removed; ObsoleteTag = '25.0'; diff --git a/src/Layers/ES/BaseApp/Sales/Document/SalesInvoice.Page.al b/src/Layers/ES/BaseApp/Sales/Document/SalesInvoice.Page.al index 5a49bdf7f2a..ff356652254 100644 --- a/src/Layers/ES/BaseApp/Sales/Document/SalesInvoice.Page.al +++ b/src/Layers/ES/BaseApp/Sales/Document/SalesInvoice.Page.al @@ -11,7 +11,6 @@ using Microsoft.EServices.EDocument; using Microsoft.Finance.Currency; using Microsoft.Finance.Dimension; using Microsoft.Finance.GeneralLedger.Setup; -using Microsoft.Finance.ReceivablesPayables; using Microsoft.Finance.VAT.Calculation; using Microsoft.Foundation.Address; using Microsoft.Foundation.Attachment; @@ -29,7 +28,6 @@ using Microsoft.Sales.Customer; using Microsoft.Sales.History; using Microsoft.Sales.Posting; using Microsoft.Sales.Pricing; -using Microsoft.Sales.Receivables; using Microsoft.Sales.Setup; using Microsoft.Utilities; using System.Automation; @@ -1053,18 +1051,6 @@ page 43 "Sales Invoice" SubPageLink = "No." = field("Sell-to Customer No."), "Date Filter" = field("Date Filter"); } - part(Control1903433807; "Cartera Receiv. Statistics FB") - { - ApplicationArea = Basic, Suite; - SubPageLink = "No." = field("Bill-to Customer No."); - Visible = true; - } - part(Control1903433607; "Cartera Fact. Statistics FB") - { - ApplicationArea = Basic, Suite; - SubPageLink = "No." = field("Bill-to Customer No."); - Visible = true; - } part(Control1906127307; "Sales Line FactBox") { ApplicationArea = Basic, Suite; @@ -1873,6 +1859,7 @@ page 43 "Sales Invoice" SellToContact.GetOrClear(Rec."Sell-to Contact No."); BillToContact.GetOrClear(Rec."Bill-to Contact No."); CurrPage.IncomingDocAttachFactBox.Page.SetCurrentRecordID(Rec.RecordId); + OnAfterOnAfterGetRecord(Rec); end; @@ -1939,7 +1926,6 @@ page 43 "Sales Invoice" IsSaaS := EnvironmentInfo.IsSaaS(); if (Rec."No." <> '') and (Rec."Sell-to Customer No." = '') then DocumentIsPosted := (not Rec.Get(Rec."Document Type", Rec."No.")); - PaymentServiceVisible := PaymentServiceSetup.IsPaymentServiceVisible(); SetPostingGroupEditable(); diff --git a/src/Layers/ES/BaseApp/Sales/Document/SalesOrder.Page.al b/src/Layers/ES/BaseApp/Sales/Document/SalesOrder.Page.al index 5c7f64678f7..8058ccb91f0 100644 --- a/src/Layers/ES/BaseApp/Sales/Document/SalesOrder.Page.al +++ b/src/Layers/ES/BaseApp/Sales/Document/SalesOrder.Page.al @@ -12,7 +12,6 @@ using Microsoft.EServices.EDocument; using Microsoft.Finance.Currency; using Microsoft.Finance.Dimension; using Microsoft.Finance.GeneralLedger.Setup; -using Microsoft.Finance.ReceivablesPayables; using Microsoft.Finance.VAT.Calculation; using Microsoft.Foundation.Address; using Microsoft.Foundation.Attachment; @@ -34,7 +33,7 @@ using Microsoft.Sales.Comment; using Microsoft.Sales.Customer; using Microsoft.Sales.History; using Microsoft.Sales.Posting; -using Microsoft.Sales.Receivables; +using Microsoft.Sales.Pricing; using Microsoft.Sales.Setup; using Microsoft.Utilities; using Microsoft.Warehouse.Activity; @@ -1092,18 +1091,6 @@ page 42 "Sales Order" SubPageLink = "No." = field("No."), "Document Type" = field("Document Type"); } - part(Control1903433807; "Cartera Receiv. Statistics FB") - { - ApplicationArea = Basic, Suite; - SubPageLink = "No." = field("Sell-to Customer No."); - Visible = true; - } - part(Control1903433607; "Cartera Fact. Statistics FB") - { - ApplicationArea = Basic, Suite; - SubPageLink = "No." = field("Sell-to Customer No."); - Visible = true; - } part("Attached Documents List"; "Doc. Attachment List Factbox") { ApplicationArea = All; @@ -1640,19 +1627,6 @@ page 42 "Sales Order" { Caption = 'F&unctions'; Image = "Action"; - action(CalculateInvoiceDiscount) - { - ApplicationArea = Basic, Suite; - Caption = 'Calculate &Inv. and Pmt. Discounts'; - Image = CalculateDiscount; - ToolTip = 'Update the lines with any payment discount that is specified in the related payment terms.'; - - trigger OnAction() - begin - ApproveCalcInvDisc(); - SalesCalcDiscountByType.ResetRecalculateInvoiceDisc(Rec); - end; - } group("Create Purchase Document") { Caption = 'Create Purchase Document'; @@ -1697,6 +1671,20 @@ page 42 "Sales Order" end; } } + action(CalculateInvoiceDiscount) + { + AccessByPermission = TableData "Cust. Invoice Disc." = R; + ApplicationArea = Basic, Suite; + Caption = 'Calculate &Inv. and Pmt. Discounts'; + Image = CalculateDiscount; + ToolTip = 'Update the lines with any payment discount that is specified in the related payment terms.'; + + trigger OnAction() + begin + ApproveCalcInvDisc(); + SalesCalcDiscountByType.ResetRecalculateInvoiceDisc(Rec); + end; + } action(GetRecurringSalesLines) { ApplicationArea = Suite; @@ -2622,7 +2610,6 @@ page 42 "Sales Order" if (Rec."No." <> '') and (Rec."Sell-to Customer No." = '') then DocumentIsPosted := (not Rec.Get(Rec."Document Type", Rec."No.")); - PaymentServiceVisible := PaymentServiceSetup.IsPaymentServiceVisible(); if GuiAllowed() then diff --git a/src/Layers/ES/BaseApp/Sales/Document/SalesQuote.Page.al b/src/Layers/ES/BaseApp/Sales/Document/SalesQuote.Page.al index 3542c159bc9..648cf4a0209 100644 --- a/src/Layers/ES/BaseApp/Sales/Document/SalesQuote.Page.al +++ b/src/Layers/ES/BaseApp/Sales/Document/SalesQuote.Page.al @@ -11,7 +11,6 @@ using Microsoft.EServices.EDocument; using Microsoft.Finance.Currency; using Microsoft.Finance.Dimension; using Microsoft.Finance.GeneralLedger.Setup; -using Microsoft.Finance.ReceivablesPayables; using Microsoft.Foundation.Address; using Microsoft.Foundation.Attachment; using Microsoft.Foundation.Reporting; @@ -22,7 +21,6 @@ using Microsoft.Sales.Archive; using Microsoft.Sales.Comment; using Microsoft.Sales.Customer; using Microsoft.Sales.Pricing; -using Microsoft.Sales.Receivables; using Microsoft.Utilities; using System.Automation; using System.Environment; @@ -965,18 +963,6 @@ page 41 "Sales Quote" } area(factboxes) { - part(Control1903433807; "Cartera Receiv. Statistics FB") - { - ApplicationArea = Basic, Suite; - SubPageLink = "No." = field("Bill-to Customer No."); - Visible = true; - } - part(Control1903433607; "Cartera Fact. Statistics FB") - { - ApplicationArea = Basic, Suite; - SubPageLink = "No." = field("Bill-to Customer No."); - Visible = true; - } part("Attached Documents List"; "Doc. Attachment List Factbox") { ApplicationArea = All; diff --git a/src/Layers/ES/BaseApp/Sales/Document/SalesReturnOrder.Page.al b/src/Layers/ES/BaseApp/Sales/Document/SalesReturnOrder.Page.al index 25f29414ecf..e90eccd5fa0 100644 --- a/src/Layers/ES/BaseApp/Sales/Document/SalesReturnOrder.Page.al +++ b/src/Layers/ES/BaseApp/Sales/Document/SalesReturnOrder.Page.al @@ -8,7 +8,6 @@ using Microsoft.CRM.Contact; using Microsoft.Finance.Currency; using Microsoft.Finance.Dimension; using Microsoft.Finance.GeneralLedger.Setup; -using Microsoft.Finance.ReceivablesPayables; using Microsoft.Finance.VAT.Calculation; using Microsoft.Foundation.Address; using Microsoft.Foundation.Attachment; @@ -21,7 +20,6 @@ using Microsoft.Sales.Customer; using Microsoft.Sales.History; using Microsoft.Sales.Posting; using Microsoft.Sales.Pricing; -using Microsoft.Sales.Receivables; using Microsoft.Sales.Setup; using Microsoft.Utilities; using Microsoft.Warehouse.Activity; @@ -843,18 +841,6 @@ page 6630 "Sales Return Order" SubPageLink = "No." = field("Sell-to Customer No."), "Date Filter" = field("Date Filter"); } - part(Control1903433807; "Cartera Receiv. Statistics FB") - { - ApplicationArea = Basic, Suite; - SubPageLink = "No." = field("Bill-to Customer No."); - Visible = true; - } - part(Control1903433607; "Cartera Fact. Statistics FB") - { - ApplicationArea = Basic, Suite; - SubPageLink = "No." = field("Bill-to Customer No."); - Visible = true; - } part(Control1906127307; "Sales Line FactBox") { ApplicationArea = SalesReturnOrder; diff --git a/src/Layers/ES/BaseApp/Sales/History/PostedSalesInvoices.Page.al b/src/Layers/ES/BaseApp/Sales/History/PostedSalesInvoices.Page.al index 04b050cd54d..47c62947aec 100644 --- a/src/Layers/ES/BaseApp/Sales/History/PostedSalesInvoices.Page.al +++ b/src/Layers/ES/BaseApp/Sales/History/PostedSalesInvoices.Page.al @@ -798,7 +798,6 @@ page 143 "Posted Sales Invoices" if HasFilters and not Rec.Find() then if Rec.FindFirst() then; IsOfficeAddin := OfficeMgt.IsAvailable(); - SalesInvoiceHeader.CopyFilters(Rec); SalesInvoiceHeader.SetFilter("Document Exchange Status", '<>%1', Rec."Document Exchange Status"::"Not Sent"); DocExchStatusVisible := not SalesInvoiceHeader.IsEmpty(); diff --git a/src/Layers/ES/BaseApp/Sales/History/SalesCrMemoHeader.Table.al b/src/Layers/ES/BaseApp/Sales/History/SalesCrMemoHeader.Table.al index eab81cd250e..4d1225875ea 100644 --- a/src/Layers/ES/BaseApp/Sales/History/SalesCrMemoHeader.Table.al +++ b/src/Layers/ES/BaseApp/Sales/History/SalesCrMemoHeader.Table.al @@ -430,7 +430,6 @@ table 114 "Sales Cr.Memo Header" CustLedgEntry.SetCurrentKey("Document No."); CustLedgEntry.SetRange("Document Type", "Applies-to Doc. Type"); CustLedgEntry.SetRange("Document No.", "Applies-to Doc. No."); - CustLedgEntry.SetRange("Bill No.", "Applies-to Bill No."); OnLookupAppliesToDocNoOnAfterSetFilters(CustLedgEntry, Rec); PAGE.Run(0, CustLedgEntry); end; @@ -1156,10 +1155,6 @@ table 114 "Sales Cr.Memo Header" Validate("Corrected Invoice No.", SalesInvoiceHeader."No."); end; } - field(7000000; "Applies-to Bill No."; Code[20]) - { - Caption = 'Applies-to Bill No.'; - } field(7000001; "Cust. Bank Acc. Code"; Code[20]) { Caption = 'Cust. Bank Acc. Code'; @@ -1169,7 +1164,6 @@ table 114 "Sales Cr.Memo Header" field(7000003; "Pay-at Code"; Code[10]) { Caption = 'Pay-at Code'; - TableRelation = "Customer Pmt. Address".Code where("Customer No." = field("Bill-to Customer No.")); ObsoleteReason = 'Address is taken from the fields Bill-to Address, Bill-to City, etc.'; ObsoleteState = Removed; ObsoleteTag = '25.0'; diff --git a/src/Layers/ES/BaseApp/Sales/History/SalesInvoiceHeader.Table.al b/src/Layers/ES/BaseApp/Sales/History/SalesInvoiceHeader.Table.al index 069faa4d8fa..bfc7f9e7891 100644 --- a/src/Layers/ES/BaseApp/Sales/History/SalesInvoiceHeader.Table.al +++ b/src/Layers/ES/BaseApp/Sales/History/SalesInvoiceHeader.Table.al @@ -453,7 +453,6 @@ table 112 "Sales Invoice Header" CustLedgEntry.SetCurrentKey("Document No."); CustLedgEntry.SetRange("Document Type", "Applies-to Doc. Type"); CustLedgEntry.SetRange("Document No.", "Applies-to Doc. No."); - CustLedgEntry.SetRange("Bill No.", "Applies-to Bill No."); OnLookupAppliesToDocNoOnAfterSetFilters(CustLedgEntry, Rec); PAGE.Run(0, CustLedgEntry); end; @@ -1284,10 +1283,6 @@ table 112 "Sales Invoice Header" UpdateDisputeStatus(); end; } - field(7000000; "Applies-to Bill No."; Code[20]) - { - Caption = 'Applies-to Bill No.'; - } field(7000001; "Cust. Bank Acc. Code"; Code[20]) { Caption = 'Cust. Bank Acc. Code'; @@ -1297,7 +1292,6 @@ table 112 "Sales Invoice Header" field(7000003; "Pay-at Code"; Code[10]) { Caption = 'Pay-at Code'; - TableRelation = "Customer Pmt. Address".Code where("Customer No." = field("Bill-to Customer No.")); ObsoleteReason = 'Address is taken from the fields Bill-to Address, Bill-to City, etc.'; ObsoleteState = Removed; ObsoleteTag = '25.0'; diff --git a/src/Layers/ES/BaseApp/Sales/History/SalesShipmentHeader.Table.al b/src/Layers/ES/BaseApp/Sales/History/SalesShipmentHeader.Table.al index 03a709d89b7..eee3c98aae3 100644 --- a/src/Layers/ES/BaseApp/Sales/History/SalesShipmentHeader.Table.al +++ b/src/Layers/ES/BaseApp/Sales/History/SalesShipmentHeader.Table.al @@ -446,7 +446,6 @@ table 110 "Sales Shipment Header" CustLedgEntry.SetCurrentKey("Document No."); CustLedgEntry.SetRange("Document Type", "Applies-to Doc. Type"); CustLedgEntry.SetRange("Document No.", "Applies-to Doc. No."); - CustLedgEntry.SetRange("Bill No.", "Applies-to Bill No."); OnLookupAppliesToDocNoOnAfterSetFilters(CustLedgEntry, Rec); PAGE.Run(0, CustLedgEntry); end; @@ -1001,10 +1000,6 @@ table 110 "Sales Shipment Header" UpdateBillToCustomerNo(); end; } - field(7000000; "Applies-to Bill No."; Code[20]) - { - Caption = 'Applies-to Bill No.'; - } field(7000001; "Cust. Bank Acc. Code"; Code[20]) { Caption = 'Cust. Bank Acc. Code'; @@ -1014,7 +1009,6 @@ table 110 "Sales Shipment Header" field(7000003; "Pay-at Code"; Code[10]) { Caption = 'Pay-at Code'; - TableRelation = "Customer Pmt. Address".Code where("Customer No." = field("Bill-to Customer No.")); ObsoleteReason = 'Address is taken from the fields Bill-to Address, Bill-to City, etc.'; ObsoleteState = Removed; ObsoleteTag = '25.0'; diff --git a/src/Layers/ES/BaseApp/Sales/Posting/SalesPost.Codeunit.al b/src/Layers/ES/BaseApp/Sales/Posting/SalesPost.Codeunit.al index 8bd1d63e528..c35d5efc50b 100644 --- a/src/Layers/ES/BaseApp/Sales/Posting/SalesPost.Codeunit.al +++ b/src/Layers/ES/BaseApp/Sales/Posting/SalesPost.Codeunit.al @@ -7,7 +7,6 @@ namespace Microsoft.Sales.Posting; using Microsoft.Assembly.Document; using Microsoft.Assembly.History; using Microsoft.Assembly.Posting; -using Microsoft.Bank.BankAccount; using Microsoft.CRM.Contact; using Microsoft.CRM.Opportunity; using Microsoft.CRM.Outlook; @@ -260,11 +259,8 @@ codeunit 80 "Sales-Post" CalledBy: Integer; PreviewMode: Boolean; TotalInvoiceAmountNegativeErr: Label 'The total amount for the invoice must be 0 or greater.'; - PaymentMethod: Record "Payment Method"; - SplitPayment: Codeunit "Invoice-Split Payment"; Text1100000: Label 'The Credit Memo doesn''t have a Corrected Invoice No. Do you want to continue?'; Text1100011: Label 'The posting process has been cancelled by the user.'; - CannotCreateCarteraDocErr: Label 'You do not have permissions to create Documents in Cartera.\Please, change the Payment Method.'; Text1100102: Label 'Posting to bal. account #5######\'; Text1100103: Label 'Creating documents #6######'; Text1100104: Label 'Corrective Invoice'; @@ -307,7 +303,6 @@ codeunit 80 "Sales-Post" SalesHeader: Record "Sales Header"; CustLedgEntry: Record "Cust. Ledger Entry"; TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; - CarteraSetup: Record "Cartera Setup"; DisableAggregateTableUpdate: Codeunit "Disable Aggregate Table Update"; UpdateAnalysisView: Codeunit "Update Analysis View"; UpdateItemAnalysisView: Codeunit "Update Item Analysis View"; @@ -364,20 +359,6 @@ codeunit 80 "Sales-Post" ProcessPosting(SalesHeader, SalesHeader2, TempDropShptPostBuffer, CustLedgEntry, EverythingInvoiced); - // Create Bills - if PaymentMethod.Get(SalesHeader."Payment Method Code") then - if (PaymentMethod."Create Bills" or PaymentMethod."Invoices to Cartera") and - (not CarteraSetup.ReadPermission) and SalesHeader.Invoice - then - Error(CannotCreateCarteraDocErr); - - if SalesHeader.Invoice and (SalesHeader."Bal. Account No." = '') and - (not SalesHeader.IsCreditDocType()) and CarteraSetup.ReadPermission - then begin - OnBeforeCreateCarteraBills(SalesHeader, CustLedgEntry, TotalSalesLine); - SplitPayment.SplitSalesInv(SalesHeader, CustLedgEntry, Window, SrcCode, GenJnlLineExtDocNo, GenJnlLineDocNo, -(TotalSalesLine."Amount Including VAT" - TotalSalesLine.Amount), HideProgressWindow); - end; - Clear(GenJnlPostLine); UpdateLastPostingNos(SalesHeader); @@ -568,6 +549,8 @@ codeunit 80 "Sales-Post" OnRunOnBeforeMakeInventoryAdjustment(SalesHeader, SalesInvHeader, GenJnlPostLine, ItemJnlPostLine, PreviewMode, SkipInventoryAdjustment); if not SkipInventoryAdjustment then MakeInventoryAdjustment(); + + OnAfterProcessPostingLines(SalesHeader, TotalSalesLine, CustLedgEntry, InvoicePostingParameters, SuppressCommit, EverythingInvoiced, Window, HideProgressWindow); end; /// @@ -6345,6 +6328,8 @@ codeunit 80 "Sales-Post" if SalesHeader."Bill-to Contact No." <> '' then if Contact.Get(SalesHeader."Bill-to Contact No.") then Contact.CheckIfPrivacyBlocked(true); + + OnAfterCheckPostRestrictions(SalesHeader); end; local procedure CheckCustBlockage(SalesHeader: Record "Sales Header"; CustCode: Code[20]; ExecuteDocCheck: Boolean) @@ -7859,47 +7844,16 @@ codeunit 80 "Sales-Post" OnAfterFindNotShippedLines(SalesHeader, TempSalesLine); end; +#if not CLEAN29 + [Obsolete('Not used anywhere now. New version of this preocedure moved to codeunit CRTSalesPost', '29.0')] [Scope('OnPrem')] procedure TestSalesEfects(SalesHeader: Record "Sales Header"; Cust: Record Customer) var - CustLedgEntry: Record "Cust. Ledger Entry"; - Text1100000: Label 'At least one document of %1 No. %2 is closed or in a Bill Group.'; - Text1100001: Label 'This will avoid the document to be settled.\'; - Text1100002: Label 'The posting process of %3 No. %4 will not settle any document.\'; - ShowError: Boolean; - Text1100003: Label 'Please remove the lines for the Bill Group before posting.'; - begin - ShowError := false; - if SalesHeader."Document Type" = SalesHeader."Document Type"::"Credit Memo" then begin - CustLedgEntry.SetCurrentKey("Document No.", "Document Type", "Customer No."); - CustLedgEntry.SetFilter("Document Type", '%1|%2', CustLedgEntry."Document Type"::Invoice, - CustLedgEntry."Document Type"::Bill); - CustLedgEntry.SetFilter("Document Situation", '<>%1', CustLedgEntry."Document Situation"::" "); - CustLedgEntry.SetRange("Customer No.", SalesHeader."Bill-to Customer No."); - CustLedgEntry.SetRange(Open, true); - - if CustLedgEntry.Find('-') then - repeat - if CustLedgEntry."Document Situation" <> CustLedgEntry."Document Situation"::Cartera then - if not ((CustLedgEntry."Document Situation" in - [CustLedgEntry."Document Situation"::"Closed Documents", - CustLedgEntry."Document Situation"::"Closed BG/PO"]) and - (CustLedgEntry."Document Status" = CustLedgEntry."Document Status"::Rejected)) - then - ShowError := true; - until CustLedgEntry.Next() = 0; - - if ShowError then - Error(Text1100000 + - Text1100001 + - Text1100002 + - Text1100003, - Format(CustLedgEntry."Document Type"), - Format(CustLedgEntry."Document No."), - Format(SalesHeader."Document Type"), - Format(SalesHeader."No.")); - end; + CRTSalesPost: Codeunit "CRT Sales-Post"; + begin + CRTSalesPost.TestSalesEffects(SalesHeader); end; +#endif local procedure CheckTrackingAndWarehouseForShip(SalesHeader: Record "Sales Header") Ship: Boolean var @@ -9551,6 +9505,7 @@ codeunit 80 "Sales-Post" /// Indicates whether the item journal line should be posted. /// Indicates whether warehouse shipment is involved. /// The warehouse receipt header. + /// Specifies the WarehouseShipmentHeader parameter. [IntegrationEvent(true, false)] local procedure OnAfterPostItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var WhseJnlPostLine: Codeunit "Whse. Jnl.-Register Line"; OriginalItemJnlLine: Record "Item Journal Line"; var ItemShptEntryNo: Integer; IsATO: Boolean; var TempHandlingSpecification: Record "Tracking Specification"; var TempATOTrackingSpecification: Record "Tracking Specification"; TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; ShouldPostItemJnlLine: Boolean; WhseShip: Boolean; WhseRcptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header") begin @@ -10445,6 +10400,25 @@ codeunit 80 "Sales-Post" begin end; +#if not CLEAN29 + internal procedure RunOnBeforeCreateCarteraBills(SalesHeader: Record "Sales Header"; var CustLedgerEntry: Record "Cust. Ledger Entry"; var TotalSalesLine: Record "Sales Line") + begin + OnBeforeCreateCarteraBills(SalesHeader, CustLedgerEntry, TotalSalesLine); + end; + + [Obsolete('Moved to codeunit "CRT Sales-Post"', '29.0')] + /// + /// Event raised by OnBeforeCreateCarteraBills. + /// + /// + /// Specifies the CustLedgerEntry parameter. + /// Specifies the TotalSalesLine parameter. + [IntegrationEvent(false, false)] + local procedure OnBeforeCreateCarteraBills(SalesHeader: Record "Sales Header"; var CustLedgerEntry: Record "Cust. Ledger Entry"; var TotalSalesLine: Record "Sales Line") + begin + end; +#endif + /// /// Raised before posting the job contract line for a sales document. /// @@ -10456,11 +10430,6 @@ codeunit 80 "Sales-Post" /// The sales line in additional currency. /// The posted sales invoice header. /// The posted sales credit memo header. - [IntegrationEvent(false, false)] - local procedure OnBeforeCreateCarteraBills(SalesHeader: Record "Sales Header"; var CustLedgerEntry: Record "Cust. Ledger Entry"; var TotalSalesLine: Record "Sales Line") - begin - end; - [IntegrationEvent(false, false)] local procedure OnBeforePostJobContractLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean; var JobContractLine: Boolean; var InvoicePostingInterface: Interface "Invoice Posting"; SalesLineACY: Record "Sales Line"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin @@ -12743,839 +12712,1970 @@ codeunit 80 "Sales-Post" begin end; + /// + /// Event raised by OnSumSalesLines2OnAfterDivideAmount. + /// + /// + /// Specifies the SalesLineQty parameter. + /// Specifies the QtyType parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnAfterDivideAmount(var OldSalesLine: Record "Sales Line"; var SalesLineQty: Decimal; QtyType: Option General,Invoicing,Shipping) begin end; + /// + /// Event raised by OnSumSalesLines2OnAfterCalcTotalAdjCostLCY. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnAfterCalcTotalAdjCostLCY(var TotalAdjCostLCY: decimal; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnSumSalesLines2OnBeforeCalcVATAmountLines. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the InsertSalesLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnBeforeCalcVATAmountLines(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; InsertSalesLine: Boolean; var TempVATAmountLine: Record "VAT Amount Line" temporary; QtyType: Option General,Invoicing,Shipping; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumSalesLines2OnBeforeNewSalesLineInsert. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnBeforeNewSalesLineInsert(var NewSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumSalesLines2SetFilter. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the InsertSalesLine parameter. + /// Specifies the QtyType parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2SetFilter(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; InsertSalesLine: Boolean; var QtyType: Option) begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnBeforePostTempWhseJnlLine2. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnBeforePostTempWhseJnlLine2(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterTestUpdatedSalesLine. + /// + /// + /// Specifies the EverythingInvoiced parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterTestUpdatedSalesLine(var SalesLine: Record "Sales Line"; var EverythingInvoiced: Boolean; SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineBeforeInitQtyToInvoice. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineBeforeInitQtyToInvoice(var TempSalesLine: Record "Sales Line" temporary; WhseShip: Boolean; WhseReceive: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitOutstanding(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitTempSalesLineQuantities. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitTempSalesLineQuantities(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterUpdateInvoicedValues. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterUpdateInvoicedValues(var TempSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; TempSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; TempSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterInsertSalesOrderHeader. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterInsertSalesOrderHeader(var SalesOrderLine: Record "Sales Line"; TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; WhseShip: Boolean; WhseReceive: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeUpdateInvoicedValues. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeUpdateInvoicedValues(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnSetDefaultQtyBlank. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesSetup parameter. + /// Specifies the SetDefaultQtyBlank parameter. [IntegrationEvent(true, false)] local procedure OnPostUpdateOrderLineOnSetDefaultQtyBlank(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; SalesSetup: Record "Sales & Receivables Setup"; var SetDefaultQtyBlank: Boolean) begin end; + /// + /// Event raised by OnCalcInvoiceOnAfterTempSalesLineSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvoiceOnAfterTempSalesLineSetFilters(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterCalcInvDiscount. + /// + /// + /// Specifies the TempWhseShptHeader parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterCalcInvDiscount(SalesHeader: Record "Sales Header"; TempWhseShptHeader: Record "Warehouse Shipment Header" temporary; PreviewMode: Boolean; var TempSalesLineGlobal: Record "Sales Line" temporary; SuppressCommit: Boolean; WhseReceive: Boolean; WhseShip: Boolean); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterReleaseSalesDocument. + /// + /// + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterReleaseSalesDocument(SalesHeader: Record "Sales Header"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeSetPostingFlags. + /// + /// + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the HideProgressWindow parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnBeforeSetPostingFlags(var SalesHeader: Record "Sales Header"; var TempSalesLineGlobal: Record "Sales Line" temporary; var ModifyHeader: Boolean; var HideProgressWindow: Boolean); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetPostingFlags. + /// + /// + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the ModifyHeader parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterSetPostingFlags(var SalesHeader: Record "Sales Header"; var TempSalesLineGlobal: Record "Sales Line" temporary; var ModifyHeader: Boolean); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetSourceCode. + /// + /// + /// Specifies the SourceCodeSetup parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetSourceCode(var SalesHeader: Record "Sales Header"; SourceCodeSetup: Record "Source Code Setup"; var SrcCode: Code[10]); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetPoszingFromWhseRef. + /// + /// + /// Specifies the InvtPickPutaway parameter. + /// Specifies the PostingFromWhseRef parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetPoszingFromWhseRef(var SalesHeader: Record "Sales Header"; var InvtPickPutaway: Boolean; var PostingFromWhseRef: Integer); begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCalcInvDiscount. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the RefreshNeeded parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCalcInvDiscount(var SalesHeader: Record "Sales Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseReceive: Boolean; WhseShip: Boolean; var RefreshNeeded: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCheckPostRestrictions. + /// + /// + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCheckPostRestrictions(var SalesHeader: Record "Sales Header"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnCheckAssosOrderLinesOnAfterSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssosOrderLinesOnAfterSetFilters(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnCheckSalesDocumentOnAfterCalcShouldCheckItemCharge. + /// + /// + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ShouldCheckItemCharge parameter. + /// Specifies the ModifyHeader parameter. [IntegrationEvent(true, false)] local procedure OnCheckSalesDocumentOnAfterCalcShouldCheckItemCharge(var SalesHeader: Record "Sales Header"; WhseReceive: Boolean; WhseShip: Boolean; var ShouldCheckItemCharge: Boolean; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForShipOnBeforeCheck. + /// + /// + /// Specifies the TempWhseShipmentHeader parameter. + /// Specifies the TempWhseReceiptHeader parameter. + /// Specifies the Ship parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForShipOnBeforeCheck(var SalesHeader: Record "Sales Header"; var TempWhseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWhseReceiptHeader: Record "Warehouse Receipt Header" temporary; var Ship: Boolean; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForReceiveOnBeforeCheck. + /// + /// + /// Specifies the TempWhseShipmentHeader parameter. + /// Specifies the TempWhseReceiptHeader parameter. + /// Specifies the Receive parameter. [IntegrationEvent(true, false)] local procedure OnCheckTrackingAndWarehouseForReceiveOnBeforeCheck(var SalesHeader: Record "Sales Header"; var TempWhseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWhseReceiptHeader: Record "Warehouse Receipt Header" temporary; var Receive: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingSpecificationOnAfterTempItemSalesLineLoop. + /// + /// [IntegrationEvent(false, false)] local procedure OnCheckTrackingSpecificationOnAfterTempItemSalesLineLoop(var TempItemSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckCustBlockageOnAfterTempLinesSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckCustBlockageOnAfterTempLinesSetFilters(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary); begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterTempPrepmtSalesLineSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterTempPrepmtSalesLineSetFilters(var TempPrepmtSalesLine: Record "Sales Line" temporary; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterGetSalesPrepmtAccount. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterGetSalesPrepmtAccount(var GLAcc: Record "G/L Account"; var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeGetSalesPrepmtAccount. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the GenPostingSetup parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeGetSalesPrepmtAccount(var GLAcc: Record "G/L Account"; var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header"; var GenPostingSetup: Record "General Posting Setup"; CompleteFunctionality: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterTempSalesLineSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempPrepmtSalesLine parameter. + /// Specifies the NextLineNo parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterTempSalesLineSetFilters(var TempSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempPrepmtSalesLine: Record "Sales Line" temporary; var NextLineNo: Integer) begin end; + /// + /// Event raised by OnFinalizePostingOnAfterUpdateItemChargeAssgnt. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnAfterUpdateItemChargeAssgnt(var SalesHeader: Record "Sales Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the TempItemChargeAssignmentSales parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the TempSalesLine parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the SalesPost parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeInsertTrackingSpecification(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)" temporary; SalesHeader: Record "Sales Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; EverythingInvoiced: Boolean; var TempSalesLine: Record "Sales Line" temporary; var TempSalesLineGlobal: Record "Sales Line" temporary; SalesPost: Codeunit "Sales-Post") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeCreateOutboxSalesTrans. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeCreateOutboxSalesTrans(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; EverythingInvoiced: Boolean; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeDeleteApprovalEntries. + /// + /// + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeDeleteApprovalEntries(var SalesHeader: Record "Sales Header"; var EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeGenJnlPostPreviewThrowError. + /// + /// + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeGenJnlPostPreviewThrowError(SalesHeader: Record "Sales Header"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforePost. + /// + /// + /// Specifies the PurchOrderLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforePost(var ItemJournalLine: Record "Item Journal Line"; PurchOrderLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostATOOnBeforePostedATOLinkInsert. + /// + /// + /// Specifies the AssemblyHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostATOOnBeforePostedATOLinkInsert(var PostedATOLink: Record "Posted Assemble-to-Order Link"; var AssemblyHeader: Record "Assembly Header"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostATOAssocItemJnlLineOnBeforeRemainingPost. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the PostedATOLink parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the ItemLedgShptEntryNo parameter. [IntegrationEvent(false, false)] local procedure OnPostATOAssocItemJnlLineOnBeforeRemainingPost(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var PostedATOLink: Record "Posted Assemble-to-Order Link"; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal; var ItemLedgShptEntryNo: Integer) begin end; + /// + /// Event raised by OnPostDropOrderShipmentOnAfterUpdateBlanketOrderLine. + /// + /// + /// Specifies the PurchOrderLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostDropOrderShipmentOnAfterUpdateBlanketOrderLine(PurchOrderHeader: Record "Purchase Header"; PurchOrderLine: Record "Purchase Line"; TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesShptHeader: Record "Sales Shipment Header"; SalesHeader: Record "Sales Header"; PurchRcptHeader: Record "Purch. Rcpt. Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyDocumentFields. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header") begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCalcShouldPostItemJnlLineItemCharges. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the ShouldPostItemJnlLineItemCharges parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCalcShouldPostItemJnlLineItemCharges(SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var ShouldPostItemJnlLineItemCharges: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterPrepareItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the RemAmt parameter. + /// Specifies the RemDiscAmt parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterPrepareItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; WhseShip: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var QtyToBeShipped: Decimal; TrackingSpecification: Record "Tracking Specification"; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; var QtyToBeShippedBase: Decimal; var RemAmt: Decimal; var RemDiscAmt: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyItemCharge. + /// + /// + /// Specifies the TempItemChargeAssgntSales parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyItemCharge(var ItemJournalLine: Record "Item Journal Line"; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeIsJobContactLineCheck. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the ShouldPostItemJnlLine parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the QtyToBeShipped parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeIsJobContactLineCheck(var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var ShouldPostItemJnlLine: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; QtyToBeShipped: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck(var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforePostItemJnlLineWhseLine. + /// + /// + /// Specifies the TempWhseJnlLine parameter. + /// Specifies the TempWhseTrackingSpecification parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforePostItemJnlLineWhseLine(var ItemJnlLine: Record "Item Journal Line"; var TempWhseJnlLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeTransferReservToItemJnlLine. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the CheckApplFromItemEntry parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeShippedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeTransferReservToItemJnlLine(SalesLine: Record "Sales Line"; ItemJnlLine: Record "Item Journal Line"; var CheckApplFromItemEntry: Boolean; var TrackingSpecification: Record "Tracking Specification"; QtyToBeShippedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeCopyTrackingFromSpec. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeCopyTrackingFromSpec(TrackingSpecification: Record "Tracking Specification"; var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; IsATO: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine(var ItemChargeSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemJnlLinePrepareJournalLineOnBeforeCalcItemJnlAmounts. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLinePrepareJournalLineOnBeforeCalcItemJnlAmounts(var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; IsATO: Boolean) begin end; + /// + /// Event raised by OnPostItemChargeOnBeforePostItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the TempItemChargeAssgntSales parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnBeforePostItemJnlLine(var SalesLineToPost: Record "Sales Line"; var SalesLine: Record "Sales Line"; QtyToAssign: Decimal; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnAfterCopyToItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the GeneralLedgerSetup parameter. + /// Specifies the QtyToInvoice parameter. + /// Specifies the TempItemChargeAssignmentSales parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnAfterCopyToItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var SalesLine: Record "Sales Line"; GeneralLedgerSetup: Record "General Ledger Setup"; QtyToInvoice: Decimal; var TempItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)" temporary) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnAfterTempTrackingSpecificationInvSetFilters. + /// + /// + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the TempTrackingSpecificationInv parameter. + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the TotalSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnAfterTempTrackingSpecificationInvSetFilters(SalesHeader: record "Sales Header"; var ItemJnlLine2: record "Item Journal Line"; var TempTrackingSpecificationInv: Record "Tracking Specification" temporary; SalesLine: Record "Sales Line"; var IsHandled: Boolean; var TotalSalesLineLCY: Record "Sales Line"; var TotalSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnBeforeTestJobNo. + /// + /// + /// Specifies the SkipTestJobNo parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnBeforeTestJobNo(SalesLine: Record "Sales Line"; var SkipTestJobNo: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnBeforeLastRunWithCheck. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnBeforeLastRunWithCheck(NonDistrItemJnlLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnBeforeRunWithCheck. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnBeforeRunWithCheck(ItemJnlLine2: Record "Item Journal Line"; var IsHandled: Boolean; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerShptOnBeforeTestJobNo. + /// + /// + /// Specifies the SkipTestJobNo parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerShptOnBeforeTestJobNo(SalesShipmentLine: Record "Sales Shipment Line"; var SkipTestJobNo: Boolean; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerShptOnAfterCheckItemChargePerShpt. + /// + /// + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the DistributeCharge parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerShptOnAfterCheckItemChargePerShpt(SalesShipmentLine: Record "Sales Shipment Line"; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; DistributeCharge: Boolean; var IsHandled: Boolean; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerShptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the DistributeCharge parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerShptOnAfterCalcDistributeCharge(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesShptLine: Record "Sales Shipment Line"; TempItemLedgEntry: Record "Item Ledger Entry" temporary; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; var DistributeCharge: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the ReturnRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the DistributeCharge parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; ReturnRcptLine: Record "Return Receipt Line"; TempItemLedgEntry: Record "Item Ledger Entry" temporary; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; var DistributeCharge: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRetRcptOnBeforeTestFieldJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetRcptOnBeforeTestFieldJobNo(ReturnReceiptLine: Record "Return Receipt Line"; var IsHandled: Boolean; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingLineOnAfterRetrieveInvoiceSpecification. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingLineOnAfterRetrieveInvoiceSpecification(var SalesLine: Record "Sales Line"; var TempInvoicingSpecification: Record "Tracking Specification" temporary; var TrackingSpecificationExists: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnAfterSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnAfterSetFilters(var SalesShipmentLine: Record "Sales Shipment Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnAfterUpdateSalesShptLineFields. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnAfterUpdateSalesShptLineFields(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the HasATOShippedNotInvoiced parameter. + /// Specifies the ShouldAdjustQuantityRounding parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding(SalesShptLine: Record "Sales Shipment Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; HasATOShippedNotInvoiced: Boolean; var ShouldAdjustQuantityRounding: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeShipmentInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the ItemJnlRollRndg parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(true, false)] local procedure OnPostItemTrackingForShipmentOnBeforeShipmentInvoiceErr(SalesLine: Record "Sales Line"; var IsHandled: Boolean; SalesHeader: Record "Sales Header"; var ItemJnlRollRndg: Boolean; TrackingSpecificationExists: Boolean; var TempTrackingSpecification: Record "Tracking Specification" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeReturnReceiptInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the ItemJnlRollRndg parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(true, false)] local procedure OnPostItemTrackingForShipmentOnBeforeReturnReceiptInvoiceErr(SalesLine: Record "Sales Line"; var IsHandled: Boolean; SalesHeader: Record "Sales Header"; var ItemJnlRollRndg: Boolean; TrackingSpecificationExists: Boolean; var TempTrackingSpecification: Record "Tracking Specification" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnAfterSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnAfterSetFilters(var ReturnReceiptLine: Record "Return Receipt Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertCrMemoLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertCrMemoLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean; xSalesLine: Record "Sales Line"; SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertInvoiceLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the ShouldInsertInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertInvoiceLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean; xSalesLine: Record "Sales Line"; SalesInvHeader: Record "Sales Invoice Header"; var ShouldInsertInvoiceLine: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertReturnReceiptLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertReturnReceiptLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertShipmentLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesLineACY parameter. + /// Specifies the DocType parameter. + /// Specifies the DocNo parameter. + /// Specifies the ExtDocNo parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertShipmentLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean; SalesLineACY: Record "Sales Line"; DocType: Option; DocNo: Code[20]; ExtDocNo: Code[35]) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterSetEverythingInvoiced. + /// + /// + /// Specifies the EverythingInvoiced parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterSetEverythingInvoiced(SalesLine: Record "Sales Line"; var EverythingInvoiced: Boolean; var IsHandled: Boolean; SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterRoundAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterRoundAmount(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; GenJnlLineDocNo: Code[20]) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeTestJobNo(SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterPostItemTrackingLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempPostedATOLink parameter. [IntegrationEvent(true, false)] local procedure OnPostSalesLineOnAfterPostItemTrackingLine(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterTestSalesLine. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the WhseShptHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CostBaseAmount parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterTestSalesLine(var SalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header"; var WhseShptHeader: Record "Warehouse Shipment Header"; WhseShip: Boolean; PreviewMode: Boolean; var CostBaseAmount: Decimal) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforePostItemTrackingLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(true, false)] local procedure OnPostSalesLineOnBeforePostItemTrackingLine(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var ItemLedgShptEntryNo: Integer; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal; GenJnlLineDocNo: Code[20]; SrcCode: Code[10]; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeTestUnitOfMeasureCode. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeTestUnitOfMeasureCode(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterAdjustPrepmtAmountLCY. + /// + /// + /// Specifies the xSalesLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterAdjustPrepmtAmountLCY(var SalesLine: record "Sales Line"; var xSalesLine: record "Sales Line"; TempTrackingSpecification: record "Tracking Specification" temporary; SalesHeader: record "Sales Header") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterInsertReturnReceiptLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the ReturnRcptHeader parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the SalesShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterInsertReturnReceiptLine(var SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var xSalesLine: Record "Sales Line"; ReturnRcptHeader: Record "Return Receipt Header"; RoundingLineInserted: Boolean; var TempTrackingSpecification: Record "Tracking Specification" temporary; var ItemLedgShptEntryNo: Integer; SalesShipmentHeader: Record "Sales Shipment Header") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterGetSalesOrderLine. + /// + /// + /// Specifies the SalesShptLine parameter. + /// Specifies the SalesOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterGetSalesOrderLine(var TempSalesLine: Record "Sales Line" temporary; SalesShptLine: Record "Sales Shipment Line"; SalesOrderLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeCalcQuantityInvoiced. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeCalcQuantityInvoiced(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnAfterGetSalesOrderLine. + /// + /// + /// Specifies the ReturnRcptLine parameter. + /// Specifies the SalesOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnAfterGetSalesOrderLine(var TempSalesLine: Record "Sales Line" temporary; ReturnRcptLine: Record "Return Receipt Line"; SalesOrderLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeInitQtyToInvoice(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnAfterModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnAfterModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeCalcQuantityInvoiced. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeCalcQuantityInvoiced(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnProcessAssocItemJnlLineOnBeforeTempDropShptPostBufferInsert. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnProcessAssocItemJnlLineOnBeforeTempDropShptPostBufferInsert(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnProcessAssocItemJnlLineOnBeforePostAssocItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnProcessAssocItemJnlLineOnBeforePostAssocItemJnlLine(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnRoundAmountOnBeforeIncrAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineQty parameter. + /// Specifies the TotalSalesLine parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnBeforeIncrAmount(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineQty: Decimal; var TotalSalesLine: Record "Sales Line"; var TotalSalesLineLCY: Record "Sales Line"; var xSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforeCheckTotalInvoiceAmount. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeCheckTotalInvoiceAmount(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnRunOnBeforeFinalizePosting. + /// + /// + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the ReturnReceiptHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeFinalizePosting(var SalesHeader: Record "Sales Header"; var SalesShipmentHeader: Record "Sales Shipment Header"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var ReturnReceiptHeader: Record "Return Receipt Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; CommitIsSuppressed: Boolean; GenJnlLineExtDocNo: Code[35]; var EverythingInvoiced: Boolean; GenJnlLineDocNo: Code[20]; SrcCode: Code[10]; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforePostSalesLineEndLoop. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the LastLineRetrieved parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the RecSalesHeader parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the ReturnReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforePostSalesLineEndLoop(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var LastLineRetrieved: Boolean; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; RecSalesHeader: Record "Sales Header"; xSalesLine: Record "Sales Line"; var SalesShipmentHeader: Record "Sales Shipment Header"; var ReturnReceiptHeader: Record "Return Receipt Header") begin end; + /// + /// Event raised by OnGetATOItemLedgEntriesNotInvoicedOnBeforeItemLedgEntryNotInvoicedInsert. + /// + /// [IntegrationEvent(false, false)] local procedure OnGetATOItemLedgEntriesNotInvoicedOnBeforeItemLedgEntryNotInvoicedInsert(var ItemLedgEntry: Record "Item Ledger Entry") begin end; + /// + /// Event raised by OnGetPostedDocumentRecordElseCase. + /// + /// + /// Specifies the PostedSalesDocumentVariant parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnGetPostedDocumentRecordElseCase(SalesHeader: Record "Sales Header"; var PostedSalesDocumentVariant: Variant; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnGetSalesLinesOnAfterFillTempLines. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnGetSalesLinesOnAfterFillTempLines(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostItemLineOnAfterMakeSalesLineToShip. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempPostedATOLink parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemLineOnAfterMakeSalesLineToShip(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemLineOnBeforeMakeSalesLineToShip. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempPostedATOLink parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the IsHandled parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the ReturnReceiptHeader parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the TempHandlingSpecificationInv parameter. + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnPostItemLineOnBeforeMakeSalesLineToShip(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var ItemLedgShptEntryNo: Integer; var IsHandled: Boolean; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; ReturnReceiptHeader: Record "Return Receipt Header"; var TempHandlingSpecification: Record "Tracking Specification" temporary; var TempHandlingSpecificationInv: Record "Tracking Specification" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnPostItemLineOnBeforePostItemInvoiceLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempPostedATOLink parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemLineOnBeforePostItemInvoiceLine(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterPostItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnAfterPostItemJnlLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargeLineOnAfterTempItemChargeAssgntSalesLoop. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineParam parameter. [IntegrationEvent(true, false)] local procedure OnPostItemChargeLineOnAfterTempItemChargeAssgntSalesLoop(var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineParam: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargeLineOnBeforePostItemCharge. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeLineOnBeforePostItemCharge(var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforeReturnRcptLineModify. + /// + /// + /// Specifies the ReturnRcptLine parameter. + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforeReturnRcptLineModify(SalesHeader: Record "Sales Header"; var ReturnRcptLine: Record "Return Receipt Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforeAdjustQuantityRounding. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the ShouldAdjustQuantityRounding parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforeAdjustQuantityRounding(ReturnRcptLine: Record "Return Receipt Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; var ShouldAdjustQuantityRounding: Boolean) begin end; + /// + /// Event raised by OnReleaseSalesDocumentOnBeforeSetStatus. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SavedStatus parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the SuppressCommit parameter. [IntegrationEvent(false, false)] local procedure OnReleaseSalesDocumentOnBeforeSetStatus(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; SavedStatus: Enum "Sales Document Status"; PreviewMode: Boolean; SuppressCommit: Boolean); begin end; + /// + /// Event raised by OnRoundAmountOnAfterAssignSalesLines. + /// + /// + /// Specifies the SalesLineACY parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TotalSalesLines parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnAfterAssignSalesLines(var xSalesLine: Record "Sales Line"; var SalesLineACY: Record "Sales Line"; SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var TotalSalesLines: Record "Sales Line"; var TotalSalesLineLCY: Record "Sales Line"; var SalesLine: Record "Sales Line"); begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification. + /// + /// [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification(var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSendICDocumentOnBeforeSetICStatus. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSendICDocumentOnBeforeSetICStatus(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSendPostedDocumentRecordElseCase. + /// + /// + /// Specifies the DocumentSendingProfile parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSendPostedDocumentRecordElseCase(SalesHeader: Record "Sales Header"; var DocumentSendingProfile: Record "Document Sending Profile"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestSalesLineOnAfterTestSalesLineJob. + /// + /// [IntegrationEvent(false, false)] local procedure OnTestSalesLineOnAfterTestSalesLineJob(var SalesLine: record "Sales Line") begin end; + /// + /// Event raised by OnTestSalesLineOnAfterCalcShouldTestReturnQty. + /// + /// + /// Specifies the ShouldTestReturnQty parameter. [IntegrationEvent(false, false)] local procedure OnTestSalesLineOnAfterCalcShouldTestReturnQty(SalesLine: Record "Sales Line"; var ShouldTestReturnQty: Boolean) begin end; + /// + /// Event raised by OnBeforeTestGenPostingGroups. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestGenPostingGroups(var SalesLine: record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateSalesLineBeforePostOnAfterPostJobContractLine. + /// + /// + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateSalesLineBeforePostOnAfterPostJobContractLine(SalesInvoiceHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnUpdateAssosOrderOnAfterPurchOrderHeaderModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderOnAfterPurchOrderHeaderModify(var PurchOrderHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterModifyPurchLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterModifyPurchLine(var PurchOrderLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnUpdateAssocOrderOnBeforeModifyPurchLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnBeforeModifyPurchLine(var PurchOrderLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnAfterReleasePurchaseDocument. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnAfterReleasePurchaseDocument(var PurchOrderHeader: Record "Purchase Header"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeReleasePurchaseDocument. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeReleasePurchaseDocument(var PurchOrderHeader: Record "Purchase Header"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateAfterPostingOnBeforeFindSetForUpdate. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAfterPostingOnBeforeFindSetForUpdate(var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheck. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheck(var BlanketOrderSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheckSellToCustomerNo. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheckSellToCustomerNo(var BlanketOrderSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeInitOutstanding(var BlanketOrderSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnUpdateInvoicedQtyOnShipmentLineOnBeforeModifySalesShptLine. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnUpdateInvoicedQtyOnShipmentLineOnBeforeModifySalesShptLine(var SalesShptLine: Record "Sales Shipment Line"; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnAfterInitAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterInitAmount(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnAfterInitLineDiscountAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterInitLineDiscountAmount(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineRemainderModify. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineRemainderModify(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency) begin end; + /// + /// Event raised by OnBeforeCalcVATBaseAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcVATBaseAmount(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostUpdateInvoiceLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateInvoiceLine(var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostUpdateReturnReceiptLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostUpdateReturnReceiptLine(var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertTrackingSpecification(SalesHeader: Record "Sales Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSendPostedDocumentRecord. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the DocumentSendingProfile parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSendPostedDocumentRecord(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var DocumentSendingProfile: Record "Document Sending Profile") begin end; + /// + /// Event raised by OnBeforeCheckCorrectedInvoice. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckCorrectedInvoice(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterPostItemChargeLine. + /// + /// + /// Specifies the SalesLineACY parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargeLine(var SalesLine: Record "Sales Line"; SalesLineACY: Record "Sales Line") begin end; + /// + /// Event raised by OnDeleteAfterPostingOnAfterDeleteLinks. + /// + /// [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnAfterDeleteLinks(var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnDeleteAfterPostingOnBeforeDeleteSalesHeader. + /// + /// [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnBeforeDeleteSalesHeader(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnDeleteAfterPostingOnBeforeDeleteLinks. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnBeforeDeleteLinks(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforeCheckAndUpdate. + /// + /// [IntegrationEvent(false, false)] local procedure OnRunOnBeforeCheckAndUpdate(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateWonOpportunitiesOnBeforeOpportunityModify. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the Opportunity parameter. [IntegrationEvent(false, false)] local procedure OnUpdateWonOpportunitiesOnBeforeOpportunityModify(var SalesHeader: Record "Sales Header"; SalesInvoiceHeader: Record "Sales Invoice Header"; var Opportunity: Record Opportunity) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCheckShip. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCheckShip(var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnBeforeUpdateReceiveAndCheckIfInvPutawayExists. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateReceiveAndCheckIfInvPutawayExists(var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnModifyTempLineOnAfterSalesLineModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnAfterSalesLineModify(var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnModifyTempLineOnBeforeTransferFields. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnBeforeTransferFields(var SalesLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnModifyTempLineOnBeforeSalesLineModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnBeforeSalesLineModify(var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesLine(SalesLine: Record "Sales Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesShipmentLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesShipmentLine(SalesShipmentLine: Record "Sales Shipment Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnReceiptLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnReceiptLine(ReturnReceiptLine: Record "Return Receipt Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateSalesLineDimSetIDFromAppliedEntry. + /// + /// + /// Specifies the ItemLedgEntry parameter. + /// Specifies the DimSetID parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateSalesLineDimSetIDFromAppliedEntry(var SalesLineToPost: Record "Sales Line"; var ItemLedgEntry: Record "Item Ledger Entry"; DimSetID: array[10] of Integer) begin end; + /// + /// Event raised by OnDeleteAfterPostingOnAfterSetupSalesHeader. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnAfterSetupSalesHeader(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnDeleteAfterPostingOnAfterSalesLineDeleteAll. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnAfterSalesLineDeleteAll(SalesHeader: Record "Sales Header"; SalesInvoiceHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; CommitIsSuppressed: Boolean; EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentConditionOnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentConditionOnBeforeUpdateBlanketOrderLine(var TempSalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostResJnlLineOnAfterInit. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostResJnlLineOnAfterInit(var ResJnlLine: Record "Res. Journal Line"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists. + /// + /// + /// Specifies the ReplacePostingDate parameter. + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the VATDateExists parameter. + /// Specifies the ReplaceVATDate parameter. + /// Specifies the VATDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists(var PostingDateExists: Boolean; var ReplacePostingDate: Boolean; var ReplaceDocumentDate: Boolean; var PostingDate: Date; var SalesHeader: Record "Sales Header"; var ModifyHeader: Boolean; var VATDateExists: Boolean; var ReplaceVATDate: Boolean; var VATDate: Date) begin end; + /// + /// Event raised by OnBeforeValidateICPartnerBusPostingGroups. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeValidateICPartnerBusPostingGroups(var TempICGenJnlLine: Record "Gen. Journal Line" temporary; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterGetCurrency. + /// + /// + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetCurrency(CurrencyCode: Code[10]; var Currency: Record Currency) begin end; + /// + /// Event raised by OnBeforePostItemLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemLine(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean; var TempSalesLineGlobal: Record "Sales Line" temporary; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnBeforePostItemChargeLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargeLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct(var TempPrepmtSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnAfterInsertReturnReceiptHeader. + /// + /// + /// Specifies the ReturnReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertReturnReceiptHeader(var SalesHeader: Record "Sales Header"; var ReturnReceiptHeader: Record "Return Receipt Header") begin @@ -13583,384 +14683,888 @@ codeunit 80 "Sales-Post" #if not CLEAN27 [Obsolete('This event is never raised.', '27.0')] + /// + /// Event raised by OnAfterGetAmountsForDeferral. + /// + /// + /// Specifies the AmtToDefer parameter. + /// Specifies the AmtToDeferACY parameter. + /// Specifies the DeferralAccount parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetAmountsForDeferral(SalesLine: Record "Sales Line"; var AmtToDefer: Decimal; var AmtToDeferACY: Decimal; var DeferralAccount: Code[20]) begin end; #endif + /// + /// Event raised by OnPostJobContractLineBeforeTestFields. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostJobContractLineBeforeTestFields(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertCrMemoHeaderOnAfterCalcShouldProcessAsReturnOrder. + /// + /// + /// Specifies the ShouldProcessAsReturnOrder parameter. [IntegrationEvent(false, false)] local procedure OnInsertCrMemoHeaderOnAfterCalcShouldProcessAsReturnOrder(SalesHeader: Record "Sales Header"; var ShouldProcessAsReturnOrder: Boolean) begin end; + /// + /// Event raised by OnUpdateQtyToBeInvoicedForShipmentOnAfterSetQtyToBeInvoiced. + /// + /// + /// Specifies the HasATOShippedNotInvoiced parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateQtyToBeInvoicedForShipmentOnAfterSetQtyToBeInvoiced(TrackingSpecificationExists: Boolean; HasATOShippedNotInvoiced: Boolean; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnBeforePostItemJnlLineItemCharges. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLineItemCharges(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeInitOutstanding(var SalesOrderLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeGetATOItemLedgEntriesNotInvoiced. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeGetATOItemLedgEntriesNotInvoiced(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckSalesDocumentOnBeforeCheckDueDate. + /// + /// + /// Specifies the ShouldCheckDueDate parameter. [IntegrationEvent(false, false)] local procedure OnCheckSalesDocumentOnBeforeCheckDueDate(var SalesHeader: Record "Sales Header"; var ShouldCheckDueDate: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineTrackingOnAfterCalcShouldInsertTrkgSpecInv. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the ShouldInsertTrkgSpecInv parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineTrackingOnAfterCalcShouldInsertTrkgSpecInv(var SalesLine: Record "Sales Line"; QtyToBeInvoiced: Decimal; var ShouldInsertTrkgSpecInv: Boolean) begin end; + /// + /// Event raised by OnUpdateSalesLineBeforePostOnBeforeGetUnitCost. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateSalesLineBeforePostOnBeforeGetUnitCost(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcItemJnlAmountsFromQtyToBeInvoiced. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcItemJnlAmountsFromQtyToBeInvoiced(var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; QtyToBeInvoiced: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForReceiveOnAfterSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForReceiveOnAfterSetFilters(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnRunOnBeforeCalcVATAmountLines. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeCalcVATAmountLines(var TempSalesLineGlobal: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestSalesLineOnBeforeTestFieldQtyToShip. + /// + /// + /// Specifies the ShouldTestQtyToShip parameter. [IntegrationEvent(false, false)] local procedure OnTestSalesLineOnBeforeTestFieldQtyToShip(SalesLine: Record "Sales Line"; var ShouldTestQtyToShip: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertShipmentLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertShipmentLine(var SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnIsEndLoopForShippedNotInvoicedOnBeforeExit. + /// + /// + /// Specifies the SalesShptLine parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnIsEndLoopForShippedNotInvoicedOnBeforeExit(SalesLine: Record "Sales Line"; SalesShptLine: Record "Sales Shipment Line"; RemQtyToBeInvoiced: Decimal; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLinePrepareJournalLineOnBeforeCalcQuantities. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLinePrepareJournalLineOnBeforeCalcQuantities(var ItemJnlLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; QtyToBeShipped: Decimal; QtyToBeShippedBase: Decimal; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean; IsATO: Boolean) begin end; + /// + /// Event raised by OnBeforeInvoiceRounding. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInvoiceRounding(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyTrackingFromSpec. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyTrackingFromSpec(var ItemJnlLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; QtyToBeShipped: Decimal; IsATO: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeValidateQtyToInvoice. + /// + /// + /// Specifies the ShouldValidateQtyToInvoice parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeValidateQtyToInvoice(var SalesHeader: Record "Sales Header"; var ShouldValidateQtyToInvoice: Boolean; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnAfterSetFilterTempSalesLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnAfterSetFilterTempSalesLine(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckTrackingSpecificationOnBeforeGetItemTrackingSettings. + /// + /// + /// Specifies the ItemTrackingSetup parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingSpecificationOnBeforeGetItemTrackingSettings(var TempItemSalesLine: Record "Sales Line" temporary; var ItemTrackingSetup: Record "Item Tracking Setup"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForReceipt. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForReceipt(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineTrackingOnBeforeInsertTempTrkgSpec. + /// + /// + /// Specifies the TempTrackingSpec parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineTrackingOnBeforeInsertTempTrkgSpec(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempTrackingSpec: Record "Tracking Specification" temporary; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInsertInvoiceHeaderOnBeforeCheckDocumentType. + /// + /// + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesSetup parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertInvoiceHeaderOnBeforeCheckDocumentType(SalesHeader: Record "Sales Header"; var SalesInvHeader: Record "Sales Invoice Header"; SalesSetup: Record "Sales & Receivables Setup"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnBeforePostBalancingEntry. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the TotalSalesLine parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnBeforePostBalancingEntry(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var TotalSalesLine: Record "Sales Line"; var TotalSalesLineLCY: Record "Sales Line"; SuppressCommit: Boolean; PreviewMode: Boolean; InvoicePostingParameters: Record "Invoice Posting Parameters"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin end; + /// + /// Event raised by OnBeforeFindNotShippedLines. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeFindNotShippedLines(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforePostSalesLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesLineACY parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforePostSalesLine(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; SrcCode: Code[10]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var IsHandled: Boolean; SalesLineACY: Record "Sales Line") begin end; + /// + /// Event raised by OnAfterUpdateInvoiceRounding. + /// + /// + /// Specifies the TotalSalesLine parameter. + /// Specifies the SalesLine parameter. + /// Specifies the Currency parameter. + /// Specifies the BiggestLineNo parameter. + /// Specifies the LastLineRetrieved parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the RoundingLineNo parameter. + /// Specifies the UseTempData parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoiceRounding(var SalesHeader: Record "Sales Header"; var TotalSalesLine: Record "Sales Line"; var SalesLine: Record "Sales Line"; var Currency: Record Currency; var BiggestLineNo: Integer; var LastLineRetrieved: Boolean; var RoundingLineInserted: Boolean; var RoundingLineNo: Integer; UseTempData: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterSetFilters(var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostItemLineOnBeforePostItemJnlLineForInvoiceDoc. + /// + /// + /// Specifies the SalesLineToShip parameter. + /// Specifies the Ship parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the TempTrackingSpecificationInv parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. + /// Specifies the QtyToInvoice parameter. + /// Specifies the TempAssembletoOrderLink parameter. [IntegrationEvent(true, false)] local procedure OnPostItemLineOnBeforePostItemJnlLineForInvoiceDoc(SalesHeader: Record "Sales Header"; var SalesLineToShip: Record "Sales Line"; Ship: Boolean; var ItemLedgShptEntryNo: Integer; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; SalesShptHeader: Record "Sales Shipment Header"; var TempHandlingSpecification: Record "Tracking Specification" temporary; var TempTrackingSpecificationInv: Record "Tracking Specification" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean; QtyToInvoice: Decimal; TempAssembletoOrderLink: Record "Posted Assemble-to-Order Link" temporary) begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForReceipt. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the QtyToInvoiceBaseInTrackingSpec parameter. + /// Specifies the ShouldPostItemTrackingForReceipt parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForReceipt(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; RemQtyToBeInvoiced: Decimal; QtyToInvoiceBaseInTrackingSpec: Decimal; var ShouldPostItemTrackingForReceipt: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForShipment. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the QtyToInvoiceBaseInTrackingSpec parameter. + /// Specifies the ShouldPostItemTrackingForShipment parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForShipment(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; RemQtyToBeInvoiced: Decimal; QtyToInvoiceBaseInTrackingSpec: Decimal; var ShouldPostItemTrackingForShipment: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeGetQuantityShipped. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeGetQuantityShipped(var TempSalesLine: Record "Sales Line"; var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeGetReturnQtyReceived. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeGetReturnQtyReceived(var TempSalesLine: Record "Sales Line"; var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldProcessReceipt. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the ShouldProcessReceipt parameter. + /// Specifies the ItemJnlRollRndg parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldProcessReceipt(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var ShouldProcessReceipt: Boolean; var ItemJnlRollRndg: Boolean) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeInitOutstanding(var SalesOrderLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnBeforeBalAccountNoWindowUpdate. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnBeforeBalAccountNoWindowUpdate(HideProgressWindow: Boolean; var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterCalcShouldCalcPrepmtAmounts. + /// + /// + /// Specifies the ShouldCalcPrepmtAmounts parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterCalcShouldCalcPrepmtAmounts(var TempSalesLine: Record "Sales Line" temporary; var ShouldCalcPrepmtAmounts: Boolean) begin end; + /// + /// Event raised by OnAfterGetGeneralPostingSetup. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetGeneralPostingSetup(var GeneralPostingSetup: Record "General Posting Setup"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnCheckItemTrackingQuantityOnDocumentTypeCaseElse. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckItemTrackingQuantityOnDocumentTypeCaseElse(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnSetCommitBehavior. + /// + /// [IntegrationEvent(false, false)] local procedure OnSetCommitBehavior(var ErrorOnCommit: Boolean) begin end; #if not CLEAN27 + /// + /// Event raised by OnSetPostingPreviewDocumentNo. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnSetPostingPreviewDocumentNo(var PreviewDocumentNo: Code[20]; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnGetPostingPreviewDocumentNos. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnGetPostingPreviewDocumentNos(var PreviewDocumentNos: List of [Code[20]]) begin end; #endif + /// + /// Event raised by OnPostInvoiceOnAfterPostLines. + /// + /// + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnAfterPostLines(var SalesHeader: Record "Sales Header"; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeAssignQtyToInvoice. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeAssignQtyToInvoice(var TempSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeItemLedgerEntryExist. + /// + /// + /// Specifies the ShipOrReceive parameter. + /// Specifies the HasItemLedgerEntry parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeItemLedgerEntryExist(var SalesLine: Record "Sales Line"; ShipOrReceive: Boolean; var HasItemLedgerEntry: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterCalcShouldInsertInvoiceHeader. + /// + /// + /// Specifies the ShouldInsertInvoiceHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterCalcShouldInsertInvoiceHeader(var SalesHeader: Record "Sales Header"; var ShouldInsertInvoiceHeader: Boolean) begin end; + /// + /// Event raised by OnInsertShptEntryRelationOnAfterItemEntryRelationInsert. + /// + /// + /// Specifies the ItemEntryRelation parameter. + /// Specifies the xSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertShptEntryRelationOnAfterItemEntryRelationInsert(SalesShipmentLine: Record "Sales Shipment Line"; var ItemEntryRelation: Record "Item Entry Relation"; xSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnBeforePostItemChargePerRetRcpt. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempItemChargeAssignmentSales parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRetRcpt(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeSetInvoiceFields. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the ShouldSetInvoiceFields parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeSetInvoiceFields(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line"; var ShouldSetInvoiceFields: Boolean) begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeError. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the InvoiceEverything parameter. [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeError(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var InvoiceEverything: Boolean) begin end; + /// + /// Event raised by OnBeforeGetSalesLineAdjCostLCY. + /// + /// + /// Specifies the QtyType parameter. + /// Specifies the AdjCostLCY parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetSalesLineAdjCostLCY(SalesLine2: Record "Sales Line"; QtyType: Option General,Invoicing,Shipping; AdjCostLCY: Decimal; var Result: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeShouldTestGetShipmentPPmtAmtToDeduct. + /// + /// + /// Specifies the CompleteFunctionality parameter. + /// Specifies the ShouldTestGetShipmentPPmtAmtToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeShouldTestGetShipmentPPmtAmtToDeduct(SalesHeader: Record "Sales Header"; CompleteFunctionality: Boolean; var ShouldTestGetShipmentPPmtAmtToDeduct: Boolean) begin end; + /// + /// Event raised by OnAfterDeleteApprovalEntries. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the ReturnReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterDeleteApprovalEntries(var SalesHeader: Record "Sales Header"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var SalesShipmentHeader: Record "Sales Shipment Header"; var ReturnReceiptHeader: Record "Return Receipt Header") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeUpdateSalesLineBeforePost. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeUpdateSalesLineBeforePost(var SalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header"; WhseShip: Boolean; WhseReceive: Boolean; RoundingLineInserted: Boolean; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnAfterSumSalesLines2. + /// + /// + /// Specifies the OldSalesLine parameter. + /// Specifies the NewSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterSumSalesLines2(var SalesHeader: Record "Sales Header"; var OldSalesLine: Record "Sales Line"; var NewSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnCheckPostWhseShptLinesOnAfterWhseShptLinesFound. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WhseShptLinesFound parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WarehouseShipmentLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckPostWhseShptLinesOnAfterWhseShptLinesFound(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line"; var WhseShptLinesFound: Boolean; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseShip: Boolean; WhseReceive: Boolean; var WarehouseShipmentLine: Record "Warehouse Shipment Line") begin end; + /// + /// Event raised by OnAfterDecrementPrepmtAmtInvLCY. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the PrepmtAmountInvLCY parameter. + /// Specifies the PrepmtVATAmountInvLCY parameter. [IntegrationEvent(false, false)] local procedure OnAfterDecrementPrepmtAmtInvLCY(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var PrepmtAmountInvLCY: Decimal; var PrepmtVATAmountInvLCY: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineGet. + /// + /// + /// Specifies the TempVATAmountLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineGet(SalesLine: Record "Sales Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeAdjustPrepmtAmountLCY. + /// + /// + /// Specifies the PrepmtSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustPrepmtAmountLCY(SalesHeader: Record "Sales Header"; var PrepmtSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostResJnlLineOnShouldExit. + /// + /// + /// Specifies the ShouldExit parameter. [IntegrationEvent(false, false)] local procedure OnPostResJnlLineOnShouldExit(var SalesLine: Record "Sales Line"; var ShouldExit: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeUpdateTempVATAmountLineRemainder. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeUpdateTempVATAmountLineRemainder(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterCalcTotalChargeAmt. + /// + /// + /// Specifies the QtyToAssign parameter. + /// Specifies the SalesLine parameter. + /// Specifies the xSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnAfterCalcTotalChargeAmt(var SalesLineToPost: Record "Sales Line"; QtyToAssign: Decimal; var SalesLine: Record "Sales Line"; xSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnBeforeCheckPostRestrictions. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPostRestrictions(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeValidateType. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeValidateType(var TempPrepmtSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeValidateDocumentDate. + /// + /// + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeValidateDocumentDate(var PostingDateExists: Boolean; var ReplaceDocumentDate: Boolean; var PostingDate: Date; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnCheckSalesDocumentOnBeforeCheckSalesDim. + /// + /// + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckSalesDocumentOnBeforeCheckSalesDim(var SalesHeader: Record "Sales Header"; var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeCreatePrepaymentTextLines. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePrepaymentTextLines(var TempPrepmtSalesLine: Record "Sales Line" temporary; var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header"; CompleteFunctionality: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckAndUpdate. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckAndUpdate(var SalesHeader: Record "Sales Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeCollectValueEntryRelation. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeCollectValueEntryRelation(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesInvoiceLine: Record "Sales Invoice Line") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeCollectValueEntryRelationForCrMemo. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeCollectValueEntryRelationForCrMemo(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesInvoiceLine: Record "Sales Invoice Line") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterCollectValueEntryRelation. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterCollectValueEntryRelation(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesInvoiceLine: Record "Sales Invoice Line") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterCreatePostedDeferralSchedule. + /// + /// + /// Specifies the SalesInvHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterCreatePostedDeferralSchedule(var SalesInvLine: Record "Sales Invoice Line"; SalesInvHeader: Record "Sales Invoice Header") begin end; + /// + /// Event raised by OnInvoiceRoundingOnAfterValidateQuantity. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnInvoiceRoundingOnAfterValidateQuantity(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInvoiceRoundingOnAfterSetLineNo. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnInvoiceRoundingOnAfterSetLineNo(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line") begin @@ -13977,16 +15581,32 @@ codeunit 80 "Sales-Post" begin end; + /// + /// Event raised by OnInsertPostedHeadersOnBeforeDeleteServItemOnSaleCreditMemo. + /// + /// + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnBeforeDeleteServItemOnSaleCreditMemo(var SalesHeader: Record "Sales Header"; var SalesShipmentHeader: Record "Sales Shipment Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterInsertInvoiceHeader. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInsertInvoiceHeader(var SalesHeader: Record "Sales Header"; var SalesInvoiceHeader: Record "Sales Invoice Header") begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterInsertCrMemoHeader. + /// + /// + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInsertCrMemoHeader(var SalesHeader: Record "Sales Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin @@ -14003,173 +15623,400 @@ codeunit 80 "Sales-Post" begin end; + /// + /// Event raised by OnProcessPostingLinesOnBeforePostDropOrderShipment. + /// + /// + /// Specifies the TotalSalesLine parameter. + /// Specifies the TotalSalesLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnProcessPostingLinesOnBeforePostDropOrderShipment(SalesHeader: Record "Sales Header"; TotalSalesLine: Record "Sales Line"; TotalSalesLineLCY: Record "Sales Line") begin end; + /// + /// Event raised by OnAfterArchiveUnpostedOrder. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the OrderArchived parameter. [IntegrationEvent(false, false)] local procedure OnAfterArchiveUnpostedOrder(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; OrderArchived: Boolean); begin end; + /// + /// Event raised by OnBeforeCheckReturnRcptLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckReturnRcptLine(var ReturnReceiptLine: Record "Return Receipt Line"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertReturnReceiptHeaderOnBeforeReturnReceiptHeaderTransferFields. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertReturnReceiptHeaderOnBeforeReturnReceiptHeaderTransferFields(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnBeforeCopyAndCheckItemCharge. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesLine parameter. + /// Specifies the InvoiceEverything parameter. + /// Specifies the AssignError parameter. + /// Specifies the QtyNeeded parameter. + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the ItemChargeAssgntSales parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCopyAndCheckItemCharge(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var SalesLine: Record "Sales Line"; var InvoiceEverything: Boolean; var AssignError: Boolean; var QtyNeeded: Decimal; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; var ItemChargeAssgntSales: Record "Item Charge Assignment (Sales)"; var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeTestPostingDate. + /// + /// + /// Specifies the ReplacePostingDate parameter. + /// Specifies the SkipTestPostingDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeTestPostingDate(var SalesHeader: Record "Sales Header"; ReplacePostingDate: Boolean; var SkipTestPostingDate: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeSalesHeaderModify. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeSalesHeaderModify(var SalesHeader: Record "Sales Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeTestLineFields. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeTestLineFields(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateQtyToBeInvoicedForReturnReceiptOnAfterSetQtyToBeInvoiced. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateQtyToBeInvoicedForReturnReceiptOnAfterSetQtyToBeInvoiced(TrackingSpecificationExists: Boolean; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterInsertShipmentHeader. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInsertShipmentHeader(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnInsertPostedHeadersDeleteServItemOnSaleCreditMemo. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersDeleteServItemOnSaleCreditMemo(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnRunWithCheckOnAfterFinalize. + /// + /// [IntegrationEvent(false, false)] local procedure OnRunWithCheckOnAfterFinalize(var SalesHeader: Record "Sales Header"); begin end; + /// + /// Event raised by OnBeforeFinalizePostATO. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeFinalizePostATO(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeDeleteATOLinks. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDeleteATOLinks(SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckATOLink. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckATOLink(SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumSalesLinesTempOnAfterVatAmountSet. + /// + /// + /// Specifies the TotalSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLinesTempOnAfterVatAmountSet(var VATAmount: Decimal; var TotalSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInsertShptEntryRelationOnBeforeDeleteTempHandlingSpecification. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertShptEntryRelationOnBeforeDeleteTempHandlingSpecification(var TempHandlingTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeModifyPurchOrderHeader. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeModifyPurchOrderHeader(var PurchaseOrderHeader: Record "Purchase Header"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnAfterPostJobContractLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostJobContractLine(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var GenJnlLineDocType: Enum "Gen. Journal Document Type"; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; var SrcCode: Code[10]) begin end; + /// + /// Event raised by OnBeforePostDistributeItemCharge. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempItemLedgerEntry parameter. + /// Specifies the NonDistrQuantity parameter. + /// Specifies the NonDistrQtyToAssign parameter. + /// Specifies the NonDistrAmountToAssign parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostDistributeItemCharge(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempItemLedgerEntry: Record "Item Ledger Entry"; NonDistrQuantity: Decimal; NonDistrQtyToAssign: Decimal; NonDistrAmountToAssign: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostDistributeItemChargeOnAfterSetFactor. + /// + /// + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostDistributeItemChargeOnAfterSetFactor(TempItemLedgerEntry: Record "Item Ledger Entry"; var Factor: Decimal) begin end; + /// + /// Event raised by OnBeforeCalcPrepmtAmtToDeduct. + /// + /// + /// Specifies the Ship parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PrepmtAmtToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcPrepmtAmtToDeduct(var SalesLine: Record "Sales Line"; Ship: Boolean; var IsHandled: Boolean; var PrepmtAmtToDeduct: Decimal) begin end; + /// + /// Event raised by OnBeforePostItemJournalLineWarehouseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJournalLineWarehouseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAfterPostItemJournalLineWarehouseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJournalLineWarehouseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAdjustPrepmtAmountLCYOnAfterGetOrderLine. + /// + /// + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnAdjustPrepmtAmountLCYOnAfterGetOrderLine(var SalesLine: Record "Sales Line"; var SalesInvoiceLine: Record "Sales Line"); begin end; + /// + /// Event raised by OnBeforeGetQtyToInvoice. + /// + /// + /// Specifies the Ship parameter. + /// Specifies the IsHandled parameter. + /// Specifies the QtyToInvoice parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetQtyToInvoice(SalesLine: Record "Sales Line"; Ship: Boolean; var IsHandled: Boolean; var QtyToInvoice: Decimal) begin end; + /// + /// Event raised by OnBeforeAdjustFinalInvWith100PctPrepmt. + /// + /// + /// Specifies the CombinedSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustFinalInvWith100PctPrepmt(var TempPrepmtDeductLCYSalesLine: Record "Sales Line" temporary; var CombinedSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateRemainingQtyToBeInvoiced. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateRemainingQtyToBeInvoiced(SalesShptLine: Record "Sales Shipment Line"; var RemQtyToInvoiceCurrLine: Decimal; var RemQtyToInvoiceCurrLineBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLineForCreditMemoOnBeforeGetSalesPrepmtAccount. + /// + /// + /// Specifies the SalesInvoiceLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLineForCreditMemoOnBeforeGetSalesPrepmtAccount(var GLAccount: Record "G/L Account"; var SalesInvoiceLine: Record "Sales Invoice Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateEmailParameters. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateEmailParameters(SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostUpdateOrderNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateOrderNo(var SalesInvoiceHeader: Record "Sales Invoice Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSetInvoiceOrderNo. + /// + /// + /// Specifies the SalesInvLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSetInvoiceOrderNo(SalesLine: Record "Sales Line"; var SalesInvLine: Record "Sales Invoice Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeArchiveRelatedJob. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeArchiveRelatedJob(SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSyncSurPlusItemTrackingOnBeforeModifyQtyToHandleInvoice. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ReservationEntry parameter. [IntegrationEvent(false, false)] local procedure OnSyncSurPlusItemTrackingOnBeforeModifyQtyToHandleInvoice(var SalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var ReservationEntry: Record "Reservation Entry") begin end; -} \ No newline at end of file + + /// + /// Event raised by OnAfterProcessPostingLines. + /// + /// + /// Specifies the TotalSalesLine parameter. + /// Specifies the CustLedgEntry parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the Window parameter. + /// Specifies the HideProgressWindow parameter. + [IntegrationEvent(false, false)] + local procedure OnAfterProcessPostingLines(var SalesHeader: Record "Sales Header"; var TotalSalesLine: Record "Sales Line"; var CustLedgEntry: Record "Cust. Ledger Entry"; InvoicePostingParameters: Record "Invoice Posting Parameters"; SuppressCommit: Boolean; EverythingInvoiced: Boolean; var Window: Dialog; HideProgressWindow: Boolean) + begin + end; + + /// + /// Raised after checking posting restrictions + /// + /// + [IntegrationEvent(false, false)] + local procedure OnAfterCheckPostRestrictions(var SalesHeader: Record "Sales Header") + begin + end; +} diff --git a/src/Layers/ES/BaseApp/Sales/Receivables/ApplyCustomerEntries.Page.al b/src/Layers/ES/BaseApp/Sales/Receivables/ApplyCustomerEntries.Page.al index bbf5af8391e..01cee72e485 100644 --- a/src/Layers/ES/BaseApp/Sales/Receivables/ApplyCustomerEntries.Page.al +++ b/src/Layers/ES/BaseApp/Sales/Receivables/ApplyCustomerEntries.Page.al @@ -36,21 +36,27 @@ page 232 "Apply Customer Entries" group(General) { Caption = 'General'; +#pragma warning disable AA0100 field("ApplyingCustLedgEntry.""Posting Date"""; TempApplyingCustLedgEntry."Posting Date") +#pragma warning restore AA0100 { ApplicationArea = Basic, Suite; Caption = 'Posting Date'; Editable = false; ToolTip = 'Specifies the posting date of the entry to be applied. This date is used to find the correct exchange rate when applying entries in different currencies.'; } +#pragma warning disable AA0100 field("ApplyingCustLedgEntry.""Document Type"""; TempApplyingCustLedgEntry."Document Type") +#pragma warning restore AA0100 { ApplicationArea = Basic, Suite; Caption = 'Document Type'; Editable = false; ToolTip = 'Specifies the document type of the entry to be applied.'; } +#pragma warning disable AA0100 field("ApplyingCustLedgEntry.""Document No."""; TempApplyingCustLedgEntry."Document No.") +#pragma warning restore AA0100 { ApplicationArea = Basic, Suite; Caption = 'Document No.'; @@ -81,7 +87,9 @@ page 232 "Apply Customer Entries" ToolTip = 'Specifies the description of the entry to be applied.'; Visible = false; } +#pragma warning disable AA0100 field("ApplyingCustLedgEntry.""Currency Code"""; TempApplyingCustLedgEntry."Currency Code") +#pragma warning restore AA0100 { ApplicationArea = Suite; Caption = 'Currency Code'; @@ -95,7 +103,9 @@ page 232 "Apply Customer Entries" Editable = false; ToolTip = 'Specifies the amount on the entry to be applied.'; } +#pragma warning disable AA0100 field("ApplyingCustLedgEntry.""Remaining Amount"""; TempApplyingCustLedgEntry."Remaining Amount") +#pragma warning restore AA0100 { ApplicationArea = Basic, Suite; Caption = 'Remaining Amount'; @@ -144,24 +154,6 @@ page 232 "Apply Customer Entries" Editable = false; StyleExpr = StyleTxt; } - field("Bill No."; Rec."Bill No.") - { - ApplicationArea = Basic, Suite; - Editable = false; - ToolTip = 'Specifies the bill number related to the customer entry.'; - } - field("Document Status"; Rec."Document Status") - { - ApplicationArea = Basic, Suite; - Editable = false; - ToolTip = 'Specifies the status of the document.'; - } - field("Document Situation"; Rec."Document Situation") - { - ApplicationArea = Basic, Suite; - Editable = false; - ToolTip = 'Specifies the document location.'; - } field(Prepayment; Rec.Prepayment) { ApplicationArea = Prepayments; @@ -214,7 +206,9 @@ page 232 "Apply Customer Entries" ApplicationArea = Basic, Suite; Editable = false; } +#pragma warning disable AA0100 field("CalcApplnRemainingAmount(""Remaining Amount"")"; CalcApplnRemainingAmount(Rec."Remaining Amount")) +#pragma warning restore AA0100 { ApplicationArea = Basic, Suite; AutoFormatExpression = ApplnCurrencyCode; @@ -280,7 +274,9 @@ page 232 "Apply Customer Entries" ApplicationArea = Basic, Suite; ToolTip = 'Specifies the payment discount that has been granted, in LCY.'; } +#pragma warning disable AA0100 field("CalcApplnRemainingAmount(""Remaining Pmt. Disc. Possible"")"; CalcApplnRemainingAmount(Rec."Remaining Pmt. Disc. Possible")) +#pragma warning restore AA0100 { ApplicationArea = Basic, Suite; AutoFormatExpression = ApplnCurrencyCode; @@ -1360,7 +1356,7 @@ page 232 "Apply Customer Entries" if IsHandled then exit; - if not AppliedCustLedgEntry.FindSet(false, false) then + if not AppliedCustLedgEntry.FindSet(false) then exit; repeat diff --git a/src/Layers/ES/BaseApp/Sales/Receivables/CustEntryApplyPostedEntries.Codeunit.al b/src/Layers/ES/BaseApp/Sales/Receivables/CustEntryApplyPostedEntries.Codeunit.al index 154d8cba403..a6e5a00e9aa 100644 --- a/src/Layers/ES/BaseApp/Sales/Receivables/CustEntryApplyPostedEntries.Codeunit.al +++ b/src/Layers/ES/BaseApp/Sales/Receivables/CustEntryApplyPostedEntries.Codeunit.al @@ -81,10 +81,6 @@ codeunit 226 "CustEntry-Apply Posted Entries" CannotUnapplyInReversalErr: Label 'You cannot unapply Cust. Ledger Entry No. %1 because the entry is part of a reversal.'; #pragma warning restore AA0470 CannotApplyClosedEntriesErr: Label 'One or more of the entries that you selected is closed. You cannot apply closed entries.'; - Text1100000: Label 'Application of %1 %2'; - Text1100001: Label 'Application of %1 %2/%3'; - Text1100002: Label 'To apply a set of entries containing bills, rejected invoices or invoices to cartera, the cursor should be positioned on an entry different than bill type, rejected invoice or invoices to cartera.'; - UnapplyBlankedDocTypeErr: Label 'You cannot unapply the entries because one entry has a blank document type.'; /// /// Applies the customer ledger entry based on the specified application parameters. @@ -99,16 +95,6 @@ codeunit 226 "CustEntry-Apply Posted Entries" begin OnBeforeApply(CustLedgEntry, ApplyUnapplyParameters."Document No.", ApplyUnapplyParameters."Posting Date"); - if (CustLedgEntry."Document Type" = CustLedgEntry."Document Type"::Bill) or - ((CustLedgEntry."Document Type" = CustLedgEntry."Document Type"::Invoice) and - (CustLedgEntry."Document Situation" = CustLedgEntry."Document Situation"::"Closed BG/PO") and - (CustLedgEntry."Document Status" = CustLedgEntry."Document Status"::Rejected)) or - ((CustLedgEntry."Document Type" = CustLedgEntry."Document Type"::Invoice) and - (CustLedgEntry."Document Situation" = CustLedgEntry."Document Situation"::Cartera) and - (CustLedgEntry."Document Status" = CustLedgEntry."Document Status"::Open)) - then - Error(Text1100002); - IsHandled := false; OnApplyOnBeforePmtTolCust(CustLedgEntry, PaymentToleranceMgt, PreviewMode, IsHandled); if not IsHandled then @@ -194,10 +180,6 @@ codeunit 226 "CustEntry-Apply Posted Entries" (CustLedgEntry."Debit Amount" < 0) or (CustLedgEntry."Credit Amount" < 0) or (CustLedgEntry."Debit Amount (LCY)" < 0) or (CustLedgEntry."Credit Amount (LCY)" < 0); GenJnlLine.CopyCustLedgEntry(CustLedgEntry); - if CustLedgEntry."Document Type" <> CustLedgEntry."Document Type"::Bill then - GenJnlLine.Description := StrSubstNo(Text1100000, CustLedgEntry."Document Type", CustLedgEntry."Document No.") - else - GenJnlLine.Description := StrSubstNo(Text1100001, CustLedgEntry."Document Type", CustLedgEntry."Document No.", CustLedgEntry."Bill No."); GenJnlLine."Source Code" := SourceCodeSetup."Sales Entry Application"; GenJnlLine."System-Created Entry" := true; GenJnlLine."Journal Template Name" := ApplyUnapplyParameters."Journal Template Name"; @@ -205,8 +187,6 @@ codeunit 226 "CustEntry-Apply Posted Entries" EntryNoBeforeApplication := FindLastApplDtldCustLedgEntry(); - GenJnlPostLine.SetIDBillSettlement(IsToSetIDBillSettlement(CustLedgEntry)); - OnBeforePostApplyCustLedgEntry(GenJnlLine, CustLedgEntry, GenJnlPostLine, ApplyUnapplyParameters); GenJnlPostLine.CustPostApplyCustLedgEntry(GenJnlLine, CustLedgEntry); OnAfterPostApplyCustLedgEntry(GenJnlLine, CustLedgEntry, GenJnlPostLine); @@ -496,8 +476,7 @@ codeunit 226 "CustEntry-Apply Posted Entries" if IsHandled then exit; - if DtldCustLedgEntry."Initial Document Type" = DtldCustLedgEntry."Initial Document Type"::" " then - Error(UnapplyBlankedDocTypeErr); + OnAfterCheckInitialDocumentType(DtldCustLedgEntry); end; local procedure CheckPostingDate(ApplyUnapplyParameters: Record "Apply Unapply Parameters"; var MaxPostingDate: Date) @@ -645,41 +624,6 @@ codeunit 226 "CustEntry-Apply Posted Entries" exit(LastTransactionNo); end; - local procedure BeAppliedToBill(CustLedgEntry2: Record "Cust. Ledger Entry"): Boolean - var - CustLedgEntry3: Record "Cust. Ledger Entry"; - begin - CustLedgEntry3.SetCurrentKey("Applies-to ID", "Document Type"); - CustLedgEntry3.SetRange("Applies-to ID", CustLedgEntry2."Applies-to ID"); - CustLedgEntry3.SetRange("Document Type", CustLedgEntry2."Document Type"::Bill); - if not CustLedgEntry3.IsEmpty() then - exit(true); - exit(false); - end; - - local procedure BeAppliedToInvoiceToCartera(CustLedgEntry2: Record "Cust. Ledger Entry"): Boolean - var - CustLedgEntry3: Record "Cust. Ledger Entry"; - begin - CustLedgEntry3.SetCurrentKey("Applies-to ID", "Document Type", "Document Situation", "Document Status"); - CustLedgEntry3.SetRange("Applies-to ID", CustLedgEntry2."Applies-to ID"); - CustLedgEntry3.SetRange("Document Type", CustLedgEntry2."Document Type"::Invoice); - CustLedgEntry3.SetRange("Document Situation", CustLedgEntry3."Document Situation"::"Closed BG/PO"); - CustLedgEntry3.SetRange("Document Status", CustLedgEntry3."Document Status"::Rejected); - if not CustLedgEntry3.IsEmpty() then - exit(true); - exit(false); - end; - - local procedure IsToSetIDBillSettlement(CustLedgEntry2: Record "Cust. Ledger Entry"): Boolean - begin - if CustLedgEntry2."Applies-to ID" = '' then - exit(false); - if BeAppliedToBill(CustLedgEntry2) then - exit(true); - exit(BeAppliedToInvoiceToCartera(CustLedgEntry2)); - end; - /// /// Previews the application of a customer ledger entry without posting. /// @@ -1081,12 +1025,29 @@ codeunit 226 "CustEntry-Apply Posted Entries" /// The customer ledger entry to apply. /// The application parameters. [IntegrationEvent(false, false)] - local procedure OnBeforeCheckInitialDocumentType(var DtldCustLedgEntry: Record "Detailed Cust. Ledg. Entry"; DocNo: Code[20]; PostingDate: Date; var CommitChanges: Boolean; var IsHandled: Boolean); + local procedure OnApplyOnBeforeCustPostApplyCustLedgEntry(CustLedgerEntry: Record "Cust. Ledger Entry"; var ApplyUnapplyParameters: Record "Apply Unapply Parameters") begin end; + /// + /// Raised after checking initial document Type + /// + /// The detailed customer ledger entry. [IntegrationEvent(false, false)] - local procedure OnApplyOnBeforeCustPostApplyCustLedgEntry(CustLedgerEntry: Record "Cust. Ledger Entry"; var ApplyUnapplyParameters: Record "Apply Unapply Parameters") + local procedure OnAfterCheckInitialDocumentType(var DtldCustLedgEntry: Record "Detailed Cust. Ledg. Entry"); + begin + end; + + /// + /// Raised before checking initial document Type + /// + /// The detailed customer ledger entry. + /// The document number. + /// The posting date. + /// Indicates whether to commit changes. + /// Indicates whether the event is handled. + [IntegrationEvent(false, false)] + local procedure OnBeforeCheckInitialDocumentType(var DtldCustLedgEntry: Record "Detailed Cust. Ledg. Entry"; DocNo: Code[20]; PostingDate: Date; var CommitChanges: Boolean; var IsHandled: Boolean); begin end; diff --git a/src/Layers/ES/BaseApp/Sales/Receivables/CustEntrySetApplID.Codeunit.al b/src/Layers/ES/BaseApp/Sales/Receivables/CustEntrySetApplID.Codeunit.al index 47ce66118ae..2534153b48f 100644 --- a/src/Layers/ES/BaseApp/Sales/Receivables/CustEntrySetApplID.Codeunit.al +++ b/src/Layers/ES/BaseApp/Sales/Receivables/CustEntrySetApplID.Codeunit.al @@ -4,8 +4,6 @@ // ------------------------------------------------------------------------------------------------ namespace Microsoft.Sales.Receivables; -using Microsoft.Finance.ReceivablesPayables; - /// /// Manages the Applies-to ID field on customer ledger entries to mark entries for application during payment processing. /// @@ -18,8 +16,6 @@ codeunit 101 "Cust. Entry-SetAppl.ID" end; var - CannotBeAppliedErr: Label '%1 cannot be applied, since it is included in a bill group.', Comment = '%1 = Description'; - CannotBeAppliedTryAgainErr: Label '%1 cannot be applied, since it is included in a bill group. Remove it from its bill group and try again.', Comment = '%1 = Description'; CustEntryApplID: Code[50]; /// @@ -65,8 +61,6 @@ codeunit 101 "Cust. Entry-SetAppl.ID" local procedure UpdateCustLedgerEntry(var TempCustLedgerEntry: Record "Cust. Ledger Entry" temporary; ApplyingCustLedgerEntry: Record "Cust. Ledger Entry"; AppliesToID: Code[50]) var CustLedgerEntry: Record "Cust. Ledger Entry"; - CarteraDoc: Record "Cartera Doc."; - CarteraSetup: Record "Cartera Setup"; IsHandled: Boolean; begin IsHandled := false; @@ -76,19 +70,6 @@ codeunit 101 "Cust. Entry-SetAppl.ID" CustLedgerEntry.Copy(TempCustLedgerEntry); CustLedgerEntry.TestField(Open, true); - if CustLedgerEntry."Document Situation" = CustLedgerEntry."Document Situation"::"Posted BG/PO" then - Error(CannotBeAppliedErr, CustLedgerEntry.Description); - if ApplyingCustLedgerEntry."Document Situation" = ApplyingCustLedgerEntry."Document Situation"::"Posted BG/PO" then - Error(CannotBeAppliedErr, ApplyingCustLedgerEntry.Description); - - if CarteraSetup.ReadPermission then - if ((CustLedgerEntry."Document Type" = CustLedgerEntry."Document Type"::Bill) or - (CustLedgerEntry."Document Type" = CustLedgerEntry."Document Type"::Invoice)) - then - if CarteraDoc.Get(CarteraDoc.Type::Receivable, CustLedgerEntry."Entry No.") then - if CarteraDoc."Bill Gr./Pmt. Order No." <> '' then - Error(CannotBeAppliedTryAgainErr, CustLedgerEntry.Description); - CustLedgerEntry."Applies-to ID" := CustEntryApplID; if CustLedgerEntry."Applies-to ID" = '' then begin CustLedgerEntry."Accepted Pmt. Disc. Tolerance" := false; diff --git a/src/Layers/ES/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al b/src/Layers/ES/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al index 9e852eb8dc9..06c01c32aba 100644 --- a/src/Layers/ES/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al +++ b/src/Layers/ES/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al @@ -4,7 +4,6 @@ // ------------------------------------------------------------------------------------------------ namespace Microsoft.Sales.Receivables; -using Microsoft; using Microsoft.Bank.BankAccount; using Microsoft.Bank.DirectDebit; using Microsoft.CRM.Team; @@ -362,7 +361,6 @@ table 21 "Cust. Ledger Entry" ReminderIssue: Codeunit "Reminder-Issue"; begin TestField(Open, true); - CheckBillSituation(); if PaymentTerms.Get("Payment Terms Code") then PaymentTerms.VerifyMaxNoDaysTillDueDate("Due Date", "Document Date", FieldCaption("Due Date")); @@ -374,8 +372,6 @@ table 21 "Cust. Ledger Entry" if ReminderEntry.FindLast() then ReminderIssue.ChangeDueDate(ReminderEntry, "Due Date", xRec."Due Date"); end; - if "Document Situation" <> "Document Situation"::" " then - DocMisc.UpdateReceivableDueDate(Rec); end; } /// @@ -803,8 +799,6 @@ table 21 "Cust. Ledger Entry" CalcFields("Remaining Amount"); OnValidateAmounttoApplyBeforeFieldError(Rec); - CheckBillSituation(); - if AreOppositeSign("Amount to Apply", "Remaining Amount") then FieldError("Amount to Apply", StrSubstNo(Text000, FieldCaption("Remaining Amount"))); @@ -870,6 +864,7 @@ table 21 "Cust. Ledger Entry" Caption = 'Payment Terms Code'; Editable = false; TableRelation = "Payment Terms"; + ToolTip = 'Specifies the payment terms that determine the due date and payment discount date for the entry.'; } field(95; "G/L Register No."; Integer) { @@ -884,6 +879,7 @@ table 21 "Cust. Ledger Entry" field(171; "Payment Reference"; Code[50]) { Caption = 'Payment Reference'; + ToolTip = 'Specifies the payment reference number used by banks to identify and track the payment.'; } /// /// Specifies the payment method used or expected for this transaction, such as bank transfer, cash, or check. @@ -895,15 +891,8 @@ table 21 "Cust. Ledger Entry" ToolTip = 'Specifies how to make payment, such as with bank transfer, cash, or check.'; trigger OnValidate() - var - CarteraDoc: Record "Cartera Doc."; begin TestField(Open, true); - if "Payment Method Code" <> xRec."Payment Method Code" then begin - ValidatePaymentMethod(); - CarteraDoc.UpdatePaymentMethodCode( - "Document No.", "Customer No.", "Bill No.", "Payment Method Code") - end; end; } /// @@ -1088,34 +1077,6 @@ table 21 "Cust. Ledger Entry" { Caption = 'VAT Date'; } - field(7000000; "Bill No."; Code[20]) - { - Caption = 'Bill No.'; - } - field(7000001; "Document Situation"; Enum "ES Document Situation") - { - Caption = 'Document Situation'; - } - field(7000002; "Applies-to Bill No."; Code[20]) - { - Caption = 'Applies-to Bill No.'; - } - field(7000003; "Document Status"; Enum "ES Document Status") - { - Caption = 'Document Status'; - } - field(7000005; "Remaining Amount (LCY) stats."; Decimal) - { - AutoFormatType = 1; - AutoFormatExpression = ''; - Caption = 'Remaining Amount (LCY) stats.'; - } - field(7000006; "Amount (LCY) stats."; Decimal) - { - AutoFormatType = 1; - AutoFormatExpression = ''; - Caption = 'Amount (LCY) stats.'; - } } keys @@ -1187,16 +1148,6 @@ table 21 "Cust. Ledger Entry" { IncludedFields = "Accepted Payment Tolerance"; } - key(Key7000000; "Document No.", "Bill No.") - { - } - key(Key7000001; "Customer No.", "Document Type", "Document Situation", "Document Status") - { - SumIndexFields = "Remaining Amount (LCY) stats.", "Amount (LCY) stats."; - } - key(Key7000002; "Applies-to ID", "Document Type", "Document Situation", "Document Status") - { - } } fieldgroups @@ -1216,10 +1167,6 @@ table 21 "Cust. Ledger Entry" Text001: Label 'must not be larger than %1'; #pragma warning restore AA0470 #pragma warning restore AA0074 - DocMisc: Codeunit "Document-Misc"; - CannotChangePmtMethodErr: Label 'For Cartera-based bills and invoices, you cannot change the Payment Method Code to this value.'; - CheckBillSituationGroupErr: Label '%1 cannot be applied because it is included in a bill group. To apply the document, remove it from the bill group and try again.', Comment = '%1 - document type and number'; - CheckBillSituationPostedErr: Label '%1 cannot be applied because it is included in a posted bill group.', Comment = '%1 - document type and number'; NetBalanceOnHoldErr: Label 'General journal line number %3 on template name %1 batch name %2 is applied. Do you want to change On Hold value anyway?', Comment = '%1 - template name, %2 - batch name, %3 - line number'; /// @@ -1421,39 +1368,6 @@ table 21 "Cust. Ledger Entry" DimMgt.ShowDimensionSet("Dimension Set ID", StrSubstNo('%1 %2', TableCaption(), "Entry No.")); end; - [Scope('OnPrem')] - procedure PrintBill(ShowRequestForm: Boolean) - var - CarteraReportSelection: Record "Cartera Report Selections"; - CustLedgEntry: Record "Cust. Ledger Entry"; - begin - CustLedgEntry.Copy(Rec); - CarteraReportSelection.SetRange(Usage, CarteraReportSelection.Usage::Bill); - CarteraReportSelection.SetFilter("Report ID", '<>0'); - CarteraReportSelection.Find('-'); - repeat - REPORT.RunModal(CarteraReportSelection."Report ID", ShowRequestForm, false, CustLedgEntry); - until CarteraReportSelection.Next() = 0; - end; - - [Scope('OnPrem')] - procedure CheckBillSituation() - var - CarteraDoc: Record "Cartera Doc."; - PostedCarteraDoc: Record "Posted Cartera Doc."; - begin - OnBeforeCheckBillSituation(Rec); - - case true of - CarteraDoc.Get(CarteraDoc.Type::Receivable, "Entry No."): - if CarteraDoc."Bill Gr./Pmt. Order No." <> '' then - Error(CheckBillSituationGroupErr, Description); - PostedCarteraDoc.Get(PostedCarteraDoc.Type::Receivable, "Entry No."): - if PostedCarteraDoc."Bill Gr./Pmt. Order No." <> '' then - Error(CheckBillSituationPostedErr, Description); - end; - end; - /// /// Determines the visual style for displaying this entry based on its payment status. /// @@ -1475,37 +1389,6 @@ table 21 "Cust. Ledger Entry" exit(''); end; -#if not CLEAN27 - [Obsolete('Replaced by W1 version of procedure', '27.0')] - procedure SetApplyToFilters(CustomerNo: Code[20]; ApplyDocType: Option; ApplyDocNo: Code[20]; ApplyBillNo: Code[20]; ApplyAmount: Decimal) - begin - SetCurrentKey("Customer No.", Open, Positive, "Due Date"); - SetRange("Customer No.", CustomerNo); - SetRange(Open, true); - SetFilter("Document Situation", '<>%1', "Document Situation"::"Posted BG/PO"); - if ApplyDocNo <> '' then begin - SetRange("Document Type", ApplyDocType); - SetRange("Document No.", ApplyDocNo); - if ApplyBillNo <> '' then - SetRange("Bill No.", ApplyBillNo); - if FindFirst() then; - SetRange("Document Type"); - SetRange("Document No."); - SetRange("Bill No."); - end else - if ApplyDocType <> 0 then begin - SetRange("Document Type", ApplyDocType); - if FindFirst() then; - SetRange("Document Type"); - end else - if ApplyAmount <> 0 then begin - SetRange(Positive, ApplyAmount < 0); - if FindFirst() then; - SetRange(Positive); - end; - end; -#endif - /// /// Sets filters on the record to show entries that can be applied based on the specified criteria. /// @@ -1518,14 +1401,12 @@ table 21 "Cust. Ledger Entry" SetCurrentKey("Customer No.", Open, Positive, "Due Date"); SetRange("Customer No.", CustomerNo); SetRange(Open, true); - SetFilter("Document Situation", '<>%1', "Document Situation"::"Posted BG/PO"); + OnSetApplyToFiltersOnBeforeSetFilters(Rec); if ApplyDocNo <> '' then begin SetRange("Document Type", ApplyDocType); SetRange("Document No.", ApplyDocNo); if FindFirst() then; - SetRange("Document Type"); - SetRange("Document No."); - SetRange("Bill No."); + ClearDocumentFilters(); end else if ApplyDocType <> 0 then begin SetRange("Document Type", ApplyDocType); @@ -1539,14 +1420,21 @@ table 21 "Cust. Ledger Entry" end; end; -#if not CLEAN27 - [Obsolete('Replaced by W1 version of procedure', '27.0')] - procedure SetAmountToApply(AppliesToDocNo: Code[20]; CustomerNo: Code[20]; var AppliesToBillNo: Code[20]) + procedure SetAppliesToDocFilters(var GenJnlLine: Record "Gen. Journal Line") begin - SetAmountToApply(AppliesToDocNo, CustomerNo); - AppliesToBillNo := "Bill No."; + SetRange("Document Type", GenJnlLine."Applies-to Doc. Type"); + SetRange("Document No.", GenJnlLine."Applies-to Doc. No."); + + OnAfterSetAppliesToDocFilters(Rec, GenJnlLine); + end; + + procedure ClearDocumentFilters() + begin + SetRange("Document Type"); + SetRange("Document No."); + + OnAfterClearDocumentFilters(Rec); end; -#endif /// /// Toggles the Amount to Apply field between the remaining amount and zero for the specified document. @@ -1622,8 +1510,6 @@ table 21 "Cust. Ledger Entry" "Payment Reference" := GenJnlLine."Payment Reference"; "Exported to Payment File" := GenJnlLine."Exported to Payment File"; "Payment Terms Code" := GenJnlLine."Payment Terms Code"; - "Bill No." := GenJnlLine."Bill No."; - "Applies-to Bill No." := GenJnlLine."Applies-to Bill No."; "VAT Reporting Date" := GenJnlLine."VAT Reporting Date"; OnAfterCopyCustLedgerEntryFromGenJnlLine(Rec, GenJnlLine); @@ -1675,19 +1561,6 @@ table 21 "Cust. Ledger Entry" OnAfterRecalculateAmounts(Rec, FromCurrencyCode, ToCurrencyCode, PostingDate); end; - local procedure ValidatePaymentMethod() - var - PaymentMethod: Record "Payment Method"; - begin - PaymentMethod.Get("Payment Method Code"); - if (("Document Type" = "Document Type"::Bill) and not PaymentMethod."Create Bills") or - (("Document Type" = "Document Type"::Invoice) and - ("Document Situation" <> "Document Situation"::" ") and - not PaymentMethod."Invoices to Cartera") - then - Error(CannotChangePmtMethodErr); - end; - /// /// Updates amount fields for application by converting to the application currency. /// @@ -1975,7 +1848,17 @@ table 21 "Cust. Ledger Entry" end; [IntegrationEvent(false, false)] - local procedure OnBeforeCheckBillSituation(var CustLedgerEntry: Record "Cust. Ledger Entry") + local procedure OnAfterSetAppliesToDocFilters(var Rec: Record "Cust. Ledger Entry"; var GenJnlLine: Record "Gen. Journal Line") + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnAfterClearDocumentFilters(var Rec: Record "Cust. Ledger Entry") + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnSetApplyToFiltersOnBeforeSetFilters(var Rec: Record "Cust. Ledger Entry") begin end; diff --git a/src/Layers/ES/BaseApp/Sales/Receivables/CustomerLedgerEntries.Page.al b/src/Layers/ES/BaseApp/Sales/Receivables/CustomerLedgerEntries.Page.al index 1e70f521086..7621073b348 100644 --- a/src/Layers/ES/BaseApp/Sales/Receivables/CustomerLedgerEntries.Page.al +++ b/src/Layers/ES/BaseApp/Sales/Receivables/CustomerLedgerEntries.Page.al @@ -66,23 +66,6 @@ page 25 "Customer Ledger Entries" Editable = false; StyleExpr = StyleTxt; } - field("Bill No."; Rec."Bill No.") - { - ApplicationArea = Basic, Suite; - Editable = false; - ToolTip = 'Specifies the bill number related to the customer entry.'; - } - field("Document Situation"; Rec."Document Situation") - { - ApplicationArea = Basic, Suite; - ToolTip = 'Specifies the document location.'; - } - field("Document Status"; Rec."Document Status") - { - ApplicationArea = Basic, Suite; - Editable = false; - ToolTip = 'Specifies the status of the document.'; - } field("Customer No."; Rec."Customer No.") { ApplicationArea = Basic, Suite; @@ -554,14 +537,14 @@ page 25 "Customer Ledger Entries" Customer: Record "Customer"; ReminderHeader: Record "Reminder Header"; begin - ReminderHeader.setrange("Customer No.", Rec."Customer No."); + ReminderHeader.SetRange("Customer No.", Rec."Customer No."); if ReminderHeader.FindFirst() then begin page.RunModal(Page::Reminder, ReminderHeader); exit end; - Customer.setrange("No.", Rec."Customer No."); + Customer.SetRange("No.", Rec."Customer No."); REPORT.RunModal(REPORT::"Create Reminders", true, true, Customer); - ReminderHeader.setrange("Customer No.", Rec."Customer No."); + ReminderHeader.SetRange("Customer No.", Rec."Customer No."); if ReminderHeader.FindFirst() then begin commit(); page.RunModal(Page::Reminder, ReminderHeader); @@ -583,16 +566,16 @@ page 25 "Customer Ledger Entries" Customer: Record "Customer"; FinanceChargeMemoHeader: Record "Finance Charge Memo Header"; begin - FinanceChargeMemoHeader.setrange("Customer No.", Rec."Customer No."); + FinanceChargeMemoHeader.SetRange("Customer No.", Rec."Customer No."); if FinanceChargeMemoHeader.FindFirst() then begin page.RunModal(Page::"Finance Charge Memo", FinanceChargeMemoHeader); exit end; - Customer.setrange("No.", Rec."Customer No."); + Customer.SetRange("No.", Rec."Customer No."); REPORT.RunModal(REPORT::"Create Finance Charge Memos", true, true, Customer); - FinanceChargeMemoHeader.setrange("Customer No.", Rec."Customer No."); + FinanceChargeMemoHeader.SetRange("Customer No.", Rec."Customer No."); if FinanceChargeMemoHeader.FindFirst() then begin - commit(); + Commit(); page.RunModal(Page::"Finance Charge Memo", FinanceChargeMemoHeader); exit end; diff --git a/src/Layers/ES/BaseApp/Sales/Receivables/DetailedCustLedgEntry.Table.al b/src/Layers/ES/BaseApp/Sales/Receivables/DetailedCustLedgEntry.Table.al index a4a345ec288..97833137e1b 100644 --- a/src/Layers/ES/BaseApp/Sales/Receivables/DetailedCustLedgEntry.Table.al +++ b/src/Layers/ES/BaseApp/Sales/Receivables/DetailedCustLedgEntry.Table.al @@ -4,7 +4,6 @@ // ------------------------------------------------------------------------------------------------ namespace Microsoft.Sales.Receivables; -using Microsoft; using Microsoft.Finance.Currency; using Microsoft.Finance.Dimension; using Microsoft.Finance.GeneralLedger.Journal; @@ -385,22 +384,6 @@ table 379 "Detailed Cust. Ledg. Entry" { Caption = 'VAT Date'; } - field(7000000; "Bill No."; Code[20]) - { - Caption = 'Bill No.'; - } - field(7000001; "Document Situation"; Enum "ES Document Situation") - { - Caption = 'Document Situation'; - } - field(7000002; "Applies-to Bill No."; Code[20]) - { - Caption = 'Applies-to Bill No.'; - } - field(7000003; "Document Status"; Enum "ES Document Status") - { - Caption = 'Document Status'; - } field(7000004; "Excluded from calculation"; Boolean) { Caption = 'Excluded from calculation'; diff --git a/src/Layers/ES/BaseApp/Service/Local/Document/ServiceHeaderES.TableExt.al b/src/Layers/ES/BaseApp/Service/Local/Document/ServiceHeaderES.TableExt.al index 71e266e266b..95a102780e5 100644 --- a/src/Layers/ES/BaseApp/Service/Local/Document/ServiceHeaderES.TableExt.al +++ b/src/Layers/ES/BaseApp/Service/Local/Document/ServiceHeaderES.TableExt.al @@ -180,7 +180,6 @@ tableextension 10790 "Service Header ES" extends "Service Header" { Caption = 'Pay-at Code'; DataClassification = CustomerContent; - TableRelation = Microsoft.Sales.Receivables."Customer Pmt. Address".Code where("Customer No." = field("Bill-to Customer No.")); ObsoleteReason = 'Address is taken from the fields Bill-to Address, Bill-to City, etc.'; ObsoleteState = Removed; ObsoleteTag = '25.0'; diff --git a/src/Layers/ES/BaseApp/Service/Local/History/ServiceCrMemoHeaderES.TableExt.al b/src/Layers/ES/BaseApp/Service/Local/History/ServiceCrMemoHeaderES.TableExt.al index ea31c82ccf3..b7cb93cfe23 100644 --- a/src/Layers/ES/BaseApp/Service/Local/History/ServiceCrMemoHeaderES.TableExt.al +++ b/src/Layers/ES/BaseApp/Service/Local/History/ServiceCrMemoHeaderES.TableExt.al @@ -160,7 +160,6 @@ tableextension 10794 "Service Cr.Memo Header ES" extends "Service Cr.Memo Header { Caption = 'Pay-at Code'; DataClassification = CustomerContent; - TableRelation = Microsoft.Sales.Receivables."Customer Pmt. Address".Code where("Customer No." = field("Bill-to Customer No.")); ObsoleteReason = 'Address is taken from the fields Bill-to Address, Bill-to City, etc.'; ObsoleteState = Removed; ObsoleteTag = '25.0'; diff --git a/src/Layers/ES/BaseApp/Service/Local/History/ServiceInvoiceHeaderES.TableExt.al b/src/Layers/ES/BaseApp/Service/Local/History/ServiceInvoiceHeaderES.TableExt.al index bb7512a0f18..28749b1d3bf 100644 --- a/src/Layers/ES/BaseApp/Service/Local/History/ServiceInvoiceHeaderES.TableExt.al +++ b/src/Layers/ES/BaseApp/Service/Local/History/ServiceInvoiceHeaderES.TableExt.al @@ -6,8 +6,6 @@ namespace Microsoft.Service.History; using Microsoft.EServices.EDocument; using Microsoft.Sales.Customer; -using Microsoft.Sales.Receivables; - tableextension 10792 "Service Invoice Header ES" extends "Service Invoice Header" { @@ -129,7 +127,6 @@ tableextension 10792 "Service Invoice Header ES" extends "Service Invoice Header { Caption = 'Pay-at Code'; DataClassification = CustomerContent; - TableRelation = "Customer Pmt. Address".Code where("Customer No." = field("Bill-to Customer No.")); ObsoleteReason = 'Address is taken from the fields Bill-to Address, Bill-to City, etc.'; ObsoleteState = Removed; ObsoleteTag = '25.0'; diff --git a/src/Layers/ES/BaseApp/Service/Local/History/ServiceShipmentHeaderES.TableExt.al b/src/Layers/ES/BaseApp/Service/Local/History/ServiceShipmentHeaderES.TableExt.al index 1f6f6375af5..dbefbfba80a 100644 --- a/src/Layers/ES/BaseApp/Service/Local/History/ServiceShipmentHeaderES.TableExt.al +++ b/src/Layers/ES/BaseApp/Service/Local/History/ServiceShipmentHeaderES.TableExt.al @@ -26,7 +26,6 @@ tableextension 10796 "Service Shipment Header ES" extends "Service Shipment Head { Caption = 'Pay-at Code'; DataClassification = CustomerContent; - TableRelation = Microsoft.Sales.Receivables."Customer Pmt. Address".Code where("Customer No." = field("Bill-to Customer No.")); ObsoleteReason = 'Address is taken from the fields Bill-to Address, Bill-to City, etc.'; ObsoleteState = Removed; ObsoleteTag = '25.0'; diff --git a/src/Layers/ES/BaseApp/Utilities/CopyDocumentMgt.Codeunit.al b/src/Layers/ES/BaseApp/Utilities/CopyDocumentMgt.Codeunit.al index c5c16255d50..8fa2cf4408e 100644 --- a/src/Layers/ES/BaseApp/Utilities/CopyDocumentMgt.Codeunit.al +++ b/src/Layers/ES/BaseApp/Utilities/CopyDocumentMgt.Codeunit.al @@ -45,7 +45,6 @@ using System.Utilities; codeunit 6620 "Copy Document Mgt." { - Permissions = TableData "Cust. Ledger Entry" = rim; trigger OnRun() begin @@ -127,9 +126,6 @@ codeunit 6620 "Copy Document Mgt." #pragma warning restore AA0074 FromDocOccurrenceNo: Integer; FromDocVersionNo: Integer; - Text1100000: Label 'At least one document of %1 No. %2 is closed or in a Bill Group'; - Text1100001: Label 'This will avoid the document to be settled'; - Text1100002: Label 'The posting process of %3 No. %4 wont settle any document'; SkipCopyFromDescription: Boolean; SkipTestCreditLimit: Boolean; WarningDone: Boolean; @@ -708,7 +704,7 @@ codeunit 6620 "Copy Document Mgt." ((FromDocType = "Sales Document Type From"::"Posted Credit Memo") and not (ToSalesHeader."Document Type" in [ToSalesHeader."Document Type"::"Return Order", ToSalesHeader."Document Type"::"Credit Memo"])) then - UpdateCustLedgerEntry(ToSalesHeader, FromDocType, FromDocNo, FromSalesInvHeader); + UpdateCustLedgerEntry(ToSalesHeader, FromDocType, FromDocNo); HandleZeroAmountPostedInvoices(FromSalesInvHeader, ToSalesHeader, FromDocType, FromDocNo); @@ -1266,7 +1262,7 @@ codeunit 6620 "Copy Document Mgt." ((FromDocType = "Purchase Document Type From"::"Posted Credit Memo") and not (ToPurchHeader."Document Type" in [ToPurchHeader."Document Type"::"Return Order", ToPurchHeader."Document Type"::"Credit Memo"])) then - UpdateVendLedgEntry(ToPurchHeader, FromDocType, FromDocNo, FromPurchInvHeader); + UpdateVendLedgEntry(ToPurchHeader, FromDocType, FromDocNo); HandleZeroAmountPostedPurchaseInvoices(FromPurchInvHeader, ToPurchHeader, FromDocType, FromDocNo); @@ -4803,9 +4799,9 @@ codeunit 6620 "Copy Document Mgt." RemainingQtyBase := FromPurchLine."Quantity (Base)"; if RemainingQtyBase <> 0 then begin - if ItemLedgEntry.Positive then - if IsSplitItemLedgEntry(ItemLedgEntry) then - i := 2; + if ItemLedgEntry.Positive then + if IsSplitItemLedgEntry(ItemLedgEntry) then + i := 2; PurchLineBuf[i]."Quantity (Base)" := PurchLineBuf[i]."Quantity (Base)" + RemainingQtyBase; if PurchLineBuf[i]."Qty. per Unit of Measure" = 0 then @@ -6392,97 +6388,6 @@ codeunit 6620 "Copy Document Mgt." exit(CopyThisLine); end; - local procedure TestPurchEfecs(FromDocType: Enum "Gen. Journal Document Type"; var ToPurchHeader: Record "Purchase Header"; var FromPurchInvHeader: Record "Purch. Inv. Header"; var VendorLedgEntry: Record "Vendor Ledger Entry") - var - ErrorCount: Integer; - ApplyVendorEntries: Page "Apply Vendor Entries"; - begin - ErrorCount := 0; - VendorLedgEntry.SetFilter( - "Document Type", '%1|%2', VendorLedgEntry."Document Type"::Invoice, VendorLedgEntry."Document Type"::Bill); - VendorLedgEntry.SetFilter("Document Situation", '<>%1', VendorLedgEntry."Document Situation"::" "); - if not VendorLedgEntry.Find('-') then - exit; - - repeat - if VendorLedgEntry."Document Situation" <> VendorLedgEntry."Document Situation"::Cartera then - if not ((VendorLedgEntry."Document Situation" in - [VendorLedgEntry."Document Situation"::"Closed Documents", - VendorLedgEntry."Document Situation"::"Closed BG/PO"]) and - (VendorLedgEntry."Document Status" = VendorLedgEntry."Document Status"::Rejected)) - then - ErrorCount := ErrorCount + 1; - until VendorLedgEntry.Next() = 0; - if ErrorCount = 0 then - if VendorLedgEntry.Find('-') then - repeat - if VendorLedgEntry."Document Type" = VendorLedgEntry."Document Type"::Bill then begin - ToPurchHeader."Applies-to ID" := FromPurchInvHeader."No."; - ApplyVendorEntries.SetPurch(ToPurchHeader, VendorLedgEntry, ToPurchHeader.FieldNo("Applies-to ID")); - ApplyVendorEntries.SetRecord(VendorLedgEntry); - ApplyVendorEntries.SetTableView(VendorLedgEntry); - ApplyVendorEntries.SetVendApplId(false); - end else begin - ToPurchHeader."Applies-to Doc. Type" := ToPurchHeader."Applies-to Doc. Type"::Invoice; - ToPurchHeader."Applies-to Doc. No." := FromPurchInvHeader."No."; - end - until VendorLedgEntry.Next() = 0 - else - Message(Text1100000 + - Text1100001 + - Text1100002, - Format(FromDocType), - Format(FromPurchInvHeader."No."), - Format(ToPurchHeader."Document Type"), - Format(ToPurchHeader."No.")); - end; - - local procedure TestSalesEfecs(FromDocType: Enum "Gen. Journal Document Type"; var ToSalesHeader: Record "Sales Header"; var FromSalesInvHeader: Record "Sales Invoice Header"; var CustLedgerEntry: Record "Cust. Ledger Entry") - var - ErrorCount: Integer; - ApplyCustEntries: Page "Apply Customer Entries"; - begin - ErrorCount := 0; - CustLedgerEntry.SetFilter( - "Document Type", '%1|%2', CustLedgerEntry."Document Type"::Invoice, CustLedgerEntry."Document Type"::Bill); - CustLedgerEntry.SetFilter("Document Situation", '<>%1', CustLedgerEntry."Document Situation"::" "); - if not CustLedgerEntry.Find('-') then - exit; - - repeat - if CustLedgerEntry."Document Situation" <> CustLedgerEntry."Document Situation"::Cartera then - if not ((CustLedgerEntry."Document Situation" in - [CustLedgerEntry."Document Situation"::"Closed Documents", - CustLedgerEntry."Document Situation"::"Closed BG/PO"]) and - (CustLedgerEntry."Document Status" = CustLedgerEntry."Document Status"::Rejected)) - then - ErrorCount := ErrorCount + 1; - - until CustLedgerEntry.Next() = 0; - if ErrorCount = 0 then - if CustLedgerEntry.Find('-') then - repeat - if CustLedgerEntry."Document Type" = CustLedgerEntry."Document Type"::Bill then begin - ToSalesHeader."Applies-to ID" := FromSalesInvHeader."No."; - ApplyCustEntries.SetSales(ToSalesHeader, CustLedgerEntry, ToSalesHeader.FieldNo("Applies-to ID")); - ApplyCustEntries.SetRecord(CustLedgerEntry); - ApplyCustEntries.SetTableView(CustLedgerEntry); - ApplyCustEntries.SetCustApplId(false); - end else begin - ToSalesHeader."Applies-to Doc. Type" := ToSalesHeader."Applies-to Doc. Type"::Invoice; - ToSalesHeader."Applies-to Doc. No." := FromSalesInvHeader."No."; - end - until CustLedgerEntry.Next() = 0 - else - Message(Text1100000 + - Text1100001 + - Text1100002, - Format(FromDocType), - Format(FromSalesInvHeader."No."), - Format(ToSalesHeader."Document Type"), - Format(ToSalesHeader."No.")); - end; - local procedure CopyDocLines(RecalculateAmount: Boolean; var ToPurchLine: Record "Purchase Line"; var FromPurchLine: Record "Purchase Line") begin if not RecalculateAmount then @@ -6694,8 +6599,6 @@ codeunit 6620 "Copy Document Mgt." begin OnBeforeCopyFieldsFromOldSalesHeader(ToSalesHeader, OldSalesHeader); - ToSalesHeader."Document Type" := OldSalesHeader."Document Type"; - ToSalesHeader."No." := OldSalesHeader."No."; ToSalesHeader."No. Series" := OldSalesHeader."No. Series"; ToSalesHeader."Posting Description" := OldSalesHeader."Posting Description"; ToSalesHeader."Posting No." := OldSalesHeader."Posting No."; @@ -6720,8 +6623,6 @@ codeunit 6620 "Copy Document Mgt." begin OnBeforeCopyFieldsFromOldPurchHeader(ToPurchHeader, OldPurchHeader, IncludeHeader, MoveNegLines); - ToPurchHeader."Document Type" := OldPurchHeader."Document Type"; - ToPurchHeader."No." := OldPurchHeader."No."; ToPurchHeader."No. Series" := OldPurchHeader."No. Series"; ToPurchHeader."Posting Description" := OldPurchHeader."Posting Description"; ToPurchHeader."Posting No." := OldPurchHeader."Posting No."; @@ -7327,7 +7228,16 @@ codeunit 6620 "Copy Document Mgt." Error(Text001, ToPurchHeader."Document Type", ToPurchHeader."No."); end; +#if not CLEAN29 + [Obsolete('Replaced by W1 procedure and codeunit "CRT Copy Document Mgt." in ES layer', '29.0')] procedure UpdateCustLedgerEntry(var ToSalesHeader: Record "Sales Header"; FromDocType: Enum "Gen. Journal Document Type"; FromDocNo: Code[20]; FromSalesInvHeader: Record "Sales Invoice Header") + begin + FromSalesInvHeader.TestField("No.", FromDocNo); + UpdateCustLedgerEntry(ToSalesHeader, FromDocType, FromDocNo); + end; +#endif + + procedure UpdateCustLedgerEntry(var ToSalesHeader: Record "Sales Header"; FromDocType: Enum "Gen. Journal Document Type"; FromDocNo: Code[20]) var CustLedgEntry: Record "Cust. Ledger Entry"; IsHandled: Boolean; @@ -7345,7 +7255,7 @@ codeunit 6620 "Copy Document Mgt." CustLedgEntry.SetRange("Document No.", FromDocNo); CustLedgEntry.SetRange("Customer No.", ToSalesHeader."Bill-to Customer No."); CustLedgEntry.SetRange(Open, true); - CustLedgEntry.SetRange("Document Situation", CustLedgEntry."Document Situation"::" "); + OnUpdateCustLedgEntryOnAfterSetFilters(CustLedgEntry, ToSalesHeader, FromDocType, FromDocNo); if CustLedgEntry.FindFirst() then begin ToSalesHeader."Bal. Account No." := ''; if FromDocType = "Sales Document Type From"::"Posted Invoice" then begin @@ -7361,13 +7271,21 @@ codeunit 6620 "Copy Document Mgt." CustLedgEntry."Accepted Pmt. Disc. Tolerance" := false; CODEUNIT.Run(CODEUNIT::"Cust. Entry-Edit", CustLedgEntry); end else - if FromDocType = "Sales Document Type From"::"Posted Invoice" then - TestSalesEfecs(FromDocType, ToSalesHeader, FromSalesInvHeader, CustLedgEntry); + OnUpdateCustLedgEntryOnNoOpenEntries(CustLedgEntry, ToSalesHeader, FromDocType, FromDocNo); OnAfterUpdateCustLedgerEntry(ToSalesHeader, FromDocType, FromDocNo, CustLedgEntry); end; +#if not CLEAN29 + [Obsolete('Replaced by W1 procedure and codeunit "CRT Copy Document Mgt." in ES layer', '29.0')] procedure UpdateVendLedgEntry(var ToPurchHeader: Record "Purchase Header"; FromDocType: Enum "Gen. Journal Document Type"; FromDocNo: Code[20]; FromPurchInvHeader: Record "Purch. Inv. Header") + begin + FromPurchInvHeader.TestField("No.", FromDocNo); + UpdateVendLedgEntry(ToPurchHeader, FromDocType, FromDocNo); + end; +#endif + + procedure UpdateVendLedgEntry(var ToPurchHeader: Record "Purchase Header"; FromDocType: Enum "Gen. Journal Document Type"; FromDocNo: Code[20]) var VendLedgEntry: Record "Vendor Ledger Entry"; IsHandled: Boolean; @@ -7383,7 +7301,7 @@ codeunit 6620 "Copy Document Mgt." VendLedgEntry.SetRange("Document No.", FromDocNo); VendLedgEntry.SetRange("Vendor No.", ToPurchHeader."Pay-to Vendor No."); VendLedgEntry.SetRange(Open, true); - VendLedgEntry.SetRange("Document Situation", VendLedgEntry."Document Situation"::" "); + OnUpdateVendLedgEntryOnAfterSetFilters(VendLedgEntry, ToPurchHeader, FromDocType, FromDocNo); if VendLedgEntry.FindFirst() then begin if FromDocType = "Purchase Document Type From"::"Posted Invoice" then begin ToPurchHeader."Applies-to Doc. Type" := ToPurchHeader."Applies-to Doc. Type"::Invoice; @@ -7398,8 +7316,7 @@ codeunit 6620 "Copy Document Mgt." VendLedgEntry."Accepted Pmt. Disc. Tolerance" := false; CODEUNIT.Run(CODEUNIT::"Vend. Entry-Edit", VendLedgEntry); end else - if FromDocType = "Purchase Document Type From"::"Posted Invoice" then - TestPurchEfecs(FromDocType, ToPurchHeader, FromPurchInvHeader, VendLedgEntry); + OnUpdateVendLedgEntryOnNoOpenEntries(VendLedgEntry, ToPurchHeader, FromDocType, FromDocNo); end; OnAfterUpdateVendLedgEntry(ToPurchHeader, FromDocNo, FromDocType, VendLedgEntry); @@ -8336,8 +8253,7 @@ codeunit 6620 "Copy Document Mgt." /// A boolean variable indicating if posted deferrals should be copied. /// The next line number for the target document. [IntegrationEvent(false, false)] - local procedure OnBeforeCopyPurchLine(var ToPurchHeader: Record "Purchase Header"; FromPurchHeader: Record "Purchase Header"; FromPurchLine: Record "Purchase Line"; RecalculateAmount: Boolean; var CopyThisLine: Boolean; ToPurchLine: Record "Purchase Line"; MoveNegLines: Boolean; var RoundingLineInserted: Boolean; var Result: Boolean; var IsHandled: Boolean; FromPurchDocType: Enum "Purchase Document Type From"; DocLineNo: Integer; - RecalculateLines: Boolean; var LinesNotCopied: Integer; var CopyPostedDeferral: Boolean; var NextLineNo: Integer) + local procedure OnBeforeCopyPurchLine(var ToPurchHeader: Record "Purchase Header"; FromPurchHeader: Record "Purchase Header"; FromPurchLine: Record "Purchase Line"; RecalculateAmount: Boolean; var CopyThisLine: Boolean; ToPurchLine: Record "Purchase Line"; MoveNegLines: Boolean; var RoundingLineInserted: Boolean; var Result: Boolean; var IsHandled: Boolean; FromPurchDocType: Enum "Purchase Document Type From"; DocLineNo: Integer; RecalculateLines: Boolean; var LinesNotCopied: Integer; var CopyPostedDeferral: Boolean; var NextLineNo: Integer) begin end; @@ -12645,4 +12561,24 @@ codeunit 6620 "Copy Document Mgt." local procedure OnCreateJobPlanningLineOnAfterInitFromJobPlanningLine(var NewJobPlanningLine: Record "Job Planning Line"; JobPlanningLine: Record "Job Planning Line"; SalesLine: Record "Sales Line") begin end; + + [IntegrationEvent(false, false)] + local procedure OnUpdateCustLedgEntryOnAfterSetFilters(var CustLedgerEntry: Record "Cust. Ledger Entry"; var ToSalesHeader: Record "Sales Header"; FromDocType: Enum "Gen. Journal Document Type"; FromDocNo: Code[20]) + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnUpdateVendLedgEntryOnAfterSetFilters(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var ToPurchHeader: Record "Purchase Header"; FromDocType: Enum "Gen. Journal Document Type"; FromDocNo: Code[20]) + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnUpdateCustLedgEntryOnNoOpenEntries(var CustLedgerEntry: Record "Cust. Ledger Entry"; var ToSalesHeader: Record "Sales Header"; FromDocType: Enum "Gen. Journal Document Type"; FromDocNo: Code[20]) + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnUpdateVendLedgEntryOnNoOpenEntries(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var ToPurchHeader: Record "Purchase Header"; FromDocType: Enum "Gen. Journal Document Type"; FromDocNo: Code[20]) + begin + end; } \ No newline at end of file diff --git a/src/Layers/ES/BaseApp/Utilities/DataClassEvalDataCountry.Codeunit.al b/src/Layers/ES/BaseApp/Utilities/DataClassEvalDataCountry.Codeunit.al index 72185c8f040..b79726ec832 100644 --- a/src/Layers/ES/BaseApp/Utilities/DataClassEvalDataCountry.Codeunit.al +++ b/src/Layers/ES/BaseApp/Utilities/DataClassEvalDataCountry.Codeunit.al @@ -5,18 +5,13 @@ namespace Microsoft.Utilities; using Microsoft.EServices.EDocument; -using Microsoft.Finance.ReceivablesPayables; using Microsoft.Finance.VAT.Ledger; using Microsoft.Finance.VAT.Reporting; using Microsoft.Foundation.AuditCodes; using Microsoft.HumanResources.Absence; using Microsoft.HumanResources.Employee; using Microsoft.HumanResources.Payables; -using Microsoft.Purchases.History; -using Microsoft.Purchases.Payables; using Microsoft.Sales.Archive; -using Microsoft.Sales.History; -using Microsoft.Sales.Receivables; using System.Privacy; codeunit 1752 "Data Class. Eval. Data Country" @@ -40,8 +35,6 @@ codeunit 1752 "Data Class. Eval. Data Country" DataClassificationEvalData.SetTableFieldsToNormal(DATABASE::"Alt. Employee Posting Group"); DataClassificationEvalData.SetTableFieldsToNormal(DATABASE::"Employee Posting Group"); DataClassificationEvalData.SetTableFieldsToNormal(DATABASE::"Cause of Absence"); - DataClassificationEvalData.SetTableFieldsToNormal(DATABASE::"Payment Day"); - DataClassificationEvalData.SetTableFieldsToNormal(DATABASE::"Non-Payment Period"); DataClassificationEvalData.SetTableFieldsToNormal(DATABASE::"AEAT Transference Format"); DataClassificationEvalData.SetTableFieldsToNormal(DATABASE::"Statistical Code"); DataClassificationEvalData.SetTableFieldsToNormal(DATABASE::"AEAT Transference Format XML"); @@ -52,24 +45,7 @@ codeunit 1752 "Data Class. Eval. Data Country" DataClassificationEvalData.SetTableFieldsToNormal(DATABASE::"Selected Rev. Charge Grp. 340"); DataClassificationEvalData.SetTableFieldsToNormal(10744); // 340 Declaration Line DataClassificationEvalData.SetTableFieldsToNormal(DATABASE::"Operation Code"); - DataClassificationEvalData.SetTableFieldsToNormal(DATABASE::"Cartera Doc."); - DataClassificationEvalData.SetTableFieldsToNormal(DATABASE::"Posted Cartera Doc."); - DataClassificationEvalData.SetTableFieldsToNormal(DATABASE::"Closed Cartera Doc."); - DataClassificationEvalData.SetTableFieldsToNormal(DATABASE::"Bill Group"); - DataClassificationEvalData.SetTableFieldsToNormal(DATABASE::"Posted Bill Group"); - DataClassificationEvalData.SetTableFieldsToNormal(DATABASE::"Closed Bill Group"); - DataClassificationEvalData.SetTableFieldsToNormal(DATABASE::"BG/PO Comment Line"); DataClassificationEvalData.SetTableFieldsToNormal(DATABASE::"Category Code"); - DataClassificationEvalData.SetTableFieldsToNormal(DATABASE::"Operation Fee"); - DataClassificationEvalData.SetTableFieldsToNormal(DATABASE::"Cartera Report Selections"); - DataClassificationEvalData.SetTableFieldsToNormal(DATABASE::"Cartera Setup"); - DataClassificationEvalData.SetTableFieldsToNormal(DATABASE::Installment); - DataClassificationEvalData.SetTableFieldsToNormal(DATABASE::"Fee Range"); - DataClassificationEvalData.SetTableFieldsToNormal(DATABASE::"Payment Order"); - DataClassificationEvalData.SetTableFieldsToNormal(DATABASE::"Posted Payment Order"); - DataClassificationEvalData.SetTableFieldsToNormal(DATABASE::"Closed Payment Order"); - DataClassificationEvalData.SetTableFieldsToNormal(DATABASE::"Customer Rating"); - DataClassificationEvalData.SetTableFieldsToNormal(DATABASE::Suffix); DataClassificationEvalData.SetTableFieldsToNormal(DATABASE::"No Taxable Entry"); DataClassificationEvalData.SetTableFieldsToNormal(DATABASE::"Sales Header Archive"); OnAfterClassifyCountrySpecificTables(); diff --git a/src/Layers/FI/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al b/src/Layers/FI/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al index 8b3b183c537..5fd4987b842 100644 --- a/src/Layers/FI/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al +++ b/src/Layers/FI/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al @@ -238,6 +238,8 @@ codeunit 11 "Gen. Jnl.-Check Line" exit; GenJournalLine.TestField("Document No.", ErrorInfo.Create()); + + OnAfterTestDocumentNo(GenJournalLine); end; local procedure TestAccountAndBalAccountType(var GenJnlLine: Record "Gen. Journal Line") @@ -1543,6 +1545,15 @@ codeunit 11 "Gen. Jnl.-Check Line" begin end; + /// + /// Integration event raised after validating document number field requirements for journal lines. + /// + /// Journal line record being validated for document number requirements. + [IntegrationEvent(false, false)] + local procedure OnAfterTestDocumentNo(GenJournalLine: Record "Gen. Journal Line") + begin + end; + /// /// Integration event raised before validating document number field requirements for journal lines. /// Enables custom logic to completely override standard document number validation processing. diff --git a/src/Layers/FI/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al b/src/Layers/FI/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al index cbe9a23c70e..ee88bb619b0 100644 --- a/src/Layers/FI/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al +++ b/src/Layers/FI/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al @@ -1,4 +1,4 @@ -// ------------------------------------------------------------------------------------------------ +// ------------------------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // ------------------------------------------------------------------------------------------------ @@ -797,7 +797,7 @@ codeunit 12 "Gen. Jnl.-Post Line" VATEntry."Transaction No." := NextTransactionNo; VATEntry."Sales Tax Connection No." := NextConnectionNo; VATEntry.SetVATDateFromGenJnlLine(GenJnlLine); - OnInsertVATOnAfterAssignVATEntryFields(GenJnlLine, VATEntry, CurrExchRate); + OnInsertVATOnAfterAssignVATEntryFields(GenJnlLine, VATEntry, CurrExchRate, VATPostingSetup); if GenJnlLine."VAT Difference" = 0 then VATDifferenceLCY := 0 @@ -9844,7 +9844,7 @@ codeunit 12 "Gen. Jnl.-Post Line" end; [IntegrationEvent(false, false)] - local procedure OnInsertVATOnAfterAssignVATEntryFields(GenJnlLine: Record "Gen. Journal Line"; var VATEntry: Record "VAT Entry"; CurrExchRate: Record "Currency Exchange Rate") + local procedure OnInsertVATOnAfterAssignVATEntryFields(var GenJnlLine: Record "Gen. Journal Line"; var VATEntry: Record "VAT Entry"; CurrExchRate: Record "Currency Exchange Rate"; var VATPostingSetup: Record "VAT Posting Setup") begin end; diff --git a/src/Layers/FI/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al b/src/Layers/FI/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al index f99ec89923b..74a69c8e832 100644 --- a/src/Layers/FI/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al +++ b/src/Layers/FI/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al @@ -17,6 +17,7 @@ using Microsoft.FixedAssets.FixedAsset; using Microsoft.Foundation.Attachment; using Microsoft.Foundation.AuditCodes; using Microsoft.Foundation.NoSeries; +using Microsoft.Foundation.PaymentTerms; using Microsoft.Intercompany.Partner; using Microsoft.Purchases.History; using Microsoft.Purchases.Remittance; @@ -580,6 +581,13 @@ table 25 "Vendor Ledger Entry" { Caption = 'Prepayment'; } + field(91; "Payment Terms Code"; Code[10]) + { + Caption = 'Payment Terms Code'; + Editable = false; + TableRelation = "Payment Terms"; + ToolTip = 'Specifies the payment terms that determine the due date and payment discount date for the entry.'; + } field(95; "G/L Register No."; Integer) { Caption = 'G/L Register No.'; @@ -985,6 +993,22 @@ table 25 "Vendor Ledger Entry" exit(''); end; + procedure SetAppliesToDocFilters(var GenJnlLine: Record "Gen. Journal Line") + begin + SetRange("Document Type", GenJnlLine."Applies-to Doc. Type"); + SetRange("Document No.", GenJnlLine."Applies-to Doc. No."); + + OnAfterSetAppliesToDocFilters(Rec, GenJnlLine); + end; + + procedure ClearDocumentFilters() + begin + SetRange("Document Type"); + SetRange("Document No."); + + OnAfterClearDocumentFilters(Rec); + end; + procedure CopyFromGenJnlLine(GenJnlLine: Record "Gen. Journal Line") begin "Vendor No." := GenJnlLine."Account No."; @@ -1032,6 +1056,7 @@ table 25 "Vendor Ledger Entry" "Creditor No." := GenJnlLine."Creditor No."; "Payment Reference" := GenJnlLine."Payment Reference"; "Payment Method Code" := GenJnlLine."Payment Method Code"; + "Payment Terms Code" := GenJnlLine."Payment Terms Code"; "Exported to Payment File" := GenJnlLine."Exported to Payment File"; if (GenJnlLine."Remit-to Code" <> '') then "Remit-to Code" := GenJnlLine."Remit-to Code"; @@ -1270,5 +1295,15 @@ table 25 "Vendor Ledger Entry" local procedure OnBeforeUpdateAmountsForApplication(var VendorLedgerEntry: Record "Vendor Ledger Entry"; ApplnDate: Date; ApplnCurrencyCode: Code[10]; RoundAmounts: Boolean; UpdateMaxPaymentTolerance: Boolean; var IsHandled: Boolean) begin end; + + [IntegrationEvent(false, false)] + local procedure OnAfterSetAppliesToDocFilters(var Rec: Record "Vendor Ledger Entry"; var GenJnlLine: Record "Gen. Journal Line") + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnAfterClearDocumentFilters(var Rec: Record "Vendor Ledger Entry") + begin + end; } diff --git a/src/Layers/FI/BaseApp/Purchases/Posting/PurchPost.Codeunit.al b/src/Layers/FI/BaseApp/Purchases/Posting/PurchPost.Codeunit.al index c29ebb02d40..1c112bfa3e1 100644 --- a/src/Layers/FI/BaseApp/Purchases/Posting/PurchPost.Codeunit.al +++ b/src/Layers/FI/BaseApp/Purchases/Posting/PurchPost.Codeunit.al @@ -184,10 +184,7 @@ codeunit 90 "Purch.-Post" /// The purchase header of the document that is being posted. /// Accumulates drop-shipment buffer records during posting. /// Set to false during posting if any line is partially invoiced. - local procedure ProcessPosting( - var PurchHeader: Record "Purchase Header"; - var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; - var EverythingInvoiced: Boolean) + local procedure ProcessPosting(var PurchHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var EverythingInvoiced: Boolean) var IgnoreCommit: Boolean; begin @@ -328,6 +325,10 @@ codeunit 90 "Purch.-Post" OnRunOnBeforeMakeInventoryAdjustment(PurchHeader, GenJnlPostLine, ItemJnlPostLine, PreviewMode, PurchRcptHeader, PurchInvHeader, IsHandled); if not IsHandled then MakeInventoryAdjustment(); + + Clear(GenJnlPostLine); + + OnAfterProcessPostingLines(PurchHeader, TotalPurchLine, VendLedgEntry, InvoicePostingParameters, SuppressCommit, EverythingInvoiced, Window); end; var @@ -847,6 +848,7 @@ codeunit 90 "Purch.-Post" begin if not DocumentIsReadyToBeChecked then PrepareCheckDocument(PurchHeader); + ErrorMessageMgt.PushContext(ErrorContextElement, PurchHeader.RecordId, 0, CheckPurchHeaderMsg); CheckMandatoryHeaderFields(PurchHeader); GetGLSetup(); @@ -4057,6 +4059,8 @@ codeunit 90 "Purch.-Post" if PurchaseHeader."Pay-to Contact No." <> '' then if Contact.Get(PurchaseHeader."Pay-to Contact No.") then Contact.CheckIfPrivacyBlocked(true); + + OnAfterCheckPostRestrictions(PurchaseHeader); end; local procedure CheckFAPostingPossibility(PurchaseHeader: Record "Purchase Header") @@ -5324,7 +5328,7 @@ codeunit 90 "Purch.-Post" if PurchHeader."Prices Including VAT" then PrepmtVATBaseToDeduct := Round( - (TotalPrepmtAmtToDeduct + PurchLine."Prepmt Amt to Deduct") / (1 + PurchLine."Prepayment VAT %" / 100), + (TotalPrepmtAmtToDeduct + PurchLine."Prepmt Amt to Deduct") / (1 + PurchLine.GetPrepaymentVATPct() / 100), Currency."Amount Rounding Precision") - Round( TotalPrepmtAmtToDeduct / (1 + PurchLine.GetPrepaymentVATPct() / 100), @@ -8974,169 +8978,404 @@ codeunit 90 "Purch.-Post" ItemsToAdjust.Add(Item2."No."); end; + /// + /// Event raised by OnArchiveSalesOrdersOnBeforeSalesOrderLineModify. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnArchiveSalesOrdersOnBeforeSalesOrderLineModify(var SalesOrderLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnAfterBlanketOrderPurchLineModify. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnAfterBlanketOrderPurchLineModify(var BlanketOrderPurchLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnAfterCheckPurchDoc. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the ErrorMessageMgt parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckPurchDoc(var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; WhseShip: Boolean; WhseReceive: Boolean; PreviewMode: Boolean; var ErrorMessageMgt: Codeunit "Error Message Management") begin end; + /// + /// Event raised by OnAfterCheckAndUpdate. + /// + /// + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckAndUpdate(var PurchaseHeader: Record "Purchase Header"; CommitIsSuppressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterCheckTrackingSpecification. + /// + /// + /// Specifies the TempItemPurchaseLine parameter. [IntegrationEvent(true, false)] local procedure OnAfterCheckTrackingSpecification(PurchaseHeader: Record "Purchase Header"; var TempItemPurchaseLine: Record "Purchase Line" temporary); begin end; + /// + /// Event raised by OnAfterCheckTrackingAndWarehouseForReceive. + /// + /// + /// Specifies the Receive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckTrackingAndWarehouseForReceive(var PurchaseHeader: Record "Purchase Header"; var Receive: Boolean; CommitIsSupressed: Boolean; var TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterCheckTrackingAndWarehouseForShip. + /// + /// + /// Specifies the Ship parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchaseLine parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckTrackingAndWarehouseForShip(var PurchaseHeader: Record "Purchase Header"; var Ship: Boolean; CommitIsSupressed: Boolean; var TempPurchaseLine: Record "Purchase Line" temporary; var TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary) begin end; + /// + /// Event raised by OnAfterCreateJobPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCreateJobPurchLine(var JobPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterCreateWhseJnlLine. + /// + /// + /// Specifies the TempWhseJnlLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCreateWhseJnlLine(PurchaseLine: Record "Purchase Line"; var TempWhseJnlLine: record "Warehouse Journal Line" temporary) begin end; + /// + /// Event raised by OnAfterDeleteAfterPosting. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterDeleteAfterPosting(PurchHeader: Record "Purchase Header"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterDeleteApprovalEntries. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchRcptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterDeleteApprovalEntries(var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; PurchRcptHeader: Record "Purch. Rcpt. Header") begin end; + /// + /// Event raised by OnAfterDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. [IntegrationEvent(false, false)] local procedure OnAfterDivideAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping; PurchLineQty: Decimal; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary) begin end; + /// + /// Event raised by OnAfterGetAmountRoundingPrecisionInLCY. + /// + /// + /// Specifies the DocNo parameter. + /// Specifies the CurrencyCode parameter. + /// Specifies the AmountRoundingPrecision parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetAmountRoundingPrecisionInLCY(DocType: Enum "Purchase Document Type"; DocNo: Code[20]; CurrencyCode: Code[10]; var AmountRoundingPrecision: Decimal) begin end; + /// + /// Event raised by OnAfterGetLineDataFromOrder. + /// + /// + /// Specifies the PurchOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetLineDataFromOrder(var PurchLine: Record "Purchase Line"; PurchOrderLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterGetPurchSetup. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterGetPurchSetup(var PurchSetup: Record "Purchases & Payables Setup") begin end; + /// + /// Event raised by OnAfterModifyTempLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterModifyTempLine(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostPurchaseDoc. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PurchRcpHdrNo parameter. + /// Specifies the RetShptHdrNo parameter. + /// Specifies the PurchInvHdrNo parameter. + /// Specifies the PurchCrMemoHdrNo parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] procedure OnAfterPostPurchaseDoc(var PurchaseHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PurchRcpHdrNo: Code[20]; RetShptHdrNo: Code[20]; PurchInvHdrNo: Code[20]; PurchCrMemoHdrNo: Code[20]; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterPostPurchaseDocDropShipment. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostPurchaseDocDropShipment(SalesShptNo: Code[20]; CommitIsSupressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterRetrieveInvoiceTrackingSpecificationIfExists. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. [IntegrationEvent(false, false)] local procedure OnAfterRetrieveInvoiceTrackingSpecificationIfExists(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TrackingSpecificationExists: Boolean) begin end; + /// + /// Event raised by OnAfterUpdatePostingNos. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePostingNos(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; PreviewMode: Boolean; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnAfterCheckMandatoryFields. + /// + /// + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckMandatoryFields(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterFinalizePosting. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterFinalizePosting(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShptHeader: Record "Return Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PreviewMode: Boolean; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterFinalizePostingOnBeforeCommit. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnAfterFinalizePostingOnBeforeCommit(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShptHeader: Record "Return Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PreviewMode: Boolean; CommitIsSupressed: Boolean; EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnAfterIncrAmount. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterIncrAmount(var TotalPurchLine: Record "Purchase Line"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterInitAssocItemJnlLine. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the QtyToBeShipped parameter. [IntegrationEvent(false, false)] local procedure OnAfterInitAssocItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; PurchaseHeader: Record "Purchase Header"; QtyToBeShipped: Decimal) begin end; + /// + /// Event raised by OnAfterInsertCombinedSalesShipment. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterInsertCombinedSalesShipment(var SalesShipmentHeader: Record "Sales Shipment Header") begin end; + /// + /// Event raised by OnAfterInsertPostedHeaders. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchSetup parameter. + /// Specifies the Window parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertPostedHeaders(var PurchaseHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShptHeader: Record "Return Shipment Header"; var PurchSetup: Record "Purchases & Payables Setup"; var Window: Dialog) begin end; + /// + /// Event raised by OnAfterInsertReceiptHeader. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertReceiptHeader(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var TempWhseRcptHeader: Record "Warehouse Receipt Header" temporary; WhseReceive: Boolean; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnAfterInsertReturnShipmentHeader. + /// + /// + /// Specifies the ReturnShptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertReturnShipmentHeader(var PurchHeader: Record "Purchase Header"; var ReturnShptHeader: Record "Return Shipment Header") begin end; + /// + /// Event raised by OnAfterInvoiceRoundingAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TotalPurchaseLine parameter. + /// Specifies the UseTempData parameter. + /// Specifies the InvoiceRoundingAmount parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the RoundingLineNo parameter. [IntegrationEvent(false, false)] local procedure OnAfterInvoiceRoundingAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TotalPurchaseLine: Record "Purchase Line"; UseTempData: Boolean; InvoiceRoundingAmount: Decimal; CommitIsSuppressed: Boolean; RoundingLineInserted: Boolean; RoundingLineNo: Integer) begin end; + /// + /// Event raised by OnAfterInsertedPrepmtVATBaseToDeduct. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PrepmtLineNo parameter. + /// Specifies the TotalPrepmtAmtToDeduct parameter. + /// Specifies the TempPrepmtDeductLCYPurchLine parameter. + /// Specifies the PrepmtVATBaseToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertedPrepmtVATBaseToDeduct(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; PrepmtLineNo: Integer; TotalPrepmtAmtToDeduct: Decimal; var TempPrepmtDeductLCYPurchLine: Record "Purchase Line" temporary; var PrepmtVATBaseToDeduct: Decimal) begin end; + /// + /// Event raised by OnAfterPostAssocItemJnlLine. + /// + /// + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the SalesLineOrder parameter. + /// Specifies the SalesOrderHeader parameter. + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostAssocItemJnlLine(var ItemJnlLine: Record "Item Journal Line"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var SalesLineOrder: Record "Sales Line"; var SalesOrderHeader: Record "Sales Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAfterPostCombineSalesOrderShipment. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostCombineSalesOrderShipment(var PurchaseHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin @@ -9149,275 +9388,680 @@ codeunit 90 "Purch.-Post" end; [Obsolete('Moved to codeunit MfgPurchPost', '27.0')] + /// + /// Event raised by OnAfterPostItemJnlLineCopyProdOrder. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLineCopyProdOrder(var ItemJnlLine: Record "Item Journal Line"; PurchLine: Record "Purchase Line"; PurchRcptHeader: Record "Purch. Rcpt. Header"; QtyToBeReceived: Decimal; CommitIsSupressed: Boolean; QtyToBeInvoiced: Decimal) begin end; #endif + /// + /// Event raised by OnAfterPostItemJnlLineItemCharges. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLineItemCharges(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerOrder. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerOrder(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemTrackingLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemTrackingLine(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnAfterPostUpdateCreditMemoLine. + /// + /// [IntegrationEvent(true, false)] local procedure OnAfterPostUpdateCreditMemoLine(var PurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPostUpdateInvoiceLine. + /// + /// [IntegrationEvent(true, false)] local procedure OnAfterPostUpdateInvoiceLine(var PurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPurchRcptHeaderInsert. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchRcptHeaderInsert(var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterPurchRcptLineInsert. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchRcptLineInsert(PurchaseLine: Record "Purchase Line"; var PurchRcptLine: Record "Purch. Rcpt. Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; PurchInvHeader: Record "Purch. Inv. Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; PurchRcptHeader: Record "Purch. Rcpt. Header"; TempWhseRcptHeader: Record "Warehouse Receipt Header"; xPurchLine: Record "Purchase Line"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPurchInvHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchInvHeaderInsert(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterPurchInvLineInsert. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchInvLineInsert(var PurchInvLine: Record "Purch. Inv. Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; PurchHeader: Record "Purchase Header"; PurchRcptHeader: Record "Purch. Rcpt. Header"; TempWhseRcptHeader: Record "Warehouse Receipt Header"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnAfterPurchCrMemoHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchCrMemoHeaderInsert(var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterPurchCrMemoLineInsert. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchCrMemoLineInsert(var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var PurchaseHeader: Record "Purchase Header"; GenJnlLineDocNo: Code[20]; RoundingLineInserted: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnAfterReturnShptHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterReturnShptHeaderInsert(var ReturnShptHeader: Record "Return Shipment Header"; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterReturnShptLineInsert. + /// + /// + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempWhseShptHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the xPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterReturnShptLineInsert(var ReturnShptLine: Record "Return Shipment Line"; ReturnShptHeader: Record "Return Shipment Header"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; var TempWhseShptHeader: Record "Warehouse Shipment Header" temporary; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; xPurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterRevertWarehouseEntry. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterRevertWarehouseEntry(var TempWhseJnlLine: Record "Warehouse Journal Line" temporary) begin end; + /// + /// Event raised by OnAfterSalesShptHeaderInsert. + /// + /// + /// Specifies the SalesOrderHeader parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterSalesShptHeaderInsert(var SalesShipmentHeader: Record "Sales Shipment Header"; SalesOrderHeader: Record "Sales Header"; CommitIsSuppressed: Boolean; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterSalesShptLineInsert. + /// + /// + /// Specifies the SalesShptHeader parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the DropShptPostBuffer parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnAfterSalesShptLineInsert(var SalesShptLine: Record "Sales Shipment Line"; SalesShptHeader: Record "Sales Shipment Header"; SalesOrderLine: Record "Sales Line"; CommitIsSuppressed: Boolean; DropShptPostBuffer: Record "Drop Shpt. Post. Buffer"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPostAccICLine. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostAccICLine(PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnAfterPostItemLine. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(true, false)] local procedure OnAfterPostItemLine(PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; PurchaseHeader: Record "Purchase Header"; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnAfterPostItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the WhseJnlRegisterLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseRcptHeader parameter. + /// Specifies the WhseShptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var WhseJnlRegisterLine: Codeunit "Whse. Jnl.-Register Line"; var WhseReceive: Boolean; var WhseShip: Boolean; var WhseRcptHeader: Record "Warehouse Receipt Header"; var WhseShptHeader: Record "Warehouse Shipment Header") begin end; + /// + /// Event raised by OnAfterPostWhseJnlLine. + /// + /// + /// Specifies the ItemLedgEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostWhseJnlLine(var PurchaseLine: Record "Purchase Line"; ItemLedgEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterPostUpdateOrderLine. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostUpdateOrderLine(var PurchaseLine: Record "Purchase Line"; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterPostInvoice. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the VendorLedgerEntry parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostInvoice(var PurchHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; TotalPurchLine: Record "Purchase Line"; TotalPurchLineLCY: Record "Purchase Line"; CommitIsSupressed: Boolean; var VendorLedgerEntry: Record "Vendor Ledger Entry") begin end; + /// + /// Event raised by OnAfterPostPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchInvLine parameter. + /// Specifies the PurchCrMemoLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLineACY parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostPurchLine(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var PurchInvLine: Record "Purch. Inv. Line"; var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchLineACY: Record "Purchase Line"; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; SrcCode: Code[10]; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterProcessPurchLines. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the PurchLinesProcessed parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnAfterProcessPurchLines(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShipmentHeader: Record "Return Shipment Header"; WhseShip: Boolean; WhseReceive: Boolean; var PurchLinesProcessed: Boolean; CommitIsSuppressed: Boolean; EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnAfterProcessAssocItemJnlLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnAfterProcessAssocItemJnlLine(var PurchLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnAfterReleasePurchDoc. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterReleasePurchDoc(var PurchHeader: Record "Purchase Header"); begin end; + /// + /// Event raised by OnAfterRefreshTempLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterRefreshTempLines(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterResetTempLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterResetTempLines(var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterRestorePurchaseHeader. + /// + /// + /// Specifies the PurchaseHeaderCopy parameter. [IntegrationEvent(false, false)] local procedure OnAfterRestorePurchaseHeader(var PurchaseHeader: Record "Purchase Header"; PurchaseHeaderCopy: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterReverseAmount. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterReverseAmount(var PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterRoundAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchLineQty parameter. [IntegrationEvent(false, false)] local procedure OnAfterRoundAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchLineQty: Decimal) begin end; + /// + /// Event raised by OnAfterSaveTempWhseSplitSpec. + /// + /// + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnAfterSaveTempWhseSplitSpec(PurchaseLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAfterSetPostingFlags. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterSetPostingFlags(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterTestPurchLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(false, false)] local procedure OnAfterTestPurchLine(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateInvoicedQtyOnPurchRcptLine. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoicedQtyOnPurchRcptLine(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchRcptLine: Record "Purch. Rcpt. Line"; var PurchaseLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; TrackingSpecificationExists: Boolean; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; var PurchaseHeader: Record "Purchase Header"; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateInvoicedQtyOnReturnShptLine. + /// + /// + /// Specifies the ReturnShipmentLine parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoicedQtyOnReturnShptLine(PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShipmentLine: Record "Return Shipment Line"; PurchaseLine: Record "Purchase Line"; TempTrackingSpecification: Record "Tracking Specification" temporary; TrackingSpecificationExists: Boolean; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnAfterUpdateLastPostingNos. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterUpdateLastPostingNos(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterUpdatePurchLineBeforePost. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the RoundingLineInserted parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePurchLineBeforePost(var PurchaseLine: Record "Purchase Line"; WhseShip: Boolean; WhseReceive: Boolean; PurchaseHeader: Record "Purchase Header"; RoundingLineInserted: Boolean) begin end; + /// + /// Event raised by OnAfterUpdatePrepmtPurchLineWithRounding. + /// + /// + /// Specifies the TotalRoundingAmount parameter. + /// Specifies the TotalPrepmtAmount parameter. + /// Specifies the FinalInvoice parameter. + /// Specifies the PricesInclVATRoundingAmount parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePrepmtPurchLineWithRounding(var PrepmtPurchLine: Record "Purchase Line"; TotalRoundingAmount: array[2] of Decimal; TotalPrepmtAmount: array[2] of Decimal; FinalInvoice: Boolean; PricesInclVATRoundingAmount: array[2] of Decimal; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterUpdatePurchaseHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePurchaseHeader(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; GenJnlLineDocType: Integer; GenJnlLineDocNo: Code[20]; PreviewMode: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterUpdatePurchLineDimSetIDFromAppliedEntry. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePurchLineDimSetIDFromAppliedEntry(var PurchLineToPost: Record "Purchase Line"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterValidatePostingAndDocumentDate. + /// + /// + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterValidatePostingAndDocumentDate(var PurchaseHeader: Record "Purchase Header"; CommitIsSuppressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnBeforeAddAssociatedOrderLineToBuffer. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAddAssociatedOrderLineToBuffer(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeModifyTempLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeModifyTempLine(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnModifyTempLineOnBeforeTransferFields. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnBeforeTransferFields(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeAdjustQuantityRoundingForReceipt. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustQuantityRoundingForReceipt(PurchRcptLine: Record "Purch. Rcpt. Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeArchiveUnpostedOrder. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the OrderArchived parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeArchiveUnpostedOrder(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; var OrderArchived: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnBeforeArchiveSalesOrders. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeArchiveSalesOrders(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeBlanketOrderPurchLineModify. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnBeforeBlanketOrderPurchLineModify(var BlanketOrderPurchLine: Record "Purchase Line"; PurchLine: Record "Purchase Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcInvoice. + /// + /// + /// Specifies the NewInvoice parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcInvoice(var PurchHeader: Record "Purchase Header"; var NewInvoice: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalculateAmountsInclVAT. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalculateAmountsInclVAT(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalculateInvoiceEverything. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the InvoiceEverything parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalculateInvoiceEverything(var TempPurchaseLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; var InvoiceEverything: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcLineAmountAndLineDiscountAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Currency parameter. [IntegrationEvent(true, false)] local procedure OnBeforeCalcLineAmountAndLineDiscountAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; PurchLineQty: Decimal; var IsHandled: Boolean; Currency: Record Currency) begin @@ -9425,163 +10069,379 @@ codeunit 90 "Purch.-Post" #if not CLEAN28 [Obsolete('This event is no longer used.', '28.0')] + /// + /// Event raised by OnBeforeCheckDropShipmentReceiveInvoice. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforeCheckDropShipmentReceiveInvoice(PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; #endif + /// + /// Event raised by OnBeforeCheckDocumentTotalAmounts. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforeCheckDocumentTotalAmounts(PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckExternalDocumentNumber. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the Handled parameter. + /// Specifies the DocType parameter. + /// Specifies the ExtDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckExternalDocumentNumber(VendorLedgerEntry: Record "Vendor Ledger Entry"; PurchaseHeader: Record "Purchase Header"; var Handled: Boolean; DocType: Option; ExtDocNo: Text[35]; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeCheckExtDocNo. + /// + /// + /// Specifies the DocumentType parameter. + /// Specifies the ExtDocNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckExtDocNo(PurchaseHeader: Record "Purchase Header"; DocumentType: Enum "Gen. Journal Document Type"; ExtDocNo: Text[35]; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckGLAccDirectPosting. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckGLAccDirectPosting(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckICDocumentDuplicatePosting. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckICDocumentDuplicatePosting(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckIfInvPutawayExists. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckIfInvPutawayExists(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckHeaderPostingType. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckHeaderPostingType(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckFieldsOnReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckFieldsOnReturnShipmentLine(var ReturnShipmentLine: Record "Return Shipment Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterCheckFieldsOnReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckFieldsOnReturnShipmentLine(ReturnShipmentLine: Record "Return Shipment Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeCheckPrepmtAmtToDeduct. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPrepmtAmtToDeduct(PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckPurchRcptLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckTrackingSpecification. + /// + /// + /// Specifies the TempItemPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckTrackingSpecification(PurchHeader: Record "Purchase Header"; var TempItemPurchLine: Record "Purchase Line" temporary); begin end; + /// + /// Event raised by OnBeforeCheckTrackingAndWarehouseForShip. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the Ship parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckTrackingAndWarehouseForShip(PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var Ship: Boolean; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeCheckWarehouse. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckWarehouse(var TempItemPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckWhseRcptLineQtyToReceive. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckWhseRcptLineQtyToReceive(var WhseRcptLine: Record "Warehouse Receipt Line"; var PurchRcptLine: Record "Purch. Rcpt. Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeClearRemAmt. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlRollRndg parameter. + /// Specifies the RemAmt parameter. + /// Specifies the RemDiscAmt parameter. [IntegrationEvent(false, false)] local procedure OnBeforeClearRemAmt(PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; ItemJnlRollRndg: Boolean; var RemAmt: Decimal; var RemDiscAmt: Decimal) begin end; + /// + /// Event raised by OnBeforeCreatePositiveEntry. + /// + /// + /// Specifies the JobNo parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePositiveEntry(var WarehouseJournalLine: Record "Warehouse Journal Line"; JobNo: Code[20]; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCreatePostedWhseRcptHeader. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedWhseRcptHeader(var PostedWhseReceiptHeader: Record "Posted Whse. Receipt Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeCreatePostedWhseShptHeader. + /// + /// + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedWhseShptHeader(var PostedWhseShipmentHeader: Record "Posted Whse. Shipment Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeCreatePostedWhseShptLine. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedWhseShptLine(PurchLine: Record "Purchase Line"; ReturnShptLine: Record "Return Shipment Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCreatePostedRcptLine. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedRcptLine(PurchLine: Record "Purchase Line"; ReturnShptLine: Record "Return Shipment Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCreateWhseLineFromReturnShptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreateWhseLineFromReturnShptLine(var ReturnShptLine: Record "Return Shipment Line"; PurchLine: Record "Purchase Line"; CostBaseAmount: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCommitAndUpdateAnalysisVeiw. + /// + /// + /// Specifies the SuppressCommit parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCommitAndUpdateAnalysisVeiw(InvtPickPutaway: Boolean; SuppressCommit: Boolean; PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCopyAndCheckItemChargeTempPurchLine. + /// + /// + /// Specifies the TempPrepmtPurchaseLine parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the IsHandled parameter. + /// Specifies the AssignError parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCopyAndCheckItemChargeTempPurchLine(PurchaseHeader: Record "Purchase Header"; var TempPrepmtPurchaseLine: Record "Purchase Line" temporary; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean; var AssignError: Boolean) begin end; + /// + /// Event raised by OnBeforeCreatePrepmtLines. + /// + /// + /// Specifies the TempPrepmtPurchaseLine parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePrepmtLines(PurchaseHeader: Record "Purchase Header"; var TempPrepmtPurchaseLine: Record "Purchase Line" temporary; CompleteFunctionality: Boolean; var IsHandled: Boolean; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeDeleteAfterPosting. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the SkipDelete parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDeleteAfterPosting(var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var SkipDelete: Boolean; CommitIsSupressed: Boolean; var TempPurchLine: Record "Purchase Line" temporary; var TempPurchLineGlobal: Record "Purchase Line" temporary; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnBeforeDeleteApprovalEntries. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDeleteApprovalEntries(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnBeforeDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDivideAmount(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping; var PurchLineQty: Decimal; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeFinalizePosting. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeFinalizePosting(var PurchaseHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var EverythingInvoiced: Boolean; CommitIsSupressed: Boolean; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnBeforeGetInvoicePostingSetup. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetInvoicePostingSetup(var InvoicePostingInterface: Interface "Invoice Posting"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInitAssocItemJnlLine. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInitAssocItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; PurchaseHeader: Record "Purchase Header") begin @@ -9589,97 +10449,265 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforeInvoiceRoundingAmount. + /// + /// + /// Specifies the TotalAmountIncludingVAT parameter. + /// Specifies the UseTempData parameter. + /// Specifies the InvoiceRoundingAmount parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInvoiceRoundingAmount(PurchHeader: Record "Purchase Header"; TotalAmountIncludingVAT: Decimal; UseTempData: Boolean; var InvoiceRoundingAmount: Decimal; CommitIsSupressed: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeInsertICGenJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ICGenJnlLineNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertICGenJnlLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var ICGenJnlLineNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertPostedHeaders. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertPostedHeaders(var PurchaseHeader: Record "Purchase Header"; var WarehouseReceiptHeader: Record "Warehouse Receipt Header"; var WarehouseShipmentHeader: Record "Warehouse Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertRcptEntryRelation. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the TempTrackingSpecificationInv parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertRcptEntryRelation(PurchaseLine: Record "Purchase Line"; var PurchRcptLine: Record "Purch. Rcpt. Line"; var TempHandlingSpecification: Record "Tracking Specification" temporary; TempTrackingSpecificationInv: Record "Tracking Specification" temporary; ItemLedgShptEntryNo: Integer; var Result: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertReceiptHeader. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReceiptHeader(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var IsHandled: Boolean; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertReceiptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReceiptLine(var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchLine: Record "Purchase Line"; var CostBaseAmount: Decimal; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeInsertReturnShipmentLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReturnShipmentLine(var ReturnShptHeader: Record "Return Shipment Header"; var PurchLine: Record "Purchase Line"; var CostBaseAmount: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertTrackingSpecification(PurchHeader: Record "Purchase Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeItemJnlPostLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. + /// Specifies the WhseReceiptHeader parameter. + /// Specifies the WhseShipmentHeader parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. [IntegrationEvent(true, false)] local procedure OnBeforeItemJnlPostLine(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; var IsHandled: Boolean; WhseReceiptHeader: Record "Warehouse Receipt Header"; WhseShipmentHeader: Record "Warehouse Shipment Header"; TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnBeforeIsEndLoopForShippedNotInvoiced. + /// + /// + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the ReturnShptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the PurchLine parameter. + /// Specifies the EndLoop parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeIsEndLoopForShippedNotInvoiced(RemQtyToBeInvoiced: Decimal; TrackingSpecificationExists: Boolean; var ReturnShptLine: Record "Return Shipment Line"; var InvoicingTrackingSpecification: Record "Tracking Specification"; PurchLine: Record "Purchase Line"; var EndLoop: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeIsEndLoopForReceivedNotInvoiced. + /// + /// + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PurchRcptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the PurchLine parameter. + /// Specifies the EndLoop parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeIsEndLoopForReceivedNotInvoiced(RemQtyToBeInvoiced: Decimal; TrackingSpecificationExists: Boolean; var PurchRcptLine: Record "Purch. Rcpt. Line"; var InvoicingTrackingSpecification: Record "Tracking Specification"; PurchLine: Record "Purchase Line"; var EndLoop: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeGetPurchRcptLineFromTrackingOrUpdateItemEntryRelation. + /// + /// + /// Specifies the TrackingSpecification parameter. + /// Specifies the ItemEntryRelation parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetPurchRcptLineFromTrackingOrUpdateItemEntryRelation(var PurchRcptLine: Record "Purch. Rcpt. Line"; var TrackingSpecification: Record "Tracking Specification"; var ItemEntryRelation: Record "Item Entry Relation"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeGetPurchLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeGetPurchLines(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeLockTables. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempPurchaseLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnBeforeLockTables(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSuppressed: Boolean; var IsHandled: Boolean; var TempPurchaseLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforePostLines. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostLines(var PurchLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSupressed: Boolean; var TempPurchLineGlobal: Record "Purchase Line" temporary; var TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary) begin end; + /// + /// Event raised by OnBeforePostDistributeItemCharge. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemLedgerEntry parameter. + /// Specifies the NonDistrQuantity parameter. + /// Specifies the NonDistrQtyToAssign parameter. + /// Specifies the NonDistrAmountToAssign parameter. + /// Specifies the Sign parameter. + /// Specifies the IndirectCostPct parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostDistributeItemCharge(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var TempItemLedgerEntry: Record "Item Ledger Entry"; NonDistrQuantity: Decimal; NonDistrQtyToAssign: Decimal; NonDistrAmountToAssign: Decimal; Sign: Decimal; IndirectCostPct: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostInvoice. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Window parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the InvoicePostingInterface parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostInvoice(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSupressed: Boolean; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var IsHandled: Boolean; var Window: Dialog; HideProgressWindow: Boolean; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line"; var InvoicePostingInterface: Interface "Invoice Posting"; var InvoicePostingParameters: Record "Invoice Posting Parameters"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnBeforePostGLAccICLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ICGenJnlLineNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostGLAccICLine(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ICGenJnlLineNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerSalesShpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerSalesShpt(var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin @@ -9692,98 +10720,245 @@ codeunit 90 "Purch.-Post" end; [Obsolete('Moved to codeunit MfgPurchPost', '27.0')] + /// + /// Event raised by OnBeforePostItemJnlLineCopyProdOrder. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemJnlLineCopyProdOrder(PurchLine: Record "Purchase Line"; var ItemJnlLine: Record "Item Journal Line"; QtyToBeReceived: Decimal; QtyToBeInvoiced: Decimal; CommitIsSupressed: Boolean; var IsHandled: Boolean) begin end; #endif + /// + /// Event raised by OnBeforePostPurchaseDoc. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostPurchaseDoc(var PurchaseHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSupressed: Boolean; var HideProgressWindow: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostCommitPurchaseDoc. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostCommitPurchaseDoc(var PurchaseHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PreviewMode: Boolean; var ModifyHeader: Boolean; var CommitIsSupressed: Boolean; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeProcessAssocItemJnlLine. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the SourceCode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeProcessAssocItemJnlLine(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary; ItemLedgShptEntryNo: Integer; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; SourceCode: Code[10]) begin end; + /// + /// Event raised by OnBeforePrepareCheckDocument. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforePrepareCheckDocument(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforePurchLineDeleteAll. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchLineDeleteAll(var PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforePurchRcptHeaderInsert. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchRcptHeaderInsert(var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseReceive: Boolean; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseShip: Boolean) begin end; + /// + /// Event raised by OnBeforePurchRcptLineInsert. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PostedWhseRcptLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemLedgShptEntryNo parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchRcptLineInsert(var PurchRcptLine: Record "Purch. Rcpt. Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean; PostedWhseRcptLine: Record "Posted Whse. Receipt Line"; var IsHandled: Boolean; ItemLedgShptEntryNo: Integer) begin end; + /// + /// Event raised by OnBeforePurchInvHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchInvHeaderInsert(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnBeforePurchInvLineInsert. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchInvLineInsert(var PurchInvLine: Record "Purch. Inv. Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePurchCrMemoHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchCrMemoHeaderInsert(var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnBeforePurchCrMemoLineInsert. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchCrMemoLineInsert(var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeReleasePurchDoc. + /// + /// + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeReleasePurchDoc(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean); begin end; + /// + /// Event raised by OnBeforeReturnShptHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(false, false)] local procedure OnBeforeReturnShptHeaderInsert(var ReturnShptHeader: Record "Return Shipment Header"; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseReceive: Boolean; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseShip: Boolean) begin end; + /// + /// Event raised by OnBeforeReturnShptLineInsert. + /// + /// + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeReturnShptLineInsert(var ReturnShptLine: Record "Return Shipment Line"; var ReturnShptHeader: Record "Return Shipment Header"; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnBeforeRoundAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchLineQty parameter. [IntegrationEvent(false, false)] local procedure OnBeforeRoundAmount(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchLineQty: Decimal) begin end; + /// + /// Event raised by OnBeforeSalesShptHeaderInsert. + /// + /// + /// Specifies the SalesOrderHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSalesShptHeaderInsert(var SalesShptHeader: Record "Sales Shipment Header"; SalesOrderHeader: Record "Sales Header"; CommitIsSupressed: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeSalesShptLineInsert. + /// + /// + /// Specifies the SalesShptHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the DropShptPostBuffer parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSalesShptLineInsert(var SalesShptLine: Record "Sales Shipment Line"; SalesShptHeader: Record "Sales Shipment Header"; SalesLine: Record "Sales Line"; CommitIsSupressed: Boolean; DropShptPostBuffer: Record "Drop Shpt. Post. Buffer"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSetCheckApplToItemEntry. + /// + /// + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSetCheckApplToItemEntry(var PurchaseLine: Record "Purchase Line"; var Result: Boolean; var IsHandled: Boolean; PurchaseHeader: Record "Purchase Header"; ItemJournalLine: Record "Item Journal Line") begin @@ -9791,6 +10966,17 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforePostCombineSalesOrderShipment. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostCombineSalesOrderShipment(var PurchaseHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesShipmentHeader: Record "Sales Shipment Header"; var ItemLedgShptEntryNo: Integer; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempHandlingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean) begin @@ -9798,241 +10984,616 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforePostItemJnlLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeReceivedBase parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the ItemChargeNo parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the Result parameter. + /// Specifies the WarehouseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLine(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var QtyToBeReceived: Decimal; var QtyToBeReceivedBase: Decimal; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; var ItemLedgShptEntryNo: Integer; var ItemChargeNo: Code[20]; var TrackingSpecification: Record "Tracking Specification"; CommitIsSupressed: Boolean; var IsHandled: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var Result: Integer; var WarehouseReceiptHeader: Record "Warehouse Receipt Header") begin end; + /// + /// Event raised by OnBeforePostItemJnlLineItemCharges. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLineItemCharges(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostAssocItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostAssocItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var SalesLine: Record "Sales Line"; CommitIsSupressed: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePostItemChargePerOrder. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the ItemChargePurchLine parameter. + /// Specifies the TempTrackingSpecificationChargeAssmt parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerOrder(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ItemJnlLine2: Record "Item Journal Line"; var ItemChargePurchLine: Record "Purchase Line"; var TempTrackingSpecificationChargeAssmt: Record "Tracking Specification" temporary; CommitIsSupressed: Boolean; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargeLineProcedure. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargeLineProcedure(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemLine(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; PurchRcptHeader: Record "Purch. Rcpt. Header"; var RemQtyToBeInvoiced: Decimal; var TempPurchLineGlobal: Record "Purchase Line" temporary; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var RemQtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemJnlLineJobConsumption. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the SourceCode parameter. + /// Specifies the PostJobConsumptionBeforePurch parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemJnlLineJobConsumption(var ItemJournalLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; SourceCode: Code[10]; var PostJobConsumptionBeforePurch: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTracking. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PreciseTotalChargeAmt parameter. + /// Specifies the PreciseTotalChargeAmtACY parameter. + /// Specifies the RoundedPrevTotalChargeAmt parameter. + /// Specifies the RoundedPrevTotalChargeAmtACY parameter. + /// Specifies the IsHandled parameter. + /// Specifies the RemQtyToBeInvoiced parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemTracking(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TrackingSpecificationExists: Boolean; var PreciseTotalChargeAmt: Decimal; var PreciseTotalChargeAmtACY: Decimal; var RoundedPrevTotalChargeAmt: Decimal; var RoundedPrevTotalChargeAmtACY: Decimal; var IsHandled: Boolean; RemQtyToBeInvoiced: Decimal) begin end; + /// + /// Event raised by OnBeforePostItemTrackingCheckReceipt. + /// + /// + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingCheckReceipt(PurchaseLine: Record "Purchase Line"; RemQtyToBeInvoiced: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingCheckShipment. + /// + /// + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingCheckShipment(PurchaseLine: Record "Purchase Line"; RemQtyToBeInvoiced: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForReceiptCondition. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the Condition parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForReceiptCondition(PurchaseLine: Record "Purchase Line"; PurchRcptLine: Record "Purch. Rcpt. Line"; var Condition: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingItemChargePerOrder. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the TempTrackingSpecificationChargeAssmtCorrect parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingItemChargePerOrder(var TempTrackingSpecificationChargeAssmt: Record "Tracking Specification" temporary; var IsHandled: Boolean; var ItemJnlLine2: Record "Item Journal Line"; var TempTrackingSpecificationChargeAssmtCorrect: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnBeforePostItemTrackingLineOnPostPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemTrackingLineOnPostPurchLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; TempTrackingSpecification: Record "Tracking Specification" temporary; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForShipmentCondition. + /// + /// + /// Specifies the ReturnShipmentLine parameter. + /// Specifies the Condition parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForShipmentCondition(PurchaseLine: Record "Purchase Line"; ReturnShipmentLine: Record "Return Shipment Line"; var Condition: Boolean) begin end; + /// + /// Event raised by OnBeforePostResourceLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the JobPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostResourceLine(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; SrcCode: Code[10]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocNo: Code[20]; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; JobPurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePostUpdateOrderLine. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PurchSetup parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateOrderLine(PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; CommitIsSuppressed: Boolean; PurchSetup: Record "Purchases & Payables Setup") begin end; + /// + /// Event raised by OnBeforePostUpdateOrderLineModifyTempLine. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateOrderLineModifyTempLine(var TempPurchaseLine: Record "Purchase Line" temporary; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSuppressed: Boolean; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeRevertWarehouseEntry. + /// + /// + /// Specifies the JobNo parameter. + /// Specifies the PostJobConsumption parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeRevertWarehouseEntry(var WarehouseJournalLine: Record "Warehouse Journal Line"; JobNo: Code[20]; PostJobConsumption: Boolean; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSendICDocument. + /// + /// + /// Specifies the ModifyHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSendICDocument(var PurchHeader: Record "Purchase Header"; var ModifyHeader: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSumPurchLines2. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the VATAmountLine parameter. + /// Specifies the InsertPurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforeSumPurchLines2(QtyType: Option; var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var VATAmountLine: Record "VAT Amount Line"; InsertPurchLine: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSumPurchLinesTemp. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeSumPurchLinesTemp(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeTempDropShptPostBufferInsert. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTempDropShptPostBufferInsert(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; PurchaseLine: Record "Purchase Line"; var ItemLedgShptEntryNo: Integer) begin end; + /// + /// Event raised by OnBeforeTempPrepmtPurchLineInsert. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTempPrepmtPurchLineInsert(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var TempPurchLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnBeforeTempPrepmtPurchLineModify. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTempPrepmtPurchLineModify(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var TempPurchLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnBeforeTransferReservToItemJnlLine. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the PurchLine parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the ApplySpecificItemTracking parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTransferReservToItemJnlLine(var SalesOrderLine: Record "Sales Line"; var ItemJnlLine: Record "Item Journal Line"; PurchLine: Record "Purchase Line"; QtyToBeShippedBase: Decimal; var ApplySpecificItemTracking: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateAssocOrder. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(true, false)] local procedure OnBeforeUpdateAssocOrder(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var IsHandled: Boolean; SuppressCommit: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the Receive parameter. + /// Specifies the Ship parameter. + /// Specifies the Invoice parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateBlanketOrderLine(PurchLine: Record "Purchase Line"; Receive: Boolean; Ship: Boolean; Invoice: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePostingNos. + /// + /// + /// Specifies the ModifyHeader parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the IsHandled parameter. + /// Specifies the DateOrderSeriesUsed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePostingNos(var PurchHeader: Record "Purchase Header"; var ModifyHeader: Boolean; SuppressCommit: Boolean; var IsHandled: Boolean; var DateOrderSeriesUsed: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePurchaseHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePurchaseHeader(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; GenJnlLineDocType: Option; var IsHandled: Boolean; var PurchaseHeader: Record "Purchase Header"; GenJnlLineDocNo: Code[20]; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePurchLineBeforePost. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePurchLineBeforePost(var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; WhseShip: Boolean; WhseReceive: Boolean; RoundingLineInserted: Boolean; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateInvoicedQtyOnPurchRcptLine. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateInvoicedQtyOnPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; CommitIsSupressed: Boolean; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeUpdatePrepmtPurchLineWithRounding. + /// + /// + /// Specifies the TotalRoundingAmount parameter. + /// Specifies the TotalPrepmtAmount parameter. + /// Specifies the FinalInvoice parameter. + /// Specifies the PricesInclVATRoundingAmount parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePrepmtPurchLineWithRounding(var PrepmtPurchLine: Record "Purchase Line"; TotalRoundingAmount: array[2] of Decimal; TotalPrepmtAmount: array[2] of Decimal; FinalInvoice: Boolean; PricesInclVATRoundingAmount: array[2] of Decimal; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeUpdateQtyToInvoiceForOrder. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToInvoiceForOrder(var PurchHeader: Record "Purchase Header"; TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateQtyToInvoiceForReturnOrder. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToInvoiceForReturnOrder(var PurchHeader: Record "Purchase Header"; TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateQtyToBeInvoicedForReceipt. + /// + /// + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToBeInvoicedForReceipt(var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; PurchLine: Record "Purchase Line"; PurchRcptLine: Record "Purch. Rcpt. Line"; InvoicingTrackingSpecification: Record "Tracking Specification"; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateQtyToBeInvoicedForReturnShipment. + /// + /// + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ReturnShipmentLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToBeInvoicedForReturnShipment(var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; PurchLine: Record "Purchase Line"; ReturnShipmentLine: Record "Return Shipment Line"; InvoicingTrackingSpecification: Record "Tracking Specification"; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateJobConsumptionReservationApplToItemEntry. + /// + /// + /// Specifies the ItemJournalLine parameter. + /// Specifies the IsNonInventoriableItem parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateJobConsumptionReservationApplToItemEntry(var TempReservEntryJobCons: Record "Reservation Entry" temporary; var ItemJournalLine: Record "Item Journal Line"; IsNonInventoriableItem: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLine. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLine(var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineFixedAsset. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineFixedAsset(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineItemCharge. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineItemCharge(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineJob. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineJob(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineOthers. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineOthers(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestStatusRelease. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestStatusRelease(PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateItemChargeAssgnt. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateItemChargeAssgnt(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateHandledICInboxTransaction. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateHandledICInboxTransaction(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeValidatePostingAndDocumentDate. + /// + /// + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeValidatePostingAndDocumentDate(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnSetPostingDateExists. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PostingDateExists parameter. + /// Specifies the ReplacePostingDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnSetPostingDateExists(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; var PostingDateExists: Boolean; var ReplacePostingDate: Boolean; var PostingDate: Date; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeWhseHandlingRequired. + /// + /// + /// Specifies the Required parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeWhseHandlingRequired(PurchaseLine: Record "Purchase Line"; var Required: Boolean; var IsHandled: Boolean) begin @@ -10040,62 +11601,140 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforeGetCountryCode. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the CountryRegionCode parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetCountryCode(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var CountryRegionCode: Code[10]; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeShouldPostWhseJnlLine. + /// + /// + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlLine parameter. + /// Specifies the TempWhseJnlLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeShouldPostWhseJnlLine(PurchLine: Record "Purchase Line"; var Result: Boolean; var IsHandled: Boolean; var ItemJnlLine: Record "Item Journal Line"; var TempWhseJnlLine: Record "Warehouse Journal Line" temporary; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnCalcInvDiscountSetFilter. + /// + /// + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvDiscountSetFilter(var PurchLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterClearPostingFromWhseRef. + /// + /// + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterClearPostingFromWhseRef(var PurchHeader: Record "Purchase Header"; var InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetPostingFlags. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetPostingFlags(var PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary); begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeSetPostingFlags. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeSetPostingFlags(var PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetSourceCode. + /// + /// + /// Specifies the SourceCodeSetup parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetSourceCode(var PurchHeader: Record "Purchase Header"; SourceCodeSetup: Record "Source Code Setup"; var SrcCode: Code[10]); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterArchiveUnpostedOrder. + /// + /// + /// Specifies the Currency parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterArchiveUnpostedOrder(var PurchHeader: Record "Purchase Header"; Currency: Record "Currency"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCalcInvDiscount. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the RefreshNeeded parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCalcInvDiscount(var PurchaseHeader: Record "Purchase Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseReceive: Boolean; WhseShip: Boolean; var RefreshNeeded: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateAssocOrderPostingDateOnBeforeValidateDocumentDate. + /// + /// + /// Specifies the OriginalDocumentDate parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateAssocOrderPostingDateOnBeforeValidateDocumentDate(var SalesHeader: Record "Sales Header"; var OriginalDocumentDate: Date) begin end; + /// + /// Event raised by OnCheckAssociatedOrderLinesOnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssociatedOrderLinesOnAfterSetFilters(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnCheckAssociatedOrderLinesOnAfterCheckDimensions. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssociatedOrderLinesOnAfterCheckDimensions(PurchaseHeader: Record "Purchase Header"; SalesHeader: Record "Sales Header"; var PurchaseLine: Record "Purchase Line"; TempSalesLine: Record "Sales Line" temporary) begin @@ -10103,72 +11742,146 @@ codeunit 90 "Purch.-Post" #if not CLEAN28 [Obsolete('This event is no longer used.', '28.0')] + /// + /// Event raised by OnCheckAssocOrderLinesOnBeforeCheckOrderLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssocOrderLinesOnBeforeCheckOrderLine(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; #endif + /// + /// Event raised by OnCheckExternalDocumentNumberOnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnCheckExternalDocumentNumberOnAfterSetFilters(var VendLedgEntry: Record "Vendor Ledger Entry"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForShipOnAfterTempPurchLineSetFilters. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForShipOnAfterTempPurchLineSetFilters(PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForReceiveOnAfterTempPurchLineSetFilters. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForReceiveOnAfterTempPurchLineSetFilters(PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCheckWarehouseOnAfterSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnCheckWarehouseOnAfterSetFilters(var TempItemPurchLine: Record "Purchase Line"); begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeLoop. + /// + /// + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeLoop(var TempPurchLine: Record "Purchase Line" temporary; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeCheckIfEmpty. + /// + /// [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeCheckIfEmpty(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCopyToTempLinesOnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnCopyToTempLinesOnAfterSetFilters(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterInitTempPrepmtPurchLineFromPurchHeader. + /// + /// [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterInitTempPrepmtPurchLineFromPurchHeader(var TempPrepmtPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterTempPurchLineSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterTempPurchLineSetFilters(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterTempPrepmtPurchLineSetFilters. + /// + /// + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterTempPrepmtPurchLineSetFilters(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnDivideAmountOnAfterClearAmounts. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterClearAmounts(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var PurchLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnAfterCalcLineAmountAndLineDiscountAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterCalcLineAmountAndLineDiscountAmount(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchaseLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineRemainderModify. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineRemainderModify(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency) begin @@ -10179,227 +11892,589 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnGetItemChargeLineOnAfterGet. + /// + /// + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnGetItemChargeLineOnAfterGet(var ItemChargePurchLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnGetPurchLinesOnAfterFillTempLines. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnGetPurchLinesOnAfterFillTempLines(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyType: Option; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnInsertICGenJnlLineOnAfterCopyDocumentFields. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempICGenJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertICGenJnlLineOnAfterCopyDocumentFields(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var TempICGenJournalLine: Record "Gen. Journal Line") begin end; + /// + /// Event raised by OnInsertAssocOrderChargeOnBeforeInsert. + /// + /// + /// Specifies the NewItemChargeAssignmentPurch parameter. [IntegrationEvent(false, false)] local procedure OnInsertAssocOrderChargeOnBeforeInsert(TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)"; var NewItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)") begin end; + /// + /// Event raised by OnInsertICGenJnlLineOnBeforeICGenJnlLineInsert. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnInsertICGenJnlLineOnBeforeICGenJnlLineInsert(var TempICGenJournalLine: Record "Gen. Journal Line" temporary; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnInsertReceiptLineOnAfterGetWhseRcptLine. + /// + /// + /// Specifies the PurchRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterGetWhseRcptLine(var WhseRcptLine: Record "Warehouse Receipt Line"; PurchRcptLine: Record "Purch. Rcpt. Line") begin end; + /// + /// Event raised by OnInsertReceiptLineOnAfterInitPurchRcptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the PostedWhseRcptHeader parameter. + /// Specifies the WhseRcptHeader parameter. + /// Specifies the WhseRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterInitPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; xPurchLine: Record "Purchase Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var CostBaseAmount: Decimal; PostedWhseRcptHeader: Record "Posted Whse. Receipt Header"; WhseRcptHeader: Record "Warehouse Receipt Header"; var WhseRcptLine: Record "Warehouse Receipt Line") begin end; + /// + /// Event raised by OnInsertReceiptLineOnAfterCalcShouldGetWhseRcptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PostedWhseRcptHeader parameter. + /// Specifies the WhseRcptHeader parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ShouldGetWhseRcptLine parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the PurchRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterCalcShouldGetWhseRcptLine(PurchRcptHeader: Record "Purch. Rcpt. Header"; PurchLine: Record "Purchase Line"; PostedWhseRcptHeader: Record "Posted Whse. Receipt Header"; WhseRcptHeader: Record "Warehouse Receipt Header"; CostBaseAmount: Decimal; WhseReceive: Boolean; WhseShip: Boolean; var ShouldGetWhseRcptLine: Boolean; xPurchLine: Record "Purchase Line"; var PurchRcptLine: Record "Purch. Rcpt. Line") begin end; + /// + /// Event raised by OnInsertReceiptLineOnAfterCalcShouldGetWhseShptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PostedWhseShptHeader parameter. + /// Specifies the WhseShptHeader parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ShouldGetWhseShptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterCalcShouldGetWhseShptLine(PurchRcptHeader: Record "Purch. Rcpt. Header"; PurchLine: Record "Purchase Line"; PostedWhseShptHeader: Record "Posted Whse. Shipment Header"; WhseShptHeader: Record "Warehouse Shipment Header"; CostBaseAmount: Decimal; WhseReceive: Boolean; WhseShip: Boolean; var ShouldGetWhseShptLine: Boolean) begin end; + /// + /// Event raised by OnInsertReturnShipmentLineOnAfterGetWhseShptLine. + /// + /// + /// Specifies the ReturnShptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReturnShipmentLineOnAfterGetWhseShptLine(var WhseShptLine: Record "Warehouse Shipment Line"; ReturnShptLine: Record "Return Shipment Line") begin end; + /// + /// Event raised by OnInsertReturnShipmentLineOnAfterReturnShptLineInit. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the PurchLine parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnInsertReturnShipmentLineOnAfterReturnShptLineInit(var ReturnShptHeader: Record "Return Shipment Header"; var ReturnShptLine: Record "Return Shipment Line"; var PurchLine: Record "Purchase Line"; var xPurchLine: Record "Purchase Line"; var CostBaseAmount: Decimal; WhseShip: Boolean; WhseReceive: Boolean); begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforePost. + /// + /// + /// Specifies the SalesOrderLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforePost(var ItemJournalLine: Record "Item Journal Line"; SalesOrderLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnAfterUpdateBlanketOrderLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the SalesOrderHeader parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the SrcCode parameter. + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnAfterUpdateBlanketOrderLine(var PurchaseHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer"; var SalesOrderLine: Record "Sales Line"; var SalesOrderHeader: record "Sales Header"; var SalesShptLine: record "Sales Shipment Line"; SalesShptHeader: Record "Sales Shipment Header"; SrcCode: Code[10]; Currency: Record Currency) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the SalesShptLine parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnBeforeUpdateBlanketOrderLine(var SalesOrderLine: Record "Sales Line"; SalesShptLine: Record "Sales Shipment Line") begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnAfterProcessDropShptPostBuffer. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnAfterProcessDropShptPostBuffer(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; PurchRcptHeader: Record "Purch. Rcpt. Header"; SalesShptLine: Record "Sales Shipment Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary); begin end; + /// + /// Event raised by OnPostDistributeItemChargeOnAfterCalcAmountToAssign. + /// + /// + /// Specifies the TempItemLedgerEntry parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the AmountToAssign parameter. + /// Specifies the Sign parameter. + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostDistributeItemChargeOnAfterCalcAmountToAssign(var PurchaseLine: Record "Purchase Line"; TempItemLedgerEntry: Record "Item Ledger Entry"; QtyToAssign: Decimal; AmountToAssign: Decimal; Sign: Decimal; Factor: Decimal) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterPostItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ItemChargeAssignmentPurch parameter. [IntegrationEvent(true, false)] local procedure OnPostItemChargeOnAfterPostItemJnlLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; ItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)") begin end; + /// + /// Event raised by OnPostItemChargeLineOnAfterPostItemCharge. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchaseLineBackup parameter. + /// Specifies the PurchLine parameter. [IntegrationEvent(true, false)] local procedure OnPostItemChargeLineOnAfterPostItemCharge(var TempItemChargeAssgntPurch: record "Item Charge Assignment (Purch)" temporary; PurchHeader: Record "Purchase Header"; PurchaseLineBackup: Record "Purchase Line"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargeLineOnBeforePostItemCharge. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeLineOnBeforePostItemCharge(var TempItemChargeAssgntPurch: record "Item Charge Assignment (Purch)" temporary; PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var GenJnlLineDocNo: Code[20]) begin end; + /// + /// Event raised by OnPostItemChargeOnBeforePostItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the PurchInvHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnBeforePostItemJnlLine(var PurchaseLineToPost: Record "Purchase Line"; var PurchaseLine: Record "Purchase Line"; QtyToAssign: Decimal; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; PurchInvHeader: Record "Purch. Inv. Header") begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnAfterCopyToItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the GeneralLedgerSetup parameter. + /// Specifies the QtyToInvoice parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnAfterCopyToItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; GeneralLedgerSetup: Record "General Ledger Setup"; QtyToInvoice: Decimal; var TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ReturnRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ReturnRcptLine: Record "Return Receipt Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerSalesRetRcptOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerSalesRetRcptOnBeforeTestJobNo(ReturnReceiptLine: Record "Return Receipt Line"; var IsHandled: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerSalesShptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerSalesShptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var SalesShptLine: Record "Sales Shipment Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerSalesShptOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerSalesShptOnBeforeTestJobNo(SalesShipmentLine: Record "Sales Shipment Line"; var IsHandled: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerRetShptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ReturnShptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetShptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ReturnShptLine: Record "Return Shipment Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRetShptOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetShptOnBeforeTestJobNo(ReturnShipmentLine: Record "Return Shipment Line"; var IsHandled: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerRcptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRcptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var PurchRcptLine: record "Purch. Rcpt. Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRcptOnAfterPurchRcptLineGet. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRcptOnAfterPurchRcptLineGet(PurchRcptLine: Record "Purch. Rcpt. Line"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerTransferOnAfterInitPurchLine2. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerTransferOnAfterInitPurchLine2(TransferReceiptLine: Record "Transfer Receipt Line"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerTransferOnBeforePostItemJnlLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemApplnEntry parameter. + /// Specifies the TransferReceiptLine parameter. + /// Specifies the ItemChargeAssignmentPurch parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerTransferOnBeforePostItemJnlLine(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; ItemApplnEntry: Record "Item Application Entry"; TransferReceiptLine: Record "Transfer Receipt Line"; ItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)") begin end; + /// + /// Event raised by OnPostItemChargePerITTransferOnAfterCollectItemEntryRelation. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TransRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerITTransferOnAfterCollectItemEntryRelation(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; TransRcptLine: Record "Transfer Receipt Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnBeforeTempWhseJnlLine2Find. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnBeforeTempWhseJnlLine2Find(var TempWarehouseJournalLine2: Record "Warehouse Journal Line" temporary; PurchaseLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyDocumentFields. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; PurchRcptHeader: Record "Purch. Rcpt. Header"; GenJnlLineExtDocNo: Code[35]; QtyToBeInvoiced: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforePostItemJnlLineCopyDocumentFields. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforePostItemJnlLineCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; QtyToBeInvoiced: Decimal; QtyToBeReceived: Decimal; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterPostItemJnlLineJobConsumption. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the OriginalItemJnlLine parameter. + /// Specifies the TempReservationEntry parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the PostJobConsumptionBeforePurch parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the TempWhseTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterPostItemJnlLineJobConsumption(var ItemJournalLine: Record "Item Journal Line"; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; OriginalItemJnlLine: Record "Item Journal Line"; var TempReservationEntry: Record "Reservation Entry" temporary; var TrackingSpecification: Record "Tracking Specification" temporary; QtyToBeInvoiced: Decimal; QtyToBeReceived: Decimal; var PostJobConsumptionBeforePurch: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyItemCharge. + /// + /// + /// Specifies the TempItemChargeAssgntPurch parameter. [IntegrationEvent(true, false)] local procedure OnPostItemJnlLineOnAfterCopyItemCharge(var ItemJournalLine: Record "Item Journal Line"; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeCopyDocumentFields. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforePostWhseJnlLine. + /// + /// + /// Specifies the TempWhseJnlLine parameter. + /// Specifies the ItemJnlLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforePostWhseJnlLine(TempHandlingSpecification: Record "Tracking Specification"; var TempWhseJnlLine: Record "Warehouse Journal Line"; ItemJnlLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumptionOnBeforeRunItemJnlPostLineWithReservation. + /// + /// + /// Specifies the TempReservationEntry parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(true, false)] local procedure OnPostItemJnlLineJobConsumptionOnBeforeRunItemJnlPostLineWithReservation(var ItemJournalLine: Record "Item Journal Line"; var TempReservationEntry: Record "Reservation Entry" temporary; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumption. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemJournalLine parameter. + /// Specifies the TempPurchReservEntry parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the PurchItemLedgEntryNo parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineJobConsumption(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; ItemJournalLine: Record "Item Journal Line"; var TempPurchReservEntry: Record "Reservation Entry" temporary; QtyToBeInvoiced: Decimal; QtyToBeReceived: Decimal; var TempTrackingSpecification: Record "Tracking Specification" temporary; PurchItemLedgEntryNo: Integer; var IsHandled: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterSetFactor. + /// + /// + /// Specifies the Factor parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterSetFactor(var PurchaseLine: Record "Purchase Line"; var Factor: Decimal; var GenJnlLineExtDocNo: Code[35]; var ItemJournalLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterPrepareItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterPrepareItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; PreviewMode: Boolean; var GenJnlLineDocNo: code[20]; TrackingSpecification: Record "Tracking Specification"; QtyToBeReceived: Decimal; QtyToBeInvoiced: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnCopyProdOrder. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the SuppressCommit parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnCopyProdOrder(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; QtyToBeReceived: Decimal; QtyToBeInvoiced: Decimal; SuppressCommit: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumptionOnBeforeJobPost. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the SrcCode parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the IsHandled parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineJobConsumptionOnBeforeJobPost( var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; @@ -10408,191 +12483,471 @@ codeunit 90 "Purch.-Post" begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnAfterPostRevert. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnAfterPostRevert(var TempWhseJnlLine: Record "Warehouse Journal Line" temporary; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnBeforePostSingleLine. + /// + /// + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the TempWhseJnlLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnBeforePostSingleLine(WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean; var TempWhseJnlLine: Record "Warehouse Journal Line" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the QtyToBeReceivedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck(var ItemJnlLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; QtyToBeReceived: Decimal; WhseReceive: Boolean; var TempWhseRcptHeader: Record "Warehouse Receipt Header" temporary; QtyToBeReceivedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeItemJnlPostLineRunWithCheck. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the DropShipOrder parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeReceivedBase parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeItemJnlPostLineRunWithCheck(var ItemJnlLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; DropShipOrder: Boolean; PurchaseHeader: Record "Purchase Header"; WhseReceive: Boolean; QtyToBeReceived: Decimal; QtyToBeReceivedBase: Decimal; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeInitAmount. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeInitAmount(var ItemJnlLine: Record "Item Journal Line"; PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine(var ItemChargePurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemLineOnBeforePostShipReceive. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemLineOnBeforePostShipReceive(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforeReceiptInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforeReceiptInvoiceErr(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforePostItemTrackingForReceiptCondition. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforePostItemTrackingForReceiptCondition(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchRcptLine: Record "Purch. Rcpt. Line"; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnAfterPurchRcptLineTestFields. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnAfterPurchRcptLineTestFields(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnAfterPurchRcptLineSetFilters. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnAfterPurchRcptLineSetFilters(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeReturnShipmentInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeReturnShipmentInvoiceErr(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostPurchLineOnAfterSetEverythingInvoiced. + /// + /// + /// Specifies the EverythingInvoiced parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the AmountsOnly parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterSetEverythingInvoiced(var PurchaseLine: Record "Purchase Line"; var EverythingInvoiced: Boolean; PurchaseHeader: Record "Purchase Header"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; var AmountsOnly: Boolean) begin end; + /// + /// Event raised by OnPostPurchLineOnAfterPostByType. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterPostByType(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnAfterCollectPurchaseLineReservEntries. + /// + /// + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCollectPurchaseLineReservEntries(var JobReservationEntry: Record "Reservation Entry"; ItemJournalLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnAfterGetPurchOrderLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetPurchOrderLine(var PurchaseLineOrder: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; PurchRcptLine: Record "Purch. Rcpt. Line") begin end; + /// + /// Event raised by OnPostPurchLineOnBeforePostByType. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLine parameter. + /// Specifies the PurchLineACY parameter. + /// Specifies the Sourcecode parameter. [IntegrationEvent(true, false)] local procedure OnPostPurchLineOnBeforePostByType(PurchHeader: Record "Purchase Header"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; PurchLine: Record "Purchase Line"; PurchLineACY: Record "Purchase Line"; Sourcecode: Code[10]) begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertCrMemoLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchCrMemoLine parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeInsertCrMemoLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; xPurchaseLine: Record "Purchase Line"); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertInvoiceLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchInvLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeInsertInvoiceLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; var PurchInvLine: Record "Purch. Inv. Line"); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertReceiptLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(true, false)] local procedure OnPostPurchLineOnBeforeInsertReceiptLine(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; PurchRcptHeader: Record "Purch. Rcpt. Header"; RoundingLineInserted: Boolean; CostBaseAmount: Decimal; xPurchaseLine: Record "Purchase Line"; var ReturnShipmentHeader: Record "Return Shipment Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var ItemLedgShptEntryNo: Integer; SrcCode: Code[10]; PreviewMode: Boolean; var WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseReceive: Boolean; WhseShip: Boolean; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; GenJnlLineDocNo: Code[20]); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the PurchRcptHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeInsertReturnShipmentLine(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; ReturnShptHeader: Record "Return Shipment Header"; TempPurchLineGlobal: Record "Purchase Line"; RoundingLineInserted: Boolean; xPurchaseLine: Record "Purchase Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeRoundAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeRoundAmount(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnPostPurchLineOnTypeCaseElse. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the SourceCode parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnTypeCaseElse(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; SourceCode: Code[10]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary); begin end; + /// + /// Event raised by OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDoc. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDoc(var PurchInvLine: Record "Purch. Inv. Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDocCrMemo. + /// + /// + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDocCrMemo(var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnAfterPurchOrderLineModify. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the ReturnShptLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnAfterPurchOrderLineModify(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary; var ReturnShptLine: Record "Return Shipment Line") begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnAfterResetTempLines. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnAfterResetTempLines(var TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnBeforeInitQtyToInvoice(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterPurchOrderLineGet. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the PurchOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterPurchOrderLineGet(var TempPurchLine: Record "Purchase Line" temporary; PurchRcptLine: Record "Purch. Rcpt. Line"; PurchOrderLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterPurchOrderLineModify. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchOrderLine parameter. + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterPurchOrderLineModify(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary; var PurchOrderLine: Record "Purchase Line"; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeUpdateBlanketOrderLine(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitOutstanding(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitQtyToInvoice(var TempPurchaseLine: Record "Purchase Line" temporary; WhseShip: Boolean; WhseReceive: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeLoop. + /// + /// + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeLoop(PurchHeader: Record "Purchase Header"; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnPurchHeaderReceive. + /// + /// + /// Specifies the PurchRcptHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnPurchHeaderReceive(var TempPurchLine: Record "Purchase Line"; PurchRcptHeader: Record "Purch. Rcpt. Header") begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnSetDefaultQtyBlank. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchPost parameter. + /// Specifies the SetDefaultQtyBlank parameter. [IntegrationEvent(true, false)] local procedure OnPostUpdateOrderLineOnSetDefaultQtyBlank(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary; PurchPost: Record "Purchases & Payables Setup"; var SetDefaultQtyBlank: Boolean) begin @@ -10600,162 +12955,360 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnProcessAssocItemJnlLineOnAfterInitTempDropShptPostBuffer. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnProcessAssocItemJnlLineOnAfterInitTempDropShptPostBuffer(var PurchLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnReleasePurchDocumentOnBeforeSetStatus. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnReleasePurchDocumentOnBeforeSetStatus(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRoundAmountOnBeforeCalculateLCYAmounts. + /// + /// + /// Specifies the PurchLineACY parameter. + /// Specifies the PurchHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TotalPurchaseLine parameter. + /// Specifies the TotalPurchaseLineLCY parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnBeforeCalculateLCYAmounts(var xPurchLine: Record "Purchase Line"; var PurchLineACY: Record "Purchase Line"; PurchHeader: Record "Purchase Header"; var IsHandled: Boolean; TotalPurchaseLine: Record "Purchase Line"; TotalPurchaseLineLCY: Record "Purchase Line"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnRoundAmountOnBeforeIncrAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the CurrExchRate parameter. + /// Specifies the NoVAT parameter. + /// Specifies the IsHandled parameter. + /// Specifies the NonDeductibleVAT parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnBeforeIncrAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchLineQty: Decimal; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line"; var xPurchaseLine: Record "Purchase Line"; var CurrExchRate: Record "Currency Exchange Rate"; var NoVAT: Boolean; var IsHandled: Boolean; var NonDeductibleVAT: Codeunit "Non-Deductible VAT") begin end; + /// + /// Event raised by OnRunOnBeforeFinalizePosting. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeFinalizePosting(var PurchaseHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShipmentHeader: Record "Return Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforeMakeInventoryAdjustment. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeMakeInventoryAdjustment(var PurchaseHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; PreviewMode: Boolean; PurchRcptHeader: Record "Purch. Rcpt. Header"; PurchInvHeader: Record "Purch. Inv. Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumPurchLines2OnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnAfterSetFilters(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnSumPurchLines2OnAfterDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnAfterDivideAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping; PurchLineQty: Decimal; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary) begin end; + /// + /// Event raised by OnSumPurchLines2OnBeforeDivideAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyType parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnBeforeDivideAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping) begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterSalesOrderHeaderModify. + /// + /// + /// Specifies the SalesSetup parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterSalesOrderHeaderModify(var SalesOrderHeader: Record "Sales Header"; var SalesSetup: Record "Sales & Receivables Setup") begin end; + /// + /// Event raised by OnUpdateAssociatedSalesOrderOnBeforeClearTempDropShptPostBuffer. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateAssociatedSalesOrderOnBeforeClearTempDropShptPostBuffer(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer") begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterSalesOrderLineModify. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesOrderHeader parameter. + /// Specifies the SalesShptHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterSalesOrderLineModify(var SalesOrderLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesOrderHeader: Record "Sales Header"; SalesShptHeader: Record "Sales Shipment Header") begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterOrderNoClearFilter. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterOrderNoClearFilter(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnUpdateAssocOrderOnBeforeSalesOrderLineModify. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnBeforeSalesOrderLineModify(var SalesOrderLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheck. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheck(var BlanketOrderPurchLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeInitOutstanding(var BlanketOrderPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnAfterCheckBlanketOrderPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnAfterCheckBlanketOrderPurchLine(var BlanketOrderPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnUpdatePurchLineBeforePostOnAfterCalcInitQtyToInvoiceNeeded. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the InitQtyToInvoiceNeeded parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePurchLineBeforePostOnAfterCalcInitQtyToInvoiceNeeded(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var InitQtyToInvoiceNeeded: Boolean) begin end; + /// + /// Event raised by OnUpdateWhseDocumentsOnAfterUpdateWhseRcpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateWhseDocumentsOnAfterUpdateWhseRcpt(var WarehouseReceiptHeader: Record "Warehouse Receipt Header") begin end; + /// + /// Event raised by OnUpdateWhseDocumentsOnAfterUpdateWhseShpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateWhseDocumentsOnAfterUpdateWhseShpt(var WarehouseShipmentHeader: Record "Warehouse Shipment Header") begin end; + /// + /// Event raised by OnBeforeRunItemJnlPostLineWithReservation. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeRunItemJnlPostLineWithReservation(var ItemJournalLine: Record "Item Journal Line"); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterCopyAndCheckItemCharge. + /// + /// [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterCopyAndCheckItemCharge(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterCalcCopyAndCheckItemChargeNeeded. + /// + /// + /// Specifies the CopyAndCheckItemChargeNeeded parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterCalcCopyAndCheckItemChargeNeeded(var PurchHeader: Record "Purchase Header"; var CopyAndCheckItemChargeNeeded: Boolean) begin end; + /// + /// Event raised by OnUpdatePostingNosOnBeforeUpdatePostingNo. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnBeforeUpdatePostingNo(PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; var ModifyHeader: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdatePostingNosOnAfterCalcShouldUpdateReceivingNo. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the ShouldUpdateReceivingNo parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnAfterCalcShouldUpdateReceivingNo(PurchaseHeader: Record "Purchase Header"; PreviewMode: Boolean; var ModifyHeader: Boolean; var ShouldUpdateReceivingNo: Boolean) begin end; + /// + /// Event raised by OnCreatePositiveOnBeforeWhseJnlPostLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnCreatePositiveOnBeforeWhseJnlPostLine(var WhseJnlLine: Record "Warehouse Journal Line") begin end; + /// + /// Event raised by OnCreatePostedWhseShptLineOnBeforeCreatePostedShptLine. + /// + /// + /// Specifies the WarehouseShipmentLine parameter. + /// Specifies the PostedWhseShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnCreatePostedWhseShptLineOnBeforeCreatePostedShptLine(var ReturnShipmentLine: Record "Return Shipment Line"; var WarehouseShipmentLine: Record "Warehouse Shipment Line"; PostedWhseShipmentHeader: Record "Posted Whse. Shipment Header") begin end; + /// + /// Event raised by OnCreatePostedRcptLineOnBeforeCreatePostedRcptLine. + /// + /// + /// Specifies the WarehouseReceiptLine parameter. + /// Specifies the PostedWhseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnCreatePostedRcptLineOnBeforeCreatePostedRcptLine(var ReturnShipmentLine: Record "Return Shipment Line"; var WarehouseReceiptLine: Record "Warehouse Receipt Line"; PostedWhseReceiptHeader: Record "Posted Whse. Receipt Header") begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnBeforeTempTrackingSpecificationModify. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnBeforeTempTrackingSpecificationModify(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification. + /// + /// [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification(var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnBeforePostUpdateInvoiceLine. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateInvoiceLine(var TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean; var PurchaseHeader: Record "Purchase Header") begin @@ -10763,102 +13316,228 @@ codeunit 90 "Purch.-Post" #if not CLEAN28 [Obsolete('This event is no longer used.', '28.0')] + /// + /// Event raised by OnBeforeCheckAssociatedSalesOrderLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckAssociatedSalesOrderLine(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; #endif + /// + /// Event raised by OnBeforeCheckAssociatedOrderLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeCheckAssociatedOrderLines(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeCheckReceiveInvoiceShip. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckReceiveInvoiceShip(var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingItemChargePerOrderOnAfterCalcFactor. + /// + /// + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the TempTrackingSpecificationChargeAssmt parameter. + /// Specifies the SignFactor parameter. + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingItemChargePerOrderOnAfterCalcFactor(var NonDistrItemJnlLine: Record "Item Journal Line"; var ItemJnlLine2: Record "Item Journal Line"; var TempTrackingSpecificationChargeAssmt: Record "Tracking Specification"; SignFactor: Integer; Factor: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingItemChargePerOrderOnAfterUpdateItemJnlLine2LocationCode. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostItemTrackingItemChargePerOrderOnAfterUpdateItemJnlLine2LocationCode(var ItemJnlLine2: Record "Item Journal Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnAfterReturnShptLineReset. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnAfterReturnShptLineReset(var ReturnShptLine: Record "Return Shipment Line"; PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeSetItemEntryRelationForShipment. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeSetItemEntryRelationForShipment(var ItemEntryRelation: Record "Item Entry Relation"; var ReturnShptLine: Record "Return Shipment Line"; var InvoicingTrackingSpecification: Record "Tracking Specification"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding(ReturnShptLine: Record "Return Shipment Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnAfterFillTempLines. + /// + /// [IntegrationEvent(true, false)] local procedure OnRunOnAfterFillTempLines(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnRunOnAfterInvoiceRounding. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(true, false)] local procedure OnRunOnAfterInvoiceRounding(var PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnRunOnBeforeFillTempLines. + /// + /// + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(true, false)] local procedure OnRunOnBeforeFillTempLines(PreviewMode: Boolean; var GenJnlLineDocNo: Code[20]) begin end; + /// + /// Event raised by OnRunOnAfterPostPurchLine. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the ReturnShipmentHeader parameter. [IntegrationEvent(true, false)] local procedure OnRunOnAfterPostPurchLine(var TempPurchLineGlobal: Record "Purchase Line" temporary; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var ReturnShipmentHeader: Record "Return Shipment Header") begin end; + /// + /// Event raised by OnAfterCalcInvDiscount. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(true, false)] local procedure OnAfterCalcInvDiscount(PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostGLAccICLineOnBeforeCheckAndInsertICGenJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the ICGenJnlLineNo parameter. [IntegrationEvent(false, false)] local procedure OnPostGLAccICLineOnBeforeCheckAndInsertICGenJnlLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; ICGenJnlLineNo: Integer) begin end; + /// + /// Event raised by OnPostGLAccICLineOnAfterCreateJobPurchLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostGLAccICLineOnAfterCreateJobPurchLine(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostItemJnlLineTrackingOnBeforeTempHandlingSpecificationFind. + /// + /// + /// Specifies the TempHandlingSpecification parameter. [IntegrationEvent(true, false)] local procedure OnPostItemJnlLineTrackingOnBeforeTempHandlingSpecificationFind(PurchLine: Record "Purchase Line"; var TempHandlingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnFinalizePostingOnAfterUpdateItemChargeAssgnt. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the TempPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(true, false)] local procedure OnFinalizePostingOnAfterUpdateItemChargeAssgnt(var PurchHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var EverythingInvoiced: Boolean; var TempPurchLine: Record "Purchase Line" temporary; var TempPurchLineGlobal: Record "Purchase Line" temporary; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeInsertValueEntryRelation. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(true, false)] local procedure OnFinalizePostingOnBeforeInsertValueEntryRelation(var PurchHeader: Record "Purchase Header"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the TempPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(true, false)] local procedure OnFinalizePostingOnBeforeInsertTrackingSpecification(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; PurchHeader: Record "Purchase Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; EverythingInvoiced: Boolean; var TempPurchLine: Record "Purchase Line"; var TempPurchLineGlobal: Record "Purchase Line") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeUpdateWhseDocuments. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the WarehouseReceive parameter. + /// Specifies the WarehouseShip parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeUpdateWhseDocuments(var PurchaseHeader: Record "Purchase Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; WarehouseReceive: Boolean; WarehouseShip: Boolean; var IsHandled: Boolean) @@ -10868,660 +13547,1476 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnFinalizePostingOnBeforeCommit. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeCommit(PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertReceiptLineOnBeforeCreatePostedRcptLine. + /// + /// + /// Specifies the WarehouseReceiptLine parameter. + /// Specifies the PostedWhseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnBeforeCreatePostedRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var WarehouseReceiptLine: Record "Warehouse Receipt Line"; PostedWhseReceiptHeader: Record "Posted Whse. Receipt Header") begin end; + /// + /// Event raised by OnInsertReceiptLineOnBeforeCreatePostedShptLine. + /// + /// + /// Specifies the WarehouseShipmentLine parameter. + /// Specifies the PostedWhseShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnBeforeCreatePostedShptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var WarehouseShipmentLine: Record "Warehouse Shipment Line"; PostedWhseShipmentHeader: Record "Posted Whse. Shipment Header") begin end; + /// + /// Event raised by OnInsertReceiptLineOnBeforeProcessWhseShptRcpt. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the PurchRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnBeforeProcessWhseShptRcpt(var PurchLine: Record "Purchase Line"; var IsHandled: Boolean; var CostBaseAmount: Decimal; PurchRcptLine: Record "Purch. Rcpt. Line") begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeArchiveUnpostedOrder. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeArchiveUnpostedOrder(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterInsertPostedHeaders. + /// + /// [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterInsertPostedHeaders(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeReleaseSalesHeader. + /// + /// + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeReleaseSalesHeader(var PurchHeader: Record "Purchase Header"; var SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnAfterReleaseSalesHeader. + /// + /// + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnAfterReleaseSalesHeader(var PurchHeader: Record "Purchase Header"; var SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdatePostingNosOnAfterSetReturnShipmentNoFromNos. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnAfterSetReturnShipmentNoFromNos(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnUpdatePostingNosOnInvoiceOnBeforeSetPostingNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnInvoiceOnBeforeSetPostingNo(var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists. + /// + /// + /// Specifies the PostingDateExists parameter. + /// Specifies the ReplacePostingDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the VATDateExists parameter. + /// Specifies the ReplaceVATDate parameter. + /// Specifies the VATDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists(var PurchHeader: Record "Purchase Header"; var PostingDateExists: Boolean; var ReplacePostingDate: Boolean; var PostingDate: Date; var ReplaceDocumentDate: Boolean; var ModifyHeader: Boolean; var VATDateExists: Boolean; var ReplaceVATDate: Boolean; var VATDate: Date) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchaseLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchaseLine(PurchaseLine: Record "Purchase Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchRcptLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchRcptLine(PurchRcptLine: Record "Purch. Rcpt. Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnShipmentLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnShipmentLine(ReturnShipmentLine: Record "Return Shipment Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertReturnShipmentHeader. + /// + /// + /// Specifies the ReturnShptHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReturnShipmentHeader(var PurchHeader: Record "Purchase Header"; var ReturnShptHeader: Record "Return Shipment Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertInvoiceHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Window parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PurchCommentLine parameter. + /// Specifies the RecordLinkManagement parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertInvoiceHeader(var PurchHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var IsHandled: Boolean; var Window: Dialog; var HideProgressWindow: Boolean; var SrcCode: Code[10]; var PurchCommentLine: Record "Purch. Comment Line"; var RecordLinkManagement: Codeunit "Record Link Management") begin end; + /// + /// Event raised by OnBeforeInserCrMemoHeader. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the Window parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the PurchCommentLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInserCrMemoHeader(var PurchHeader: Record "Purchase Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var HideProgressWindow: Boolean; var Window: Dialog; var IsHandled: Boolean; SrcCode: Code[10]; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; var PurchCommentLine: Record "Purch. Comment Line") begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnBeforeCopyComments. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnBeforeCopyComments(var PurchHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesShptHeader: Record "Sales Shipment Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnBeforePostBalancingEntry. + /// + /// + /// Specifies the LineCount parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnBeforePostBalancingEntry(var PurchHeader: Record "Purchase Header"; var LineCount: Integer) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterReceive. + /// + /// + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterReceive(var PurchHeader: Record "Purchase Header"; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeUpdateAssosOrderPostingNos. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the DropShipment parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateAssosOrderPostingNos(var TempPurchLine: Record "Purchase Line" temporary; var PurchHeader: Record "Purchase Header"; var DropShipment: Boolean; var IsHandled: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeUpdateAfterPosting. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeUpdateAfterPosting(var PurchHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var EverythingInvoiced: Boolean; var IsHandled: Boolean; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforePurchOrderLineModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforePurchOrderLineModify(var PurchOrderLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePostPurchLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostPurchLine(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeFindTempPurchLine. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeFindTempPurchLine(var TempPurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"); begin end; + /// + /// Event raised by OnCalcInvoiceOnAfterResetTempLines. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the NewInvoice parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvoiceOnAfterResetTempLines(var PurchHeader: Record "Purchase Header"; var TempPurchLine: Record "Purchase Line" temporary; var NewInvoice: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnAfterPostInvoice. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the Window parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnRunOnAfterPostInvoice(var PurchaseHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var ReturnShipmentHeader: Record "Return Shipment Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PreviewMode: Boolean; var Window: Dialog; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnCopyToTempLinesLoop. + /// + /// [IntegrationEvent(false, false)] local procedure OnCopyToTempLinesLoop(var PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnRunOnBeforePostPurchLine. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforePostPurchLine(var PurchLine: Record "Purchase Line"; var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeValidateICPartnerBusPostingGroups. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeValidateICPartnerBusPostingGroups(var TempICGenJnlLine: Record "Gen. Journal Line" temporary; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterGetCurrency. + /// + /// + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetCurrency(CurrencyCode: Code[10]; var Currency: Record Currency) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterGetPurchPrepmtAccount. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterGetPurchPrepmtAccount(var GLAcc: Record "G/L Account"; var TempPurchaseLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeGetPurchPrepmtAccount. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the GenPostingSetup parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeGetPurchPrepmtAccount(var GLAcc: Record "G/L Account"; var TempPurchaseLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; var GenPostingSetup: Record "General Posting Setup"; CompleteFunctionality: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertReturnEntryRelation. + /// + /// + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReturnEntryRelation(var ReturnShptLine: Record "Return Shipment Line"; var Result: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestPurchLineOnBeforeTestFieldQtyToReceive. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnTestPurchLineOnBeforeTestFieldQtyToReceive(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestPurchLineOnBeforeTestFieldReturnQtyToShip. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnTestPurchLineOnBeforeTestFieldReturnQtyToShip(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnAfterCalcVATAmountLines. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TempVATAmountLine parameter. [IntegrationEvent(false, false)] local procedure OnRunOnAfterCalcVATAmountLines(var PurchaseHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var TempVATAmountLine: Record "VAT Amount Line" temporary) begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforeInitAssocItemJnlLine. + /// + /// + /// Specifies the ItemShptEntryNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforeInitAssocItemJnlLine(var SalesOrderLine: Record "Sales Line"; var ItemShptEntryNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingSpecificationOnBeforeGetItemTrackingSetup. + /// + /// + /// Specifies the ItemTrackingSetup parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingSpecificationOnBeforeGetItemTrackingSetup(var PurchaseLine: Record "Purchase Line"; var ItemTrackingSetup: Record "Item Tracking Setup"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcItemJnlLineToBeReceivedAmounts. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the RemAmt parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcItemJnlLineToBeReceivedAmounts(var ItemJnlLine: Record "Item Journal Line"; var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyToBeReceived: Decimal; var RemAmt: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforeExit. + /// + /// + /// Specifies the ItemShptEntryNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforeExit(SalesOrderHeader: Record "Sales Header"; var ItemShptEntryNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeCalcQty. + /// + /// + /// Specifies the PurchOrderLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeCalcQty(var TempPurchLine: Record "Purchase Line" temporary; var PurchOrderLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnBeforeInsertSalesShptHeader. + /// + /// + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnBeforeInsertSalesShptHeader(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterShouldCalcAmounts. + /// + /// + /// Specifies the ShouldCalcAmounts parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterShouldCalcAmounts(PurchHeader: Record "Purchase Header"; var ShouldCalcAmounts: Boolean; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeDivideAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnAfterUpdateSalesOrderLine. + /// + /// + /// Specifies the SalesOrderHeader parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the SalesShipmentLine parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnAfterUpdateSalesOrderLine(SalesShptHeader: Record "Sales Shipment Header"; SalesOrderHeader: Record "Sales Header"; var SalesOrderLine: Record "Sales Line"; SalesShipmentLine: Record "Sales Shipment Line") begin end; + /// + /// Event raised by OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckPosted. + /// + /// + /// Specifies the ShouldCheckPosted parameter. [IntegrationEvent(false, false)] local procedure OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckPosted(PurchHeader: Record "Purchase Header"; var ShouldCheckPosted: Boolean) begin end; + /// + /// Event raised by OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckUnposted. + /// + /// + /// Specifies the ShouldCheckUnposted parameter. [IntegrationEvent(false, false)] local procedure OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckUnposted(PurchHeader: Record "Purchase Header"; var ShouldCheckUnposted: Boolean) begin end; + /// + /// Event raised by OnAfterCopyToTempLines. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterCopyToTempLines(var TempPurchLine: Record "Purchase Line" temporary; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnBeforeTempPurchLineSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnBeforeTempPurchLineSetFilters(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForShipment. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForShipment(var PurchHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostGLAccICLineOnBeforeCreateJobPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostGLAccICLineOnBeforeCreateJobPurchLine(var PurchHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeIsItemChargeLineWithQuantityToInvoice. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeIsItemChargeLineWithQuantityToInvoice(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerRcpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRcpt(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterGetAppliedOutboundItemLedgEntryNo. + /// + /// + /// Specifies the ItemApplicationEntry parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetAppliedOutboundItemLedgEntryNo(var ItemJnlLine: Record "Item Journal Line"; var ItemApplicationEntry: Record "Item Application Entry") begin end; + /// + /// Event raised by OnAfterGetGeneralPostingSetup. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetGeneralPostingSetup(var GeneralPostingSetup: Record "General Posting Setup"; PurchLine: Record "Purchase Line"); begin end; + /// + /// Event raised by OnBeforeConfirmJobLineType. + /// + /// + /// Specifies the HideDialog parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeConfirmJobLineType(PurchLine: Record "Purchase Line"; var HideDialog: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeConfirmJobPlanningLineNo. + /// + /// + /// Specifies the HideDialog parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeConfirmJobPlanningLineNo(PurchLine: Record "Purchase Line"; var HideDialog: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldProcessShipment. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ShouldProcessShipment parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldProcessShipment(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ShouldProcessShipment: Boolean) begin end; + /// + /// Event raised by OnCheckItemReservDisruptionOnAfterInsertTempSKU. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckItemReservDisruptionOnAfterInsertTempSKU(var Item: Record Item; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterPostItemChargePerRetRcpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerRetRcpt(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerTransfer. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerTransfer(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerRetShpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerRetShpt(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerSalesShpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerSalesShpt(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnInsertInvoiceHeaderOnBeforeCopyLinks. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertInvoiceHeaderOnBeforeCopyLinks(var PurchHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeUpdateIncomingDocument. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeUpdateIncomingDocument(var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumptionOnAfterItemLedgEntrySetFilters. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineJobConsumptionOnAfterItemLedgEntrySetFilters(var ItemLedgEntry: Record "Item Ledger Entry"; var PurchLine: Record "Purchase Line"; var ItemJournalLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnTestPurchLineOnTypeCaseOnDocumentTypeCaseElse. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnTestPurchLineOnTypeCaseOnDocumentTypeCaseElse(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterDecrementPrepmtAmtInvLCY. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PrepmtAmountInvLCY parameter. + /// Specifies the PrepmtVATAmountInvLCY parameter. [IntegrationEvent(false, false)] local procedure OnAfterDecrementPrepmtAmtInvLCY(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var PrepmtAmountInvLCY: Decimal; var PrepmtVATAmountInvLCY: Decimal) begin end; #if not CLEAN27 + /// + /// Event raised by OnSetPostingPreviewDocumentNo. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnSetPostingPreviewDocumentNo(var PreviewDocumentNo: Code[20]) begin end; + /// + /// Event raised by OnGetPostingPreviewDocumentNos. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnGetPostingPreviewDocumentNos(var PreviewDocumentNos: List of [Code[20]]) begin end; #endif + /// + /// Event raised by OnInsertPostedHeadersOnAfterInvoice. + /// + /// + /// Specifies the GenJournalLine parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInvoice(var PurchaseHeader: Record "Purchase Header"; var GenJournalLine: Record "Gen. Journal Line"; var GenJnlLineDocType: Enum "Gen. Journal Document Type"; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterSumPurchLines2. + /// + /// + /// Specifies the OldPurchaseLine parameter. + /// Specifies the NewPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterSumPurchLines2(var PurchaseHeader: Record "Purchase Header"; var OldPurchaseLine: Record "Purchase Line"; var NewPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnTypeCaseElse. + /// + /// + /// Specifies the Sign parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnTypeCaseElse(var PurchaseLine: Record "Purchase Line"; var Sign: Decimal) begin end; + /// + /// Event raised by OnSumPurchLines2OnAfterIsRoundingLineInserted. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the OldPurchaseLine parameter. + /// Specifies the RoundingLineInserted parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnAfterIsRoundingLineInserted(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var OldPurchaseLine: Record "Purchase Line"; RoundingLineInserted: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckICPartnerBlocked. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckICPartnerBlocked(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnAfterPostLines. + /// + /// + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TotalAmount parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnAfterPostLines(var PurchaseHeader: Record "Purchase Header"; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line"; var TempPurchLineGlobal: Record "Purchase Line" temporary; TotalAmount: Decimal) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforePurchaseHeaderModify. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforePurchaseHeaderModify(var PurchaseHeader: Record "Purchase Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePurchLineDimSetIDFromAppliedEntry. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePurchLineDimSetIDFromAppliedEntry(var PurchaseLineToPost: Record "Purchase Line"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterDeleteItemChargeAssgnt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterDeleteItemChargeAssgnt(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforePostItemChargePerRetRcpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRetRcpt(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerITTransfer. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TransRcptLine parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerITTransfer(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; TransRcptLine: Record "Transfer Receipt Line"; var TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerRetShpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRetShpt(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeShouldTestGetReceiptPPmtAmtToDeduct. + /// + /// + /// Specifies the CompleteFunctionality parameter. + /// Specifies the ShouldTestGetReceiptPPmtAmtToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeShouldTestGetReceiptPPmtAmtToDeduct(PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean; var ShouldTestGetReceiptPPmtAmtToDeduct: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeAmountIncludingVATAmountRound. + /// + /// + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeAmountIncludingVATAmountRound(var PurchaseLine: Record "Purchase Line"; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeCalcAmountsForFullVAT. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeCalcAmountsForFullVAT(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckMandatoryFields. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckMandatoryFields(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckPostingDate. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPostingDate(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterInsertCrMemoHeader. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertCrMemoHeader(var PurchaseHeader: Record "Purchase Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnAfterInsertInvoiceHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertInvoiceHeader(var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header") begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeOnBeforeDoCommit. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeOnBeforeDoCommit(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnReleasePurchDocumentOnBeforeDoCommit. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnReleasePurchDocumentOnBeforeDoCommit(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateAssociatedSalesOrderBeforeInitOutstanding. + /// + /// + /// Specifies the SalesOrderLine parameter. + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssociatedSalesOrderBeforeInitOutstanding(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesOrderLine: Record "Sales Line"; SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnRunOnBeforePostInvoice. + /// + /// + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforePostInvoice(PurchaseHeader: Record "Purchase Header"; var EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnCheckPurchDocumentOnBeforeCheckPurchDim. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckPurchDocumentOnBeforeCheckPurchDim(var PurchaseHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnCalcInvDiscountOnBeforeDoCommit. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvDiscountOnBeforeDoCommit(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeSetReplaceDocumentDate. + /// + /// + /// Specifies the PostingDate parameter. + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeSetReplaceDocumentDate(var PurchaseHeader: Record "Purchase Header"; var PostingDate: Date; var ReplaceDocumentDate: Boolean; var ModifyHeader: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineGet. + /// + /// + /// Specifies the TempVATAmountLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineGet(PurchaseLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckFAPostingPossibility. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckFAPostingPossibility(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckPostRestrictions. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPostRestrictions(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeTestGeneralPostingGroups. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeTestGeneralPostingGroups(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeTestFieldBilltoCustomerNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeTestFieldBilltoCustomerNo(var SalesOrderHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnAfterCalcVATBaseAmount. + /// + /// [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterCalcVATBaseAmount(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeUpdateAfterPosting. + /// + /// + /// Specifies the SuppressCommit parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateAfterPosting(var PurchaseHeader: Record "Purchase Header"; SuppressCommit: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckAndUpdate. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckAndUpdate(var PurchaseHeader: Record "Purchase Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterCalcTotalChargeAmt. + /// + /// + /// Specifies the QtyToAssign parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnAfterCalcTotalChargeAmt(var PurchaseLineToPost: Record "Purchase Line"; QtyToAssign: Decimal; var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostPurchLineOnAfterInsertReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the TempPurchaseLineGlobal parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterInsertReturnShipmentLine(var PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; ReturnShptHeader: Record "Return Shipment Header"; TempPurchaseLineGlobal: Record "Purchase Line"; RoundingLineInserted: Boolean; xPurchaseLine: Record "Purchase Line"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."); begin end; + /// + /// Event raised by OnBeforeMakeInventoryAdjustment. + /// + /// [IntegrationEvent(false, false)] procedure OnBeforeMakeInventoryAdjustment(var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeCheckItemReservDisruption. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckItemReservDisruption(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterSetCheckApplToItemEntry. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterSetCheckApplToItemEntry(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheckBlanketOrderPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheckBlanketOrderPurchLine(var BlanketOrderPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeModifyInvoicedQtyOnPurchRcptLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeModifyInvoicedQtyOnPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeTestPostingDate. + /// + /// + /// Specifies the ReplacePostingDate parameter. + /// Specifies the SkipTestPostingDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeTestPostingDate(var PurchaseHeader: Record "Purchase Header"; ReplacePostingDate: Boolean; var SkipTestPostingDate: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckItemCharge. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckItemCharge(var ItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeProcedurePostAssocItemJnlLine. + /// + /// + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the ItemShptEntryNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeProcedurePostAssocItemJnlLine(var SalesOrderLine: Record "Sales Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempHandlingSpecification: Record "Tracking Specification" temporary; QtyToBeShipped: Decimal; QtyToBeShippedBase: Decimal; var ItemShptEntryNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostDistributeItemChargeOnAfterSetFactor. + /// + /// + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostDistributeItemChargeOnAfterSetFactor(TempItemLedgerEntry: Record "Item Ledger Entry"; var Factor: Decimal) begin end; + /// + /// Event raised by OnBeforeCalcItemJnlLineToBeInvoicedAmounts. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the RemAmt parameter. + /// Specifies the RemDiscAmt parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcItemJnlLineToBeInvoicedAmounts(var ItemJournalLine: Record "Item Journal Line"; var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; var RemAmt: Decimal; var RemDiscAmt: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemJnlLineWhseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the PostBefore parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLineWhseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary; PurchaseLine: Record "Purchase Line"; PostBefore: Boolean) begin end; + /// + /// Event raised by OnAfterPostItemJnlLineWhseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLineWhseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerTransferOnBeforeProcessItemApplicationEntry. + /// + /// + /// Specifies the ItemApplicationEntry parameter. + /// Specifies the TransferReceiptLine parameter. + /// Specifies the TotalAmountToPostFCY parameter. + /// Specifies the AmountToPostFCY parameter. + /// Specifies the GeneralLedgerSetup parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerTransferOnBeforeProcessItemApplicationEntry(PurchaseLine: Record "Purchase Line"; ItemApplicationEntry: Record "Item Application Entry"; TransferReceiptLine: Record "Transfer Receipt Line"; TotalAmountToPostFCY: Decimal; var AmountToPostFCY: Decimal; GeneralLedgerSetup: Record "General Ledger Setup"; PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemCharge. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ItemEntryNo parameter. + /// Specifies the QuantityBase parameter. + /// Specifies the AmountToAssign parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the IndirectCostPct parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemCharge(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; ItemEntryNo: Integer; QuantityBase: Decimal; AmountToAssign: Decimal; QtyToAssign: Decimal; IndirectCostPct: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertedPrepmtVATBaseToDeductOnAfterSetTempPrepmtDeductLCYPurchaseLine. + /// + /// + /// Specifies the PrepmtVATBaseToDeduct parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertedPrepmtVATBaseToDeductOnAfterSetTempPrepmtDeductLCYPurchaseLine(var TempPrepmtDeductLCYPurchaseLine: Record "Purchase Line" temporary; var PrepmtVATBaseToDeduct: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeAdjustPrepmtAmountLCY. + /// + /// + /// Specifies the PrepmtPurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustPrepmtAmountLCY(PurchaseHeader: Record "Purchase Header"; var PrepmtPurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeAdjustFinalInvWith100PctPrepmt. + /// + /// + /// Specifies the TempPrepmtDeductLCYPurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustFinalInvWith100PctPrepmt(var CombinedPurchaseLine: Record "Purchase Line"; var TempPrepmtDeductLCYPurchaseLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateInvoicedQtyOnReturnShipmentLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoicedQtyOnReturnShipmentLine(var ReturnShipmentLine: Record "Return Shipment Line") begin end; + /// + /// Event raised by OnAfterCheckPurchRcptLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckPurchRcptLine(PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnUpdateItemChargeAssgntOnBeforeItemChargeAssignmentPurchModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateItemChargeAssgntOnBeforeItemChargeAssignmentPurchModify(var ItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)") begin end; + /// + /// Event raised by OnBeforeUpdateReceiptInvoicingQuantities. + /// + /// + /// Specifies the SkipQuantityUpdate parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateReceiptInvoicingQuantities(PurchLine: Record "Purchase Line"; var SkipQuantityUpdate: Boolean) begin end; + /// + /// Event raised by OnSetCommitBehavior. + /// + /// [IntegrationEvent(false, false)] local procedure OnSetCommitBehavior(var IgnoreCommit: Boolean) begin end; + + /// + /// Event raised by OnAfterProcessPostingLines. + /// + /// + /// Specifies the TotalPurchLine parameter. + /// Specifies the VendLedgEntry parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the Window parameter. + [IntegrationEvent(false, false)] + local procedure OnAfterProcessPostingLines(var PurchHeader: Record "Purchase Header"; var TotalPurchLine: Record "Purchase Line"; var VendLedgEntry: Record "Vendor Ledger Entry"; InvoicePostingParameters: Record "Invoice Posting Parameters"; SuppressCommit: Boolean; EverythingInvoiced: Boolean; var Window: Dialog) + begin + end; + + /// + /// Event is raised after the CheckPostRestrictions function is executed + /// + /// The purchase header record that was checked for post restrictions. + [IntegrationEvent(false, false)] + local procedure OnAfterCheckPostRestrictions(var PurchaseHeader: Record "Purchase Header") + begin + end; } + diff --git a/src/Layers/FI/BaseApp/Sales/Posting/SalesPost.Codeunit.al b/src/Layers/FI/BaseApp/Sales/Posting/SalesPost.Codeunit.al index 099335d799e..6337d492eba 100644 --- a/src/Layers/FI/BaseApp/Sales/Posting/SalesPost.Codeunit.al +++ b/src/Layers/FI/BaseApp/Sales/Posting/SalesPost.Codeunit.al @@ -353,6 +353,8 @@ codeunit 80 "Sales-Post" ProcessPosting(SalesHeader, SalesHeader2, TempDropShptPostBuffer, CustLedgEntry, EverythingInvoiced); + Clear(GenJnlPostLine); + UpdateLastPostingNos(SalesHeader); OnRunOnBeforeFinalizePosting( @@ -541,6 +543,8 @@ codeunit 80 "Sales-Post" OnRunOnBeforeMakeInventoryAdjustment(SalesHeader, SalesInvHeader, GenJnlPostLine, ItemJnlPostLine, PreviewMode, SkipInventoryAdjustment); if not SkipInventoryAdjustment then MakeInventoryAdjustment(); + + OnAfterProcessPostingLines(SalesHeader, TotalSalesLine, CustLedgEntry, InvoicePostingParameters, SuppressCommit, EverythingInvoiced, Window, HideProgressWindow); end; /// @@ -6261,6 +6265,8 @@ codeunit 80 "Sales-Post" if SalesHeader."Bill-to Contact No." <> '' then if Contact.Get(SalesHeader."Bill-to Contact No.") then Contact.CheckIfPrivacyBlocked(true); + + OnAfterCheckPostRestrictions(SalesHeader); end; local procedure CheckCustBlockage(SalesHeader: Record "Sales Header"; CustCode: Code[20]; ExecuteDocCheck: Boolean) @@ -9433,6 +9439,7 @@ codeunit 80 "Sales-Post" /// Indicates whether the item journal line should be posted. /// Indicates whether warehouse shipment is involved. /// The warehouse receipt header. + /// Specifies the WarehouseShipmentHeader parameter. [IntegrationEvent(true, false)] local procedure OnAfterPostItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var WhseJnlPostLine: Codeunit "Whse. Jnl.-Register Line"; OriginalItemJnlLine: Record "Item Journal Line"; var ItemShptEntryNo: Integer; IsATO: Boolean; var TempHandlingSpecification: Record "Tracking Specification"; var TempATOTrackingSpecification: Record "Tracking Specification"; TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; ShouldPostItemJnlLine: Boolean; WhseShip: Boolean; WhseRcptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header") begin @@ -12592,834 +12599,1960 @@ codeunit 80 "Sales-Post" begin end; + /// + /// Event raised by OnSumSalesLines2OnAfterDivideAmount. + /// + /// + /// Specifies the SalesLineQty parameter. + /// Specifies the QtyType parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnAfterDivideAmount(var OldSalesLine: Record "Sales Line"; var SalesLineQty: Decimal; QtyType: Option General,Invoicing,Shipping) begin end; + /// + /// Event raised by OnSumSalesLines2OnAfterCalcTotalAdjCostLCY. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnAfterCalcTotalAdjCostLCY(var TotalAdjCostLCY: decimal; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnSumSalesLines2OnBeforeCalcVATAmountLines. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the InsertSalesLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnBeforeCalcVATAmountLines(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; InsertSalesLine: Boolean; var TempVATAmountLine: Record "VAT Amount Line" temporary; QtyType: Option General,Invoicing,Shipping; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumSalesLines2OnBeforeNewSalesLineInsert. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnBeforeNewSalesLineInsert(var NewSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumSalesLines2SetFilter. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the InsertSalesLine parameter. + /// Specifies the QtyType parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2SetFilter(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; InsertSalesLine: Boolean; var QtyType: Option) begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnBeforePostTempWhseJnlLine2. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnBeforePostTempWhseJnlLine2(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterTestUpdatedSalesLine. + /// + /// + /// Specifies the EverythingInvoiced parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterTestUpdatedSalesLine(var SalesLine: Record "Sales Line"; var EverythingInvoiced: Boolean; SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineBeforeInitQtyToInvoice. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineBeforeInitQtyToInvoice(var TempSalesLine: Record "Sales Line" temporary; WhseShip: Boolean; WhseReceive: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitOutstanding(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitTempSalesLineQuantities. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitTempSalesLineQuantities(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterUpdateInvoicedValues. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterUpdateInvoicedValues(var TempSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; TempSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; TempSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterInsertSalesOrderHeader. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterInsertSalesOrderHeader(var SalesOrderLine: Record "Sales Line"; TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; WhseShip: Boolean; WhseReceive: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeUpdateInvoicedValues. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeUpdateInvoicedValues(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnSetDefaultQtyBlank. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesSetup parameter. + /// Specifies the SetDefaultQtyBlank parameter. [IntegrationEvent(true, false)] local procedure OnPostUpdateOrderLineOnSetDefaultQtyBlank(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; SalesSetup: Record "Sales & Receivables Setup"; var SetDefaultQtyBlank: Boolean) begin end; + /// + /// Event raised by OnCalcInvoiceOnAfterTempSalesLineSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvoiceOnAfterTempSalesLineSetFilters(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterCalcInvDiscount. + /// + /// + /// Specifies the TempWhseShptHeader parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterCalcInvDiscount(SalesHeader: Record "Sales Header"; TempWhseShptHeader: Record "Warehouse Shipment Header" temporary; PreviewMode: Boolean; var TempSalesLineGlobal: Record "Sales Line" temporary; SuppressCommit: Boolean; WhseReceive: Boolean; WhseShip: Boolean); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterReleaseSalesDocument. + /// + /// + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterReleaseSalesDocument(SalesHeader: Record "Sales Header"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeSetPostingFlags. + /// + /// + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the HideProgressWindow parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnBeforeSetPostingFlags(var SalesHeader: Record "Sales Header"; var TempSalesLineGlobal: Record "Sales Line" temporary; var ModifyHeader: Boolean; var HideProgressWindow: Boolean); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetPostingFlags. + /// + /// + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the ModifyHeader parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterSetPostingFlags(var SalesHeader: Record "Sales Header"; var TempSalesLineGlobal: Record "Sales Line" temporary; var ModifyHeader: Boolean); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetSourceCode. + /// + /// + /// Specifies the SourceCodeSetup parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetSourceCode(var SalesHeader: Record "Sales Header"; SourceCodeSetup: Record "Source Code Setup"; var SrcCode: Code[10]); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetPoszingFromWhseRef. + /// + /// + /// Specifies the InvtPickPutaway parameter. + /// Specifies the PostingFromWhseRef parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetPoszingFromWhseRef(var SalesHeader: Record "Sales Header"; var InvtPickPutaway: Boolean; var PostingFromWhseRef: Integer); begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCalcInvDiscount. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the RefreshNeeded parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCalcInvDiscount(var SalesHeader: Record "Sales Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseReceive: Boolean; WhseShip: Boolean; var RefreshNeeded: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCheckPostRestrictions. + /// + /// + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCheckPostRestrictions(var SalesHeader: Record "Sales Header"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnCheckAssosOrderLinesOnAfterSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssosOrderLinesOnAfterSetFilters(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnCheckSalesDocumentOnAfterCalcShouldCheckItemCharge. + /// + /// + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ShouldCheckItemCharge parameter. + /// Specifies the ModifyHeader parameter. [IntegrationEvent(true, false)] local procedure OnCheckSalesDocumentOnAfterCalcShouldCheckItemCharge(var SalesHeader: Record "Sales Header"; WhseReceive: Boolean; WhseShip: Boolean; var ShouldCheckItemCharge: Boolean; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForShipOnBeforeCheck. + /// + /// + /// Specifies the TempWhseShipmentHeader parameter. + /// Specifies the TempWhseReceiptHeader parameter. + /// Specifies the Ship parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForShipOnBeforeCheck(var SalesHeader: Record "Sales Header"; var TempWhseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWhseReceiptHeader: Record "Warehouse Receipt Header" temporary; var Ship: Boolean; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForReceiveOnBeforeCheck. + /// + /// + /// Specifies the TempWhseShipmentHeader parameter. + /// Specifies the TempWhseReceiptHeader parameter. + /// Specifies the Receive parameter. [IntegrationEvent(true, false)] local procedure OnCheckTrackingAndWarehouseForReceiveOnBeforeCheck(var SalesHeader: Record "Sales Header"; var TempWhseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWhseReceiptHeader: Record "Warehouse Receipt Header" temporary; var Receive: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingSpecificationOnAfterTempItemSalesLineLoop. + /// + /// [IntegrationEvent(false, false)] local procedure OnCheckTrackingSpecificationOnAfterTempItemSalesLineLoop(var TempItemSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckCustBlockageOnAfterTempLinesSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckCustBlockageOnAfterTempLinesSetFilters(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary); begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterTempPrepmtSalesLineSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterTempPrepmtSalesLineSetFilters(var TempPrepmtSalesLine: Record "Sales Line" temporary; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterGetSalesPrepmtAccount. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterGetSalesPrepmtAccount(var GLAcc: Record "G/L Account"; var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeGetSalesPrepmtAccount. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the GenPostingSetup parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeGetSalesPrepmtAccount(var GLAcc: Record "G/L Account"; var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header"; var GenPostingSetup: Record "General Posting Setup"; CompleteFunctionality: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterTempSalesLineSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempPrepmtSalesLine parameter. + /// Specifies the NextLineNo parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterTempSalesLineSetFilters(var TempSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempPrepmtSalesLine: Record "Sales Line" temporary; var NextLineNo: Integer) begin end; + /// + /// Event raised by OnFinalizePostingOnAfterUpdateItemChargeAssgnt. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnAfterUpdateItemChargeAssgnt(var SalesHeader: Record "Sales Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the TempItemChargeAssignmentSales parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the TempSalesLine parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the SalesPost parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeInsertTrackingSpecification(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)" temporary; SalesHeader: Record "Sales Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; EverythingInvoiced: Boolean; var TempSalesLine: Record "Sales Line" temporary; var TempSalesLineGlobal: Record "Sales Line" temporary; SalesPost: Codeunit "Sales-Post") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeCreateOutboxSalesTrans. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeCreateOutboxSalesTrans(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; EverythingInvoiced: Boolean; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeDeleteApprovalEntries. + /// + /// + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeDeleteApprovalEntries(var SalesHeader: Record "Sales Header"; var EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeGenJnlPostPreviewThrowError. + /// + /// + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeGenJnlPostPreviewThrowError(SalesHeader: Record "Sales Header"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforePost. + /// + /// + /// Specifies the PurchOrderLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforePost(var ItemJournalLine: Record "Item Journal Line"; PurchOrderLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostATOOnBeforePostedATOLinkInsert. + /// + /// + /// Specifies the AssemblyHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostATOOnBeforePostedATOLinkInsert(var PostedATOLink: Record "Posted Assemble-to-Order Link"; var AssemblyHeader: Record "Assembly Header"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostATOAssocItemJnlLineOnBeforeRemainingPost. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the PostedATOLink parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the ItemLedgShptEntryNo parameter. [IntegrationEvent(false, false)] local procedure OnPostATOAssocItemJnlLineOnBeforeRemainingPost(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var PostedATOLink: Record "Posted Assemble-to-Order Link"; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal; var ItemLedgShptEntryNo: Integer) begin end; + /// + /// Event raised by OnPostDropOrderShipmentOnAfterUpdateBlanketOrderLine. + /// + /// + /// Specifies the PurchOrderLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostDropOrderShipmentOnAfterUpdateBlanketOrderLine(PurchOrderHeader: Record "Purchase Header"; PurchOrderLine: Record "Purchase Line"; TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesShptHeader: Record "Sales Shipment Header"; SalesHeader: Record "Sales Header"; PurchRcptHeader: Record "Purch. Rcpt. Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyDocumentFields. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header") begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCalcShouldPostItemJnlLineItemCharges. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the ShouldPostItemJnlLineItemCharges parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCalcShouldPostItemJnlLineItemCharges(SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var ShouldPostItemJnlLineItemCharges: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterPrepareItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the RemAmt parameter. + /// Specifies the RemDiscAmt parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterPrepareItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; WhseShip: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var QtyToBeShipped: Decimal; TrackingSpecification: Record "Tracking Specification"; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; var QtyToBeShippedBase: Decimal; var RemAmt: Decimal; var RemDiscAmt: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyItemCharge. + /// + /// + /// Specifies the TempItemChargeAssgntSales parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyItemCharge(var ItemJournalLine: Record "Item Journal Line"; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeIsJobContactLineCheck. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the ShouldPostItemJnlLine parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the QtyToBeShipped parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeIsJobContactLineCheck(var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var ShouldPostItemJnlLine: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; QtyToBeShipped: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck(var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforePostItemJnlLineWhseLine. + /// + /// + /// Specifies the TempWhseJnlLine parameter. + /// Specifies the TempWhseTrackingSpecification parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforePostItemJnlLineWhseLine(var ItemJnlLine: Record "Item Journal Line"; var TempWhseJnlLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeTransferReservToItemJnlLine. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the CheckApplFromItemEntry parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeShippedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeTransferReservToItemJnlLine(SalesLine: Record "Sales Line"; ItemJnlLine: Record "Item Journal Line"; var CheckApplFromItemEntry: Boolean; var TrackingSpecification: Record "Tracking Specification"; QtyToBeShippedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeCopyTrackingFromSpec. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeCopyTrackingFromSpec(TrackingSpecification: Record "Tracking Specification"; var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; IsATO: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine(var ItemChargeSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemJnlLinePrepareJournalLineOnBeforeCalcItemJnlAmounts. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLinePrepareJournalLineOnBeforeCalcItemJnlAmounts(var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; IsATO: Boolean) begin end; + /// + /// Event raised by OnPostItemChargeOnBeforePostItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the TempItemChargeAssgntSales parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnBeforePostItemJnlLine(var SalesLineToPost: Record "Sales Line"; var SalesLine: Record "Sales Line"; QtyToAssign: Decimal; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnAfterCopyToItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the GeneralLedgerSetup parameter. + /// Specifies the QtyToInvoice parameter. + /// Specifies the TempItemChargeAssignmentSales parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnAfterCopyToItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var SalesLine: Record "Sales Line"; GeneralLedgerSetup: Record "General Ledger Setup"; QtyToInvoice: Decimal; var TempItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)" temporary) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnAfterTempTrackingSpecificationInvSetFilters. + /// + /// + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the TempTrackingSpecificationInv parameter. + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the TotalSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnAfterTempTrackingSpecificationInvSetFilters(SalesHeader: record "Sales Header"; var ItemJnlLine2: record "Item Journal Line"; var TempTrackingSpecificationInv: Record "Tracking Specification" temporary; SalesLine: Record "Sales Line"; var IsHandled: Boolean; var TotalSalesLineLCY: Record "Sales Line"; var TotalSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnBeforeTestJobNo. + /// + /// + /// Specifies the SkipTestJobNo parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnBeforeTestJobNo(SalesLine: Record "Sales Line"; var SkipTestJobNo: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnBeforeLastRunWithCheck. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnBeforeLastRunWithCheck(NonDistrItemJnlLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnBeforeRunWithCheck. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnBeforeRunWithCheck(ItemJnlLine2: Record "Item Journal Line"; var IsHandled: Boolean; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerShptOnBeforeTestJobNo. + /// + /// + /// Specifies the SkipTestJobNo parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerShptOnBeforeTestJobNo(SalesShipmentLine: Record "Sales Shipment Line"; var SkipTestJobNo: Boolean; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerShptOnAfterCheckItemChargePerShpt. + /// + /// + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the DistributeCharge parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerShptOnAfterCheckItemChargePerShpt(SalesShipmentLine: Record "Sales Shipment Line"; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; DistributeCharge: Boolean; var IsHandled: Boolean; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerShptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the DistributeCharge parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerShptOnAfterCalcDistributeCharge(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesShptLine: Record "Sales Shipment Line"; TempItemLedgEntry: Record "Item Ledger Entry" temporary; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; var DistributeCharge: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the ReturnRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the DistributeCharge parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; ReturnRcptLine: Record "Return Receipt Line"; TempItemLedgEntry: Record "Item Ledger Entry" temporary; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; var DistributeCharge: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRetRcptOnBeforeTestFieldJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetRcptOnBeforeTestFieldJobNo(ReturnReceiptLine: Record "Return Receipt Line"; var IsHandled: Boolean; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingLineOnAfterRetrieveInvoiceSpecification. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingLineOnAfterRetrieveInvoiceSpecification(var SalesLine: Record "Sales Line"; var TempInvoicingSpecification: Record "Tracking Specification" temporary; var TrackingSpecificationExists: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnAfterSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnAfterSetFilters(var SalesShipmentLine: Record "Sales Shipment Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnAfterUpdateSalesShptLineFields. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnAfterUpdateSalesShptLineFields(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the HasATOShippedNotInvoiced parameter. + /// Specifies the ShouldAdjustQuantityRounding parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding(SalesShptLine: Record "Sales Shipment Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; HasATOShippedNotInvoiced: Boolean; var ShouldAdjustQuantityRounding: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeShipmentInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the ItemJnlRollRndg parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(true, false)] local procedure OnPostItemTrackingForShipmentOnBeforeShipmentInvoiceErr(SalesLine: Record "Sales Line"; var IsHandled: Boolean; SalesHeader: Record "Sales Header"; var ItemJnlRollRndg: Boolean; TrackingSpecificationExists: Boolean; var TempTrackingSpecification: Record "Tracking Specification" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeReturnReceiptInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the ItemJnlRollRndg parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(true, false)] local procedure OnPostItemTrackingForShipmentOnBeforeReturnReceiptInvoiceErr(SalesLine: Record "Sales Line"; var IsHandled: Boolean; SalesHeader: Record "Sales Header"; var ItemJnlRollRndg: Boolean; TrackingSpecificationExists: Boolean; var TempTrackingSpecification: Record "Tracking Specification" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnAfterSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnAfterSetFilters(var ReturnReceiptLine: Record "Return Receipt Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertCrMemoLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertCrMemoLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean; xSalesLine: Record "Sales Line"; SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertInvoiceLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the ShouldInsertInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertInvoiceLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean; xSalesLine: Record "Sales Line"; SalesInvHeader: Record "Sales Invoice Header"; var ShouldInsertInvoiceLine: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertReturnReceiptLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertReturnReceiptLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertShipmentLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesLineACY parameter. + /// Specifies the DocType parameter. + /// Specifies the DocNo parameter. + /// Specifies the ExtDocNo parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertShipmentLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean; SalesLineACY: Record "Sales Line"; DocType: Option; DocNo: Code[20]; ExtDocNo: Code[35]) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterSetEverythingInvoiced. + /// + /// + /// Specifies the EverythingInvoiced parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterSetEverythingInvoiced(SalesLine: Record "Sales Line"; var EverythingInvoiced: Boolean; var IsHandled: Boolean; SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterRoundAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterRoundAmount(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; GenJnlLineDocNo: Code[20]) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeTestJobNo(SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterPostItemTrackingLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempPostedATOLink parameter. [IntegrationEvent(true, false)] local procedure OnPostSalesLineOnAfterPostItemTrackingLine(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterTestSalesLine. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the WhseShptHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CostBaseAmount parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterTestSalesLine(var SalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header"; var WhseShptHeader: Record "Warehouse Shipment Header"; WhseShip: Boolean; PreviewMode: Boolean; var CostBaseAmount: Decimal) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforePostItemTrackingLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(true, false)] local procedure OnPostSalesLineOnBeforePostItemTrackingLine(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var ItemLedgShptEntryNo: Integer; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal; GenJnlLineDocNo: Code[20]; SrcCode: Code[10]; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeTestUnitOfMeasureCode. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeTestUnitOfMeasureCode(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterAdjustPrepmtAmountLCY. + /// + /// + /// Specifies the xSalesLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterAdjustPrepmtAmountLCY(var SalesLine: record "Sales Line"; var xSalesLine: record "Sales Line"; TempTrackingSpecification: record "Tracking Specification" temporary; SalesHeader: record "Sales Header") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterInsertReturnReceiptLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the ReturnRcptHeader parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the SalesShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterInsertReturnReceiptLine(var SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var xSalesLine: Record "Sales Line"; ReturnRcptHeader: Record "Return Receipt Header"; RoundingLineInserted: Boolean; var TempTrackingSpecification: Record "Tracking Specification" temporary; var ItemLedgShptEntryNo: Integer; SalesShipmentHeader: Record "Sales Shipment Header") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterGetSalesOrderLine. + /// + /// + /// Specifies the SalesShptLine parameter. + /// Specifies the SalesOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterGetSalesOrderLine(var TempSalesLine: Record "Sales Line" temporary; SalesShptLine: Record "Sales Shipment Line"; SalesOrderLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeCalcQuantityInvoiced. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeCalcQuantityInvoiced(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnAfterGetSalesOrderLine. + /// + /// + /// Specifies the ReturnRcptLine parameter. + /// Specifies the SalesOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnAfterGetSalesOrderLine(var TempSalesLine: Record "Sales Line" temporary; ReturnRcptLine: Record "Return Receipt Line"; SalesOrderLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeInitQtyToInvoice(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnAfterModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnAfterModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeCalcQuantityInvoiced. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeCalcQuantityInvoiced(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnProcessAssocItemJnlLineOnBeforeTempDropShptPostBufferInsert. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnProcessAssocItemJnlLineOnBeforeTempDropShptPostBufferInsert(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnProcessAssocItemJnlLineOnBeforePostAssocItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnProcessAssocItemJnlLineOnBeforePostAssocItemJnlLine(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnRoundAmountOnBeforeIncrAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineQty parameter. + /// Specifies the TotalSalesLine parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnBeforeIncrAmount(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineQty: Decimal; var TotalSalesLine: Record "Sales Line"; var TotalSalesLineLCY: Record "Sales Line"; var xSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforeCheckTotalInvoiceAmount. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeCheckTotalInvoiceAmount(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnRunOnBeforeFinalizePosting. + /// + /// + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the ReturnReceiptHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeFinalizePosting(var SalesHeader: Record "Sales Header"; var SalesShipmentHeader: Record "Sales Shipment Header"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var ReturnReceiptHeader: Record "Return Receipt Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; CommitIsSuppressed: Boolean; GenJnlLineExtDocNo: Code[35]; var EverythingInvoiced: Boolean; GenJnlLineDocNo: Code[20]; SrcCode: Code[10]; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforePostSalesLineEndLoop. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the LastLineRetrieved parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the RecSalesHeader parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the ReturnReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforePostSalesLineEndLoop(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var LastLineRetrieved: Boolean; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; RecSalesHeader: Record "Sales Header"; xSalesLine: Record "Sales Line"; var SalesShipmentHeader: Record "Sales Shipment Header"; var ReturnReceiptHeader: Record "Return Receipt Header") begin end; + /// + /// Event raised by OnGetATOItemLedgEntriesNotInvoicedOnBeforeItemLedgEntryNotInvoicedInsert. + /// + /// [IntegrationEvent(false, false)] local procedure OnGetATOItemLedgEntriesNotInvoicedOnBeforeItemLedgEntryNotInvoicedInsert(var ItemLedgEntry: Record "Item Ledger Entry") begin end; + /// + /// Event raised by OnGetPostedDocumentRecordElseCase. + /// + /// + /// Specifies the PostedSalesDocumentVariant parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnGetPostedDocumentRecordElseCase(SalesHeader: Record "Sales Header"; var PostedSalesDocumentVariant: Variant; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnGetSalesLinesOnAfterFillTempLines. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnGetSalesLinesOnAfterFillTempLines(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; - [IntegrationEvent(false, false)] - local procedure OnPostItemLineOnAfterMakeSalesLineToShip(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) + /// + /// Event raised by OnPostItemLineOnAfterMakeSalesLineToShip. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempPostedATOLink parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + [IntegrationEvent(false, false)] + local procedure OnPostItemLineOnAfterMakeSalesLineToShip(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemLineOnBeforeMakeSalesLineToShip. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempPostedATOLink parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the IsHandled parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the ReturnReceiptHeader parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the TempHandlingSpecificationInv parameter. + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnPostItemLineOnBeforeMakeSalesLineToShip(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var ItemLedgShptEntryNo: Integer; var IsHandled: Boolean; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; ReturnReceiptHeader: Record "Return Receipt Header"; var TempHandlingSpecification: Record "Tracking Specification" temporary; var TempHandlingSpecificationInv: Record "Tracking Specification" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnPostItemLineOnBeforePostItemInvoiceLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempPostedATOLink parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemLineOnBeforePostItemInvoiceLine(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterPostItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnAfterPostItemJnlLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargeLineOnAfterTempItemChargeAssgntSalesLoop. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineParam parameter. [IntegrationEvent(true, false)] local procedure OnPostItemChargeLineOnAfterTempItemChargeAssgntSalesLoop(var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineParam: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargeLineOnBeforePostItemCharge. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeLineOnBeforePostItemCharge(var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforeReturnRcptLineModify. + /// + /// + /// Specifies the ReturnRcptLine parameter. + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforeReturnRcptLineModify(SalesHeader: Record "Sales Header"; var ReturnRcptLine: Record "Return Receipt Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforeAdjustQuantityRounding. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the ShouldAdjustQuantityRounding parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforeAdjustQuantityRounding(ReturnRcptLine: Record "Return Receipt Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; var ShouldAdjustQuantityRounding: Boolean) begin end; + /// + /// Event raised by OnReleaseSalesDocumentOnBeforeSetStatus. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SavedStatus parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the SuppressCommit parameter. [IntegrationEvent(false, false)] local procedure OnReleaseSalesDocumentOnBeforeSetStatus(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; SavedStatus: Enum "Sales Document Status"; PreviewMode: Boolean; SuppressCommit: Boolean); begin end; + /// + /// Event raised by OnRoundAmountOnAfterAssignSalesLines. + /// + /// + /// Specifies the SalesLineACY parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TotalSalesLines parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnAfterAssignSalesLines(var xSalesLine: Record "Sales Line"; var SalesLineACY: Record "Sales Line"; SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var TotalSalesLines: Record "Sales Line"; var TotalSalesLineLCY: Record "Sales Line"; var SalesLine: Record "Sales Line"); begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification. + /// + /// [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification(var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSendICDocumentOnBeforeSetICStatus. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSendICDocumentOnBeforeSetICStatus(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSendPostedDocumentRecordElseCase. + /// + /// + /// Specifies the DocumentSendingProfile parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSendPostedDocumentRecordElseCase(SalesHeader: Record "Sales Header"; var DocumentSendingProfile: Record "Document Sending Profile"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestSalesLineOnAfterTestSalesLineJob. + /// + /// [IntegrationEvent(false, false)] local procedure OnTestSalesLineOnAfterTestSalesLineJob(var SalesLine: record "Sales Line") begin end; + /// + /// Event raised by OnTestSalesLineOnAfterCalcShouldTestReturnQty. + /// + /// + /// Specifies the ShouldTestReturnQty parameter. [IntegrationEvent(false, false)] local procedure OnTestSalesLineOnAfterCalcShouldTestReturnQty(SalesLine: Record "Sales Line"; var ShouldTestReturnQty: Boolean) begin end; + /// + /// Event raised by OnBeforeTestGenPostingGroups. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestGenPostingGroups(var SalesLine: record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateSalesLineBeforePostOnAfterPostJobContractLine. + /// + /// + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateSalesLineBeforePostOnAfterPostJobContractLine(SalesInvoiceHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnUpdateAssosOrderOnAfterPurchOrderHeaderModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderOnAfterPurchOrderHeaderModify(var PurchOrderHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterModifyPurchLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterModifyPurchLine(var PurchOrderLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnUpdateAssocOrderOnBeforeModifyPurchLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnBeforeModifyPurchLine(var PurchOrderLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnAfterReleasePurchaseDocument. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnAfterReleasePurchaseDocument(var PurchOrderHeader: Record "Purchase Header"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeReleasePurchaseDocument. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeReleasePurchaseDocument(var PurchOrderHeader: Record "Purchase Header"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateAfterPostingOnBeforeFindSetForUpdate. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAfterPostingOnBeforeFindSetForUpdate(var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheck. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheck(var BlanketOrderSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheckSellToCustomerNo. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheckSellToCustomerNo(var BlanketOrderSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeInitOutstanding(var BlanketOrderSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnUpdateInvoicedQtyOnShipmentLineOnBeforeModifySalesShptLine. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnUpdateInvoicedQtyOnShipmentLineOnBeforeModifySalesShptLine(var SalesShptLine: Record "Sales Shipment Line"; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnAfterInitAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterInitAmount(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnAfterInitLineDiscountAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterInitLineDiscountAmount(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineRemainderModify. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineRemainderModify(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency) begin end; + /// + /// Event raised by OnBeforeCalcVATBaseAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcVATBaseAmount(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostUpdateInvoiceLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateInvoiceLine(var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostUpdateReturnReceiptLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostUpdateReturnReceiptLine(var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertTrackingSpecification(SalesHeader: Record "Sales Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSendPostedDocumentRecord. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the DocumentSendingProfile parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSendPostedDocumentRecord(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var DocumentSendingProfile: Record "Document Sending Profile") begin end; + /// + /// Event raised by OnAfterPostItemChargeLine. + /// + /// + /// Specifies the SalesLineACY parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargeLine(var SalesLine: Record "Sales Line"; SalesLineACY: Record "Sales Line") begin end; + /// + /// Event raised by OnDeleteAfterPostingOnAfterDeleteLinks. + /// + /// [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnAfterDeleteLinks(var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnDeleteAfterPostingOnBeforeDeleteSalesHeader. + /// + /// [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnBeforeDeleteSalesHeader(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnDeleteAfterPostingOnBeforeDeleteLinks. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnBeforeDeleteLinks(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforeCheckAndUpdate. + /// + /// [IntegrationEvent(false, false)] local procedure OnRunOnBeforeCheckAndUpdate(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateWonOpportunitiesOnBeforeOpportunityModify. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the Opportunity parameter. [IntegrationEvent(false, false)] local procedure OnUpdateWonOpportunitiesOnBeforeOpportunityModify(var SalesHeader: Record "Sales Header"; SalesInvoiceHeader: Record "Sales Invoice Header"; var Opportunity: Record Opportunity) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCheckShip. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCheckShip(var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnBeforeUpdateReceiveAndCheckIfInvPutawayExists. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateReceiveAndCheckIfInvPutawayExists(var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnModifyTempLineOnAfterSalesLineModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnAfterSalesLineModify(var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnModifyTempLineOnBeforeTransferFields. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnBeforeTransferFields(var SalesLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnModifyTempLineOnBeforeSalesLineModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnBeforeSalesLineModify(var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesLine(SalesLine: Record "Sales Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesShipmentLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesShipmentLine(SalesShipmentLine: Record "Sales Shipment Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnReceiptLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnReceiptLine(ReturnReceiptLine: Record "Return Receipt Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateSalesLineDimSetIDFromAppliedEntry. + /// + /// + /// Specifies the ItemLedgEntry parameter. + /// Specifies the DimSetID parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateSalesLineDimSetIDFromAppliedEntry(var SalesLineToPost: Record "Sales Line"; var ItemLedgEntry: Record "Item Ledger Entry"; DimSetID: array[10] of Integer) begin end; + /// + /// Event raised by OnDeleteAfterPostingOnAfterSetupSalesHeader. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnAfterSetupSalesHeader(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnDeleteAfterPostingOnAfterSalesLineDeleteAll. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnAfterSalesLineDeleteAll(SalesHeader: Record "Sales Header"; SalesInvoiceHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; CommitIsSuppressed: Boolean; EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentConditionOnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentConditionOnBeforeUpdateBlanketOrderLine(var TempSalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostResJnlLineOnAfterInit. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostResJnlLineOnAfterInit(var ResJnlLine: Record "Res. Journal Line"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists. + /// + /// + /// Specifies the ReplacePostingDate parameter. + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the VATDateExists parameter. + /// Specifies the ReplaceVATDate parameter. + /// Specifies the VATDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists(var PostingDateExists: Boolean; var ReplacePostingDate: Boolean; var ReplaceDocumentDate: Boolean; var PostingDate: Date; var SalesHeader: Record "Sales Header"; var ModifyHeader: Boolean; var VATDateExists: Boolean; var ReplaceVATDate: Boolean; var VATDate: Date) begin end; + /// + /// Event raised by OnBeforeValidateICPartnerBusPostingGroups. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeValidateICPartnerBusPostingGroups(var TempICGenJnlLine: Record "Gen. Journal Line" temporary; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterGetCurrency. + /// + /// + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetCurrency(CurrencyCode: Code[10]; var Currency: Record Currency) begin end; + /// + /// Event raised by OnBeforePostItemLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemLine(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean; var TempSalesLineGlobal: Record "Sales Line" temporary; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnBeforePostItemChargeLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargeLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct(var TempPrepmtSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnAfterInsertReturnReceiptHeader. + /// + /// + /// Specifies the ReturnReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertReturnReceiptHeader(var SalesHeader: Record "Sales Header"; var ReturnReceiptHeader: Record "Return Receipt Header") begin @@ -13427,384 +14560,888 @@ codeunit 80 "Sales-Post" #if not CLEAN27 [Obsolete('This event is never raised.', '27.0')] + /// + /// Event raised by OnAfterGetAmountsForDeferral. + /// + /// + /// Specifies the AmtToDefer parameter. + /// Specifies the AmtToDeferACY parameter. + /// Specifies the DeferralAccount parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetAmountsForDeferral(SalesLine: Record "Sales Line"; var AmtToDefer: Decimal; var AmtToDeferACY: Decimal; var DeferralAccount: Code[20]) begin end; #endif + /// + /// Event raised by OnPostJobContractLineBeforeTestFields. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostJobContractLineBeforeTestFields(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertCrMemoHeaderOnAfterCalcShouldProcessAsReturnOrder. + /// + /// + /// Specifies the ShouldProcessAsReturnOrder parameter. [IntegrationEvent(false, false)] local procedure OnInsertCrMemoHeaderOnAfterCalcShouldProcessAsReturnOrder(SalesHeader: Record "Sales Header"; var ShouldProcessAsReturnOrder: Boolean) begin end; + /// + /// Event raised by OnUpdateQtyToBeInvoicedForShipmentOnAfterSetQtyToBeInvoiced. + /// + /// + /// Specifies the HasATOShippedNotInvoiced parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateQtyToBeInvoicedForShipmentOnAfterSetQtyToBeInvoiced(TrackingSpecificationExists: Boolean; HasATOShippedNotInvoiced: Boolean; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnBeforePostItemJnlLineItemCharges. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLineItemCharges(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeInitOutstanding(var SalesOrderLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeGetATOItemLedgEntriesNotInvoiced. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeGetATOItemLedgEntriesNotInvoiced(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckSalesDocumentOnBeforeCheckDueDate. + /// + /// + /// Specifies the ShouldCheckDueDate parameter. [IntegrationEvent(false, false)] local procedure OnCheckSalesDocumentOnBeforeCheckDueDate(var SalesHeader: Record "Sales Header"; var ShouldCheckDueDate: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineTrackingOnAfterCalcShouldInsertTrkgSpecInv. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the ShouldInsertTrkgSpecInv parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineTrackingOnAfterCalcShouldInsertTrkgSpecInv(var SalesLine: Record "Sales Line"; QtyToBeInvoiced: Decimal; var ShouldInsertTrkgSpecInv: Boolean) begin end; + /// + /// Event raised by OnUpdateSalesLineBeforePostOnBeforeGetUnitCost. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateSalesLineBeforePostOnBeforeGetUnitCost(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcItemJnlAmountsFromQtyToBeInvoiced. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcItemJnlAmountsFromQtyToBeInvoiced(var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; QtyToBeInvoiced: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForReceiveOnAfterSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForReceiveOnAfterSetFilters(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnRunOnBeforeCalcVATAmountLines. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeCalcVATAmountLines(var TempSalesLineGlobal: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestSalesLineOnBeforeTestFieldQtyToShip. + /// + /// + /// Specifies the ShouldTestQtyToShip parameter. [IntegrationEvent(false, false)] local procedure OnTestSalesLineOnBeforeTestFieldQtyToShip(SalesLine: Record "Sales Line"; var ShouldTestQtyToShip: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertShipmentLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertShipmentLine(var SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnIsEndLoopForShippedNotInvoicedOnBeforeExit. + /// + /// + /// Specifies the SalesShptLine parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnIsEndLoopForShippedNotInvoicedOnBeforeExit(SalesLine: Record "Sales Line"; SalesShptLine: Record "Sales Shipment Line"; RemQtyToBeInvoiced: Decimal; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLinePrepareJournalLineOnBeforeCalcQuantities. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLinePrepareJournalLineOnBeforeCalcQuantities(var ItemJnlLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; QtyToBeShipped: Decimal; QtyToBeShippedBase: Decimal; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean; IsATO: Boolean) begin end; + /// + /// Event raised by OnBeforeInvoiceRounding. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInvoiceRounding(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyTrackingFromSpec. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyTrackingFromSpec(var ItemJnlLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; QtyToBeShipped: Decimal; IsATO: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeValidateQtyToInvoice. + /// + /// + /// Specifies the ShouldValidateQtyToInvoice parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeValidateQtyToInvoice(var SalesHeader: Record "Sales Header"; var ShouldValidateQtyToInvoice: Boolean; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnAfterSetFilterTempSalesLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnAfterSetFilterTempSalesLine(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckTrackingSpecificationOnBeforeGetItemTrackingSettings. + /// + /// + /// Specifies the ItemTrackingSetup parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingSpecificationOnBeforeGetItemTrackingSettings(var TempItemSalesLine: Record "Sales Line" temporary; var ItemTrackingSetup: Record "Item Tracking Setup"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForReceipt. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForReceipt(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineTrackingOnBeforeInsertTempTrkgSpec. + /// + /// + /// Specifies the TempTrackingSpec parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineTrackingOnBeforeInsertTempTrkgSpec(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempTrackingSpec: Record "Tracking Specification" temporary; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInsertInvoiceHeaderOnBeforeCheckDocumentType. + /// + /// + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesSetup parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertInvoiceHeaderOnBeforeCheckDocumentType(SalesHeader: Record "Sales Header"; var SalesInvHeader: Record "Sales Invoice Header"; SalesSetup: Record "Sales & Receivables Setup"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnBeforePostBalancingEntry. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the TotalSalesLine parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnBeforePostBalancingEntry(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var TotalSalesLine: Record "Sales Line"; var TotalSalesLineLCY: Record "Sales Line"; SuppressCommit: Boolean; PreviewMode: Boolean; InvoicePostingParameters: Record "Invoice Posting Parameters"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin end; + /// + /// Event raised by OnBeforeFindNotShippedLines. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeFindNotShippedLines(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforePostSalesLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesLineACY parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforePostSalesLine(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; SrcCode: Code[10]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var IsHandled: Boolean; SalesLineACY: Record "Sales Line") begin end; + /// + /// Event raised by OnAfterUpdateInvoiceRounding. + /// + /// + /// Specifies the TotalSalesLine parameter. + /// Specifies the SalesLine parameter. + /// Specifies the Currency parameter. + /// Specifies the BiggestLineNo parameter. + /// Specifies the LastLineRetrieved parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the RoundingLineNo parameter. + /// Specifies the UseTempData parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoiceRounding(var SalesHeader: Record "Sales Header"; var TotalSalesLine: Record "Sales Line"; var SalesLine: Record "Sales Line"; var Currency: Record Currency; var BiggestLineNo: Integer; var LastLineRetrieved: Boolean; var RoundingLineInserted: Boolean; var RoundingLineNo: Integer; UseTempData: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterSetFilters(var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostItemLineOnBeforePostItemJnlLineForInvoiceDoc. + /// + /// + /// Specifies the SalesLineToShip parameter. + /// Specifies the Ship parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the TempTrackingSpecificationInv parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. + /// Specifies the QtyToInvoice parameter. + /// Specifies the TempAssembletoOrderLink parameter. [IntegrationEvent(true, false)] local procedure OnPostItemLineOnBeforePostItemJnlLineForInvoiceDoc(SalesHeader: Record "Sales Header"; var SalesLineToShip: Record "Sales Line"; Ship: Boolean; var ItemLedgShptEntryNo: Integer; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; SalesShptHeader: Record "Sales Shipment Header"; var TempHandlingSpecification: Record "Tracking Specification" temporary; var TempTrackingSpecificationInv: Record "Tracking Specification" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean; QtyToInvoice: Decimal; TempAssembletoOrderLink: Record "Posted Assemble-to-Order Link" temporary) begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForReceipt. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the QtyToInvoiceBaseInTrackingSpec parameter. + /// Specifies the ShouldPostItemTrackingForReceipt parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForReceipt(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; RemQtyToBeInvoiced: Decimal; QtyToInvoiceBaseInTrackingSpec: Decimal; var ShouldPostItemTrackingForReceipt: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForShipment. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the QtyToInvoiceBaseInTrackingSpec parameter. + /// Specifies the ShouldPostItemTrackingForShipment parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForShipment(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; RemQtyToBeInvoiced: Decimal; QtyToInvoiceBaseInTrackingSpec: Decimal; var ShouldPostItemTrackingForShipment: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeGetQuantityShipped. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeGetQuantityShipped(var TempSalesLine: Record "Sales Line"; var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeGetReturnQtyReceived. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeGetReturnQtyReceived(var TempSalesLine: Record "Sales Line"; var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldProcessReceipt. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the ShouldProcessReceipt parameter. + /// Specifies the ItemJnlRollRndg parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldProcessReceipt(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var ShouldProcessReceipt: Boolean; var ItemJnlRollRndg: Boolean) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeInitOutstanding(var SalesOrderLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnBeforeBalAccountNoWindowUpdate. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnBeforeBalAccountNoWindowUpdate(HideProgressWindow: Boolean; var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterCalcShouldCalcPrepmtAmounts. + /// + /// + /// Specifies the ShouldCalcPrepmtAmounts parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterCalcShouldCalcPrepmtAmounts(var TempSalesLine: Record "Sales Line" temporary; var ShouldCalcPrepmtAmounts: Boolean) begin end; + /// + /// Event raised by OnAfterGetGeneralPostingSetup. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetGeneralPostingSetup(var GeneralPostingSetup: Record "General Posting Setup"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnCheckItemTrackingQuantityOnDocumentTypeCaseElse. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckItemTrackingQuantityOnDocumentTypeCaseElse(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnSetCommitBehavior. + /// + /// [IntegrationEvent(false, false)] local procedure OnSetCommitBehavior(var ErrorOnCommit: Boolean) begin end; #if not CLEAN27 + /// + /// Event raised by OnSetPostingPreviewDocumentNo. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnSetPostingPreviewDocumentNo(var PreviewDocumentNo: Code[20]; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnGetPostingPreviewDocumentNos. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnGetPostingPreviewDocumentNos(var PreviewDocumentNos: List of [Code[20]]) begin end; #endif + /// + /// Event raised by OnPostInvoiceOnAfterPostLines. + /// + /// + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnAfterPostLines(var SalesHeader: Record "Sales Header"; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeAssignQtyToInvoice. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeAssignQtyToInvoice(var TempSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeItemLedgerEntryExist. + /// + /// + /// Specifies the ShipOrReceive parameter. + /// Specifies the HasItemLedgerEntry parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeItemLedgerEntryExist(var SalesLine: Record "Sales Line"; ShipOrReceive: Boolean; var HasItemLedgerEntry: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterCalcShouldInsertInvoiceHeader. + /// + /// + /// Specifies the ShouldInsertInvoiceHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterCalcShouldInsertInvoiceHeader(var SalesHeader: Record "Sales Header"; var ShouldInsertInvoiceHeader: Boolean) begin end; + /// + /// Event raised by OnInsertShptEntryRelationOnAfterItemEntryRelationInsert. + /// + /// + /// Specifies the ItemEntryRelation parameter. + /// Specifies the xSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertShptEntryRelationOnAfterItemEntryRelationInsert(SalesShipmentLine: Record "Sales Shipment Line"; var ItemEntryRelation: Record "Item Entry Relation"; xSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnBeforePostItemChargePerRetRcpt. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempItemChargeAssignmentSales parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRetRcpt(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeSetInvoiceFields. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the ShouldSetInvoiceFields parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeSetInvoiceFields(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line"; var ShouldSetInvoiceFields: Boolean) begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeError. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the InvoiceEverything parameter. [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeError(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var InvoiceEverything: Boolean) begin end; + /// + /// Event raised by OnBeforeGetSalesLineAdjCostLCY. + /// + /// + /// Specifies the QtyType parameter. + /// Specifies the AdjCostLCY parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetSalesLineAdjCostLCY(SalesLine2: Record "Sales Line"; QtyType: Option General,Invoicing,Shipping; AdjCostLCY: Decimal; var Result: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeShouldTestGetShipmentPPmtAmtToDeduct. + /// + /// + /// Specifies the CompleteFunctionality parameter. + /// Specifies the ShouldTestGetShipmentPPmtAmtToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeShouldTestGetShipmentPPmtAmtToDeduct(SalesHeader: Record "Sales Header"; CompleteFunctionality: Boolean; var ShouldTestGetShipmentPPmtAmtToDeduct: Boolean) begin end; + /// + /// Event raised by OnAfterDeleteApprovalEntries. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the ReturnReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterDeleteApprovalEntries(var SalesHeader: Record "Sales Header"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var SalesShipmentHeader: Record "Sales Shipment Header"; var ReturnReceiptHeader: Record "Return Receipt Header") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeUpdateSalesLineBeforePost. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeUpdateSalesLineBeforePost(var SalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header"; WhseShip: Boolean; WhseReceive: Boolean; RoundingLineInserted: Boolean; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnAfterSumSalesLines2. + /// + /// + /// Specifies the OldSalesLine parameter. + /// Specifies the NewSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterSumSalesLines2(var SalesHeader: Record "Sales Header"; var OldSalesLine: Record "Sales Line"; var NewSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnCheckPostWhseShptLinesOnAfterWhseShptLinesFound. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WhseShptLinesFound parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WarehouseShipmentLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckPostWhseShptLinesOnAfterWhseShptLinesFound(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line"; var WhseShptLinesFound: Boolean; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseShip: Boolean; WhseReceive: Boolean; var WarehouseShipmentLine: Record "Warehouse Shipment Line") begin end; + /// + /// Event raised by OnAfterDecrementPrepmtAmtInvLCY. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the PrepmtAmountInvLCY parameter. + /// Specifies the PrepmtVATAmountInvLCY parameter. [IntegrationEvent(false, false)] local procedure OnAfterDecrementPrepmtAmtInvLCY(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var PrepmtAmountInvLCY: Decimal; var PrepmtVATAmountInvLCY: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineGet. + /// + /// + /// Specifies the TempVATAmountLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineGet(SalesLine: Record "Sales Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeAdjustPrepmtAmountLCY. + /// + /// + /// Specifies the PrepmtSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustPrepmtAmountLCY(SalesHeader: Record "Sales Header"; var PrepmtSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostResJnlLineOnShouldExit. + /// + /// + /// Specifies the ShouldExit parameter. [IntegrationEvent(false, false)] local procedure OnPostResJnlLineOnShouldExit(var SalesLine: Record "Sales Line"; var ShouldExit: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeUpdateTempVATAmountLineRemainder. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeUpdateTempVATAmountLineRemainder(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterCalcTotalChargeAmt. + /// + /// + /// Specifies the QtyToAssign parameter. + /// Specifies the SalesLine parameter. + /// Specifies the xSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnAfterCalcTotalChargeAmt(var SalesLineToPost: Record "Sales Line"; QtyToAssign: Decimal; var SalesLine: Record "Sales Line"; xSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnBeforeCheckPostRestrictions. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPostRestrictions(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeValidateType. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeValidateType(var TempPrepmtSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeValidateDocumentDate. + /// + /// + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeValidateDocumentDate(var PostingDateExists: Boolean; var ReplaceDocumentDate: Boolean; var PostingDate: Date; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnCheckSalesDocumentOnBeforeCheckSalesDim. + /// + /// + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckSalesDocumentOnBeforeCheckSalesDim(var SalesHeader: Record "Sales Header"; var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeCreatePrepaymentTextLines. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePrepaymentTextLines(var TempPrepmtSalesLine: Record "Sales Line" temporary; var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header"; CompleteFunctionality: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckAndUpdate. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckAndUpdate(var SalesHeader: Record "Sales Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeCollectValueEntryRelation. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeCollectValueEntryRelation(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesInvoiceLine: Record "Sales Invoice Line") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeCollectValueEntryRelationForCrMemo. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeCollectValueEntryRelationForCrMemo(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesInvoiceLine: Record "Sales Invoice Line") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterCollectValueEntryRelation. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterCollectValueEntryRelation(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesInvoiceLine: Record "Sales Invoice Line") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterCreatePostedDeferralSchedule. + /// + /// + /// Specifies the SalesInvHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterCreatePostedDeferralSchedule(var SalesInvLine: Record "Sales Invoice Line"; SalesInvHeader: Record "Sales Invoice Header") begin end; + /// + /// Event raised by OnInvoiceRoundingOnAfterValidateQuantity. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnInvoiceRoundingOnAfterValidateQuantity(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInvoiceRoundingOnAfterSetLineNo. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnInvoiceRoundingOnAfterSetLineNo(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line") begin @@ -13821,16 +15458,32 @@ codeunit 80 "Sales-Post" begin end; + /// + /// Event raised by OnInsertPostedHeadersOnBeforeDeleteServItemOnSaleCreditMemo. + /// + /// + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnBeforeDeleteServItemOnSaleCreditMemo(var SalesHeader: Record "Sales Header"; var SalesShipmentHeader: Record "Sales Shipment Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterInsertInvoiceHeader. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInsertInvoiceHeader(var SalesHeader: Record "Sales Header"; var SalesInvoiceHeader: Record "Sales Invoice Header") begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterInsertCrMemoHeader. + /// + /// + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInsertCrMemoHeader(var SalesHeader: Record "Sales Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin @@ -13847,173 +15500,400 @@ codeunit 80 "Sales-Post" begin end; + /// + /// Event raised by OnProcessPostingLinesOnBeforePostDropOrderShipment. + /// + /// + /// Specifies the TotalSalesLine parameter. + /// Specifies the TotalSalesLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnProcessPostingLinesOnBeforePostDropOrderShipment(SalesHeader: Record "Sales Header"; TotalSalesLine: Record "Sales Line"; TotalSalesLineLCY: Record "Sales Line") begin end; + /// + /// Event raised by OnAfterArchiveUnpostedOrder. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the OrderArchived parameter. [IntegrationEvent(false, false)] local procedure OnAfterArchiveUnpostedOrder(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; OrderArchived: Boolean); begin end; + /// + /// Event raised by OnBeforeCheckReturnRcptLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckReturnRcptLine(var ReturnReceiptLine: Record "Return Receipt Line"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertReturnReceiptHeaderOnBeforeReturnReceiptHeaderTransferFields. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertReturnReceiptHeaderOnBeforeReturnReceiptHeaderTransferFields(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnBeforeCopyAndCheckItemCharge. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesLine parameter. + /// Specifies the InvoiceEverything parameter. + /// Specifies the AssignError parameter. + /// Specifies the QtyNeeded parameter. + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the ItemChargeAssgntSales parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCopyAndCheckItemCharge(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var SalesLine: Record "Sales Line"; var InvoiceEverything: Boolean; var AssignError: Boolean; var QtyNeeded: Decimal; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; var ItemChargeAssgntSales: Record "Item Charge Assignment (Sales)"; var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeTestPostingDate. + /// + /// + /// Specifies the ReplacePostingDate parameter. + /// Specifies the SkipTestPostingDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeTestPostingDate(var SalesHeader: Record "Sales Header"; ReplacePostingDate: Boolean; var SkipTestPostingDate: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeSalesHeaderModify. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeSalesHeaderModify(var SalesHeader: Record "Sales Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeTestLineFields. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeTestLineFields(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateQtyToBeInvoicedForReturnReceiptOnAfterSetQtyToBeInvoiced. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateQtyToBeInvoicedForReturnReceiptOnAfterSetQtyToBeInvoiced(TrackingSpecificationExists: Boolean; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterInsertShipmentHeader. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInsertShipmentHeader(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnInsertPostedHeadersDeleteServItemOnSaleCreditMemo. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersDeleteServItemOnSaleCreditMemo(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnRunWithCheckOnAfterFinalize. + /// + /// [IntegrationEvent(false, false)] local procedure OnRunWithCheckOnAfterFinalize(var SalesHeader: Record "Sales Header"); begin end; + /// + /// Event raised by OnBeforeFinalizePostATO. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeFinalizePostATO(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeDeleteATOLinks. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDeleteATOLinks(SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckATOLink. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckATOLink(SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumSalesLinesTempOnAfterVatAmountSet. + /// + /// + /// Specifies the TotalSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLinesTempOnAfterVatAmountSet(var VATAmount: Decimal; var TotalSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInsertShptEntryRelationOnBeforeDeleteTempHandlingSpecification. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertShptEntryRelationOnBeforeDeleteTempHandlingSpecification(var TempHandlingTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeModifyPurchOrderHeader. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeModifyPurchOrderHeader(var PurchaseOrderHeader: Record "Purchase Header"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnAfterPostJobContractLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostJobContractLine(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var GenJnlLineDocType: Enum "Gen. Journal Document Type"; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; var SrcCode: Code[10]) begin end; + /// + /// Event raised by OnBeforePostDistributeItemCharge. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempItemLedgerEntry parameter. + /// Specifies the NonDistrQuantity parameter. + /// Specifies the NonDistrQtyToAssign parameter. + /// Specifies the NonDistrAmountToAssign parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostDistributeItemCharge(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempItemLedgerEntry: Record "Item Ledger Entry"; NonDistrQuantity: Decimal; NonDistrQtyToAssign: Decimal; NonDistrAmountToAssign: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostDistributeItemChargeOnAfterSetFactor. + /// + /// + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostDistributeItemChargeOnAfterSetFactor(TempItemLedgerEntry: Record "Item Ledger Entry"; var Factor: Decimal) begin end; + /// + /// Event raised by OnBeforeCalcPrepmtAmtToDeduct. + /// + /// + /// Specifies the Ship parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PrepmtAmtToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcPrepmtAmtToDeduct(var SalesLine: Record "Sales Line"; Ship: Boolean; var IsHandled: Boolean; var PrepmtAmtToDeduct: Decimal) begin end; + /// + /// Event raised by OnBeforePostItemJournalLineWarehouseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJournalLineWarehouseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAfterPostItemJournalLineWarehouseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJournalLineWarehouseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAdjustPrepmtAmountLCYOnAfterGetOrderLine. + /// + /// + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnAdjustPrepmtAmountLCYOnAfterGetOrderLine(var SalesLine: Record "Sales Line"; var SalesInvoiceLine: Record "Sales Line"); begin end; + /// + /// Event raised by OnBeforeGetQtyToInvoice. + /// + /// + /// Specifies the Ship parameter. + /// Specifies the IsHandled parameter. + /// Specifies the QtyToInvoice parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetQtyToInvoice(SalesLine: Record "Sales Line"; Ship: Boolean; var IsHandled: Boolean; var QtyToInvoice: Decimal) begin end; + /// + /// Event raised by OnBeforeAdjustFinalInvWith100PctPrepmt. + /// + /// + /// Specifies the CombinedSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustFinalInvWith100PctPrepmt(var TempPrepmtDeductLCYSalesLine: Record "Sales Line" temporary; var CombinedSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateRemainingQtyToBeInvoiced. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateRemainingQtyToBeInvoiced(SalesShptLine: Record "Sales Shipment Line"; var RemQtyToInvoiceCurrLine: Decimal; var RemQtyToInvoiceCurrLineBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLineForCreditMemoOnBeforeGetSalesPrepmtAccount. + /// + /// + /// Specifies the SalesInvoiceLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLineForCreditMemoOnBeforeGetSalesPrepmtAccount(var GLAccount: Record "G/L Account"; var SalesInvoiceLine: Record "Sales Invoice Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateEmailParameters. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateEmailParameters(SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostUpdateOrderNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateOrderNo(var SalesInvoiceHeader: Record "Sales Invoice Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSetInvoiceOrderNo. + /// + /// + /// Specifies the SalesInvLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSetInvoiceOrderNo(SalesLine: Record "Sales Line"; var SalesInvLine: Record "Sales Invoice Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeArchiveRelatedJob. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeArchiveRelatedJob(SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSyncSurPlusItemTrackingOnBeforeModifyQtyToHandleInvoice. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ReservationEntry parameter. [IntegrationEvent(false, false)] local procedure OnSyncSurPlusItemTrackingOnBeforeModifyQtyToHandleInvoice(var SalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var ReservationEntry: Record "Reservation Entry") begin end; -} \ No newline at end of file + + /// + /// Event raised by OnAfterProcessPostingLines. + /// + /// + /// Specifies the TotalSalesLine parameter. + /// Specifies the CustLedgEntry parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the Window parameter. + /// Specifies the HideProgressWindow parameter. + [IntegrationEvent(false, false)] + local procedure OnAfterProcessPostingLines(var SalesHeader: Record "Sales Header"; var TotalSalesLine: Record "Sales Line"; var CustLedgEntry: Record "Cust. Ledger Entry"; InvoicePostingParameters: Record "Invoice Posting Parameters"; SuppressCommit: Boolean; EverythingInvoiced: Boolean; var Window: Dialog; HideProgressWindow: Boolean) + begin + end; + + /// + /// Raised after checking posting restrictions + /// + /// + [IntegrationEvent(false, false)] + local procedure OnAfterCheckPostRestrictions(var SalesHeader: Record "Sales Header") + begin + end; +} diff --git a/src/Layers/FI/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al b/src/Layers/FI/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al index 8995b93d910..658975c1cd7 100644 --- a/src/Layers/FI/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al +++ b/src/Layers/FI/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al @@ -1,4 +1,4 @@ -// ------------------------------------------------------------------------------------------------ +// ------------------------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // ------------------------------------------------------------------------------------------------ @@ -18,6 +18,7 @@ using Microsoft.FixedAssets.FixedAsset; using Microsoft.Foundation.Attachment; using Microsoft.Foundation.AuditCodes; using Microsoft.Foundation.NoSeries; +using Microsoft.Foundation.PaymentTerms; using Microsoft.Intercompany.Partner; using Microsoft.Purchases.Vendor; using Microsoft.Sales.Customer; @@ -853,6 +854,13 @@ table 21 "Cust. Ledger Entry" Caption = 'Prepayment'; ToolTip = 'Specifies if the related payment is a prepayment.'; } + field(91; "Payment Terms Code"; Code[10]) + { + Caption = 'Payment Terms Code'; + Editable = false; + TableRelation = "Payment Terms"; + ToolTip = 'Specifies the payment terms that determine the due date and payment discount date for the entry.'; + } field(95; "G/L Register No."; Integer) { Caption = 'G/L Register No.'; @@ -866,6 +874,7 @@ table 21 "Cust. Ledger Entry" field(171; "Payment Reference"; Code[50]) { Caption = 'Payment Reference'; + ToolTip = 'Specifies the payment reference number used by banks to identify and track the payment.'; } /// /// Specifies the payment method used or expected for this transaction, such as bank transfer, cash, or check. @@ -1391,12 +1400,12 @@ table 21 "Cust. Ledger Entry" SetCurrentKey("Customer No.", Open, Positive, "Due Date"); SetRange("Customer No.", CustomerNo); SetRange(Open, true); + OnSetApplyToFiltersOnBeforeSetFilters(Rec); if ApplyDocNo <> '' then begin SetRange("Document Type", ApplyDocType); SetRange("Document No.", ApplyDocNo); if FindFirst() then; - SetRange("Document Type"); - SetRange("Document No."); + ClearDocumentFilters(); end else if ApplyDocType <> 0 then begin SetRange("Document Type", ApplyDocType); @@ -1410,6 +1419,22 @@ table 21 "Cust. Ledger Entry" end; end; + procedure SetAppliesToDocFilters(var GenJnlLine: Record "Gen. Journal Line") + begin + SetRange("Document Type", GenJnlLine."Applies-to Doc. Type"); + SetRange("Document No.", GenJnlLine."Applies-to Doc. No."); + + OnAfterSetAppliesToDocFilters(Rec, GenJnlLine); + end; + + procedure ClearDocumentFilters() + begin + SetRange("Document Type"); + SetRange("Document No."); + + OnAfterClearDocumentFilters(Rec); + end; + /// /// Toggles the Amount to Apply field between the remaining amount and zero for the specified document. /// @@ -1483,6 +1508,7 @@ table 21 "Cust. Ledger Entry" "Payment Method Code" := GenJnlLine."Payment Method Code"; "Payment Reference" := GenJnlLine."Payment Reference"; "Exported to Payment File" := GenJnlLine."Exported to Payment File"; + "Payment Terms Code" := GenJnlLine."Payment Terms Code"; OnAfterCopyCustLedgerEntryFromGenJnlLine(Rec, GenJnlLine); end; @@ -1818,5 +1844,20 @@ table 21 "Cust. Ledger Entry" local procedure OnValidateMaxPaymentToleranceOnBeforeFieldError(var CustLedgerEntry: Record "Cust. Ledger Entry") begin end; + + [IntegrationEvent(false, false)] + local procedure OnAfterSetAppliesToDocFilters(var Rec: Record "Cust. Ledger Entry"; var GenJnlLine: Record "Gen. Journal Line") + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnAfterClearDocumentFilters(var Rec: Record "Cust. Ledger Entry") + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnSetApplyToFiltersOnBeforeSetFilters(var Rec: Record "Cust. Ledger Entry") + begin + end; } diff --git a/src/Layers/FR/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al b/src/Layers/FR/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al index be4b95aec7f..e69cd096aae 100644 --- a/src/Layers/FR/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al +++ b/src/Layers/FR/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al @@ -240,6 +240,8 @@ codeunit 11 "Gen. Jnl.-Check Line" exit; GenJournalLine.TestField("Document No.", ErrorInfo.Create()); + + OnAfterTestDocumentNo(GenJournalLine); end; local procedure TestAccountAndBalAccountType(var GenJnlLine: Record "Gen. Journal Line") @@ -1542,6 +1544,15 @@ codeunit 11 "Gen. Jnl.-Check Line" begin end; + /// + /// Integration event raised after validating document number field requirements for journal lines. + /// + /// Journal line record being validated for document number requirements. + [IntegrationEvent(false, false)] + local procedure OnAfterTestDocumentNo(GenJournalLine: Record "Gen. Journal Line") + begin + end; + /// /// Integration event raised before validating document number field requirements for journal lines. /// Enables custom logic to completely override standard document number validation processing. diff --git a/src/Layers/FR/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al b/src/Layers/FR/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al index 354cf258a79..d87bcbd6001 100644 --- a/src/Layers/FR/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al +++ b/src/Layers/FR/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al @@ -1,4 +1,4 @@ -// ------------------------------------------------------------------------------------------------ +// ------------------------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // ------------------------------------------------------------------------------------------------ @@ -805,7 +805,7 @@ codeunit 12 "Gen. Jnl.-Post Line" VATEntry."Transaction No." := NextTransactionNo; VATEntry."Sales Tax Connection No." := NextConnectionNo; VATEntry.SetVATDateFromGenJnlLine(GenJnlLine); - OnInsertVATOnAfterAssignVATEntryFields(GenJnlLine, VATEntry, CurrExchRate); + OnInsertVATOnAfterAssignVATEntryFields(GenJnlLine, VATEntry, CurrExchRate, VATPostingSetup); if GenJnlLine."VAT Difference" = 0 then VATDifferenceLCY := 0 @@ -10147,7 +10147,7 @@ codeunit 12 "Gen. Jnl.-Post Line" end; [IntegrationEvent(false, false)] - local procedure OnInsertVATOnAfterAssignVATEntryFields(GenJnlLine: Record "Gen. Journal Line"; var VATEntry: Record "VAT Entry"; CurrExchRate: Record "Currency Exchange Rate") + local procedure OnInsertVATOnAfterAssignVATEntryFields(var GenJnlLine: Record "Gen. Journal Line"; var VATEntry: Record "VAT Entry"; CurrExchRate: Record "Currency Exchange Rate"; var VATPostingSetup: Record "VAT Posting Setup") begin end; diff --git a/src/Layers/FR/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al b/src/Layers/FR/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al index f979882a287..3411465a116 100644 --- a/src/Layers/FR/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al +++ b/src/Layers/FR/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al @@ -17,6 +17,7 @@ using Microsoft.FixedAssets.FixedAsset; using Microsoft.Foundation.Attachment; using Microsoft.Foundation.AuditCodes; using Microsoft.Foundation.NoSeries; +using Microsoft.Foundation.PaymentTerms; using Microsoft.Intercompany.Partner; using Microsoft.Purchases.History; using Microsoft.Purchases.Remittance; @@ -580,6 +581,13 @@ table 25 "Vendor Ledger Entry" { Caption = 'Prepayment'; } + field(91; "Payment Terms Code"; Code[10]) + { + Caption = 'Payment Terms Code'; + Editable = false; + TableRelation = "Payment Terms"; + ToolTip = 'Specifies the payment terms that determine the due date and payment discount date for the entry.'; + } field(95; "G/L Register No."; Integer) { Caption = 'G/L Register No.'; @@ -966,6 +974,22 @@ table 25 "Vendor Ledger Entry" exit(''); end; + procedure SetAppliesToDocFilters(var GenJnlLine: Record "Gen. Journal Line") + begin + SetRange("Document Type", GenJnlLine."Applies-to Doc. Type"); + SetRange("Document No.", GenJnlLine."Applies-to Doc. No."); + + OnAfterSetAppliesToDocFilters(Rec, GenJnlLine); + end; + + procedure ClearDocumentFilters() + begin + SetRange("Document Type"); + SetRange("Document No."); + + OnAfterClearDocumentFilters(Rec); + end; + procedure CopyFromGenJnlLine(GenJnlLine: Record "Gen. Journal Line") begin "Vendor No." := GenJnlLine."Account No."; @@ -1007,6 +1031,7 @@ table 25 "Vendor Ledger Entry" "Creditor No." := GenJnlLine."Creditor No."; "Payment Reference" := GenJnlLine."Payment Reference"; "Payment Method Code" := GenJnlLine."Payment Method Code"; + "Payment Terms Code" := GenJnlLine."Payment Terms Code"; "Exported to Payment File" := GenJnlLine."Exported to Payment File"; if (GenJnlLine."Remit-to Code" <> '') then "Remit-to Code" := GenJnlLine."Remit-to Code"; @@ -1245,5 +1270,15 @@ table 25 "Vendor Ledger Entry" local procedure OnBeforeUpdateAmountsForApplication(var VendorLedgerEntry: Record "Vendor Ledger Entry"; ApplnDate: Date; ApplnCurrencyCode: Code[10]; RoundAmounts: Boolean; UpdateMaxPaymentTolerance: Boolean; var IsHandled: Boolean) begin end; + + [IntegrationEvent(false, false)] + local procedure OnAfterSetAppliesToDocFilters(var Rec: Record "Vendor Ledger Entry"; var GenJnlLine: Record "Gen. Journal Line") + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnAfterClearDocumentFilters(var Rec: Record "Vendor Ledger Entry") + begin + end; } diff --git a/src/Layers/FR/BaseApp/Sales/Posting/SalesPost.Codeunit.al b/src/Layers/FR/BaseApp/Sales/Posting/SalesPost.Codeunit.al index 234bde1a3af..bb466532b54 100644 --- a/src/Layers/FR/BaseApp/Sales/Posting/SalesPost.Codeunit.al +++ b/src/Layers/FR/BaseApp/Sales/Posting/SalesPost.Codeunit.al @@ -352,6 +352,8 @@ codeunit 80 "Sales-Post" ProcessPosting(SalesHeader, SalesHeader2, TempDropShptPostBuffer, CustLedgEntry, EverythingInvoiced); + Clear(GenJnlPostLine); + UpdateLastPostingNos(SalesHeader); OnRunOnBeforeFinalizePosting( @@ -540,6 +542,8 @@ codeunit 80 "Sales-Post" OnRunOnBeforeMakeInventoryAdjustment(SalesHeader, SalesInvHeader, GenJnlPostLine, ItemJnlPostLine, PreviewMode, SkipInventoryAdjustment); if not SkipInventoryAdjustment then MakeInventoryAdjustment(); + + OnAfterProcessPostingLines(SalesHeader, TotalSalesLine, CustLedgEntry, InvoicePostingParameters, SuppressCommit, EverythingInvoiced, Window, HideProgressWindow); end; /// @@ -6260,6 +6264,8 @@ codeunit 80 "Sales-Post" if SalesHeader."Bill-to Contact No." <> '' then if Contact.Get(SalesHeader."Bill-to Contact No.") then Contact.CheckIfPrivacyBlocked(true); + + OnAfterCheckPostRestrictions(SalesHeader); end; local procedure CheckCustBlockage(SalesHeader: Record "Sales Header"; CustCode: Code[20]; ExecuteDocCheck: Boolean) @@ -9452,6 +9458,7 @@ codeunit 80 "Sales-Post" /// Indicates whether the item journal line should be posted. /// Indicates whether warehouse shipment is involved. /// The warehouse receipt header. + /// Specifies the WarehouseShipmentHeader parameter. [IntegrationEvent(true, false)] local procedure OnAfterPostItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var WhseJnlPostLine: Codeunit "Whse. Jnl.-Register Line"; OriginalItemJnlLine: Record "Item Journal Line"; var ItemShptEntryNo: Integer; IsATO: Boolean; var TempHandlingSpecification: Record "Tracking Specification"; var TempATOTrackingSpecification: Record "Tracking Specification"; TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; ShouldPostItemJnlLine: Boolean; WhseShip: Boolean; WhseRcptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header") begin @@ -10057,11 +10064,23 @@ codeunit 80 "Sales-Post" /// Indicates whether database commits are suppressed. /// The total sales line record. /// The currency record. + /// Specifies the ShipmentInvoiced parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertInvoicedShipment(var ShipmentInvoiced: Record "Shipment Invoiced"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInvoiceRoundingAmount. + /// + /// + /// Specifies the TotalAmountIncludingVAT parameter. + /// Specifies the UseTempData parameter. + /// Specifies the InvoiceRoundingAmount parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the TotalSalesLine parameter. + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInvoiceRoundingAmount(SalesHeader: Record "Sales Header"; TotalAmountIncludingVAT: Decimal; UseTempData: Boolean; var InvoiceRoundingAmount: Decimal; CommitIsSuppressed: Boolean; var TotalSalesLine: Record "Sales Line"; var Currency: Record Currency) begin @@ -12616,834 +12635,1960 @@ codeunit 80 "Sales-Post" begin end; + /// + /// Event raised by OnSumSalesLines2OnAfterDivideAmount. + /// + /// + /// Specifies the SalesLineQty parameter. + /// Specifies the QtyType parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnAfterDivideAmount(var OldSalesLine: Record "Sales Line"; var SalesLineQty: Decimal; QtyType: Option General,Invoicing,Shipping) begin end; + /// + /// Event raised by OnSumSalesLines2OnAfterCalcTotalAdjCostLCY. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnAfterCalcTotalAdjCostLCY(var TotalAdjCostLCY: decimal; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnSumSalesLines2OnBeforeCalcVATAmountLines. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the InsertSalesLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnBeforeCalcVATAmountLines(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; InsertSalesLine: Boolean; var TempVATAmountLine: Record "VAT Amount Line" temporary; QtyType: Option General,Invoicing,Shipping; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumSalesLines2OnBeforeNewSalesLineInsert. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnBeforeNewSalesLineInsert(var NewSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumSalesLines2SetFilter. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the InsertSalesLine parameter. + /// Specifies the QtyType parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2SetFilter(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; InsertSalesLine: Boolean; var QtyType: Option) begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnBeforePostTempWhseJnlLine2. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnBeforePostTempWhseJnlLine2(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterTestUpdatedSalesLine. + /// + /// + /// Specifies the EverythingInvoiced parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterTestUpdatedSalesLine(var SalesLine: Record "Sales Line"; var EverythingInvoiced: Boolean; SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineBeforeInitQtyToInvoice. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineBeforeInitQtyToInvoice(var TempSalesLine: Record "Sales Line" temporary; WhseShip: Boolean; WhseReceive: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitOutstanding(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitTempSalesLineQuantities. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitTempSalesLineQuantities(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterUpdateInvoicedValues. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterUpdateInvoicedValues(var TempSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; TempSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; TempSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterInsertSalesOrderHeader. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterInsertSalesOrderHeader(var SalesOrderLine: Record "Sales Line"; TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; WhseShip: Boolean; WhseReceive: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeUpdateInvoicedValues. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeUpdateInvoicedValues(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnSetDefaultQtyBlank. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesSetup parameter. + /// Specifies the SetDefaultQtyBlank parameter. [IntegrationEvent(true, false)] local procedure OnPostUpdateOrderLineOnSetDefaultQtyBlank(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; SalesSetup: Record "Sales & Receivables Setup"; var SetDefaultQtyBlank: Boolean) begin end; + /// + /// Event raised by OnCalcInvoiceOnAfterTempSalesLineSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvoiceOnAfterTempSalesLineSetFilters(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterCalcInvDiscount. + /// + /// + /// Specifies the TempWhseShptHeader parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterCalcInvDiscount(SalesHeader: Record "Sales Header"; TempWhseShptHeader: Record "Warehouse Shipment Header" temporary; PreviewMode: Boolean; var TempSalesLineGlobal: Record "Sales Line" temporary; SuppressCommit: Boolean; WhseReceive: Boolean; WhseShip: Boolean); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterReleaseSalesDocument. + /// + /// + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterReleaseSalesDocument(SalesHeader: Record "Sales Header"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeSetPostingFlags. + /// + /// + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the HideProgressWindow parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnBeforeSetPostingFlags(var SalesHeader: Record "Sales Header"; var TempSalesLineGlobal: Record "Sales Line" temporary; var ModifyHeader: Boolean; var HideProgressWindow: Boolean); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetPostingFlags. + /// + /// + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the ModifyHeader parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterSetPostingFlags(var SalesHeader: Record "Sales Header"; var TempSalesLineGlobal: Record "Sales Line" temporary; var ModifyHeader: Boolean); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetSourceCode. + /// + /// + /// Specifies the SourceCodeSetup parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetSourceCode(var SalesHeader: Record "Sales Header"; SourceCodeSetup: Record "Source Code Setup"; var SrcCode: Code[10]); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetPoszingFromWhseRef. + /// + /// + /// Specifies the InvtPickPutaway parameter. + /// Specifies the PostingFromWhseRef parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetPoszingFromWhseRef(var SalesHeader: Record "Sales Header"; var InvtPickPutaway: Boolean; var PostingFromWhseRef: Integer); begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCalcInvDiscount. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the RefreshNeeded parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCalcInvDiscount(var SalesHeader: Record "Sales Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseReceive: Boolean; WhseShip: Boolean; var RefreshNeeded: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCheckPostRestrictions. + /// + /// + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCheckPostRestrictions(var SalesHeader: Record "Sales Header"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnCheckAssosOrderLinesOnAfterSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssosOrderLinesOnAfterSetFilters(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnCheckSalesDocumentOnAfterCalcShouldCheckItemCharge. + /// + /// + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ShouldCheckItemCharge parameter. + /// Specifies the ModifyHeader parameter. [IntegrationEvent(true, false)] local procedure OnCheckSalesDocumentOnAfterCalcShouldCheckItemCharge(var SalesHeader: Record "Sales Header"; WhseReceive: Boolean; WhseShip: Boolean; var ShouldCheckItemCharge: Boolean; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForShipOnBeforeCheck. + /// + /// + /// Specifies the TempWhseShipmentHeader parameter. + /// Specifies the TempWhseReceiptHeader parameter. + /// Specifies the Ship parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForShipOnBeforeCheck(var SalesHeader: Record "Sales Header"; var TempWhseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWhseReceiptHeader: Record "Warehouse Receipt Header" temporary; var Ship: Boolean; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForReceiveOnBeforeCheck. + /// + /// + /// Specifies the TempWhseShipmentHeader parameter. + /// Specifies the TempWhseReceiptHeader parameter. + /// Specifies the Receive parameter. [IntegrationEvent(true, false)] local procedure OnCheckTrackingAndWarehouseForReceiveOnBeforeCheck(var SalesHeader: Record "Sales Header"; var TempWhseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWhseReceiptHeader: Record "Warehouse Receipt Header" temporary; var Receive: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingSpecificationOnAfterTempItemSalesLineLoop. + /// + /// [IntegrationEvent(false, false)] local procedure OnCheckTrackingSpecificationOnAfterTempItemSalesLineLoop(var TempItemSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckCustBlockageOnAfterTempLinesSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckCustBlockageOnAfterTempLinesSetFilters(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary); begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterTempPrepmtSalesLineSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterTempPrepmtSalesLineSetFilters(var TempPrepmtSalesLine: Record "Sales Line" temporary; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterGetSalesPrepmtAccount. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterGetSalesPrepmtAccount(var GLAcc: Record "G/L Account"; var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeGetSalesPrepmtAccount. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the GenPostingSetup parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeGetSalesPrepmtAccount(var GLAcc: Record "G/L Account"; var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header"; var GenPostingSetup: Record "General Posting Setup"; CompleteFunctionality: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterTempSalesLineSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempPrepmtSalesLine parameter. + /// Specifies the NextLineNo parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterTempSalesLineSetFilters(var TempSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempPrepmtSalesLine: Record "Sales Line" temporary; var NextLineNo: Integer) begin end; + /// + /// Event raised by OnFinalizePostingOnAfterUpdateItemChargeAssgnt. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnAfterUpdateItemChargeAssgnt(var SalesHeader: Record "Sales Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the TempItemChargeAssignmentSales parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the TempSalesLine parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the SalesPost parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeInsertTrackingSpecification(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)" temporary; SalesHeader: Record "Sales Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; EverythingInvoiced: Boolean; var TempSalesLine: Record "Sales Line" temporary; var TempSalesLineGlobal: Record "Sales Line" temporary; SalesPost: Codeunit "Sales-Post") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeCreateOutboxSalesTrans. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeCreateOutboxSalesTrans(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; EverythingInvoiced: Boolean; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeDeleteApprovalEntries. + /// + /// + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeDeleteApprovalEntries(var SalesHeader: Record "Sales Header"; var EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeGenJnlPostPreviewThrowError. + /// + /// + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeGenJnlPostPreviewThrowError(SalesHeader: Record "Sales Header"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforePost. + /// + /// + /// Specifies the PurchOrderLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforePost(var ItemJournalLine: Record "Item Journal Line"; PurchOrderLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostATOOnBeforePostedATOLinkInsert. + /// + /// + /// Specifies the AssemblyHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostATOOnBeforePostedATOLinkInsert(var PostedATOLink: Record "Posted Assemble-to-Order Link"; var AssemblyHeader: Record "Assembly Header"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostATOAssocItemJnlLineOnBeforeRemainingPost. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the PostedATOLink parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the ItemLedgShptEntryNo parameter. [IntegrationEvent(false, false)] local procedure OnPostATOAssocItemJnlLineOnBeforeRemainingPost(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var PostedATOLink: Record "Posted Assemble-to-Order Link"; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal; var ItemLedgShptEntryNo: Integer) begin end; + /// + /// Event raised by OnPostDropOrderShipmentOnAfterUpdateBlanketOrderLine. + /// + /// + /// Specifies the PurchOrderLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostDropOrderShipmentOnAfterUpdateBlanketOrderLine(PurchOrderHeader: Record "Purchase Header"; PurchOrderLine: Record "Purchase Line"; TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesShptHeader: Record "Sales Shipment Header"; SalesHeader: Record "Sales Header"; PurchRcptHeader: Record "Purch. Rcpt. Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyDocumentFields. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header") begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCalcShouldPostItemJnlLineItemCharges. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the ShouldPostItemJnlLineItemCharges parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCalcShouldPostItemJnlLineItemCharges(SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var ShouldPostItemJnlLineItemCharges: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterPrepareItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the RemAmt parameter. + /// Specifies the RemDiscAmt parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterPrepareItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; WhseShip: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var QtyToBeShipped: Decimal; TrackingSpecification: Record "Tracking Specification"; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; var QtyToBeShippedBase: Decimal; var RemAmt: Decimal; var RemDiscAmt: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyItemCharge. + /// + /// + /// Specifies the TempItemChargeAssgntSales parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyItemCharge(var ItemJournalLine: Record "Item Journal Line"; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeIsJobContactLineCheck. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the ShouldPostItemJnlLine parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the QtyToBeShipped parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeIsJobContactLineCheck(var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var ShouldPostItemJnlLine: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; QtyToBeShipped: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck(var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforePostItemJnlLineWhseLine. + /// + /// + /// Specifies the TempWhseJnlLine parameter. + /// Specifies the TempWhseTrackingSpecification parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforePostItemJnlLineWhseLine(var ItemJnlLine: Record "Item Journal Line"; var TempWhseJnlLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeTransferReservToItemJnlLine. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the CheckApplFromItemEntry parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeShippedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeTransferReservToItemJnlLine(SalesLine: Record "Sales Line"; ItemJnlLine: Record "Item Journal Line"; var CheckApplFromItemEntry: Boolean; var TrackingSpecification: Record "Tracking Specification"; QtyToBeShippedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeCopyTrackingFromSpec. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeCopyTrackingFromSpec(TrackingSpecification: Record "Tracking Specification"; var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; IsATO: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine(var ItemChargeSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemJnlLinePrepareJournalLineOnBeforeCalcItemJnlAmounts. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLinePrepareJournalLineOnBeforeCalcItemJnlAmounts(var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; IsATO: Boolean) begin end; + /// + /// Event raised by OnPostItemChargeOnBeforePostItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the TempItemChargeAssgntSales parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnBeforePostItemJnlLine(var SalesLineToPost: Record "Sales Line"; var SalesLine: Record "Sales Line"; QtyToAssign: Decimal; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnAfterCopyToItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the GeneralLedgerSetup parameter. + /// Specifies the QtyToInvoice parameter. + /// Specifies the TempItemChargeAssignmentSales parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnAfterCopyToItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var SalesLine: Record "Sales Line"; GeneralLedgerSetup: Record "General Ledger Setup"; QtyToInvoice: Decimal; var TempItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)" temporary) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnAfterTempTrackingSpecificationInvSetFilters. + /// + /// + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the TempTrackingSpecificationInv parameter. + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the TotalSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnAfterTempTrackingSpecificationInvSetFilters(SalesHeader: record "Sales Header"; var ItemJnlLine2: record "Item Journal Line"; var TempTrackingSpecificationInv: Record "Tracking Specification" temporary; SalesLine: Record "Sales Line"; var IsHandled: Boolean; var TotalSalesLineLCY: Record "Sales Line"; var TotalSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnBeforeTestJobNo. + /// + /// + /// Specifies the SkipTestJobNo parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnBeforeTestJobNo(SalesLine: Record "Sales Line"; var SkipTestJobNo: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnBeforeLastRunWithCheck. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnBeforeLastRunWithCheck(NonDistrItemJnlLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnBeforeRunWithCheck. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnBeforeRunWithCheck(ItemJnlLine2: Record "Item Journal Line"; var IsHandled: Boolean; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerShptOnBeforeTestJobNo. + /// + /// + /// Specifies the SkipTestJobNo parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerShptOnBeforeTestJobNo(SalesShipmentLine: Record "Sales Shipment Line"; var SkipTestJobNo: Boolean; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerShptOnAfterCheckItemChargePerShpt. + /// + /// + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the DistributeCharge parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerShptOnAfterCheckItemChargePerShpt(SalesShipmentLine: Record "Sales Shipment Line"; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; DistributeCharge: Boolean; var IsHandled: Boolean; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerShptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the DistributeCharge parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerShptOnAfterCalcDistributeCharge(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesShptLine: Record "Sales Shipment Line"; TempItemLedgEntry: Record "Item Ledger Entry" temporary; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; var DistributeCharge: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the ReturnRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the DistributeCharge parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; ReturnRcptLine: Record "Return Receipt Line"; TempItemLedgEntry: Record "Item Ledger Entry" temporary; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; var DistributeCharge: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRetRcptOnBeforeTestFieldJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetRcptOnBeforeTestFieldJobNo(ReturnReceiptLine: Record "Return Receipt Line"; var IsHandled: Boolean; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingLineOnAfterRetrieveInvoiceSpecification. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingLineOnAfterRetrieveInvoiceSpecification(var SalesLine: Record "Sales Line"; var TempInvoicingSpecification: Record "Tracking Specification" temporary; var TrackingSpecificationExists: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnAfterSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnAfterSetFilters(var SalesShipmentLine: Record "Sales Shipment Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnAfterUpdateSalesShptLineFields. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnAfterUpdateSalesShptLineFields(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the HasATOShippedNotInvoiced parameter. + /// Specifies the ShouldAdjustQuantityRounding parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding(SalesShptLine: Record "Sales Shipment Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; HasATOShippedNotInvoiced: Boolean; var ShouldAdjustQuantityRounding: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeShipmentInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the ItemJnlRollRndg parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(true, false)] local procedure OnPostItemTrackingForShipmentOnBeforeShipmentInvoiceErr(SalesLine: Record "Sales Line"; var IsHandled: Boolean; SalesHeader: Record "Sales Header"; var ItemJnlRollRndg: Boolean; TrackingSpecificationExists: Boolean; var TempTrackingSpecification: Record "Tracking Specification" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeReturnReceiptInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the ItemJnlRollRndg parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(true, false)] local procedure OnPostItemTrackingForShipmentOnBeforeReturnReceiptInvoiceErr(SalesLine: Record "Sales Line"; var IsHandled: Boolean; SalesHeader: Record "Sales Header"; var ItemJnlRollRndg: Boolean; TrackingSpecificationExists: Boolean; var TempTrackingSpecification: Record "Tracking Specification" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnAfterSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnAfterSetFilters(var ReturnReceiptLine: Record "Return Receipt Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertCrMemoLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertCrMemoLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean; xSalesLine: Record "Sales Line"; SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertInvoiceLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the ShouldInsertInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertInvoiceLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean; xSalesLine: Record "Sales Line"; SalesInvHeader: Record "Sales Invoice Header"; var ShouldInsertInvoiceLine: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertReturnReceiptLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertReturnReceiptLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertShipmentLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesLineACY parameter. + /// Specifies the DocType parameter. + /// Specifies the DocNo parameter. + /// Specifies the ExtDocNo parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertShipmentLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean; SalesLineACY: Record "Sales Line"; DocType: Option; DocNo: Code[20]; ExtDocNo: Code[35]) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterSetEverythingInvoiced. + /// + /// + /// Specifies the EverythingInvoiced parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterSetEverythingInvoiced(SalesLine: Record "Sales Line"; var EverythingInvoiced: Boolean; var IsHandled: Boolean; SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterRoundAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterRoundAmount(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; GenJnlLineDocNo: Code[20]) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeTestJobNo(SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterPostItemTrackingLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempPostedATOLink parameter. [IntegrationEvent(true, false)] local procedure OnPostSalesLineOnAfterPostItemTrackingLine(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterTestSalesLine. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the WhseShptHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CostBaseAmount parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterTestSalesLine(var SalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header"; var WhseShptHeader: Record "Warehouse Shipment Header"; WhseShip: Boolean; PreviewMode: Boolean; var CostBaseAmount: Decimal) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforePostItemTrackingLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(true, false)] local procedure OnPostSalesLineOnBeforePostItemTrackingLine(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var ItemLedgShptEntryNo: Integer; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal; GenJnlLineDocNo: Code[20]; SrcCode: Code[10]; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeTestUnitOfMeasureCode. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeTestUnitOfMeasureCode(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterAdjustPrepmtAmountLCY. + /// + /// + /// Specifies the xSalesLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterAdjustPrepmtAmountLCY(var SalesLine: record "Sales Line"; var xSalesLine: record "Sales Line"; TempTrackingSpecification: record "Tracking Specification" temporary; SalesHeader: record "Sales Header") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterInsertReturnReceiptLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the ReturnRcptHeader parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the SalesShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterInsertReturnReceiptLine(var SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var xSalesLine: Record "Sales Line"; ReturnRcptHeader: Record "Return Receipt Header"; RoundingLineInserted: Boolean; var TempTrackingSpecification: Record "Tracking Specification" temporary; var ItemLedgShptEntryNo: Integer; SalesShipmentHeader: Record "Sales Shipment Header") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterGetSalesOrderLine. + /// + /// + /// Specifies the SalesShptLine parameter. + /// Specifies the SalesOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterGetSalesOrderLine(var TempSalesLine: Record "Sales Line" temporary; SalesShptLine: Record "Sales Shipment Line"; SalesOrderLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeCalcQuantityInvoiced. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeCalcQuantityInvoiced(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnAfterGetSalesOrderLine. + /// + /// + /// Specifies the ReturnRcptLine parameter. + /// Specifies the SalesOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnAfterGetSalesOrderLine(var TempSalesLine: Record "Sales Line" temporary; ReturnRcptLine: Record "Return Receipt Line"; SalesOrderLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeInitQtyToInvoice(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnAfterModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnAfterModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeCalcQuantityInvoiced. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeCalcQuantityInvoiced(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnProcessAssocItemJnlLineOnBeforeTempDropShptPostBufferInsert. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnProcessAssocItemJnlLineOnBeforeTempDropShptPostBufferInsert(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnProcessAssocItemJnlLineOnBeforePostAssocItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnProcessAssocItemJnlLineOnBeforePostAssocItemJnlLine(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnRoundAmountOnBeforeIncrAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineQty parameter. + /// Specifies the TotalSalesLine parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnBeforeIncrAmount(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineQty: Decimal; var TotalSalesLine: Record "Sales Line"; var TotalSalesLineLCY: Record "Sales Line"; var xSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforeCheckTotalInvoiceAmount. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeCheckTotalInvoiceAmount(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnRunOnBeforeFinalizePosting. + /// + /// + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the ReturnReceiptHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeFinalizePosting(var SalesHeader: Record "Sales Header"; var SalesShipmentHeader: Record "Sales Shipment Header"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var ReturnReceiptHeader: Record "Return Receipt Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; CommitIsSuppressed: Boolean; GenJnlLineExtDocNo: Code[35]; var EverythingInvoiced: Boolean; GenJnlLineDocNo: Code[20]; SrcCode: Code[10]; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforePostSalesLineEndLoop. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the LastLineRetrieved parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the RecSalesHeader parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the ReturnReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforePostSalesLineEndLoop(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var LastLineRetrieved: Boolean; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; RecSalesHeader: Record "Sales Header"; xSalesLine: Record "Sales Line"; var SalesShipmentHeader: Record "Sales Shipment Header"; var ReturnReceiptHeader: Record "Return Receipt Header") begin end; + /// + /// Event raised by OnGetATOItemLedgEntriesNotInvoicedOnBeforeItemLedgEntryNotInvoicedInsert. + /// + /// [IntegrationEvent(false, false)] local procedure OnGetATOItemLedgEntriesNotInvoicedOnBeforeItemLedgEntryNotInvoicedInsert(var ItemLedgEntry: Record "Item Ledger Entry") begin end; + /// + /// Event raised by OnGetPostedDocumentRecordElseCase. + /// + /// + /// Specifies the PostedSalesDocumentVariant parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnGetPostedDocumentRecordElseCase(SalesHeader: Record "Sales Header"; var PostedSalesDocumentVariant: Variant; var IsHandled: Boolean) begin end; - [IntegrationEvent(false, false)] - local procedure OnGetSalesLinesOnAfterFillTempLines(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) + /// + /// Event raised by OnGetSalesLinesOnAfterFillTempLines. + /// + /// + /// Specifies the TempSalesLine parameter. + [IntegrationEvent(false, false)] + local procedure OnGetSalesLinesOnAfterFillTempLines(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostItemLineOnAfterMakeSalesLineToShip. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempPostedATOLink parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemLineOnAfterMakeSalesLineToShip(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemLineOnBeforeMakeSalesLineToShip. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempPostedATOLink parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the IsHandled parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the ReturnReceiptHeader parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the TempHandlingSpecificationInv parameter. + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnPostItemLineOnBeforeMakeSalesLineToShip(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var ItemLedgShptEntryNo: Integer; var IsHandled: Boolean; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; ReturnReceiptHeader: Record "Return Receipt Header"; var TempHandlingSpecification: Record "Tracking Specification" temporary; var TempHandlingSpecificationInv: Record "Tracking Specification" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnPostItemLineOnBeforePostItemInvoiceLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempPostedATOLink parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemLineOnBeforePostItemInvoiceLine(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterPostItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnAfterPostItemJnlLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargeLineOnAfterTempItemChargeAssgntSalesLoop. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineParam parameter. [IntegrationEvent(true, false)] local procedure OnPostItemChargeLineOnAfterTempItemChargeAssgntSalesLoop(var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineParam: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargeLineOnBeforePostItemCharge. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeLineOnBeforePostItemCharge(var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforeReturnRcptLineModify. + /// + /// + /// Specifies the ReturnRcptLine parameter. + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforeReturnRcptLineModify(SalesHeader: Record "Sales Header"; var ReturnRcptLine: Record "Return Receipt Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforeAdjustQuantityRounding. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the ShouldAdjustQuantityRounding parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforeAdjustQuantityRounding(ReturnRcptLine: Record "Return Receipt Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; var ShouldAdjustQuantityRounding: Boolean) begin end; + /// + /// Event raised by OnReleaseSalesDocumentOnBeforeSetStatus. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SavedStatus parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the SuppressCommit parameter. [IntegrationEvent(false, false)] local procedure OnReleaseSalesDocumentOnBeforeSetStatus(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; SavedStatus: Enum "Sales Document Status"; PreviewMode: Boolean; SuppressCommit: Boolean); begin end; + /// + /// Event raised by OnRoundAmountOnAfterAssignSalesLines. + /// + /// + /// Specifies the SalesLineACY parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TotalSalesLines parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnAfterAssignSalesLines(var xSalesLine: Record "Sales Line"; var SalesLineACY: Record "Sales Line"; SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var TotalSalesLines: Record "Sales Line"; var TotalSalesLineLCY: Record "Sales Line"; var SalesLine: Record "Sales Line"); begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification. + /// + /// [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification(var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSendICDocumentOnBeforeSetICStatus. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSendICDocumentOnBeforeSetICStatus(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSendPostedDocumentRecordElseCase. + /// + /// + /// Specifies the DocumentSendingProfile parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSendPostedDocumentRecordElseCase(SalesHeader: Record "Sales Header"; var DocumentSendingProfile: Record "Document Sending Profile"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestSalesLineOnAfterTestSalesLineJob. + /// + /// [IntegrationEvent(false, false)] local procedure OnTestSalesLineOnAfterTestSalesLineJob(var SalesLine: record "Sales Line") begin end; + /// + /// Event raised by OnTestSalesLineOnAfterCalcShouldTestReturnQty. + /// + /// + /// Specifies the ShouldTestReturnQty parameter. [IntegrationEvent(false, false)] local procedure OnTestSalesLineOnAfterCalcShouldTestReturnQty(SalesLine: Record "Sales Line"; var ShouldTestReturnQty: Boolean) begin end; + /// + /// Event raised by OnBeforeTestGenPostingGroups. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestGenPostingGroups(var SalesLine: record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateSalesLineBeforePostOnAfterPostJobContractLine. + /// + /// + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateSalesLineBeforePostOnAfterPostJobContractLine(SalesInvoiceHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnUpdateAssosOrderOnAfterPurchOrderHeaderModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderOnAfterPurchOrderHeaderModify(var PurchOrderHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterModifyPurchLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterModifyPurchLine(var PurchOrderLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnUpdateAssocOrderOnBeforeModifyPurchLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnBeforeModifyPurchLine(var PurchOrderLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnAfterReleasePurchaseDocument. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnAfterReleasePurchaseDocument(var PurchOrderHeader: Record "Purchase Header"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeReleasePurchaseDocument. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeReleasePurchaseDocument(var PurchOrderHeader: Record "Purchase Header"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateAfterPostingOnBeforeFindSetForUpdate. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAfterPostingOnBeforeFindSetForUpdate(var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheck. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheck(var BlanketOrderSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheckSellToCustomerNo. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheckSellToCustomerNo(var BlanketOrderSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeInitOutstanding(var BlanketOrderSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnUpdateInvoicedQtyOnShipmentLineOnBeforeModifySalesShptLine. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnUpdateInvoicedQtyOnShipmentLineOnBeforeModifySalesShptLine(var SalesShptLine: Record "Sales Shipment Line"; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnAfterInitAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterInitAmount(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnAfterInitLineDiscountAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterInitLineDiscountAmount(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineRemainderModify. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineRemainderModify(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency) begin end; + /// + /// Event raised by OnBeforeCalcVATBaseAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcVATBaseAmount(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostUpdateInvoiceLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateInvoiceLine(var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostUpdateReturnReceiptLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostUpdateReturnReceiptLine(var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertTrackingSpecification(SalesHeader: Record "Sales Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSendPostedDocumentRecord. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the DocumentSendingProfile parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSendPostedDocumentRecord(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var DocumentSendingProfile: Record "Document Sending Profile") begin end; + /// + /// Event raised by OnAfterPostItemChargeLine. + /// + /// + /// Specifies the SalesLineACY parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargeLine(var SalesLine: Record "Sales Line"; SalesLineACY: Record "Sales Line") begin end; + /// + /// Event raised by OnDeleteAfterPostingOnAfterDeleteLinks. + /// + /// [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnAfterDeleteLinks(var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnDeleteAfterPostingOnBeforeDeleteSalesHeader. + /// + /// [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnBeforeDeleteSalesHeader(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnDeleteAfterPostingOnBeforeDeleteLinks. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnBeforeDeleteLinks(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforeCheckAndUpdate. + /// + /// [IntegrationEvent(false, false)] local procedure OnRunOnBeforeCheckAndUpdate(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateWonOpportunitiesOnBeforeOpportunityModify. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the Opportunity parameter. [IntegrationEvent(false, false)] local procedure OnUpdateWonOpportunitiesOnBeforeOpportunityModify(var SalesHeader: Record "Sales Header"; SalesInvoiceHeader: Record "Sales Invoice Header"; var Opportunity: Record Opportunity) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCheckShip. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCheckShip(var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnBeforeUpdateReceiveAndCheckIfInvPutawayExists. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateReceiveAndCheckIfInvPutawayExists(var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnModifyTempLineOnAfterSalesLineModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnAfterSalesLineModify(var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnModifyTempLineOnBeforeTransferFields. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnBeforeTransferFields(var SalesLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnModifyTempLineOnBeforeSalesLineModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnBeforeSalesLineModify(var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesLine(SalesLine: Record "Sales Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesShipmentLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesShipmentLine(SalesShipmentLine: Record "Sales Shipment Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnReceiptLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnReceiptLine(ReturnReceiptLine: Record "Return Receipt Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateSalesLineDimSetIDFromAppliedEntry. + /// + /// + /// Specifies the ItemLedgEntry parameter. + /// Specifies the DimSetID parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateSalesLineDimSetIDFromAppliedEntry(var SalesLineToPost: Record "Sales Line"; var ItemLedgEntry: Record "Item Ledger Entry"; DimSetID: array[10] of Integer) begin end; + /// + /// Event raised by OnDeleteAfterPostingOnAfterSetupSalesHeader. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnAfterSetupSalesHeader(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnDeleteAfterPostingOnAfterSalesLineDeleteAll. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnAfterSalesLineDeleteAll(SalesHeader: Record "Sales Header"; SalesInvoiceHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; CommitIsSuppressed: Boolean; EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentConditionOnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentConditionOnBeforeUpdateBlanketOrderLine(var TempSalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostResJnlLineOnAfterInit. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostResJnlLineOnAfterInit(var ResJnlLine: Record "Res. Journal Line"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists. + /// + /// + /// Specifies the ReplacePostingDate parameter. + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the VATDateExists parameter. + /// Specifies the ReplaceVATDate parameter. + /// Specifies the VATDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists(var PostingDateExists: Boolean; var ReplacePostingDate: Boolean; var ReplaceDocumentDate: Boolean; var PostingDate: Date; var SalesHeader: Record "Sales Header"; var ModifyHeader: Boolean; var VATDateExists: Boolean; var ReplaceVATDate: Boolean; var VATDate: Date) begin end; + /// + /// Event raised by OnBeforeValidateICPartnerBusPostingGroups. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeValidateICPartnerBusPostingGroups(var TempICGenJnlLine: Record "Gen. Journal Line" temporary; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterGetCurrency. + /// + /// + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetCurrency(CurrencyCode: Code[10]; var Currency: Record Currency) begin end; + /// + /// Event raised by OnBeforePostItemLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemLine(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean; var TempSalesLineGlobal: Record "Sales Line" temporary; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnBeforePostItemChargeLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargeLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct(var TempPrepmtSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnAfterInsertReturnReceiptHeader. + /// + /// + /// Specifies the ReturnReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertReturnReceiptHeader(var SalesHeader: Record "Sales Header"; var ReturnReceiptHeader: Record "Return Receipt Header") begin @@ -13451,384 +14596,888 @@ codeunit 80 "Sales-Post" #if not CLEAN27 [Obsolete('This event is never raised.', '27.0')] + /// + /// Event raised by OnAfterGetAmountsForDeferral. + /// + /// + /// Specifies the AmtToDefer parameter. + /// Specifies the AmtToDeferACY parameter. + /// Specifies the DeferralAccount parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetAmountsForDeferral(SalesLine: Record "Sales Line"; var AmtToDefer: Decimal; var AmtToDeferACY: Decimal; var DeferralAccount: Code[20]) begin end; #endif + /// + /// Event raised by OnPostJobContractLineBeforeTestFields. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostJobContractLineBeforeTestFields(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertCrMemoHeaderOnAfterCalcShouldProcessAsReturnOrder. + /// + /// + /// Specifies the ShouldProcessAsReturnOrder parameter. [IntegrationEvent(false, false)] local procedure OnInsertCrMemoHeaderOnAfterCalcShouldProcessAsReturnOrder(SalesHeader: Record "Sales Header"; var ShouldProcessAsReturnOrder: Boolean) begin end; + /// + /// Event raised by OnUpdateQtyToBeInvoicedForShipmentOnAfterSetQtyToBeInvoiced. + /// + /// + /// Specifies the HasATOShippedNotInvoiced parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateQtyToBeInvoicedForShipmentOnAfterSetQtyToBeInvoiced(TrackingSpecificationExists: Boolean; HasATOShippedNotInvoiced: Boolean; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnBeforePostItemJnlLineItemCharges. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLineItemCharges(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeInitOutstanding(var SalesOrderLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeGetATOItemLedgEntriesNotInvoiced. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeGetATOItemLedgEntriesNotInvoiced(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckSalesDocumentOnBeforeCheckDueDate. + /// + /// + /// Specifies the ShouldCheckDueDate parameter. [IntegrationEvent(false, false)] local procedure OnCheckSalesDocumentOnBeforeCheckDueDate(var SalesHeader: Record "Sales Header"; var ShouldCheckDueDate: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineTrackingOnAfterCalcShouldInsertTrkgSpecInv. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the ShouldInsertTrkgSpecInv parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineTrackingOnAfterCalcShouldInsertTrkgSpecInv(var SalesLine: Record "Sales Line"; QtyToBeInvoiced: Decimal; var ShouldInsertTrkgSpecInv: Boolean) begin end; + /// + /// Event raised by OnUpdateSalesLineBeforePostOnBeforeGetUnitCost. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateSalesLineBeforePostOnBeforeGetUnitCost(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcItemJnlAmountsFromQtyToBeInvoiced. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcItemJnlAmountsFromQtyToBeInvoiced(var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; QtyToBeInvoiced: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForReceiveOnAfterSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForReceiveOnAfterSetFilters(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnRunOnBeforeCalcVATAmountLines. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeCalcVATAmountLines(var TempSalesLineGlobal: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestSalesLineOnBeforeTestFieldQtyToShip. + /// + /// + /// Specifies the ShouldTestQtyToShip parameter. [IntegrationEvent(false, false)] local procedure OnTestSalesLineOnBeforeTestFieldQtyToShip(SalesLine: Record "Sales Line"; var ShouldTestQtyToShip: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertShipmentLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertShipmentLine(var SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnIsEndLoopForShippedNotInvoicedOnBeforeExit. + /// + /// + /// Specifies the SalesShptLine parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnIsEndLoopForShippedNotInvoicedOnBeforeExit(SalesLine: Record "Sales Line"; SalesShptLine: Record "Sales Shipment Line"; RemQtyToBeInvoiced: Decimal; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLinePrepareJournalLineOnBeforeCalcQuantities. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLinePrepareJournalLineOnBeforeCalcQuantities(var ItemJnlLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; QtyToBeShipped: Decimal; QtyToBeShippedBase: Decimal; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean; IsATO: Boolean) begin end; + /// + /// Event raised by OnBeforeInvoiceRounding. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInvoiceRounding(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyTrackingFromSpec. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyTrackingFromSpec(var ItemJnlLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; QtyToBeShipped: Decimal; IsATO: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeValidateQtyToInvoice. + /// + /// + /// Specifies the ShouldValidateQtyToInvoice parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeValidateQtyToInvoice(var SalesHeader: Record "Sales Header"; var ShouldValidateQtyToInvoice: Boolean; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnAfterSetFilterTempSalesLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnAfterSetFilterTempSalesLine(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckTrackingSpecificationOnBeforeGetItemTrackingSettings. + /// + /// + /// Specifies the ItemTrackingSetup parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingSpecificationOnBeforeGetItemTrackingSettings(var TempItemSalesLine: Record "Sales Line" temporary; var ItemTrackingSetup: Record "Item Tracking Setup"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForReceipt. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForReceipt(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineTrackingOnBeforeInsertTempTrkgSpec. + /// + /// + /// Specifies the TempTrackingSpec parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineTrackingOnBeforeInsertTempTrkgSpec(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempTrackingSpec: Record "Tracking Specification" temporary; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInsertInvoiceHeaderOnBeforeCheckDocumentType. + /// + /// + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesSetup parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertInvoiceHeaderOnBeforeCheckDocumentType(SalesHeader: Record "Sales Header"; var SalesInvHeader: Record "Sales Invoice Header"; SalesSetup: Record "Sales & Receivables Setup"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnBeforePostBalancingEntry. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the TotalSalesLine parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnBeforePostBalancingEntry(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var TotalSalesLine: Record "Sales Line"; var TotalSalesLineLCY: Record "Sales Line"; SuppressCommit: Boolean; PreviewMode: Boolean; InvoicePostingParameters: Record "Invoice Posting Parameters"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin end; + /// + /// Event raised by OnBeforeFindNotShippedLines. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeFindNotShippedLines(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforePostSalesLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesLineACY parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforePostSalesLine(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; SrcCode: Code[10]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var IsHandled: Boolean; SalesLineACY: Record "Sales Line") begin end; + /// + /// Event raised by OnAfterUpdateInvoiceRounding. + /// + /// + /// Specifies the TotalSalesLine parameter. + /// Specifies the SalesLine parameter. + /// Specifies the Currency parameter. + /// Specifies the BiggestLineNo parameter. + /// Specifies the LastLineRetrieved parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the RoundingLineNo parameter. + /// Specifies the UseTempData parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoiceRounding(var SalesHeader: Record "Sales Header"; var TotalSalesLine: Record "Sales Line"; var SalesLine: Record "Sales Line"; var Currency: Record Currency; var BiggestLineNo: Integer; var LastLineRetrieved: Boolean; var RoundingLineInserted: Boolean; var RoundingLineNo: Integer; UseTempData: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterSetFilters(var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostItemLineOnBeforePostItemJnlLineForInvoiceDoc. + /// + /// + /// Specifies the SalesLineToShip parameter. + /// Specifies the Ship parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the TempTrackingSpecificationInv parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. + /// Specifies the QtyToInvoice parameter. + /// Specifies the TempAssembletoOrderLink parameter. [IntegrationEvent(true, false)] local procedure OnPostItemLineOnBeforePostItemJnlLineForInvoiceDoc(SalesHeader: Record "Sales Header"; var SalesLineToShip: Record "Sales Line"; Ship: Boolean; var ItemLedgShptEntryNo: Integer; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; SalesShptHeader: Record "Sales Shipment Header"; var TempHandlingSpecification: Record "Tracking Specification" temporary; var TempTrackingSpecificationInv: Record "Tracking Specification" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean; QtyToInvoice: Decimal; TempAssembletoOrderLink: Record "Posted Assemble-to-Order Link" temporary) begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForReceipt. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the QtyToInvoiceBaseInTrackingSpec parameter. + /// Specifies the ShouldPostItemTrackingForReceipt parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForReceipt(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; RemQtyToBeInvoiced: Decimal; QtyToInvoiceBaseInTrackingSpec: Decimal; var ShouldPostItemTrackingForReceipt: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForShipment. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the QtyToInvoiceBaseInTrackingSpec parameter. + /// Specifies the ShouldPostItemTrackingForShipment parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForShipment(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; RemQtyToBeInvoiced: Decimal; QtyToInvoiceBaseInTrackingSpec: Decimal; var ShouldPostItemTrackingForShipment: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeGetQuantityShipped. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeGetQuantityShipped(var TempSalesLine: Record "Sales Line"; var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeGetReturnQtyReceived. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeGetReturnQtyReceived(var TempSalesLine: Record "Sales Line"; var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldProcessReceipt. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the ShouldProcessReceipt parameter. + /// Specifies the ItemJnlRollRndg parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldProcessReceipt(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var ShouldProcessReceipt: Boolean; var ItemJnlRollRndg: Boolean) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeInitOutstanding(var SalesOrderLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnBeforeBalAccountNoWindowUpdate. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnBeforeBalAccountNoWindowUpdate(HideProgressWindow: Boolean; var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterCalcShouldCalcPrepmtAmounts. + /// + /// + /// Specifies the ShouldCalcPrepmtAmounts parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterCalcShouldCalcPrepmtAmounts(var TempSalesLine: Record "Sales Line" temporary; var ShouldCalcPrepmtAmounts: Boolean) begin end; + /// + /// Event raised by OnAfterGetGeneralPostingSetup. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetGeneralPostingSetup(var GeneralPostingSetup: Record "General Posting Setup"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnCheckItemTrackingQuantityOnDocumentTypeCaseElse. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckItemTrackingQuantityOnDocumentTypeCaseElse(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnSetCommitBehavior. + /// + /// [IntegrationEvent(false, false)] local procedure OnSetCommitBehavior(var ErrorOnCommit: Boolean) begin end; #if not CLEAN27 + /// + /// Event raised by OnSetPostingPreviewDocumentNo. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnSetPostingPreviewDocumentNo(var PreviewDocumentNo: Code[20]; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnGetPostingPreviewDocumentNos. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnGetPostingPreviewDocumentNos(var PreviewDocumentNos: List of [Code[20]]) begin end; #endif + /// + /// Event raised by OnPostInvoiceOnAfterPostLines. + /// + /// + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnAfterPostLines(var SalesHeader: Record "Sales Header"; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeAssignQtyToInvoice. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeAssignQtyToInvoice(var TempSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeItemLedgerEntryExist. + /// + /// + /// Specifies the ShipOrReceive parameter. + /// Specifies the HasItemLedgerEntry parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeItemLedgerEntryExist(var SalesLine: Record "Sales Line"; ShipOrReceive: Boolean; var HasItemLedgerEntry: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterCalcShouldInsertInvoiceHeader. + /// + /// + /// Specifies the ShouldInsertInvoiceHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterCalcShouldInsertInvoiceHeader(var SalesHeader: Record "Sales Header"; var ShouldInsertInvoiceHeader: Boolean) begin end; + /// + /// Event raised by OnInsertShptEntryRelationOnAfterItemEntryRelationInsert. + /// + /// + /// Specifies the ItemEntryRelation parameter. + /// Specifies the xSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertShptEntryRelationOnAfterItemEntryRelationInsert(SalesShipmentLine: Record "Sales Shipment Line"; var ItemEntryRelation: Record "Item Entry Relation"; xSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnBeforePostItemChargePerRetRcpt. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempItemChargeAssignmentSales parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRetRcpt(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeSetInvoiceFields. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the ShouldSetInvoiceFields parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeSetInvoiceFields(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line"; var ShouldSetInvoiceFields: Boolean) begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeError. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the InvoiceEverything parameter. [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeError(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var InvoiceEverything: Boolean) begin end; + /// + /// Event raised by OnBeforeGetSalesLineAdjCostLCY. + /// + /// + /// Specifies the QtyType parameter. + /// Specifies the AdjCostLCY parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetSalesLineAdjCostLCY(SalesLine2: Record "Sales Line"; QtyType: Option General,Invoicing,Shipping; AdjCostLCY: Decimal; var Result: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeShouldTestGetShipmentPPmtAmtToDeduct. + /// + /// + /// Specifies the CompleteFunctionality parameter. + /// Specifies the ShouldTestGetShipmentPPmtAmtToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeShouldTestGetShipmentPPmtAmtToDeduct(SalesHeader: Record "Sales Header"; CompleteFunctionality: Boolean; var ShouldTestGetShipmentPPmtAmtToDeduct: Boolean) begin end; + /// + /// Event raised by OnAfterDeleteApprovalEntries. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the ReturnReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterDeleteApprovalEntries(var SalesHeader: Record "Sales Header"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var SalesShipmentHeader: Record "Sales Shipment Header"; var ReturnReceiptHeader: Record "Return Receipt Header") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeUpdateSalesLineBeforePost. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeUpdateSalesLineBeforePost(var SalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header"; WhseShip: Boolean; WhseReceive: Boolean; RoundingLineInserted: Boolean; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnAfterSumSalesLines2. + /// + /// + /// Specifies the OldSalesLine parameter. + /// Specifies the NewSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterSumSalesLines2(var SalesHeader: Record "Sales Header"; var OldSalesLine: Record "Sales Line"; var NewSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnCheckPostWhseShptLinesOnAfterWhseShptLinesFound. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WhseShptLinesFound parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WarehouseShipmentLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckPostWhseShptLinesOnAfterWhseShptLinesFound(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line"; var WhseShptLinesFound: Boolean; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseShip: Boolean; WhseReceive: Boolean; var WarehouseShipmentLine: Record "Warehouse Shipment Line") begin end; + /// + /// Event raised by OnAfterDecrementPrepmtAmtInvLCY. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the PrepmtAmountInvLCY parameter. + /// Specifies the PrepmtVATAmountInvLCY parameter. [IntegrationEvent(false, false)] local procedure OnAfterDecrementPrepmtAmtInvLCY(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var PrepmtAmountInvLCY: Decimal; var PrepmtVATAmountInvLCY: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineGet. + /// + /// + /// Specifies the TempVATAmountLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineGet(SalesLine: Record "Sales Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeAdjustPrepmtAmountLCY. + /// + /// + /// Specifies the PrepmtSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustPrepmtAmountLCY(SalesHeader: Record "Sales Header"; var PrepmtSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostResJnlLineOnShouldExit. + /// + /// + /// Specifies the ShouldExit parameter. [IntegrationEvent(false, false)] local procedure OnPostResJnlLineOnShouldExit(var SalesLine: Record "Sales Line"; var ShouldExit: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeUpdateTempVATAmountLineRemainder. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeUpdateTempVATAmountLineRemainder(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterCalcTotalChargeAmt. + /// + /// + /// Specifies the QtyToAssign parameter. + /// Specifies the SalesLine parameter. + /// Specifies the xSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnAfterCalcTotalChargeAmt(var SalesLineToPost: Record "Sales Line"; QtyToAssign: Decimal; var SalesLine: Record "Sales Line"; xSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnBeforeCheckPostRestrictions. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPostRestrictions(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeValidateType. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeValidateType(var TempPrepmtSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeValidateDocumentDate. + /// + /// + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeValidateDocumentDate(var PostingDateExists: Boolean; var ReplaceDocumentDate: Boolean; var PostingDate: Date; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnCheckSalesDocumentOnBeforeCheckSalesDim. + /// + /// + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckSalesDocumentOnBeforeCheckSalesDim(var SalesHeader: Record "Sales Header"; var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeCreatePrepaymentTextLines. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePrepaymentTextLines(var TempPrepmtSalesLine: Record "Sales Line" temporary; var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header"; CompleteFunctionality: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckAndUpdate. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckAndUpdate(var SalesHeader: Record "Sales Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeCollectValueEntryRelation. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeCollectValueEntryRelation(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesInvoiceLine: Record "Sales Invoice Line") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeCollectValueEntryRelationForCrMemo. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeCollectValueEntryRelationForCrMemo(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesInvoiceLine: Record "Sales Invoice Line") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterCollectValueEntryRelation. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterCollectValueEntryRelation(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesInvoiceLine: Record "Sales Invoice Line") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterCreatePostedDeferralSchedule. + /// + /// + /// Specifies the SalesInvHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterCreatePostedDeferralSchedule(var SalesInvLine: Record "Sales Invoice Line"; SalesInvHeader: Record "Sales Invoice Header") begin end; + /// + /// Event raised by OnInvoiceRoundingOnAfterValidateQuantity. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnInvoiceRoundingOnAfterValidateQuantity(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInvoiceRoundingOnAfterSetLineNo. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnInvoiceRoundingOnAfterSetLineNo(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line") begin @@ -13845,16 +15494,32 @@ codeunit 80 "Sales-Post" begin end; + /// + /// Event raised by OnInsertPostedHeadersOnBeforeDeleteServItemOnSaleCreditMemo. + /// + /// + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnBeforeDeleteServItemOnSaleCreditMemo(var SalesHeader: Record "Sales Header"; var SalesShipmentHeader: Record "Sales Shipment Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterInsertInvoiceHeader. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInsertInvoiceHeader(var SalesHeader: Record "Sales Header"; var SalesInvoiceHeader: Record "Sales Invoice Header") begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterInsertCrMemoHeader. + /// + /// + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInsertCrMemoHeader(var SalesHeader: Record "Sales Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin @@ -13871,173 +15536,400 @@ codeunit 80 "Sales-Post" begin end; + /// + /// Event raised by OnProcessPostingLinesOnBeforePostDropOrderShipment. + /// + /// + /// Specifies the TotalSalesLine parameter. + /// Specifies the TotalSalesLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnProcessPostingLinesOnBeforePostDropOrderShipment(SalesHeader: Record "Sales Header"; TotalSalesLine: Record "Sales Line"; TotalSalesLineLCY: Record "Sales Line") begin end; + /// + /// Event raised by OnAfterArchiveUnpostedOrder. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the OrderArchived parameter. [IntegrationEvent(false, false)] local procedure OnAfterArchiveUnpostedOrder(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; OrderArchived: Boolean); begin end; + /// + /// Event raised by OnBeforeCheckReturnRcptLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckReturnRcptLine(var ReturnReceiptLine: Record "Return Receipt Line"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertReturnReceiptHeaderOnBeforeReturnReceiptHeaderTransferFields. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertReturnReceiptHeaderOnBeforeReturnReceiptHeaderTransferFields(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnBeforeCopyAndCheckItemCharge. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesLine parameter. + /// Specifies the InvoiceEverything parameter. + /// Specifies the AssignError parameter. + /// Specifies the QtyNeeded parameter. + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the ItemChargeAssgntSales parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCopyAndCheckItemCharge(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var SalesLine: Record "Sales Line"; var InvoiceEverything: Boolean; var AssignError: Boolean; var QtyNeeded: Decimal; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; var ItemChargeAssgntSales: Record "Item Charge Assignment (Sales)"; var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeTestPostingDate. + /// + /// + /// Specifies the ReplacePostingDate parameter. + /// Specifies the SkipTestPostingDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeTestPostingDate(var SalesHeader: Record "Sales Header"; ReplacePostingDate: Boolean; var SkipTestPostingDate: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeSalesHeaderModify. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeSalesHeaderModify(var SalesHeader: Record "Sales Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeTestLineFields. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeTestLineFields(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateQtyToBeInvoicedForReturnReceiptOnAfterSetQtyToBeInvoiced. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateQtyToBeInvoicedForReturnReceiptOnAfterSetQtyToBeInvoiced(TrackingSpecificationExists: Boolean; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterInsertShipmentHeader. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInsertShipmentHeader(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnInsertPostedHeadersDeleteServItemOnSaleCreditMemo. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersDeleteServItemOnSaleCreditMemo(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnRunWithCheckOnAfterFinalize. + /// + /// [IntegrationEvent(false, false)] local procedure OnRunWithCheckOnAfterFinalize(var SalesHeader: Record "Sales Header"); begin end; + /// + /// Event raised by OnBeforeFinalizePostATO. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeFinalizePostATO(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeDeleteATOLinks. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDeleteATOLinks(SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckATOLink. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckATOLink(SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumSalesLinesTempOnAfterVatAmountSet. + /// + /// + /// Specifies the TotalSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLinesTempOnAfterVatAmountSet(var VATAmount: Decimal; var TotalSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInsertShptEntryRelationOnBeforeDeleteTempHandlingSpecification. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertShptEntryRelationOnBeforeDeleteTempHandlingSpecification(var TempHandlingTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeModifyPurchOrderHeader. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeModifyPurchOrderHeader(var PurchaseOrderHeader: Record "Purchase Header"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnAfterPostJobContractLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostJobContractLine(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var GenJnlLineDocType: Enum "Gen. Journal Document Type"; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; var SrcCode: Code[10]) begin end; + /// + /// Event raised by OnBeforePostDistributeItemCharge. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempItemLedgerEntry parameter. + /// Specifies the NonDistrQuantity parameter. + /// Specifies the NonDistrQtyToAssign parameter. + /// Specifies the NonDistrAmountToAssign parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostDistributeItemCharge(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempItemLedgerEntry: Record "Item Ledger Entry"; NonDistrQuantity: Decimal; NonDistrQtyToAssign: Decimal; NonDistrAmountToAssign: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostDistributeItemChargeOnAfterSetFactor. + /// + /// + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostDistributeItemChargeOnAfterSetFactor(TempItemLedgerEntry: Record "Item Ledger Entry"; var Factor: Decimal) begin end; + /// + /// Event raised by OnBeforeCalcPrepmtAmtToDeduct. + /// + /// + /// Specifies the Ship parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PrepmtAmtToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcPrepmtAmtToDeduct(var SalesLine: Record "Sales Line"; Ship: Boolean; var IsHandled: Boolean; var PrepmtAmtToDeduct: Decimal) begin end; + /// + /// Event raised by OnBeforePostItemJournalLineWarehouseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJournalLineWarehouseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAfterPostItemJournalLineWarehouseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJournalLineWarehouseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAdjustPrepmtAmountLCYOnAfterGetOrderLine. + /// + /// + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnAdjustPrepmtAmountLCYOnAfterGetOrderLine(var SalesLine: Record "Sales Line"; var SalesInvoiceLine: Record "Sales Line"); begin end; + /// + /// Event raised by OnBeforeGetQtyToInvoice. + /// + /// + /// Specifies the Ship parameter. + /// Specifies the IsHandled parameter. + /// Specifies the QtyToInvoice parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetQtyToInvoice(SalesLine: Record "Sales Line"; Ship: Boolean; var IsHandled: Boolean; var QtyToInvoice: Decimal) begin end; + /// + /// Event raised by OnBeforeAdjustFinalInvWith100PctPrepmt. + /// + /// + /// Specifies the CombinedSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustFinalInvWith100PctPrepmt(var TempPrepmtDeductLCYSalesLine: Record "Sales Line" temporary; var CombinedSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateRemainingQtyToBeInvoiced. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateRemainingQtyToBeInvoiced(SalesShptLine: Record "Sales Shipment Line"; var RemQtyToInvoiceCurrLine: Decimal; var RemQtyToInvoiceCurrLineBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLineForCreditMemoOnBeforeGetSalesPrepmtAccount. + /// + /// + /// Specifies the SalesInvoiceLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLineForCreditMemoOnBeforeGetSalesPrepmtAccount(var GLAccount: Record "G/L Account"; var SalesInvoiceLine: Record "Sales Invoice Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateEmailParameters. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateEmailParameters(SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostUpdateOrderNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateOrderNo(var SalesInvoiceHeader: Record "Sales Invoice Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSetInvoiceOrderNo. + /// + /// + /// Specifies the SalesInvLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSetInvoiceOrderNo(SalesLine: Record "Sales Line"; var SalesInvLine: Record "Sales Invoice Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeArchiveRelatedJob. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeArchiveRelatedJob(SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSyncSurPlusItemTrackingOnBeforeModifyQtyToHandleInvoice. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ReservationEntry parameter. [IntegrationEvent(false, false)] local procedure OnSyncSurPlusItemTrackingOnBeforeModifyQtyToHandleInvoice(var SalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var ReservationEntry: Record "Reservation Entry") begin end; -} \ No newline at end of file + + /// + /// Event raised by OnAfterProcessPostingLines. + /// + /// + /// Specifies the TotalSalesLine parameter. + /// Specifies the CustLedgEntry parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the Window parameter. + /// Specifies the HideProgressWindow parameter. + [IntegrationEvent(false, false)] + local procedure OnAfterProcessPostingLines(var SalesHeader: Record "Sales Header"; var TotalSalesLine: Record "Sales Line"; var CustLedgEntry: Record "Cust. Ledger Entry"; InvoicePostingParameters: Record "Invoice Posting Parameters"; SuppressCommit: Boolean; EverythingInvoiced: Boolean; var Window: Dialog; HideProgressWindow: Boolean) + begin + end; + + /// + /// Raised after checking posting restrictions + /// + /// + [IntegrationEvent(false, false)] + local procedure OnAfterCheckPostRestrictions(var SalesHeader: Record "Sales Header") + begin + end; +} diff --git a/src/Layers/FR/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al b/src/Layers/FR/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al index 117c46752c2..a375618e3e3 100644 --- a/src/Layers/FR/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al +++ b/src/Layers/FR/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al @@ -1,4 +1,4 @@ -// ------------------------------------------------------------------------------------------------ +// ------------------------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // ------------------------------------------------------------------------------------------------ @@ -18,6 +18,7 @@ using Microsoft.FixedAssets.FixedAsset; using Microsoft.Foundation.Attachment; using Microsoft.Foundation.AuditCodes; using Microsoft.Foundation.NoSeries; +using Microsoft.Foundation.PaymentTerms; using Microsoft.Intercompany.Partner; using Microsoft.Purchases.Vendor; using Microsoft.Sales.Customer; @@ -853,6 +854,13 @@ table 21 "Cust. Ledger Entry" Caption = 'Prepayment'; ToolTip = 'Specifies if the related payment is a prepayment.'; } + field(91; "Payment Terms Code"; Code[10]) + { + Caption = 'Payment Terms Code'; + Editable = false; + TableRelation = "Payment Terms"; + ToolTip = 'Specifies the payment terms that determine the due date and payment discount date for the entry.'; + } field(95; "G/L Register No."; Integer) { Caption = 'G/L Register No.'; @@ -866,6 +874,7 @@ table 21 "Cust. Ledger Entry" field(171; "Payment Reference"; Code[50]) { Caption = 'Payment Reference'; + ToolTip = 'Specifies the payment reference number used by banks to identify and track the payment.'; } /// /// Specifies the payment method used or expected for this transaction, such as bank transfer, cash, or check. @@ -1383,12 +1392,12 @@ table 21 "Cust. Ledger Entry" SetCurrentKey("Customer No.", Open, Positive, "Due Date"); SetRange("Customer No.", CustomerNo); SetRange(Open, true); + OnSetApplyToFiltersOnBeforeSetFilters(Rec); if ApplyDocNo <> '' then begin SetRange("Document Type", ApplyDocType); SetRange("Document No.", ApplyDocNo); if FindFirst() then; - SetRange("Document Type"); - SetRange("Document No."); + ClearDocumentFilters(); end else if ApplyDocType <> 0 then begin SetRange("Document Type", ApplyDocType); @@ -1402,6 +1411,22 @@ table 21 "Cust. Ledger Entry" end; end; + procedure SetAppliesToDocFilters(var GenJnlLine: Record "Gen. Journal Line") + begin + SetRange("Document Type", GenJnlLine."Applies-to Doc. Type"); + SetRange("Document No.", GenJnlLine."Applies-to Doc. No."); + + OnAfterSetAppliesToDocFilters(Rec, GenJnlLine); + end; + + procedure ClearDocumentFilters() + begin + SetRange("Document Type"); + SetRange("Document No."); + + OnAfterClearDocumentFilters(Rec); + end; + /// /// Toggles the Amount to Apply field between the remaining amount and zero for the specified document. /// @@ -1475,6 +1500,7 @@ table 21 "Cust. Ledger Entry" "Payment Method Code" := GenJnlLine."Payment Method Code"; "Payment Reference" := GenJnlLine."Payment Reference"; "Exported to Payment File" := GenJnlLine."Exported to Payment File"; + "Payment Terms Code" := GenJnlLine."Payment Terms Code"; OnAfterCopyCustLedgerEntryFromGenJnlLine(Rec, GenJnlLine); end; @@ -1810,5 +1836,20 @@ table 21 "Cust. Ledger Entry" local procedure OnValidateMaxPaymentToleranceOnBeforeFieldError(var CustLedgerEntry: Record "Cust. Ledger Entry") begin end; + + [IntegrationEvent(false, false)] + local procedure OnAfterSetAppliesToDocFilters(var Rec: Record "Cust. Ledger Entry"; var GenJnlLine: Record "Gen. Journal Line") + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnAfterClearDocumentFilters(var Rec: Record "Cust. Ledger Entry") + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnSetApplyToFiltersOnBeforeSetFilters(var Rec: Record "Cust. Ledger Entry") + begin + end; } diff --git a/src/Layers/GB/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al b/src/Layers/GB/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al index 7cb1dac67d7..fc526a53ca1 100644 --- a/src/Layers/GB/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al +++ b/src/Layers/GB/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al @@ -17,6 +17,7 @@ using Microsoft.FixedAssets.FixedAsset; using Microsoft.Foundation.Attachment; using Microsoft.Foundation.AuditCodes; using Microsoft.Foundation.NoSeries; +using Microsoft.Foundation.PaymentTerms; using Microsoft.Intercompany.Partner; using Microsoft.Purchases.History; using Microsoft.Purchases.Remittance; @@ -580,6 +581,13 @@ table 25 "Vendor Ledger Entry" { Caption = 'Prepayment'; } + field(91; "Payment Terms Code"; Code[10]) + { + Caption = 'Payment Terms Code'; + Editable = false; + TableRelation = "Payment Terms"; + ToolTip = 'Specifies the payment terms that determine the due date and payment discount date for the entry.'; + } field(95; "G/L Register No."; Integer) { Caption = 'G/L Register No.'; @@ -975,6 +983,22 @@ table 25 "Vendor Ledger Entry" exit(''); end; + procedure SetAppliesToDocFilters(var GenJnlLine: Record "Gen. Journal Line") + begin + SetRange("Document Type", GenJnlLine."Applies-to Doc. Type"); + SetRange("Document No.", GenJnlLine."Applies-to Doc. No."); + + OnAfterSetAppliesToDocFilters(Rec, GenJnlLine); + end; + + procedure ClearDocumentFilters() + begin + SetRange("Document Type"); + SetRange("Document No."); + + OnAfterClearDocumentFilters(Rec); + end; + procedure CopyFromGenJnlLine(GenJnlLine: Record "Gen. Journal Line") begin "Vendor No." := GenJnlLine."Account No."; @@ -1016,6 +1040,7 @@ table 25 "Vendor Ledger Entry" "Creditor No." := GenJnlLine."Creditor No."; "Payment Reference" := GenJnlLine."Payment Reference"; "Payment Method Code" := GenJnlLine."Payment Method Code"; + "Payment Terms Code" := GenJnlLine."Payment Terms Code"; "Exported to Payment File" := GenJnlLine."Exported to Payment File"; if (GenJnlLine."Remit-to Code" <> '') then "Remit-to Code" := GenJnlLine."Remit-to Code"; @@ -1254,5 +1279,15 @@ table 25 "Vendor Ledger Entry" local procedure OnBeforeUpdateAmountsForApplication(var VendorLedgerEntry: Record "Vendor Ledger Entry"; ApplnDate: Date; ApplnCurrencyCode: Code[10]; RoundAmounts: Boolean; UpdateMaxPaymentTolerance: Boolean; var IsHandled: Boolean) begin end; + + [IntegrationEvent(false, false)] + local procedure OnAfterSetAppliesToDocFilters(var Rec: Record "Vendor Ledger Entry"; var GenJnlLine: Record "Gen. Journal Line") + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnAfterClearDocumentFilters(var Rec: Record "Vendor Ledger Entry") + begin + end; } diff --git a/src/Layers/GB/BaseApp/Purchases/Posting/PurchPost.Codeunit.al b/src/Layers/GB/BaseApp/Purchases/Posting/PurchPost.Codeunit.al index 3ee76260ac6..fa88ecf4fe3 100644 --- a/src/Layers/GB/BaseApp/Purchases/Posting/PurchPost.Codeunit.al +++ b/src/Layers/GB/BaseApp/Purchases/Posting/PurchPost.Codeunit.al @@ -72,7 +72,6 @@ using System.Telemetry; #endif using System.Utilities; - codeunit 90 "Purch.-Post" { Permissions = TableData "Sales Header" = rm, @@ -188,10 +187,7 @@ codeunit 90 "Purch.-Post" /// The purchase header of the document that is being posted. /// Accumulates drop-shipment buffer records during posting. /// Set to false during posting if any line is partially invoiced. - local procedure ProcessPosting( - var PurchHeader: Record "Purchase Header"; - var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; - var EverythingInvoiced: Boolean) + local procedure ProcessPosting(var PurchHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var EverythingInvoiced: Boolean) var IgnoreCommit: Boolean; begin @@ -332,6 +328,10 @@ codeunit 90 "Purch.-Post" OnRunOnBeforeMakeInventoryAdjustment(PurchHeader, GenJnlPostLine, ItemJnlPostLine, PreviewMode, PurchRcptHeader, PurchInvHeader, IsHandled); if not IsHandled then MakeInventoryAdjustment(); + + Clear(GenJnlPostLine); + + OnAfterProcessPostingLines(PurchHeader, TotalPurchLine, VendLedgEntry, InvoicePostingParameters, SuppressCommit, EverythingInvoiced, Window); end; var @@ -592,7 +592,7 @@ codeunit 90 "Purch.-Post" end; /// - /// Copies all the purchase lines to a temporary table, if they haven't been copied yet, to speed up later processing + /// Copies all the purchase lines to a temporary table, if they haven't been copied yet, to speed up later processing /// /// The purchase header of the document that is being posted. /// Return value: The temp table that holds a copy of all purchase lines. @@ -741,14 +741,14 @@ codeunit 90 "Purch.-Post" /// /// Checks if document header and lines are valid for posting, updates the document and lines and creates posted documents. /// Prepayment lines are created for documents that are invoiced. - /// Unposted document is archived + /// Unposted document is archived /// Check for over-receipt is performed /// /// /// Transaction is committed after updating the document header if posting is not in PreviewMode /// Several related tables are locked for update after this procedure. /// DocumentIsReadyToBeChecked is set to true, so that PrepareCheckDocument() is not called again in CheckPurchDocument(). Preparation already happened in RunWithCheck() (parent procedure). - /// + /// /// Return Value: The purchase header of the document that is being posted, returned with updated values. local procedure CheckAndUpdate(var PurchHeader: Record "Purchase Header") var @@ -858,6 +858,7 @@ codeunit 90 "Purch.-Post" begin if not DocumentIsReadyToBeChecked then PrepareCheckDocument(PurchHeader); + ErrorMessageMgt.PushContext(ErrorContextElement, PurchHeader.RecordId, 0, CheckPurchHeaderMsg); CheckMandatoryHeaderFields(PurchHeader); GetGLSetup(); @@ -2947,7 +2948,7 @@ codeunit 90 "Purch.-Post" /// Update Posting Date on an associated drop shipment Sales Order /// /// - /// Document Date is being retained after updating Posting Date + /// Document Date is being retained after updating Posting Date /// /// Drop Shipment Sales Order related to current purchase document /// New posting Date @@ -3716,7 +3717,7 @@ codeunit 90 "Purch.-Post" /// /// Collects the purchase lines for the specified Purchase Header and stores them in the PurchLine record set. - /// Collected lines will have the amounts divided by quantity the same way as they are divided during the posting process, depending on the selected QtyType. + /// Collected lines will have the amounts divided by quantity the same way as they are divided during the posting process, depending on the selected QtyType. /// /// /// Temporary/buffer table TempPurchLineGlobal is populated as part of the process @@ -3738,7 +3739,7 @@ codeunit 90 "Purch.-Post" /// Sums the purchase lines for the specified Purchase Header and stores the results in the NewTotalPurchLine and NewTotalPurchLineLCY record variables. /// The amounts will be divided by quantity the same way as they are divided during the posting process, depending on the selected QtyType. /// - /// + /// /// it always takes the lines for the specified Purchase Header (doesn't support a parameter for filtered or temp purchase lines). /// /// The Purchase Header of the document. @@ -3787,7 +3788,7 @@ codeunit 90 "Purch.-Post" /// /// Collects the purchase lines for the specified Purchase Header and stores them in the PurchLine record set. - /// Collected lines will have the amounts divided by quantity the same way as they are divided during the posting process, depending on the selected QtyType. + /// Collected lines will have the amounts divided by quantity the same way as they are divided during the posting process, depending on the selected QtyType. /// If Invoice Rounding functionality is enabled, rounding line is created /// /// The purchase header of the document that is being posted. @@ -4084,6 +4085,8 @@ codeunit 90 "Purch.-Post" if PurchaseHeader."Pay-to Contact No." <> '' then if Contact.Get(PurchaseHeader."Pay-to Contact No.") then Contact.CheckIfPrivacyBlocked(true); + + OnAfterCheckPostRestrictions(PurchaseHeader); end; local procedure CheckFAPostingPossibility(PurchaseHeader: Record "Purchase Header") @@ -5351,7 +5354,7 @@ codeunit 90 "Purch.-Post" if PurchHeader."Prices Including VAT" then PrepmtVATBaseToDeduct := Round( - (TotalPrepmtAmtToDeduct + PurchLine."Prepmt Amt to Deduct") / (1 + PurchLine."Prepayment VAT %" / 100), + (TotalPrepmtAmtToDeduct + PurchLine."Prepmt Amt to Deduct") / (1 + PurchLine.GetPrepaymentVATPct() / 100), Currency."Amount Rounding Precision") - Round( TotalPrepmtAmtToDeduct / (1 + PurchLine.GetPrepaymentVATPct() / 100), @@ -5937,7 +5940,7 @@ codeunit 90 "Purch.-Post" /// /// Only Purchase Orders and Purchase Return Orders can be archived /// Archiving must be enabled in Purchase Setup - /// When archiving purchase line associated with deferrals, deferral amounts are rounded + /// When archiving purchase line associated with deferrals, deferral amounts are rounded /// /// The purchase header of the document that is being posted. procedure ArchiveUnpostedOrder(var PurchHeader: Record "Purchase Header") @@ -8170,7 +8173,7 @@ codeunit 90 "Purch.-Post" if PurchInvHeader."No." = '' then exit; - // Do not change 'Order No.' if already set + // Do not change 'Order No.' if already set if PurchInvHeader."Order No." <> '' then exit; @@ -8248,7 +8251,7 @@ codeunit 90 "Purch.-Post" NoOfLinesWithShipmentNo: Integer; NoOfLinesWithParticularShipmentNo: Integer; begin - // Do not change 'Return Order No.' if already set + // Do not change 'Return Order No.' if already set if PurchCrMemoHdr."Return Order No." <> '' then exit; @@ -9001,169 +9004,404 @@ codeunit 90 "Purch.-Post" ItemsToAdjust.Add(Item2."No."); end; + /// + /// Event raised by OnArchiveSalesOrdersOnBeforeSalesOrderLineModify. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnArchiveSalesOrdersOnBeforeSalesOrderLineModify(var SalesOrderLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnAfterBlanketOrderPurchLineModify. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnAfterBlanketOrderPurchLineModify(var BlanketOrderPurchLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnAfterCheckPurchDoc. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the ErrorMessageMgt parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckPurchDoc(var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; WhseShip: Boolean; WhseReceive: Boolean; PreviewMode: Boolean; var ErrorMessageMgt: Codeunit "Error Message Management") begin end; + /// + /// Event raised by OnAfterCheckAndUpdate. + /// + /// + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckAndUpdate(var PurchaseHeader: Record "Purchase Header"; CommitIsSuppressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterCheckTrackingSpecification. + /// + /// + /// Specifies the TempItemPurchaseLine parameter. [IntegrationEvent(true, false)] local procedure OnAfterCheckTrackingSpecification(PurchaseHeader: Record "Purchase Header"; var TempItemPurchaseLine: Record "Purchase Line" temporary); begin end; + /// + /// Event raised by OnAfterCheckTrackingAndWarehouseForReceive. + /// + /// + /// Specifies the Receive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckTrackingAndWarehouseForReceive(var PurchaseHeader: Record "Purchase Header"; var Receive: Boolean; CommitIsSupressed: Boolean; var TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterCheckTrackingAndWarehouseForShip. + /// + /// + /// Specifies the Ship parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchaseLine parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckTrackingAndWarehouseForShip(var PurchaseHeader: Record "Purchase Header"; var Ship: Boolean; CommitIsSupressed: Boolean; var TempPurchaseLine: Record "Purchase Line" temporary; var TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary) begin end; + /// + /// Event raised by OnAfterCreateJobPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCreateJobPurchLine(var JobPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterCreateWhseJnlLine. + /// + /// + /// Specifies the TempWhseJnlLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCreateWhseJnlLine(PurchaseLine: Record "Purchase Line"; var TempWhseJnlLine: record "Warehouse Journal Line" temporary) begin end; + /// + /// Event raised by OnAfterDeleteAfterPosting. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterDeleteAfterPosting(PurchHeader: Record "Purchase Header"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterDeleteApprovalEntries. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchRcptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterDeleteApprovalEntries(var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; PurchRcptHeader: Record "Purch. Rcpt. Header") begin end; + /// + /// Event raised by OnAfterDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. [IntegrationEvent(false, false)] local procedure OnAfterDivideAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping; PurchLineQty: Decimal; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary) begin end; + /// + /// Event raised by OnAfterGetAmountRoundingPrecisionInLCY. + /// + /// + /// Specifies the DocNo parameter. + /// Specifies the CurrencyCode parameter. + /// Specifies the AmountRoundingPrecision parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetAmountRoundingPrecisionInLCY(DocType: Enum "Purchase Document Type"; DocNo: Code[20]; CurrencyCode: Code[10]; var AmountRoundingPrecision: Decimal) begin end; + /// + /// Event raised by OnAfterGetLineDataFromOrder. + /// + /// + /// Specifies the PurchOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetLineDataFromOrder(var PurchLine: Record "Purchase Line"; PurchOrderLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterGetPurchSetup. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterGetPurchSetup(var PurchSetup: Record "Purchases & Payables Setup") begin end; + /// + /// Event raised by OnAfterModifyTempLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterModifyTempLine(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostPurchaseDoc. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PurchRcpHdrNo parameter. + /// Specifies the RetShptHdrNo parameter. + /// Specifies the PurchInvHdrNo parameter. + /// Specifies the PurchCrMemoHdrNo parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] procedure OnAfterPostPurchaseDoc(var PurchaseHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PurchRcpHdrNo: Code[20]; RetShptHdrNo: Code[20]; PurchInvHdrNo: Code[20]; PurchCrMemoHdrNo: Code[20]; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterPostPurchaseDocDropShipment. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostPurchaseDocDropShipment(SalesShptNo: Code[20]; CommitIsSupressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterRetrieveInvoiceTrackingSpecificationIfExists. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. [IntegrationEvent(false, false)] local procedure OnAfterRetrieveInvoiceTrackingSpecificationIfExists(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TrackingSpecificationExists: Boolean) begin end; + /// + /// Event raised by OnAfterUpdatePostingNos. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePostingNos(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; PreviewMode: Boolean; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnAfterCheckMandatoryFields. + /// + /// + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckMandatoryFields(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterFinalizePosting. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterFinalizePosting(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShptHeader: Record "Return Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PreviewMode: Boolean; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterFinalizePostingOnBeforeCommit. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnAfterFinalizePostingOnBeforeCommit(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShptHeader: Record "Return Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PreviewMode: Boolean; CommitIsSupressed: Boolean; EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnAfterIncrAmount. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterIncrAmount(var TotalPurchLine: Record "Purchase Line"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterInitAssocItemJnlLine. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the QtyToBeShipped parameter. [IntegrationEvent(false, false)] local procedure OnAfterInitAssocItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; PurchaseHeader: Record "Purchase Header"; QtyToBeShipped: Decimal) begin end; + /// + /// Event raised by OnAfterInsertCombinedSalesShipment. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterInsertCombinedSalesShipment(var SalesShipmentHeader: Record "Sales Shipment Header") begin end; + /// + /// Event raised by OnAfterInsertPostedHeaders. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchSetup parameter. + /// Specifies the Window parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertPostedHeaders(var PurchaseHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShptHeader: Record "Return Shipment Header"; var PurchSetup: Record "Purchases & Payables Setup"; var Window: Dialog) begin end; + /// + /// Event raised by OnAfterInsertReceiptHeader. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertReceiptHeader(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var TempWhseRcptHeader: Record "Warehouse Receipt Header" temporary; WhseReceive: Boolean; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnAfterInsertReturnShipmentHeader. + /// + /// + /// Specifies the ReturnShptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertReturnShipmentHeader(var PurchHeader: Record "Purchase Header"; var ReturnShptHeader: Record "Return Shipment Header") begin end; + /// + /// Event raised by OnAfterInvoiceRoundingAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TotalPurchaseLine parameter. + /// Specifies the UseTempData parameter. + /// Specifies the InvoiceRoundingAmount parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the RoundingLineNo parameter. [IntegrationEvent(false, false)] local procedure OnAfterInvoiceRoundingAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TotalPurchaseLine: Record "Purchase Line"; UseTempData: Boolean; InvoiceRoundingAmount: Decimal; CommitIsSuppressed: Boolean; RoundingLineInserted: Boolean; RoundingLineNo: Integer) begin end; + /// + /// Event raised by OnAfterInsertedPrepmtVATBaseToDeduct. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PrepmtLineNo parameter. + /// Specifies the TotalPrepmtAmtToDeduct parameter. + /// Specifies the TempPrepmtDeductLCYPurchLine parameter. + /// Specifies the PrepmtVATBaseToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertedPrepmtVATBaseToDeduct(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; PrepmtLineNo: Integer; TotalPrepmtAmtToDeduct: Decimal; var TempPrepmtDeductLCYPurchLine: Record "Purchase Line" temporary; var PrepmtVATBaseToDeduct: Decimal) begin end; + /// + /// Event raised by OnAfterPostAssocItemJnlLine. + /// + /// + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the SalesLineOrder parameter. + /// Specifies the SalesOrderHeader parameter. + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostAssocItemJnlLine(var ItemJnlLine: Record "Item Journal Line"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var SalesLineOrder: Record "Sales Line"; var SalesOrderHeader: Record "Sales Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAfterPostCombineSalesOrderShipment. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostCombineSalesOrderShipment(var PurchaseHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin @@ -9176,275 +9414,680 @@ codeunit 90 "Purch.-Post" end; [Obsolete('Moved to codeunit MfgPurchPost', '27.0')] + /// + /// Event raised by OnAfterPostItemJnlLineCopyProdOrder. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLineCopyProdOrder(var ItemJnlLine: Record "Item Journal Line"; PurchLine: Record "Purchase Line"; PurchRcptHeader: Record "Purch. Rcpt. Header"; QtyToBeReceived: Decimal; CommitIsSupressed: Boolean; QtyToBeInvoiced: Decimal) begin end; #endif + /// + /// Event raised by OnAfterPostItemJnlLineItemCharges. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLineItemCharges(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerOrder. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerOrder(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemTrackingLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemTrackingLine(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnAfterPostUpdateCreditMemoLine. + /// + /// [IntegrationEvent(true, false)] local procedure OnAfterPostUpdateCreditMemoLine(var PurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPostUpdateInvoiceLine. + /// + /// [IntegrationEvent(true, false)] local procedure OnAfterPostUpdateInvoiceLine(var PurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPurchRcptHeaderInsert. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchRcptHeaderInsert(var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterPurchRcptLineInsert. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchRcptLineInsert(PurchaseLine: Record "Purchase Line"; var PurchRcptLine: Record "Purch. Rcpt. Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; PurchInvHeader: Record "Purch. Inv. Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; PurchRcptHeader: Record "Purch. Rcpt. Header"; TempWhseRcptHeader: Record "Warehouse Receipt Header"; xPurchLine: Record "Purchase Line"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPurchInvHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchInvHeaderInsert(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterPurchInvLineInsert. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchInvLineInsert(var PurchInvLine: Record "Purch. Inv. Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; PurchHeader: Record "Purchase Header"; PurchRcptHeader: Record "Purch. Rcpt. Header"; TempWhseRcptHeader: Record "Warehouse Receipt Header"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnAfterPurchCrMemoHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchCrMemoHeaderInsert(var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterPurchCrMemoLineInsert. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchCrMemoLineInsert(var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var PurchaseHeader: Record "Purchase Header"; GenJnlLineDocNo: Code[20]; RoundingLineInserted: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnAfterReturnShptHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterReturnShptHeaderInsert(var ReturnShptHeader: Record "Return Shipment Header"; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterReturnShptLineInsert. + /// + /// + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempWhseShptHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the xPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterReturnShptLineInsert(var ReturnShptLine: Record "Return Shipment Line"; ReturnShptHeader: Record "Return Shipment Header"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; var TempWhseShptHeader: Record "Warehouse Shipment Header" temporary; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; xPurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterRevertWarehouseEntry. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterRevertWarehouseEntry(var TempWhseJnlLine: Record "Warehouse Journal Line" temporary) begin end; + /// + /// Event raised by OnAfterSalesShptHeaderInsert. + /// + /// + /// Specifies the SalesOrderHeader parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterSalesShptHeaderInsert(var SalesShipmentHeader: Record "Sales Shipment Header"; SalesOrderHeader: Record "Sales Header"; CommitIsSuppressed: Boolean; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterSalesShptLineInsert. + /// + /// + /// Specifies the SalesShptHeader parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the DropShptPostBuffer parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnAfterSalesShptLineInsert(var SalesShptLine: Record "Sales Shipment Line"; SalesShptHeader: Record "Sales Shipment Header"; SalesOrderLine: Record "Sales Line"; CommitIsSuppressed: Boolean; DropShptPostBuffer: Record "Drop Shpt. Post. Buffer"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPostAccICLine. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostAccICLine(PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnAfterPostItemLine. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(true, false)] local procedure OnAfterPostItemLine(PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; PurchaseHeader: Record "Purchase Header"; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnAfterPostItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the WhseJnlRegisterLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseRcptHeader parameter. + /// Specifies the WhseShptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var WhseJnlRegisterLine: Codeunit "Whse. Jnl.-Register Line"; var WhseReceive: Boolean; var WhseShip: Boolean; var WhseRcptHeader: Record "Warehouse Receipt Header"; var WhseShptHeader: Record "Warehouse Shipment Header") begin end; + /// + /// Event raised by OnAfterPostWhseJnlLine. + /// + /// + /// Specifies the ItemLedgEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostWhseJnlLine(var PurchaseLine: Record "Purchase Line"; ItemLedgEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterPostUpdateOrderLine. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostUpdateOrderLine(var PurchaseLine: Record "Purchase Line"; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterPostInvoice. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the VendorLedgerEntry parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostInvoice(var PurchHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; TotalPurchLine: Record "Purchase Line"; TotalPurchLineLCY: Record "Purchase Line"; CommitIsSupressed: Boolean; var VendorLedgerEntry: Record "Vendor Ledger Entry") begin end; + /// + /// Event raised by OnAfterPostPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchInvLine parameter. + /// Specifies the PurchCrMemoLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLineACY parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostPurchLine(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var PurchInvLine: Record "Purch. Inv. Line"; var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchLineACY: Record "Purchase Line"; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; SrcCode: Code[10]; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterProcessPurchLines. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the PurchLinesProcessed parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnAfterProcessPurchLines(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShipmentHeader: Record "Return Shipment Header"; WhseShip: Boolean; WhseReceive: Boolean; var PurchLinesProcessed: Boolean; CommitIsSuppressed: Boolean; EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnAfterProcessAssocItemJnlLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnAfterProcessAssocItemJnlLine(var PurchLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnAfterReleasePurchDoc. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterReleasePurchDoc(var PurchHeader: Record "Purchase Header"); begin end; + /// + /// Event raised by OnAfterRefreshTempLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterRefreshTempLines(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterResetTempLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterResetTempLines(var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterRestorePurchaseHeader. + /// + /// + /// Specifies the PurchaseHeaderCopy parameter. [IntegrationEvent(false, false)] local procedure OnAfterRestorePurchaseHeader(var PurchaseHeader: Record "Purchase Header"; PurchaseHeaderCopy: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterReverseAmount. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterReverseAmount(var PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterRoundAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchLineQty parameter. [IntegrationEvent(false, false)] local procedure OnAfterRoundAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchLineQty: Decimal) begin end; + /// + /// Event raised by OnAfterSaveTempWhseSplitSpec. + /// + /// + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnAfterSaveTempWhseSplitSpec(PurchaseLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAfterSetPostingFlags. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterSetPostingFlags(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterTestPurchLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(false, false)] local procedure OnAfterTestPurchLine(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateInvoicedQtyOnPurchRcptLine. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoicedQtyOnPurchRcptLine(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchRcptLine: Record "Purch. Rcpt. Line"; var PurchaseLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; TrackingSpecificationExists: Boolean; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; var PurchaseHeader: Record "Purchase Header"; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateInvoicedQtyOnReturnShptLine. + /// + /// + /// Specifies the ReturnShipmentLine parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoicedQtyOnReturnShptLine(PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShipmentLine: Record "Return Shipment Line"; PurchaseLine: Record "Purchase Line"; TempTrackingSpecification: Record "Tracking Specification" temporary; TrackingSpecificationExists: Boolean; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnAfterUpdateLastPostingNos. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterUpdateLastPostingNos(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterUpdatePurchLineBeforePost. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the RoundingLineInserted parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePurchLineBeforePost(var PurchaseLine: Record "Purchase Line"; WhseShip: Boolean; WhseReceive: Boolean; PurchaseHeader: Record "Purchase Header"; RoundingLineInserted: Boolean) begin end; + /// + /// Event raised by OnAfterUpdatePrepmtPurchLineWithRounding. + /// + /// + /// Specifies the TotalRoundingAmount parameter. + /// Specifies the TotalPrepmtAmount parameter. + /// Specifies the FinalInvoice parameter. + /// Specifies the PricesInclVATRoundingAmount parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePrepmtPurchLineWithRounding(var PrepmtPurchLine: Record "Purchase Line"; TotalRoundingAmount: array[2] of Decimal; TotalPrepmtAmount: array[2] of Decimal; FinalInvoice: Boolean; PricesInclVATRoundingAmount: array[2] of Decimal; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterUpdatePurchaseHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePurchaseHeader(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; GenJnlLineDocType: Integer; GenJnlLineDocNo: Code[20]; PreviewMode: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterUpdatePurchLineDimSetIDFromAppliedEntry. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePurchLineDimSetIDFromAppliedEntry(var PurchLineToPost: Record "Purchase Line"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterValidatePostingAndDocumentDate. + /// + /// + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterValidatePostingAndDocumentDate(var PurchaseHeader: Record "Purchase Header"; CommitIsSuppressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnBeforeAddAssociatedOrderLineToBuffer. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAddAssociatedOrderLineToBuffer(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeModifyTempLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeModifyTempLine(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnModifyTempLineOnBeforeTransferFields. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnBeforeTransferFields(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeAdjustQuantityRoundingForReceipt. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustQuantityRoundingForReceipt(PurchRcptLine: Record "Purch. Rcpt. Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeArchiveUnpostedOrder. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the OrderArchived parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeArchiveUnpostedOrder(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; var OrderArchived: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnBeforeArchiveSalesOrders. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeArchiveSalesOrders(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeBlanketOrderPurchLineModify. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnBeforeBlanketOrderPurchLineModify(var BlanketOrderPurchLine: Record "Purchase Line"; PurchLine: Record "Purchase Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcInvoice. + /// + /// + /// Specifies the NewInvoice parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcInvoice(var PurchHeader: Record "Purchase Header"; var NewInvoice: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalculateAmountsInclVAT. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalculateAmountsInclVAT(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalculateInvoiceEverything. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the InvoiceEverything parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalculateInvoiceEverything(var TempPurchaseLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; var InvoiceEverything: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcLineAmountAndLineDiscountAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Currency parameter. [IntegrationEvent(true, false)] local procedure OnBeforeCalcLineAmountAndLineDiscountAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; PurchLineQty: Decimal; var IsHandled: Boolean; Currency: Record Currency) begin @@ -9452,163 +10095,379 @@ codeunit 90 "Purch.-Post" #if not CLEAN28 [Obsolete('This event is no longer used.', '28.0')] + /// + /// Event raised by OnBeforeCheckDropShipmentReceiveInvoice. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforeCheckDropShipmentReceiveInvoice(PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; #endif + /// + /// Event raised by OnBeforeCheckDocumentTotalAmounts. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforeCheckDocumentTotalAmounts(PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckExternalDocumentNumber. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the Handled parameter. + /// Specifies the DocType parameter. + /// Specifies the ExtDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckExternalDocumentNumber(VendorLedgerEntry: Record "Vendor Ledger Entry"; PurchaseHeader: Record "Purchase Header"; var Handled: Boolean; DocType: Option; ExtDocNo: Text[35]; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeCheckExtDocNo. + /// + /// + /// Specifies the DocumentType parameter. + /// Specifies the ExtDocNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckExtDocNo(PurchaseHeader: Record "Purchase Header"; DocumentType: Enum "Gen. Journal Document Type"; ExtDocNo: Text[35]; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckGLAccDirectPosting. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckGLAccDirectPosting(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckICDocumentDuplicatePosting. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckICDocumentDuplicatePosting(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckIfInvPutawayExists. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckIfInvPutawayExists(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckHeaderPostingType. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckHeaderPostingType(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckFieldsOnReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckFieldsOnReturnShipmentLine(var ReturnShipmentLine: Record "Return Shipment Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterCheckFieldsOnReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckFieldsOnReturnShipmentLine(ReturnShipmentLine: Record "Return Shipment Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeCheckPrepmtAmtToDeduct. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPrepmtAmtToDeduct(PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckPurchRcptLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckTrackingSpecification. + /// + /// + /// Specifies the TempItemPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckTrackingSpecification(PurchHeader: Record "Purchase Header"; var TempItemPurchLine: Record "Purchase Line" temporary); begin end; + /// + /// Event raised by OnBeforeCheckTrackingAndWarehouseForShip. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the Ship parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckTrackingAndWarehouseForShip(PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var Ship: Boolean; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeCheckWarehouse. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckWarehouse(var TempItemPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckWhseRcptLineQtyToReceive. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckWhseRcptLineQtyToReceive(var WhseRcptLine: Record "Warehouse Receipt Line"; var PurchRcptLine: Record "Purch. Rcpt. Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeClearRemAmt. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlRollRndg parameter. + /// Specifies the RemAmt parameter. + /// Specifies the RemDiscAmt parameter. [IntegrationEvent(false, false)] local procedure OnBeforeClearRemAmt(PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; ItemJnlRollRndg: Boolean; var RemAmt: Decimal; var RemDiscAmt: Decimal) begin end; + /// + /// Event raised by OnBeforeCreatePositiveEntry. + /// + /// + /// Specifies the JobNo parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePositiveEntry(var WarehouseJournalLine: Record "Warehouse Journal Line"; JobNo: Code[20]; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCreatePostedWhseRcptHeader. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedWhseRcptHeader(var PostedWhseReceiptHeader: Record "Posted Whse. Receipt Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeCreatePostedWhseShptHeader. + /// + /// + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedWhseShptHeader(var PostedWhseShipmentHeader: Record "Posted Whse. Shipment Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeCreatePostedWhseShptLine. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedWhseShptLine(PurchLine: Record "Purchase Line"; ReturnShptLine: Record "Return Shipment Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCreatePostedRcptLine. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedRcptLine(PurchLine: Record "Purchase Line"; ReturnShptLine: Record "Return Shipment Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCreateWhseLineFromReturnShptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreateWhseLineFromReturnShptLine(var ReturnShptLine: Record "Return Shipment Line"; PurchLine: Record "Purchase Line"; CostBaseAmount: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCommitAndUpdateAnalysisVeiw. + /// + /// + /// Specifies the SuppressCommit parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCommitAndUpdateAnalysisVeiw(InvtPickPutaway: Boolean; SuppressCommit: Boolean; PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCopyAndCheckItemChargeTempPurchLine. + /// + /// + /// Specifies the TempPrepmtPurchaseLine parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the IsHandled parameter. + /// Specifies the AssignError parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCopyAndCheckItemChargeTempPurchLine(PurchaseHeader: Record "Purchase Header"; var TempPrepmtPurchaseLine: Record "Purchase Line" temporary; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean; var AssignError: Boolean) begin end; + /// + /// Event raised by OnBeforeCreatePrepmtLines. + /// + /// + /// Specifies the TempPrepmtPurchaseLine parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePrepmtLines(PurchaseHeader: Record "Purchase Header"; var TempPrepmtPurchaseLine: Record "Purchase Line" temporary; CompleteFunctionality: Boolean; var IsHandled: Boolean; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeDeleteAfterPosting. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the SkipDelete parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDeleteAfterPosting(var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var SkipDelete: Boolean; CommitIsSupressed: Boolean; var TempPurchLine: Record "Purchase Line" temporary; var TempPurchLineGlobal: Record "Purchase Line" temporary; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnBeforeDeleteApprovalEntries. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDeleteApprovalEntries(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnBeforeDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDivideAmount(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping; var PurchLineQty: Decimal; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeFinalizePosting. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeFinalizePosting(var PurchaseHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var EverythingInvoiced: Boolean; CommitIsSupressed: Boolean; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnBeforeGetInvoicePostingSetup. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetInvoicePostingSetup(var InvoicePostingInterface: Interface "Invoice Posting"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInitAssocItemJnlLine. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInitAssocItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; PurchaseHeader: Record "Purchase Header") begin @@ -9616,97 +10475,265 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforeInvoiceRoundingAmount. + /// + /// + /// Specifies the TotalAmountIncludingVAT parameter. + /// Specifies the UseTempData parameter. + /// Specifies the InvoiceRoundingAmount parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInvoiceRoundingAmount(PurchHeader: Record "Purchase Header"; TotalAmountIncludingVAT: Decimal; UseTempData: Boolean; var InvoiceRoundingAmount: Decimal; CommitIsSupressed: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeInsertICGenJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ICGenJnlLineNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertICGenJnlLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var ICGenJnlLineNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertPostedHeaders. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertPostedHeaders(var PurchaseHeader: Record "Purchase Header"; var WarehouseReceiptHeader: Record "Warehouse Receipt Header"; var WarehouseShipmentHeader: Record "Warehouse Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var IsHandled: Boolean) begin end; - [IntegrationEvent(false, false)] + /// + /// Event raised by OnBeforeInsertRcptEntryRelation. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the TempTrackingSpecificationInv parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. + [IntegrationEvent(false, false)] local procedure OnBeforeInsertRcptEntryRelation(PurchaseLine: Record "Purchase Line"; var PurchRcptLine: Record "Purch. Rcpt. Line"; var TempHandlingSpecification: Record "Tracking Specification" temporary; TempTrackingSpecificationInv: Record "Tracking Specification" temporary; ItemLedgShptEntryNo: Integer; var Result: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertReceiptHeader. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReceiptHeader(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var IsHandled: Boolean; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertReceiptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReceiptLine(var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchLine: Record "Purchase Line"; var CostBaseAmount: Decimal; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeInsertReturnShipmentLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReturnShipmentLine(var ReturnShptHeader: Record "Return Shipment Header"; var PurchLine: Record "Purchase Line"; var CostBaseAmount: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertTrackingSpecification(PurchHeader: Record "Purchase Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeItemJnlPostLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. + /// Specifies the WhseReceiptHeader parameter. + /// Specifies the WhseShipmentHeader parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. [IntegrationEvent(true, false)] local procedure OnBeforeItemJnlPostLine(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; var IsHandled: Boolean; WhseReceiptHeader: Record "Warehouse Receipt Header"; WhseShipmentHeader: Record "Warehouse Shipment Header"; TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnBeforeIsEndLoopForShippedNotInvoiced. + /// + /// + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the ReturnShptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the PurchLine parameter. + /// Specifies the EndLoop parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeIsEndLoopForShippedNotInvoiced(RemQtyToBeInvoiced: Decimal; TrackingSpecificationExists: Boolean; var ReturnShptLine: Record "Return Shipment Line"; var InvoicingTrackingSpecification: Record "Tracking Specification"; PurchLine: Record "Purchase Line"; var EndLoop: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeIsEndLoopForReceivedNotInvoiced. + /// + /// + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PurchRcptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the PurchLine parameter. + /// Specifies the EndLoop parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeIsEndLoopForReceivedNotInvoiced(RemQtyToBeInvoiced: Decimal; TrackingSpecificationExists: Boolean; var PurchRcptLine: Record "Purch. Rcpt. Line"; var InvoicingTrackingSpecification: Record "Tracking Specification"; PurchLine: Record "Purchase Line"; var EndLoop: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeGetPurchRcptLineFromTrackingOrUpdateItemEntryRelation. + /// + /// + /// Specifies the TrackingSpecification parameter. + /// Specifies the ItemEntryRelation parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetPurchRcptLineFromTrackingOrUpdateItemEntryRelation(var PurchRcptLine: Record "Purch. Rcpt. Line"; var TrackingSpecification: Record "Tracking Specification"; var ItemEntryRelation: Record "Item Entry Relation"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeGetPurchLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeGetPurchLines(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeLockTables. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempPurchaseLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnBeforeLockTables(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSuppressed: Boolean; var IsHandled: Boolean; var TempPurchaseLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforePostLines. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostLines(var PurchLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSupressed: Boolean; var TempPurchLineGlobal: Record "Purchase Line" temporary; var TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary) begin end; + /// + /// Event raised by OnBeforePostDistributeItemCharge. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemLedgerEntry parameter. + /// Specifies the NonDistrQuantity parameter. + /// Specifies the NonDistrQtyToAssign parameter. + /// Specifies the NonDistrAmountToAssign parameter. + /// Specifies the Sign parameter. + /// Specifies the IndirectCostPct parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostDistributeItemCharge(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var TempItemLedgerEntry: Record "Item Ledger Entry"; NonDistrQuantity: Decimal; NonDistrQtyToAssign: Decimal; NonDistrAmountToAssign: Decimal; Sign: Decimal; IndirectCostPct: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostInvoice. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Window parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the InvoicePostingInterface parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostInvoice(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSupressed: Boolean; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var IsHandled: Boolean; var Window: Dialog; HideProgressWindow: Boolean; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line"; var InvoicePostingInterface: Interface "Invoice Posting"; var InvoicePostingParameters: Record "Invoice Posting Parameters"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnBeforePostGLAccICLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ICGenJnlLineNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostGLAccICLine(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ICGenJnlLineNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerSalesShpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerSalesShpt(var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin @@ -9719,98 +10746,245 @@ codeunit 90 "Purch.-Post" end; [Obsolete('Moved to codeunit MfgPurchPost', '27.0')] + /// + /// Event raised by OnBeforePostItemJnlLineCopyProdOrder. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemJnlLineCopyProdOrder(PurchLine: Record "Purchase Line"; var ItemJnlLine: Record "Item Journal Line"; QtyToBeReceived: Decimal; QtyToBeInvoiced: Decimal; CommitIsSupressed: Boolean; var IsHandled: Boolean) begin end; #endif + /// + /// Event raised by OnBeforePostPurchaseDoc. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostPurchaseDoc(var PurchaseHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSupressed: Boolean; var HideProgressWindow: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostCommitPurchaseDoc. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostCommitPurchaseDoc(var PurchaseHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PreviewMode: Boolean; var ModifyHeader: Boolean; var CommitIsSupressed: Boolean; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeProcessAssocItemJnlLine. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the SourceCode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeProcessAssocItemJnlLine(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary; ItemLedgShptEntryNo: Integer; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; SourceCode: Code[10]) begin end; + /// + /// Event raised by OnBeforePrepareCheckDocument. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforePrepareCheckDocument(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforePurchLineDeleteAll. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchLineDeleteAll(var PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforePurchRcptHeaderInsert. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchRcptHeaderInsert(var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseReceive: Boolean; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseShip: Boolean) begin end; + /// + /// Event raised by OnBeforePurchRcptLineInsert. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PostedWhseRcptLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemLedgShptEntryNo parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchRcptLineInsert(var PurchRcptLine: Record "Purch. Rcpt. Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean; PostedWhseRcptLine: Record "Posted Whse. Receipt Line"; var IsHandled: Boolean; ItemLedgShptEntryNo: Integer) begin end; + /// + /// Event raised by OnBeforePurchInvHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchInvHeaderInsert(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnBeforePurchInvLineInsert. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchInvLineInsert(var PurchInvLine: Record "Purch. Inv. Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePurchCrMemoHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchCrMemoHeaderInsert(var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnBeforePurchCrMemoLineInsert. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchCrMemoLineInsert(var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeReleasePurchDoc. + /// + /// + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeReleasePurchDoc(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean); begin end; + /// + /// Event raised by OnBeforeReturnShptHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(false, false)] local procedure OnBeforeReturnShptHeaderInsert(var ReturnShptHeader: Record "Return Shipment Header"; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseReceive: Boolean; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseShip: Boolean) begin end; + /// + /// Event raised by OnBeforeReturnShptLineInsert. + /// + /// + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeReturnShptLineInsert(var ReturnShptLine: Record "Return Shipment Line"; var ReturnShptHeader: Record "Return Shipment Header"; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnBeforeRoundAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchLineQty parameter. [IntegrationEvent(false, false)] local procedure OnBeforeRoundAmount(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchLineQty: Decimal) begin end; + /// + /// Event raised by OnBeforeSalesShptHeaderInsert. + /// + /// + /// Specifies the SalesOrderHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSalesShptHeaderInsert(var SalesShptHeader: Record "Sales Shipment Header"; SalesOrderHeader: Record "Sales Header"; CommitIsSupressed: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeSalesShptLineInsert. + /// + /// + /// Specifies the SalesShptHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the DropShptPostBuffer parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSalesShptLineInsert(var SalesShptLine: Record "Sales Shipment Line"; SalesShptHeader: Record "Sales Shipment Header"; SalesLine: Record "Sales Line"; CommitIsSupressed: Boolean; DropShptPostBuffer: Record "Drop Shpt. Post. Buffer"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSetCheckApplToItemEntry. + /// + /// + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSetCheckApplToItemEntry(var PurchaseLine: Record "Purchase Line"; var Result: Boolean; var IsHandled: Boolean; PurchaseHeader: Record "Purchase Header"; ItemJournalLine: Record "Item Journal Line") begin @@ -9818,6 +10992,17 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforePostCombineSalesOrderShipment. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostCombineSalesOrderShipment(var PurchaseHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesShipmentHeader: Record "Sales Shipment Header"; var ItemLedgShptEntryNo: Integer; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempHandlingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean) begin @@ -9825,241 +11010,616 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforePostItemJnlLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeReceivedBase parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the ItemChargeNo parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the Result parameter. + /// Specifies the WarehouseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLine(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var QtyToBeReceived: Decimal; var QtyToBeReceivedBase: Decimal; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; var ItemLedgShptEntryNo: Integer; var ItemChargeNo: Code[20]; var TrackingSpecification: Record "Tracking Specification"; CommitIsSupressed: Boolean; var IsHandled: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var Result: Integer; var WarehouseReceiptHeader: Record "Warehouse Receipt Header") begin end; + /// + /// Event raised by OnBeforePostItemJnlLineItemCharges. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLineItemCharges(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostAssocItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostAssocItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var SalesLine: Record "Sales Line"; CommitIsSupressed: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePostItemChargePerOrder. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the ItemChargePurchLine parameter. + /// Specifies the TempTrackingSpecificationChargeAssmt parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerOrder(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ItemJnlLine2: Record "Item Journal Line"; var ItemChargePurchLine: Record "Purchase Line"; var TempTrackingSpecificationChargeAssmt: Record "Tracking Specification" temporary; CommitIsSupressed: Boolean; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargeLineProcedure. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargeLineProcedure(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemLine(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; PurchRcptHeader: Record "Purch. Rcpt. Header"; var RemQtyToBeInvoiced: Decimal; var TempPurchLineGlobal: Record "Purchase Line" temporary; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var RemQtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemJnlLineJobConsumption. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the SourceCode parameter. + /// Specifies the PostJobConsumptionBeforePurch parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemJnlLineJobConsumption(var ItemJournalLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; SourceCode: Code[10]; var PostJobConsumptionBeforePurch: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTracking. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PreciseTotalChargeAmt parameter. + /// Specifies the PreciseTotalChargeAmtACY parameter. + /// Specifies the RoundedPrevTotalChargeAmt parameter. + /// Specifies the RoundedPrevTotalChargeAmtACY parameter. + /// Specifies the IsHandled parameter. + /// Specifies the RemQtyToBeInvoiced parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemTracking(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TrackingSpecificationExists: Boolean; var PreciseTotalChargeAmt: Decimal; var PreciseTotalChargeAmtACY: Decimal; var RoundedPrevTotalChargeAmt: Decimal; var RoundedPrevTotalChargeAmtACY: Decimal; var IsHandled: Boolean; RemQtyToBeInvoiced: Decimal) begin end; + /// + /// Event raised by OnBeforePostItemTrackingCheckReceipt. + /// + /// + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingCheckReceipt(PurchaseLine: Record "Purchase Line"; RemQtyToBeInvoiced: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingCheckShipment. + /// + /// + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingCheckShipment(PurchaseLine: Record "Purchase Line"; RemQtyToBeInvoiced: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForReceiptCondition. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the Condition parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForReceiptCondition(PurchaseLine: Record "Purchase Line"; PurchRcptLine: Record "Purch. Rcpt. Line"; var Condition: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingItemChargePerOrder. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the TempTrackingSpecificationChargeAssmtCorrect parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingItemChargePerOrder(var TempTrackingSpecificationChargeAssmt: Record "Tracking Specification" temporary; var IsHandled: Boolean; var ItemJnlLine2: Record "Item Journal Line"; var TempTrackingSpecificationChargeAssmtCorrect: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnBeforePostItemTrackingLineOnPostPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemTrackingLineOnPostPurchLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; TempTrackingSpecification: Record "Tracking Specification" temporary; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForShipmentCondition. + /// + /// + /// Specifies the ReturnShipmentLine parameter. + /// Specifies the Condition parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForShipmentCondition(PurchaseLine: Record "Purchase Line"; ReturnShipmentLine: Record "Return Shipment Line"; var Condition: Boolean) begin end; + /// + /// Event raised by OnBeforePostResourceLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the JobPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostResourceLine(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; SrcCode: Code[10]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocNo: Code[20]; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; JobPurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePostUpdateOrderLine. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PurchSetup parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateOrderLine(PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; CommitIsSuppressed: Boolean; PurchSetup: Record "Purchases & Payables Setup") begin end; + /// + /// Event raised by OnBeforePostUpdateOrderLineModifyTempLine. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateOrderLineModifyTempLine(var TempPurchaseLine: Record "Purchase Line" temporary; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSuppressed: Boolean; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeRevertWarehouseEntry. + /// + /// + /// Specifies the JobNo parameter. + /// Specifies the PostJobConsumption parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeRevertWarehouseEntry(var WarehouseJournalLine: Record "Warehouse Journal Line"; JobNo: Code[20]; PostJobConsumption: Boolean; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSendICDocument. + /// + /// + /// Specifies the ModifyHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSendICDocument(var PurchHeader: Record "Purchase Header"; var ModifyHeader: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSumPurchLines2. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the VATAmountLine parameter. + /// Specifies the InsertPurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforeSumPurchLines2(QtyType: Option; var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var VATAmountLine: Record "VAT Amount Line"; InsertPurchLine: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSumPurchLinesTemp. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeSumPurchLinesTemp(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeTempDropShptPostBufferInsert. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTempDropShptPostBufferInsert(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; PurchaseLine: Record "Purchase Line"; var ItemLedgShptEntryNo: Integer) begin end; + /// + /// Event raised by OnBeforeTempPrepmtPurchLineInsert. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTempPrepmtPurchLineInsert(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var TempPurchLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnBeforeTempPrepmtPurchLineModify. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTempPrepmtPurchLineModify(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var TempPurchLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnBeforeTransferReservToItemJnlLine. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the PurchLine parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the ApplySpecificItemTracking parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTransferReservToItemJnlLine(var SalesOrderLine: Record "Sales Line"; var ItemJnlLine: Record "Item Journal Line"; PurchLine: Record "Purchase Line"; QtyToBeShippedBase: Decimal; var ApplySpecificItemTracking: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateAssocOrder. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(true, false)] local procedure OnBeforeUpdateAssocOrder(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var IsHandled: Boolean; SuppressCommit: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the Receive parameter. + /// Specifies the Ship parameter. + /// Specifies the Invoice parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateBlanketOrderLine(PurchLine: Record "Purchase Line"; Receive: Boolean; Ship: Boolean; Invoice: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePostingNos. + /// + /// + /// Specifies the ModifyHeader parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the IsHandled parameter. + /// Specifies the DateOrderSeriesUsed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePostingNos(var PurchHeader: Record "Purchase Header"; var ModifyHeader: Boolean; SuppressCommit: Boolean; var IsHandled: Boolean; var DateOrderSeriesUsed: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePurchaseHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePurchaseHeader(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; GenJnlLineDocType: Option; var IsHandled: Boolean; var PurchaseHeader: Record "Purchase Header"; GenJnlLineDocNo: Code[20]; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePurchLineBeforePost. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePurchLineBeforePost(var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; WhseShip: Boolean; WhseReceive: Boolean; RoundingLineInserted: Boolean; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateInvoicedQtyOnPurchRcptLine. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateInvoicedQtyOnPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; CommitIsSupressed: Boolean; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeUpdatePrepmtPurchLineWithRounding. + /// + /// + /// Specifies the TotalRoundingAmount parameter. + /// Specifies the TotalPrepmtAmount parameter. + /// Specifies the FinalInvoice parameter. + /// Specifies the PricesInclVATRoundingAmount parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePrepmtPurchLineWithRounding(var PrepmtPurchLine: Record "Purchase Line"; TotalRoundingAmount: array[2] of Decimal; TotalPrepmtAmount: array[2] of Decimal; FinalInvoice: Boolean; PricesInclVATRoundingAmount: array[2] of Decimal; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeUpdateQtyToInvoiceForOrder. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToInvoiceForOrder(var PurchHeader: Record "Purchase Header"; TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateQtyToInvoiceForReturnOrder. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToInvoiceForReturnOrder(var PurchHeader: Record "Purchase Header"; TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateQtyToBeInvoicedForReceipt. + /// + /// + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToBeInvoicedForReceipt(var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; PurchLine: Record "Purchase Line"; PurchRcptLine: Record "Purch. Rcpt. Line"; InvoicingTrackingSpecification: Record "Tracking Specification"; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateQtyToBeInvoicedForReturnShipment. + /// + /// + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ReturnShipmentLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToBeInvoicedForReturnShipment(var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; PurchLine: Record "Purchase Line"; ReturnShipmentLine: Record "Return Shipment Line"; InvoicingTrackingSpecification: Record "Tracking Specification"; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateJobConsumptionReservationApplToItemEntry. + /// + /// + /// Specifies the ItemJournalLine parameter. + /// Specifies the IsNonInventoriableItem parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateJobConsumptionReservationApplToItemEntry(var TempReservEntryJobCons: Record "Reservation Entry" temporary; var ItemJournalLine: Record "Item Journal Line"; IsNonInventoriableItem: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLine. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLine(var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineFixedAsset. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineFixedAsset(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineItemCharge. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineItemCharge(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineJob. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineJob(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineOthers. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineOthers(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestStatusRelease. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestStatusRelease(PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateItemChargeAssgnt. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateItemChargeAssgnt(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateHandledICInboxTransaction. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateHandledICInboxTransaction(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeValidatePostingAndDocumentDate. + /// + /// + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeValidatePostingAndDocumentDate(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnSetPostingDateExists. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PostingDateExists parameter. + /// Specifies the ReplacePostingDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnSetPostingDateExists(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; var PostingDateExists: Boolean; var ReplacePostingDate: Boolean; var PostingDate: Date; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeWhseHandlingRequired. + /// + /// + /// Specifies the Required parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeWhseHandlingRequired(PurchaseLine: Record "Purchase Line"; var Required: Boolean; var IsHandled: Boolean) begin @@ -10067,62 +11627,140 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforeGetCountryCode. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the CountryRegionCode parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetCountryCode(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var CountryRegionCode: Code[10]; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeShouldPostWhseJnlLine. + /// + /// + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlLine parameter. + /// Specifies the TempWhseJnlLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeShouldPostWhseJnlLine(PurchLine: Record "Purchase Line"; var Result: Boolean; var IsHandled: Boolean; var ItemJnlLine: Record "Item Journal Line"; var TempWhseJnlLine: Record "Warehouse Journal Line" temporary; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnCalcInvDiscountSetFilter. + /// + /// + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvDiscountSetFilter(var PurchLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterClearPostingFromWhseRef. + /// + /// + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterClearPostingFromWhseRef(var PurchHeader: Record "Purchase Header"; var InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetPostingFlags. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetPostingFlags(var PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary); begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeSetPostingFlags. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeSetPostingFlags(var PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetSourceCode. + /// + /// + /// Specifies the SourceCodeSetup parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetSourceCode(var PurchHeader: Record "Purchase Header"; SourceCodeSetup: Record "Source Code Setup"; var SrcCode: Code[10]); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterArchiveUnpostedOrder. + /// + /// + /// Specifies the Currency parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterArchiveUnpostedOrder(var PurchHeader: Record "Purchase Header"; Currency: Record "Currency"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCalcInvDiscount. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the RefreshNeeded parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCalcInvDiscount(var PurchaseHeader: Record "Purchase Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseReceive: Boolean; WhseShip: Boolean; var RefreshNeeded: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateAssocOrderPostingDateOnBeforeValidateDocumentDate. + /// + /// + /// Specifies the OriginalDocumentDate parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateAssocOrderPostingDateOnBeforeValidateDocumentDate(var SalesHeader: Record "Sales Header"; var OriginalDocumentDate: Date) begin end; + /// + /// Event raised by OnCheckAssociatedOrderLinesOnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssociatedOrderLinesOnAfterSetFilters(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnCheckAssociatedOrderLinesOnAfterCheckDimensions. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssociatedOrderLinesOnAfterCheckDimensions(PurchaseHeader: Record "Purchase Header"; SalesHeader: Record "Sales Header"; var PurchaseLine: Record "Purchase Line"; TempSalesLine: Record "Sales Line" temporary) begin @@ -10130,72 +11768,146 @@ codeunit 90 "Purch.-Post" #if not CLEAN28 [Obsolete('This event is no longer used.', '28.0')] + /// + /// Event raised by OnCheckAssocOrderLinesOnBeforeCheckOrderLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssocOrderLinesOnBeforeCheckOrderLine(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; #endif + /// + /// Event raised by OnCheckExternalDocumentNumberOnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnCheckExternalDocumentNumberOnAfterSetFilters(var VendLedgEntry: Record "Vendor Ledger Entry"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForShipOnAfterTempPurchLineSetFilters. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForShipOnAfterTempPurchLineSetFilters(PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForReceiveOnAfterTempPurchLineSetFilters. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForReceiveOnAfterTempPurchLineSetFilters(PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCheckWarehouseOnAfterSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnCheckWarehouseOnAfterSetFilters(var TempItemPurchLine: Record "Purchase Line"); begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeLoop. + /// + /// + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeLoop(var TempPurchLine: Record "Purchase Line" temporary; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeCheckIfEmpty. + /// + /// [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeCheckIfEmpty(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCopyToTempLinesOnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnCopyToTempLinesOnAfterSetFilters(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterInitTempPrepmtPurchLineFromPurchHeader. + /// + /// [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterInitTempPrepmtPurchLineFromPurchHeader(var TempPrepmtPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterTempPurchLineSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterTempPurchLineSetFilters(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterTempPrepmtPurchLineSetFilters. + /// + /// + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterTempPrepmtPurchLineSetFilters(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnDivideAmountOnAfterClearAmounts. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterClearAmounts(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var PurchLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnAfterCalcLineAmountAndLineDiscountAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterCalcLineAmountAndLineDiscountAmount(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchaseLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineRemainderModify. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineRemainderModify(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency) begin @@ -10206,227 +11918,589 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnGetItemChargeLineOnAfterGet. + /// + /// + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnGetItemChargeLineOnAfterGet(var ItemChargePurchLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnGetPurchLinesOnAfterFillTempLines. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnGetPurchLinesOnAfterFillTempLines(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyType: Option; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnInsertICGenJnlLineOnAfterCopyDocumentFields. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempICGenJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertICGenJnlLineOnAfterCopyDocumentFields(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var TempICGenJournalLine: Record "Gen. Journal Line") begin end; + /// + /// Event raised by OnInsertAssocOrderChargeOnBeforeInsert. + /// + /// + /// Specifies the NewItemChargeAssignmentPurch parameter. [IntegrationEvent(false, false)] local procedure OnInsertAssocOrderChargeOnBeforeInsert(TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)"; var NewItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)") begin end; + /// + /// Event raised by OnInsertICGenJnlLineOnBeforeICGenJnlLineInsert. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnInsertICGenJnlLineOnBeforeICGenJnlLineInsert(var TempICGenJournalLine: Record "Gen. Journal Line" temporary; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnInsertReceiptLineOnAfterGetWhseRcptLine. + /// + /// + /// Specifies the PurchRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterGetWhseRcptLine(var WhseRcptLine: Record "Warehouse Receipt Line"; PurchRcptLine: Record "Purch. Rcpt. Line") begin end; + /// + /// Event raised by OnInsertReceiptLineOnAfterInitPurchRcptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the PostedWhseRcptHeader parameter. + /// Specifies the WhseRcptHeader parameter. + /// Specifies the WhseRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterInitPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; xPurchLine: Record "Purchase Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var CostBaseAmount: Decimal; PostedWhseRcptHeader: Record "Posted Whse. Receipt Header"; WhseRcptHeader: Record "Warehouse Receipt Header"; var WhseRcptLine: Record "Warehouse Receipt Line") begin end; + /// + /// Event raised by OnInsertReceiptLineOnAfterCalcShouldGetWhseRcptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PostedWhseRcptHeader parameter. + /// Specifies the WhseRcptHeader parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ShouldGetWhseRcptLine parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the PurchRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterCalcShouldGetWhseRcptLine(PurchRcptHeader: Record "Purch. Rcpt. Header"; PurchLine: Record "Purchase Line"; PostedWhseRcptHeader: Record "Posted Whse. Receipt Header"; WhseRcptHeader: Record "Warehouse Receipt Header"; CostBaseAmount: Decimal; WhseReceive: Boolean; WhseShip: Boolean; var ShouldGetWhseRcptLine: Boolean; xPurchLine: Record "Purchase Line"; var PurchRcptLine: Record "Purch. Rcpt. Line") begin end; + /// + /// Event raised by OnInsertReceiptLineOnAfterCalcShouldGetWhseShptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PostedWhseShptHeader parameter. + /// Specifies the WhseShptHeader parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ShouldGetWhseShptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterCalcShouldGetWhseShptLine(PurchRcptHeader: Record "Purch. Rcpt. Header"; PurchLine: Record "Purchase Line"; PostedWhseShptHeader: Record "Posted Whse. Shipment Header"; WhseShptHeader: Record "Warehouse Shipment Header"; CostBaseAmount: Decimal; WhseReceive: Boolean; WhseShip: Boolean; var ShouldGetWhseShptLine: Boolean) begin end; + /// + /// Event raised by OnInsertReturnShipmentLineOnAfterGetWhseShptLine. + /// + /// + /// Specifies the ReturnShptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReturnShipmentLineOnAfterGetWhseShptLine(var WhseShptLine: Record "Warehouse Shipment Line"; ReturnShptLine: Record "Return Shipment Line") begin end; + /// + /// Event raised by OnInsertReturnShipmentLineOnAfterReturnShptLineInit. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the PurchLine parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnInsertReturnShipmentLineOnAfterReturnShptLineInit(var ReturnShptHeader: Record "Return Shipment Header"; var ReturnShptLine: Record "Return Shipment Line"; var PurchLine: Record "Purchase Line"; var xPurchLine: Record "Purchase Line"; var CostBaseAmount: Decimal; WhseShip: Boolean; WhseReceive: Boolean); begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforePost. + /// + /// + /// Specifies the SalesOrderLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforePost(var ItemJournalLine: Record "Item Journal Line"; SalesOrderLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnAfterUpdateBlanketOrderLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the SalesOrderHeader parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the SrcCode parameter. + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnAfterUpdateBlanketOrderLine(var PurchaseHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer"; var SalesOrderLine: Record "Sales Line"; var SalesOrderHeader: record "Sales Header"; var SalesShptLine: record "Sales Shipment Line"; SalesShptHeader: Record "Sales Shipment Header"; SrcCode: Code[10]; Currency: Record Currency) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the SalesShptLine parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnBeforeUpdateBlanketOrderLine(var SalesOrderLine: Record "Sales Line"; SalesShptLine: Record "Sales Shipment Line") begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnAfterProcessDropShptPostBuffer. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnAfterProcessDropShptPostBuffer(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; PurchRcptHeader: Record "Purch. Rcpt. Header"; SalesShptLine: Record "Sales Shipment Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary); begin end; + /// + /// Event raised by OnPostDistributeItemChargeOnAfterCalcAmountToAssign. + /// + /// + /// Specifies the TempItemLedgerEntry parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the AmountToAssign parameter. + /// Specifies the Sign parameter. + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostDistributeItemChargeOnAfterCalcAmountToAssign(var PurchaseLine: Record "Purchase Line"; TempItemLedgerEntry: Record "Item Ledger Entry"; QtyToAssign: Decimal; AmountToAssign: Decimal; Sign: Decimal; Factor: Decimal) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterPostItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ItemChargeAssignmentPurch parameter. [IntegrationEvent(true, false)] local procedure OnPostItemChargeOnAfterPostItemJnlLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; ItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)") begin end; - [IntegrationEvent(true, false)] + /// + /// Event raised by OnPostItemChargeLineOnAfterPostItemCharge. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchaseLineBackup parameter. + /// Specifies the PurchLine parameter. + [IntegrationEvent(true, false)] local procedure OnPostItemChargeLineOnAfterPostItemCharge(var TempItemChargeAssgntPurch: record "Item Charge Assignment (Purch)" temporary; PurchHeader: Record "Purchase Header"; PurchaseLineBackup: Record "Purchase Line"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargeLineOnBeforePostItemCharge. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeLineOnBeforePostItemCharge(var TempItemChargeAssgntPurch: record "Item Charge Assignment (Purch)" temporary; PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var GenJnlLineDocNo: Code[20]) begin end; + /// + /// Event raised by OnPostItemChargeOnBeforePostItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the PurchInvHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnBeforePostItemJnlLine(var PurchaseLineToPost: Record "Purchase Line"; var PurchaseLine: Record "Purchase Line"; QtyToAssign: Decimal; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; PurchInvHeader: Record "Purch. Inv. Header") begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnAfterCopyToItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the GeneralLedgerSetup parameter. + /// Specifies the QtyToInvoice parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnAfterCopyToItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; GeneralLedgerSetup: Record "General Ledger Setup"; QtyToInvoice: Decimal; var TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ReturnRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ReturnRcptLine: Record "Return Receipt Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerSalesRetRcptOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerSalesRetRcptOnBeforeTestJobNo(ReturnReceiptLine: Record "Return Receipt Line"; var IsHandled: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerSalesShptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerSalesShptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var SalesShptLine: Record "Sales Shipment Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerSalesShptOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerSalesShptOnBeforeTestJobNo(SalesShipmentLine: Record "Sales Shipment Line"; var IsHandled: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerRetShptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ReturnShptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetShptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ReturnShptLine: Record "Return Shipment Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRetShptOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetShptOnBeforeTestJobNo(ReturnShipmentLine: Record "Return Shipment Line"; var IsHandled: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerRcptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRcptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var PurchRcptLine: record "Purch. Rcpt. Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRcptOnAfterPurchRcptLineGet. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRcptOnAfterPurchRcptLineGet(PurchRcptLine: Record "Purch. Rcpt. Line"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerTransferOnAfterInitPurchLine2. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerTransferOnAfterInitPurchLine2(TransferReceiptLine: Record "Transfer Receipt Line"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerTransferOnBeforePostItemJnlLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemApplnEntry parameter. + /// Specifies the TransferReceiptLine parameter. + /// Specifies the ItemChargeAssignmentPurch parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerTransferOnBeforePostItemJnlLine(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; ItemApplnEntry: Record "Item Application Entry"; TransferReceiptLine: Record "Transfer Receipt Line"; ItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)") begin end; + /// + /// Event raised by OnPostItemChargePerITTransferOnAfterCollectItemEntryRelation. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TransRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerITTransferOnAfterCollectItemEntryRelation(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; TransRcptLine: Record "Transfer Receipt Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnBeforeTempWhseJnlLine2Find. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnBeforeTempWhseJnlLine2Find(var TempWarehouseJournalLine2: Record "Warehouse Journal Line" temporary; PurchaseLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyDocumentFields. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; PurchRcptHeader: Record "Purch. Rcpt. Header"; GenJnlLineExtDocNo: Code[35]; QtyToBeInvoiced: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforePostItemJnlLineCopyDocumentFields. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforePostItemJnlLineCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; QtyToBeInvoiced: Decimal; QtyToBeReceived: Decimal; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterPostItemJnlLineJobConsumption. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the OriginalItemJnlLine parameter. + /// Specifies the TempReservationEntry parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the PostJobConsumptionBeforePurch parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the TempWhseTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterPostItemJnlLineJobConsumption(var ItemJournalLine: Record "Item Journal Line"; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; OriginalItemJnlLine: Record "Item Journal Line"; var TempReservationEntry: Record "Reservation Entry" temporary; var TrackingSpecification: Record "Tracking Specification" temporary; QtyToBeInvoiced: Decimal; QtyToBeReceived: Decimal; var PostJobConsumptionBeforePurch: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyItemCharge. + /// + /// + /// Specifies the TempItemChargeAssgntPurch parameter. [IntegrationEvent(true, false)] local procedure OnPostItemJnlLineOnAfterCopyItemCharge(var ItemJournalLine: Record "Item Journal Line"; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeCopyDocumentFields. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforePostWhseJnlLine. + /// + /// + /// Specifies the TempWhseJnlLine parameter. + /// Specifies the ItemJnlLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforePostWhseJnlLine(TempHandlingSpecification: Record "Tracking Specification"; var TempWhseJnlLine: Record "Warehouse Journal Line"; ItemJnlLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumptionOnBeforeRunItemJnlPostLineWithReservation. + /// + /// + /// Specifies the TempReservationEntry parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(true, false)] local procedure OnPostItemJnlLineJobConsumptionOnBeforeRunItemJnlPostLineWithReservation(var ItemJournalLine: Record "Item Journal Line"; var TempReservationEntry: Record "Reservation Entry" temporary; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumption. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemJournalLine parameter. + /// Specifies the TempPurchReservEntry parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the PurchItemLedgEntryNo parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineJobConsumption(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; ItemJournalLine: Record "Item Journal Line"; var TempPurchReservEntry: Record "Reservation Entry" temporary; QtyToBeInvoiced: Decimal; QtyToBeReceived: Decimal; var TempTrackingSpecification: Record "Tracking Specification" temporary; PurchItemLedgEntryNo: Integer; var IsHandled: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterSetFactor. + /// + /// + /// Specifies the Factor parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterSetFactor(var PurchaseLine: Record "Purchase Line"; var Factor: Decimal; var GenJnlLineExtDocNo: Code[35]; var ItemJournalLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterPrepareItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterPrepareItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; PreviewMode: Boolean; var GenJnlLineDocNo: code[20]; TrackingSpecification: Record "Tracking Specification"; QtyToBeReceived: Decimal; QtyToBeInvoiced: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnCopyProdOrder. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the SuppressCommit parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnCopyProdOrder(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; QtyToBeReceived: Decimal; QtyToBeInvoiced: Decimal; SuppressCommit: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumptionOnBeforeJobPost. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the SrcCode parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the IsHandled parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineJobConsumptionOnBeforeJobPost( var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; @@ -10435,191 +12509,471 @@ codeunit 90 "Purch.-Post" begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnAfterPostRevert. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnAfterPostRevert(var TempWhseJnlLine: Record "Warehouse Journal Line" temporary; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnBeforePostSingleLine. + /// + /// + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the TempWhseJnlLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnBeforePostSingleLine(WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean; var TempWhseJnlLine: Record "Warehouse Journal Line" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the QtyToBeReceivedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck(var ItemJnlLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; QtyToBeReceived: Decimal; WhseReceive: Boolean; var TempWhseRcptHeader: Record "Warehouse Receipt Header" temporary; QtyToBeReceivedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeItemJnlPostLineRunWithCheck. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the DropShipOrder parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeReceivedBase parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeItemJnlPostLineRunWithCheck(var ItemJnlLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; DropShipOrder: Boolean; PurchaseHeader: Record "Purchase Header"; WhseReceive: Boolean; QtyToBeReceived: Decimal; QtyToBeReceivedBase: Decimal; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeInitAmount. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeInitAmount(var ItemJnlLine: Record "Item Journal Line"; PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine(var ItemChargePurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemLineOnBeforePostShipReceive. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemLineOnBeforePostShipReceive(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforeReceiptInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforeReceiptInvoiceErr(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforePostItemTrackingForReceiptCondition. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforePostItemTrackingForReceiptCondition(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchRcptLine: Record "Purch. Rcpt. Line"; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnAfterPurchRcptLineTestFields. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnAfterPurchRcptLineTestFields(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnAfterPurchRcptLineSetFilters. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnAfterPurchRcptLineSetFilters(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeReturnShipmentInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeReturnShipmentInvoiceErr(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostPurchLineOnAfterSetEverythingInvoiced. + /// + /// + /// Specifies the EverythingInvoiced parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the AmountsOnly parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterSetEverythingInvoiced(var PurchaseLine: Record "Purchase Line"; var EverythingInvoiced: Boolean; PurchaseHeader: Record "Purchase Header"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; var AmountsOnly: Boolean) begin end; + /// + /// Event raised by OnPostPurchLineOnAfterPostByType. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterPostByType(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnAfterCollectPurchaseLineReservEntries. + /// + /// + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCollectPurchaseLineReservEntries(var JobReservationEntry: Record "Reservation Entry"; ItemJournalLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnAfterGetPurchOrderLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetPurchOrderLine(var PurchaseLineOrder: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; PurchRcptLine: Record "Purch. Rcpt. Line") begin end; + /// + /// Event raised by OnPostPurchLineOnBeforePostByType. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLine parameter. + /// Specifies the PurchLineACY parameter. + /// Specifies the Sourcecode parameter. [IntegrationEvent(true, false)] local procedure OnPostPurchLineOnBeforePostByType(PurchHeader: Record "Purchase Header"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; PurchLine: Record "Purchase Line"; PurchLineACY: Record "Purchase Line"; Sourcecode: Code[10]) begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertCrMemoLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchCrMemoLine parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeInsertCrMemoLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; xPurchaseLine: Record "Purchase Line"); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertInvoiceLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchInvLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeInsertInvoiceLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; var PurchInvLine: Record "Purch. Inv. Line"); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertReceiptLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(true, false)] local procedure OnPostPurchLineOnBeforeInsertReceiptLine(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; PurchRcptHeader: Record "Purch. Rcpt. Header"; RoundingLineInserted: Boolean; CostBaseAmount: Decimal; xPurchaseLine: Record "Purchase Line"; var ReturnShipmentHeader: Record "Return Shipment Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var ItemLedgShptEntryNo: Integer; SrcCode: Code[10]; PreviewMode: Boolean; var WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseReceive: Boolean; WhseShip: Boolean; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; GenJnlLineDocNo: Code[20]); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the PurchRcptHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeInsertReturnShipmentLine(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; ReturnShptHeader: Record "Return Shipment Header"; TempPurchLineGlobal: Record "Purchase Line"; RoundingLineInserted: Boolean; xPurchaseLine: Record "Purchase Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeRoundAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeRoundAmount(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnPostPurchLineOnTypeCaseElse. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the SourceCode parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnTypeCaseElse(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; SourceCode: Code[10]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary); begin end; + /// + /// Event raised by OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDoc. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDoc(var PurchInvLine: Record "Purch. Inv. Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDocCrMemo. + /// + /// + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDocCrMemo(var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnAfterPurchOrderLineModify. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the ReturnShptLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnAfterPurchOrderLineModify(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary; var ReturnShptLine: Record "Return Shipment Line") begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnAfterResetTempLines. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnAfterResetTempLines(var TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnBeforeInitQtyToInvoice(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterPurchOrderLineGet. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the PurchOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterPurchOrderLineGet(var TempPurchLine: Record "Purchase Line" temporary; PurchRcptLine: Record "Purch. Rcpt. Line"; PurchOrderLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterPurchOrderLineModify. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchOrderLine parameter. + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterPurchOrderLineModify(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary; var PurchOrderLine: Record "Purchase Line"; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeUpdateBlanketOrderLine(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitOutstanding(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitQtyToInvoice(var TempPurchaseLine: Record "Purchase Line" temporary; WhseShip: Boolean; WhseReceive: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeLoop. + /// + /// + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeLoop(PurchHeader: Record "Purchase Header"; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnPurchHeaderReceive. + /// + /// + /// Specifies the PurchRcptHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnPurchHeaderReceive(var TempPurchLine: Record "Purchase Line"; PurchRcptHeader: Record "Purch. Rcpt. Header") begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnSetDefaultQtyBlank. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchPost parameter. + /// Specifies the SetDefaultQtyBlank parameter. [IntegrationEvent(true, false)] local procedure OnPostUpdateOrderLineOnSetDefaultQtyBlank(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary; PurchPost: Record "Purchases & Payables Setup"; var SetDefaultQtyBlank: Boolean) begin @@ -10627,162 +12981,360 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnProcessAssocItemJnlLineOnAfterInitTempDropShptPostBuffer. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnProcessAssocItemJnlLineOnAfterInitTempDropShptPostBuffer(var PurchLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnReleasePurchDocumentOnBeforeSetStatus. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnReleasePurchDocumentOnBeforeSetStatus(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRoundAmountOnBeforeCalculateLCYAmounts. + /// + /// + /// Specifies the PurchLineACY parameter. + /// Specifies the PurchHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TotalPurchaseLine parameter. + /// Specifies the TotalPurchaseLineLCY parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnBeforeCalculateLCYAmounts(var xPurchLine: Record "Purchase Line"; var PurchLineACY: Record "Purchase Line"; PurchHeader: Record "Purchase Header"; var IsHandled: Boolean; TotalPurchaseLine: Record "Purchase Line"; TotalPurchaseLineLCY: Record "Purchase Line"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnRoundAmountOnBeforeIncrAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the CurrExchRate parameter. + /// Specifies the NoVAT parameter. + /// Specifies the IsHandled parameter. + /// Specifies the NonDeductibleVAT parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnBeforeIncrAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchLineQty: Decimal; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line"; var xPurchaseLine: Record "Purchase Line"; var CurrExchRate: Record "Currency Exchange Rate"; var NoVAT: Boolean; var IsHandled: Boolean; var NonDeductibleVAT: Codeunit "Non-Deductible VAT") begin end; + /// + /// Event raised by OnRunOnBeforeFinalizePosting. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeFinalizePosting(var PurchaseHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShipmentHeader: Record "Return Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforeMakeInventoryAdjustment. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeMakeInventoryAdjustment(var PurchaseHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; PreviewMode: Boolean; PurchRcptHeader: Record "Purch. Rcpt. Header"; PurchInvHeader: Record "Purch. Inv. Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumPurchLines2OnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnAfterSetFilters(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnSumPurchLines2OnAfterDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnAfterDivideAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping; PurchLineQty: Decimal; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary) begin end; + /// + /// Event raised by OnSumPurchLines2OnBeforeDivideAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyType parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnBeforeDivideAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping) begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterSalesOrderHeaderModify. + /// + /// + /// Specifies the SalesSetup parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterSalesOrderHeaderModify(var SalesOrderHeader: Record "Sales Header"; var SalesSetup: Record "Sales & Receivables Setup") begin end; + /// + /// Event raised by OnUpdateAssociatedSalesOrderOnBeforeClearTempDropShptPostBuffer. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateAssociatedSalesOrderOnBeforeClearTempDropShptPostBuffer(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer") begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterSalesOrderLineModify. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesOrderHeader parameter. + /// Specifies the SalesShptHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterSalesOrderLineModify(var SalesOrderLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesOrderHeader: Record "Sales Header"; SalesShptHeader: Record "Sales Shipment Header") begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterOrderNoClearFilter. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterOrderNoClearFilter(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnUpdateAssocOrderOnBeforeSalesOrderLineModify. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnBeforeSalesOrderLineModify(var SalesOrderLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheck. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheck(var BlanketOrderPurchLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeInitOutstanding(var BlanketOrderPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnAfterCheckBlanketOrderPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnAfterCheckBlanketOrderPurchLine(var BlanketOrderPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnUpdatePurchLineBeforePostOnAfterCalcInitQtyToInvoiceNeeded. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the InitQtyToInvoiceNeeded parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePurchLineBeforePostOnAfterCalcInitQtyToInvoiceNeeded(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var InitQtyToInvoiceNeeded: Boolean) begin end; + /// + /// Event raised by OnUpdateWhseDocumentsOnAfterUpdateWhseRcpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateWhseDocumentsOnAfterUpdateWhseRcpt(var WarehouseReceiptHeader: Record "Warehouse Receipt Header") begin end; + /// + /// Event raised by OnUpdateWhseDocumentsOnAfterUpdateWhseShpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateWhseDocumentsOnAfterUpdateWhseShpt(var WarehouseShipmentHeader: Record "Warehouse Shipment Header") begin end; + /// + /// Event raised by OnBeforeRunItemJnlPostLineWithReservation. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeRunItemJnlPostLineWithReservation(var ItemJournalLine: Record "Item Journal Line"); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterCopyAndCheckItemCharge. + /// + /// [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterCopyAndCheckItemCharge(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterCalcCopyAndCheckItemChargeNeeded. + /// + /// + /// Specifies the CopyAndCheckItemChargeNeeded parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterCalcCopyAndCheckItemChargeNeeded(var PurchHeader: Record "Purchase Header"; var CopyAndCheckItemChargeNeeded: Boolean) begin end; + /// + /// Event raised by OnUpdatePostingNosOnBeforeUpdatePostingNo. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnBeforeUpdatePostingNo(PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; var ModifyHeader: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdatePostingNosOnAfterCalcShouldUpdateReceivingNo. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the ShouldUpdateReceivingNo parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnAfterCalcShouldUpdateReceivingNo(PurchaseHeader: Record "Purchase Header"; PreviewMode: Boolean; var ModifyHeader: Boolean; var ShouldUpdateReceivingNo: Boolean) begin end; + /// + /// Event raised by OnCreatePositiveOnBeforeWhseJnlPostLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnCreatePositiveOnBeforeWhseJnlPostLine(var WhseJnlLine: Record "Warehouse Journal Line") begin end; + /// + /// Event raised by OnCreatePostedWhseShptLineOnBeforeCreatePostedShptLine. + /// + /// + /// Specifies the WarehouseShipmentLine parameter. + /// Specifies the PostedWhseShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnCreatePostedWhseShptLineOnBeforeCreatePostedShptLine(var ReturnShipmentLine: Record "Return Shipment Line"; var WarehouseShipmentLine: Record "Warehouse Shipment Line"; PostedWhseShipmentHeader: Record "Posted Whse. Shipment Header") begin end; + /// + /// Event raised by OnCreatePostedRcptLineOnBeforeCreatePostedRcptLine. + /// + /// + /// Specifies the WarehouseReceiptLine parameter. + /// Specifies the PostedWhseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnCreatePostedRcptLineOnBeforeCreatePostedRcptLine(var ReturnShipmentLine: Record "Return Shipment Line"; var WarehouseReceiptLine: Record "Warehouse Receipt Line"; PostedWhseReceiptHeader: Record "Posted Whse. Receipt Header") begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnBeforeTempTrackingSpecificationModify. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnBeforeTempTrackingSpecificationModify(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification. + /// + /// [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification(var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnBeforePostUpdateInvoiceLine. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateInvoiceLine(var TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean; var PurchaseHeader: Record "Purchase Header") begin @@ -10790,102 +13342,228 @@ codeunit 90 "Purch.-Post" #if not CLEAN28 [Obsolete('This event is no longer used.', '28.0')] + /// + /// Event raised by OnBeforeCheckAssociatedSalesOrderLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckAssociatedSalesOrderLine(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; #endif + /// + /// Event raised by OnBeforeCheckAssociatedOrderLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeCheckAssociatedOrderLines(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeCheckReceiveInvoiceShip. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckReceiveInvoiceShip(var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingItemChargePerOrderOnAfterCalcFactor. + /// + /// + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the TempTrackingSpecificationChargeAssmt parameter. + /// Specifies the SignFactor parameter. + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingItemChargePerOrderOnAfterCalcFactor(var NonDistrItemJnlLine: Record "Item Journal Line"; var ItemJnlLine2: Record "Item Journal Line"; var TempTrackingSpecificationChargeAssmt: Record "Tracking Specification"; SignFactor: Integer; Factor: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingItemChargePerOrderOnAfterUpdateItemJnlLine2LocationCode. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostItemTrackingItemChargePerOrderOnAfterUpdateItemJnlLine2LocationCode(var ItemJnlLine2: Record "Item Journal Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnAfterReturnShptLineReset. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnAfterReturnShptLineReset(var ReturnShptLine: Record "Return Shipment Line"; PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeSetItemEntryRelationForShipment. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeSetItemEntryRelationForShipment(var ItemEntryRelation: Record "Item Entry Relation"; var ReturnShptLine: Record "Return Shipment Line"; var InvoicingTrackingSpecification: Record "Tracking Specification"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding(ReturnShptLine: Record "Return Shipment Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnAfterFillTempLines. + /// + /// [IntegrationEvent(true, false)] local procedure OnRunOnAfterFillTempLines(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnRunOnAfterInvoiceRounding. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(true, false)] local procedure OnRunOnAfterInvoiceRounding(var PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnRunOnBeforeFillTempLines. + /// + /// + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(true, false)] local procedure OnRunOnBeforeFillTempLines(PreviewMode: Boolean; var GenJnlLineDocNo: Code[20]) begin end; + /// + /// Event raised by OnRunOnAfterPostPurchLine. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the ReturnShipmentHeader parameter. [IntegrationEvent(true, false)] local procedure OnRunOnAfterPostPurchLine(var TempPurchLineGlobal: Record "Purchase Line" temporary; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var ReturnShipmentHeader: Record "Return Shipment Header") begin end; + /// + /// Event raised by OnAfterCalcInvDiscount. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(true, false)] local procedure OnAfterCalcInvDiscount(PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostGLAccICLineOnBeforeCheckAndInsertICGenJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the ICGenJnlLineNo parameter. [IntegrationEvent(false, false)] local procedure OnPostGLAccICLineOnBeforeCheckAndInsertICGenJnlLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; ICGenJnlLineNo: Integer) begin end; + /// + /// Event raised by OnPostGLAccICLineOnAfterCreateJobPurchLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostGLAccICLineOnAfterCreateJobPurchLine(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostItemJnlLineTrackingOnBeforeTempHandlingSpecificationFind. + /// + /// + /// Specifies the TempHandlingSpecification parameter. [IntegrationEvent(true, false)] local procedure OnPostItemJnlLineTrackingOnBeforeTempHandlingSpecificationFind(PurchLine: Record "Purchase Line"; var TempHandlingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnFinalizePostingOnAfterUpdateItemChargeAssgnt. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the TempPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(true, false)] local procedure OnFinalizePostingOnAfterUpdateItemChargeAssgnt(var PurchHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var EverythingInvoiced: Boolean; var TempPurchLine: Record "Purchase Line" temporary; var TempPurchLineGlobal: Record "Purchase Line" temporary; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeInsertValueEntryRelation. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(true, false)] local procedure OnFinalizePostingOnBeforeInsertValueEntryRelation(var PurchHeader: Record "Purchase Header"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the TempPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(true, false)] local procedure OnFinalizePostingOnBeforeInsertTrackingSpecification(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; PurchHeader: Record "Purchase Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; EverythingInvoiced: Boolean; var TempPurchLine: Record "Purchase Line"; var TempPurchLineGlobal: Record "Purchase Line") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeUpdateWhseDocuments. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the WarehouseReceive parameter. + /// Specifies the WarehouseShip parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeUpdateWhseDocuments(var PurchaseHeader: Record "Purchase Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; WarehouseReceive: Boolean; WarehouseShip: Boolean; var IsHandled: Boolean) @@ -10895,660 +13573,1476 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnFinalizePostingOnBeforeCommit. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeCommit(PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertReceiptLineOnBeforeCreatePostedRcptLine. + /// + /// + /// Specifies the WarehouseReceiptLine parameter. + /// Specifies the PostedWhseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnBeforeCreatePostedRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var WarehouseReceiptLine: Record "Warehouse Receipt Line"; PostedWhseReceiptHeader: Record "Posted Whse. Receipt Header") begin end; + /// + /// Event raised by OnInsertReceiptLineOnBeforeCreatePostedShptLine. + /// + /// + /// Specifies the WarehouseShipmentLine parameter. + /// Specifies the PostedWhseShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnBeforeCreatePostedShptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var WarehouseShipmentLine: Record "Warehouse Shipment Line"; PostedWhseShipmentHeader: Record "Posted Whse. Shipment Header") begin end; + /// + /// Event raised by OnInsertReceiptLineOnBeforeProcessWhseShptRcpt. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the PurchRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnBeforeProcessWhseShptRcpt(var PurchLine: Record "Purchase Line"; var IsHandled: Boolean; var CostBaseAmount: Decimal; PurchRcptLine: Record "Purch. Rcpt. Line") begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeArchiveUnpostedOrder. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeArchiveUnpostedOrder(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterInsertPostedHeaders. + /// + /// [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterInsertPostedHeaders(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeReleaseSalesHeader. + /// + /// + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeReleaseSalesHeader(var PurchHeader: Record "Purchase Header"; var SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnAfterReleaseSalesHeader. + /// + /// + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnAfterReleaseSalesHeader(var PurchHeader: Record "Purchase Header"; var SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdatePostingNosOnAfterSetReturnShipmentNoFromNos. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnAfterSetReturnShipmentNoFromNos(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnUpdatePostingNosOnInvoiceOnBeforeSetPostingNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnInvoiceOnBeforeSetPostingNo(var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists. + /// + /// + /// Specifies the PostingDateExists parameter. + /// Specifies the ReplacePostingDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the VATDateExists parameter. + /// Specifies the ReplaceVATDate parameter. + /// Specifies the VATDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists(var PurchHeader: Record "Purchase Header"; var PostingDateExists: Boolean; var ReplacePostingDate: Boolean; var PostingDate: Date; var ReplaceDocumentDate: Boolean; var ModifyHeader: Boolean; var VATDateExists: Boolean; var ReplaceVATDate: Boolean; var VATDate: Date) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchaseLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchaseLine(PurchaseLine: Record "Purchase Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchRcptLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchRcptLine(PurchRcptLine: Record "Purch. Rcpt. Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnShipmentLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnShipmentLine(ReturnShipmentLine: Record "Return Shipment Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertReturnShipmentHeader. + /// + /// + /// Specifies the ReturnShptHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReturnShipmentHeader(var PurchHeader: Record "Purchase Header"; var ReturnShptHeader: Record "Return Shipment Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertInvoiceHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Window parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PurchCommentLine parameter. + /// Specifies the RecordLinkManagement parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertInvoiceHeader(var PurchHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var IsHandled: Boolean; var Window: Dialog; var HideProgressWindow: Boolean; var SrcCode: Code[10]; var PurchCommentLine: Record "Purch. Comment Line"; var RecordLinkManagement: Codeunit "Record Link Management") begin end; + /// + /// Event raised by OnBeforeInserCrMemoHeader. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the Window parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the PurchCommentLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInserCrMemoHeader(var PurchHeader: Record "Purchase Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var HideProgressWindow: Boolean; var Window: Dialog; var IsHandled: Boolean; SrcCode: Code[10]; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; var PurchCommentLine: Record "Purch. Comment Line") begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnBeforeCopyComments. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnBeforeCopyComments(var PurchHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesShptHeader: Record "Sales Shipment Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnBeforePostBalancingEntry. + /// + /// + /// Specifies the LineCount parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnBeforePostBalancingEntry(var PurchHeader: Record "Purchase Header"; var LineCount: Integer) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterReceive. + /// + /// + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterReceive(var PurchHeader: Record "Purchase Header"; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeUpdateAssosOrderPostingNos. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the DropShipment parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateAssosOrderPostingNos(var TempPurchLine: Record "Purchase Line" temporary; var PurchHeader: Record "Purchase Header"; var DropShipment: Boolean; var IsHandled: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeUpdateAfterPosting. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeUpdateAfterPosting(var PurchHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var EverythingInvoiced: Boolean; var IsHandled: Boolean; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforePurchOrderLineModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforePurchOrderLineModify(var PurchOrderLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePostPurchLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostPurchLine(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeFindTempPurchLine. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeFindTempPurchLine(var TempPurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"); begin end; + /// + /// Event raised by OnCalcInvoiceOnAfterResetTempLines. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the NewInvoice parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvoiceOnAfterResetTempLines(var PurchHeader: Record "Purchase Header"; var TempPurchLine: Record "Purchase Line" temporary; var NewInvoice: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnAfterPostInvoice. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the Window parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnRunOnAfterPostInvoice(var PurchaseHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var ReturnShipmentHeader: Record "Return Shipment Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PreviewMode: Boolean; var Window: Dialog; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnCopyToTempLinesLoop. + /// + /// [IntegrationEvent(false, false)] local procedure OnCopyToTempLinesLoop(var PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnRunOnBeforePostPurchLine. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforePostPurchLine(var PurchLine: Record "Purchase Line"; var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeValidateICPartnerBusPostingGroups. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeValidateICPartnerBusPostingGroups(var TempICGenJnlLine: Record "Gen. Journal Line" temporary; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterGetCurrency. + /// + /// + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetCurrency(CurrencyCode: Code[10]; var Currency: Record Currency) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterGetPurchPrepmtAccount. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterGetPurchPrepmtAccount(var GLAcc: Record "G/L Account"; var TempPurchaseLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeGetPurchPrepmtAccount. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the GenPostingSetup parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeGetPurchPrepmtAccount(var GLAcc: Record "G/L Account"; var TempPurchaseLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; var GenPostingSetup: Record "General Posting Setup"; CompleteFunctionality: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertReturnEntryRelation. + /// + /// + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReturnEntryRelation(var ReturnShptLine: Record "Return Shipment Line"; var Result: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestPurchLineOnBeforeTestFieldQtyToReceive. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnTestPurchLineOnBeforeTestFieldQtyToReceive(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestPurchLineOnBeforeTestFieldReturnQtyToShip. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnTestPurchLineOnBeforeTestFieldReturnQtyToShip(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnAfterCalcVATAmountLines. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TempVATAmountLine parameter. [IntegrationEvent(false, false)] local procedure OnRunOnAfterCalcVATAmountLines(var PurchaseHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var TempVATAmountLine: Record "VAT Amount Line" temporary) begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforeInitAssocItemJnlLine. + /// + /// + /// Specifies the ItemShptEntryNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforeInitAssocItemJnlLine(var SalesOrderLine: Record "Sales Line"; var ItemShptEntryNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingSpecificationOnBeforeGetItemTrackingSetup. + /// + /// + /// Specifies the ItemTrackingSetup parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingSpecificationOnBeforeGetItemTrackingSetup(var PurchaseLine: Record "Purchase Line"; var ItemTrackingSetup: Record "Item Tracking Setup"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcItemJnlLineToBeReceivedAmounts. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the RemAmt parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcItemJnlLineToBeReceivedAmounts(var ItemJnlLine: Record "Item Journal Line"; var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyToBeReceived: Decimal; var RemAmt: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforeExit. + /// + /// + /// Specifies the ItemShptEntryNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforeExit(SalesOrderHeader: Record "Sales Header"; var ItemShptEntryNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeCalcQty. + /// + /// + /// Specifies the PurchOrderLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeCalcQty(var TempPurchLine: Record "Purchase Line" temporary; var PurchOrderLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnBeforeInsertSalesShptHeader. + /// + /// + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnBeforeInsertSalesShptHeader(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterShouldCalcAmounts. + /// + /// + /// Specifies the ShouldCalcAmounts parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterShouldCalcAmounts(PurchHeader: Record "Purchase Header"; var ShouldCalcAmounts: Boolean; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeDivideAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnAfterUpdateSalesOrderLine. + /// + /// + /// Specifies the SalesOrderHeader parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the SalesShipmentLine parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnAfterUpdateSalesOrderLine(SalesShptHeader: Record "Sales Shipment Header"; SalesOrderHeader: Record "Sales Header"; var SalesOrderLine: Record "Sales Line"; SalesShipmentLine: Record "Sales Shipment Line") begin end; + /// + /// Event raised by OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckPosted. + /// + /// + /// Specifies the ShouldCheckPosted parameter. [IntegrationEvent(false, false)] local procedure OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckPosted(PurchHeader: Record "Purchase Header"; var ShouldCheckPosted: Boolean) begin end; + /// + /// Event raised by OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckUnposted. + /// + /// + /// Specifies the ShouldCheckUnposted parameter. [IntegrationEvent(false, false)] local procedure OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckUnposted(PurchHeader: Record "Purchase Header"; var ShouldCheckUnposted: Boolean) begin end; + /// + /// Event raised by OnAfterCopyToTempLines. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterCopyToTempLines(var TempPurchLine: Record "Purchase Line" temporary; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnBeforeTempPurchLineSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnBeforeTempPurchLineSetFilters(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForShipment. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForShipment(var PurchHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostGLAccICLineOnBeforeCreateJobPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostGLAccICLineOnBeforeCreateJobPurchLine(var PurchHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeIsItemChargeLineWithQuantityToInvoice. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeIsItemChargeLineWithQuantityToInvoice(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerRcpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRcpt(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterGetAppliedOutboundItemLedgEntryNo. + /// + /// + /// Specifies the ItemApplicationEntry parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetAppliedOutboundItemLedgEntryNo(var ItemJnlLine: Record "Item Journal Line"; var ItemApplicationEntry: Record "Item Application Entry") begin end; + /// + /// Event raised by OnAfterGetGeneralPostingSetup. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetGeneralPostingSetup(var GeneralPostingSetup: Record "General Posting Setup"; PurchLine: Record "Purchase Line"); begin end; + /// + /// Event raised by OnBeforeConfirmJobLineType. + /// + /// + /// Specifies the HideDialog parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeConfirmJobLineType(PurchLine: Record "Purchase Line"; var HideDialog: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeConfirmJobPlanningLineNo. + /// + /// + /// Specifies the HideDialog parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeConfirmJobPlanningLineNo(PurchLine: Record "Purchase Line"; var HideDialog: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldProcessShipment. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ShouldProcessShipment parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldProcessShipment(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ShouldProcessShipment: Boolean) begin end; + /// + /// Event raised by OnCheckItemReservDisruptionOnAfterInsertTempSKU. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckItemReservDisruptionOnAfterInsertTempSKU(var Item: Record Item; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterPostItemChargePerRetRcpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerRetRcpt(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerTransfer. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerTransfer(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerRetShpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerRetShpt(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerSalesShpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerSalesShpt(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnInsertInvoiceHeaderOnBeforeCopyLinks. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertInvoiceHeaderOnBeforeCopyLinks(var PurchHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeUpdateIncomingDocument. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeUpdateIncomingDocument(var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumptionOnAfterItemLedgEntrySetFilters. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineJobConsumptionOnAfterItemLedgEntrySetFilters(var ItemLedgEntry: Record "Item Ledger Entry"; var PurchLine: Record "Purchase Line"; var ItemJournalLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnTestPurchLineOnTypeCaseOnDocumentTypeCaseElse. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnTestPurchLineOnTypeCaseOnDocumentTypeCaseElse(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterDecrementPrepmtAmtInvLCY. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PrepmtAmountInvLCY parameter. + /// Specifies the PrepmtVATAmountInvLCY parameter. [IntegrationEvent(false, false)] local procedure OnAfterDecrementPrepmtAmtInvLCY(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var PrepmtAmountInvLCY: Decimal; var PrepmtVATAmountInvLCY: Decimal) begin end; #if not CLEAN27 + /// + /// Event raised by OnSetPostingPreviewDocumentNo. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnSetPostingPreviewDocumentNo(var PreviewDocumentNo: Code[20]) begin end; + /// + /// Event raised by OnGetPostingPreviewDocumentNos. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnGetPostingPreviewDocumentNos(var PreviewDocumentNos: List of [Code[20]]) begin end; #endif + /// + /// Event raised by OnInsertPostedHeadersOnAfterInvoice. + /// + /// + /// Specifies the GenJournalLine parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInvoice(var PurchaseHeader: Record "Purchase Header"; var GenJournalLine: Record "Gen. Journal Line"; var GenJnlLineDocType: Enum "Gen. Journal Document Type"; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterSumPurchLines2. + /// + /// + /// Specifies the OldPurchaseLine parameter. + /// Specifies the NewPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterSumPurchLines2(var PurchaseHeader: Record "Purchase Header"; var OldPurchaseLine: Record "Purchase Line"; var NewPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnTypeCaseElse. + /// + /// + /// Specifies the Sign parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnTypeCaseElse(var PurchaseLine: Record "Purchase Line"; var Sign: Decimal) begin end; + /// + /// Event raised by OnSumPurchLines2OnAfterIsRoundingLineInserted. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the OldPurchaseLine parameter. + /// Specifies the RoundingLineInserted parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnAfterIsRoundingLineInserted(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var OldPurchaseLine: Record "Purchase Line"; RoundingLineInserted: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckICPartnerBlocked. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckICPartnerBlocked(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnAfterPostLines. + /// + /// + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TotalAmount parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnAfterPostLines(var PurchaseHeader: Record "Purchase Header"; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line"; var TempPurchLineGlobal: Record "Purchase Line" temporary; TotalAmount: Decimal) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforePurchaseHeaderModify. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforePurchaseHeaderModify(var PurchaseHeader: Record "Purchase Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePurchLineDimSetIDFromAppliedEntry. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePurchLineDimSetIDFromAppliedEntry(var PurchaseLineToPost: Record "Purchase Line"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterDeleteItemChargeAssgnt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterDeleteItemChargeAssgnt(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforePostItemChargePerRetRcpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRetRcpt(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerITTransfer. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TransRcptLine parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerITTransfer(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; TransRcptLine: Record "Transfer Receipt Line"; var TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerRetShpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRetShpt(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeShouldTestGetReceiptPPmtAmtToDeduct. + /// + /// + /// Specifies the CompleteFunctionality parameter. + /// Specifies the ShouldTestGetReceiptPPmtAmtToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeShouldTestGetReceiptPPmtAmtToDeduct(PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean; var ShouldTestGetReceiptPPmtAmtToDeduct: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeAmountIncludingVATAmountRound. + /// + /// + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeAmountIncludingVATAmountRound(var PurchaseLine: Record "Purchase Line"; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeCalcAmountsForFullVAT. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeCalcAmountsForFullVAT(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckMandatoryFields. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckMandatoryFields(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckPostingDate. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPostingDate(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterInsertCrMemoHeader. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertCrMemoHeader(var PurchaseHeader: Record "Purchase Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnAfterInsertInvoiceHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertInvoiceHeader(var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header") begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeOnBeforeDoCommit. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeOnBeforeDoCommit(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnReleasePurchDocumentOnBeforeDoCommit. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnReleasePurchDocumentOnBeforeDoCommit(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateAssociatedSalesOrderBeforeInitOutstanding. + /// + /// + /// Specifies the SalesOrderLine parameter. + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssociatedSalesOrderBeforeInitOutstanding(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesOrderLine: Record "Sales Line"; SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnRunOnBeforePostInvoice. + /// + /// + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforePostInvoice(PurchaseHeader: Record "Purchase Header"; var EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnCheckPurchDocumentOnBeforeCheckPurchDim. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckPurchDocumentOnBeforeCheckPurchDim(var PurchaseHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnCalcInvDiscountOnBeforeDoCommit. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvDiscountOnBeforeDoCommit(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeSetReplaceDocumentDate. + /// + /// + /// Specifies the PostingDate parameter. + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeSetReplaceDocumentDate(var PurchaseHeader: Record "Purchase Header"; var PostingDate: Date; var ReplaceDocumentDate: Boolean; var ModifyHeader: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineGet. + /// + /// + /// Specifies the TempVATAmountLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineGet(PurchaseLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckFAPostingPossibility. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckFAPostingPossibility(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckPostRestrictions. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPostRestrictions(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeTestGeneralPostingGroups. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeTestGeneralPostingGroups(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeTestFieldBilltoCustomerNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeTestFieldBilltoCustomerNo(var SalesOrderHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnAfterCalcVATBaseAmount. + /// + /// [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterCalcVATBaseAmount(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeUpdateAfterPosting. + /// + /// + /// Specifies the SuppressCommit parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateAfterPosting(var PurchaseHeader: Record "Purchase Header"; SuppressCommit: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckAndUpdate. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckAndUpdate(var PurchaseHeader: Record "Purchase Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterCalcTotalChargeAmt. + /// + /// + /// Specifies the QtyToAssign parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnAfterCalcTotalChargeAmt(var PurchaseLineToPost: Record "Purchase Line"; QtyToAssign: Decimal; var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostPurchLineOnAfterInsertReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the TempPurchaseLineGlobal parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterInsertReturnShipmentLine(var PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; ReturnShptHeader: Record "Return Shipment Header"; TempPurchaseLineGlobal: Record "Purchase Line"; RoundingLineInserted: Boolean; xPurchaseLine: Record "Purchase Line"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."); begin end; + /// + /// Event raised by OnBeforeMakeInventoryAdjustment. + /// + /// [IntegrationEvent(false, false)] procedure OnBeforeMakeInventoryAdjustment(var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeCheckItemReservDisruption. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckItemReservDisruption(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterSetCheckApplToItemEntry. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterSetCheckApplToItemEntry(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheckBlanketOrderPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheckBlanketOrderPurchLine(var BlanketOrderPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeModifyInvoicedQtyOnPurchRcptLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeModifyInvoicedQtyOnPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeTestPostingDate. + /// + /// + /// Specifies the ReplacePostingDate parameter. + /// Specifies the SkipTestPostingDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeTestPostingDate(var PurchaseHeader: Record "Purchase Header"; ReplacePostingDate: Boolean; var SkipTestPostingDate: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckItemCharge. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckItemCharge(var ItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeProcedurePostAssocItemJnlLine. + /// + /// + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the ItemShptEntryNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeProcedurePostAssocItemJnlLine(var SalesOrderLine: Record "Sales Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempHandlingSpecification: Record "Tracking Specification" temporary; QtyToBeShipped: Decimal; QtyToBeShippedBase: Decimal; var ItemShptEntryNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostDistributeItemChargeOnAfterSetFactor. + /// + /// + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostDistributeItemChargeOnAfterSetFactor(TempItemLedgerEntry: Record "Item Ledger Entry"; var Factor: Decimal) begin end; + /// + /// Event raised by OnBeforeCalcItemJnlLineToBeInvoicedAmounts. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the RemAmt parameter. + /// Specifies the RemDiscAmt parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcItemJnlLineToBeInvoicedAmounts(var ItemJournalLine: Record "Item Journal Line"; var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; var RemAmt: Decimal; var RemDiscAmt: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemJnlLineWhseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the PostBefore parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLineWhseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary; PurchaseLine: Record "Purchase Line"; PostBefore: Boolean) begin end; + /// + /// Event raised by OnAfterPostItemJnlLineWhseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLineWhseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerTransferOnBeforeProcessItemApplicationEntry. + /// + /// + /// Specifies the ItemApplicationEntry parameter. + /// Specifies the TransferReceiptLine parameter. + /// Specifies the TotalAmountToPostFCY parameter. + /// Specifies the AmountToPostFCY parameter. + /// Specifies the GeneralLedgerSetup parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerTransferOnBeforeProcessItemApplicationEntry(PurchaseLine: Record "Purchase Line"; ItemApplicationEntry: Record "Item Application Entry"; TransferReceiptLine: Record "Transfer Receipt Line"; TotalAmountToPostFCY: Decimal; var AmountToPostFCY: Decimal; GeneralLedgerSetup: Record "General Ledger Setup"; PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemCharge. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ItemEntryNo parameter. + /// Specifies the QuantityBase parameter. + /// Specifies the AmountToAssign parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the IndirectCostPct parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemCharge(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; ItemEntryNo: Integer; QuantityBase: Decimal; AmountToAssign: Decimal; QtyToAssign: Decimal; IndirectCostPct: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertedPrepmtVATBaseToDeductOnAfterSetTempPrepmtDeductLCYPurchaseLine. + /// + /// + /// Specifies the PrepmtVATBaseToDeduct parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertedPrepmtVATBaseToDeductOnAfterSetTempPrepmtDeductLCYPurchaseLine(var TempPrepmtDeductLCYPurchaseLine: Record "Purchase Line" temporary; var PrepmtVATBaseToDeduct: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeAdjustPrepmtAmountLCY. + /// + /// + /// Specifies the PrepmtPurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustPrepmtAmountLCY(PurchaseHeader: Record "Purchase Header"; var PrepmtPurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeAdjustFinalInvWith100PctPrepmt. + /// + /// + /// Specifies the TempPrepmtDeductLCYPurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustFinalInvWith100PctPrepmt(var CombinedPurchaseLine: Record "Purchase Line"; var TempPrepmtDeductLCYPurchaseLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateInvoicedQtyOnReturnShipmentLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoicedQtyOnReturnShipmentLine(var ReturnShipmentLine: Record "Return Shipment Line") begin end; + /// + /// Event raised by OnAfterCheckPurchRcptLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckPurchRcptLine(PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnUpdateItemChargeAssgntOnBeforeItemChargeAssignmentPurchModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateItemChargeAssgntOnBeforeItemChargeAssignmentPurchModify(var ItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)") begin end; + /// + /// Event raised by OnBeforeUpdateReceiptInvoicingQuantities. + /// + /// + /// Specifies the SkipQuantityUpdate parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateReceiptInvoicingQuantities(PurchLine: Record "Purchase Line"; var SkipQuantityUpdate: Boolean) begin end; + /// + /// Event raised by OnSetCommitBehavior. + /// + /// [IntegrationEvent(false, false)] local procedure OnSetCommitBehavior(var IgnoreCommit: Boolean) begin end; + + /// + /// Event raised by OnAfterProcessPostingLines. + /// + /// + /// Specifies the TotalPurchLine parameter. + /// Specifies the VendLedgEntry parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the Window parameter. + [IntegrationEvent(false, false)] + local procedure OnAfterProcessPostingLines(var PurchHeader: Record "Purchase Header"; var TotalPurchLine: Record "Purchase Line"; var VendLedgEntry: Record "Vendor Ledger Entry"; InvoicePostingParameters: Record "Invoice Posting Parameters"; SuppressCommit: Boolean; EverythingInvoiced: Boolean; var Window: Dialog) + begin + end; + + /// + /// Event is raised after the CheckPostRestrictions function is executed + /// + /// The purchase header record that was checked for post restrictions. + [IntegrationEvent(false, false)] + local procedure OnAfterCheckPostRestrictions(var PurchaseHeader: Record "Purchase Header") + begin + end; } + diff --git a/src/Layers/GB/BaseApp/Sales/Posting/SalesPost.Codeunit.al b/src/Layers/GB/BaseApp/Sales/Posting/SalesPost.Codeunit.al index 43d0860331b..d20d64287ee 100644 --- a/src/Layers/GB/BaseApp/Sales/Posting/SalesPost.Codeunit.al +++ b/src/Layers/GB/BaseApp/Sales/Posting/SalesPost.Codeunit.al @@ -365,6 +365,8 @@ codeunit 80 "Sales-Post" ProcessPosting(SalesHeader, SalesHeader2, TempDropShptPostBuffer, CustLedgEntry, EverythingInvoiced); + Clear(GenJnlPostLine); + UpdateLastPostingNos(SalesHeader); OnRunOnBeforeFinalizePosting( @@ -557,6 +559,8 @@ codeunit 80 "Sales-Post" OnRunOnBeforeMakeInventoryAdjustment(SalesHeader, SalesInvHeader, GenJnlPostLine, ItemJnlPostLine, PreviewMode, SkipInventoryAdjustment); if not SkipInventoryAdjustment then MakeInventoryAdjustment(); + + OnAfterProcessPostingLines(SalesHeader, TotalSalesLine, CustLedgEntry, InvoicePostingParameters, SuppressCommit, EverythingInvoiced, Window, HideProgressWindow); end; /// @@ -4018,7 +4022,6 @@ codeunit 80 "Sales-Post" var IsHandled: Boolean; begin - if (CalledFromStatistics) and (not RoundingLineInserted) and (IsInvoiceRoundingLine(SalesHeader, SalesLine)) and (SalesLine."System-Created Entry") then exit; @@ -6292,6 +6295,8 @@ codeunit 80 "Sales-Post" if SalesHeader."Bill-to Contact No." <> '' then if Contact.Get(SalesHeader."Bill-to Contact No.") then Contact.CheckIfPrivacyBlocked(true); + + OnAfterCheckPostRestrictions(SalesHeader); end; local procedure CheckCustBlockage(SalesHeader: Record "Sales Header"; CustCode: Code[20]; ExecuteDocCheck: Boolean) @@ -9492,6 +9497,7 @@ codeunit 80 "Sales-Post" /// Indicates whether the item journal line should be posted. /// Indicates whether warehouse shipment is involved. /// The warehouse receipt header. + /// Specifies the WarehouseShipmentHeader parameter. [IntegrationEvent(true, false)] local procedure OnAfterPostItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var WhseJnlPostLine: Codeunit "Whse. Jnl.-Register Line"; OriginalItemJnlLine: Record "Item Journal Line"; var ItemShptEntryNo: Integer; IsATO: Boolean; var TempHandlingSpecification: Record "Tracking Specification"; var TempATOTrackingSpecification: Record "Tracking Specification"; TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; ShouldPostItemJnlLine: Boolean; WhseShip: Boolean; WhseRcptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header") begin @@ -12651,834 +12657,1960 @@ codeunit 80 "Sales-Post" begin end; + /// + /// Event raised by OnSumSalesLines2OnAfterDivideAmount. + /// + /// + /// Specifies the SalesLineQty parameter. + /// Specifies the QtyType parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnAfterDivideAmount(var OldSalesLine: Record "Sales Line"; var SalesLineQty: Decimal; QtyType: Option General,Invoicing,Shipping) begin end; + /// + /// Event raised by OnSumSalesLines2OnAfterCalcTotalAdjCostLCY. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnAfterCalcTotalAdjCostLCY(var TotalAdjCostLCY: decimal; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnSumSalesLines2OnBeforeCalcVATAmountLines. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the InsertSalesLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnBeforeCalcVATAmountLines(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; InsertSalesLine: Boolean; var TempVATAmountLine: Record "VAT Amount Line" temporary; QtyType: Option General,Invoicing,Shipping; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumSalesLines2OnBeforeNewSalesLineInsert. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnBeforeNewSalesLineInsert(var NewSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumSalesLines2SetFilter. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the InsertSalesLine parameter. + /// Specifies the QtyType parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2SetFilter(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; InsertSalesLine: Boolean; var QtyType: Option) begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnBeforePostTempWhseJnlLine2. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnBeforePostTempWhseJnlLine2(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterTestUpdatedSalesLine. + /// + /// + /// Specifies the EverythingInvoiced parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterTestUpdatedSalesLine(var SalesLine: Record "Sales Line"; var EverythingInvoiced: Boolean; SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineBeforeInitQtyToInvoice. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineBeforeInitQtyToInvoice(var TempSalesLine: Record "Sales Line" temporary; WhseShip: Boolean; WhseReceive: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitOutstanding(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitTempSalesLineQuantities. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitTempSalesLineQuantities(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterUpdateInvoicedValues. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterUpdateInvoicedValues(var TempSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; TempSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; TempSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterInsertSalesOrderHeader. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterInsertSalesOrderHeader(var SalesOrderLine: Record "Sales Line"; TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; WhseShip: Boolean; WhseReceive: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeUpdateInvoicedValues. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeUpdateInvoicedValues(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnSetDefaultQtyBlank. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesSetup parameter. + /// Specifies the SetDefaultQtyBlank parameter. [IntegrationEvent(true, false)] local procedure OnPostUpdateOrderLineOnSetDefaultQtyBlank(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; SalesSetup: Record "Sales & Receivables Setup"; var SetDefaultQtyBlank: Boolean) begin end; + /// + /// Event raised by OnCalcInvoiceOnAfterTempSalesLineSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvoiceOnAfterTempSalesLineSetFilters(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterCalcInvDiscount. + /// + /// + /// Specifies the TempWhseShptHeader parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterCalcInvDiscount(SalesHeader: Record "Sales Header"; TempWhseShptHeader: Record "Warehouse Shipment Header" temporary; PreviewMode: Boolean; var TempSalesLineGlobal: Record "Sales Line" temporary; SuppressCommit: Boolean; WhseReceive: Boolean; WhseShip: Boolean); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterReleaseSalesDocument. + /// + /// + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterReleaseSalesDocument(SalesHeader: Record "Sales Header"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeSetPostingFlags. + /// + /// + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the HideProgressWindow parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnBeforeSetPostingFlags(var SalesHeader: Record "Sales Header"; var TempSalesLineGlobal: Record "Sales Line" temporary; var ModifyHeader: Boolean; var HideProgressWindow: Boolean); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetPostingFlags. + /// + /// + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the ModifyHeader parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterSetPostingFlags(var SalesHeader: Record "Sales Header"; var TempSalesLineGlobal: Record "Sales Line" temporary; var ModifyHeader: Boolean); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetSourceCode. + /// + /// + /// Specifies the SourceCodeSetup parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetSourceCode(var SalesHeader: Record "Sales Header"; SourceCodeSetup: Record "Source Code Setup"; var SrcCode: Code[10]); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetPoszingFromWhseRef. + /// + /// + /// Specifies the InvtPickPutaway parameter. + /// Specifies the PostingFromWhseRef parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetPoszingFromWhseRef(var SalesHeader: Record "Sales Header"; var InvtPickPutaway: Boolean; var PostingFromWhseRef: Integer); begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCalcInvDiscount. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the RefreshNeeded parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCalcInvDiscount(var SalesHeader: Record "Sales Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseReceive: Boolean; WhseShip: Boolean; var RefreshNeeded: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCheckPostRestrictions. + /// + /// + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCheckPostRestrictions(var SalesHeader: Record "Sales Header"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnCheckAssosOrderLinesOnAfterSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssosOrderLinesOnAfterSetFilters(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnCheckSalesDocumentOnAfterCalcShouldCheckItemCharge. + /// + /// + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ShouldCheckItemCharge parameter. + /// Specifies the ModifyHeader parameter. [IntegrationEvent(true, false)] local procedure OnCheckSalesDocumentOnAfterCalcShouldCheckItemCharge(var SalesHeader: Record "Sales Header"; WhseReceive: Boolean; WhseShip: Boolean; var ShouldCheckItemCharge: Boolean; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForShipOnBeforeCheck. + /// + /// + /// Specifies the TempWhseShipmentHeader parameter. + /// Specifies the TempWhseReceiptHeader parameter. + /// Specifies the Ship parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForShipOnBeforeCheck(var SalesHeader: Record "Sales Header"; var TempWhseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWhseReceiptHeader: Record "Warehouse Receipt Header" temporary; var Ship: Boolean; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForReceiveOnBeforeCheck. + /// + /// + /// Specifies the TempWhseShipmentHeader parameter. + /// Specifies the TempWhseReceiptHeader parameter. + /// Specifies the Receive parameter. [IntegrationEvent(true, false)] local procedure OnCheckTrackingAndWarehouseForReceiveOnBeforeCheck(var SalesHeader: Record "Sales Header"; var TempWhseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWhseReceiptHeader: Record "Warehouse Receipt Header" temporary; var Receive: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingSpecificationOnAfterTempItemSalesLineLoop. + /// + /// [IntegrationEvent(false, false)] local procedure OnCheckTrackingSpecificationOnAfterTempItemSalesLineLoop(var TempItemSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckCustBlockageOnAfterTempLinesSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckCustBlockageOnAfterTempLinesSetFilters(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary); begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterTempPrepmtSalesLineSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterTempPrepmtSalesLineSetFilters(var TempPrepmtSalesLine: Record "Sales Line" temporary; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterGetSalesPrepmtAccount. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterGetSalesPrepmtAccount(var GLAcc: Record "G/L Account"; var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeGetSalesPrepmtAccount. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the GenPostingSetup parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeGetSalesPrepmtAccount(var GLAcc: Record "G/L Account"; var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header"; var GenPostingSetup: Record "General Posting Setup"; CompleteFunctionality: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterTempSalesLineSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempPrepmtSalesLine parameter. + /// Specifies the NextLineNo parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterTempSalesLineSetFilters(var TempSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempPrepmtSalesLine: Record "Sales Line" temporary; var NextLineNo: Integer) begin end; + /// + /// Event raised by OnFinalizePostingOnAfterUpdateItemChargeAssgnt. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnAfterUpdateItemChargeAssgnt(var SalesHeader: Record "Sales Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the TempItemChargeAssignmentSales parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the TempSalesLine parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the SalesPost parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeInsertTrackingSpecification(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)" temporary; SalesHeader: Record "Sales Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; EverythingInvoiced: Boolean; var TempSalesLine: Record "Sales Line" temporary; var TempSalesLineGlobal: Record "Sales Line" temporary; SalesPost: Codeunit "Sales-Post") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeCreateOutboxSalesTrans. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeCreateOutboxSalesTrans(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; EverythingInvoiced: Boolean; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeDeleteApprovalEntries. + /// + /// + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeDeleteApprovalEntries(var SalesHeader: Record "Sales Header"; var EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeGenJnlPostPreviewThrowError. + /// + /// + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeGenJnlPostPreviewThrowError(SalesHeader: Record "Sales Header"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforePost. + /// + /// + /// Specifies the PurchOrderLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforePost(var ItemJournalLine: Record "Item Journal Line"; PurchOrderLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostATOOnBeforePostedATOLinkInsert. + /// + /// + /// Specifies the AssemblyHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostATOOnBeforePostedATOLinkInsert(var PostedATOLink: Record "Posted Assemble-to-Order Link"; var AssemblyHeader: Record "Assembly Header"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostATOAssocItemJnlLineOnBeforeRemainingPost. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the PostedATOLink parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the ItemLedgShptEntryNo parameter. [IntegrationEvent(false, false)] local procedure OnPostATOAssocItemJnlLineOnBeforeRemainingPost(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var PostedATOLink: Record "Posted Assemble-to-Order Link"; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal; var ItemLedgShptEntryNo: Integer) begin end; + /// + /// Event raised by OnPostDropOrderShipmentOnAfterUpdateBlanketOrderLine. + /// + /// + /// Specifies the PurchOrderLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostDropOrderShipmentOnAfterUpdateBlanketOrderLine(PurchOrderHeader: Record "Purchase Header"; PurchOrderLine: Record "Purchase Line"; TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesShptHeader: Record "Sales Shipment Header"; SalesHeader: Record "Sales Header"; PurchRcptHeader: Record "Purch. Rcpt. Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyDocumentFields. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header") begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCalcShouldPostItemJnlLineItemCharges. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the ShouldPostItemJnlLineItemCharges parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCalcShouldPostItemJnlLineItemCharges(SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var ShouldPostItemJnlLineItemCharges: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterPrepareItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the RemAmt parameter. + /// Specifies the RemDiscAmt parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterPrepareItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; WhseShip: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var QtyToBeShipped: Decimal; TrackingSpecification: Record "Tracking Specification"; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; var QtyToBeShippedBase: Decimal; var RemAmt: Decimal; var RemDiscAmt: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyItemCharge. + /// + /// + /// Specifies the TempItemChargeAssgntSales parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyItemCharge(var ItemJournalLine: Record "Item Journal Line"; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeIsJobContactLineCheck. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the ShouldPostItemJnlLine parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the QtyToBeShipped parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeIsJobContactLineCheck(var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var ShouldPostItemJnlLine: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; QtyToBeShipped: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck(var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforePostItemJnlLineWhseLine. + /// + /// + /// Specifies the TempWhseJnlLine parameter. + /// Specifies the TempWhseTrackingSpecification parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforePostItemJnlLineWhseLine(var ItemJnlLine: Record "Item Journal Line"; var TempWhseJnlLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeTransferReservToItemJnlLine. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the CheckApplFromItemEntry parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeShippedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeTransferReservToItemJnlLine(SalesLine: Record "Sales Line"; ItemJnlLine: Record "Item Journal Line"; var CheckApplFromItemEntry: Boolean; var TrackingSpecification: Record "Tracking Specification"; QtyToBeShippedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeCopyTrackingFromSpec. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeCopyTrackingFromSpec(TrackingSpecification: Record "Tracking Specification"; var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; IsATO: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine(var ItemChargeSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemJnlLinePrepareJournalLineOnBeforeCalcItemJnlAmounts. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLinePrepareJournalLineOnBeforeCalcItemJnlAmounts(var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; IsATO: Boolean) begin end; + /// + /// Event raised by OnPostItemChargeOnBeforePostItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the TempItemChargeAssgntSales parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnBeforePostItemJnlLine(var SalesLineToPost: Record "Sales Line"; var SalesLine: Record "Sales Line"; QtyToAssign: Decimal; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnAfterCopyToItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the GeneralLedgerSetup parameter. + /// Specifies the QtyToInvoice parameter. + /// Specifies the TempItemChargeAssignmentSales parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnAfterCopyToItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var SalesLine: Record "Sales Line"; GeneralLedgerSetup: Record "General Ledger Setup"; QtyToInvoice: Decimal; var TempItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)" temporary) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnAfterTempTrackingSpecificationInvSetFilters. + /// + /// + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the TempTrackingSpecificationInv parameter. + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the TotalSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnAfterTempTrackingSpecificationInvSetFilters(SalesHeader: record "Sales Header"; var ItemJnlLine2: record "Item Journal Line"; var TempTrackingSpecificationInv: Record "Tracking Specification" temporary; SalesLine: Record "Sales Line"; var IsHandled: Boolean; var TotalSalesLineLCY: Record "Sales Line"; var TotalSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnBeforeTestJobNo. + /// + /// + /// Specifies the SkipTestJobNo parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnBeforeTestJobNo(SalesLine: Record "Sales Line"; var SkipTestJobNo: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnBeforeLastRunWithCheck. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnBeforeLastRunWithCheck(NonDistrItemJnlLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnBeforeRunWithCheck. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnBeforeRunWithCheck(ItemJnlLine2: Record "Item Journal Line"; var IsHandled: Boolean; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerShptOnBeforeTestJobNo. + /// + /// + /// Specifies the SkipTestJobNo parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerShptOnBeforeTestJobNo(SalesShipmentLine: Record "Sales Shipment Line"; var SkipTestJobNo: Boolean; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerShptOnAfterCheckItemChargePerShpt. + /// + /// + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the DistributeCharge parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerShptOnAfterCheckItemChargePerShpt(SalesShipmentLine: Record "Sales Shipment Line"; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; DistributeCharge: Boolean; var IsHandled: Boolean; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerShptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the DistributeCharge parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerShptOnAfterCalcDistributeCharge(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesShptLine: Record "Sales Shipment Line"; TempItemLedgEntry: Record "Item Ledger Entry" temporary; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; var DistributeCharge: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the ReturnRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the DistributeCharge parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; ReturnRcptLine: Record "Return Receipt Line"; TempItemLedgEntry: Record "Item Ledger Entry" temporary; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; var DistributeCharge: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRetRcptOnBeforeTestFieldJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetRcptOnBeforeTestFieldJobNo(ReturnReceiptLine: Record "Return Receipt Line"; var IsHandled: Boolean; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingLineOnAfterRetrieveInvoiceSpecification. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingLineOnAfterRetrieveInvoiceSpecification(var SalesLine: Record "Sales Line"; var TempInvoicingSpecification: Record "Tracking Specification" temporary; var TrackingSpecificationExists: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnAfterSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnAfterSetFilters(var SalesShipmentLine: Record "Sales Shipment Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnAfterUpdateSalesShptLineFields. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnAfterUpdateSalesShptLineFields(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the HasATOShippedNotInvoiced parameter. + /// Specifies the ShouldAdjustQuantityRounding parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding(SalesShptLine: Record "Sales Shipment Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; HasATOShippedNotInvoiced: Boolean; var ShouldAdjustQuantityRounding: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeShipmentInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the ItemJnlRollRndg parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(true, false)] local procedure OnPostItemTrackingForShipmentOnBeforeShipmentInvoiceErr(SalesLine: Record "Sales Line"; var IsHandled: Boolean; SalesHeader: Record "Sales Header"; var ItemJnlRollRndg: Boolean; TrackingSpecificationExists: Boolean; var TempTrackingSpecification: Record "Tracking Specification" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeReturnReceiptInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the ItemJnlRollRndg parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(true, false)] local procedure OnPostItemTrackingForShipmentOnBeforeReturnReceiptInvoiceErr(SalesLine: Record "Sales Line"; var IsHandled: Boolean; SalesHeader: Record "Sales Header"; var ItemJnlRollRndg: Boolean; TrackingSpecificationExists: Boolean; var TempTrackingSpecification: Record "Tracking Specification" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnAfterSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnAfterSetFilters(var ReturnReceiptLine: Record "Return Receipt Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertCrMemoLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertCrMemoLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean; xSalesLine: Record "Sales Line"; SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertInvoiceLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the ShouldInsertInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertInvoiceLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean; xSalesLine: Record "Sales Line"; SalesInvHeader: Record "Sales Invoice Header"; var ShouldInsertInvoiceLine: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertReturnReceiptLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertReturnReceiptLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertShipmentLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesLineACY parameter. + /// Specifies the DocType parameter. + /// Specifies the DocNo parameter. + /// Specifies the ExtDocNo parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertShipmentLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean; SalesLineACY: Record "Sales Line"; DocType: Option; DocNo: Code[20]; ExtDocNo: Code[35]) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterSetEverythingInvoiced. + /// + /// + /// Specifies the EverythingInvoiced parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterSetEverythingInvoiced(SalesLine: Record "Sales Line"; var EverythingInvoiced: Boolean; var IsHandled: Boolean; SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterRoundAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterRoundAmount(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; GenJnlLineDocNo: Code[20]) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeTestJobNo(SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterPostItemTrackingLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempPostedATOLink parameter. [IntegrationEvent(true, false)] local procedure OnPostSalesLineOnAfterPostItemTrackingLine(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterTestSalesLine. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the WhseShptHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CostBaseAmount parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterTestSalesLine(var SalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header"; var WhseShptHeader: Record "Warehouse Shipment Header"; WhseShip: Boolean; PreviewMode: Boolean; var CostBaseAmount: Decimal) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforePostItemTrackingLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(true, false)] local procedure OnPostSalesLineOnBeforePostItemTrackingLine(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var ItemLedgShptEntryNo: Integer; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal; GenJnlLineDocNo: Code[20]; SrcCode: Code[10]; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeTestUnitOfMeasureCode. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeTestUnitOfMeasureCode(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterAdjustPrepmtAmountLCY. + /// + /// + /// Specifies the xSalesLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterAdjustPrepmtAmountLCY(var SalesLine: record "Sales Line"; var xSalesLine: record "Sales Line"; TempTrackingSpecification: record "Tracking Specification" temporary; SalesHeader: record "Sales Header") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterInsertReturnReceiptLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the ReturnRcptHeader parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the SalesShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterInsertReturnReceiptLine(var SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var xSalesLine: Record "Sales Line"; ReturnRcptHeader: Record "Return Receipt Header"; RoundingLineInserted: Boolean; var TempTrackingSpecification: Record "Tracking Specification" temporary; var ItemLedgShptEntryNo: Integer; SalesShipmentHeader: Record "Sales Shipment Header") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterGetSalesOrderLine. + /// + /// + /// Specifies the SalesShptLine parameter. + /// Specifies the SalesOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterGetSalesOrderLine(var TempSalesLine: Record "Sales Line" temporary; SalesShptLine: Record "Sales Shipment Line"; SalesOrderLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeCalcQuantityInvoiced. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeCalcQuantityInvoiced(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnAfterGetSalesOrderLine. + /// + /// + /// Specifies the ReturnRcptLine parameter. + /// Specifies the SalesOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnAfterGetSalesOrderLine(var TempSalesLine: Record "Sales Line" temporary; ReturnRcptLine: Record "Return Receipt Line"; SalesOrderLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeInitQtyToInvoice(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnAfterModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnAfterModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeCalcQuantityInvoiced. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeCalcQuantityInvoiced(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnProcessAssocItemJnlLineOnBeforeTempDropShptPostBufferInsert. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnProcessAssocItemJnlLineOnBeforeTempDropShptPostBufferInsert(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnProcessAssocItemJnlLineOnBeforePostAssocItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnProcessAssocItemJnlLineOnBeforePostAssocItemJnlLine(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnRoundAmountOnBeforeIncrAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineQty parameter. + /// Specifies the TotalSalesLine parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnBeforeIncrAmount(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineQty: Decimal; var TotalSalesLine: Record "Sales Line"; var TotalSalesLineLCY: Record "Sales Line"; var xSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforeCheckTotalInvoiceAmount. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeCheckTotalInvoiceAmount(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnRunOnBeforeFinalizePosting. + /// + /// + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the ReturnReceiptHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeFinalizePosting(var SalesHeader: Record "Sales Header"; var SalesShipmentHeader: Record "Sales Shipment Header"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var ReturnReceiptHeader: Record "Return Receipt Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; CommitIsSuppressed: Boolean; GenJnlLineExtDocNo: Code[35]; var EverythingInvoiced: Boolean; GenJnlLineDocNo: Code[20]; SrcCode: Code[10]; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforePostSalesLineEndLoop. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the LastLineRetrieved parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the RecSalesHeader parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the ReturnReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforePostSalesLineEndLoop(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var LastLineRetrieved: Boolean; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; RecSalesHeader: Record "Sales Header"; xSalesLine: Record "Sales Line"; var SalesShipmentHeader: Record "Sales Shipment Header"; var ReturnReceiptHeader: Record "Return Receipt Header") begin end; + /// + /// Event raised by OnGetATOItemLedgEntriesNotInvoicedOnBeforeItemLedgEntryNotInvoicedInsert. + /// + /// [IntegrationEvent(false, false)] local procedure OnGetATOItemLedgEntriesNotInvoicedOnBeforeItemLedgEntryNotInvoicedInsert(var ItemLedgEntry: Record "Item Ledger Entry") begin end; + /// + /// Event raised by OnGetPostedDocumentRecordElseCase. + /// + /// + /// Specifies the PostedSalesDocumentVariant parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnGetPostedDocumentRecordElseCase(SalesHeader: Record "Sales Header"; var PostedSalesDocumentVariant: Variant; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnGetSalesLinesOnAfterFillTempLines. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnGetSalesLinesOnAfterFillTempLines(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; - [IntegrationEvent(false, false)] + /// + /// Event raised by OnPostItemLineOnAfterMakeSalesLineToShip. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempPostedATOLink parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + [IntegrationEvent(false, false)] local procedure OnPostItemLineOnAfterMakeSalesLineToShip(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemLineOnBeforeMakeSalesLineToShip. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempPostedATOLink parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the IsHandled parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the ReturnReceiptHeader parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the TempHandlingSpecificationInv parameter. + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnPostItemLineOnBeforeMakeSalesLineToShip(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var ItemLedgShptEntryNo: Integer; var IsHandled: Boolean; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; ReturnReceiptHeader: Record "Return Receipt Header"; var TempHandlingSpecification: Record "Tracking Specification" temporary; var TempHandlingSpecificationInv: Record "Tracking Specification" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnPostItemLineOnBeforePostItemInvoiceLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempPostedATOLink parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemLineOnBeforePostItemInvoiceLine(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterPostItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnAfterPostItemJnlLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargeLineOnAfterTempItemChargeAssgntSalesLoop. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineParam parameter. [IntegrationEvent(true, false)] local procedure OnPostItemChargeLineOnAfterTempItemChargeAssgntSalesLoop(var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineParam: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargeLineOnBeforePostItemCharge. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeLineOnBeforePostItemCharge(var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforeReturnRcptLineModify. + /// + /// + /// Specifies the ReturnRcptLine parameter. + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforeReturnRcptLineModify(SalesHeader: Record "Sales Header"; var ReturnRcptLine: Record "Return Receipt Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforeAdjustQuantityRounding. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the ShouldAdjustQuantityRounding parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforeAdjustQuantityRounding(ReturnRcptLine: Record "Return Receipt Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; var ShouldAdjustQuantityRounding: Boolean) begin end; + /// + /// Event raised by OnReleaseSalesDocumentOnBeforeSetStatus. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SavedStatus parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the SuppressCommit parameter. [IntegrationEvent(false, false)] local procedure OnReleaseSalesDocumentOnBeforeSetStatus(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; SavedStatus: Enum "Sales Document Status"; PreviewMode: Boolean; SuppressCommit: Boolean); begin end; + /// + /// Event raised by OnRoundAmountOnAfterAssignSalesLines. + /// + /// + /// Specifies the SalesLineACY parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TotalSalesLines parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnAfterAssignSalesLines(var xSalesLine: Record "Sales Line"; var SalesLineACY: Record "Sales Line"; SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var TotalSalesLines: Record "Sales Line"; var TotalSalesLineLCY: Record "Sales Line"; var SalesLine: Record "Sales Line"); begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification. + /// + /// [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification(var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSendICDocumentOnBeforeSetICStatus. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSendICDocumentOnBeforeSetICStatus(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSendPostedDocumentRecordElseCase. + /// + /// + /// Specifies the DocumentSendingProfile parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSendPostedDocumentRecordElseCase(SalesHeader: Record "Sales Header"; var DocumentSendingProfile: Record "Document Sending Profile"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestSalesLineOnAfterTestSalesLineJob. + /// + /// [IntegrationEvent(false, false)] local procedure OnTestSalesLineOnAfterTestSalesLineJob(var SalesLine: record "Sales Line") begin end; + /// + /// Event raised by OnTestSalesLineOnAfterCalcShouldTestReturnQty. + /// + /// + /// Specifies the ShouldTestReturnQty parameter. [IntegrationEvent(false, false)] local procedure OnTestSalesLineOnAfterCalcShouldTestReturnQty(SalesLine: Record "Sales Line"; var ShouldTestReturnQty: Boolean) begin end; + /// + /// Event raised by OnBeforeTestGenPostingGroups. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestGenPostingGroups(var SalesLine: record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateSalesLineBeforePostOnAfterPostJobContractLine. + /// + /// + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateSalesLineBeforePostOnAfterPostJobContractLine(SalesInvoiceHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnUpdateAssosOrderOnAfterPurchOrderHeaderModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderOnAfterPurchOrderHeaderModify(var PurchOrderHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterModifyPurchLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterModifyPurchLine(var PurchOrderLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnUpdateAssocOrderOnBeforeModifyPurchLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnBeforeModifyPurchLine(var PurchOrderLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnAfterReleasePurchaseDocument. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnAfterReleasePurchaseDocument(var PurchOrderHeader: Record "Purchase Header"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeReleasePurchaseDocument. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeReleasePurchaseDocument(var PurchOrderHeader: Record "Purchase Header"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateAfterPostingOnBeforeFindSetForUpdate. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAfterPostingOnBeforeFindSetForUpdate(var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheck. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheck(var BlanketOrderSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheckSellToCustomerNo. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheckSellToCustomerNo(var BlanketOrderSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeInitOutstanding(var BlanketOrderSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnUpdateInvoicedQtyOnShipmentLineOnBeforeModifySalesShptLine. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnUpdateInvoicedQtyOnShipmentLineOnBeforeModifySalesShptLine(var SalesShptLine: Record "Sales Shipment Line"; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnAfterInitAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterInitAmount(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnAfterInitLineDiscountAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterInitLineDiscountAmount(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineRemainderModify. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineRemainderModify(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency) begin end; + /// + /// Event raised by OnBeforeCalcVATBaseAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcVATBaseAmount(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostUpdateInvoiceLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateInvoiceLine(var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostUpdateReturnReceiptLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostUpdateReturnReceiptLine(var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertTrackingSpecification(SalesHeader: Record "Sales Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSendPostedDocumentRecord. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the DocumentSendingProfile parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSendPostedDocumentRecord(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var DocumentSendingProfile: Record "Document Sending Profile") begin end; + /// + /// Event raised by OnAfterPostItemChargeLine. + /// + /// + /// Specifies the SalesLineACY parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargeLine(var SalesLine: Record "Sales Line"; SalesLineACY: Record "Sales Line") begin end; + /// + /// Event raised by OnDeleteAfterPostingOnAfterDeleteLinks. + /// + /// [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnAfterDeleteLinks(var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnDeleteAfterPostingOnBeforeDeleteSalesHeader. + /// + /// [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnBeforeDeleteSalesHeader(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnDeleteAfterPostingOnBeforeDeleteLinks. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnBeforeDeleteLinks(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforeCheckAndUpdate. + /// + /// [IntegrationEvent(false, false)] local procedure OnRunOnBeforeCheckAndUpdate(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateWonOpportunitiesOnBeforeOpportunityModify. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the Opportunity parameter. [IntegrationEvent(false, false)] local procedure OnUpdateWonOpportunitiesOnBeforeOpportunityModify(var SalesHeader: Record "Sales Header"; SalesInvoiceHeader: Record "Sales Invoice Header"; var Opportunity: Record Opportunity) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCheckShip. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCheckShip(var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnBeforeUpdateReceiveAndCheckIfInvPutawayExists. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateReceiveAndCheckIfInvPutawayExists(var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnModifyTempLineOnAfterSalesLineModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnAfterSalesLineModify(var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnModifyTempLineOnBeforeTransferFields. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnBeforeTransferFields(var SalesLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnModifyTempLineOnBeforeSalesLineModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnBeforeSalesLineModify(var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesLine(SalesLine: Record "Sales Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesShipmentLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesShipmentLine(SalesShipmentLine: Record "Sales Shipment Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnReceiptLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnReceiptLine(ReturnReceiptLine: Record "Return Receipt Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateSalesLineDimSetIDFromAppliedEntry. + /// + /// + /// Specifies the ItemLedgEntry parameter. + /// Specifies the DimSetID parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateSalesLineDimSetIDFromAppliedEntry(var SalesLineToPost: Record "Sales Line"; var ItemLedgEntry: Record "Item Ledger Entry"; DimSetID: array[10] of Integer) begin end; + /// + /// Event raised by OnDeleteAfterPostingOnAfterSetupSalesHeader. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnAfterSetupSalesHeader(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnDeleteAfterPostingOnAfterSalesLineDeleteAll. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnAfterSalesLineDeleteAll(SalesHeader: Record "Sales Header"; SalesInvoiceHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; CommitIsSuppressed: Boolean; EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentConditionOnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentConditionOnBeforeUpdateBlanketOrderLine(var TempSalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostResJnlLineOnAfterInit. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostResJnlLineOnAfterInit(var ResJnlLine: Record "Res. Journal Line"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists. + /// + /// + /// Specifies the ReplacePostingDate parameter. + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the VATDateExists parameter. + /// Specifies the ReplaceVATDate parameter. + /// Specifies the VATDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists(var PostingDateExists: Boolean; var ReplacePostingDate: Boolean; var ReplaceDocumentDate: Boolean; var PostingDate: Date; var SalesHeader: Record "Sales Header"; var ModifyHeader: Boolean; var VATDateExists: Boolean; var ReplaceVATDate: Boolean; var VATDate: Date) begin end; + /// + /// Event raised by OnBeforeValidateICPartnerBusPostingGroups. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeValidateICPartnerBusPostingGroups(var TempICGenJnlLine: Record "Gen. Journal Line" temporary; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterGetCurrency. + /// + /// + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetCurrency(CurrencyCode: Code[10]; var Currency: Record Currency) begin end; + /// + /// Event raised by OnBeforePostItemLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemLine(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean; var TempSalesLineGlobal: Record "Sales Line" temporary; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnBeforePostItemChargeLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargeLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct(var TempPrepmtSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnAfterInsertReturnReceiptHeader. + /// + /// + /// Specifies the ReturnReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertReturnReceiptHeader(var SalesHeader: Record "Sales Header"; var ReturnReceiptHeader: Record "Return Receipt Header") begin @@ -13486,384 +14618,888 @@ codeunit 80 "Sales-Post" #if not CLEAN27 [Obsolete('This event is never raised.', '27.0')] + /// + /// Event raised by OnAfterGetAmountsForDeferral. + /// + /// + /// Specifies the AmtToDefer parameter. + /// Specifies the AmtToDeferACY parameter. + /// Specifies the DeferralAccount parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetAmountsForDeferral(SalesLine: Record "Sales Line"; var AmtToDefer: Decimal; var AmtToDeferACY: Decimal; var DeferralAccount: Code[20]) begin end; #endif + /// + /// Event raised by OnPostJobContractLineBeforeTestFields. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostJobContractLineBeforeTestFields(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertCrMemoHeaderOnAfterCalcShouldProcessAsReturnOrder. + /// + /// + /// Specifies the ShouldProcessAsReturnOrder parameter. [IntegrationEvent(false, false)] local procedure OnInsertCrMemoHeaderOnAfterCalcShouldProcessAsReturnOrder(SalesHeader: Record "Sales Header"; var ShouldProcessAsReturnOrder: Boolean) begin end; + /// + /// Event raised by OnUpdateQtyToBeInvoicedForShipmentOnAfterSetQtyToBeInvoiced. + /// + /// + /// Specifies the HasATOShippedNotInvoiced parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateQtyToBeInvoicedForShipmentOnAfterSetQtyToBeInvoiced(TrackingSpecificationExists: Boolean; HasATOShippedNotInvoiced: Boolean; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnBeforePostItemJnlLineItemCharges. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLineItemCharges(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeInitOutstanding(var SalesOrderLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeGetATOItemLedgEntriesNotInvoiced. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeGetATOItemLedgEntriesNotInvoiced(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckSalesDocumentOnBeforeCheckDueDate. + /// + /// + /// Specifies the ShouldCheckDueDate parameter. [IntegrationEvent(false, false)] local procedure OnCheckSalesDocumentOnBeforeCheckDueDate(var SalesHeader: Record "Sales Header"; var ShouldCheckDueDate: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineTrackingOnAfterCalcShouldInsertTrkgSpecInv. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the ShouldInsertTrkgSpecInv parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineTrackingOnAfterCalcShouldInsertTrkgSpecInv(var SalesLine: Record "Sales Line"; QtyToBeInvoiced: Decimal; var ShouldInsertTrkgSpecInv: Boolean) begin end; + /// + /// Event raised by OnUpdateSalesLineBeforePostOnBeforeGetUnitCost. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateSalesLineBeforePostOnBeforeGetUnitCost(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcItemJnlAmountsFromQtyToBeInvoiced. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcItemJnlAmountsFromQtyToBeInvoiced(var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; QtyToBeInvoiced: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForReceiveOnAfterSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForReceiveOnAfterSetFilters(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnRunOnBeforeCalcVATAmountLines. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeCalcVATAmountLines(var TempSalesLineGlobal: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestSalesLineOnBeforeTestFieldQtyToShip. + /// + /// + /// Specifies the ShouldTestQtyToShip parameter. [IntegrationEvent(false, false)] local procedure OnTestSalesLineOnBeforeTestFieldQtyToShip(SalesLine: Record "Sales Line"; var ShouldTestQtyToShip: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertShipmentLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertShipmentLine(var SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnIsEndLoopForShippedNotInvoicedOnBeforeExit. + /// + /// + /// Specifies the SalesShptLine parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnIsEndLoopForShippedNotInvoicedOnBeforeExit(SalesLine: Record "Sales Line"; SalesShptLine: Record "Sales Shipment Line"; RemQtyToBeInvoiced: Decimal; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLinePrepareJournalLineOnBeforeCalcQuantities. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLinePrepareJournalLineOnBeforeCalcQuantities(var ItemJnlLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; QtyToBeShipped: Decimal; QtyToBeShippedBase: Decimal; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean; IsATO: Boolean) begin end; + /// + /// Event raised by OnBeforeInvoiceRounding. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInvoiceRounding(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyTrackingFromSpec. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyTrackingFromSpec(var ItemJnlLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; QtyToBeShipped: Decimal; IsATO: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeValidateQtyToInvoice. + /// + /// + /// Specifies the ShouldValidateQtyToInvoice parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeValidateQtyToInvoice(var SalesHeader: Record "Sales Header"; var ShouldValidateQtyToInvoice: Boolean; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnAfterSetFilterTempSalesLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnAfterSetFilterTempSalesLine(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckTrackingSpecificationOnBeforeGetItemTrackingSettings. + /// + /// + /// Specifies the ItemTrackingSetup parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingSpecificationOnBeforeGetItemTrackingSettings(var TempItemSalesLine: Record "Sales Line" temporary; var ItemTrackingSetup: Record "Item Tracking Setup"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForReceipt. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForReceipt(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineTrackingOnBeforeInsertTempTrkgSpec. + /// + /// + /// Specifies the TempTrackingSpec parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineTrackingOnBeforeInsertTempTrkgSpec(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempTrackingSpec: Record "Tracking Specification" temporary; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInsertInvoiceHeaderOnBeforeCheckDocumentType. + /// + /// + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesSetup parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertInvoiceHeaderOnBeforeCheckDocumentType(SalesHeader: Record "Sales Header"; var SalesInvHeader: Record "Sales Invoice Header"; SalesSetup: Record "Sales & Receivables Setup"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnBeforePostBalancingEntry. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the TotalSalesLine parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnBeforePostBalancingEntry(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var TotalSalesLine: Record "Sales Line"; var TotalSalesLineLCY: Record "Sales Line"; SuppressCommit: Boolean; PreviewMode: Boolean; InvoicePostingParameters: Record "Invoice Posting Parameters"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin end; + /// + /// Event raised by OnBeforeFindNotShippedLines. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeFindNotShippedLines(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforePostSalesLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesLineACY parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforePostSalesLine(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; SrcCode: Code[10]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var IsHandled: Boolean; SalesLineACY: Record "Sales Line") begin end; + /// + /// Event raised by OnAfterUpdateInvoiceRounding. + /// + /// + /// Specifies the TotalSalesLine parameter. + /// Specifies the SalesLine parameter. + /// Specifies the Currency parameter. + /// Specifies the BiggestLineNo parameter. + /// Specifies the LastLineRetrieved parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the RoundingLineNo parameter. + /// Specifies the UseTempData parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoiceRounding(var SalesHeader: Record "Sales Header"; var TotalSalesLine: Record "Sales Line"; var SalesLine: Record "Sales Line"; var Currency: Record Currency; var BiggestLineNo: Integer; var LastLineRetrieved: Boolean; var RoundingLineInserted: Boolean; var RoundingLineNo: Integer; UseTempData: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterSetFilters(var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostItemLineOnBeforePostItemJnlLineForInvoiceDoc. + /// + /// + /// Specifies the SalesLineToShip parameter. + /// Specifies the Ship parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the TempTrackingSpecificationInv parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. + /// Specifies the QtyToInvoice parameter. + /// Specifies the TempAssembletoOrderLink parameter. [IntegrationEvent(true, false)] local procedure OnPostItemLineOnBeforePostItemJnlLineForInvoiceDoc(SalesHeader: Record "Sales Header"; var SalesLineToShip: Record "Sales Line"; Ship: Boolean; var ItemLedgShptEntryNo: Integer; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; SalesShptHeader: Record "Sales Shipment Header"; var TempHandlingSpecification: Record "Tracking Specification" temporary; var TempTrackingSpecificationInv: Record "Tracking Specification" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean; QtyToInvoice: Decimal; TempAssembletoOrderLink: Record "Posted Assemble-to-Order Link" temporary) begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForReceipt. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the QtyToInvoiceBaseInTrackingSpec parameter. + /// Specifies the ShouldPostItemTrackingForReceipt parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForReceipt(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; RemQtyToBeInvoiced: Decimal; QtyToInvoiceBaseInTrackingSpec: Decimal; var ShouldPostItemTrackingForReceipt: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForShipment. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the QtyToInvoiceBaseInTrackingSpec parameter. + /// Specifies the ShouldPostItemTrackingForShipment parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForShipment(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; RemQtyToBeInvoiced: Decimal; QtyToInvoiceBaseInTrackingSpec: Decimal; var ShouldPostItemTrackingForShipment: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeGetQuantityShipped. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeGetQuantityShipped(var TempSalesLine: Record "Sales Line"; var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeGetReturnQtyReceived. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeGetReturnQtyReceived(var TempSalesLine: Record "Sales Line"; var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldProcessReceipt. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the ShouldProcessReceipt parameter. + /// Specifies the ItemJnlRollRndg parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldProcessReceipt(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var ShouldProcessReceipt: Boolean; var ItemJnlRollRndg: Boolean) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeInitOutstanding(var SalesOrderLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnBeforeBalAccountNoWindowUpdate. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnBeforeBalAccountNoWindowUpdate(HideProgressWindow: Boolean; var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterCalcShouldCalcPrepmtAmounts. + /// + /// + /// Specifies the ShouldCalcPrepmtAmounts parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterCalcShouldCalcPrepmtAmounts(var TempSalesLine: Record "Sales Line" temporary; var ShouldCalcPrepmtAmounts: Boolean) begin end; + /// + /// Event raised by OnAfterGetGeneralPostingSetup. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetGeneralPostingSetup(var GeneralPostingSetup: Record "General Posting Setup"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnCheckItemTrackingQuantityOnDocumentTypeCaseElse. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckItemTrackingQuantityOnDocumentTypeCaseElse(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnSetCommitBehavior. + /// + /// [IntegrationEvent(false, false)] local procedure OnSetCommitBehavior(var ErrorOnCommit: Boolean) begin end; #if not CLEAN27 + /// + /// Event raised by OnSetPostingPreviewDocumentNo. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnSetPostingPreviewDocumentNo(var PreviewDocumentNo: Code[20]; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnGetPostingPreviewDocumentNos. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnGetPostingPreviewDocumentNos(var PreviewDocumentNos: List of [Code[20]]) begin end; #endif + /// + /// Event raised by OnPostInvoiceOnAfterPostLines. + /// + /// + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnAfterPostLines(var SalesHeader: Record "Sales Header"; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeAssignQtyToInvoice. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeAssignQtyToInvoice(var TempSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeItemLedgerEntryExist. + /// + /// + /// Specifies the ShipOrReceive parameter. + /// Specifies the HasItemLedgerEntry parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeItemLedgerEntryExist(var SalesLine: Record "Sales Line"; ShipOrReceive: Boolean; var HasItemLedgerEntry: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterCalcShouldInsertInvoiceHeader. + /// + /// + /// Specifies the ShouldInsertInvoiceHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterCalcShouldInsertInvoiceHeader(var SalesHeader: Record "Sales Header"; var ShouldInsertInvoiceHeader: Boolean) begin end; + /// + /// Event raised by OnInsertShptEntryRelationOnAfterItemEntryRelationInsert. + /// + /// + /// Specifies the ItemEntryRelation parameter. + /// Specifies the xSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertShptEntryRelationOnAfterItemEntryRelationInsert(SalesShipmentLine: Record "Sales Shipment Line"; var ItemEntryRelation: Record "Item Entry Relation"; xSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnBeforePostItemChargePerRetRcpt. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempItemChargeAssignmentSales parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRetRcpt(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeSetInvoiceFields. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the ShouldSetInvoiceFields parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeSetInvoiceFields(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line"; var ShouldSetInvoiceFields: Boolean) begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeError. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the InvoiceEverything parameter. [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeError(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var InvoiceEverything: Boolean) begin end; + /// + /// Event raised by OnBeforeGetSalesLineAdjCostLCY. + /// + /// + /// Specifies the QtyType parameter. + /// Specifies the AdjCostLCY parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetSalesLineAdjCostLCY(SalesLine2: Record "Sales Line"; QtyType: Option General,Invoicing,Shipping; AdjCostLCY: Decimal; var Result: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeShouldTestGetShipmentPPmtAmtToDeduct. + /// + /// + /// Specifies the CompleteFunctionality parameter. + /// Specifies the ShouldTestGetShipmentPPmtAmtToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeShouldTestGetShipmentPPmtAmtToDeduct(SalesHeader: Record "Sales Header"; CompleteFunctionality: Boolean; var ShouldTestGetShipmentPPmtAmtToDeduct: Boolean) begin end; + /// + /// Event raised by OnAfterDeleteApprovalEntries. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the ReturnReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterDeleteApprovalEntries(var SalesHeader: Record "Sales Header"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var SalesShipmentHeader: Record "Sales Shipment Header"; var ReturnReceiptHeader: Record "Return Receipt Header") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeUpdateSalesLineBeforePost. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeUpdateSalesLineBeforePost(var SalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header"; WhseShip: Boolean; WhseReceive: Boolean; RoundingLineInserted: Boolean; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnAfterSumSalesLines2. + /// + /// + /// Specifies the OldSalesLine parameter. + /// Specifies the NewSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterSumSalesLines2(var SalesHeader: Record "Sales Header"; var OldSalesLine: Record "Sales Line"; var NewSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnCheckPostWhseShptLinesOnAfterWhseShptLinesFound. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WhseShptLinesFound parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WarehouseShipmentLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckPostWhseShptLinesOnAfterWhseShptLinesFound(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line"; var WhseShptLinesFound: Boolean; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseShip: Boolean; WhseReceive: Boolean; var WarehouseShipmentLine: Record "Warehouse Shipment Line") begin end; + /// + /// Event raised by OnAfterDecrementPrepmtAmtInvLCY. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the PrepmtAmountInvLCY parameter. + /// Specifies the PrepmtVATAmountInvLCY parameter. [IntegrationEvent(false, false)] local procedure OnAfterDecrementPrepmtAmtInvLCY(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var PrepmtAmountInvLCY: Decimal; var PrepmtVATAmountInvLCY: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineGet. + /// + /// + /// Specifies the TempVATAmountLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineGet(SalesLine: Record "Sales Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeAdjustPrepmtAmountLCY. + /// + /// + /// Specifies the PrepmtSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustPrepmtAmountLCY(SalesHeader: Record "Sales Header"; var PrepmtSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostResJnlLineOnShouldExit. + /// + /// + /// Specifies the ShouldExit parameter. [IntegrationEvent(false, false)] local procedure OnPostResJnlLineOnShouldExit(var SalesLine: Record "Sales Line"; var ShouldExit: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeUpdateTempVATAmountLineRemainder. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeUpdateTempVATAmountLineRemainder(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterCalcTotalChargeAmt. + /// + /// + /// Specifies the QtyToAssign parameter. + /// Specifies the SalesLine parameter. + /// Specifies the xSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnAfterCalcTotalChargeAmt(var SalesLineToPost: Record "Sales Line"; QtyToAssign: Decimal; var SalesLine: Record "Sales Line"; xSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnBeforeCheckPostRestrictions. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPostRestrictions(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeValidateType. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeValidateType(var TempPrepmtSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeValidateDocumentDate. + /// + /// + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeValidateDocumentDate(var PostingDateExists: Boolean; var ReplaceDocumentDate: Boolean; var PostingDate: Date; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnCheckSalesDocumentOnBeforeCheckSalesDim. + /// + /// + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckSalesDocumentOnBeforeCheckSalesDim(var SalesHeader: Record "Sales Header"; var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeCreatePrepaymentTextLines. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePrepaymentTextLines(var TempPrepmtSalesLine: Record "Sales Line" temporary; var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header"; CompleteFunctionality: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckAndUpdate. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckAndUpdate(var SalesHeader: Record "Sales Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeCollectValueEntryRelation. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeCollectValueEntryRelation(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesInvoiceLine: Record "Sales Invoice Line") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeCollectValueEntryRelationForCrMemo. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeCollectValueEntryRelationForCrMemo(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesInvoiceLine: Record "Sales Invoice Line") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterCollectValueEntryRelation. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterCollectValueEntryRelation(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesInvoiceLine: Record "Sales Invoice Line") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterCreatePostedDeferralSchedule. + /// + /// + /// Specifies the SalesInvHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterCreatePostedDeferralSchedule(var SalesInvLine: Record "Sales Invoice Line"; SalesInvHeader: Record "Sales Invoice Header") begin end; + /// + /// Event raised by OnInvoiceRoundingOnAfterValidateQuantity. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnInvoiceRoundingOnAfterValidateQuantity(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInvoiceRoundingOnAfterSetLineNo. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnInvoiceRoundingOnAfterSetLineNo(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line") begin @@ -13880,16 +15516,32 @@ codeunit 80 "Sales-Post" begin end; + /// + /// Event raised by OnInsertPostedHeadersOnBeforeDeleteServItemOnSaleCreditMemo. + /// + /// + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnBeforeDeleteServItemOnSaleCreditMemo(var SalesHeader: Record "Sales Header"; var SalesShipmentHeader: Record "Sales Shipment Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterInsertInvoiceHeader. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInsertInvoiceHeader(var SalesHeader: Record "Sales Header"; var SalesInvoiceHeader: Record "Sales Invoice Header") begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterInsertCrMemoHeader. + /// + /// + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInsertCrMemoHeader(var SalesHeader: Record "Sales Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin @@ -13906,173 +15558,400 @@ codeunit 80 "Sales-Post" begin end; + /// + /// Event raised by OnProcessPostingLinesOnBeforePostDropOrderShipment. + /// + /// + /// Specifies the TotalSalesLine parameter. + /// Specifies the TotalSalesLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnProcessPostingLinesOnBeforePostDropOrderShipment(SalesHeader: Record "Sales Header"; TotalSalesLine: Record "Sales Line"; TotalSalesLineLCY: Record "Sales Line") begin end; + /// + /// Event raised by OnAfterArchiveUnpostedOrder. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the OrderArchived parameter. [IntegrationEvent(false, false)] local procedure OnAfterArchiveUnpostedOrder(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; OrderArchived: Boolean); begin end; + /// + /// Event raised by OnBeforeCheckReturnRcptLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckReturnRcptLine(var ReturnReceiptLine: Record "Return Receipt Line"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertReturnReceiptHeaderOnBeforeReturnReceiptHeaderTransferFields. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertReturnReceiptHeaderOnBeforeReturnReceiptHeaderTransferFields(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnBeforeCopyAndCheckItemCharge. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesLine parameter. + /// Specifies the InvoiceEverything parameter. + /// Specifies the AssignError parameter. + /// Specifies the QtyNeeded parameter. + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the ItemChargeAssgntSales parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCopyAndCheckItemCharge(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var SalesLine: Record "Sales Line"; var InvoiceEverything: Boolean; var AssignError: Boolean; var QtyNeeded: Decimal; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; var ItemChargeAssgntSales: Record "Item Charge Assignment (Sales)"; var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeTestPostingDate. + /// + /// + /// Specifies the ReplacePostingDate parameter. + /// Specifies the SkipTestPostingDate parameter. + [IntegrationEvent(false, false)] + local procedure OnValidatePostingAndDocumentDateOnBeforeTestPostingDate(var SalesHeader: Record "Sales Header"; ReplacePostingDate: Boolean; var SkipTestPostingDate: Boolean) + begin + end; + + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeSalesHeaderModify. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeSalesHeaderModify(var SalesHeader: Record "Sales Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeTestLineFields. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeTestLineFields(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateQtyToBeInvoicedForReturnReceiptOnAfterSetQtyToBeInvoiced. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateQtyToBeInvoicedForReturnReceiptOnAfterSetQtyToBeInvoiced(TrackingSpecificationExists: Boolean; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterInsertShipmentHeader. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInsertShipmentHeader(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnInsertPostedHeadersDeleteServItemOnSaleCreditMemo. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersDeleteServItemOnSaleCreditMemo(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnRunWithCheckOnAfterFinalize. + /// + /// [IntegrationEvent(false, false)] local procedure OnRunWithCheckOnAfterFinalize(var SalesHeader: Record "Sales Header"); begin end; + /// + /// Event raised by OnBeforeFinalizePostATO. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeFinalizePostATO(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeDeleteATOLinks. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDeleteATOLinks(SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckATOLink. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckATOLink(SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumSalesLinesTempOnAfterVatAmountSet. + /// + /// + /// Specifies the TotalSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLinesTempOnAfterVatAmountSet(var VATAmount: Decimal; var TotalSalesLine: Record "Sales Line") begin end; - [IntegrationEvent(false, false)] - local procedure OnValidatePostingAndDocumentDateOnBeforeTestPostingDate(var SalesHeader: Record "Sales Header"; ReplacePostingDate: Boolean; var SkipTestPostingDate: Boolean) - begin - end; - + /// + /// Event raised by OnInsertShptEntryRelationOnBeforeDeleteTempHandlingSpecification. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertShptEntryRelationOnBeforeDeleteTempHandlingSpecification(var TempHandlingTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeModifyPurchOrderHeader. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeModifyPurchOrderHeader(var PurchaseOrderHeader: Record "Purchase Header"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnAfterPostJobContractLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostJobContractLine(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var GenJnlLineDocType: Enum "Gen. Journal Document Type"; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; var SrcCode: Code[10]) begin end; + /// + /// Event raised by OnBeforePostDistributeItemCharge. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempItemLedgerEntry parameter. + /// Specifies the NonDistrQuantity parameter. + /// Specifies the NonDistrQtyToAssign parameter. + /// Specifies the NonDistrAmountToAssign parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostDistributeItemCharge(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempItemLedgerEntry: Record "Item Ledger Entry"; NonDistrQuantity: Decimal; NonDistrQtyToAssign: Decimal; NonDistrAmountToAssign: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostDistributeItemChargeOnAfterSetFactor. + /// + /// + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostDistributeItemChargeOnAfterSetFactor(TempItemLedgerEntry: Record "Item Ledger Entry"; var Factor: Decimal) begin end; + /// + /// Event raised by OnBeforeCalcPrepmtAmtToDeduct. + /// + /// + /// Specifies the Ship parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PrepmtAmtToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcPrepmtAmtToDeduct(var SalesLine: Record "Sales Line"; Ship: Boolean; var IsHandled: Boolean; var PrepmtAmtToDeduct: Decimal) begin end; + /// + /// Event raised by OnBeforePostItemJournalLineWarehouseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJournalLineWarehouseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAfterPostItemJournalLineWarehouseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJournalLineWarehouseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAdjustPrepmtAmountLCYOnAfterGetOrderLine. + /// + /// + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnAdjustPrepmtAmountLCYOnAfterGetOrderLine(var SalesLine: Record "Sales Line"; var SalesInvoiceLine: Record "Sales Line"); begin end; + /// + /// Event raised by OnBeforeGetQtyToInvoice. + /// + /// + /// Specifies the Ship parameter. + /// Specifies the IsHandled parameter. + /// Specifies the QtyToInvoice parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetQtyToInvoice(SalesLine: Record "Sales Line"; Ship: Boolean; var IsHandled: Boolean; var QtyToInvoice: Decimal) begin end; + /// + /// Event raised by OnBeforeAdjustFinalInvWith100PctPrepmt. + /// + /// + /// Specifies the CombinedSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustFinalInvWith100PctPrepmt(var TempPrepmtDeductLCYSalesLine: Record "Sales Line" temporary; var CombinedSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateRemainingQtyToBeInvoiced. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateRemainingQtyToBeInvoiced(SalesShptLine: Record "Sales Shipment Line"; var RemQtyToInvoiceCurrLine: Decimal; var RemQtyToInvoiceCurrLineBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLineForCreditMemoOnBeforeGetSalesPrepmtAccount. + /// + /// + /// Specifies the SalesInvoiceLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLineForCreditMemoOnBeforeGetSalesPrepmtAccount(var GLAccount: Record "G/L Account"; var SalesInvoiceLine: Record "Sales Invoice Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateEmailParameters. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateEmailParameters(SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostUpdateOrderNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateOrderNo(var SalesInvoiceHeader: Record "Sales Invoice Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSetInvoiceOrderNo. + /// + /// + /// Specifies the SalesInvLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSetInvoiceOrderNo(SalesLine: Record "Sales Line"; var SalesInvLine: Record "Sales Invoice Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeArchiveRelatedJob. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeArchiveRelatedJob(SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSyncSurPlusItemTrackingOnBeforeModifyQtyToHandleInvoice. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ReservationEntry parameter. [IntegrationEvent(false, false)] local procedure OnSyncSurPlusItemTrackingOnBeforeModifyQtyToHandleInvoice(var SalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var ReservationEntry: Record "Reservation Entry") begin end; + + /// + /// Event raised by OnAfterProcessPostingLines. + /// + /// + /// Specifies the TotalSalesLine parameter. + /// Specifies the CustLedgEntry parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the Window parameter. + /// Specifies the HideProgressWindow parameter. + [IntegrationEvent(false, false)] + local procedure OnAfterProcessPostingLines(var SalesHeader: Record "Sales Header"; var TotalSalesLine: Record "Sales Line"; var CustLedgEntry: Record "Cust. Ledger Entry"; InvoicePostingParameters: Record "Invoice Posting Parameters"; SuppressCommit: Boolean; EverythingInvoiced: Boolean; var Window: Dialog; HideProgressWindow: Boolean) + begin + end; + + /// + /// Raised after checking posting restrictions + /// + /// + [IntegrationEvent(false, false)] + local procedure OnAfterCheckPostRestrictions(var SalesHeader: Record "Sales Header") + begin + end; } diff --git a/src/Layers/IS/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al b/src/Layers/IS/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al index 5e69060603f..162a1716460 100644 --- a/src/Layers/IS/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al +++ b/src/Layers/IS/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al @@ -18,6 +18,7 @@ using Microsoft.FixedAssets.FixedAsset; using Microsoft.Foundation.Attachment; using Microsoft.Foundation.AuditCodes; using Microsoft.Foundation.NoSeries; +using Microsoft.Foundation.PaymentTerms; using Microsoft.Intercompany.Partner; using Microsoft.Purchases.Vendor; using Microsoft.Sales.Customer; @@ -853,6 +854,13 @@ table 21 "Cust. Ledger Entry" Caption = 'Prepayment'; ToolTip = 'Specifies if the related payment is a prepayment.'; } + field(91; "Payment Terms Code"; Code[10]) + { + Caption = 'Payment Terms Code'; + Editable = false; + TableRelation = "Payment Terms"; + ToolTip = 'Specifies the payment terms that determine the due date and payment discount date for the entry.'; + } field(95; "G/L Register No."; Integer) { Caption = 'G/L Register No.'; @@ -866,6 +874,7 @@ table 21 "Cust. Ledger Entry" field(171; "Payment Reference"; Code[50]) { Caption = 'Payment Reference'; + ToolTip = 'Specifies the payment reference number used by banks to identify and track the payment.'; } /// /// Specifies the payment method used or expected for this transaction, such as bank transfer, cash, or check. @@ -1392,12 +1401,12 @@ table 21 "Cust. Ledger Entry" SetCurrentKey("Customer No.", Open, Positive, "Due Date"); SetRange("Customer No.", CustomerNo); SetRange(Open, true); + OnSetApplyToFiltersOnBeforeSetFilters(Rec); if ApplyDocNo <> '' then begin SetRange("Document Type", ApplyDocType); SetRange("Document No.", ApplyDocNo); if FindFirst() then; - SetRange("Document Type"); - SetRange("Document No."); + ClearDocumentFilters(); end else if ApplyDocType <> 0 then begin SetRange("Document Type", ApplyDocType); @@ -1411,6 +1420,22 @@ table 21 "Cust. Ledger Entry" end; end; + procedure SetAppliesToDocFilters(var GenJnlLine: Record "Gen. Journal Line") + begin + SetRange("Document Type", GenJnlLine."Applies-to Doc. Type"); + SetRange("Document No.", GenJnlLine."Applies-to Doc. No."); + + OnAfterSetAppliesToDocFilters(Rec, GenJnlLine); + end; + + procedure ClearDocumentFilters() + begin + SetRange("Document Type"); + SetRange("Document No."); + + OnAfterClearDocumentFilters(Rec); + end; + /// /// Toggles the Amount to Apply field between the remaining amount and zero for the specified document. /// @@ -1484,6 +1509,7 @@ table 21 "Cust. Ledger Entry" "Payment Method Code" := GenJnlLine."Payment Method Code"; "Payment Reference" := GenJnlLine."Payment Reference"; "Exported to Payment File" := GenJnlLine."Exported to Payment File"; + "Payment Terms Code" := GenJnlLine."Payment Terms Code"; OnAfterCopyCustLedgerEntryFromGenJnlLine(Rec, GenJnlLine); end; @@ -1819,5 +1845,20 @@ table 21 "Cust. Ledger Entry" local procedure OnValidateMaxPaymentToleranceOnBeforeFieldError(var CustLedgerEntry: Record "Cust. Ledger Entry") begin end; + + [IntegrationEvent(false, false)] + local procedure OnAfterSetAppliesToDocFilters(var Rec: Record "Cust. Ledger Entry"; var GenJnlLine: Record "Gen. Journal Line") + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnAfterClearDocumentFilters(var Rec: Record "Cust. Ledger Entry") + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnSetApplyToFiltersOnBeforeSetFilters(var Rec: Record "Cust. Ledger Entry") + begin + end; } diff --git a/src/Layers/IT/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al b/src/Layers/IT/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al index ab86d8daade..562668bc373 100644 --- a/src/Layers/IT/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al +++ b/src/Layers/IT/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al @@ -242,6 +242,8 @@ codeunit 11 "Gen. Jnl.-Check Line" exit; GenJournalLine.TestField("Document No.", ErrorInfo.Create()); + + OnAfterTestDocumentNo(GenJournalLine); end; local procedure TestAccountAndBalAccountType(var GenJnlLine: Record "Gen. Journal Line") @@ -1569,6 +1571,15 @@ codeunit 11 "Gen. Jnl.-Check Line" begin end; + /// + /// Integration event raised after validating document number field requirements for journal lines. + /// + /// Journal line record being validated for document number requirements. + [IntegrationEvent(false, false)] + local procedure OnAfterTestDocumentNo(GenJournalLine: Record "Gen. Journal Line") + begin + end; + /// /// Integration event raised before validating document number field requirements for journal lines. /// Enables custom logic to completely override standard document number validation processing. diff --git a/src/Layers/IT/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al b/src/Layers/IT/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al index 8e3da2a4133..44eadac2cc8 100644 --- a/src/Layers/IT/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al +++ b/src/Layers/IT/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al @@ -1,4 +1,4 @@ -// ------------------------------------------------------------------------------------------------ +// ------------------------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // ------------------------------------------------------------------------------------------------ @@ -909,7 +909,7 @@ codeunit 12 "Gen. Jnl.-Post Line" VATEntry."Fattura Document Type" := VATPostingSetup."Fattura Document Type" else VATEntry."Fattura Document Type" := GenJnlLine."Fattura Document Type"; - OnInsertVATOnAfterAssignVATEntryFields(GenJnlLine, VATEntry, CurrExchRate); + OnInsertVATOnAfterAssignVATEntryFields(GenJnlLine, VATEntry, CurrExchRate, VATPostingSetup); if GenJnlLine."VAT Difference" = 0 then VATDifferenceLCY := 0 @@ -10830,7 +10830,7 @@ codeunit 12 "Gen. Jnl.-Post Line" end; [IntegrationEvent(false, false)] - local procedure OnInsertVATOnAfterAssignVATEntryFields(GenJnlLine: Record "Gen. Journal Line"; var VATEntry: Record "VAT Entry"; CurrExchRate: Record "Currency Exchange Rate") + local procedure OnInsertVATOnAfterAssignVATEntryFields(var GenJnlLine: Record "Gen. Journal Line"; var VATEntry: Record "VAT Entry"; CurrExchRate: Record "Currency Exchange Rate"; var VATPostingSetup: Record "VAT Posting Setup") begin end; diff --git a/src/Layers/IT/BaseApp/Purchases/Payables/VendEntryApplyPostedEntries.Codeunit.al b/src/Layers/IT/BaseApp/Purchases/Payables/VendEntryApplyPostedEntries.Codeunit.al index b2f210cadeb..a416cfa7d15 100644 --- a/src/Layers/IT/BaseApp/Purchases/Payables/VendEntryApplyPostedEntries.Codeunit.al +++ b/src/Layers/IT/BaseApp/Purchases/Payables/VendEntryApplyPostedEntries.Codeunit.al @@ -376,6 +376,8 @@ codeunit 227 "VendEntry-Apply Posted Entries" CheckAdditionalCurrency(ApplyUnapplyParameters."Posting Date", DtldVendLedgEntry."Posting Date"); AddCurrChecked := true; end; + CheckInitialDocumentType( + DtldVendLedgEntry, ApplyUnapplyParameters."Document No.", ApplyUnapplyParameters."Posting Date"); CheckReversal(DtldVendLedgEntry."Vendor Ledger Entry No."); if DtldVendLedgEntry."Transaction No." <> 0 then CheckUnappliedEntries(DtldVendLedgEntry); @@ -432,6 +434,18 @@ codeunit 227 "VendEntry-Apply Posted Entries" ExchRateAdjmtRunHandler.RunVendExchRateAdjustment(GenJnlLine, TempVendorLedgerEntry); end; + local procedure CheckInitialDocumentType(var DtldVendLedgEntry: Record "Detailed Vendor Ledg. Entry"; DocNo: Code[20]; PostingDate: Date) + var + IsHandled: Boolean; + begin + IsHandled := false; + OnBeforeCheckInitialDocumentType(DtldVendLedgEntry, DocNo, PostingDate, IsHandled); + if IsHandled then + exit; + + OnAfterCheckInitialDocumentType(DtldVEndLedgEntry); + end; + local procedure CheckPostingDate(ApplyUnapplyParameters: Record "Apply Unapply Parameters"; var MaxPostingDate: Date) var GenJnlCheckLine: Codeunit "Gen. Jnl.-Check Line"; @@ -823,6 +837,27 @@ codeunit 227 "VendEntry-Apply Posted Entries" begin end; + /// + /// Raised after checking initial document Type + /// + /// The detailed vendor ledger entry. + [IntegrationEvent(false, false)] + local procedure OnAfterCheckInitialDocumentType(var DtldVendLedgEntry: Record "Detailed Vendor Ledg. Entry") + begin + end; + + /// + /// Raised before checking initial document Type + /// + /// The detailed vendor ledger entry. + /// The document number. + /// The posting date. + /// Indicates whether the event is handled. + [IntegrationEvent(false, false)] + local procedure OnBeforeCheckInitialDocumentType(var DtldVendLedgEntry: Record "Detailed Vendor Ledg. Entry"; DocNo: Code[20]; PostingDate: Date; var IsHandled: Boolean) + begin + end; + [IntegrationEvent(false, false)] local procedure OnPostUnApplyVendorCommitOnBeforeFilterDtldVendLedgEntry(DetailedVendorLedgEntry2: Record "Detailed Vendor Ledg. Entry"; ApplyUnapplyParameters: Record "Apply Unapply Parameters") begin diff --git a/src/Layers/IT/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al b/src/Layers/IT/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al index 604b51fe837..6549f5d7699 100644 --- a/src/Layers/IT/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al +++ b/src/Layers/IT/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al @@ -589,6 +589,13 @@ table 25 "Vendor Ledger Entry" { Caption = 'Prepayment'; } + field(91; "Payment Terms Code"; Code[10]) + { + Caption = 'Payment Terms Code'; + Editable = false; + TableRelation = "Payment Terms"; + ToolTip = 'Specifies the payment terms that determine the due date and payment discount date for the entry.'; + } field(95; "G/L Register No."; Integer) { Caption = 'G/L Register No.'; @@ -1020,6 +1027,22 @@ table 25 "Vendor Ledger Entry" exit(''); end; + procedure SetAppliesToDocFilters(var GenJnlLine: Record "Gen. Journal Line") + begin + SetRange("Document Type", GenJnlLine."Applies-to Doc. Type"); + SetRange("Document No.", GenJnlLine."Applies-to Doc. No."); + + OnAfterSetAppliesToDocFilters(Rec, GenJnlLine); + end; + + procedure ClearDocumentFilters() + begin + SetRange("Document Type"); + SetRange("Document No."); + + OnAfterClearDocumentFilters(Rec); + end; + procedure CopyFromGenJnlLine(GenJnlLine: Record "Gen. Journal Line") begin "Vendor No." := GenJnlLine."Account No."; @@ -1061,6 +1084,7 @@ table 25 "Vendor Ledger Entry" "Creditor No." := GenJnlLine."Creditor No."; "Payment Reference" := GenJnlLine."Payment Reference"; "Payment Method Code" := GenJnlLine."Payment Method Code"; + "Payment Terms Code" := GenJnlLine."Payment Terms Code"; "Exported to Payment File" := GenJnlLine."Exported to Payment File"; if (GenJnlLine."Remit-to Code" <> '') then "Remit-to Code" := GenJnlLine."Remit-to Code"; @@ -1299,5 +1323,15 @@ table 25 "Vendor Ledger Entry" local procedure OnBeforeUpdateAmountsForApplication(var VendorLedgerEntry: Record "Vendor Ledger Entry"; ApplnDate: Date; ApplnCurrencyCode: Code[10]; RoundAmounts: Boolean; UpdateMaxPaymentTolerance: Boolean; var IsHandled: Boolean) begin end; + + [IntegrationEvent(false, false)] + local procedure OnAfterSetAppliesToDocFilters(var Rec: Record "Vendor Ledger Entry"; var GenJnlLine: Record "Gen. Journal Line") + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnAfterClearDocumentFilters(var Rec: Record "Vendor Ledger Entry") + begin + end; } diff --git a/src/Layers/IT/BaseApp/Purchases/Posting/PurchPost.Codeunit.al b/src/Layers/IT/BaseApp/Purchases/Posting/PurchPost.Codeunit.al index 08d01188af3..ed2660dd72a 100644 --- a/src/Layers/IT/BaseApp/Purchases/Posting/PurchPost.Codeunit.al +++ b/src/Layers/IT/BaseApp/Purchases/Posting/PurchPost.Codeunit.al @@ -1,4 +1,4 @@ -// ------------------------------------------------------------------------------------------------ +// ------------------------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // ------------------------------------------------------------------------------------------------ @@ -191,10 +191,7 @@ codeunit 90 "Purch.-Post" /// The purchase header of the document that is being posted. /// Accumulates drop-shipment buffer records during posting. /// Set to false during posting if any line is partially invoiced. - local procedure ProcessPosting( - var PurchHeader: Record "Purchase Header"; - var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; - var EverythingInvoiced: Boolean) + local procedure ProcessPosting(var PurchHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var EverythingInvoiced: Boolean) var IgnoreCommit: Boolean; begin @@ -335,6 +332,10 @@ codeunit 90 "Purch.-Post" OnRunOnBeforeMakeInventoryAdjustment(PurchHeader, GenJnlPostLine, ItemJnlPostLine, PreviewMode, PurchRcptHeader, PurchInvHeader, IsHandled); if not IsHandled then MakeInventoryAdjustment(); + + Clear(GenJnlPostLine); + + OnAfterProcessPostingLines(PurchHeader, TotalPurchLine, VendLedgEntry, InvoicePostingParameters, SuppressCommit, EverythingInvoiced, Window); end; var @@ -924,6 +925,7 @@ codeunit 90 "Purch.-Post" begin if not DocumentIsReadyToBeChecked then PrepareCheckDocument(PurchHeader); + ErrorMessageMgt.PushContext(ErrorContextElement, PurchHeader.RecordId, 0, CheckPurchHeaderMsg); CheckMandatoryHeaderFields(PurchHeader); GetGLSetup(); @@ -1197,7 +1199,6 @@ codeunit 90 "Purch.-Post" end; IsHandled := false; OnPostPurchLineOnBeforeDivideAmount(PurchHeader, PurchLine, TempVATAmountLine, TempVATAmountLineRemainder, IsHandled); - // <-- NEW EVENT if not IsHandled then DivideAmount(PurchHeader, PurchLine, 1, PurchLine."Qty. to Invoice", TempVATAmountLine, TempVATAmountLineRemainder); end else @@ -3130,6 +3131,7 @@ codeunit 90 "Purch.-Post" if NoSeriesCodeunit.IsNoSeriesInDateOrder(PurchHeader."Receiving No. Series") then DateOrderSeriesUsed := true; ModifyHeader := true; + // Check for posting conflicts. if PurchRcptHeader.Get(PurchHeader."Receiving No.") then Error(PurchRcptHeaderConflictErr, PurchHeader."Receiving No."); @@ -3147,6 +3149,7 @@ codeunit 90 "Purch.-Post" DateOrderSeriesUsed := true; ModifyHeader := true; OnUpdatePostingNosOnAfterSetReturnShipmentNoFromNos(PurchHeader); + // Check for posting conflicts. if ReturnShptHeader.Get(PurchHeader."Return Shipment No.") then Error(ReturnShptHeaderConflictErr, PurchHeader."Return Shipment No."); @@ -4236,6 +4239,8 @@ codeunit 90 "Purch.-Post" if PurchaseHeader."Pay-to Contact No." <> '' then if Contact.Get(PurchaseHeader."Pay-to Contact No.") then Contact.CheckIfPrivacyBlocked(true); + + OnAfterCheckPostRestrictions(PurchaseHeader); end; local procedure CheckFAPostingPossibility(PurchaseHeader: Record "Purchase Header") @@ -7538,7 +7543,7 @@ codeunit 90 "Purch.-Post" exit; if PurchHeader."Send IC Document" and (PurchHeader."IC Status" = PurchHeader."IC Status"::New) and (PurchHeader."IC Direction" = PurchHeader."IC Direction"::Outgoing) and - (PurchHeader."Document Type" in [PurchHeader."Document Type"::Order, PurchHeader."Document Type"::"Return Order"]) + (PurchHeader."Document Type" in [PurchHeader."Document Type"::Order, PurchHeader."Document Type"::"Return Order"]) then begin ICInboxOutboxMgt.SendPurchDoc(PurchHeader, true); PurchHeader."IC Status" := PurchHeader."IC Status"::Pending; @@ -9339,174 +9344,414 @@ codeunit 90 "Purch.-Post" ItemsToAdjust.Add(Item2."No."); end; + /// + /// Event raised by OnArchiveSalesOrdersOnBeforeSalesOrderLineModify. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnArchiveSalesOrdersOnBeforeSalesOrderLineModify(var SalesOrderLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnAfterBlanketOrderPurchLineModify. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnAfterBlanketOrderPurchLineModify(var BlanketOrderPurchLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnAfterCheckPurchDoc. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the ErrorMessageMgt parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckPurchDoc(var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; WhseShip: Boolean; WhseReceive: Boolean; PreviewMode: Boolean; var ErrorMessageMgt: Codeunit "Error Message Management") begin end; + /// + /// Event raised by OnAfterCheckAndUpdate. + /// + /// + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckAndUpdate(var PurchaseHeader: Record "Purchase Header"; CommitIsSuppressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterCheckTrackingSpecification. + /// + /// + /// Specifies the TempItemPurchaseLine parameter. [IntegrationEvent(true, false)] local procedure OnAfterCheckTrackingSpecification(PurchaseHeader: Record "Purchase Header"; var TempItemPurchaseLine: Record "Purchase Line" temporary); begin end; + /// + /// Event raised by OnAfterCheckTrackingAndWarehouseForReceive. + /// + /// + /// Specifies the Receive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckTrackingAndWarehouseForReceive(var PurchaseHeader: Record "Purchase Header"; var Receive: Boolean; CommitIsSupressed: Boolean; var TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterCheckTrackingAndWarehouseForShip. + /// + /// + /// Specifies the Ship parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchaseLine parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckTrackingAndWarehouseForShip(var PurchaseHeader: Record "Purchase Header"; var Ship: Boolean; CommitIsSupressed: Boolean; var TempPurchaseLine: Record "Purchase Line" temporary; var TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary) begin end; + /// + /// Event raised by OnAfterCheckWithholdingTaxTotalAmount. + /// + /// + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckWithholdingTaxTotalAmount(var WithhSocSec: Record "Purch. Withh. Contribution"; var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterCreateJobPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCreateJobPurchLine(var JobPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterCreateWhseJnlLine. + /// + /// + /// Specifies the TempWhseJnlLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCreateWhseJnlLine(PurchaseLine: Record "Purchase Line"; var TempWhseJnlLine: record "Warehouse Journal Line" temporary) begin end; + /// + /// Event raised by OnAfterDeleteAfterPosting. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterDeleteAfterPosting(PurchHeader: Record "Purchase Header"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterDeleteApprovalEntries. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchRcptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterDeleteApprovalEntries(var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; PurchRcptHeader: Record "Purch. Rcpt. Header") begin end; + /// + /// Event raised by OnAfterDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. [IntegrationEvent(false, false)] local procedure OnAfterDivideAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping; PurchLineQty: Decimal; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary) begin end; + /// + /// Event raised by OnAfterGetAmountRoundingPrecisionInLCY. + /// + /// + /// Specifies the DocNo parameter. + /// Specifies the CurrencyCode parameter. + /// Specifies the AmountRoundingPrecision parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetAmountRoundingPrecisionInLCY(DocType: Enum "Purchase Document Type"; DocNo: Code[20]; CurrencyCode: Code[10]; var AmountRoundingPrecision: Decimal) begin end; + /// + /// Event raised by OnAfterGetLineDataFromOrder. + /// + /// + /// Specifies the PurchOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetLineDataFromOrder(var PurchLine: Record "Purchase Line"; PurchOrderLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterGetPurchSetup. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterGetPurchSetup(var PurchSetup: Record "Purchases & Payables Setup") begin end; + /// + /// Event raised by OnAfterModifyTempLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterModifyTempLine(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostPurchaseDoc. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PurchRcpHdrNo parameter. + /// Specifies the RetShptHdrNo parameter. + /// Specifies the PurchInvHdrNo parameter. + /// Specifies the PurchCrMemoHdrNo parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] procedure OnAfterPostPurchaseDoc(var PurchaseHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PurchRcpHdrNo: Code[20]; RetShptHdrNo: Code[20]; PurchInvHdrNo: Code[20]; PurchCrMemoHdrNo: Code[20]; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterPostPurchaseDocDropShipment. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostPurchaseDocDropShipment(SalesShptNo: Code[20]; CommitIsSupressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterRetrieveInvoiceTrackingSpecificationIfExists. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. [IntegrationEvent(false, false)] local procedure OnAfterRetrieveInvoiceTrackingSpecificationIfExists(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TrackingSpecificationExists: Boolean) begin end; + /// + /// Event raised by OnAfterUpdatePostingNos. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePostingNos(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; PreviewMode: Boolean; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnAfterCheckMandatoryFields. + /// + /// + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckMandatoryFields(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterFinalizePosting. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterFinalizePosting(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShptHeader: Record "Return Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PreviewMode: Boolean; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterFinalizePostingOnBeforeCommit. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnAfterFinalizePostingOnBeforeCommit(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShptHeader: Record "Return Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PreviewMode: Boolean; CommitIsSupressed: Boolean; EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnAfterIncrAmount. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterIncrAmount(var TotalPurchLine: Record "Purchase Line"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterInitAssocItemJnlLine. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the QtyToBeShipped parameter. [IntegrationEvent(false, false)] local procedure OnAfterInitAssocItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; PurchaseHeader: Record "Purchase Header"; QtyToBeShipped: Decimal) begin end; + /// + /// Event raised by OnAfterInsertCombinedSalesShipment. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterInsertCombinedSalesShipment(var SalesShipmentHeader: Record "Sales Shipment Header") begin end; + /// + /// Event raised by OnAfterInsertPostedHeaders. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchSetup parameter. + /// Specifies the Window parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertPostedHeaders(var PurchaseHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShptHeader: Record "Return Shipment Header"; var PurchSetup: Record "Purchases & Payables Setup"; var Window: Dialog) begin end; + /// + /// Event raised by OnAfterInsertReceiptHeader. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertReceiptHeader(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var TempWhseRcptHeader: Record "Warehouse Receipt Header" temporary; WhseReceive: Boolean; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnAfterInsertReturnShipmentHeader. + /// + /// + /// Specifies the ReturnShptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertReturnShipmentHeader(var PurchHeader: Record "Purchase Header"; var ReturnShptHeader: Record "Return Shipment Header") begin end; + /// + /// Event raised by OnAfterInvoiceRoundingAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TotalPurchaseLine parameter. + /// Specifies the UseTempData parameter. + /// Specifies the InvoiceRoundingAmount parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the RoundingLineNo parameter. [IntegrationEvent(false, false)] local procedure OnAfterInvoiceRoundingAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TotalPurchaseLine: Record "Purchase Line"; UseTempData: Boolean; InvoiceRoundingAmount: Decimal; CommitIsSuppressed: Boolean; RoundingLineInserted: Boolean; RoundingLineNo: Integer) begin end; + /// + /// Event raised by OnAfterInsertedPrepmtVATBaseToDeduct. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PrepmtLineNo parameter. + /// Specifies the TotalPrepmtAmtToDeduct parameter. + /// Specifies the TempPrepmtDeductLCYPurchLine parameter. + /// Specifies the PrepmtVATBaseToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertedPrepmtVATBaseToDeduct(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; PrepmtLineNo: Integer; TotalPrepmtAmtToDeduct: Decimal; var TempPrepmtDeductLCYPurchLine: Record "Purchase Line" temporary; var PrepmtVATBaseToDeduct: Decimal) begin end; + /// + /// Event raised by OnAfterPostAssocItemJnlLine. + /// + /// + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the SalesLineOrder parameter. + /// Specifies the SalesOrderHeader parameter. + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostAssocItemJnlLine(var ItemJnlLine: Record "Item Journal Line"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var SalesLineOrder: Record "Sales Line"; var SalesOrderHeader: Record "Sales Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAfterPostCombineSalesOrderShipment. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostCombineSalesOrderShipment(var PurchaseHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin @@ -9519,6 +9764,15 @@ codeunit 90 "Purch.-Post" end; [Obsolete('Moved to codeunit MfgPurchPost', '27.0')] + /// + /// Event raised by OnAfterPostItemJnlLineCopyProdOrder. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLineCopyProdOrder(var ItemJnlLine: Record "Item Journal Line"; PurchLine: Record "Purchase Line"; PurchRcptHeader: Record "Purch. Rcpt. Header"; QtyToBeReceived: Decimal; CommitIsSupressed: Boolean; QtyToBeInvoiced: Decimal) begin @@ -9537,269 +9791,665 @@ codeunit 90 "Purch.-Post" end; #endif + /// + /// Event raised by OnAfterPostItemJnlLineItemCharges. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLineItemCharges(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerOrder. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerOrder(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemTrackingLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemTrackingLine(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnAfterPostUpdateCreditMemoLine. + /// + /// [IntegrationEvent(true, false)] local procedure OnAfterPostUpdateCreditMemoLine(var PurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPostUpdateInvoiceLine. + /// + /// [IntegrationEvent(true, false)] local procedure OnAfterPostUpdateInvoiceLine(var PurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPurchRcptHeaderInsert. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchRcptHeaderInsert(var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterPurchRcptLineInsert. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchRcptLineInsert(PurchaseLine: Record "Purchase Line"; var PurchRcptLine: Record "Purch. Rcpt. Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; PurchInvHeader: Record "Purch. Inv. Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; PurchRcptHeader: Record "Purch. Rcpt. Header"; TempWhseRcptHeader: Record "Warehouse Receipt Header"; xPurchLine: Record "Purchase Line"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPurchInvHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchInvHeaderInsert(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterPurchInvLineInsert. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchInvLineInsert(var PurchInvLine: Record "Purch. Inv. Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; PurchHeader: Record "Purchase Header"; PurchRcptHeader: Record "Purch. Rcpt. Header"; TempWhseRcptHeader: Record "Warehouse Receipt Header"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnAfterPurchCrMemoHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchCrMemoHeaderInsert(var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterPurchCrMemoLineInsert. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchCrMemoLineInsert(var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var PurchaseHeader: Record "Purchase Header"; GenJnlLineDocNo: Code[20]; RoundingLineInserted: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnAfterReturnShptHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterReturnShptHeaderInsert(var ReturnShptHeader: Record "Return Shipment Header"; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterReturnShptLineInsert. + /// + /// + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempWhseShptHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the xPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterReturnShptLineInsert(var ReturnShptLine: Record "Return Shipment Line"; ReturnShptHeader: Record "Return Shipment Header"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; var TempWhseShptHeader: Record "Warehouse Shipment Header" temporary; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; xPurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterRevertWarehouseEntry. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterRevertWarehouseEntry(var TempWhseJnlLine: Record "Warehouse Journal Line" temporary) begin end; + /// + /// Event raised by OnAfterSalesShptHeaderInsert. + /// + /// + /// Specifies the SalesOrderHeader parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterSalesShptHeaderInsert(var SalesShipmentHeader: Record "Sales Shipment Header"; SalesOrderHeader: Record "Sales Header"; CommitIsSuppressed: Boolean; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterSalesShptLineInsert. + /// + /// + /// Specifies the SalesShptHeader parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the DropShptPostBuffer parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnAfterSalesShptLineInsert(var SalesShptLine: Record "Sales Shipment Line"; SalesShptHeader: Record "Sales Shipment Header"; SalesOrderLine: Record "Sales Line"; CommitIsSuppressed: Boolean; DropShptPostBuffer: Record "Drop Shpt. Post. Buffer"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPostAccICLine. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostAccICLine(PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnAfterPostItemLine. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(true, false)] local procedure OnAfterPostItemLine(PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; PurchaseHeader: Record "Purchase Header"; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnAfterPostItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the WhseJnlRegisterLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseRcptHeader parameter. + /// Specifies the WhseShptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var WhseJnlRegisterLine: Codeunit "Whse. Jnl.-Register Line"; var WhseReceive: Boolean; var WhseShip: Boolean; var WhseRcptHeader: Record "Warehouse Receipt Header"; var WhseShptHeader: Record "Warehouse Shipment Header") begin end; + /// + /// Event raised by OnAfterPostWhseJnlLine. + /// + /// + /// Specifies the ItemLedgEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostWhseJnlLine(var PurchaseLine: Record "Purchase Line"; ItemLedgEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterPostUpdateOrderLine. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostUpdateOrderLine(var PurchaseLine: Record "Purchase Line"; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterPostInvoice. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the VendorLedgerEntry parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostInvoice(var PurchHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; TotalPurchLine: Record "Purchase Line"; TotalPurchLineLCY: Record "Purchase Line"; CommitIsSupressed: Boolean; var VendorLedgerEntry: Record "Vendor Ledger Entry") begin end; + /// + /// Event raised by OnAfterPostPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchInvLine parameter. + /// Specifies the PurchCrMemoLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLineACY parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostPurchLine(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var PurchInvLine: Record "Purch. Inv. Line"; var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchLineACY: Record "Purchase Line"; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; SrcCode: Code[10]; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterProcessPurchLines. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the PurchLinesProcessed parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnAfterProcessPurchLines(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShipmentHeader: Record "Return Shipment Header"; WhseShip: Boolean; WhseReceive: Boolean; var PurchLinesProcessed: Boolean; CommitIsSuppressed: Boolean; EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnAfterProcessAssocItemJnlLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnAfterProcessAssocItemJnlLine(var PurchLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnAfterReleasePurchDoc. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterReleasePurchDoc(var PurchHeader: Record "Purchase Header"); begin end; + /// + /// Event raised by OnAfterRefreshTempLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterRefreshTempLines(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterResetTempLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterResetTempLines(var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterRestorePurchaseHeader. + /// + /// + /// Specifies the PurchaseHeaderCopy parameter. [IntegrationEvent(false, false)] local procedure OnAfterRestorePurchaseHeader(var PurchaseHeader: Record "Purchase Header"; PurchaseHeaderCopy: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterReverseAmount. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterReverseAmount(var PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterRoundAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchLineQty parameter. [IntegrationEvent(false, false)] local procedure OnAfterRoundAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchLineQty: Decimal) begin end; + /// + /// Event raised by OnAfterSaveTempWhseSplitSpec. + /// + /// + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnAfterSaveTempWhseSplitSpec(PurchaseLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAfterSetPostingFlags. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterSetPostingFlags(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterTestPurchLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(false, false)] local procedure OnAfterTestPurchLine(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateInvoicedQtyOnPurchRcptLine. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoicedQtyOnPurchRcptLine(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchRcptLine: Record "Purch. Rcpt. Line"; var PurchaseLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; TrackingSpecificationExists: Boolean; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; var PurchaseHeader: Record "Purchase Header"; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateInvoicedQtyOnReturnShptLine. + /// + /// + /// Specifies the ReturnShipmentLine parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoicedQtyOnReturnShptLine(PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShipmentLine: Record "Return Shipment Line"; PurchaseLine: Record "Purchase Line"; TempTrackingSpecification: Record "Tracking Specification" temporary; TrackingSpecificationExists: Boolean; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnAfterUpdateLastPostingNos. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterUpdateLastPostingNos(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterUpdatePurchLineBeforePost. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the RoundingLineInserted parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePurchLineBeforePost(var PurchaseLine: Record "Purchase Line"; WhseShip: Boolean; WhseReceive: Boolean; PurchaseHeader: Record "Purchase Header"; RoundingLineInserted: Boolean) begin end; + /// + /// Event raised by OnAfterUpdatePrepmtPurchLineWithRounding. + /// + /// + /// Specifies the TotalRoundingAmount parameter. + /// Specifies the TotalPrepmtAmount parameter. + /// Specifies the FinalInvoice parameter. + /// Specifies the PricesInclVATRoundingAmount parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePrepmtPurchLineWithRounding(var PrepmtPurchLine: Record "Purchase Line"; TotalRoundingAmount: array[2] of Decimal; TotalPrepmtAmount: array[2] of Decimal; FinalInvoice: Boolean; PricesInclVATRoundingAmount: array[2] of Decimal; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterUpdatePurchaseHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePurchaseHeader(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; GenJnlLineDocType: Integer; GenJnlLineDocNo: Code[20]; PreviewMode: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterUpdatePurchLineDimSetIDFromAppliedEntry. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePurchLineDimSetIDFromAppliedEntry(var PurchLineToPost: Record "Purchase Line"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterValidatePostingAndDocumentDate. + /// + /// + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterValidatePostingAndDocumentDate(var PurchaseHeader: Record "Purchase Header"; CommitIsSuppressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnBeforeAddAssociatedOrderLineToBuffer. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAddAssociatedOrderLineToBuffer(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeModifyTempLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeModifyTempLine(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnModifyTempLineOnBeforeTransferFields. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnBeforeTransferFields(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeAdjustQuantityRoundingForReceipt. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustQuantityRoundingForReceipt(PurchRcptLine: Record "Purch. Rcpt. Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeArchiveUnpostedOrder. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the OrderArchived parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeArchiveUnpostedOrder(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; var OrderArchived: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnBeforeArchiveSalesOrders. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeArchiveSalesOrders(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeBlanketOrderPurchLineModify. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnBeforeBlanketOrderPurchLineModify(var BlanketOrderPurchLine: Record "Purchase Line"; PurchLine: Record "Purchase Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcInvoice. + /// + /// + /// Specifies the NewInvoice parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcInvoice(var PurchHeader: Record "Purchase Header"; var NewInvoice: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalculateAmountsInclVAT. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalculateAmountsInclVAT(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalculateInvoiceEverything. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the InvoiceEverything parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalculateInvoiceEverything(var TempPurchaseLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; var InvoiceEverything: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcLineAmountAndLineDiscountAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Currency parameter. [IntegrationEvent(true, false)] local procedure OnBeforeCalcLineAmountAndLineDiscountAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; PurchLineQty: Decimal; var IsHandled: Boolean; Currency: Record Currency) begin @@ -9807,163 +10457,379 @@ codeunit 90 "Purch.-Post" #if not CLEAN28 [Obsolete('This event is no longer used.', '28.0')] + /// + /// Event raised by OnBeforeCheckDropShipmentReceiveInvoice. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforeCheckDropShipmentReceiveInvoice(PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; #endif + /// + /// Event raised by OnBeforeCheckDocumentTotalAmounts. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforeCheckDocumentTotalAmounts(PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckExternalDocumentNumber. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the Handled parameter. + /// Specifies the DocType parameter. + /// Specifies the ExtDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckExternalDocumentNumber(VendorLedgerEntry: Record "Vendor Ledger Entry"; PurchaseHeader: Record "Purchase Header"; var Handled: Boolean; DocType: Option; ExtDocNo: Text[35]; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeCheckExtDocNo. + /// + /// + /// Specifies the DocumentType parameter. + /// Specifies the ExtDocNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckExtDocNo(PurchaseHeader: Record "Purchase Header"; DocumentType: Enum "Gen. Journal Document Type"; ExtDocNo: Text[35]; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckGLAccDirectPosting. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckGLAccDirectPosting(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckICDocumentDuplicatePosting. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckICDocumentDuplicatePosting(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckIfInvPutawayExists. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckIfInvPutawayExists(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckHeaderPostingType. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckHeaderPostingType(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckFieldsOnReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckFieldsOnReturnShipmentLine(var ReturnShipmentLine: Record "Return Shipment Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterCheckFieldsOnReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckFieldsOnReturnShipmentLine(ReturnShipmentLine: Record "Return Shipment Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeCheckPrepmtAmtToDeduct. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPrepmtAmtToDeduct(PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckPurchRcptLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckTrackingSpecification. + /// + /// + /// Specifies the TempItemPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckTrackingSpecification(PurchHeader: Record "Purchase Header"; var TempItemPurchLine: Record "Purchase Line" temporary); begin end; + /// + /// Event raised by OnBeforeCheckTrackingAndWarehouseForShip. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the Ship parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckTrackingAndWarehouseForShip(PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var Ship: Boolean; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeCheckWarehouse. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckWarehouse(var TempItemPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckWhseRcptLineQtyToReceive. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckWhseRcptLineQtyToReceive(var WhseRcptLine: Record "Warehouse Receipt Line"; var PurchRcptLine: Record "Purch. Rcpt. Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeClearRemAmt. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlRollRndg parameter. + /// Specifies the RemAmt parameter. + /// Specifies the RemDiscAmt parameter. [IntegrationEvent(false, false)] local procedure OnBeforeClearRemAmt(PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; ItemJnlRollRndg: Boolean; var RemAmt: Decimal; var RemDiscAmt: Decimal) begin end; + /// + /// Event raised by OnBeforeCreatePositiveEntry. + /// + /// + /// Specifies the JobNo parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePositiveEntry(var WarehouseJournalLine: Record "Warehouse Journal Line"; JobNo: Code[20]; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCreatePostedWhseRcptHeader. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedWhseRcptHeader(var PostedWhseReceiptHeader: Record "Posted Whse. Receipt Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeCreatePostedWhseShptHeader. + /// + /// + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedWhseShptHeader(var PostedWhseShipmentHeader: Record "Posted Whse. Shipment Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeCreatePostedWhseShptLine. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedWhseShptLine(PurchLine: Record "Purchase Line"; ReturnShptLine: Record "Return Shipment Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCreatePostedRcptLine. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedRcptLine(PurchLine: Record "Purchase Line"; ReturnShptLine: Record "Return Shipment Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCreateWhseLineFromReturnShptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreateWhseLineFromReturnShptLine(var ReturnShptLine: Record "Return Shipment Line"; PurchLine: Record "Purchase Line"; CostBaseAmount: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCommitAndUpdateAnalysisVeiw. + /// + /// + /// Specifies the SuppressCommit parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCommitAndUpdateAnalysisVeiw(InvtPickPutaway: Boolean; SuppressCommit: Boolean; PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCopyAndCheckItemChargeTempPurchLine. + /// + /// + /// Specifies the TempPrepmtPurchaseLine parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the IsHandled parameter. + /// Specifies the AssignError parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCopyAndCheckItemChargeTempPurchLine(PurchaseHeader: Record "Purchase Header"; var TempPrepmtPurchaseLine: Record "Purchase Line" temporary; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean; var AssignError: Boolean) begin end; + /// + /// Event raised by OnBeforeCreatePrepmtLines. + /// + /// + /// Specifies the TempPrepmtPurchaseLine parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePrepmtLines(PurchaseHeader: Record "Purchase Header"; var TempPrepmtPurchaseLine: Record "Purchase Line" temporary; CompleteFunctionality: Boolean; var IsHandled: Boolean; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeDeleteAfterPosting. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the SkipDelete parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDeleteAfterPosting(var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var SkipDelete: Boolean; CommitIsSupressed: Boolean; var TempPurchLine: Record "Purchase Line" temporary; var TempPurchLineGlobal: Record "Purchase Line" temporary; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnBeforeDeleteApprovalEntries. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDeleteApprovalEntries(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnBeforeDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDivideAmount(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping; var PurchLineQty: Decimal; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeFinalizePosting. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeFinalizePosting(var PurchaseHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var EverythingInvoiced: Boolean; CommitIsSupressed: Boolean; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnBeforeGetInvoicePostingSetup. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetInvoicePostingSetup(var InvoicePostingInterface: Interface "Invoice Posting"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInitAssocItemJnlLine. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInitAssocItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; PurchaseHeader: Record "Purchase Header") begin @@ -9971,97 +10837,265 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforeInvoiceRoundingAmount. + /// + /// + /// Specifies the TotalAmountIncludingVAT parameter. + /// Specifies the UseTempData parameter. + /// Specifies the InvoiceRoundingAmount parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInvoiceRoundingAmount(PurchHeader: Record "Purchase Header"; TotalAmountIncludingVAT: Decimal; UseTempData: Boolean; var InvoiceRoundingAmount: Decimal; CommitIsSupressed: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeInsertICGenJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ICGenJnlLineNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertICGenJnlLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var ICGenJnlLineNo: Integer; var IsHandled: Boolean) begin end; - [IntegrationEvent(false, false)] + /// + /// Event raised by OnBeforeInsertPostedHeaders. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the IsHandled parameter. + [IntegrationEvent(false, false)] local procedure OnBeforeInsertPostedHeaders(var PurchaseHeader: Record "Purchase Header"; var WarehouseReceiptHeader: Record "Warehouse Receipt Header"; var WarehouseShipmentHeader: Record "Warehouse Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertRcptEntryRelation. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the TempTrackingSpecificationInv parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertRcptEntryRelation(PurchaseLine: Record "Purchase Line"; var PurchRcptLine: Record "Purch. Rcpt. Line"; var TempHandlingSpecification: Record "Tracking Specification" temporary; TempTrackingSpecificationInv: Record "Tracking Specification" temporary; ItemLedgShptEntryNo: Integer; var Result: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertReceiptHeader. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReceiptHeader(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var IsHandled: Boolean; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertReceiptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReceiptLine(var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchLine: Record "Purchase Line"; var CostBaseAmount: Decimal; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeInsertReturnShipmentLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReturnShipmentLine(var ReturnShptHeader: Record "Return Shipment Header"; var PurchLine: Record "Purchase Line"; var CostBaseAmount: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertTrackingSpecification(PurchHeader: Record "Purchase Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeItemJnlPostLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. + /// Specifies the WhseReceiptHeader parameter. + /// Specifies the WhseShipmentHeader parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. [IntegrationEvent(true, false)] local procedure OnBeforeItemJnlPostLine(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; var IsHandled: Boolean; WhseReceiptHeader: Record "Warehouse Receipt Header"; WhseShipmentHeader: Record "Warehouse Shipment Header"; TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnBeforeIsEndLoopForShippedNotInvoiced. + /// + /// + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the ReturnShptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the PurchLine parameter. + /// Specifies the EndLoop parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeIsEndLoopForShippedNotInvoiced(RemQtyToBeInvoiced: Decimal; TrackingSpecificationExists: Boolean; var ReturnShptLine: Record "Return Shipment Line"; var InvoicingTrackingSpecification: Record "Tracking Specification"; PurchLine: Record "Purchase Line"; var EndLoop: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeIsEndLoopForReceivedNotInvoiced. + /// + /// + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PurchRcptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the PurchLine parameter. + /// Specifies the EndLoop parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeIsEndLoopForReceivedNotInvoiced(RemQtyToBeInvoiced: Decimal; TrackingSpecificationExists: Boolean; var PurchRcptLine: Record "Purch. Rcpt. Line"; var InvoicingTrackingSpecification: Record "Tracking Specification"; PurchLine: Record "Purchase Line"; var EndLoop: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeGetPurchRcptLineFromTrackingOrUpdateItemEntryRelation. + /// + /// + /// Specifies the TrackingSpecification parameter. + /// Specifies the ItemEntryRelation parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetPurchRcptLineFromTrackingOrUpdateItemEntryRelation(var PurchRcptLine: Record "Purch. Rcpt. Line"; var TrackingSpecification: Record "Tracking Specification"; var ItemEntryRelation: Record "Item Entry Relation"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeGetPurchLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeGetPurchLines(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeLockTables. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempPurchaseLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnBeforeLockTables(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSuppressed: Boolean; var IsHandled: Boolean; var TempPurchaseLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforePostLines. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostLines(var PurchLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSupressed: Boolean; var TempPurchLineGlobal: Record "Purchase Line" temporary; var TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary) begin end; + /// + /// Event raised by OnBeforePostDistributeItemCharge. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemLedgerEntry parameter. + /// Specifies the NonDistrQuantity parameter. + /// Specifies the NonDistrQtyToAssign parameter. + /// Specifies the NonDistrAmountToAssign parameter. + /// Specifies the Sign parameter. + /// Specifies the IndirectCostPct parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostDistributeItemCharge(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var TempItemLedgerEntry: Record "Item Ledger Entry"; NonDistrQuantity: Decimal; NonDistrQtyToAssign: Decimal; NonDistrAmountToAssign: Decimal; Sign: Decimal; IndirectCostPct: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostInvoice. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Window parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the InvoicePostingInterface parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostInvoice(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSupressed: Boolean; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var IsHandled: Boolean; var Window: Dialog; HideProgressWindow: Boolean; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line"; var InvoicePostingInterface: Interface "Invoice Posting"; var InvoicePostingParameters: Record "Invoice Posting Parameters"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnBeforePostGLAccICLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ICGenJnlLineNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostGLAccICLine(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ICGenJnlLineNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerSalesShpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerSalesShpt(var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin @@ -10074,98 +11108,245 @@ codeunit 90 "Purch.-Post" end; [Obsolete('Moved to codeunit MfgPurchPost', '27.0')] + /// + /// Event raised by OnBeforePostItemJnlLineCopyProdOrder. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemJnlLineCopyProdOrder(PurchLine: Record "Purchase Line"; var ItemJnlLine: Record "Item Journal Line"; QtyToBeReceived: Decimal; QtyToBeInvoiced: Decimal; CommitIsSupressed: Boolean; var IsHandled: Boolean) begin end; #endif + /// + /// Event raised by OnBeforePostPurchaseDoc. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostPurchaseDoc(var PurchaseHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSupressed: Boolean; var HideProgressWindow: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostCommitPurchaseDoc. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostCommitPurchaseDoc(var PurchaseHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PreviewMode: Boolean; var ModifyHeader: Boolean; var CommitIsSupressed: Boolean; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeProcessAssocItemJnlLine. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the SourceCode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeProcessAssocItemJnlLine(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary; ItemLedgShptEntryNo: Integer; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; SourceCode: Code[10]) begin end; + /// + /// Event raised by OnBeforePrepareCheckDocument. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforePrepareCheckDocument(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforePurchLineDeleteAll. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchLineDeleteAll(var PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforePurchRcptHeaderInsert. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchRcptHeaderInsert(var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseReceive: Boolean; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseShip: Boolean) begin end; + /// + /// Event raised by OnBeforePurchRcptLineInsert. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PostedWhseRcptLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemLedgShptEntryNo parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchRcptLineInsert(var PurchRcptLine: Record "Purch. Rcpt. Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean; PostedWhseRcptLine: Record "Posted Whse. Receipt Line"; var IsHandled: Boolean; ItemLedgShptEntryNo: Integer) begin end; + /// + /// Event raised by OnBeforePurchInvHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchInvHeaderInsert(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnBeforePurchInvLineInsert. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchInvLineInsert(var PurchInvLine: Record "Purch. Inv. Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePurchCrMemoHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchCrMemoHeaderInsert(var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnBeforePurchCrMemoLineInsert. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchCrMemoLineInsert(var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeReleasePurchDoc. + /// + /// + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeReleasePurchDoc(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean); begin end; + /// + /// Event raised by OnBeforeReturnShptHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(false, false)] local procedure OnBeforeReturnShptHeaderInsert(var ReturnShptHeader: Record "Return Shipment Header"; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseReceive: Boolean; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseShip: Boolean) begin end; + /// + /// Event raised by OnBeforeReturnShptLineInsert. + /// + /// + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeReturnShptLineInsert(var ReturnShptLine: Record "Return Shipment Line"; var ReturnShptHeader: Record "Return Shipment Header"; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnBeforeRoundAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchLineQty parameter. [IntegrationEvent(false, false)] local procedure OnBeforeRoundAmount(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchLineQty: Decimal) begin end; + /// + /// Event raised by OnBeforeSalesShptHeaderInsert. + /// + /// + /// Specifies the SalesOrderHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSalesShptHeaderInsert(var SalesShptHeader: Record "Sales Shipment Header"; SalesOrderHeader: Record "Sales Header"; CommitIsSupressed: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeSalesShptLineInsert. + /// + /// + /// Specifies the SalesShptHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the DropShptPostBuffer parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSalesShptLineInsert(var SalesShptLine: Record "Sales Shipment Line"; SalesShptHeader: Record "Sales Shipment Header"; SalesLine: Record "Sales Line"; CommitIsSupressed: Boolean; DropShptPostBuffer: Record "Drop Shpt. Post. Buffer"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSetCheckApplToItemEntry. + /// + /// + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSetCheckApplToItemEntry(var PurchaseLine: Record "Purchase Line"; var Result: Boolean; var IsHandled: Boolean; PurchaseHeader: Record "Purchase Header"; ItemJournalLine: Record "Item Journal Line") begin @@ -10173,6 +11354,17 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforePostCombineSalesOrderShipment. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostCombineSalesOrderShipment(var PurchaseHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesShipmentHeader: Record "Sales Shipment Header"; var ItemLedgShptEntryNo: Integer; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempHandlingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean) begin @@ -10180,241 +11372,616 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforePostItemJnlLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeReceivedBase parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the ItemChargeNo parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the Result parameter. + /// Specifies the WarehouseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLine(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var QtyToBeReceived: Decimal; var QtyToBeReceivedBase: Decimal; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; var ItemLedgShptEntryNo: Integer; var ItemChargeNo: Code[20]; var TrackingSpecification: Record "Tracking Specification"; CommitIsSupressed: Boolean; var IsHandled: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var Result: Integer; var WarehouseReceiptHeader: Record "Warehouse Receipt Header") begin end; + /// + /// Event raised by OnBeforePostItemJnlLineItemCharges. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLineItemCharges(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostAssocItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostAssocItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var SalesLine: Record "Sales Line"; CommitIsSupressed: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePostItemChargePerOrder. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the ItemChargePurchLine parameter. + /// Specifies the TempTrackingSpecificationChargeAssmt parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerOrder(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ItemJnlLine2: Record "Item Journal Line"; var ItemChargePurchLine: Record "Purchase Line"; var TempTrackingSpecificationChargeAssmt: Record "Tracking Specification" temporary; CommitIsSupressed: Boolean; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargeLineProcedure. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargeLineProcedure(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemLine(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; PurchRcptHeader: Record "Purch. Rcpt. Header"; var RemQtyToBeInvoiced: Decimal; var TempPurchLineGlobal: Record "Purchase Line" temporary; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var RemQtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemJnlLineJobConsumption. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the SourceCode parameter. + /// Specifies the PostJobConsumptionBeforePurch parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemJnlLineJobConsumption(var ItemJournalLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; SourceCode: Code[10]; var PostJobConsumptionBeforePurch: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTracking. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PreciseTotalChargeAmt parameter. + /// Specifies the PreciseTotalChargeAmtACY parameter. + /// Specifies the RoundedPrevTotalChargeAmt parameter. + /// Specifies the RoundedPrevTotalChargeAmtACY parameter. + /// Specifies the IsHandled parameter. + /// Specifies the RemQtyToBeInvoiced parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemTracking(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TrackingSpecificationExists: Boolean; var PreciseTotalChargeAmt: Decimal; var PreciseTotalChargeAmtACY: Decimal; var RoundedPrevTotalChargeAmt: Decimal; var RoundedPrevTotalChargeAmtACY: Decimal; var IsHandled: Boolean; RemQtyToBeInvoiced: Decimal) begin end; + /// + /// Event raised by OnBeforePostItemTrackingCheckReceipt. + /// + /// + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingCheckReceipt(PurchaseLine: Record "Purchase Line"; RemQtyToBeInvoiced: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingCheckShipment. + /// + /// + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingCheckShipment(PurchaseLine: Record "Purchase Line"; RemQtyToBeInvoiced: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForReceiptCondition. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the Condition parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForReceiptCondition(PurchaseLine: Record "Purchase Line"; PurchRcptLine: Record "Purch. Rcpt. Line"; var Condition: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingItemChargePerOrder. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the TempTrackingSpecificationChargeAssmtCorrect parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingItemChargePerOrder(var TempTrackingSpecificationChargeAssmt: Record "Tracking Specification" temporary; var IsHandled: Boolean; var ItemJnlLine2: Record "Item Journal Line"; var TempTrackingSpecificationChargeAssmtCorrect: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnBeforePostItemTrackingLineOnPostPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemTrackingLineOnPostPurchLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; TempTrackingSpecification: Record "Tracking Specification" temporary; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForShipmentCondition. + /// + /// + /// Specifies the ReturnShipmentLine parameter. + /// Specifies the Condition parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForShipmentCondition(PurchaseLine: Record "Purchase Line"; ReturnShipmentLine: Record "Return Shipment Line"; var Condition: Boolean) begin end; + /// + /// Event raised by OnBeforePostResourceLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the JobPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostResourceLine(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; SrcCode: Code[10]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocNo: Code[20]; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; JobPurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePostUpdateOrderLine. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PurchSetup parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateOrderLine(PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; CommitIsSuppressed: Boolean; PurchSetup: Record "Purchases & Payables Setup") begin end; + /// + /// Event raised by OnBeforePostUpdateOrderLineModifyTempLine. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateOrderLineModifyTempLine(var TempPurchaseLine: Record "Purchase Line" temporary; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSuppressed: Boolean; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeRevertWarehouseEntry. + /// + /// + /// Specifies the JobNo parameter. + /// Specifies the PostJobConsumption parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeRevertWarehouseEntry(var WarehouseJournalLine: Record "Warehouse Journal Line"; JobNo: Code[20]; PostJobConsumption: Boolean; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSendICDocument. + /// + /// + /// Specifies the ModifyHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSendICDocument(var PurchHeader: Record "Purchase Header"; var ModifyHeader: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSumPurchLines2. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the VATAmountLine parameter. + /// Specifies the InsertPurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforeSumPurchLines2(QtyType: Option; var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var VATAmountLine: Record "VAT Amount Line"; InsertPurchLine: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSumPurchLinesTemp. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeSumPurchLinesTemp(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeTempDropShptPostBufferInsert. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTempDropShptPostBufferInsert(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; PurchaseLine: Record "Purchase Line"; var ItemLedgShptEntryNo: Integer) begin end; + /// + /// Event raised by OnBeforeTempPrepmtPurchLineInsert. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTempPrepmtPurchLineInsert(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var TempPurchLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnBeforeTempPrepmtPurchLineModify. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTempPrepmtPurchLineModify(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var TempPurchLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnBeforeTransferReservToItemJnlLine. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the PurchLine parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the ApplySpecificItemTracking parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTransferReservToItemJnlLine(var SalesOrderLine: Record "Sales Line"; var ItemJnlLine: Record "Item Journal Line"; PurchLine: Record "Purchase Line"; QtyToBeShippedBase: Decimal; var ApplySpecificItemTracking: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateAssocOrder. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(true, false)] local procedure OnBeforeUpdateAssocOrder(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var IsHandled: Boolean; SuppressCommit: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the Receive parameter. + /// Specifies the Ship parameter. + /// Specifies the Invoice parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateBlanketOrderLine(PurchLine: Record "Purchase Line"; Receive: Boolean; Ship: Boolean; Invoice: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePostingNos. + /// + /// + /// Specifies the ModifyHeader parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the IsHandled parameter. + /// Specifies the DateOrderSeriesUsed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePostingNos(var PurchHeader: Record "Purchase Header"; var ModifyHeader: Boolean; SuppressCommit: Boolean; var IsHandled: Boolean; var DateOrderSeriesUsed: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePurchaseHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePurchaseHeader(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; GenJnlLineDocType: Option; var IsHandled: Boolean; var PurchaseHeader: Record "Purchase Header"; GenJnlLineDocNo: Code[20]; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePurchLineBeforePost. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePurchLineBeforePost(var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; WhseShip: Boolean; WhseReceive: Boolean; RoundingLineInserted: Boolean; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateInvoicedQtyOnPurchRcptLine. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateInvoicedQtyOnPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; CommitIsSupressed: Boolean; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeUpdatePrepmtPurchLineWithRounding. + /// + /// + /// Specifies the TotalRoundingAmount parameter. + /// Specifies the TotalPrepmtAmount parameter. + /// Specifies the FinalInvoice parameter. + /// Specifies the PricesInclVATRoundingAmount parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePrepmtPurchLineWithRounding(var PrepmtPurchLine: Record "Purchase Line"; TotalRoundingAmount: array[2] of Decimal; TotalPrepmtAmount: array[2] of Decimal; FinalInvoice: Boolean; PricesInclVATRoundingAmount: array[2] of Decimal; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeUpdateQtyToInvoiceForOrder. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToInvoiceForOrder(var PurchHeader: Record "Purchase Header"; TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateQtyToInvoiceForReturnOrder. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToInvoiceForReturnOrder(var PurchHeader: Record "Purchase Header"; TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateQtyToBeInvoicedForReceipt. + /// + /// + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToBeInvoicedForReceipt(var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; PurchLine: Record "Purchase Line"; PurchRcptLine: Record "Purch. Rcpt. Line"; InvoicingTrackingSpecification: Record "Tracking Specification"; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateQtyToBeInvoicedForReturnShipment. + /// + /// + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ReturnShipmentLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToBeInvoicedForReturnShipment(var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; PurchLine: Record "Purchase Line"; ReturnShipmentLine: Record "Return Shipment Line"; InvoicingTrackingSpecification: Record "Tracking Specification"; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateJobConsumptionReservationApplToItemEntry. + /// + /// + /// Specifies the ItemJournalLine parameter. + /// Specifies the IsNonInventoriableItem parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateJobConsumptionReservationApplToItemEntry(var TempReservEntryJobCons: Record "Reservation Entry" temporary; var ItemJournalLine: Record "Item Journal Line"; IsNonInventoriableItem: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLine. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLine(var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineFixedAsset. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineFixedAsset(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineItemCharge. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineItemCharge(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineJob. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineJob(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineOthers. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineOthers(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestStatusRelease. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestStatusRelease(PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateItemChargeAssgnt. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateItemChargeAssgnt(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateHandledICInboxTransaction. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateHandledICInboxTransaction(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeValidatePostingAndDocumentDate. + /// + /// + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeValidatePostingAndDocumentDate(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnSetPostingDateExists. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PostingDateExists parameter. + /// Specifies the ReplacePostingDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnSetPostingDateExists(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; var PostingDateExists: Boolean; var ReplacePostingDate: Boolean; var PostingDate: Date; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeWhseHandlingRequired. + /// + /// + /// Specifies the Required parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeWhseHandlingRequired(PurchaseLine: Record "Purchase Line"; var Required: Boolean; var IsHandled: Boolean) begin @@ -10422,72 +11989,162 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforeGetCountryCode. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the CountryRegionCode parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetCountryCode(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var CountryRegionCode: Code[10]; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeShouldPostWhseJnlLine. + /// + /// + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlLine parameter. + /// Specifies the TempWhseJnlLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeShouldPostWhseJnlLine(PurchLine: Record "Purchase Line"; var Result: Boolean; var IsHandled: Boolean; var ItemJnlLine: Record "Item Journal Line"; var TempWhseJnlLine: Record "Warehouse Journal Line" temporary; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnCalcInvDiscountSetFilter. + /// + /// + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvDiscountSetFilter(var PurchLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterClearPostingFromWhseRef. + /// + /// + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterClearPostingFromWhseRef(var PurchHeader: Record "Purchase Header"; var InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetPostingFlags. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetPostingFlags(var PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary); begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeSetPostingFlags. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeSetPostingFlags(var PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetSourceCode. + /// + /// + /// Specifies the SourceCodeSetup parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetSourceCode(var PurchHeader: Record "Purchase Header"; SourceCodeSetup: Record "Source Code Setup"; var SrcCode: Code[10]); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterArchiveUnpostedOrder. + /// + /// + /// Specifies the Currency parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterArchiveUnpostedOrder(var PurchHeader: Record "Purchase Header"; Currency: Record "Currency"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCalcInvDiscount. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the RefreshNeeded parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCalcInvDiscount(var PurchaseHeader: Record "Purchase Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseReceive: Boolean; WhseShip: Boolean; var RefreshNeeded: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeInsertPostedPayments. + /// + /// + /// Specifies the PaymentTermsLines parameter. + /// Specifies the PostedPayments parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeInsertPostedPayments(PurchaseHeader: Record "Purchase Header"; PaymentTermsLines: Record "Payment Lines"; var PostedPayments: Record "Posted Payment Lines") begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeInsertPaymentJournalLine. + /// + /// + /// Specifies the PaymentTermsLine parameter. + /// Specifies the PaymentJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeInsertPaymentJournalLine(PurchaseHeader: Record "Purchase Header"; PaymentTermsLine: Record "Payment Lines"; var PaymentJournalLine: Record "Payment Lines") begin end; + /// + /// Event raised by OnCheckAndUpdateAssocOrderPostingDateOnBeforeValidateDocumentDate. + /// + /// + /// Specifies the OriginalDocumentDate parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateAssocOrderPostingDateOnBeforeValidateDocumentDate(var SalesHeader: Record "Sales Header"; var OriginalDocumentDate: Date) begin end; + /// + /// Event raised by OnCheckAssociatedOrderLinesOnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssociatedOrderLinesOnAfterSetFilters(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnCheckAssociatedOrderLinesOnAfterCheckDimensions. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssociatedOrderLinesOnAfterCheckDimensions(PurchaseHeader: Record "Purchase Header"; SalesHeader: Record "Sales Header"; var PurchaseLine: Record "Purchase Line"; TempSalesLine: Record "Sales Line" temporary) begin @@ -10495,72 +12152,146 @@ codeunit 90 "Purch.-Post" #if not CLEAN28 [Obsolete('This event is no longer used.', '28.0')] + /// + /// Event raised by OnCheckAssocOrderLinesOnBeforeCheckOrderLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssocOrderLinesOnBeforeCheckOrderLine(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; #endif + /// + /// Event raised by OnCheckExternalDocumentNumberOnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnCheckExternalDocumentNumberOnAfterSetFilters(var VendLedgEntry: Record "Vendor Ledger Entry"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForShipOnAfterTempPurchLineSetFilters. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForShipOnAfterTempPurchLineSetFilters(PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForReceiveOnAfterTempPurchLineSetFilters. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForReceiveOnAfterTempPurchLineSetFilters(PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCheckWarehouseOnAfterSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnCheckWarehouseOnAfterSetFilters(var TempItemPurchLine: Record "Purchase Line"); begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeLoop. + /// + /// + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeLoop(var TempPurchLine: Record "Purchase Line" temporary; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeCheckIfEmpty. + /// + /// [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeCheckIfEmpty(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCopyToTempLinesOnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnCopyToTempLinesOnAfterSetFilters(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterInitTempPrepmtPurchLineFromPurchHeader. + /// + /// [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterInitTempPrepmtPurchLineFromPurchHeader(var TempPrepmtPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterTempPurchLineSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterTempPurchLineSetFilters(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterTempPrepmtPurchLineSetFilters. + /// + /// + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterTempPrepmtPurchLineSetFilters(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnDivideAmountOnAfterClearAmounts. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterClearAmounts(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var PurchLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnAfterCalcLineAmountAndLineDiscountAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterCalcLineAmountAndLineDiscountAmount(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchaseLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineRemainderModify. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineRemainderModify(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency) begin @@ -10571,227 +12302,589 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnGetItemChargeLineOnAfterGet. + /// + /// + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnGetItemChargeLineOnAfterGet(var ItemChargePurchLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnGetPurchLinesOnAfterFillTempLines. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnGetPurchLinesOnAfterFillTempLines(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyType: Option; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnInsertICGenJnlLineOnAfterCopyDocumentFields. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempICGenJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertICGenJnlLineOnAfterCopyDocumentFields(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var TempICGenJournalLine: Record "Gen. Journal Line") begin end; + /// + /// Event raised by OnInsertAssocOrderChargeOnBeforeInsert. + /// + /// + /// Specifies the NewItemChargeAssignmentPurch parameter. [IntegrationEvent(false, false)] local procedure OnInsertAssocOrderChargeOnBeforeInsert(TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)"; var NewItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)") begin end; + /// + /// Event raised by OnInsertICGenJnlLineOnBeforeICGenJnlLineInsert. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnInsertICGenJnlLineOnBeforeICGenJnlLineInsert(var TempICGenJournalLine: Record "Gen. Journal Line" temporary; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnInsertReceiptLineOnAfterGetWhseRcptLine. + /// + /// + /// Specifies the PurchRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterGetWhseRcptLine(var WhseRcptLine: Record "Warehouse Receipt Line"; PurchRcptLine: Record "Purch. Rcpt. Line") begin end; + /// + /// Event raised by OnInsertReceiptLineOnAfterInitPurchRcptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the PostedWhseRcptHeader parameter. + /// Specifies the WhseRcptHeader parameter. + /// Specifies the WhseRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterInitPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; xPurchLine: Record "Purchase Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var CostBaseAmount: Decimal; PostedWhseRcptHeader: Record "Posted Whse. Receipt Header"; WhseRcptHeader: Record "Warehouse Receipt Header"; var WhseRcptLine: Record "Warehouse Receipt Line") begin end; + /// + /// Event raised by OnInsertReceiptLineOnAfterCalcShouldGetWhseRcptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PostedWhseRcptHeader parameter. + /// Specifies the WhseRcptHeader parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ShouldGetWhseRcptLine parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the PurchRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterCalcShouldGetWhseRcptLine(PurchRcptHeader: Record "Purch. Rcpt. Header"; PurchLine: Record "Purchase Line"; PostedWhseRcptHeader: Record "Posted Whse. Receipt Header"; WhseRcptHeader: Record "Warehouse Receipt Header"; CostBaseAmount: Decimal; WhseReceive: Boolean; WhseShip: Boolean; var ShouldGetWhseRcptLine: Boolean; xPurchLine: Record "Purchase Line"; var PurchRcptLine: Record "Purch. Rcpt. Line") begin end; + /// + /// Event raised by OnInsertReceiptLineOnAfterCalcShouldGetWhseShptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PostedWhseShptHeader parameter. + /// Specifies the WhseShptHeader parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ShouldGetWhseShptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterCalcShouldGetWhseShptLine(PurchRcptHeader: Record "Purch. Rcpt. Header"; PurchLine: Record "Purchase Line"; PostedWhseShptHeader: Record "Posted Whse. Shipment Header"; WhseShptHeader: Record "Warehouse Shipment Header"; CostBaseAmount: Decimal; WhseReceive: Boolean; WhseShip: Boolean; var ShouldGetWhseShptLine: Boolean) begin end; + /// + /// Event raised by OnInsertReturnShipmentLineOnAfterGetWhseShptLine. + /// + /// + /// Specifies the ReturnShptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReturnShipmentLineOnAfterGetWhseShptLine(var WhseShptLine: Record "Warehouse Shipment Line"; ReturnShptLine: Record "Return Shipment Line") begin end; + /// + /// Event raised by OnInsertReturnShipmentLineOnAfterReturnShptLineInit. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the PurchLine parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnInsertReturnShipmentLineOnAfterReturnShptLineInit(var ReturnShptHeader: Record "Return Shipment Header"; var ReturnShptLine: Record "Return Shipment Line"; var PurchLine: Record "Purchase Line"; var xPurchLine: Record "Purchase Line"; var CostBaseAmount: Decimal; WhseShip: Boolean; WhseReceive: Boolean); begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforePost. + /// + /// + /// Specifies the SalesOrderLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforePost(var ItemJournalLine: Record "Item Journal Line"; SalesOrderLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnAfterUpdateBlanketOrderLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the SalesOrderHeader parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the SrcCode parameter. + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnAfterUpdateBlanketOrderLine(var PurchaseHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer"; var SalesOrderLine: Record "Sales Line"; var SalesOrderHeader: record "Sales Header"; var SalesShptLine: record "Sales Shipment Line"; SalesShptHeader: Record "Sales Shipment Header"; SrcCode: Code[10]; Currency: Record Currency) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the SalesShptLine parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnBeforeUpdateBlanketOrderLine(var SalesOrderLine: Record "Sales Line"; SalesShptLine: Record "Sales Shipment Line") begin end; - [IntegrationEvent(false, false)] + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnAfterProcessDropShptPostBuffer. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the TempTrackingSpecification parameter. + [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnAfterProcessDropShptPostBuffer(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; PurchRcptHeader: Record "Purch. Rcpt. Header"; SalesShptLine: Record "Sales Shipment Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary); begin end; + /// + /// Event raised by OnPostDistributeItemChargeOnAfterCalcAmountToAssign. + /// + /// + /// Specifies the TempItemLedgerEntry parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the AmountToAssign parameter. + /// Specifies the Sign parameter. + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostDistributeItemChargeOnAfterCalcAmountToAssign(var PurchaseLine: Record "Purchase Line"; TempItemLedgerEntry: Record "Item Ledger Entry"; QtyToAssign: Decimal; AmountToAssign: Decimal; Sign: Decimal; Factor: Decimal) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterPostItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ItemChargeAssignmentPurch parameter. [IntegrationEvent(true, false)] local procedure OnPostItemChargeOnAfterPostItemJnlLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; ItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)") begin end; + /// + /// Event raised by OnPostItemChargeLineOnAfterPostItemCharge. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchaseLineBackup parameter. + /// Specifies the PurchLine parameter. [IntegrationEvent(true, false)] local procedure OnPostItemChargeLineOnAfterPostItemCharge(var TempItemChargeAssgntPurch: record "Item Charge Assignment (Purch)" temporary; PurchHeader: Record "Purchase Header"; PurchaseLineBackup: Record "Purchase Line"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargeLineOnBeforePostItemCharge. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeLineOnBeforePostItemCharge(var TempItemChargeAssgntPurch: record "Item Charge Assignment (Purch)" temporary; PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var GenJnlLineDocNo: Code[20]) begin end; + /// + /// Event raised by OnPostItemChargeOnBeforePostItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the PurchInvHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnBeforePostItemJnlLine(var PurchaseLineToPost: Record "Purchase Line"; var PurchaseLine: Record "Purchase Line"; QtyToAssign: Decimal; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; PurchInvHeader: Record "Purch. Inv. Header") begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnAfterCopyToItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the GeneralLedgerSetup parameter. + /// Specifies the QtyToInvoice parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnAfterCopyToItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; GeneralLedgerSetup: Record "General Ledger Setup"; QtyToInvoice: Decimal; var TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ReturnRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ReturnRcptLine: Record "Return Receipt Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerSalesRetRcptOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerSalesRetRcptOnBeforeTestJobNo(ReturnReceiptLine: Record "Return Receipt Line"; var IsHandled: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerSalesShptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerSalesShptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var SalesShptLine: Record "Sales Shipment Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerSalesShptOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerSalesShptOnBeforeTestJobNo(SalesShipmentLine: Record "Sales Shipment Line"; var IsHandled: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerRetShptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ReturnShptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetShptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ReturnShptLine: Record "Return Shipment Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRetShptOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetShptOnBeforeTestJobNo(ReturnShipmentLine: Record "Return Shipment Line"; var IsHandled: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerRcptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRcptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var PurchRcptLine: record "Purch. Rcpt. Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRcptOnAfterPurchRcptLineGet. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRcptOnAfterPurchRcptLineGet(PurchRcptLine: Record "Purch. Rcpt. Line"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerTransferOnAfterInitPurchLine2. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerTransferOnAfterInitPurchLine2(TransferReceiptLine: Record "Transfer Receipt Line"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerTransferOnBeforePostItemJnlLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemApplnEntry parameter. + /// Specifies the TransferReceiptLine parameter. + /// Specifies the ItemChargeAssignmentPurch parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerTransferOnBeforePostItemJnlLine(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; ItemApplnEntry: Record "Item Application Entry"; TransferReceiptLine: Record "Transfer Receipt Line"; ItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)") begin end; + /// + /// Event raised by OnPostItemChargePerITTransferOnAfterCollectItemEntryRelation. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TransRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerITTransferOnAfterCollectItemEntryRelation(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; TransRcptLine: Record "Transfer Receipt Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnBeforeTempWhseJnlLine2Find. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnBeforeTempWhseJnlLine2Find(var TempWarehouseJournalLine2: Record "Warehouse Journal Line" temporary; PurchaseLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyDocumentFields. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; PurchRcptHeader: Record "Purch. Rcpt. Header"; GenJnlLineExtDocNo: Code[35]; QtyToBeInvoiced: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforePostItemJnlLineCopyDocumentFields. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforePostItemJnlLineCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; QtyToBeInvoiced: Decimal; QtyToBeReceived: Decimal; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterPostItemJnlLineJobConsumption. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the OriginalItemJnlLine parameter. + /// Specifies the TempReservationEntry parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the PostJobConsumptionBeforePurch parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the TempWhseTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterPostItemJnlLineJobConsumption(var ItemJournalLine: Record "Item Journal Line"; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; OriginalItemJnlLine: Record "Item Journal Line"; var TempReservationEntry: Record "Reservation Entry" temporary; var TrackingSpecification: Record "Tracking Specification" temporary; QtyToBeInvoiced: Decimal; QtyToBeReceived: Decimal; var PostJobConsumptionBeforePurch: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyItemCharge. + /// + /// + /// Specifies the TempItemChargeAssgntPurch parameter. [IntegrationEvent(true, false)] local procedure OnPostItemJnlLineOnAfterCopyItemCharge(var ItemJournalLine: Record "Item Journal Line"; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeCopyDocumentFields. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforePostWhseJnlLine. + /// + /// + /// Specifies the TempWhseJnlLine parameter. + /// Specifies the ItemJnlLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforePostWhseJnlLine(TempHandlingSpecification: Record "Tracking Specification"; var TempWhseJnlLine: Record "Warehouse Journal Line"; ItemJnlLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumptionOnBeforeRunItemJnlPostLineWithReservation. + /// + /// + /// Specifies the TempReservationEntry parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(true, false)] local procedure OnPostItemJnlLineJobConsumptionOnBeforeRunItemJnlPostLineWithReservation(var ItemJournalLine: Record "Item Journal Line"; var TempReservationEntry: Record "Reservation Entry" temporary; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumption. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemJournalLine parameter. + /// Specifies the TempPurchReservEntry parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the PurchItemLedgEntryNo parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineJobConsumption(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; ItemJournalLine: Record "Item Journal Line"; var TempPurchReservEntry: Record "Reservation Entry" temporary; QtyToBeInvoiced: Decimal; QtyToBeReceived: Decimal; var TempTrackingSpecification: Record "Tracking Specification" temporary; PurchItemLedgEntryNo: Integer; var IsHandled: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterSetFactor. + /// + /// + /// Specifies the Factor parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterSetFactor(var PurchaseLine: Record "Purchase Line"; var Factor: Decimal; var GenJnlLineExtDocNo: Code[35]; var ItemJournalLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterPrepareItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterPrepareItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; PreviewMode: Boolean; var GenJnlLineDocNo: code[20]; TrackingSpecification: Record "Tracking Specification"; QtyToBeReceived: Decimal; QtyToBeInvoiced: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnCopyProdOrder. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the SuppressCommit parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnCopyProdOrder(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; QtyToBeReceived: Decimal; QtyToBeInvoiced: Decimal; SuppressCommit: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumptionOnBeforeJobPost. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the SrcCode parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the IsHandled parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineJobConsumptionOnBeforeJobPost( var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; @@ -10800,191 +12893,471 @@ codeunit 90 "Purch.-Post" begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnAfterPostRevert. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnAfterPostRevert(var TempWhseJnlLine: Record "Warehouse Journal Line" temporary; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnBeforePostSingleLine. + /// + /// + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the TempWhseJnlLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnBeforePostSingleLine(WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean; var TempWhseJnlLine: Record "Warehouse Journal Line" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the QtyToBeReceivedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck(var ItemJnlLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; QtyToBeReceived: Decimal; WhseReceive: Boolean; var TempWhseRcptHeader: Record "Warehouse Receipt Header" temporary; QtyToBeReceivedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeItemJnlPostLineRunWithCheck. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the DropShipOrder parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeReceivedBase parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeItemJnlPostLineRunWithCheck(var ItemJnlLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; DropShipOrder: Boolean; PurchaseHeader: Record "Purchase Header"; WhseReceive: Boolean; QtyToBeReceived: Decimal; QtyToBeReceivedBase: Decimal; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeInitAmount. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeInitAmount(var ItemJnlLine: Record "Item Journal Line"; PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine(var ItemChargePurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemLineOnBeforePostShipReceive. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemLineOnBeforePostShipReceive(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforeReceiptInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforeReceiptInvoiceErr(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforePostItemTrackingForReceiptCondition. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforePostItemTrackingForReceiptCondition(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchRcptLine: Record "Purch. Rcpt. Line"; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnAfterPurchRcptLineTestFields. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnAfterPurchRcptLineTestFields(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnAfterPurchRcptLineSetFilters. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnAfterPurchRcptLineSetFilters(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeReturnShipmentInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeReturnShipmentInvoiceErr(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostPurchLineOnAfterSetEverythingInvoiced. + /// + /// + /// Specifies the EverythingInvoiced parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the AmountsOnly parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterSetEverythingInvoiced(var PurchaseLine: Record "Purchase Line"; var EverythingInvoiced: Boolean; PurchaseHeader: Record "Purchase Header"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; var AmountsOnly: Boolean) begin end; + /// + /// Event raised by OnPostPurchLineOnAfterPostByType. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterPostByType(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnAfterCollectPurchaseLineReservEntries. + /// + /// + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCollectPurchaseLineReservEntries(var JobReservationEntry: Record "Reservation Entry"; ItemJournalLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnAfterGetPurchOrderLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetPurchOrderLine(var PurchaseLineOrder: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; PurchRcptLine: Record "Purch. Rcpt. Line") begin end; + /// + /// Event raised by OnPostPurchLineOnBeforePostByType. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLine parameter. + /// Specifies the PurchLineACY parameter. + /// Specifies the Sourcecode parameter. [IntegrationEvent(true, false)] local procedure OnPostPurchLineOnBeforePostByType(PurchHeader: Record "Purchase Header"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; PurchLine: Record "Purchase Line"; PurchLineACY: Record "Purchase Line"; Sourcecode: Code[10]) begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertCrMemoLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchCrMemoLine parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeInsertCrMemoLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; xPurchaseLine: Record "Purchase Line"); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertInvoiceLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchInvLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeInsertInvoiceLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; var PurchInvLine: Record "Purch. Inv. Line"); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertReceiptLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(true, false)] local procedure OnPostPurchLineOnBeforeInsertReceiptLine(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; PurchRcptHeader: Record "Purch. Rcpt. Header"; RoundingLineInserted: Boolean; CostBaseAmount: Decimal; xPurchaseLine: Record "Purchase Line"; var ReturnShipmentHeader: Record "Return Shipment Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var ItemLedgShptEntryNo: Integer; SrcCode: Code[10]; PreviewMode: Boolean; var WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseReceive: Boolean; WhseShip: Boolean; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; GenJnlLineDocNo: Code[20]); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the PurchRcptHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeInsertReturnShipmentLine(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; ReturnShptHeader: Record "Return Shipment Header"; TempPurchLineGlobal: Record "Purchase Line"; RoundingLineInserted: Boolean; xPurchaseLine: Record "Purchase Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeRoundAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeRoundAmount(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnPostPurchLineOnTypeCaseElse. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the SourceCode parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnTypeCaseElse(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; SourceCode: Code[10]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary); begin end; + /// + /// Event raised by OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDoc. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDoc(var PurchInvLine: Record "Purch. Inv. Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDocCrMemo. + /// + /// + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDocCrMemo(var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnAfterPurchOrderLineModify. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the ReturnShptLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnAfterPurchOrderLineModify(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary; var ReturnShptLine: Record "Return Shipment Line") begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnAfterResetTempLines. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnAfterResetTempLines(var TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnBeforeInitQtyToInvoice(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterPurchOrderLineGet. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the PurchOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterPurchOrderLineGet(var TempPurchLine: Record "Purchase Line" temporary; PurchRcptLine: Record "Purch. Rcpt. Line"; PurchOrderLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterPurchOrderLineModify. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchOrderLine parameter. + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterPurchOrderLineModify(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary; var PurchOrderLine: Record "Purchase Line"; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeUpdateBlanketOrderLine(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitOutstanding(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitQtyToInvoice(var TempPurchaseLine: Record "Purchase Line" temporary; WhseShip: Boolean; WhseReceive: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeLoop. + /// + /// + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeLoop(PurchHeader: Record "Purchase Header"; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnPurchHeaderReceive. + /// + /// + /// Specifies the PurchRcptHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnPurchHeaderReceive(var TempPurchLine: Record "Purchase Line"; PurchRcptHeader: Record "Purch. Rcpt. Header") begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnSetDefaultQtyBlank. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchPost parameter. + /// Specifies the SetDefaultQtyBlank parameter. [IntegrationEvent(true, false)] local procedure OnPostUpdateOrderLineOnSetDefaultQtyBlank(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary; PurchPost: Record "Purchases & Payables Setup"; var SetDefaultQtyBlank: Boolean) begin @@ -10992,177 +13365,391 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnProcessAssocItemJnlLineOnAfterInitTempDropShptPostBuffer. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnProcessAssocItemJnlLineOnAfterInitTempDropShptPostBuffer(var PurchLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnPostWithhSocSecOnBeforeCompWithhTaxInsert. + /// + /// + /// Specifies the PurchWithhContribution parameter. [IntegrationEvent(false, false)] local procedure OnPostWithhSocSecOnBeforeCompWithhTaxInsert(var ComputedWithholdingTax: Record "Computed Withholding Tax"; PurchWithhContribution: Record "Purch. Withh. Contribution") begin end; + /// + /// Event raised by OnReleasePurchDocumentOnBeforeSetStatus. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnReleasePurchDocumentOnBeforeSetStatus(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRoundAmountOnBeforeCalculateLCYAmounts. + /// + /// + /// Specifies the PurchLineACY parameter. + /// Specifies the PurchHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TotalPurchaseLine parameter. + /// Specifies the TotalPurchaseLineLCY parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnBeforeCalculateLCYAmounts(var xPurchLine: Record "Purchase Line"; var PurchLineACY: Record "Purchase Line"; PurchHeader: Record "Purchase Header"; var IsHandled: Boolean; TotalPurchaseLine: Record "Purchase Line"; TotalPurchaseLineLCY: Record "Purchase Line"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnRoundAmountOnBeforeIncrAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the CurrExchRate parameter. + /// Specifies the NoVAT parameter. + /// Specifies the IsHandled parameter. + /// Specifies the NonDeductibleVAT parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnBeforeIncrAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchLineQty: Decimal; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line"; var xPurchaseLine: Record "Purchase Line"; var CurrExchRate: Record "Currency Exchange Rate"; var NoVAT: Boolean; var IsHandled: Boolean; var NonDeductibleVAT: Codeunit "Non-Deductible VAT") begin end; + /// + /// Event raised by OnRunOnBeforeFinalizePosting. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeFinalizePosting(var PurchaseHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShipmentHeader: Record "Return Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforeMakeInventoryAdjustment. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeMakeInventoryAdjustment(var PurchaseHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; PreviewMode: Boolean; PurchRcptHeader: Record "Purch. Rcpt. Header"; PurchInvHeader: Record "Purch. Inv. Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumPurchLines2OnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnAfterSetFilters(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnSumPurchLines2OnAfterDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnAfterDivideAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping; PurchLineQty: Decimal; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary) begin end; + /// + /// Event raised by OnSumPurchLines2OnBeforeDivideAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyType parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnBeforeDivideAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping) begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterSalesOrderHeaderModify. + /// + /// + /// Specifies the SalesSetup parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterSalesOrderHeaderModify(var SalesOrderHeader: Record "Sales Header"; var SalesSetup: Record "Sales & Receivables Setup") begin end; + /// + /// Event raised by OnUpdateAssociatedSalesOrderOnBeforeClearTempDropShptPostBuffer. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateAssociatedSalesOrderOnBeforeClearTempDropShptPostBuffer(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer") begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterSalesOrderLineModify. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesOrderHeader parameter. + /// Specifies the SalesShptHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterSalesOrderLineModify(var SalesOrderLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesOrderHeader: Record "Sales Header"; SalesShptHeader: Record "Sales Shipment Header") begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterOrderNoClearFilter. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterOrderNoClearFilter(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnUpdateAssocOrderOnBeforeSalesOrderLineModify. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnBeforeSalesOrderLineModify(var SalesOrderLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheck. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheck(var BlanketOrderPurchLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeInitOutstanding(var BlanketOrderPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnAfterCheckBlanketOrderPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnAfterCheckBlanketOrderPurchLine(var BlanketOrderPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnUpdatePurchLineBeforePostOnAfterCalcInitQtyToInvoiceNeeded. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the InitQtyToInvoiceNeeded parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePurchLineBeforePostOnAfterCalcInitQtyToInvoiceNeeded(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var InitQtyToInvoiceNeeded: Boolean) begin end; + /// + /// Event raised by OnUpdatePostingNosOnBeforeCheckExternalDocNo. + /// + /// + /// Specifies the PostingDate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnBeforeCheckExternalDocNo(var VendLedgEntry: Record "Vendor Ledger Entry"; PostingDate: Date; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateWhseDocumentsOnAfterUpdateWhseRcpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateWhseDocumentsOnAfterUpdateWhseRcpt(var WarehouseReceiptHeader: Record "Warehouse Receipt Header") begin end; + /// + /// Event raised by OnUpdateWhseDocumentsOnAfterUpdateWhseShpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateWhseDocumentsOnAfterUpdateWhseShpt(var WarehouseShipmentHeader: Record "Warehouse Shipment Header") begin end; + /// + /// Event raised by OnBeforeRunItemJnlPostLineWithReservation. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeRunItemJnlPostLineWithReservation(var ItemJournalLine: Record "Item Journal Line"); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterCopyAndCheckItemCharge. + /// + /// [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterCopyAndCheckItemCharge(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterCalcCopyAndCheckItemChargeNeeded. + /// + /// + /// Specifies the CopyAndCheckItemChargeNeeded parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterCalcCopyAndCheckItemChargeNeeded(var PurchHeader: Record "Purchase Header"; var CopyAndCheckItemChargeNeeded: Boolean) begin end; + /// + /// Event raised by OnUpdatePostingNosOnBeforeUpdatePostingNo. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnBeforeUpdatePostingNo(PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; var ModifyHeader: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforePaymentsInsert. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforePaymentsInsert(var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdatePostingNosOnAfterCalcShouldUpdateReceivingNo. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the ShouldUpdateReceivingNo parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnAfterCalcShouldUpdateReceivingNo(PurchaseHeader: Record "Purchase Header"; PreviewMode: Boolean; var ModifyHeader: Boolean; var ShouldUpdateReceivingNo: Boolean) begin end; + /// + /// Event raised by OnCreatePositiveOnBeforeWhseJnlPostLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnCreatePositiveOnBeforeWhseJnlPostLine(var WhseJnlLine: Record "Warehouse Journal Line") begin end; + /// + /// Event raised by OnCreatePostedWhseShptLineOnBeforeCreatePostedShptLine. + /// + /// + /// Specifies the WarehouseShipmentLine parameter. + /// Specifies the PostedWhseShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnCreatePostedWhseShptLineOnBeforeCreatePostedShptLine(var ReturnShipmentLine: Record "Return Shipment Line"; var WarehouseShipmentLine: Record "Warehouse Shipment Line"; PostedWhseShipmentHeader: Record "Posted Whse. Shipment Header") begin end; + /// + /// Event raised by OnCreatePostedRcptLineOnBeforeCreatePostedRcptLine. + /// + /// + /// Specifies the WarehouseReceiptLine parameter. + /// Specifies the PostedWhseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnCreatePostedRcptLineOnBeforeCreatePostedRcptLine(var ReturnShipmentLine: Record "Return Shipment Line"; var WarehouseReceiptLine: Record "Warehouse Receipt Line"; PostedWhseReceiptHeader: Record "Posted Whse. Receipt Header") begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnBeforeTempTrackingSpecificationModify. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnBeforeTempTrackingSpecificationModify(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification. + /// + /// [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification(var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnBeforePostUpdateInvoiceLine. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateInvoiceLine(var TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean; var PurchaseHeader: Record "Purchase Header") begin @@ -11170,102 +13757,228 @@ codeunit 90 "Purch.-Post" #if not CLEAN28 [Obsolete('This event is no longer used.', '28.0')] + /// + /// Event raised by OnBeforeCheckAssociatedSalesOrderLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckAssociatedSalesOrderLine(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; #endif + /// + /// Event raised by OnBeforeCheckAssociatedOrderLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeCheckAssociatedOrderLines(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeCheckReceiveInvoiceShip. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckReceiveInvoiceShip(var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingItemChargePerOrderOnAfterCalcFactor. + /// + /// + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the TempTrackingSpecificationChargeAssmt parameter. + /// Specifies the SignFactor parameter. + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingItemChargePerOrderOnAfterCalcFactor(var NonDistrItemJnlLine: Record "Item Journal Line"; var ItemJnlLine2: Record "Item Journal Line"; var TempTrackingSpecificationChargeAssmt: Record "Tracking Specification"; SignFactor: Integer; Factor: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingItemChargePerOrderOnAfterUpdateItemJnlLine2LocationCode. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostItemTrackingItemChargePerOrderOnAfterUpdateItemJnlLine2LocationCode(var ItemJnlLine2: Record "Item Journal Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnAfterReturnShptLineReset. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnAfterReturnShptLineReset(var ReturnShptLine: Record "Return Shipment Line"; PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeSetItemEntryRelationForShipment. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeSetItemEntryRelationForShipment(var ItemEntryRelation: Record "Item Entry Relation"; var ReturnShptLine: Record "Return Shipment Line"; var InvoicingTrackingSpecification: Record "Tracking Specification"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding(ReturnShptLine: Record "Return Shipment Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnAfterFillTempLines. + /// + /// [IntegrationEvent(true, false)] local procedure OnRunOnAfterFillTempLines(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnRunOnAfterInvoiceRounding. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(true, false)] local procedure OnRunOnAfterInvoiceRounding(var PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnRunOnBeforeFillTempLines. + /// + /// + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(true, false)] local procedure OnRunOnBeforeFillTempLines(PreviewMode: Boolean; var GenJnlLineDocNo: Code[20]) begin end; + /// + /// Event raised by OnRunOnAfterPostPurchLine. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the ReturnShipmentHeader parameter. [IntegrationEvent(true, false)] local procedure OnRunOnAfterPostPurchLine(var TempPurchLineGlobal: Record "Purchase Line" temporary; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var ReturnShipmentHeader: Record "Return Shipment Header") begin end; + /// + /// Event raised by OnAfterCalcInvDiscount. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(true, false)] local procedure OnAfterCalcInvDiscount(PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostGLAccICLineOnBeforeCheckAndInsertICGenJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the ICGenJnlLineNo parameter. [IntegrationEvent(false, false)] local procedure OnPostGLAccICLineOnBeforeCheckAndInsertICGenJnlLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; ICGenJnlLineNo: Integer) begin end; + /// + /// Event raised by OnPostGLAccICLineOnAfterCreateJobPurchLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostGLAccICLineOnAfterCreateJobPurchLine(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostItemJnlLineTrackingOnBeforeTempHandlingSpecificationFind. + /// + /// + /// Specifies the TempHandlingSpecification parameter. [IntegrationEvent(true, false)] local procedure OnPostItemJnlLineTrackingOnBeforeTempHandlingSpecificationFind(PurchLine: Record "Purchase Line"; var TempHandlingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnFinalizePostingOnAfterUpdateItemChargeAssgnt. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the TempPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(true, false)] local procedure OnFinalizePostingOnAfterUpdateItemChargeAssgnt(var PurchHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var EverythingInvoiced: Boolean; var TempPurchLine: Record "Purchase Line" temporary; var TempPurchLineGlobal: Record "Purchase Line" temporary; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeInsertValueEntryRelation. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(true, false)] local procedure OnFinalizePostingOnBeforeInsertValueEntryRelation(var PurchHeader: Record "Purchase Header"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the TempPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(true, false)] local procedure OnFinalizePostingOnBeforeInsertTrackingSpecification(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; PurchHeader: Record "Purchase Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; EverythingInvoiced: Boolean; var TempPurchLine: Record "Purchase Line"; var TempPurchLineGlobal: Record "Purchase Line") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeUpdateWhseDocuments. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the WarehouseReceive parameter. + /// Specifies the WarehouseShip parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeUpdateWhseDocuments(var PurchaseHeader: Record "Purchase Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; WarehouseReceive: Boolean; WarehouseShip: Boolean; var IsHandled: Boolean) @@ -11275,665 +13988,1486 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnFinalizePostingOnBeforeCommit. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeCommit(PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertReceiptLineOnBeforeCreatePostedRcptLine. + /// + /// + /// Specifies the WarehouseReceiptLine parameter. + /// Specifies the PostedWhseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnBeforeCreatePostedRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var WarehouseReceiptLine: Record "Warehouse Receipt Line"; PostedWhseReceiptHeader: Record "Posted Whse. Receipt Header") begin end; + /// + /// Event raised by OnInsertReceiptLineOnBeforeCreatePostedShptLine. + /// + /// + /// Specifies the WarehouseShipmentLine parameter. + /// Specifies the PostedWhseShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnBeforeCreatePostedShptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var WarehouseShipmentLine: Record "Warehouse Shipment Line"; PostedWhseShipmentHeader: Record "Posted Whse. Shipment Header") begin end; - [IntegrationEvent(false, false)] + /// + /// Event raised by OnInsertReceiptLineOnBeforeProcessWhseShptRcpt. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the PurchRcptLine parameter. + [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnBeforeProcessWhseShptRcpt(var PurchLine: Record "Purchase Line"; var IsHandled: Boolean; var CostBaseAmount: Decimal; PurchRcptLine: Record "Purch. Rcpt. Line") begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeArchiveUnpostedOrder. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeArchiveUnpostedOrder(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterInsertPostedHeaders. + /// + /// [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterInsertPostedHeaders(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeReleaseSalesHeader. + /// + /// + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeReleaseSalesHeader(var PurchHeader: Record "Purchase Header"; var SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnAfterReleaseSalesHeader. + /// + /// + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnAfterReleaseSalesHeader(var PurchHeader: Record "Purchase Header"; var SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdatePostingNosOnAfterSetReturnShipmentNoFromNos. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnAfterSetReturnShipmentNoFromNos(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnUpdatePostingNosOnInvoiceOnBeforeSetPostingNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnInvoiceOnBeforeSetPostingNo(var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists. + /// + /// + /// Specifies the PostingDateExists parameter. + /// Specifies the ReplacePostingDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the VATDateExists parameter. + /// Specifies the ReplaceVATDate parameter. + /// Specifies the VATDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists(var PurchHeader: Record "Purchase Header"; var PostingDateExists: Boolean; var ReplacePostingDate: Boolean; var PostingDate: Date; var ReplaceDocumentDate: Boolean; var ModifyHeader: Boolean; var VATDateExists: Boolean; var ReplaceVATDate: Boolean; var VATDate: Date) begin end; + /// + /// Event raised by OnValidateIncludeInVATReportOnAfterValidatePurchaseHeader. + /// + /// + /// Specifies the InclInVATReportErrorLogTemp parameter. [IntegrationEvent(false, false)] local procedure OnValidateIncludeInVATReportOnAfterValidatePurchaseHeader(PurchaseHeaderParam: Record "Purchase Header"; var InclInVATReportErrorLogTemp: Record "Incl. in VAT Report Error Log" temporary) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchaseLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchaseLine(PurchaseLine: Record "Purchase Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchRcptLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchRcptLine(PurchRcptLine: Record "Purch. Rcpt. Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnShipmentLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnShipmentLine(ReturnShipmentLine: Record "Return Shipment Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertReturnShipmentHeader. + /// + /// + /// Specifies the ReturnShptHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReturnShipmentHeader(var PurchHeader: Record "Purchase Header"; var ReturnShptHeader: Record "Return Shipment Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertInvoiceHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Window parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PurchCommentLine parameter. + /// Specifies the RecordLinkManagement parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertInvoiceHeader(var PurchHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var IsHandled: Boolean; var Window: Dialog; var HideProgressWindow: Boolean; var SrcCode: Code[10]; var PurchCommentLine: Record "Purch. Comment Line"; var RecordLinkManagement: Codeunit "Record Link Management") begin end; + /// + /// Event raised by OnBeforeInserCrMemoHeader. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the Window parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the PurchCommentLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInserCrMemoHeader(var PurchHeader: Record "Purchase Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var HideProgressWindow: Boolean; var Window: Dialog; var IsHandled: Boolean; SrcCode: Code[10]; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; var PurchCommentLine: Record "Purch. Comment Line") begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnBeforeCopyComments. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnBeforeCopyComments(var PurchHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesShptHeader: Record "Sales Shipment Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnBeforePostBalancingEntry. + /// + /// + /// Specifies the LineCount parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnBeforePostBalancingEntry(var PurchHeader: Record "Purchase Header"; var LineCount: Integer) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterReceive. + /// + /// + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterReceive(var PurchHeader: Record "Purchase Header"; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeUpdateAssosOrderPostingNos. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the DropShipment parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateAssosOrderPostingNos(var TempPurchLine: Record "Purchase Line" temporary; var PurchHeader: Record "Purchase Header"; var DropShipment: Boolean; var IsHandled: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeUpdateAfterPosting. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeUpdateAfterPosting(var PurchHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var EverythingInvoiced: Boolean; var IsHandled: Boolean; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforePurchOrderLineModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforePurchOrderLineModify(var PurchOrderLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePostPurchLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostPurchLine(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeFindTempPurchLine. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeFindTempPurchLine(var TempPurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"); begin end; + /// + /// Event raised by OnCalcInvoiceOnAfterResetTempLines. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the NewInvoice parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvoiceOnAfterResetTempLines(var PurchHeader: Record "Purchase Header"; var TempPurchLine: Record "Purchase Line" temporary; var NewInvoice: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnAfterPostInvoice. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the Window parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnRunOnAfterPostInvoice(var PurchaseHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var ReturnShipmentHeader: Record "Return Shipment Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PreviewMode: Boolean; var Window: Dialog; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnCopyToTempLinesLoop. + /// + /// [IntegrationEvent(false, false)] local procedure OnCopyToTempLinesLoop(var PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnRunOnBeforePostPurchLine. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforePostPurchLine(var PurchLine: Record "Purchase Line"; var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeValidateICPartnerBusPostingGroups. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeValidateICPartnerBusPostingGroups(var TempICGenJnlLine: Record "Gen. Journal Line" temporary; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterGetCurrency. + /// + /// + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetCurrency(CurrencyCode: Code[10]; var Currency: Record Currency) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterGetPurchPrepmtAccount. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterGetPurchPrepmtAccount(var GLAcc: Record "G/L Account"; var TempPurchaseLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeGetPurchPrepmtAccount. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the GenPostingSetup parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeGetPurchPrepmtAccount(var GLAcc: Record "G/L Account"; var TempPurchaseLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; var GenPostingSetup: Record "General Posting Setup"; CompleteFunctionality: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertReturnEntryRelation. + /// + /// + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReturnEntryRelation(var ReturnShptLine: Record "Return Shipment Line"; var Result: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestPurchLineOnBeforeTestFieldQtyToReceive. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnTestPurchLineOnBeforeTestFieldQtyToReceive(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestPurchLineOnBeforeTestFieldReturnQtyToShip. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnTestPurchLineOnBeforeTestFieldReturnQtyToShip(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnAfterCalcVATAmountLines. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TempVATAmountLine parameter. [IntegrationEvent(false, false)] local procedure OnRunOnAfterCalcVATAmountLines(var PurchaseHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var TempVATAmountLine: Record "VAT Amount Line" temporary) begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforeInitAssocItemJnlLine. + /// + /// + /// Specifies the ItemShptEntryNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforeInitAssocItemJnlLine(var SalesOrderLine: Record "Sales Line"; var ItemShptEntryNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingSpecificationOnBeforeGetItemTrackingSetup. + /// + /// + /// Specifies the ItemTrackingSetup parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingSpecificationOnBeforeGetItemTrackingSetup(var PurchaseLine: Record "Purchase Line"; var ItemTrackingSetup: Record "Item Tracking Setup"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcItemJnlLineToBeReceivedAmounts. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the RemAmt parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcItemJnlLineToBeReceivedAmounts(var ItemJnlLine: Record "Item Journal Line"; var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyToBeReceived: Decimal; var RemAmt: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforeExit. + /// + /// + /// Specifies the ItemShptEntryNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforeExit(SalesOrderHeader: Record "Sales Header"; var ItemShptEntryNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeCalcQty. + /// + /// + /// Specifies the PurchOrderLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeCalcQty(var TempPurchLine: Record "Purchase Line" temporary; var PurchOrderLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnBeforeInsertSalesShptHeader. + /// + /// + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnBeforeInsertSalesShptHeader(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterShouldCalcAmounts. + /// + /// + /// Specifies the ShouldCalcAmounts parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterShouldCalcAmounts(PurchHeader: Record "Purchase Header"; var ShouldCalcAmounts: Boolean; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeDivideAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnAfterUpdateSalesOrderLine. + /// + /// + /// Specifies the SalesOrderHeader parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the SalesShipmentLine parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnAfterUpdateSalesOrderLine(SalesShptHeader: Record "Sales Shipment Header"; SalesOrderHeader: Record "Sales Header"; var SalesOrderLine: Record "Sales Line"; SalesShipmentLine: Record "Sales Shipment Line") begin end; + /// + /// Event raised by OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckPosted. + /// + /// + /// Specifies the ShouldCheckPosted parameter. [IntegrationEvent(false, false)] local procedure OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckPosted(PurchHeader: Record "Purchase Header"; var ShouldCheckPosted: Boolean) begin end; + /// + /// Event raised by OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckUnposted. + /// + /// + /// Specifies the ShouldCheckUnposted parameter. [IntegrationEvent(false, false)] local procedure OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckUnposted(PurchHeader: Record "Purchase Header"; var ShouldCheckUnposted: Boolean) begin end; + /// + /// Event raised by OnAfterCopyToTempLines. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterCopyToTempLines(var TempPurchLine: Record "Purchase Line" temporary; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnBeforeTempPurchLineSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnBeforeTempPurchLineSetFilters(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForShipment. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForShipment(var PurchHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostGLAccICLineOnBeforeCreateJobPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostGLAccICLineOnBeforeCreateJobPurchLine(var PurchHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeIsItemChargeLineWithQuantityToInvoice. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeIsItemChargeLineWithQuantityToInvoice(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerRcpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRcpt(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterGetAppliedOutboundItemLedgEntryNo. + /// + /// + /// Specifies the ItemApplicationEntry parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetAppliedOutboundItemLedgEntryNo(var ItemJnlLine: Record "Item Journal Line"; var ItemApplicationEntry: Record "Item Application Entry") begin end; + /// + /// Event raised by OnAfterGetGeneralPostingSetup. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetGeneralPostingSetup(var GeneralPostingSetup: Record "General Posting Setup"; PurchLine: Record "Purchase Line"); begin end; + /// + /// Event raised by OnBeforeConfirmJobLineType. + /// + /// + /// Specifies the HideDialog parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeConfirmJobLineType(PurchLine: Record "Purchase Line"; var HideDialog: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeConfirmJobPlanningLineNo. + /// + /// + /// Specifies the HideDialog parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeConfirmJobPlanningLineNo(PurchLine: Record "Purchase Line"; var HideDialog: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldProcessShipment. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ShouldProcessShipment parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldProcessShipment(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ShouldProcessShipment: Boolean) begin end; + /// + /// Event raised by OnCheckItemReservDisruptionOnAfterInsertTempSKU. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckItemReservDisruptionOnAfterInsertTempSKU(var Item: Record Item; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterPostItemChargePerRetRcpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerRetRcpt(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerTransfer. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerTransfer(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerRetShpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerRetShpt(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerSalesShpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerSalesShpt(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnInsertInvoiceHeaderOnBeforeCopyLinks. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertInvoiceHeaderOnBeforeCopyLinks(var PurchHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeUpdateIncomingDocument. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeUpdateIncomingDocument(var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumptionOnAfterItemLedgEntrySetFilters. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineJobConsumptionOnAfterItemLedgEntrySetFilters(var ItemLedgEntry: Record "Item Ledger Entry"; var PurchLine: Record "Purchase Line"; var ItemJournalLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnTestPurchLineOnTypeCaseOnDocumentTypeCaseElse. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnTestPurchLineOnTypeCaseOnDocumentTypeCaseElse(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterDecrementPrepmtAmtInvLCY. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PrepmtAmountInvLCY parameter. + /// Specifies the PrepmtVATAmountInvLCY parameter. [IntegrationEvent(false, false)] local procedure OnAfterDecrementPrepmtAmtInvLCY(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var PrepmtAmountInvLCY: Decimal; var PrepmtVATAmountInvLCY: Decimal) begin end; #if not CLEAN27 + /// + /// Event raised by OnSetPostingPreviewDocumentNo. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnSetPostingPreviewDocumentNo(var PreviewDocumentNo: Code[20]) begin end; + /// + /// Event raised by OnGetPostingPreviewDocumentNos. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnGetPostingPreviewDocumentNos(var PreviewDocumentNos: List of [Code[20]]) begin end; #endif + /// + /// Event raised by OnInsertPostedHeadersOnAfterInvoice. + /// + /// + /// Specifies the GenJournalLine parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInvoice(var PurchaseHeader: Record "Purchase Header"; var GenJournalLine: Record "Gen. Journal Line"; var GenJnlLineDocType: Enum "Gen. Journal Document Type"; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterSumPurchLines2. + /// + /// + /// Specifies the OldPurchaseLine parameter. + /// Specifies the NewPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterSumPurchLines2(var PurchaseHeader: Record "Purchase Header"; var OldPurchaseLine: Record "Purchase Line"; var NewPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnTypeCaseElse. + /// + /// + /// Specifies the Sign parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnTypeCaseElse(var PurchaseLine: Record "Purchase Line"; var Sign: Decimal) begin end; + /// + /// Event raised by OnSumPurchLines2OnAfterIsRoundingLineInserted. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the OldPurchaseLine parameter. + /// Specifies the RoundingLineInserted parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnAfterIsRoundingLineInserted(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var OldPurchaseLine: Record "Purchase Line"; RoundingLineInserted: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckICPartnerBlocked. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckICPartnerBlocked(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnAfterPostLines. + /// + /// + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TotalAmount parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnAfterPostLines(var PurchaseHeader: Record "Purchase Header"; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line"; var TempPurchLineGlobal: Record "Purchase Line" temporary; TotalAmount: Decimal) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforePurchaseHeaderModify. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforePurchaseHeaderModify(var PurchaseHeader: Record "Purchase Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePurchLineDimSetIDFromAppliedEntry. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePurchLineDimSetIDFromAppliedEntry(var PurchaseLineToPost: Record "Purchase Line"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterDeleteItemChargeAssgnt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterDeleteItemChargeAssgnt(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforePostItemChargePerRetRcpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRetRcpt(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerITTransfer. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TransRcptLine parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerITTransfer(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; TransRcptLine: Record "Transfer Receipt Line"; var TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerRetShpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRetShpt(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeShouldTestGetReceiptPPmtAmtToDeduct. + /// + /// + /// Specifies the CompleteFunctionality parameter. + /// Specifies the ShouldTestGetReceiptPPmtAmtToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeShouldTestGetReceiptPPmtAmtToDeduct(PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean; var ShouldTestGetReceiptPPmtAmtToDeduct: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeAmountIncludingVATAmountRound. + /// + /// + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeAmountIncludingVATAmountRound(var PurchaseLine: Record "Purchase Line"; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeCalcAmountsForFullVAT. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeCalcAmountsForFullVAT(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckMandatoryFields. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckMandatoryFields(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckPostingDate. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPostingDate(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterInsertCrMemoHeader. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertCrMemoHeader(var PurchaseHeader: Record "Purchase Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnAfterInsertInvoiceHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertInvoiceHeader(var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header") begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeOnBeforeDoCommit. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeOnBeforeDoCommit(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnReleasePurchDocumentOnBeforeDoCommit. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnReleasePurchDocumentOnBeforeDoCommit(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateAssociatedSalesOrderBeforeInitOutstanding. + /// + /// + /// Specifies the SalesOrderLine parameter. + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssociatedSalesOrderBeforeInitOutstanding(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesOrderLine: Record "Sales Line"; SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnRunOnBeforePostInvoice. + /// + /// + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforePostInvoice(PurchaseHeader: Record "Purchase Header"; var EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnCheckPurchDocumentOnBeforeCheckPurchDim. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckPurchDocumentOnBeforeCheckPurchDim(var PurchaseHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnCalcInvDiscountOnBeforeDoCommit. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvDiscountOnBeforeDoCommit(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeSetReplaceDocumentDate. + /// + /// + /// Specifies the PostingDate parameter. + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeSetReplaceDocumentDate(var PurchaseHeader: Record "Purchase Header"; var PostingDate: Date; var ReplaceDocumentDate: Boolean; var ModifyHeader: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineGet. + /// + /// + /// Specifies the TempVATAmountLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineGet(PurchaseLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckFAPostingPossibility. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckFAPostingPossibility(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckPostRestrictions. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPostRestrictions(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeTestGeneralPostingGroups. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeTestGeneralPostingGroups(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeTestFieldBilltoCustomerNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeTestFieldBilltoCustomerNo(var SalesOrderHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnAfterCalcVATBaseAmount. + /// + /// [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterCalcVATBaseAmount(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeUpdateAfterPosting. + /// + /// + /// Specifies the SuppressCommit parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateAfterPosting(var PurchaseHeader: Record "Purchase Header"; SuppressCommit: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckAndUpdate. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckAndUpdate(var PurchaseHeader: Record "Purchase Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterCalcTotalChargeAmt. + /// + /// + /// Specifies the QtyToAssign parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnAfterCalcTotalChargeAmt(var PurchaseLineToPost: Record "Purchase Line"; QtyToAssign: Decimal; var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostPurchLineOnAfterInsertReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the TempPurchaseLineGlobal parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterInsertReturnShipmentLine(var PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; ReturnShptHeader: Record "Return Shipment Header"; TempPurchaseLineGlobal: Record "Purchase Line"; RoundingLineInserted: Boolean; xPurchaseLine: Record "Purchase Line"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."); begin end; + /// + /// Event raised by OnBeforeMakeInventoryAdjustment. + /// + /// [IntegrationEvent(false, false)] procedure OnBeforeMakeInventoryAdjustment(var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeCheckItemReservDisruption. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckItemReservDisruption(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterSetCheckApplToItemEntry. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterSetCheckApplToItemEntry(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheckBlanketOrderPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheckBlanketOrderPurchLine(var BlanketOrderPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeModifyInvoicedQtyOnPurchRcptLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeModifyInvoicedQtyOnPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeTestPostingDate. + /// + /// + /// Specifies the ReplacePostingDate parameter. + /// Specifies the SkipTestPostingDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeTestPostingDate(var PurchaseHeader: Record "Purchase Header"; ReplacePostingDate: Boolean; var SkipTestPostingDate: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckItemCharge. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckItemCharge(var ItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeProcedurePostAssocItemJnlLine. + /// + /// + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the ItemShptEntryNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeProcedurePostAssocItemJnlLine(var SalesOrderLine: Record "Sales Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempHandlingSpecification: Record "Tracking Specification" temporary; QtyToBeShipped: Decimal; QtyToBeShippedBase: Decimal; var ItemShptEntryNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostDistributeItemChargeOnAfterSetFactor. + /// + /// + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostDistributeItemChargeOnAfterSetFactor(TempItemLedgerEntry: Record "Item Ledger Entry"; var Factor: Decimal) begin end; + /// + /// Event raised by OnBeforeCalcItemJnlLineToBeInvoicedAmounts. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the RemAmt parameter. + /// Specifies the RemDiscAmt parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcItemJnlLineToBeInvoicedAmounts(var ItemJournalLine: Record "Item Journal Line"; var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; var RemAmt: Decimal; var RemDiscAmt: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemJnlLineWhseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the PostBefore parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLineWhseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary; PurchaseLine: Record "Purchase Line"; PostBefore: Boolean) begin end; + /// + /// Event raised by OnAfterPostItemJnlLineWhseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLineWhseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerTransferOnBeforeProcessItemApplicationEntry. + /// + /// + /// Specifies the ItemApplicationEntry parameter. + /// Specifies the TransferReceiptLine parameter. + /// Specifies the TotalAmountToPostFCY parameter. + /// Specifies the AmountToPostFCY parameter. + /// Specifies the GeneralLedgerSetup parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerTransferOnBeforeProcessItemApplicationEntry(PurchaseLine: Record "Purchase Line"; ItemApplicationEntry: Record "Item Application Entry"; TransferReceiptLine: Record "Transfer Receipt Line"; TotalAmountToPostFCY: Decimal; var AmountToPostFCY: Decimal; GeneralLedgerSetup: Record "General Ledger Setup"; PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemCharge. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ItemEntryNo parameter. + /// Specifies the QuantityBase parameter. + /// Specifies the AmountToAssign parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the IndirectCostPct parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemCharge(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; ItemEntryNo: Integer; QuantityBase: Decimal; AmountToAssign: Decimal; QtyToAssign: Decimal; IndirectCostPct: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertedPrepmtVATBaseToDeductOnAfterSetTempPrepmtDeductLCYPurchaseLine. + /// + /// + /// Specifies the PrepmtVATBaseToDeduct parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertedPrepmtVATBaseToDeductOnAfterSetTempPrepmtDeductLCYPurchaseLine(var TempPrepmtDeductLCYPurchaseLine: Record "Purchase Line" temporary; var PrepmtVATBaseToDeduct: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeAdjustPrepmtAmountLCY. + /// + /// + /// Specifies the PrepmtPurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustPrepmtAmountLCY(PurchaseHeader: Record "Purchase Header"; var PrepmtPurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeAdjustFinalInvWith100PctPrepmt. + /// + /// + /// Specifies the TempPrepmtDeductLCYPurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustFinalInvWith100PctPrepmt(var CombinedPurchaseLine: Record "Purchase Line"; var TempPrepmtDeductLCYPurchaseLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateInvoicedQtyOnReturnShipmentLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoicedQtyOnReturnShipmentLine(var ReturnShipmentLine: Record "Return Shipment Line") begin end; + /// + /// Event raised by OnAfterCheckPurchRcptLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckPurchRcptLine(PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnUpdateItemChargeAssgntOnBeforeItemChargeAssignmentPurchModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateItemChargeAssgntOnBeforeItemChargeAssignmentPurchModify(var ItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)") begin end; + /// + /// Event raised by OnBeforeUpdateReceiptInvoicingQuantities. + /// + /// + /// Specifies the SkipQuantityUpdate parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateReceiptInvoicingQuantities(PurchLine: Record "Purchase Line"; var SkipQuantityUpdate: Boolean) begin end; + /// + /// Event raised by OnSetCommitBehavior. + /// + /// [IntegrationEvent(false, false)] local procedure OnSetCommitBehavior(var IgnoreCommit: Boolean) begin end; + + /// + /// Event raised by OnAfterProcessPostingLines. + /// + /// + /// Specifies the TotalPurchLine parameter. + /// Specifies the VendLedgEntry parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the Window parameter. + [IntegrationEvent(false, false)] + local procedure OnAfterProcessPostingLines(var PurchHeader: Record "Purchase Header"; var TotalPurchLine: Record "Purchase Line"; var VendLedgEntry: Record "Vendor Ledger Entry"; InvoicePostingParameters: Record "Invoice Posting Parameters"; SuppressCommit: Boolean; EverythingInvoiced: Boolean; var Window: Dialog) + begin + end; + + /// + /// Event is raised after the CheckPostRestrictions function is executed + /// + /// The purchase header record that was checked for post restrictions. + [IntegrationEvent(false, false)] + local procedure OnAfterCheckPostRestrictions(var PurchaseHeader: Record "Purchase Header") + begin + end; } + diff --git a/src/Layers/IT/BaseApp/Sales/Posting/SalesPost.Codeunit.al b/src/Layers/IT/BaseApp/Sales/Posting/SalesPost.Codeunit.al index b3413fd550e..3dab32954d2 100644 --- a/src/Layers/IT/BaseApp/Sales/Posting/SalesPost.Codeunit.al +++ b/src/Layers/IT/BaseApp/Sales/Posting/SalesPost.Codeunit.al @@ -361,6 +361,8 @@ codeunit 80 "Sales-Post" ProcessPosting(SalesHeader, SalesHeader2, TempDropShptPostBuffer, CustLedgEntry, EverythingInvoiced); + Clear(GenJnlPostLine); + UpdateLastPostingNos(SalesHeader); OnRunOnBeforeFinalizePosting( @@ -549,6 +551,8 @@ codeunit 80 "Sales-Post" OnRunOnBeforeMakeInventoryAdjustment(SalesHeader, SalesInvHeader, GenJnlPostLine, ItemJnlPostLine, PreviewMode, SkipInventoryAdjustment); if not SkipInventoryAdjustment then MakeInventoryAdjustment(); + + OnAfterProcessPostingLines(SalesHeader, TotalSalesLine, CustLedgEntry, InvoicePostingParameters, SuppressCommit, EverythingInvoiced, Window, HideProgressWindow); end; /// @@ -6358,6 +6362,8 @@ codeunit 80 "Sales-Post" if SalesHeader."Bill-to Contact No." <> '' then if Contact.Get(SalesHeader."Bill-to Contact No.") then Contact.CheckIfPrivacyBlocked(true); + + OnAfterCheckPostRestrictions(SalesHeader); end; local procedure CheckCustBlockage(SalesHeader: Record "Sales Header"; CustCode: Code[20]; ExecuteDocCheck: Boolean) @@ -9618,6 +9624,7 @@ codeunit 80 "Sales-Post" /// Indicates whether the item journal line should be posted. /// Indicates whether warehouse shipment is involved. /// The warehouse receipt header. + /// Specifies the WarehouseShipmentHeader parameter. [IntegrationEvent(true, false)] local procedure OnAfterPostItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var WhseJnlPostLine: Codeunit "Whse. Jnl.-Register Line"; OriginalItemJnlLine: Record "Item Journal Line"; var ItemShptEntryNo: Integer; IsATO: Boolean; var TempHandlingSpecification: Record "Tracking Specification"; var TempATOTrackingSpecification: Record "Tracking Specification"; TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; ShouldPostItemJnlLine: Boolean; WhseShip: Boolean; WhseRcptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header") begin @@ -10746,11 +10753,22 @@ codeunit 80 "Sales-Post" /// The sales line being posted. /// The job task sales line. /// The resource journal line that was posted. + /// Specifies the GenJnlLine parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostPayment(var GenJnlLine: Record "Gen. Journal Line"; SalesHeader: Record "Sales Header"; SuppressCommit: Boolean; PreviewMode: Boolean; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"); begin end; + /// + /// Event raised by OnAfterPostResJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the JobTaskSalesLine parameter. + /// Specifies the ResJnlLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostResJnlLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; JobTaskSalesLine: Record "Sales Line"; ResJnlLine: Record "Res. Journal Line") begin @@ -11288,11 +11306,28 @@ codeunit 80 "Sales-Post" /// The sales shipment header. /// The return receipt header. /// The resource journal post line codeunit instance. + /// Specifies the GenJnlLine parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostPayment(var GenJnlLine: Record "Gen. Journal Line"; SalesHeader: Record "Sales Header"; SuppressCommit: Boolean; PreviewMode: Boolean; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"); begin end; + /// + /// Event raised by OnBeforePostResJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the JobTaskSalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the DocNo parameter. + /// Specifies the ExtDocNo parameter. + /// Specifies the SourceCode parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the ReturnRcptHeader parameter. + /// Specifies the ResJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostResJnlLine(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var JobTaskSalesLine: Record "Sales Line"; var IsHandled: Boolean; DocNo: Code[20]; ExtDocNo: Code[35]; SourceCode: Code[10]; SalesShptHeader: Record "Sales Shipment Header"; ReturnRcptHeader: Record "Return Receipt Header"; var ResJnlPostLine: Codeunit "Res. Jnl.-Post Line") begin @@ -12789,854 +12824,2004 @@ codeunit 80 "Sales-Post" begin end; + /// + /// Event raised by OnSumSalesLines2OnAfterDivideAmount. + /// + /// + /// Specifies the SalesLineQty parameter. + /// Specifies the QtyType parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnAfterDivideAmount(var OldSalesLine: Record "Sales Line"; var SalesLineQty: Decimal; QtyType: Option General,Invoicing,Shipping) begin end; + /// + /// Event raised by OnSumSalesLines2OnAfterCalcTotalAdjCostLCY. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnAfterCalcTotalAdjCostLCY(var TotalAdjCostLCY: decimal; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnSumSalesLines2OnBeforeCalcVATAmountLines. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the InsertSalesLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnBeforeCalcVATAmountLines(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; InsertSalesLine: Boolean; var TempVATAmountLine: Record "VAT Amount Line" temporary; QtyType: Option General,Invoicing,Shipping; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumSalesLines2OnBeforeNewSalesLineInsert. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnBeforeNewSalesLineInsert(var NewSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumSalesLines2SetFilter. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the InsertSalesLine parameter. + /// Specifies the QtyType parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2SetFilter(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; InsertSalesLine: Boolean; var QtyType: Option) begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnBeforePostTempWhseJnlLine2. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnBeforePostTempWhseJnlLine2(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterTestUpdatedSalesLine. + /// + /// + /// Specifies the EverythingInvoiced parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterTestUpdatedSalesLine(var SalesLine: Record "Sales Line"; var EverythingInvoiced: Boolean; SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineBeforeInitQtyToInvoice. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineBeforeInitQtyToInvoice(var TempSalesLine: Record "Sales Line" temporary; WhseShip: Boolean; WhseReceive: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitOutstanding(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitTempSalesLineQuantities. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitTempSalesLineQuantities(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterUpdateInvoicedValues. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterUpdateInvoicedValues(var TempSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; TempSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; TempSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterInsertSalesOrderHeader. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterInsertSalesOrderHeader(var SalesOrderLine: Record "Sales Line"; TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; WhseShip: Boolean; WhseReceive: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeUpdateInvoicedValues. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeUpdateInvoicedValues(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnSetDefaultQtyBlank. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesSetup parameter. + /// Specifies the SetDefaultQtyBlank parameter. [IntegrationEvent(true, false)] local procedure OnPostUpdateOrderLineOnSetDefaultQtyBlank(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; SalesSetup: Record "Sales & Receivables Setup"; var SetDefaultQtyBlank: Boolean) begin end; + /// + /// Event raised by OnCalcInvoiceOnAfterTempSalesLineSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvoiceOnAfterTempSalesLineSetFilters(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterCalcInvDiscount. + /// + /// + /// Specifies the TempWhseShptHeader parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterCalcInvDiscount(SalesHeader: Record "Sales Header"; TempWhseShptHeader: Record "Warehouse Shipment Header" temporary; PreviewMode: Boolean; var TempSalesLineGlobal: Record "Sales Line" temporary; SuppressCommit: Boolean; WhseReceive: Boolean; WhseShip: Boolean); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterReleaseSalesDocument. + /// + /// + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterReleaseSalesDocument(SalesHeader: Record "Sales Header"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeSetPostingFlags. + /// + /// + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the HideProgressWindow parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnBeforeSetPostingFlags(var SalesHeader: Record "Sales Header"; var TempSalesLineGlobal: Record "Sales Line" temporary; var ModifyHeader: Boolean; var HideProgressWindow: Boolean); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetPostingFlags. + /// + /// + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the ModifyHeader parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterSetPostingFlags(var SalesHeader: Record "Sales Header"; var TempSalesLineGlobal: Record "Sales Line" temporary; var ModifyHeader: Boolean); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetSourceCode. + /// + /// + /// Specifies the SourceCodeSetup parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetSourceCode(var SalesHeader: Record "Sales Header"; SourceCodeSetup: Record "Source Code Setup"; var SrcCode: Code[10]); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetPoszingFromWhseRef. + /// + /// + /// Specifies the InvtPickPutaway parameter. + /// Specifies the PostingFromWhseRef parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetPoszingFromWhseRef(var SalesHeader: Record "Sales Header"; var InvtPickPutaway: Boolean; var PostingFromWhseRef: Integer); begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCalcInvDiscount. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the RefreshNeeded parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCalcInvDiscount(var SalesHeader: Record "Sales Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseReceive: Boolean; WhseShip: Boolean; var RefreshNeeded: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCheckPostRestrictions. + /// + /// + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCheckPostRestrictions(var SalesHeader: Record "Sales Header"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnCheckAssosOrderLinesOnAfterSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssosOrderLinesOnAfterSetFilters(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnCheckSalesDocumentOnAfterCalcShouldCheckItemCharge. + /// + /// + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ShouldCheckItemCharge parameter. + /// Specifies the ModifyHeader parameter. [IntegrationEvent(true, false)] local procedure OnCheckSalesDocumentOnAfterCalcShouldCheckItemCharge(var SalesHeader: Record "Sales Header"; WhseReceive: Boolean; WhseShip: Boolean; var ShouldCheckItemCharge: Boolean; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForShipOnBeforeCheck. + /// + /// + /// Specifies the TempWhseShipmentHeader parameter. + /// Specifies the TempWhseReceiptHeader parameter. + /// Specifies the Ship parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForShipOnBeforeCheck(var SalesHeader: Record "Sales Header"; var TempWhseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWhseReceiptHeader: Record "Warehouse Receipt Header" temporary; var Ship: Boolean; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForReceiveOnBeforeCheck. + /// + /// + /// Specifies the TempWhseShipmentHeader parameter. + /// Specifies the TempWhseReceiptHeader parameter. + /// Specifies the Receive parameter. [IntegrationEvent(true, false)] local procedure OnCheckTrackingAndWarehouseForReceiveOnBeforeCheck(var SalesHeader: Record "Sales Header"; var TempWhseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWhseReceiptHeader: Record "Warehouse Receipt Header" temporary; var Receive: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingSpecificationOnAfterTempItemSalesLineLoop. + /// + /// [IntegrationEvent(false, false)] local procedure OnCheckTrackingSpecificationOnAfterTempItemSalesLineLoop(var TempItemSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckCustBlockageOnAfterTempLinesSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckCustBlockageOnAfterTempLinesSetFilters(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary); begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterTempPrepmtSalesLineSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterTempPrepmtSalesLineSetFilters(var TempPrepmtSalesLine: Record "Sales Line" temporary; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterGetSalesPrepmtAccount. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterGetSalesPrepmtAccount(var GLAcc: Record "G/L Account"; var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeGetSalesPrepmtAccount. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the GenPostingSetup parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeGetSalesPrepmtAccount(var GLAcc: Record "G/L Account"; var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header"; var GenPostingSetup: Record "General Posting Setup"; CompleteFunctionality: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterTempSalesLineSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempPrepmtSalesLine parameter. + /// Specifies the NextLineNo parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterTempSalesLineSetFilters(var TempSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempPrepmtSalesLine: Record "Sales Line" temporary; var NextLineNo: Integer) begin end; + /// + /// Event raised by OnFinalizePostingOnAfterUpdateItemChargeAssgnt. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnAfterUpdateItemChargeAssgnt(var SalesHeader: Record "Sales Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the TempItemChargeAssignmentSales parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the TempSalesLine parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the SalesPost parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeInsertTrackingSpecification(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)" temporary; SalesHeader: Record "Sales Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; EverythingInvoiced: Boolean; var TempSalesLine: Record "Sales Line" temporary; var TempSalesLineGlobal: Record "Sales Line" temporary; SalesPost: Codeunit "Sales-Post") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeCreateOutboxSalesTrans. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeCreateOutboxSalesTrans(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; EverythingInvoiced: Boolean; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeDeleteApprovalEntries. + /// + /// + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeDeleteApprovalEntries(var SalesHeader: Record "Sales Header"; var EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeGenJnlPostPreviewThrowError. + /// + /// + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeGenJnlPostPreviewThrowError(SalesHeader: Record "Sales Header"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertPostedPaymentOnBeforeInsertPostedPayments. + /// + /// + /// Specifies the PaymentTermsLine parameter. + /// Specifies the PostedPayments parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedPaymentOnBeforeInsertPostedPayments(SalesHeader: Record "Sales Header"; PaymentTermsLine: Record "Payment Lines"; var PostedPayments: Record "Posted Payment Lines") begin end; + /// + /// Event raised by OnInsertPostedPaymentOnBeforeInsertPaymentJournalLine. + /// + /// + /// Specifies the PaymentTermsLine parameter. + /// Specifies the PaymentJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedPaymentOnBeforeInsertPaymentJournalLine(SalesHeader: Record "Sales Header"; PaymentTermsLine: Record "Payment Lines"; var PaymentJournalLine: Record "Payment Lines") begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforePost. + /// + /// + /// Specifies the PurchOrderLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforePost(var ItemJournalLine: Record "Item Journal Line"; PurchOrderLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostATOOnBeforePostedATOLinkInsert. + /// + /// + /// Specifies the AssemblyHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostATOOnBeforePostedATOLinkInsert(var PostedATOLink: Record "Posted Assemble-to-Order Link"; var AssemblyHeader: Record "Assembly Header"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostATOAssocItemJnlLineOnBeforeRemainingPost. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the PostedATOLink parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the ItemLedgShptEntryNo parameter. [IntegrationEvent(false, false)] local procedure OnPostATOAssocItemJnlLineOnBeforeRemainingPost(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var PostedATOLink: Record "Posted Assemble-to-Order Link"; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal; var ItemLedgShptEntryNo: Integer) begin end; + /// + /// Event raised by OnPostDropOrderShipmentOnAfterUpdateBlanketOrderLine. + /// + /// + /// Specifies the PurchOrderLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostDropOrderShipmentOnAfterUpdateBlanketOrderLine(PurchOrderHeader: Record "Purchase Header"; PurchOrderLine: Record "Purchase Line"; TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesShptHeader: Record "Sales Shipment Header"; SalesHeader: Record "Sales Header"; PurchRcptHeader: Record "Purch. Rcpt. Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyDocumentFields. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header") begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCalcShouldPostItemJnlLineItemCharges. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the ShouldPostItemJnlLineItemCharges parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCalcShouldPostItemJnlLineItemCharges(SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var ShouldPostItemJnlLineItemCharges: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterPrepareItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the RemAmt parameter. + /// Specifies the RemDiscAmt parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterPrepareItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; WhseShip: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var QtyToBeShipped: Decimal; TrackingSpecification: Record "Tracking Specification"; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; var QtyToBeShippedBase: Decimal; var RemAmt: Decimal; var RemDiscAmt: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyItemCharge. + /// + /// + /// Specifies the TempItemChargeAssgntSales parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyItemCharge(var ItemJournalLine: Record "Item Journal Line"; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeIsJobContactLineCheck. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the ShouldPostItemJnlLine parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the QtyToBeShipped parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeIsJobContactLineCheck(var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var ShouldPostItemJnlLine: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; QtyToBeShipped: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck(var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforePostItemJnlLineWhseLine. + /// + /// + /// Specifies the TempWhseJnlLine parameter. + /// Specifies the TempWhseTrackingSpecification parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforePostItemJnlLineWhseLine(var ItemJnlLine: Record "Item Journal Line"; var TempWhseJnlLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeTransferReservToItemJnlLine. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the CheckApplFromItemEntry parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeShippedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeTransferReservToItemJnlLine(SalesLine: Record "Sales Line"; ItemJnlLine: Record "Item Journal Line"; var CheckApplFromItemEntry: Boolean; var TrackingSpecification: Record "Tracking Specification"; QtyToBeShippedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeCopyTrackingFromSpec. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeCopyTrackingFromSpec(TrackingSpecification: Record "Tracking Specification"; var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; IsATO: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine(var ItemChargeSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemJnlLinePrepareJournalLineOnBeforeCalcItemJnlAmounts. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLinePrepareJournalLineOnBeforeCalcItemJnlAmounts(var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; IsATO: Boolean) begin end; + /// + /// Event raised by OnPostItemChargeOnBeforePostItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the TempItemChargeAssgntSales parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnBeforePostItemJnlLine(var SalesLineToPost: Record "Sales Line"; var SalesLine: Record "Sales Line"; QtyToAssign: Decimal; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnAfterCopyToItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the GeneralLedgerSetup parameter. + /// Specifies the QtyToInvoice parameter. + /// Specifies the TempItemChargeAssignmentSales parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnAfterCopyToItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var SalesLine: Record "Sales Line"; GeneralLedgerSetup: Record "General Ledger Setup"; QtyToInvoice: Decimal; var TempItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)" temporary) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnAfterTempTrackingSpecificationInvSetFilters. + /// + /// + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the TempTrackingSpecificationInv parameter. + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the TotalSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnAfterTempTrackingSpecificationInvSetFilters(SalesHeader: record "Sales Header"; var ItemJnlLine2: record "Item Journal Line"; var TempTrackingSpecificationInv: Record "Tracking Specification" temporary; SalesLine: Record "Sales Line"; var IsHandled: Boolean; var TotalSalesLineLCY: Record "Sales Line"; var TotalSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnBeforeTestJobNo. + /// + /// + /// Specifies the SkipTestJobNo parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnBeforeTestJobNo(SalesLine: Record "Sales Line"; var SkipTestJobNo: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnBeforeLastRunWithCheck. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnBeforeLastRunWithCheck(NonDistrItemJnlLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnBeforeRunWithCheck. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnBeforeRunWithCheck(ItemJnlLine2: Record "Item Journal Line"; var IsHandled: Boolean; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerShptOnBeforeTestJobNo. + /// + /// + /// Specifies the SkipTestJobNo parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerShptOnBeforeTestJobNo(SalesShipmentLine: Record "Sales Shipment Line"; var SkipTestJobNo: Boolean; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerShptOnAfterCheckItemChargePerShpt. + /// + /// + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the DistributeCharge parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerShptOnAfterCheckItemChargePerShpt(SalesShipmentLine: Record "Sales Shipment Line"; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; DistributeCharge: Boolean; var IsHandled: Boolean; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerShptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the DistributeCharge parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerShptOnAfterCalcDistributeCharge(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesShptLine: Record "Sales Shipment Line"; TempItemLedgEntry: Record "Item Ledger Entry" temporary; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; var DistributeCharge: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the ReturnRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the DistributeCharge parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; ReturnRcptLine: Record "Return Receipt Line"; TempItemLedgEntry: Record "Item Ledger Entry" temporary; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; var DistributeCharge: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRetRcptOnBeforeTestFieldJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetRcptOnBeforeTestFieldJobNo(ReturnReceiptLine: Record "Return Receipt Line"; var IsHandled: Boolean; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingLineOnAfterRetrieveInvoiceSpecification. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingLineOnAfterRetrieveInvoiceSpecification(var SalesLine: Record "Sales Line"; var TempInvoicingSpecification: Record "Tracking Specification" temporary; var TrackingSpecificationExists: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnAfterSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnAfterSetFilters(var SalesShipmentLine: Record "Sales Shipment Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnAfterUpdateSalesShptLineFields. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnAfterUpdateSalesShptLineFields(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the HasATOShippedNotInvoiced parameter. + /// Specifies the ShouldAdjustQuantityRounding parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding(SalesShptLine: Record "Sales Shipment Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; HasATOShippedNotInvoiced: Boolean; var ShouldAdjustQuantityRounding: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeShipmentInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the ItemJnlRollRndg parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(true, false)] local procedure OnPostItemTrackingForShipmentOnBeforeShipmentInvoiceErr(SalesLine: Record "Sales Line"; var IsHandled: Boolean; SalesHeader: Record "Sales Header"; var ItemJnlRollRndg: Boolean; TrackingSpecificationExists: Boolean; var TempTrackingSpecification: Record "Tracking Specification" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeReturnReceiptInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the ItemJnlRollRndg parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(true, false)] local procedure OnPostItemTrackingForShipmentOnBeforeReturnReceiptInvoiceErr(SalesLine: Record "Sales Line"; var IsHandled: Boolean; SalesHeader: Record "Sales Header"; var ItemJnlRollRndg: Boolean; TrackingSpecificationExists: Boolean; var TempTrackingSpecification: Record "Tracking Specification" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnAfterSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnAfterSetFilters(var ReturnReceiptLine: Record "Return Receipt Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertCrMemoLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertCrMemoLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean; xSalesLine: Record "Sales Line"; SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertInvoiceLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the ShouldInsertInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertInvoiceLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean; xSalesLine: Record "Sales Line"; SalesInvHeader: Record "Sales Invoice Header"; var ShouldInsertInvoiceLine: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertReturnReceiptLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertReturnReceiptLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertShipmentLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesLineACY parameter. + /// Specifies the DocType parameter. + /// Specifies the DocNo parameter. + /// Specifies the ExtDocNo parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertShipmentLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean; SalesLineACY: Record "Sales Line"; DocType: Option; DocNo: Code[20]; ExtDocNo: Code[35]) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterSetEverythingInvoiced. + /// + /// + /// Specifies the EverythingInvoiced parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterSetEverythingInvoiced(SalesLine: Record "Sales Line"; var EverythingInvoiced: Boolean; var IsHandled: Boolean; SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterRoundAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterRoundAmount(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; GenJnlLineDocNo: Code[20]) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeTestJobNo(SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterPostItemTrackingLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempPostedATOLink parameter. [IntegrationEvent(true, false)] local procedure OnPostSalesLineOnAfterPostItemTrackingLine(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterTestSalesLine. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the WhseShptHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CostBaseAmount parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterTestSalesLine(var SalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header"; var WhseShptHeader: Record "Warehouse Shipment Header"; WhseShip: Boolean; PreviewMode: Boolean; var CostBaseAmount: Decimal) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforePostItemTrackingLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(true, false)] local procedure OnPostSalesLineOnBeforePostItemTrackingLine(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var ItemLedgShptEntryNo: Integer; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal; GenJnlLineDocNo: Code[20]; SrcCode: Code[10]; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeTestUnitOfMeasureCode. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeTestUnitOfMeasureCode(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterAdjustPrepmtAmountLCY. + /// + /// + /// Specifies the xSalesLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterAdjustPrepmtAmountLCY(var SalesLine: record "Sales Line"; var xSalesLine: record "Sales Line"; TempTrackingSpecification: record "Tracking Specification" temporary; SalesHeader: record "Sales Header") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterInsertReturnReceiptLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the ReturnRcptHeader parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the SalesShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterInsertReturnReceiptLine(var SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var xSalesLine: Record "Sales Line"; ReturnRcptHeader: Record "Return Receipt Header"; RoundingLineInserted: Boolean; var TempTrackingSpecification: Record "Tracking Specification" temporary; var ItemLedgShptEntryNo: Integer; SalesShipmentHeader: Record "Sales Shipment Header") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterGetSalesOrderLine. + /// + /// + /// Specifies the SalesShptLine parameter. + /// Specifies the SalesOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterGetSalesOrderLine(var TempSalesLine: Record "Sales Line" temporary; SalesShptLine: Record "Sales Shipment Line"; SalesOrderLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeCalcQuantityInvoiced. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeCalcQuantityInvoiced(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnAfterGetSalesOrderLine. + /// + /// + /// Specifies the ReturnRcptLine parameter. + /// Specifies the SalesOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnAfterGetSalesOrderLine(var TempSalesLine: Record "Sales Line" temporary; ReturnRcptLine: Record "Return Receipt Line"; SalesOrderLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeInitQtyToInvoice(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnAfterModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnAfterModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeCalcQuantityInvoiced. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeCalcQuantityInvoiced(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnProcessAssocItemJnlLineOnBeforeTempDropShptPostBufferInsert. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnProcessAssocItemJnlLineOnBeforeTempDropShptPostBufferInsert(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnProcessAssocItemJnlLineOnBeforePostAssocItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnProcessAssocItemJnlLineOnBeforePostAssocItemJnlLine(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnRoundAmountOnBeforeIncrAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineQty parameter. + /// Specifies the TotalSalesLine parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnBeforeIncrAmount(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineQty: Decimal; var TotalSalesLine: Record "Sales Line"; var TotalSalesLineLCY: Record "Sales Line"; var xSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforeCheckTotalInvoiceAmount. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeCheckTotalInvoiceAmount(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnRunOnBeforeFinalizePosting. + /// + /// + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the ReturnReceiptHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeFinalizePosting(var SalesHeader: Record "Sales Header"; var SalesShipmentHeader: Record "Sales Shipment Header"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var ReturnReceiptHeader: Record "Return Receipt Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; CommitIsSuppressed: Boolean; GenJnlLineExtDocNo: Code[35]; var EverythingInvoiced: Boolean; GenJnlLineDocNo: Code[20]; SrcCode: Code[10]; PreviewMode: Boolean) begin end; - [IntegrationEvent(false, false)] + /// + /// Event raised by OnRunOnBeforePostSalesLineEndLoop. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the LastLineRetrieved parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the RecSalesHeader parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the ReturnReceiptHeader parameter. + [IntegrationEvent(false, false)] local procedure OnRunOnBeforePostSalesLineEndLoop(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var LastLineRetrieved: Boolean; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; RecSalesHeader: Record "Sales Header"; xSalesLine: Record "Sales Line"; var SalesShipmentHeader: Record "Sales Shipment Header"; var ReturnReceiptHeader: Record "Return Receipt Header") begin end; + /// + /// Event raised by OnGetATOItemLedgEntriesNotInvoicedOnBeforeItemLedgEntryNotInvoicedInsert. + /// + /// [IntegrationEvent(false, false)] local procedure OnGetATOItemLedgEntriesNotInvoicedOnBeforeItemLedgEntryNotInvoicedInsert(var ItemLedgEntry: Record "Item Ledger Entry") begin end; + /// + /// Event raised by OnGetPostedDocumentRecordElseCase. + /// + /// + /// Specifies the PostedSalesDocumentVariant parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnGetPostedDocumentRecordElseCase(SalesHeader: Record "Sales Header"; var PostedSalesDocumentVariant: Variant; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnGetSalesLinesOnAfterFillTempLines. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnGetSalesLinesOnAfterFillTempLines(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostItemLineOnAfterMakeSalesLineToShip. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempPostedATOLink parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemLineOnAfterMakeSalesLineToShip(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemLineOnBeforeMakeSalesLineToShip. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempPostedATOLink parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the IsHandled parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the ReturnReceiptHeader parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the TempHandlingSpecificationInv parameter. + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnPostItemLineOnBeforeMakeSalesLineToShip(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var ItemLedgShptEntryNo: Integer; var IsHandled: Boolean; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; ReturnReceiptHeader: Record "Return Receipt Header"; var TempHandlingSpecification: Record "Tracking Specification" temporary; var TempHandlingSpecificationInv: Record "Tracking Specification" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnPostItemLineOnBeforePostItemInvoiceLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempPostedATOLink parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemLineOnBeforePostItemInvoiceLine(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterPostItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnAfterPostItemJnlLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargeLineOnAfterTempItemChargeAssgntSalesLoop. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineParam parameter. [IntegrationEvent(true, false)] local procedure OnPostItemChargeLineOnAfterTempItemChargeAssgntSalesLoop(var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineParam: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargeLineOnBeforePostItemCharge. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeLineOnBeforePostItemCharge(var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforeReturnRcptLineModify. + /// + /// + /// Specifies the ReturnRcptLine parameter. + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforeReturnRcptLineModify(SalesHeader: Record "Sales Header"; var ReturnRcptLine: Record "Return Receipt Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforeAdjustQuantityRounding. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the ShouldAdjustQuantityRounding parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforeAdjustQuantityRounding(ReturnRcptLine: Record "Return Receipt Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; var ShouldAdjustQuantityRounding: Boolean) begin end; + /// + /// Event raised by OnReleaseSalesDocumentOnBeforeSetStatus. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SavedStatus parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the SuppressCommit parameter. [IntegrationEvent(false, false)] local procedure OnReleaseSalesDocumentOnBeforeSetStatus(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; SavedStatus: Enum "Sales Document Status"; PreviewMode: Boolean; SuppressCommit: Boolean); begin end; + /// + /// Event raised by OnRoundAmountOnAfterAssignSalesLines. + /// + /// + /// Specifies the SalesLineACY parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TotalSalesLines parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnAfterAssignSalesLines(var xSalesLine: Record "Sales Line"; var SalesLineACY: Record "Sales Line"; SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var TotalSalesLines: Record "Sales Line"; var TotalSalesLineLCY: Record "Sales Line"; var SalesLine: Record "Sales Line"); begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification. + /// + /// [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification(var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSendICDocumentOnBeforeSetICStatus. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSendICDocumentOnBeforeSetICStatus(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSendPostedDocumentRecordElseCase. + /// + /// + /// Specifies the DocumentSendingProfile parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSendPostedDocumentRecordElseCase(SalesHeader: Record "Sales Header"; var DocumentSendingProfile: Record "Document Sending Profile"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestSalesLineOnAfterTestSalesLineJob. + /// + /// [IntegrationEvent(false, false)] local procedure OnTestSalesLineOnAfterTestSalesLineJob(var SalesLine: record "Sales Line") begin end; + /// + /// Event raised by OnTestSalesLineOnAfterCalcShouldTestReturnQty. + /// + /// + /// Specifies the ShouldTestReturnQty parameter. [IntegrationEvent(false, false)] local procedure OnTestSalesLineOnAfterCalcShouldTestReturnQty(SalesLine: Record "Sales Line"; var ShouldTestReturnQty: Boolean) begin end; + /// + /// Event raised by OnBeforeTestGenPostingGroups. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestGenPostingGroups(var SalesLine: record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateSalesLineBeforePostOnAfterPostJobContractLine. + /// + /// + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateSalesLineBeforePostOnAfterPostJobContractLine(SalesInvoiceHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnUpdateAssosOrderOnAfterPurchOrderHeaderModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderOnAfterPurchOrderHeaderModify(var PurchOrderHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterModifyPurchLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterModifyPurchLine(var PurchOrderLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnUpdateAssocOrderOnBeforeModifyPurchLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnBeforeModifyPurchLine(var PurchOrderLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnAfterReleasePurchaseDocument. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnAfterReleasePurchaseDocument(var PurchOrderHeader: Record "Purchase Header"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeReleasePurchaseDocument. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeReleasePurchaseDocument(var PurchOrderHeader: Record "Purchase Header"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateAfterPostingOnBeforeFindSetForUpdate. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAfterPostingOnBeforeFindSetForUpdate(var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheck. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheck(var BlanketOrderSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheckSellToCustomerNo. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheckSellToCustomerNo(var BlanketOrderSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeInitOutstanding(var BlanketOrderSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnUpdateInvoicedQtyOnShipmentLineOnBeforeModifySalesShptLine. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnUpdateInvoicedQtyOnShipmentLineOnBeforeModifySalesShptLine(var SalesShptLine: Record "Sales Shipment Line"; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnAfterInitAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterInitAmount(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnAfterInitLineDiscountAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterInitLineDiscountAmount(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineRemainderModify. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineRemainderModify(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency) begin end; + /// + /// Event raised by OnBeforeCalcVATBaseAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcVATBaseAmount(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostUpdateInvoiceLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateInvoiceLine(var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostUpdateReturnReceiptLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostUpdateReturnReceiptLine(var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertTrackingSpecification(SalesHeader: Record "Sales Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSendPostedDocumentRecord. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the DocumentSendingProfile parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSendPostedDocumentRecord(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var DocumentSendingProfile: Record "Document Sending Profile") begin end; + /// + /// Event raised by OnBeforeInsertPostedPayment. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertPostedPayment(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; SalesInvoiceHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin end; + /// + /// Event raised by OnAfterPostItemChargeLine. + /// + /// + /// Specifies the SalesLineACY parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargeLine(var SalesLine: Record "Sales Line"; SalesLineACY: Record "Sales Line") begin end; + /// + /// Event raised by OnDeleteAfterPostingOnAfterDeleteLinks. + /// + /// [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnAfterDeleteLinks(var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnDeleteAfterPostingOnBeforeDeleteSalesHeader. + /// + /// [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnBeforeDeleteSalesHeader(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnDeleteAfterPostingOnBeforeDeleteLinks. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnBeforeDeleteLinks(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforeCheckAndUpdate. + /// + /// [IntegrationEvent(false, false)] local procedure OnRunOnBeforeCheckAndUpdate(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateWonOpportunitiesOnBeforeOpportunityModify. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the Opportunity parameter. [IntegrationEvent(false, false)] local procedure OnUpdateWonOpportunitiesOnBeforeOpportunityModify(var SalesHeader: Record "Sales Header"; SalesInvoiceHeader: Record "Sales Invoice Header"; var Opportunity: Record Opportunity) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCheckShip. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCheckShip(var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnBeforeUpdateReceiveAndCheckIfInvPutawayExists. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateReceiveAndCheckIfInvPutawayExists(var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnModifyTempLineOnAfterSalesLineModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnAfterSalesLineModify(var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnModifyTempLineOnBeforeTransferFields. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnBeforeTransferFields(var SalesLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnModifyTempLineOnBeforeSalesLineModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnBeforeSalesLineModify(var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesLine(SalesLine: Record "Sales Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesShipmentLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesShipmentLine(SalesShipmentLine: Record "Sales Shipment Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnReceiptLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnReceiptLine(ReturnReceiptLine: Record "Return Receipt Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateSalesLineDimSetIDFromAppliedEntry. + /// + /// + /// Specifies the ItemLedgEntry parameter. + /// Specifies the DimSetID parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateSalesLineDimSetIDFromAppliedEntry(var SalesLineToPost: Record "Sales Line"; var ItemLedgEntry: Record "Item Ledger Entry"; DimSetID: array[10] of Integer) begin end; + /// + /// Event raised by OnDeleteAfterPostingOnAfterSetupSalesHeader. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnAfterSetupSalesHeader(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnDeleteAfterPostingOnAfterSalesLineDeleteAll. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnAfterSalesLineDeleteAll(SalesHeader: Record "Sales Header"; SalesInvoiceHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; CommitIsSuppressed: Boolean; EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentConditionOnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentConditionOnBeforeUpdateBlanketOrderLine(var TempSalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostResJnlLineOnAfterInit. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostResJnlLineOnAfterInit(var ResJnlLine: Record "Res. Journal Line"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists. + /// + /// + /// Specifies the ReplacePostingDate parameter. + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the VATDateExists parameter. + /// Specifies the ReplaceVATDate parameter. + /// Specifies the VATDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists(var PostingDateExists: Boolean; var ReplacePostingDate: Boolean; var ReplaceDocumentDate: Boolean; var PostingDate: Date; var SalesHeader: Record "Sales Header"; var ModifyHeader: Boolean; var VATDateExists: Boolean; var ReplaceVATDate: Boolean; var VATDate: Date) begin end; + /// + /// Event raised by OnValidateIncludeInVATReportAfterValidate. + /// + /// + /// Specifies the InclInVATReportErrorLogTemp parameter. [IntegrationEvent(false, false)] local procedure OnValidateIncludeInVATReportAfterValidate(SalesHeaderParam: Record "Sales Header"; var InclInVATReportErrorLogTemp: Record "Incl. in VAT Report Error Log" temporary) begin end; + /// + /// Event raised by OnBeforeValidateICPartnerBusPostingGroups. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeValidateICPartnerBusPostingGroups(var TempICGenJnlLine: Record "Gen. Journal Line" temporary; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterGetCurrency. + /// + /// + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetCurrency(CurrencyCode: Code[10]; var Currency: Record Currency) begin end; + /// + /// Event raised by OnBeforePostItemLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemLine(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean; var TempSalesLineGlobal: Record "Sales Line" temporary; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnBeforePostItemChargeLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargeLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct(var TempPrepmtSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnAfterInsertReturnReceiptHeader. + /// + /// + /// Specifies the ReturnReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertReturnReceiptHeader(var SalesHeader: Record "Sales Header"; var ReturnReceiptHeader: Record "Return Receipt Header") begin @@ -13644,379 +14829,878 @@ codeunit 80 "Sales-Post" #if not CLEAN27 [Obsolete('This event is never raised.', '27.0')] + /// + /// Event raised by OnAfterGetAmountsForDeferral. + /// + /// + /// Specifies the AmtToDefer parameter. + /// Specifies the AmtToDeferACY parameter. + /// Specifies the DeferralAccount parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetAmountsForDeferral(SalesLine: Record "Sales Line"; var AmtToDefer: Decimal; var AmtToDeferACY: Decimal; var DeferralAccount: Code[20]) begin end; #endif + /// + /// Event raised by OnPostJobContractLineBeforeTestFields. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostJobContractLineBeforeTestFields(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertCrMemoHeaderOnAfterCalcShouldProcessAsReturnOrder. + /// + /// + /// Specifies the ShouldProcessAsReturnOrder parameter. [IntegrationEvent(false, false)] local procedure OnInsertCrMemoHeaderOnAfterCalcShouldProcessAsReturnOrder(SalesHeader: Record "Sales Header"; var ShouldProcessAsReturnOrder: Boolean) begin end; + /// + /// Event raised by OnUpdateQtyToBeInvoicedForShipmentOnAfterSetQtyToBeInvoiced. + /// + /// + /// Specifies the HasATOShippedNotInvoiced parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateQtyToBeInvoicedForShipmentOnAfterSetQtyToBeInvoiced(TrackingSpecificationExists: Boolean; HasATOShippedNotInvoiced: Boolean; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnBeforePostItemJnlLineItemCharges. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLineItemCharges(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeInitOutstanding(var SalesOrderLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeGetATOItemLedgEntriesNotInvoiced. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeGetATOItemLedgEntriesNotInvoiced(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineTrackingOnAfterCalcShouldInsertTrkgSpecInv. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the ShouldInsertTrkgSpecInv parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineTrackingOnAfterCalcShouldInsertTrkgSpecInv(var SalesLine: Record "Sales Line"; QtyToBeInvoiced: Decimal; var ShouldInsertTrkgSpecInv: Boolean) begin end; + /// + /// Event raised by OnUpdateSalesLineBeforePostOnBeforeGetUnitCost. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateSalesLineBeforePostOnBeforeGetUnitCost(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcItemJnlAmountsFromQtyToBeInvoiced. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcItemJnlAmountsFromQtyToBeInvoiced(var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; QtyToBeInvoiced: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForReceiveOnAfterSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForReceiveOnAfterSetFilters(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnRunOnBeforeCalcVATAmountLines. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeCalcVATAmountLines(var TempSalesLineGlobal: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestSalesLineOnBeforeTestFieldQtyToShip. + /// + /// + /// Specifies the ShouldTestQtyToShip parameter. [IntegrationEvent(false, false)] local procedure OnTestSalesLineOnBeforeTestFieldQtyToShip(SalesLine: Record "Sales Line"; var ShouldTestQtyToShip: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertShipmentLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertShipmentLine(var SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnIsEndLoopForShippedNotInvoicedOnBeforeExit. + /// + /// + /// Specifies the SalesShptLine parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnIsEndLoopForShippedNotInvoicedOnBeforeExit(SalesLine: Record "Sales Line"; SalesShptLine: Record "Sales Shipment Line"; RemQtyToBeInvoiced: Decimal; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLinePrepareJournalLineOnBeforeCalcQuantities. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLinePrepareJournalLineOnBeforeCalcQuantities(var ItemJnlLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; QtyToBeShipped: Decimal; QtyToBeShippedBase: Decimal; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean; IsATO: Boolean) begin end; + /// + /// Event raised by OnBeforeInvoiceRounding. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInvoiceRounding(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyTrackingFromSpec. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyTrackingFromSpec(var ItemJnlLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; QtyToBeShipped: Decimal; IsATO: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeValidateQtyToInvoice. + /// + /// + /// Specifies the ShouldValidateQtyToInvoice parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeValidateQtyToInvoice(var SalesHeader: Record "Sales Header"; var ShouldValidateQtyToInvoice: Boolean; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnAfterSetFilterTempSalesLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnAfterSetFilterTempSalesLine(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckTrackingSpecificationOnBeforeGetItemTrackingSettings. + /// + /// + /// Specifies the ItemTrackingSetup parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingSpecificationOnBeforeGetItemTrackingSettings(var TempItemSalesLine: Record "Sales Line" temporary; var ItemTrackingSetup: Record "Item Tracking Setup"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForReceipt. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForReceipt(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineTrackingOnBeforeInsertTempTrkgSpec. + /// + /// + /// Specifies the TempTrackingSpec parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineTrackingOnBeforeInsertTempTrkgSpec(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempTrackingSpec: Record "Tracking Specification" temporary; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInsertInvoiceHeaderOnBeforeCheckDocumentType. + /// + /// + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesSetup parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertInvoiceHeaderOnBeforeCheckDocumentType(SalesHeader: Record "Sales Header"; var SalesInvHeader: Record "Sales Invoice Header"; SalesSetup: Record "Sales & Receivables Setup"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnBeforePostBalancingEntry. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the TotalSalesLine parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnBeforePostBalancingEntry(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var TotalSalesLine: Record "Sales Line"; var TotalSalesLineLCY: Record "Sales Line"; SuppressCommit: Boolean; PreviewMode: Boolean; InvoicePostingParameters: Record "Invoice Posting Parameters"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin end; + /// + /// Event raised by OnBeforeFindNotShippedLines. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeFindNotShippedLines(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforePostSalesLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesLineACY parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforePostSalesLine(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; SrcCode: Code[10]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var IsHandled: Boolean; SalesLineACY: Record "Sales Line") begin end; + /// + /// Event raised by OnAfterUpdateInvoiceRounding. + /// + /// + /// Specifies the TotalSalesLine parameter. + /// Specifies the SalesLine parameter. + /// Specifies the Currency parameter. + /// Specifies the BiggestLineNo parameter. + /// Specifies the LastLineRetrieved parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the RoundingLineNo parameter. + /// Specifies the UseTempData parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoiceRounding(var SalesHeader: Record "Sales Header"; var TotalSalesLine: Record "Sales Line"; var SalesLine: Record "Sales Line"; var Currency: Record Currency; var BiggestLineNo: Integer; var LastLineRetrieved: Boolean; var RoundingLineInserted: Boolean; var RoundingLineNo: Integer; UseTempData: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterSetFilters(var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostItemLineOnBeforePostItemJnlLineForInvoiceDoc. + /// + /// + /// Specifies the SalesLineToShip parameter. + /// Specifies the Ship parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the TempTrackingSpecificationInv parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. + /// Specifies the QtyToInvoice parameter. + /// Specifies the TempAssembletoOrderLink parameter. [IntegrationEvent(true, false)] local procedure OnPostItemLineOnBeforePostItemJnlLineForInvoiceDoc(SalesHeader: Record "Sales Header"; var SalesLineToShip: Record "Sales Line"; Ship: Boolean; var ItemLedgShptEntryNo: Integer; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; SalesShptHeader: Record "Sales Shipment Header"; var TempHandlingSpecification: Record "Tracking Specification" temporary; var TempTrackingSpecificationInv: Record "Tracking Specification" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean; QtyToInvoice: Decimal; TempAssembletoOrderLink: Record "Posted Assemble-to-Order Link" temporary) begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForReceipt. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the QtyToInvoiceBaseInTrackingSpec parameter. + /// Specifies the ShouldPostItemTrackingForReceipt parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForReceipt(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; RemQtyToBeInvoiced: Decimal; QtyToInvoiceBaseInTrackingSpec: Decimal; var ShouldPostItemTrackingForReceipt: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForShipment. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the QtyToInvoiceBaseInTrackingSpec parameter. + /// Specifies the ShouldPostItemTrackingForShipment parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForShipment(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; RemQtyToBeInvoiced: Decimal; QtyToInvoiceBaseInTrackingSpec: Decimal; var ShouldPostItemTrackingForShipment: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeGetQuantityShipped. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeGetQuantityShipped(var TempSalesLine: Record "Sales Line"; var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeGetReturnQtyReceived. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeGetReturnQtyReceived(var TempSalesLine: Record "Sales Line"; var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldProcessReceipt. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the ShouldProcessReceipt parameter. + /// Specifies the ItemJnlRollRndg parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldProcessReceipt(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var ShouldProcessReceipt: Boolean; var ItemJnlRollRndg: Boolean) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeInitOutstanding(var SalesOrderLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnBeforeBalAccountNoWindowUpdate. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnBeforeBalAccountNoWindowUpdate(HideProgressWindow: Boolean; var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterCalcShouldCalcPrepmtAmounts. + /// + /// + /// Specifies the ShouldCalcPrepmtAmounts parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterCalcShouldCalcPrepmtAmounts(var TempSalesLine: Record "Sales Line" temporary; var ShouldCalcPrepmtAmounts: Boolean) begin end; + /// + /// Event raised by OnAfterGetGeneralPostingSetup. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetGeneralPostingSetup(var GeneralPostingSetup: Record "General Posting Setup"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnCheckItemTrackingQuantityOnDocumentTypeCaseElse. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckItemTrackingQuantityOnDocumentTypeCaseElse(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnSetCommitBehavior. + /// + /// [IntegrationEvent(false, false)] local procedure OnSetCommitBehavior(var ErrorOnCommit: Boolean) begin end; #if not CLEAN27 + /// + /// Event raised by OnSetPostingPreviewDocumentNo. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnSetPostingPreviewDocumentNo(var PreviewDocumentNo: Code[20]; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnGetPostingPreviewDocumentNos. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnGetPostingPreviewDocumentNos(var PreviewDocumentNos: List of [Code[20]]) begin end; #endif + /// + /// Event raised by OnPostInvoiceOnAfterPostLines. + /// + /// + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnAfterPostLines(var SalesHeader: Record "Sales Header"; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeAssignQtyToInvoice. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeAssignQtyToInvoice(var TempSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeItemLedgerEntryExist. + /// + /// + /// Specifies the ShipOrReceive parameter. + /// Specifies the HasItemLedgerEntry parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeItemLedgerEntryExist(var SalesLine: Record "Sales Line"; ShipOrReceive: Boolean; var HasItemLedgerEntry: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterCalcShouldInsertInvoiceHeader. + /// + /// + /// Specifies the ShouldInsertInvoiceHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterCalcShouldInsertInvoiceHeader(var SalesHeader: Record "Sales Header"; var ShouldInsertInvoiceHeader: Boolean) begin end; + /// + /// Event raised by OnInsertShptEntryRelationOnAfterItemEntryRelationInsert. + /// + /// + /// Specifies the ItemEntryRelation parameter. + /// Specifies the xSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertShptEntryRelationOnAfterItemEntryRelationInsert(SalesShipmentLine: Record "Sales Shipment Line"; var ItemEntryRelation: Record "Item Entry Relation"; xSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnBeforePostItemChargePerRetRcpt. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempItemChargeAssignmentSales parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRetRcpt(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeSetInvoiceFields. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the ShouldSetInvoiceFields parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeSetInvoiceFields(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line"; var ShouldSetInvoiceFields: Boolean) begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeError. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the InvoiceEverything parameter. [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeError(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var InvoiceEverything: Boolean) begin end; + /// + /// Event raised by OnBeforeGetSalesLineAdjCostLCY. + /// + /// + /// Specifies the QtyType parameter. + /// Specifies the AdjCostLCY parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetSalesLineAdjCostLCY(SalesLine2: Record "Sales Line"; QtyType: Option General,Invoicing,Shipping; AdjCostLCY: Decimal; var Result: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeShouldTestGetShipmentPPmtAmtToDeduct. + /// + /// + /// Specifies the CompleteFunctionality parameter. + /// Specifies the ShouldTestGetShipmentPPmtAmtToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeShouldTestGetShipmentPPmtAmtToDeduct(SalesHeader: Record "Sales Header"; CompleteFunctionality: Boolean; var ShouldTestGetShipmentPPmtAmtToDeduct: Boolean) begin end; + /// + /// Event raised by OnAfterDeleteApprovalEntries. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the ReturnReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterDeleteApprovalEntries(var SalesHeader: Record "Sales Header"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var SalesShipmentHeader: Record "Sales Shipment Header"; var ReturnReceiptHeader: Record "Return Receipt Header") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeUpdateSalesLineBeforePost. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeUpdateSalesLineBeforePost(var SalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header"; WhseShip: Boolean; WhseReceive: Boolean; RoundingLineInserted: Boolean; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnAfterSumSalesLines2. + /// + /// + /// Specifies the OldSalesLine parameter. + /// Specifies the NewSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterSumSalesLines2(var SalesHeader: Record "Sales Header"; var OldSalesLine: Record "Sales Line"; var NewSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnCheckPostWhseShptLinesOnAfterWhseShptLinesFound. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WhseShptLinesFound parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WarehouseShipmentLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckPostWhseShptLinesOnAfterWhseShptLinesFound(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line"; var WhseShptLinesFound: Boolean; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseShip: Boolean; WhseReceive: Boolean; var WarehouseShipmentLine: Record "Warehouse Shipment Line") begin end; + /// + /// Event raised by OnAfterDecrementPrepmtAmtInvLCY. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the PrepmtAmountInvLCY parameter. + /// Specifies the PrepmtVATAmountInvLCY parameter. [IntegrationEvent(false, false)] local procedure OnAfterDecrementPrepmtAmtInvLCY(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var PrepmtAmountInvLCY: Decimal; var PrepmtVATAmountInvLCY: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineGet. + /// + /// + /// Specifies the TempVATAmountLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineGet(SalesLine: Record "Sales Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeAdjustPrepmtAmountLCY. + /// + /// + /// Specifies the PrepmtSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustPrepmtAmountLCY(SalesHeader: Record "Sales Header"; var PrepmtSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostResJnlLineOnShouldExit. + /// + /// + /// Specifies the ShouldExit parameter. [IntegrationEvent(false, false)] local procedure OnPostResJnlLineOnShouldExit(var SalesLine: Record "Sales Line"; var ShouldExit: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeUpdateTempVATAmountLineRemainder. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeUpdateTempVATAmountLineRemainder(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterCalcTotalChargeAmt. + /// + /// + /// Specifies the QtyToAssign parameter. + /// Specifies the SalesLine parameter. + /// Specifies the xSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnAfterCalcTotalChargeAmt(var SalesLineToPost: Record "Sales Line"; QtyToAssign: Decimal; var SalesLine: Record "Sales Line"; xSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnBeforeCheckPostRestrictions. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPostRestrictions(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeValidateType. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeValidateType(var TempPrepmtSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeValidateDocumentDate. + /// + /// + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeValidateDocumentDate(var PostingDateExists: Boolean; var ReplaceDocumentDate: Boolean; var PostingDate: Date; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnCheckSalesDocumentOnBeforeCheckSalesDim. + /// + /// + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckSalesDocumentOnBeforeCheckSalesDim(var SalesHeader: Record "Sales Header"; var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeCreatePrepaymentTextLines. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePrepaymentTextLines(var TempPrepmtSalesLine: Record "Sales Line" temporary; var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header"; CompleteFunctionality: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckAndUpdate. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckAndUpdate(var SalesHeader: Record "Sales Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeCollectValueEntryRelation. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeCollectValueEntryRelation(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesInvoiceLine: Record "Sales Invoice Line") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeCollectValueEntryRelationForCrMemo. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeCollectValueEntryRelationForCrMemo(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesInvoiceLine: Record "Sales Invoice Line") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterCollectValueEntryRelation. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterCollectValueEntryRelation(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesInvoiceLine: Record "Sales Invoice Line") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterCreatePostedDeferralSchedule. + /// + /// + /// Specifies the SalesInvHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterCreatePostedDeferralSchedule(var SalesInvLine: Record "Sales Invoice Line"; SalesInvHeader: Record "Sales Invoice Header") begin end; + /// + /// Event raised by OnInvoiceRoundingOnAfterValidateQuantity. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnInvoiceRoundingOnAfterValidateQuantity(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInvoiceRoundingOnAfterSetLineNo. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnInvoiceRoundingOnAfterSetLineNo(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line") begin @@ -14033,16 +15717,32 @@ codeunit 80 "Sales-Post" begin end; + /// + /// Event raised by OnInsertPostedHeadersOnBeforeDeleteServItemOnSaleCreditMemo. + /// + /// + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnBeforeDeleteServItemOnSaleCreditMemo(var SalesHeader: Record "Sales Header"; var SalesShipmentHeader: Record "Sales Shipment Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterInsertInvoiceHeader. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInsertInvoiceHeader(var SalesHeader: Record "Sales Header"; var SalesInvoiceHeader: Record "Sales Invoice Header") begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterInsertCrMemoHeader. + /// + /// + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInsertCrMemoHeader(var SalesHeader: Record "Sales Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin @@ -14059,173 +15759,400 @@ codeunit 80 "Sales-Post" begin end; + /// + /// Event raised by OnProcessPostingLinesOnBeforePostDropOrderShipment. + /// + /// + /// Specifies the TotalSalesLine parameter. + /// Specifies the TotalSalesLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnProcessPostingLinesOnBeforePostDropOrderShipment(SalesHeader: Record "Sales Header"; TotalSalesLine: Record "Sales Line"; TotalSalesLineLCY: Record "Sales Line") begin end; + /// + /// Event raised by OnAfterArchiveUnpostedOrder. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the OrderArchived parameter. [IntegrationEvent(false, false)] local procedure OnAfterArchiveUnpostedOrder(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; OrderArchived: Boolean); begin end; + /// + /// Event raised by OnBeforeCheckReturnRcptLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckReturnRcptLine(var ReturnReceiptLine: Record "Return Receipt Line"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertReturnReceiptHeaderOnBeforeReturnReceiptHeaderTransferFields. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertReturnReceiptHeaderOnBeforeReturnReceiptHeaderTransferFields(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnBeforeCopyAndCheckItemCharge. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesLine parameter. + /// Specifies the InvoiceEverything parameter. + /// Specifies the AssignError parameter. + /// Specifies the QtyNeeded parameter. + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the ItemChargeAssgntSales parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCopyAndCheckItemCharge(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var SalesLine: Record "Sales Line"; var InvoiceEverything: Boolean; var AssignError: Boolean; var QtyNeeded: Decimal; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; var ItemChargeAssgntSales: Record "Item Charge Assignment (Sales)"; var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeTestPostingDate. + /// + /// + /// Specifies the ReplacePostingDate parameter. + /// Specifies the SkipTestPostingDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeTestPostingDate(var SalesHeader: Record "Sales Header"; ReplacePostingDate: Boolean; var SkipTestPostingDate: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeSalesHeaderModify. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeSalesHeaderModify(var SalesHeader: Record "Sales Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeTestLineFields. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeTestLineFields(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateQtyToBeInvoicedForReturnReceiptOnAfterSetQtyToBeInvoiced. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateQtyToBeInvoicedForReturnReceiptOnAfterSetQtyToBeInvoiced(TrackingSpecificationExists: Boolean; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterInsertShipmentHeader. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInsertShipmentHeader(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnInsertPostedHeadersDeleteServItemOnSaleCreditMemo. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersDeleteServItemOnSaleCreditMemo(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnRunWithCheckOnAfterFinalize. + /// + /// [IntegrationEvent(false, false)] local procedure OnRunWithCheckOnAfterFinalize(var SalesHeader: Record "Sales Header"); begin end; + /// + /// Event raised by OnBeforeFinalizePostATO. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeFinalizePostATO(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeDeleteATOLinks. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDeleteATOLinks(SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckATOLink. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckATOLink(SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumSalesLinesTempOnAfterVatAmountSet. + /// + /// + /// Specifies the TotalSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLinesTempOnAfterVatAmountSet(var VATAmount: Decimal; var TotalSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInsertShptEntryRelationOnBeforeDeleteTempHandlingSpecification. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertShptEntryRelationOnBeforeDeleteTempHandlingSpecification(var TempHandlingTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeModifyPurchOrderHeader. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeModifyPurchOrderHeader(var PurchaseOrderHeader: Record "Purchase Header"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnAfterPostJobContractLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostJobContractLine(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var GenJnlLineDocType: Enum "Gen. Journal Document Type"; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; var SrcCode: Code[10]) begin end; + /// + /// Event raised by OnBeforePostDistributeItemCharge. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempItemLedgerEntry parameter. + /// Specifies the NonDistrQuantity parameter. + /// Specifies the NonDistrQtyToAssign parameter. + /// Specifies the NonDistrAmountToAssign parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostDistributeItemCharge(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempItemLedgerEntry: Record "Item Ledger Entry"; NonDistrQuantity: Decimal; NonDistrQtyToAssign: Decimal; NonDistrAmountToAssign: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostDistributeItemChargeOnAfterSetFactor. + /// + /// + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostDistributeItemChargeOnAfterSetFactor(TempItemLedgerEntry: Record "Item Ledger Entry"; var Factor: Decimal) begin end; + /// + /// Event raised by OnBeforeCalcPrepmtAmtToDeduct. + /// + /// + /// Specifies the Ship parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PrepmtAmtToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcPrepmtAmtToDeduct(var SalesLine: Record "Sales Line"; Ship: Boolean; var IsHandled: Boolean; var PrepmtAmtToDeduct: Decimal) begin end; + /// + /// Event raised by OnBeforePostItemJournalLineWarehouseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJournalLineWarehouseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAfterPostItemJournalLineWarehouseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJournalLineWarehouseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAdjustPrepmtAmountLCYOnAfterGetOrderLine. + /// + /// + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnAdjustPrepmtAmountLCYOnAfterGetOrderLine(var SalesLine: Record "Sales Line"; var SalesInvoiceLine: Record "Sales Line"); begin end; + /// + /// Event raised by OnBeforeGetQtyToInvoice. + /// + /// + /// Specifies the Ship parameter. + /// Specifies the IsHandled parameter. + /// Specifies the QtyToInvoice parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetQtyToInvoice(SalesLine: Record "Sales Line"; Ship: Boolean; var IsHandled: Boolean; var QtyToInvoice: Decimal) begin end; + /// + /// Event raised by OnBeforeAdjustFinalInvWith100PctPrepmt. + /// + /// + /// Specifies the CombinedSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustFinalInvWith100PctPrepmt(var TempPrepmtDeductLCYSalesLine: Record "Sales Line" temporary; var CombinedSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateRemainingQtyToBeInvoiced. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateRemainingQtyToBeInvoiced(SalesShptLine: Record "Sales Shipment Line"; var RemQtyToInvoiceCurrLine: Decimal; var RemQtyToInvoiceCurrLineBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLineForCreditMemoOnBeforeGetSalesPrepmtAccount. + /// + /// + /// Specifies the SalesInvoiceLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLineForCreditMemoOnBeforeGetSalesPrepmtAccount(var GLAccount: Record "G/L Account"; var SalesInvoiceLine: Record "Sales Invoice Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateEmailParameters. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateEmailParameters(SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostUpdateOrderNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateOrderNo(var SalesInvoiceHeader: Record "Sales Invoice Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSetInvoiceOrderNo. + /// + /// + /// Specifies the SalesInvLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSetInvoiceOrderNo(SalesLine: Record "Sales Line"; var SalesInvLine: Record "Sales Invoice Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeArchiveRelatedJob. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeArchiveRelatedJob(SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSyncSurPlusItemTrackingOnBeforeModifyQtyToHandleInvoice. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ReservationEntry parameter. [IntegrationEvent(false, false)] local procedure OnSyncSurPlusItemTrackingOnBeforeModifyQtyToHandleInvoice(var SalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var ReservationEntry: Record "Reservation Entry") begin end; -} \ No newline at end of file + + /// + /// Event raised by OnAfterProcessPostingLines. + /// + /// + /// Specifies the TotalSalesLine parameter. + /// Specifies the CustLedgEntry parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the Window parameter. + /// Specifies the HideProgressWindow parameter. + [IntegrationEvent(false, false)] + local procedure OnAfterProcessPostingLines(var SalesHeader: Record "Sales Header"; var TotalSalesLine: Record "Sales Line"; var CustLedgEntry: Record "Cust. Ledger Entry"; InvoicePostingParameters: Record "Invoice Posting Parameters"; SuppressCommit: Boolean; EverythingInvoiced: Boolean; var Window: Dialog; HideProgressWindow: Boolean) + begin + end; + + /// + /// Raised after checking posting restrictions + /// + /// + [IntegrationEvent(false, false)] + local procedure OnAfterCheckPostRestrictions(var SalesHeader: Record "Sales Header") + begin + end; +} diff --git a/src/Layers/IT/BaseApp/Sales/Receivables/CustEntryApplyPostedEntries.Codeunit.al b/src/Layers/IT/BaseApp/Sales/Receivables/CustEntryApplyPostedEntries.Codeunit.al index 32303f7e34e..fa330586303 100644 --- a/src/Layers/IT/BaseApp/Sales/Receivables/CustEntryApplyPostedEntries.Codeunit.al +++ b/src/Layers/IT/BaseApp/Sales/Receivables/CustEntryApplyPostedEntries.Codeunit.al @@ -419,6 +419,8 @@ codeunit 226 "CustEntry-Apply Posted Entries" CheckAdditionalCurrency(ApplyUnapplyParameters."Posting Date", DtldCustLedgEntry."Posting Date"); AddCurrChecked := true; end; + CheckInitialDocumentType( + DtldCustLedgEntry, ApplyUnapplyParameters."Document No.", ApplyUnapplyParameters."Posting Date", CommitChanges); CheckReversal(DtldCustLedgEntry."Cust. Ledger Entry No."); if DtldCustLedgEntry."Transaction No." <> 0 then CheckUnappliedEntries(DtldCustLedgEntry); @@ -477,6 +479,18 @@ codeunit 226 "CustEntry-Apply Posted Entries" ExchRateAdjmtRunHandler.RunCustExchRateAdjustment(GenJnlLine, TempCustLedgerEntry); end; + local procedure CheckInitialDocumentType(var DtldCustLedgEntry: Record "Detailed Cust. Ledg. Entry"; DocNo: Code[20]; PostingDate: Date; var CommitChanges: Boolean) + var + IsHandled: Boolean; + begin + IsHandled := false; + OnBeforeCheckInitialDocumentType(DtldCustLedgEntry, DocNo, PostingDate, CommitChanges, IsHandled); + if IsHandled then + exit; + + OnAfterCheckInitialDocumentType(DtldCustLedgEntry); + end; + local procedure CheckPostingDate(ApplyUnapplyParameters: Record "Apply Unapply Parameters"; var MaxPostingDate: Date) var GenJnlCheckLine: Codeunit "Gen. Jnl.-Check Line"; @@ -1052,6 +1066,28 @@ codeunit 226 "CustEntry-Apply Posted Entries" begin end; + /// + /// Raised after checking initial document Type + /// + /// The detailed customer ledger entry. + [IntegrationEvent(false, false)] + local procedure OnAfterCheckInitialDocumentType(var DtldCustLedgEntry: Record "Detailed Cust. Ledg. Entry"); + begin + end; + + /// + /// Raised before checking initial document Type + /// + /// The detailed customer ledger entry. + /// The document number. + /// The posting date. + /// Indicates whether to commit changes. + /// Indicates whether the event is handled. + [IntegrationEvent(false, false)] + local procedure OnBeforeCheckInitialDocumentType(var DtldCustLedgEntry: Record "Detailed Cust. Ledg. Entry"; DocNo: Code[20]; PostingDate: Date; var CommitChanges: Boolean; var IsHandled: Boolean); + begin + end; + /// /// Raised before filtering detailed customer ledger entries during unapplication. /// diff --git a/src/Layers/IT/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al b/src/Layers/IT/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al index 31144dde488..8ae05e3758d 100644 --- a/src/Layers/IT/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al +++ b/src/Layers/IT/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al @@ -1,4 +1,4 @@ -// ------------------------------------------------------------------------------------------------ +// ------------------------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // ------------------------------------------------------------------------------------------------ @@ -865,6 +865,13 @@ table 21 "Cust. Ledger Entry" Caption = 'Prepayment'; ToolTip = 'Specifies if the related payment is a prepayment.'; } + field(91; "Payment Terms Code"; Code[10]) + { + Caption = 'Payment Terms Code'; + Editable = false; + TableRelation = "Payment Terms"; + ToolTip = 'Specifies the payment terms that determine the due date and payment discount date for the entry.'; + } field(95; "G/L Register No."; Integer) { Caption = 'G/L Register No.'; @@ -878,6 +885,7 @@ table 21 "Cust. Ledger Entry" field(171; "Payment Reference"; Code[50]) { Caption = 'Payment Reference'; + ToolTip = 'Specifies the payment reference number used by banks to identify and track the payment.'; } /// /// Specifies the payment method used or expected for this transaction, such as bank transfer, cash, or check. @@ -1515,12 +1523,12 @@ table 21 "Cust. Ledger Entry" SetCurrentKey("Customer No.", Open, Positive, "Due Date"); SetRange("Customer No.", CustomerNo); SetRange(Open, true); + OnSetApplyToFiltersOnBeforeSetFilters(Rec); if ApplyDocNo <> '' then begin SetRange("Document Type", ApplyDocType); SetRange("Document No.", ApplyDocNo); if FindFirst() then; - SetRange("Document Type"); - SetRange("Document No."); + ClearDocumentFilters(); end else if ApplyDocType <> 0 then begin SetRange("Document Type", ApplyDocType); @@ -1534,6 +1542,22 @@ table 21 "Cust. Ledger Entry" end; end; + procedure SetAppliesToDocFilters(var GenJnlLine: Record "Gen. Journal Line") + begin + SetRange("Document Type", GenJnlLine."Applies-to Doc. Type"); + SetRange("Document No.", GenJnlLine."Applies-to Doc. No."); + + OnAfterSetAppliesToDocFilters(Rec, GenJnlLine); + end; + + procedure ClearDocumentFilters() + begin + SetRange("Document Type"); + SetRange("Document No."); + + OnAfterClearDocumentFilters(Rec); + end; + /// /// Toggles the Amount to Apply field between the remaining amount and zero for the specified document. /// @@ -1607,6 +1631,7 @@ table 21 "Cust. Ledger Entry" "Payment Method Code" := GenJnlLine."Payment Method Code"; "Payment Reference" := GenJnlLine."Payment Reference"; "Exported to Payment File" := GenJnlLine."Exported to Payment File"; + "Payment Terms Code" := GenJnlLine."Payment Terms Code"; OnAfterCopyCustLedgerEntryFromGenJnlLine(Rec, GenJnlLine); end; @@ -1942,5 +1967,20 @@ table 21 "Cust. Ledger Entry" local procedure OnValidateMaxPaymentToleranceOnBeforeFieldError(var CustLedgerEntry: Record "Cust. Ledger Entry") begin end; + + [IntegrationEvent(false, false)] + local procedure OnAfterSetAppliesToDocFilters(var Rec: Record "Cust. Ledger Entry"; var GenJnlLine: Record "Gen. Journal Line") + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnAfterClearDocumentFilters(var Rec: Record "Cust. Ledger Entry") + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnSetApplyToFiltersOnBeforeSetFilters(var Rec: Record "Cust. Ledger Entry") + begin + end; } diff --git a/src/Layers/IT/BaseApp/Utilities/CopyDocumentMgt.Codeunit.al b/src/Layers/IT/BaseApp/Utilities/CopyDocumentMgt.Codeunit.al index 6d9acab7830..4e3cf806aaf 100644 --- a/src/Layers/IT/BaseApp/Utilities/CopyDocumentMgt.Codeunit.al +++ b/src/Layers/IT/BaseApp/Utilities/CopyDocumentMgt.Codeunit.al @@ -1576,6 +1576,7 @@ codeunit 6620 "Copy Document Mgt." RoundingLineInserted: Boolean; CopyThisLine: Boolean; InvDiscountAmount: Decimal; + PmtDiscountAmount: Decimal; IsHandled: Boolean; ShouldValidateQuantityMoveNegLines: Boolean; ShouldInitToSalesLine: Boolean; @@ -1644,6 +1645,7 @@ codeunit 6620 "Copy Document Mgt." (ToSalesHeader."Currency Factor" <> FromSalesHeader."Currency Factor") then begin InvDiscountAmount := ToSalesLine."Inv. Discount Amount"; + PmtDiscountAmount := ToSalesLine."Pmt. Discount Amount"; IsHandled := false; OnCopySalesDocLineOnBeforeValidateLineDiscountPct(ToSalesLine, IsHandled); if not IsHandled then @@ -1652,6 +1654,7 @@ codeunit 6620 "Copy Document Mgt." OnCopySalesDocLineOnBeforeValidateInvDiscountAmount(ToSalesLine, InvDiscountAmount, IsHandled); if not IsHandled then ToSalesLine.Validate("Inv. Discount Amount", InvDiscountAmount); + ToSalesLine."Pmt. Discount Amount" := PmtDiscountAmount; end; end; ToSalesLine.Validate("Currency Code", FromSalesHeader."Currency Code"); @@ -2155,6 +2158,7 @@ codeunit 6620 "Copy Document Mgt." local procedure ValidatePurchLineDiscountFields(FromPurchHeader: Record "Purchase Header"; ToPurchHeader: Record "Purchase Header"; var ToPurchLine: Record "Purchase Line") var InvDiscountAmount: Decimal; + PmtDiscountAmount: Decimal; IsHandled: Boolean; begin IsHandled := false; @@ -2168,8 +2172,10 @@ codeunit 6620 "Copy Document Mgt." (ToPurchHeader."Currency Factor" <> FromPurchHeader."Currency Factor")) then begin InvDiscountAmount := ToPurchLine."Inv. Discount Amount"; + PmtDiscountAmount := ToPurchLine."Pmt. Discount Amount"; ToPurchLine.Validate("Line Discount %"); ToPurchLine.Validate("Inv. Discount Amount", InvDiscountAmount); + ToPurchLine."Pmt. Discount Amount" := PmtDiscountAmount; end; end; @@ -7252,6 +7258,7 @@ codeunit 6620 "Copy Document Mgt." CustLedgEntry.SetRange("Document No.", FromDocNo); CustLedgEntry.SetRange("Customer No.", ToSalesHeader."Bill-to Customer No."); CustLedgEntry.SetRange(Open, true); + OnUpdateCustLedgEntryOnAfterSetFilters(CustLedgEntry, ToSalesHeader, FromDocType, FromDocNo); if CustLedgEntry.FindFirst() then begin ToSalesHeader."Bal. Account No." := ''; if FromDocType = "Sales Document Type From"::"Posted Invoice" then begin @@ -7267,7 +7274,8 @@ codeunit 6620 "Copy Document Mgt." CustLedgEntry."Accepted Payment Tolerance" := 0; CustLedgEntry."Accepted Pmt. Disc. Tolerance" := false; CODEUNIT.Run(CODEUNIT::"Cust. Entry-Edit", CustLedgEntry); - end; + end else + OnUpdateCustLedgEntryOnNoOpenEntries(CustLedgEntry, ToSalesHeader, FromDocType, FromDocNo); OnAfterUpdateCustLedgerEntry(ToSalesHeader, FromDocType, FromDocNo, CustLedgEntry); end; @@ -7288,6 +7296,7 @@ codeunit 6620 "Copy Document Mgt." VendLedgEntry.SetRange("Document No.", FromDocNo); VendLedgEntry.SetRange("Vendor No.", ToPurchHeader."Pay-to Vendor No."); VendLedgEntry.SetRange(Open, true); + OnUpdateVendLedgEntryOnAfterSetFilters(VendLedgEntry, ToPurchHeader, FromDocType, FromDocNo); if VendLedgEntry.FindFirst() then begin if FromDocType = "Purchase Document Type From"::"Posted Invoice" then begin ToPurchHeader."Applies-to Doc. Type" := ToPurchHeader."Applies-to Doc. Type"::Invoice; @@ -7302,7 +7311,8 @@ codeunit 6620 "Copy Document Mgt." VendLedgEntry."Accepted Payment Tolerance" := 0; VendLedgEntry."Accepted Pmt. Disc. Tolerance" := false; CODEUNIT.Run(CODEUNIT::"Vend. Entry-Edit", VendLedgEntry); - end; + end else + OnUpdateVendLedgEntryOnNoOpenEntries(VendLedgEntry, ToPurchHeader, FromDocType, FromDocNo); end; OnAfterUpdateVendLedgEntry(ToPurchHeader, FromDocNo, FromDocType, VendLedgEntry); @@ -8239,8 +8249,7 @@ codeunit 6620 "Copy Document Mgt." /// A boolean variable indicating if posted deferrals should be copied. /// The next line number for the target document. [IntegrationEvent(false, false)] - local procedure OnBeforeCopyPurchLine(var ToPurchHeader: Record "Purchase Header"; FromPurchHeader: Record "Purchase Header"; FromPurchLine: Record "Purchase Line"; RecalculateAmount: Boolean; var CopyThisLine: Boolean; ToPurchLine: Record "Purchase Line"; MoveNegLines: Boolean; var RoundingLineInserted: Boolean; var Result: Boolean; var IsHandled: Boolean; FromPurchDocType: Enum "Purchase Document Type From"; DocLineNo: Integer; - RecalculateLines: Boolean; var LinesNotCopied: Integer; var CopyPostedDeferral: Boolean; var NextLineNo: Integer) + local procedure OnBeforeCopyPurchLine(var ToPurchHeader: Record "Purchase Header"; FromPurchHeader: Record "Purchase Header"; FromPurchLine: Record "Purchase Line"; RecalculateAmount: Boolean; var CopyThisLine: Boolean; ToPurchLine: Record "Purchase Line"; MoveNegLines: Boolean; var RoundingLineInserted: Boolean; var Result: Boolean; var IsHandled: Boolean; FromPurchDocType: Enum "Purchase Document Type From"; DocLineNo: Integer; RecalculateLines: Boolean; var LinesNotCopied: Integer; var CopyPostedDeferral: Boolean; var NextLineNo: Integer) begin end; @@ -12548,4 +12557,24 @@ codeunit 6620 "Copy Document Mgt." local procedure OnCreateJobPlanningLineOnAfterInitFromJobPlanningLine(var NewJobPlanningLine: Record "Job Planning Line"; JobPlanningLine: Record "Job Planning Line"; SalesLine: Record "Sales Line") begin end; + + [IntegrationEvent(false, false)] + local procedure OnUpdateCustLedgEntryOnAfterSetFilters(var CustLedgerEntry: Record "Cust. Ledger Entry"; var ToSalesHeader: Record "Sales Header"; FromDocType: Enum "Gen. Journal Document Type"; FromDocNo: Code[20]) + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnUpdateVendLedgEntryOnAfterSetFilters(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var ToPurchHeader: Record "Purchase Header"; FromDocType: Enum "Gen. Journal Document Type"; FromDocNo: Code[20]) + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnUpdateCustLedgEntryOnNoOpenEntries(var CustLedgerEntry: Record "Cust. Ledger Entry"; var ToSalesHeader: Record "Sales Header"; FromDocType: Enum "Gen. Journal Document Type"; FromDocNo: Code[20]) + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnUpdateVendLedgEntryOnNoOpenEntries(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var ToPurchHeader: Record "Purchase Header"; FromDocType: Enum "Gen. Journal Document Type"; FromDocNo: Code[20]) + begin + end; } diff --git a/src/Layers/NA/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al b/src/Layers/NA/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al index 286726c787c..8915de2517f 100644 --- a/src/Layers/NA/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al +++ b/src/Layers/NA/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al @@ -237,6 +237,8 @@ codeunit 11 "Gen. Jnl.-Check Line" exit; GenJournalLine.TestField("Document No.", ErrorInfo.Create()); + + OnAfterTestDocumentNo(GenJournalLine); end; local procedure TestAccountAndBalAccountType(var GenJnlLine: Record "Gen. Journal Line") @@ -1528,6 +1530,15 @@ codeunit 11 "Gen. Jnl.-Check Line" begin end; + /// + /// Integration event raised after validating document number field requirements for journal lines. + /// + /// Journal line record being validated for document number requirements. + [IntegrationEvent(false, false)] + local procedure OnAfterTestDocumentNo(GenJournalLine: Record "Gen. Journal Line") + begin + end; + /// /// Integration event raised before validating document number field requirements for journal lines. /// Enables custom logic to completely override standard document number validation processing. diff --git a/src/Layers/NA/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al b/src/Layers/NA/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al index d1e52978512..47b1225e857 100644 --- a/src/Layers/NA/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al +++ b/src/Layers/NA/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al @@ -1,4 +1,4 @@ -// ------------------------------------------------------------------------------------------------ +// ------------------------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // ------------------------------------------------------------------------------------------------ @@ -837,7 +837,7 @@ codeunit 12 "Gen. Jnl.-Post Line" VATEntry."Tax Jurisdiction Code" := GenJnlLine."Tax Jurisdiction Code"; VATEntry."STE Transaction ID" := GenJnlLine."STE Transaction ID"; VATEntry."GST/HST" := GenJnlLine."GST/HST"; - OnInsertVATOnAfterAssignVATEntryFields(GenJnlLine, VATEntry, CurrExchRate); + OnInsertVATOnAfterAssignVATEntryFields(GenJnlLine, VATEntry, CurrExchRate, VATPostingSetup); if GenJnlLine."VAT Calculation Type" = GenJnlLine."VAT Calculation Type"::"Sales Tax" then begin if GenJnlLine."Use Tax" then begin @@ -10260,7 +10260,7 @@ codeunit 12 "Gen. Jnl.-Post Line" end; [IntegrationEvent(false, false)] - local procedure OnInsertVATOnAfterAssignVATEntryFields(GenJnlLine: Record "Gen. Journal Line"; var VATEntry: Record "VAT Entry"; CurrExchRate: Record "Currency Exchange Rate") + local procedure OnInsertVATOnAfterAssignVATEntryFields(var GenJnlLine: Record "Gen. Journal Line"; var VATEntry: Record "VAT Entry"; CurrExchRate: Record "Currency Exchange Rate"; var VATPostingSetup: Record "VAT Posting Setup") begin end; diff --git a/src/Layers/NA/BaseApp/Foundation/Navigate/Navigate.Page.al b/src/Layers/NA/BaseApp/Foundation/Navigate/Navigate.Page.al index ec8b1fc8cc5..8994ecb12a2 100644 --- a/src/Layers/NA/BaseApp/Foundation/Navigate/Navigate.Page.al +++ b/src/Layers/NA/BaseApp/Foundation/Navigate/Navigate.Page.al @@ -1950,6 +1950,7 @@ page 344 Navigate ItemTrackingFilters.SetFilter("Package No. Filter", PackageNoFilter); OnAfterSetTrackingFiltersOnBeforeFindTrackingRecords(ItemTrackingFilters); + OnFindTrackingRecordsOnAfterSetTrackingFilters(ItemTrackingFilters); Clear(ItemTrackingNavigateMgt); ItemTrackingNavigateMgt.FindTrackingRecords(ItemTrackingFilters); @@ -2485,6 +2486,11 @@ page 344 Navigate begin end; + [IntegrationEvent(true, false)] + local procedure OnFindTrackingRecordsOnAfterSetTrackingFilters(var ItemTrackingFilters: Record Item) + begin + end; + [IntegrationEvent(false, false)] local procedure OnFindUnpostedPurchaseDocsOnAfterSetFilters(var PurchaseHeader: Record "Purchase Header") begin diff --git a/src/Layers/NA/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al b/src/Layers/NA/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al index cb2c102b8ec..a5ec41ea576 100644 --- a/src/Layers/NA/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al +++ b/src/Layers/NA/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al @@ -17,6 +17,7 @@ using Microsoft.FixedAssets.FixedAsset; using Microsoft.Foundation.Attachment; using Microsoft.Foundation.AuditCodes; using Microsoft.Foundation.NoSeries; +using Microsoft.Foundation.PaymentTerms; using Microsoft.Intercompany.Partner; using Microsoft.Purchases.History; using Microsoft.Purchases.Remittance; @@ -580,6 +581,13 @@ table 25 "Vendor Ledger Entry" { Caption = 'Prepayment'; } + field(91; "Payment Terms Code"; Code[10]) + { + Caption = 'Payment Terms Code'; + Editable = false; + TableRelation = "Payment Terms"; + ToolTip = 'Specifies the payment terms that determine the due date and payment discount date for the entry.'; + } field(95; "G/L Register No."; Integer) { Caption = 'G/L Register No.'; @@ -984,6 +992,22 @@ table 25 "Vendor Ledger Entry" exit(''); end; + procedure SetAppliesToDocFilters(var GenJnlLine: Record "Gen. Journal Line") + begin + SetRange("Document Type", GenJnlLine."Applies-to Doc. Type"); + SetRange("Document No.", GenJnlLine."Applies-to Doc. No."); + + OnAfterSetAppliesToDocFilters(Rec, GenJnlLine); + end; + + procedure ClearDocumentFilters() + begin + SetRange("Document Type"); + SetRange("Document No."); + + OnAfterClearDocumentFilters(Rec); + end; + procedure CopyFromGenJnlLine(GenJnlLine: Record "Gen. Journal Line") begin "Vendor No." := GenJnlLine."Account No."; @@ -1025,6 +1049,7 @@ table 25 "Vendor Ledger Entry" "Creditor No." := GenJnlLine."Creditor No."; "Payment Reference" := GenJnlLine."Payment Reference"; "Payment Method Code" := GenJnlLine."Payment Method Code"; + "Payment Terms Code" := GenJnlLine."Payment Terms Code"; "Exported to Payment File" := GenJnlLine."Exported to Payment File"; if (GenJnlLine."Remit-to Code" <> '') then "Remit-to Code" := GenJnlLine."Remit-to Code"; @@ -1263,4 +1288,14 @@ table 25 "Vendor Ledger Entry" local procedure OnBeforeUpdateAmountsForApplication(var VendorLedgerEntry: Record "Vendor Ledger Entry"; ApplnDate: Date; ApplnCurrencyCode: Code[10]; RoundAmounts: Boolean; UpdateMaxPaymentTolerance: Boolean; var IsHandled: Boolean) begin end; + + [IntegrationEvent(false, false)] + local procedure OnAfterSetAppliesToDocFilters(var Rec: Record "Vendor Ledger Entry"; var GenJnlLine: Record "Gen. Journal Line") + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnAfterClearDocumentFilters(var Rec: Record "Vendor Ledger Entry") + begin + end; } diff --git a/src/Layers/NA/BaseApp/Purchases/Posting/PurchPost.Codeunit.al b/src/Layers/NA/BaseApp/Purchases/Posting/PurchPost.Codeunit.al index 0277f162c4f..4551a2d3f96 100644 --- a/src/Layers/NA/BaseApp/Purchases/Posting/PurchPost.Codeunit.al +++ b/src/Layers/NA/BaseApp/Purchases/Posting/PurchPost.Codeunit.al @@ -184,10 +184,7 @@ codeunit 90 "Purch.-Post" /// The purchase header of the document that is being posted. /// Accumulates drop-shipment buffer records during posting. /// Set to false during posting if any line is partially invoiced. - local procedure ProcessPosting( - var PurchHeader: Record "Purchase Header"; - var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; - var EverythingInvoiced: Boolean) + local procedure ProcessPosting(var PurchHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var EverythingInvoiced: Boolean) var IgnoreCommit: Boolean; begin @@ -351,6 +348,10 @@ codeunit 90 "Purch.-Post" OnRunOnBeforeMakeInventoryAdjustment(PurchHeader, GenJnlPostLine, ItemJnlPostLine, PreviewMode, PurchRcptHeader, PurchInvHeader, IsHandled); if not IsHandled then MakeInventoryAdjustment(); + + Clear(GenJnlPostLine); + + OnAfterProcessPostingLines(PurchHeader, TotalPurchLine, VendLedgEntry, InvoicePostingParameters, SuppressCommit, EverythingInvoiced, Window); end; var @@ -886,6 +887,7 @@ codeunit 90 "Purch.-Post" begin if not DocumentIsReadyToBeChecked then PrepareCheckDocument(PurchHeader); + ErrorMessageMgt.PushContext(ErrorContextElement, PurchHeader.RecordId, 0, CheckPurchHeaderMsg); CheckMandatoryHeaderFields(PurchHeader); GetGLSetup(); @@ -1162,7 +1164,6 @@ codeunit 90 "Purch.-Post" end; end; - RemQtyToBeInvoiced := PurchLine."Qty. to Invoice"; RemQtyToBeInvoicedBase := PurchLine."Qty. to Invoice (Base)"; @@ -4213,6 +4214,8 @@ codeunit 90 "Purch.-Post" if PurchaseHeader."Pay-to Contact No." <> '' then if Contact.Get(PurchaseHeader."Pay-to Contact No.") then Contact.CheckIfPrivacyBlocked(true); + + OnAfterCheckPostRestrictions(PurchaseHeader); end; local procedure CheckFAPostingPossibility(PurchaseHeader: Record "Purchase Header") @@ -5502,7 +5505,7 @@ codeunit 90 "Purch.-Post" if PurchHeader."Prices Including VAT" then PrepmtVATBaseToDeduct := Round( - (TotalPrepmtAmtToDeduct + PurchLine."Prepmt Amt to Deduct") / (1 + PurchLine."Prepayment VAT %" / 100), + (TotalPrepmtAmtToDeduct + PurchLine."Prepmt Amt to Deduct") / (1 + PurchLine.GetPrepaymentVATPct() / 100), Currency."Amount Rounding Precision") - Round( TotalPrepmtAmtToDeduct / (1 + PurchLine.GetPrepaymentVATPct() / 100), @@ -9711,169 +9714,404 @@ codeunit 90 "Purch.-Post" ItemsToAdjust.Add(Item2."No."); end; + /// + /// Event raised by OnArchiveSalesOrdersOnBeforeSalesOrderLineModify. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnArchiveSalesOrdersOnBeforeSalesOrderLineModify(var SalesOrderLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnAfterBlanketOrderPurchLineModify. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnAfterBlanketOrderPurchLineModify(var BlanketOrderPurchLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnAfterCheckPurchDoc. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the ErrorMessageMgt parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckPurchDoc(var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; WhseShip: Boolean; WhseReceive: Boolean; PreviewMode: Boolean; var ErrorMessageMgt: Codeunit "Error Message Management") begin end; + /// + /// Event raised by OnAfterCheckAndUpdate. + /// + /// + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckAndUpdate(var PurchaseHeader: Record "Purchase Header"; CommitIsSuppressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterCheckTrackingSpecification. + /// + /// + /// Specifies the TempItemPurchaseLine parameter. [IntegrationEvent(true, false)] local procedure OnAfterCheckTrackingSpecification(PurchaseHeader: Record "Purchase Header"; var TempItemPurchaseLine: Record "Purchase Line" temporary); begin end; + /// + /// Event raised by OnAfterCheckTrackingAndWarehouseForReceive. + /// + /// + /// Specifies the Receive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckTrackingAndWarehouseForReceive(var PurchaseHeader: Record "Purchase Header"; var Receive: Boolean; CommitIsSupressed: Boolean; var TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterCheckTrackingAndWarehouseForShip. + /// + /// + /// Specifies the Ship parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchaseLine parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckTrackingAndWarehouseForShip(var PurchaseHeader: Record "Purchase Header"; var Ship: Boolean; CommitIsSupressed: Boolean; var TempPurchaseLine: Record "Purchase Line" temporary; var TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary) begin end; + /// + /// Event raised by OnAfterCreateJobPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCreateJobPurchLine(var JobPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterCreateWhseJnlLine. + /// + /// + /// Specifies the TempWhseJnlLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCreateWhseJnlLine(PurchaseLine: Record "Purchase Line"; var TempWhseJnlLine: record "Warehouse Journal Line" temporary) begin end; + /// + /// Event raised by OnAfterDeleteAfterPosting. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterDeleteAfterPosting(PurchHeader: Record "Purchase Header"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterDeleteApprovalEntries. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchRcptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterDeleteApprovalEntries(var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; PurchRcptHeader: Record "Purch. Rcpt. Header") begin end; + /// + /// Event raised by OnAfterDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. [IntegrationEvent(false, false)] local procedure OnAfterDivideAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping; PurchLineQty: Decimal; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary) begin end; + /// + /// Event raised by OnAfterGetAmountRoundingPrecisionInLCY. + /// + /// + /// Specifies the DocNo parameter. + /// Specifies the CurrencyCode parameter. + /// Specifies the AmountRoundingPrecision parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetAmountRoundingPrecisionInLCY(DocType: Enum "Purchase Document Type"; DocNo: Code[20]; CurrencyCode: Code[10]; var AmountRoundingPrecision: Decimal) begin end; + /// + /// Event raised by OnAfterGetLineDataFromOrder. + /// + /// + /// Specifies the PurchOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetLineDataFromOrder(var PurchLine: Record "Purchase Line"; PurchOrderLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterGetPurchSetup. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterGetPurchSetup(var PurchSetup: Record "Purchases & Payables Setup") begin end; + /// + /// Event raised by OnAfterModifyTempLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterModifyTempLine(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostPurchaseDoc. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PurchRcpHdrNo parameter. + /// Specifies the RetShptHdrNo parameter. + /// Specifies the PurchInvHdrNo parameter. + /// Specifies the PurchCrMemoHdrNo parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] procedure OnAfterPostPurchaseDoc(var PurchaseHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PurchRcpHdrNo: Code[20]; RetShptHdrNo: Code[20]; PurchInvHdrNo: Code[20]; PurchCrMemoHdrNo: Code[20]; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterPostPurchaseDocDropShipment. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostPurchaseDocDropShipment(SalesShptNo: Code[20]; CommitIsSupressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterRetrieveInvoiceTrackingSpecificationIfExists. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. [IntegrationEvent(false, false)] local procedure OnAfterRetrieveInvoiceTrackingSpecificationIfExists(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TrackingSpecificationExists: Boolean) begin end; + /// + /// Event raised by OnAfterUpdatePostingNos. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePostingNos(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; PreviewMode: Boolean; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnAfterCheckMandatoryFields. + /// + /// + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckMandatoryFields(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterFinalizePosting. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterFinalizePosting(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShptHeader: Record "Return Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PreviewMode: Boolean; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterFinalizePostingOnBeforeCommit. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnAfterFinalizePostingOnBeforeCommit(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShptHeader: Record "Return Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PreviewMode: Boolean; CommitIsSupressed: Boolean; EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnAfterIncrAmount. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterIncrAmount(var TotalPurchLine: Record "Purchase Line"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterInitAssocItemJnlLine. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the QtyToBeShipped parameter. [IntegrationEvent(false, false)] local procedure OnAfterInitAssocItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; PurchaseHeader: Record "Purchase Header"; QtyToBeShipped: Decimal) begin end; + /// + /// Event raised by OnAfterInsertCombinedSalesShipment. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterInsertCombinedSalesShipment(var SalesShipmentHeader: Record "Sales Shipment Header") begin end; + /// + /// Event raised by OnAfterInsertPostedHeaders. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchSetup parameter. + /// Specifies the Window parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertPostedHeaders(var PurchaseHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShptHeader: Record "Return Shipment Header"; var PurchSetup: Record "Purchases & Payables Setup"; var Window: Dialog) begin end; + /// + /// Event raised by OnAfterInsertReceiptHeader. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertReceiptHeader(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var TempWhseRcptHeader: Record "Warehouse Receipt Header" temporary; WhseReceive: Boolean; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnAfterInsertReturnShipmentHeader. + /// + /// + /// Specifies the ReturnShptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertReturnShipmentHeader(var PurchHeader: Record "Purchase Header"; var ReturnShptHeader: Record "Return Shipment Header") begin end; + /// + /// Event raised by OnAfterInvoiceRoundingAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TotalPurchaseLine parameter. + /// Specifies the UseTempData parameter. + /// Specifies the InvoiceRoundingAmount parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the RoundingLineNo parameter. [IntegrationEvent(false, false)] local procedure OnAfterInvoiceRoundingAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TotalPurchaseLine: Record "Purchase Line"; UseTempData: Boolean; InvoiceRoundingAmount: Decimal; CommitIsSuppressed: Boolean; RoundingLineInserted: Boolean; RoundingLineNo: Integer) begin end; + /// + /// Event raised by OnAfterInsertedPrepmtVATBaseToDeduct. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PrepmtLineNo parameter. + /// Specifies the TotalPrepmtAmtToDeduct parameter. + /// Specifies the TempPrepmtDeductLCYPurchLine parameter. + /// Specifies the PrepmtVATBaseToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertedPrepmtVATBaseToDeduct(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; PrepmtLineNo: Integer; TotalPrepmtAmtToDeduct: Decimal; var TempPrepmtDeductLCYPurchLine: Record "Purchase Line" temporary; var PrepmtVATBaseToDeduct: Decimal) begin end; + /// + /// Event raised by OnAfterPostAssocItemJnlLine. + /// + /// + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the SalesLineOrder parameter. + /// Specifies the SalesOrderHeader parameter. + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostAssocItemJnlLine(var ItemJnlLine: Record "Item Journal Line"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var SalesLineOrder: Record "Sales Line"; var SalesOrderHeader: Record "Sales Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAfterPostCombineSalesOrderShipment. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostCombineSalesOrderShipment(var PurchaseHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin @@ -9886,275 +10124,680 @@ codeunit 90 "Purch.-Post" end; [Obsolete('Moved to codeunit MfgPurchPost', '27.0')] + /// + /// Event raised by OnAfterPostItemJnlLineCopyProdOrder. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLineCopyProdOrder(var ItemJnlLine: Record "Item Journal Line"; PurchLine: Record "Purchase Line"; PurchRcptHeader: Record "Purch. Rcpt. Header"; QtyToBeReceived: Decimal; CommitIsSupressed: Boolean; QtyToBeInvoiced: Decimal) begin end; #endif + /// + /// Event raised by OnAfterPostItemJnlLineItemCharges. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLineItemCharges(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerOrder. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerOrder(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemTrackingLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemTrackingLine(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnAfterPostUpdateCreditMemoLine. + /// + /// [IntegrationEvent(true, false)] local procedure OnAfterPostUpdateCreditMemoLine(var PurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPostUpdateInvoiceLine. + /// + /// [IntegrationEvent(true, false)] local procedure OnAfterPostUpdateInvoiceLine(var PurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPurchRcptHeaderInsert. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchRcptHeaderInsert(var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterPurchRcptLineInsert. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchRcptLineInsert(PurchaseLine: Record "Purchase Line"; var PurchRcptLine: Record "Purch. Rcpt. Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; PurchInvHeader: Record "Purch. Inv. Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; PurchRcptHeader: Record "Purch. Rcpt. Header"; TempWhseRcptHeader: Record "Warehouse Receipt Header"; xPurchLine: Record "Purchase Line"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPurchInvHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchInvHeaderInsert(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterPurchInvLineInsert. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchInvLineInsert(var PurchInvLine: Record "Purch. Inv. Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; PurchHeader: Record "Purchase Header"; PurchRcptHeader: Record "Purch. Rcpt. Header"; TempWhseRcptHeader: Record "Warehouse Receipt Header"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnAfterPurchCrMemoHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchCrMemoHeaderInsert(var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterPurchCrMemoLineInsert. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchCrMemoLineInsert(var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var PurchaseHeader: Record "Purchase Header"; GenJnlLineDocNo: Code[20]; RoundingLineInserted: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnAfterReturnShptHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterReturnShptHeaderInsert(var ReturnShptHeader: Record "Return Shipment Header"; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterReturnShptLineInsert. + /// + /// + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempWhseShptHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the xPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterReturnShptLineInsert(var ReturnShptLine: Record "Return Shipment Line"; ReturnShptHeader: Record "Return Shipment Header"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; var TempWhseShptHeader: Record "Warehouse Shipment Header" temporary; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; xPurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterRevertWarehouseEntry. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterRevertWarehouseEntry(var TempWhseJnlLine: Record "Warehouse Journal Line" temporary) begin end; + /// + /// Event raised by OnAfterSalesShptHeaderInsert. + /// + /// + /// Specifies the SalesOrderHeader parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterSalesShptHeaderInsert(var SalesShipmentHeader: Record "Sales Shipment Header"; SalesOrderHeader: Record "Sales Header"; CommitIsSuppressed: Boolean; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterSalesShptLineInsert. + /// + /// + /// Specifies the SalesShptHeader parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the DropShptPostBuffer parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnAfterSalesShptLineInsert(var SalesShptLine: Record "Sales Shipment Line"; SalesShptHeader: Record "Sales Shipment Header"; SalesOrderLine: Record "Sales Line"; CommitIsSuppressed: Boolean; DropShptPostBuffer: Record "Drop Shpt. Post. Buffer"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPostAccICLine. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostAccICLine(PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnAfterPostItemLine. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(true, false)] local procedure OnAfterPostItemLine(PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; PurchaseHeader: Record "Purchase Header"; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnAfterPostItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the WhseJnlRegisterLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseRcptHeader parameter. + /// Specifies the WhseShptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var WhseJnlRegisterLine: Codeunit "Whse. Jnl.-Register Line"; var WhseReceive: Boolean; var WhseShip: Boolean; var WhseRcptHeader: Record "Warehouse Receipt Header"; var WhseShptHeader: Record "Warehouse Shipment Header") begin end; + /// + /// Event raised by OnAfterPostWhseJnlLine. + /// + /// + /// Specifies the ItemLedgEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostWhseJnlLine(var PurchaseLine: Record "Purchase Line"; ItemLedgEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterPostUpdateOrderLine. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostUpdateOrderLine(var PurchaseLine: Record "Purchase Line"; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterPostInvoice. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the VendorLedgerEntry parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostInvoice(var PurchHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; TotalPurchLine: Record "Purchase Line"; TotalPurchLineLCY: Record "Purchase Line"; CommitIsSupressed: Boolean; var VendorLedgerEntry: Record "Vendor Ledger Entry") begin end; + /// + /// Event raised by OnAfterPostPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchInvLine parameter. + /// Specifies the PurchCrMemoLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLineACY parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostPurchLine(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var PurchInvLine: Record "Purch. Inv. Line"; var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchLineACY: Record "Purchase Line"; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; SrcCode: Code[10]; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterProcessPurchLines. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the PurchLinesProcessed parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnAfterProcessPurchLines(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShipmentHeader: Record "Return Shipment Header"; WhseShip: Boolean; WhseReceive: Boolean; var PurchLinesProcessed: Boolean; CommitIsSuppressed: Boolean; EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnAfterProcessAssocItemJnlLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnAfterProcessAssocItemJnlLine(var PurchLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnAfterReleasePurchDoc. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterReleasePurchDoc(var PurchHeader: Record "Purchase Header"); begin end; + /// + /// Event raised by OnAfterRefreshTempLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterRefreshTempLines(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterResetTempLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterResetTempLines(var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterRestorePurchaseHeader. + /// + /// + /// Specifies the PurchaseHeaderCopy parameter. [IntegrationEvent(false, false)] local procedure OnAfterRestorePurchaseHeader(var PurchaseHeader: Record "Purchase Header"; PurchaseHeaderCopy: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterReverseAmount. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterReverseAmount(var PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterRoundAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchLineQty parameter. [IntegrationEvent(false, false)] local procedure OnAfterRoundAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchLineQty: Decimal) begin end; + /// + /// Event raised by OnAfterSaveTempWhseSplitSpec. + /// + /// + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnAfterSaveTempWhseSplitSpec(PurchaseLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAfterSetPostingFlags. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterSetPostingFlags(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterTestPurchLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(false, false)] local procedure OnAfterTestPurchLine(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateInvoicedQtyOnPurchRcptLine. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoicedQtyOnPurchRcptLine(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchRcptLine: Record "Purch. Rcpt. Line"; var PurchaseLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; TrackingSpecificationExists: Boolean; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; var PurchaseHeader: Record "Purchase Header"; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateInvoicedQtyOnReturnShptLine. + /// + /// + /// Specifies the ReturnShipmentLine parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoicedQtyOnReturnShptLine(PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShipmentLine: Record "Return Shipment Line"; PurchaseLine: Record "Purchase Line"; TempTrackingSpecification: Record "Tracking Specification" temporary; TrackingSpecificationExists: Boolean; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnAfterUpdateLastPostingNos. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterUpdateLastPostingNos(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterUpdatePurchLineBeforePost. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the RoundingLineInserted parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePurchLineBeforePost(var PurchaseLine: Record "Purchase Line"; WhseShip: Boolean; WhseReceive: Boolean; PurchaseHeader: Record "Purchase Header"; RoundingLineInserted: Boolean) begin end; + /// + /// Event raised by OnAfterUpdatePrepmtPurchLineWithRounding. + /// + /// + /// Specifies the TotalRoundingAmount parameter. + /// Specifies the TotalPrepmtAmount parameter. + /// Specifies the FinalInvoice parameter. + /// Specifies the PricesInclVATRoundingAmount parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePrepmtPurchLineWithRounding(var PrepmtPurchLine: Record "Purchase Line"; TotalRoundingAmount: array[2] of Decimal; TotalPrepmtAmount: array[2] of Decimal; FinalInvoice: Boolean; PricesInclVATRoundingAmount: array[2] of Decimal; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterUpdatePurchaseHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePurchaseHeader(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; GenJnlLineDocType: Integer; GenJnlLineDocNo: Code[20]; PreviewMode: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterUpdatePurchLineDimSetIDFromAppliedEntry. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePurchLineDimSetIDFromAppliedEntry(var PurchLineToPost: Record "Purchase Line"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterValidatePostingAndDocumentDate. + /// + /// + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterValidatePostingAndDocumentDate(var PurchaseHeader: Record "Purchase Header"; CommitIsSuppressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnBeforeAddAssociatedOrderLineToBuffer. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAddAssociatedOrderLineToBuffer(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeModifyTempLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeModifyTempLine(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnModifyTempLineOnBeforeTransferFields. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnBeforeTransferFields(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeAdjustQuantityRoundingForReceipt. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustQuantityRoundingForReceipt(PurchRcptLine: Record "Purch. Rcpt. Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeArchiveUnpostedOrder. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the OrderArchived parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeArchiveUnpostedOrder(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; var OrderArchived: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnBeforeArchiveSalesOrders. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeArchiveSalesOrders(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeBlanketOrderPurchLineModify. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnBeforeBlanketOrderPurchLineModify(var BlanketOrderPurchLine: Record "Purchase Line"; PurchLine: Record "Purchase Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcInvoice. + /// + /// + /// Specifies the NewInvoice parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcInvoice(var PurchHeader: Record "Purchase Header"; var NewInvoice: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalculateAmountsInclVAT. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalculateAmountsInclVAT(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalculateInvoiceEverything. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the InvoiceEverything parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalculateInvoiceEverything(var TempPurchaseLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; var InvoiceEverything: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcLineAmountAndLineDiscountAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Currency parameter. [IntegrationEvent(true, false)] local procedure OnBeforeCalcLineAmountAndLineDiscountAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; PurchLineQty: Decimal; var IsHandled: Boolean; Currency: Record Currency) begin @@ -10162,163 +10805,379 @@ codeunit 90 "Purch.-Post" #if not CLEAN28 [Obsolete('This event is no longer used.', '28.0')] + /// + /// Event raised by OnBeforeCheckDropShipmentReceiveInvoice. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforeCheckDropShipmentReceiveInvoice(PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; #endif + /// + /// Event raised by OnBeforeCheckDocumentTotalAmounts. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforeCheckDocumentTotalAmounts(PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckExternalDocumentNumber. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the Handled parameter. + /// Specifies the DocType parameter. + /// Specifies the ExtDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckExternalDocumentNumber(VendorLedgerEntry: Record "Vendor Ledger Entry"; PurchaseHeader: Record "Purchase Header"; var Handled: Boolean; DocType: Option; ExtDocNo: Text[35]; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeCheckExtDocNo. + /// + /// + /// Specifies the DocumentType parameter. + /// Specifies the ExtDocNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckExtDocNo(PurchaseHeader: Record "Purchase Header"; DocumentType: Enum "Gen. Journal Document Type"; ExtDocNo: Text[35]; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckGLAccDirectPosting. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckGLAccDirectPosting(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckICDocumentDuplicatePosting. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckICDocumentDuplicatePosting(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckIfInvPutawayExists. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckIfInvPutawayExists(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckHeaderPostingType. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckHeaderPostingType(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckFieldsOnReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckFieldsOnReturnShipmentLine(var ReturnShipmentLine: Record "Return Shipment Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterCheckFieldsOnReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckFieldsOnReturnShipmentLine(ReturnShipmentLine: Record "Return Shipment Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeCheckPrepmtAmtToDeduct. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPrepmtAmtToDeduct(PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckPurchRcptLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckTrackingSpecification. + /// + /// + /// Specifies the TempItemPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckTrackingSpecification(PurchHeader: Record "Purchase Header"; var TempItemPurchLine: Record "Purchase Line" temporary); begin end; + /// + /// Event raised by OnBeforeCheckTrackingAndWarehouseForShip. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the Ship parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckTrackingAndWarehouseForShip(PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var Ship: Boolean; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeCheckWarehouse. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckWarehouse(var TempItemPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckWhseRcptLineQtyToReceive. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckWhseRcptLineQtyToReceive(var WhseRcptLine: Record "Warehouse Receipt Line"; var PurchRcptLine: Record "Purch. Rcpt. Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeClearRemAmt. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlRollRndg parameter. + /// Specifies the RemAmt parameter. + /// Specifies the RemDiscAmt parameter. [IntegrationEvent(false, false)] local procedure OnBeforeClearRemAmt(PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; ItemJnlRollRndg: Boolean; var RemAmt: Decimal; var RemDiscAmt: Decimal) begin end; + /// + /// Event raised by OnBeforeCreatePositiveEntry. + /// + /// + /// Specifies the JobNo parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePositiveEntry(var WarehouseJournalLine: Record "Warehouse Journal Line"; JobNo: Code[20]; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCreatePostedWhseRcptHeader. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedWhseRcptHeader(var PostedWhseReceiptHeader: Record "Posted Whse. Receipt Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeCreatePostedWhseShptHeader. + /// + /// + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedWhseShptHeader(var PostedWhseShipmentHeader: Record "Posted Whse. Shipment Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeCreatePostedWhseShptLine. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedWhseShptLine(PurchLine: Record "Purchase Line"; ReturnShptLine: Record "Return Shipment Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCreatePostedRcptLine. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedRcptLine(PurchLine: Record "Purchase Line"; ReturnShptLine: Record "Return Shipment Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCreateWhseLineFromReturnShptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreateWhseLineFromReturnShptLine(var ReturnShptLine: Record "Return Shipment Line"; PurchLine: Record "Purchase Line"; CostBaseAmount: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCommitAndUpdateAnalysisVeiw. + /// + /// + /// Specifies the SuppressCommit parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCommitAndUpdateAnalysisVeiw(InvtPickPutaway: Boolean; SuppressCommit: Boolean; PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCopyAndCheckItemChargeTempPurchLine. + /// + /// + /// Specifies the TempPrepmtPurchaseLine parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the IsHandled parameter. + /// Specifies the AssignError parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCopyAndCheckItemChargeTempPurchLine(PurchaseHeader: Record "Purchase Header"; var TempPrepmtPurchaseLine: Record "Purchase Line" temporary; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean; var AssignError: Boolean) begin end; + /// + /// Event raised by OnBeforeCreatePrepmtLines. + /// + /// + /// Specifies the TempPrepmtPurchaseLine parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePrepmtLines(PurchaseHeader: Record "Purchase Header"; var TempPrepmtPurchaseLine: Record "Purchase Line" temporary; CompleteFunctionality: Boolean; var IsHandled: Boolean; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeDeleteAfterPosting. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the SkipDelete parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDeleteAfterPosting(var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var SkipDelete: Boolean; CommitIsSupressed: Boolean; var TempPurchLine: Record "Purchase Line" temporary; var TempPurchLineGlobal: Record "Purchase Line" temporary; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnBeforeDeleteApprovalEntries. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDeleteApprovalEntries(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnBeforeDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDivideAmount(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping; var PurchLineQty: Decimal; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeFinalizePosting. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeFinalizePosting(var PurchaseHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var EverythingInvoiced: Boolean; CommitIsSupressed: Boolean; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnBeforeGetInvoicePostingSetup. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetInvoicePostingSetup(var InvoicePostingInterface: Interface "Invoice Posting"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInitAssocItemJnlLine. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInitAssocItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; PurchaseHeader: Record "Purchase Header") begin @@ -10326,97 +11185,265 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforeInvoiceRoundingAmount. + /// + /// + /// Specifies the TotalAmountIncludingVAT parameter. + /// Specifies the UseTempData parameter. + /// Specifies the InvoiceRoundingAmount parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInvoiceRoundingAmount(PurchHeader: Record "Purchase Header"; TotalAmountIncludingVAT: Decimal; UseTempData: Boolean; var InvoiceRoundingAmount: Decimal; CommitIsSupressed: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeInsertICGenJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ICGenJnlLineNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertICGenJnlLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var ICGenJnlLineNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertPostedHeaders. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertPostedHeaders(var PurchaseHeader: Record "Purchase Header"; var WarehouseReceiptHeader: Record "Warehouse Receipt Header"; var WarehouseShipmentHeader: Record "Warehouse Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertRcptEntryRelation. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the TempTrackingSpecificationInv parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertRcptEntryRelation(PurchaseLine: Record "Purchase Line"; var PurchRcptLine: Record "Purch. Rcpt. Line"; var TempHandlingSpecification: Record "Tracking Specification" temporary; TempTrackingSpecificationInv: Record "Tracking Specification" temporary; ItemLedgShptEntryNo: Integer; var Result: Integer; var IsHandled: Boolean) begin end; - [IntegrationEvent(false, false)] + /// + /// Event raised by OnBeforeInsertReceiptHeader. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the CommitIsSuppressed parameter. + [IntegrationEvent(false, false)] local procedure OnBeforeInsertReceiptHeader(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var IsHandled: Boolean; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertReceiptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReceiptLine(var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchLine: Record "Purchase Line"; var CostBaseAmount: Decimal; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeInsertReturnShipmentLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReturnShipmentLine(var ReturnShptHeader: Record "Return Shipment Header"; var PurchLine: Record "Purchase Line"; var CostBaseAmount: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertTrackingSpecification(PurchHeader: Record "Purchase Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeItemJnlPostLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. + /// Specifies the WhseReceiptHeader parameter. + /// Specifies the WhseShipmentHeader parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. [IntegrationEvent(true, false)] local procedure OnBeforeItemJnlPostLine(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; var IsHandled: Boolean; WhseReceiptHeader: Record "Warehouse Receipt Header"; WhseShipmentHeader: Record "Warehouse Shipment Header"; TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnBeforeIsEndLoopForShippedNotInvoiced. + /// + /// + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the ReturnShptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the PurchLine parameter. + /// Specifies the EndLoop parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeIsEndLoopForShippedNotInvoiced(RemQtyToBeInvoiced: Decimal; TrackingSpecificationExists: Boolean; var ReturnShptLine: Record "Return Shipment Line"; var InvoicingTrackingSpecification: Record "Tracking Specification"; PurchLine: Record "Purchase Line"; var EndLoop: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeIsEndLoopForReceivedNotInvoiced. + /// + /// + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PurchRcptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the PurchLine parameter. + /// Specifies the EndLoop parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeIsEndLoopForReceivedNotInvoiced(RemQtyToBeInvoiced: Decimal; TrackingSpecificationExists: Boolean; var PurchRcptLine: Record "Purch. Rcpt. Line"; var InvoicingTrackingSpecification: Record "Tracking Specification"; PurchLine: Record "Purchase Line"; var EndLoop: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeGetPurchRcptLineFromTrackingOrUpdateItemEntryRelation. + /// + /// + /// Specifies the TrackingSpecification parameter. + /// Specifies the ItemEntryRelation parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetPurchRcptLineFromTrackingOrUpdateItemEntryRelation(var PurchRcptLine: Record "Purch. Rcpt. Line"; var TrackingSpecification: Record "Tracking Specification"; var ItemEntryRelation: Record "Item Entry Relation"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeGetPurchLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeGetPurchLines(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeLockTables. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempPurchaseLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnBeforeLockTables(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSuppressed: Boolean; var IsHandled: Boolean; var TempPurchaseLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforePostLines. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostLines(var PurchLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSupressed: Boolean; var TempPurchLineGlobal: Record "Purchase Line" temporary; var TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary) begin end; + /// + /// Event raised by OnBeforePostDistributeItemCharge. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemLedgerEntry parameter. + /// Specifies the NonDistrQuantity parameter. + /// Specifies the NonDistrQtyToAssign parameter. + /// Specifies the NonDistrAmountToAssign parameter. + /// Specifies the Sign parameter. + /// Specifies the IndirectCostPct parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostDistributeItemCharge(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var TempItemLedgerEntry: Record "Item Ledger Entry"; NonDistrQuantity: Decimal; NonDistrQtyToAssign: Decimal; NonDistrAmountToAssign: Decimal; Sign: Decimal; IndirectCostPct: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostInvoice. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Window parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the InvoicePostingInterface parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostInvoice(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSupressed: Boolean; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var IsHandled: Boolean; var Window: Dialog; HideProgressWindow: Boolean; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line"; var InvoicePostingInterface: Interface "Invoice Posting"; var InvoicePostingParameters: Record "Invoice Posting Parameters"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnBeforePostGLAccICLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ICGenJnlLineNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostGLAccICLine(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ICGenJnlLineNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerSalesShpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerSalesShpt(var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin @@ -10429,98 +11456,245 @@ codeunit 90 "Purch.-Post" end; [Obsolete('Moved to codeunit MfgPurchPost', '27.0')] + /// + /// Event raised by OnBeforePostItemJnlLineCopyProdOrder. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemJnlLineCopyProdOrder(PurchLine: Record "Purchase Line"; var ItemJnlLine: Record "Item Journal Line"; QtyToBeReceived: Decimal; QtyToBeInvoiced: Decimal; CommitIsSupressed: Boolean; var IsHandled: Boolean) begin end; #endif + /// + /// Event raised by OnBeforePostPurchaseDoc. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostPurchaseDoc(var PurchaseHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSupressed: Boolean; var HideProgressWindow: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostCommitPurchaseDoc. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostCommitPurchaseDoc(var PurchaseHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PreviewMode: Boolean; var ModifyHeader: Boolean; var CommitIsSupressed: Boolean; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeProcessAssocItemJnlLine. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the SourceCode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeProcessAssocItemJnlLine(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary; ItemLedgShptEntryNo: Integer; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; SourceCode: Code[10]) begin end; + /// + /// Event raised by OnBeforePrepareCheckDocument. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforePrepareCheckDocument(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforePurchLineDeleteAll. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchLineDeleteAll(var PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforePurchRcptHeaderInsert. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchRcptHeaderInsert(var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseReceive: Boolean; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseShip: Boolean) begin end; + /// + /// Event raised by OnBeforePurchRcptLineInsert. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PostedWhseRcptLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemLedgShptEntryNo parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchRcptLineInsert(var PurchRcptLine: Record "Purch. Rcpt. Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean; PostedWhseRcptLine: Record "Posted Whse. Receipt Line"; var IsHandled: Boolean; ItemLedgShptEntryNo: Integer) begin end; + /// + /// Event raised by OnBeforePurchInvHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchInvHeaderInsert(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnBeforePurchInvLineInsert. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchInvLineInsert(var PurchInvLine: Record "Purch. Inv. Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePurchCrMemoHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchCrMemoHeaderInsert(var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnBeforePurchCrMemoLineInsert. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchCrMemoLineInsert(var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeReleasePurchDoc. + /// + /// + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeReleasePurchDoc(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean); begin end; + /// + /// Event raised by OnBeforeReturnShptHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(false, false)] local procedure OnBeforeReturnShptHeaderInsert(var ReturnShptHeader: Record "Return Shipment Header"; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseReceive: Boolean; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseShip: Boolean) begin end; + /// + /// Event raised by OnBeforeReturnShptLineInsert. + /// + /// + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeReturnShptLineInsert(var ReturnShptLine: Record "Return Shipment Line"; var ReturnShptHeader: Record "Return Shipment Header"; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnBeforeRoundAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchLineQty parameter. [IntegrationEvent(false, false)] local procedure OnBeforeRoundAmount(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchLineQty: Decimal) begin end; + /// + /// Event raised by OnBeforeSalesShptHeaderInsert. + /// + /// + /// Specifies the SalesOrderHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSalesShptHeaderInsert(var SalesShptHeader: Record "Sales Shipment Header"; SalesOrderHeader: Record "Sales Header"; CommitIsSupressed: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeSalesShptLineInsert. + /// + /// + /// Specifies the SalesShptHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the DropShptPostBuffer parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSalesShptLineInsert(var SalesShptLine: Record "Sales Shipment Line"; SalesShptHeader: Record "Sales Shipment Header"; SalesLine: Record "Sales Line"; CommitIsSupressed: Boolean; DropShptPostBuffer: Record "Drop Shpt. Post. Buffer"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSetCheckApplToItemEntry. + /// + /// + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSetCheckApplToItemEntry(var PurchaseLine: Record "Purchase Line"; var Result: Boolean; var IsHandled: Boolean; PurchaseHeader: Record "Purchase Header"; ItemJournalLine: Record "Item Journal Line") begin @@ -10528,6 +11702,17 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforePostCombineSalesOrderShipment. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostCombineSalesOrderShipment(var PurchaseHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesShipmentHeader: Record "Sales Shipment Header"; var ItemLedgShptEntryNo: Integer; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempHandlingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean) begin @@ -10535,241 +11720,616 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforePostItemJnlLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeReceivedBase parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the ItemChargeNo parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the Result parameter. + /// Specifies the WarehouseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLine(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var QtyToBeReceived: Decimal; var QtyToBeReceivedBase: Decimal; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; var ItemLedgShptEntryNo: Integer; var ItemChargeNo: Code[20]; var TrackingSpecification: Record "Tracking Specification"; CommitIsSupressed: Boolean; var IsHandled: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var Result: Integer; var WarehouseReceiptHeader: Record "Warehouse Receipt Header") begin end; + /// + /// Event raised by OnBeforePostItemJnlLineItemCharges. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLineItemCharges(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostAssocItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostAssocItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var SalesLine: Record "Sales Line"; CommitIsSupressed: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePostItemChargePerOrder. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the ItemChargePurchLine parameter. + /// Specifies the TempTrackingSpecificationChargeAssmt parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerOrder(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ItemJnlLine2: Record "Item Journal Line"; var ItemChargePurchLine: Record "Purchase Line"; var TempTrackingSpecificationChargeAssmt: Record "Tracking Specification" temporary; CommitIsSupressed: Boolean; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargeLineProcedure. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargeLineProcedure(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemLine(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; PurchRcptHeader: Record "Purch. Rcpt. Header"; var RemQtyToBeInvoiced: Decimal; var TempPurchLineGlobal: Record "Purchase Line" temporary; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var RemQtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemJnlLineJobConsumption. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the SourceCode parameter. + /// Specifies the PostJobConsumptionBeforePurch parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemJnlLineJobConsumption(var ItemJournalLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; SourceCode: Code[10]; var PostJobConsumptionBeforePurch: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTracking. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PreciseTotalChargeAmt parameter. + /// Specifies the PreciseTotalChargeAmtACY parameter. + /// Specifies the RoundedPrevTotalChargeAmt parameter. + /// Specifies the RoundedPrevTotalChargeAmtACY parameter. + /// Specifies the IsHandled parameter. + /// Specifies the RemQtyToBeInvoiced parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemTracking(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TrackingSpecificationExists: Boolean; var PreciseTotalChargeAmt: Decimal; var PreciseTotalChargeAmtACY: Decimal; var RoundedPrevTotalChargeAmt: Decimal; var RoundedPrevTotalChargeAmtACY: Decimal; var IsHandled: Boolean; RemQtyToBeInvoiced: Decimal) begin end; + /// + /// Event raised by OnBeforePostItemTrackingCheckReceipt. + /// + /// + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingCheckReceipt(PurchaseLine: Record "Purchase Line"; RemQtyToBeInvoiced: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingCheckShipment. + /// + /// + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingCheckShipment(PurchaseLine: Record "Purchase Line"; RemQtyToBeInvoiced: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForReceiptCondition. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the Condition parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForReceiptCondition(PurchaseLine: Record "Purchase Line"; PurchRcptLine: Record "Purch. Rcpt. Line"; var Condition: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingItemChargePerOrder. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the TempTrackingSpecificationChargeAssmtCorrect parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingItemChargePerOrder(var TempTrackingSpecificationChargeAssmt: Record "Tracking Specification" temporary; var IsHandled: Boolean; var ItemJnlLine2: Record "Item Journal Line"; var TempTrackingSpecificationChargeAssmtCorrect: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnBeforePostItemTrackingLineOnPostPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemTrackingLineOnPostPurchLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; TempTrackingSpecification: Record "Tracking Specification" temporary; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForShipmentCondition. + /// + /// + /// Specifies the ReturnShipmentLine parameter. + /// Specifies the Condition parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForShipmentCondition(PurchaseLine: Record "Purchase Line"; ReturnShipmentLine: Record "Return Shipment Line"; var Condition: Boolean) begin end; + /// + /// Event raised by OnBeforePostResourceLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the JobPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostResourceLine(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; SrcCode: Code[10]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocNo: Code[20]; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; JobPurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePostUpdateOrderLine. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PurchSetup parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateOrderLine(PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; CommitIsSuppressed: Boolean; PurchSetup: Record "Purchases & Payables Setup") begin end; + /// + /// Event raised by OnBeforePostUpdateOrderLineModifyTempLine. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateOrderLineModifyTempLine(var TempPurchaseLine: Record "Purchase Line" temporary; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSuppressed: Boolean; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeRevertWarehouseEntry. + /// + /// + /// Specifies the JobNo parameter. + /// Specifies the PostJobConsumption parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeRevertWarehouseEntry(var WarehouseJournalLine: Record "Warehouse Journal Line"; JobNo: Code[20]; PostJobConsumption: Boolean; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSendICDocument. + /// + /// + /// Specifies the ModifyHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSendICDocument(var PurchHeader: Record "Purchase Header"; var ModifyHeader: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSumPurchLines2. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the VATAmountLine parameter. + /// Specifies the InsertPurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforeSumPurchLines2(QtyType: Option; var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var VATAmountLine: Record "VAT Amount Line"; InsertPurchLine: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSumPurchLinesTemp. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeSumPurchLinesTemp(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeTempDropShptPostBufferInsert. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTempDropShptPostBufferInsert(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; PurchaseLine: Record "Purchase Line"; var ItemLedgShptEntryNo: Integer) begin end; + /// + /// Event raised by OnBeforeTempPrepmtPurchLineInsert. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTempPrepmtPurchLineInsert(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var TempPurchLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnBeforeTempPrepmtPurchLineModify. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTempPrepmtPurchLineModify(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var TempPurchLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnBeforeTransferReservToItemJnlLine. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the PurchLine parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the ApplySpecificItemTracking parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTransferReservToItemJnlLine(var SalesOrderLine: Record "Sales Line"; var ItemJnlLine: Record "Item Journal Line"; PurchLine: Record "Purchase Line"; QtyToBeShippedBase: Decimal; var ApplySpecificItemTracking: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateAssocOrder. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(true, false)] local procedure OnBeforeUpdateAssocOrder(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var IsHandled: Boolean; SuppressCommit: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the Receive parameter. + /// Specifies the Ship parameter. + /// Specifies the Invoice parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateBlanketOrderLine(PurchLine: Record "Purchase Line"; Receive: Boolean; Ship: Boolean; Invoice: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePostingNos. + /// + /// + /// Specifies the ModifyHeader parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the IsHandled parameter. + /// Specifies the DateOrderSeriesUsed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePostingNos(var PurchHeader: Record "Purchase Header"; var ModifyHeader: Boolean; SuppressCommit: Boolean; var IsHandled: Boolean; var DateOrderSeriesUsed: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePurchaseHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePurchaseHeader(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; GenJnlLineDocType: Option; var IsHandled: Boolean; var PurchaseHeader: Record "Purchase Header"; GenJnlLineDocNo: Code[20]; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePurchLineBeforePost. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePurchLineBeforePost(var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; WhseShip: Boolean; WhseReceive: Boolean; RoundingLineInserted: Boolean; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateInvoicedQtyOnPurchRcptLine. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateInvoicedQtyOnPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; CommitIsSupressed: Boolean; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeUpdatePrepmtPurchLineWithRounding. + /// + /// + /// Specifies the TotalRoundingAmount parameter. + /// Specifies the TotalPrepmtAmount parameter. + /// Specifies the FinalInvoice parameter. + /// Specifies the PricesInclVATRoundingAmount parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePrepmtPurchLineWithRounding(var PrepmtPurchLine: Record "Purchase Line"; TotalRoundingAmount: array[2] of Decimal; TotalPrepmtAmount: array[2] of Decimal; FinalInvoice: Boolean; PricesInclVATRoundingAmount: array[2] of Decimal; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeUpdateQtyToInvoiceForOrder. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToInvoiceForOrder(var PurchHeader: Record "Purchase Header"; TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateQtyToInvoiceForReturnOrder. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToInvoiceForReturnOrder(var PurchHeader: Record "Purchase Header"; TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateQtyToBeInvoicedForReceipt. + /// + /// + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToBeInvoicedForReceipt(var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; PurchLine: Record "Purchase Line"; PurchRcptLine: Record "Purch. Rcpt. Line"; InvoicingTrackingSpecification: Record "Tracking Specification"; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateQtyToBeInvoicedForReturnShipment. + /// + /// + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ReturnShipmentLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToBeInvoicedForReturnShipment(var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; PurchLine: Record "Purchase Line"; ReturnShipmentLine: Record "Return Shipment Line"; InvoicingTrackingSpecification: Record "Tracking Specification"; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateJobConsumptionReservationApplToItemEntry. + /// + /// + /// Specifies the ItemJournalLine parameter. + /// Specifies the IsNonInventoriableItem parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateJobConsumptionReservationApplToItemEntry(var TempReservEntryJobCons: Record "Reservation Entry" temporary; var ItemJournalLine: Record "Item Journal Line"; IsNonInventoriableItem: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLine. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLine(var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineFixedAsset. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineFixedAsset(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineItemCharge. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineItemCharge(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineJob. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineJob(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineOthers. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineOthers(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestStatusRelease. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestStatusRelease(PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateItemChargeAssgnt. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateItemChargeAssgnt(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateHandledICInboxTransaction. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateHandledICInboxTransaction(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeValidatePostingAndDocumentDate. + /// + /// + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeValidatePostingAndDocumentDate(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnSetPostingDateExists. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PostingDateExists parameter. + /// Specifies the ReplacePostingDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnSetPostingDateExists(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; var PostingDateExists: Boolean; var ReplacePostingDate: Boolean; var PostingDate: Date; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeWhseHandlingRequired. + /// + /// + /// Specifies the Required parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeWhseHandlingRequired(PurchaseLine: Record "Purchase Line"; var Required: Boolean; var IsHandled: Boolean) begin @@ -10777,67 +12337,153 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforeCalculateSalesTax. + /// + /// + /// Specifies the TempPurchLineForSalesTax parameter. + /// Specifies the TempSalesTaxAmountLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalculateSalesTax(PurchaseHeader: Record "Purchase Header"; var TempPurchLineForSalesTax: Record "Purchase Line" temporary; var TempSalesTaxAmountLine: Record "Sales Tax Amount Line" temporary; var IsHandled: Boolean; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnBeforeGetCountryCode. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the CountryRegionCode parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetCountryCode(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var CountryRegionCode: Code[10]; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeShouldPostWhseJnlLine. + /// + /// + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlLine parameter. + /// Specifies the TempWhseJnlLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeShouldPostWhseJnlLine(PurchLine: Record "Purchase Line"; var Result: Boolean; var IsHandled: Boolean; var ItemJnlLine: Record "Item Journal Line"; var TempWhseJnlLine: Record "Warehouse Journal Line" temporary; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnCalcInvDiscountSetFilter. + /// + /// + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvDiscountSetFilter(var PurchLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterClearPostingFromWhseRef. + /// + /// + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterClearPostingFromWhseRef(var PurchHeader: Record "Purchase Header"; var InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetPostingFlags. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetPostingFlags(var PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary); begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeSetPostingFlags. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeSetPostingFlags(var PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetSourceCode. + /// + /// + /// Specifies the SourceCodeSetup parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetSourceCode(var PurchHeader: Record "Purchase Header"; SourceCodeSetup: Record "Source Code Setup"; var SrcCode: Code[10]); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterArchiveUnpostedOrder. + /// + /// + /// Specifies the Currency parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterArchiveUnpostedOrder(var PurchHeader: Record "Purchase Header"; Currency: Record "Currency"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCalcInvDiscount. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the RefreshNeeded parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCalcInvDiscount(var PurchaseHeader: Record "Purchase Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseReceive: Boolean; WhseShip: Boolean; var RefreshNeeded: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateAssocOrderPostingDateOnBeforeValidateDocumentDate. + /// + /// + /// Specifies the OriginalDocumentDate parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateAssocOrderPostingDateOnBeforeValidateDocumentDate(var SalesHeader: Record "Sales Header"; var OriginalDocumentDate: Date) begin end; + /// + /// Event raised by OnCheckAssociatedOrderLinesOnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssociatedOrderLinesOnAfterSetFilters(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnCheckAssociatedOrderLinesOnAfterCheckDimensions. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssociatedOrderLinesOnAfterCheckDimensions(PurchaseHeader: Record "Purchase Header"; SalesHeader: Record "Sales Header"; var PurchaseLine: Record "Purchase Line"; TempSalesLine: Record "Sales Line" temporary) begin @@ -10845,72 +12491,146 @@ codeunit 90 "Purch.-Post" #if not CLEAN28 [Obsolete('This event is no longer used.', '28.0')] + /// + /// Event raised by OnCheckAssocOrderLinesOnBeforeCheckOrderLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssocOrderLinesOnBeforeCheckOrderLine(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; #endif + /// + /// Event raised by OnCheckExternalDocumentNumberOnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnCheckExternalDocumentNumberOnAfterSetFilters(var VendLedgEntry: Record "Vendor Ledger Entry"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForShipOnAfterTempPurchLineSetFilters. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForShipOnAfterTempPurchLineSetFilters(PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForReceiveOnAfterTempPurchLineSetFilters. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForReceiveOnAfterTempPurchLineSetFilters(PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCheckWarehouseOnAfterSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnCheckWarehouseOnAfterSetFilters(var TempItemPurchLine: Record "Purchase Line"); begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeLoop. + /// + /// + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeLoop(var TempPurchLine: Record "Purchase Line" temporary; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeCheckIfEmpty. + /// + /// [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeCheckIfEmpty(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCopyToTempLinesOnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnCopyToTempLinesOnAfterSetFilters(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterInitTempPrepmtPurchLineFromPurchHeader. + /// + /// [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterInitTempPrepmtPurchLineFromPurchHeader(var TempPrepmtPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterTempPurchLineSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterTempPurchLineSetFilters(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterTempPrepmtPurchLineSetFilters. + /// + /// + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterTempPrepmtPurchLineSetFilters(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnDivideAmountOnAfterClearAmounts. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterClearAmounts(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var PurchLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnAfterCalcLineAmountAndLineDiscountAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterCalcLineAmountAndLineDiscountAmount(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchaseLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineRemainderModify. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineRemainderModify(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency) begin @@ -10921,227 +12641,589 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnGetItemChargeLineOnAfterGet. + /// + /// + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnGetItemChargeLineOnAfterGet(var ItemChargePurchLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnGetPurchLinesOnAfterFillTempLines. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnGetPurchLinesOnAfterFillTempLines(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyType: Option; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnInsertICGenJnlLineOnAfterCopyDocumentFields. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempICGenJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertICGenJnlLineOnAfterCopyDocumentFields(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var TempICGenJournalLine: Record "Gen. Journal Line") begin end; + /// + /// Event raised by OnInsertAssocOrderChargeOnBeforeInsert. + /// + /// + /// Specifies the NewItemChargeAssignmentPurch parameter. [IntegrationEvent(false, false)] local procedure OnInsertAssocOrderChargeOnBeforeInsert(TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)"; var NewItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)") begin end; + /// + /// Event raised by OnInsertICGenJnlLineOnBeforeICGenJnlLineInsert. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnInsertICGenJnlLineOnBeforeICGenJnlLineInsert(var TempICGenJournalLine: Record "Gen. Journal Line" temporary; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnInsertReceiptLineOnAfterGetWhseRcptLine. + /// + /// + /// Specifies the PurchRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterGetWhseRcptLine(var WhseRcptLine: Record "Warehouse Receipt Line"; PurchRcptLine: Record "Purch. Rcpt. Line") begin end; + /// + /// Event raised by OnInsertReceiptLineOnAfterInitPurchRcptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the PostedWhseRcptHeader parameter. + /// Specifies the WhseRcptHeader parameter. + /// Specifies the WhseRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterInitPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; xPurchLine: Record "Purchase Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var CostBaseAmount: Decimal; PostedWhseRcptHeader: Record "Posted Whse. Receipt Header"; WhseRcptHeader: Record "Warehouse Receipt Header"; var WhseRcptLine: Record "Warehouse Receipt Line") begin end; + /// + /// Event raised by OnInsertReceiptLineOnAfterCalcShouldGetWhseRcptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PostedWhseRcptHeader parameter. + /// Specifies the WhseRcptHeader parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ShouldGetWhseRcptLine parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the PurchRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterCalcShouldGetWhseRcptLine(PurchRcptHeader: Record "Purch. Rcpt. Header"; PurchLine: Record "Purchase Line"; PostedWhseRcptHeader: Record "Posted Whse. Receipt Header"; WhseRcptHeader: Record "Warehouse Receipt Header"; CostBaseAmount: Decimal; WhseReceive: Boolean; WhseShip: Boolean; var ShouldGetWhseRcptLine: Boolean; xPurchLine: Record "Purchase Line"; var PurchRcptLine: Record "Purch. Rcpt. Line") begin end; + /// + /// Event raised by OnInsertReceiptLineOnAfterCalcShouldGetWhseShptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PostedWhseShptHeader parameter. + /// Specifies the WhseShptHeader parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ShouldGetWhseShptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterCalcShouldGetWhseShptLine(PurchRcptHeader: Record "Purch. Rcpt. Header"; PurchLine: Record "Purchase Line"; PostedWhseShptHeader: Record "Posted Whse. Shipment Header"; WhseShptHeader: Record "Warehouse Shipment Header"; CostBaseAmount: Decimal; WhseReceive: Boolean; WhseShip: Boolean; var ShouldGetWhseShptLine: Boolean) begin end; + /// + /// Event raised by OnInsertReturnShipmentLineOnAfterGetWhseShptLine. + /// + /// + /// Specifies the ReturnShptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReturnShipmentLineOnAfterGetWhseShptLine(var WhseShptLine: Record "Warehouse Shipment Line"; ReturnShptLine: Record "Return Shipment Line") begin end; + /// + /// Event raised by OnInsertReturnShipmentLineOnAfterReturnShptLineInit. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the PurchLine parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnInsertReturnShipmentLineOnAfterReturnShptLineInit(var ReturnShptHeader: Record "Return Shipment Header"; var ReturnShptLine: Record "Return Shipment Line"; var PurchLine: Record "Purchase Line"; var xPurchLine: Record "Purchase Line"; var CostBaseAmount: Decimal; WhseShip: Boolean; WhseReceive: Boolean); begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforePost. + /// + /// + /// Specifies the SalesOrderLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforePost(var ItemJournalLine: Record "Item Journal Line"; SalesOrderLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnAfterUpdateBlanketOrderLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the SalesOrderHeader parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the SrcCode parameter. + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnAfterUpdateBlanketOrderLine(var PurchaseHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer"; var SalesOrderLine: Record "Sales Line"; var SalesOrderHeader: record "Sales Header"; var SalesShptLine: record "Sales Shipment Line"; SalesShptHeader: Record "Sales Shipment Header"; SrcCode: Code[10]; Currency: Record Currency) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the SalesShptLine parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnBeforeUpdateBlanketOrderLine(var SalesOrderLine: Record "Sales Line"; SalesShptLine: Record "Sales Shipment Line") begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnAfterProcessDropShptPostBuffer. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnAfterProcessDropShptPostBuffer(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; PurchRcptHeader: Record "Purch. Rcpt. Header"; SalesShptLine: Record "Sales Shipment Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary); begin end; + /// + /// Event raised by OnPostDistributeItemChargeOnAfterCalcAmountToAssign. + /// + /// + /// Specifies the TempItemLedgerEntry parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the AmountToAssign parameter. + /// Specifies the Sign parameter. + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostDistributeItemChargeOnAfterCalcAmountToAssign(var PurchaseLine: Record "Purchase Line"; TempItemLedgerEntry: Record "Item Ledger Entry"; QtyToAssign: Decimal; AmountToAssign: Decimal; Sign: Decimal; Factor: Decimal) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterPostItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ItemChargeAssignmentPurch parameter. [IntegrationEvent(true, false)] local procedure OnPostItemChargeOnAfterPostItemJnlLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; ItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)") begin end; - [IntegrationEvent(true, false)] + /// + /// Event raised by OnPostItemChargeLineOnAfterPostItemCharge. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchaseLineBackup parameter. + /// Specifies the PurchLine parameter. + [IntegrationEvent(true, false)] local procedure OnPostItemChargeLineOnAfterPostItemCharge(var TempItemChargeAssgntPurch: record "Item Charge Assignment (Purch)" temporary; PurchHeader: Record "Purchase Header"; PurchaseLineBackup: Record "Purchase Line"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargeLineOnBeforePostItemCharge. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeLineOnBeforePostItemCharge(var TempItemChargeAssgntPurch: record "Item Charge Assignment (Purch)" temporary; PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var GenJnlLineDocNo: Code[20]) begin end; + /// + /// Event raised by OnPostItemChargeOnBeforePostItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the PurchInvHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnBeforePostItemJnlLine(var PurchaseLineToPost: Record "Purchase Line"; var PurchaseLine: Record "Purchase Line"; QtyToAssign: Decimal; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; PurchInvHeader: Record "Purch. Inv. Header") begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnAfterCopyToItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the GeneralLedgerSetup parameter. + /// Specifies the QtyToInvoice parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnAfterCopyToItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; GeneralLedgerSetup: Record "General Ledger Setup"; QtyToInvoice: Decimal; var TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ReturnRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ReturnRcptLine: Record "Return Receipt Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerSalesRetRcptOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerSalesRetRcptOnBeforeTestJobNo(ReturnReceiptLine: Record "Return Receipt Line"; var IsHandled: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerSalesShptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerSalesShptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var SalesShptLine: Record "Sales Shipment Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerSalesShptOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerSalesShptOnBeforeTestJobNo(SalesShipmentLine: Record "Sales Shipment Line"; var IsHandled: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerRetShptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ReturnShptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetShptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ReturnShptLine: Record "Return Shipment Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRetShptOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetShptOnBeforeTestJobNo(ReturnShipmentLine: Record "Return Shipment Line"; var IsHandled: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerRcptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRcptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var PurchRcptLine: record "Purch. Rcpt. Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRcptOnAfterPurchRcptLineGet. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRcptOnAfterPurchRcptLineGet(PurchRcptLine: Record "Purch. Rcpt. Line"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerTransferOnAfterInitPurchLine2. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerTransferOnAfterInitPurchLine2(TransferReceiptLine: Record "Transfer Receipt Line"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerTransferOnBeforePostItemJnlLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemApplnEntry parameter. + /// Specifies the TransferReceiptLine parameter. + /// Specifies the ItemChargeAssignmentPurch parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerTransferOnBeforePostItemJnlLine(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; ItemApplnEntry: Record "Item Application Entry"; TransferReceiptLine: Record "Transfer Receipt Line"; ItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)") begin end; + /// + /// Event raised by OnPostItemChargePerITTransferOnAfterCollectItemEntryRelation. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TransRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerITTransferOnAfterCollectItemEntryRelation(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; TransRcptLine: Record "Transfer Receipt Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnBeforeTempWhseJnlLine2Find. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnBeforeTempWhseJnlLine2Find(var TempWarehouseJournalLine2: Record "Warehouse Journal Line" temporary; PurchaseLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyDocumentFields. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; PurchRcptHeader: Record "Purch. Rcpt. Header"; GenJnlLineExtDocNo: Code[35]; QtyToBeInvoiced: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforePostItemJnlLineCopyDocumentFields. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforePostItemJnlLineCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; QtyToBeInvoiced: Decimal; QtyToBeReceived: Decimal; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterPostItemJnlLineJobConsumption. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the OriginalItemJnlLine parameter. + /// Specifies the TempReservationEntry parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the PostJobConsumptionBeforePurch parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the TempWhseTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterPostItemJnlLineJobConsumption(var ItemJournalLine: Record "Item Journal Line"; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; OriginalItemJnlLine: Record "Item Journal Line"; var TempReservationEntry: Record "Reservation Entry" temporary; var TrackingSpecification: Record "Tracking Specification" temporary; QtyToBeInvoiced: Decimal; QtyToBeReceived: Decimal; var PostJobConsumptionBeforePurch: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyItemCharge. + /// + /// + /// Specifies the TempItemChargeAssgntPurch parameter. [IntegrationEvent(true, false)] local procedure OnPostItemJnlLineOnAfterCopyItemCharge(var ItemJournalLine: Record "Item Journal Line"; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeCopyDocumentFields. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforePostWhseJnlLine. + /// + /// + /// Specifies the TempWhseJnlLine parameter. + /// Specifies the ItemJnlLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforePostWhseJnlLine(TempHandlingSpecification: Record "Tracking Specification"; var TempWhseJnlLine: Record "Warehouse Journal Line"; ItemJnlLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumptionOnBeforeRunItemJnlPostLineWithReservation. + /// + /// + /// Specifies the TempReservationEntry parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(true, false)] local procedure OnPostItemJnlLineJobConsumptionOnBeforeRunItemJnlPostLineWithReservation(var ItemJournalLine: Record "Item Journal Line"; var TempReservationEntry: Record "Reservation Entry" temporary; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumption. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemJournalLine parameter. + /// Specifies the TempPurchReservEntry parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the PurchItemLedgEntryNo parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineJobConsumption(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; ItemJournalLine: Record "Item Journal Line"; var TempPurchReservEntry: Record "Reservation Entry" temporary; QtyToBeInvoiced: Decimal; QtyToBeReceived: Decimal; var TempTrackingSpecification: Record "Tracking Specification" temporary; PurchItemLedgEntryNo: Integer; var IsHandled: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterSetFactor. + /// + /// + /// Specifies the Factor parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterSetFactor(var PurchaseLine: Record "Purchase Line"; var Factor: Decimal; var GenJnlLineExtDocNo: Code[35]; var ItemJournalLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterPrepareItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterPrepareItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; PreviewMode: Boolean; var GenJnlLineDocNo: code[20]; TrackingSpecification: Record "Tracking Specification"; QtyToBeReceived: Decimal; QtyToBeInvoiced: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnCopyProdOrder. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the SuppressCommit parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnCopyProdOrder(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; QtyToBeReceived: Decimal; QtyToBeInvoiced: Decimal; SuppressCommit: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumptionOnBeforeJobPost. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the SrcCode parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the IsHandled parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineJobConsumptionOnBeforeJobPost( var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; @@ -11150,201 +13232,492 @@ codeunit 90 "Purch.-Post" begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnAfterPostRevert. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnAfterPostRevert(var TempWhseJnlLine: Record "Warehouse Journal Line" temporary; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnBeforePostSingleLine. + /// + /// + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the TempWhseJnlLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnBeforePostSingleLine(WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean; var TempWhseJnlLine: Record "Warehouse Journal Line" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the QtyToBeReceivedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck(var ItemJnlLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; QtyToBeReceived: Decimal; WhseReceive: Boolean; var TempWhseRcptHeader: Record "Warehouse Receipt Header" temporary; QtyToBeReceivedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeItemJnlPostLineRunWithCheck. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the DropShipOrder parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeReceivedBase parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeItemJnlPostLineRunWithCheck(var ItemJnlLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; DropShipOrder: Boolean; PurchaseHeader: Record "Purchase Header"; WhseReceive: Boolean; QtyToBeReceived: Decimal; QtyToBeReceivedBase: Decimal; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeInitAmount. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeInitAmount(var ItemJnlLine: Record "Item Journal Line"; PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine(var ItemChargePurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemLineOnBeforePostShipReceive. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemLineOnBeforePostShipReceive(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforeReceiptInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforeReceiptInvoiceErr(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforePostItemTrackingForReceiptCondition. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforePostItemTrackingForReceiptCondition(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchRcptLine: Record "Purch. Rcpt. Line"; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnAfterPurchRcptLineTestFields. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnAfterPurchRcptLineTestFields(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnAfterPurchRcptLineSetFilters. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnAfterPurchRcptLineSetFilters(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeReturnShipmentInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeReturnShipmentInvoiceErr(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostProvincialSalesTaxToGLOnAfterGenJnlLineAssignFields. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostProvincialSalesTaxToGLOnAfterGenJnlLineAssignFields(var GenJnlLine: Record "Gen. Journal Line"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostPurchLineOnAfterSetEverythingInvoiced. + /// + /// + /// Specifies the EverythingInvoiced parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the AmountsOnly parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterSetEverythingInvoiced(var PurchaseLine: Record "Purchase Line"; var EverythingInvoiced: Boolean; PurchaseHeader: Record "Purchase Header"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; var AmountsOnly: Boolean) begin end; + /// + /// Event raised by OnPostPurchLineOnAfterPostByType. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterPostByType(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnAfterCollectPurchaseLineReservEntries. + /// + /// + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCollectPurchaseLineReservEntries(var JobReservationEntry: Record "Reservation Entry"; ItemJournalLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnAfterGetPurchOrderLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetPurchOrderLine(var PurchaseLineOrder: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; PurchRcptLine: Record "Purch. Rcpt. Line") begin end; + /// + /// Event raised by OnPostPurchLineOnBeforePostByType. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLine parameter. + /// Specifies the PurchLineACY parameter. + /// Specifies the Sourcecode parameter. [IntegrationEvent(true, false)] local procedure OnPostPurchLineOnBeforePostByType(PurchHeader: Record "Purchase Header"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; PurchLine: Record "Purchase Line"; PurchLineACY: Record "Purchase Line"; Sourcecode: Code[10]) begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertCrMemoLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchCrMemoLine parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeInsertCrMemoLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; xPurchaseLine: Record "Purchase Line"); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertInvoiceLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchInvLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeInsertInvoiceLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; var PurchInvLine: Record "Purch. Inv. Line"); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertReceiptLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(true, false)] local procedure OnPostPurchLineOnBeforeInsertReceiptLine(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; PurchRcptHeader: Record "Purch. Rcpt. Header"; RoundingLineInserted: Boolean; CostBaseAmount: Decimal; xPurchaseLine: Record "Purchase Line"; var ReturnShipmentHeader: Record "Return Shipment Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var ItemLedgShptEntryNo: Integer; SrcCode: Code[10]; PreviewMode: Boolean; var WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseReceive: Boolean; WhseShip: Boolean; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; GenJnlLineDocNo: Code[20]); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the PurchRcptHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeInsertReturnShipmentLine(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; ReturnShptHeader: Record "Return Shipment Header"; TempPurchLineGlobal: Record "Purchase Line"; RoundingLineInserted: Boolean; xPurchaseLine: Record "Purchase Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeRoundAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeRoundAmount(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnPostPurchLineOnTypeCaseElse. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the SourceCode parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnTypeCaseElse(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; SourceCode: Code[10]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary); begin end; + /// + /// Event raised by OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDoc. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDoc(var PurchInvLine: Record "Purch. Inv. Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDocCrMemo. + /// + /// + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDocCrMemo(var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostSalesTaxToGLOnBeforeGenJnlPostLine. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the TempSalesTaxAmtLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesTaxToGLOnBeforeGenJnlPostLine(var GenJnlLine: Record "Gen. Journal Line"; PurchaseHeader: Record "Purchase Header"; var TempSalesTaxAmtLine: Record "Sales Tax Amount Line"); begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnAfterPurchOrderLineModify. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the ReturnShptLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnAfterPurchOrderLineModify(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary; var ReturnShptLine: Record "Return Shipment Line") begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnAfterResetTempLines. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnAfterResetTempLines(var TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnBeforeInitQtyToInvoice(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterPurchOrderLineGet. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the PurchOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterPurchOrderLineGet(var TempPurchLine: Record "Purchase Line" temporary; PurchRcptLine: Record "Purch. Rcpt. Line"; PurchOrderLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterPurchOrderLineModify. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchOrderLine parameter. + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterPurchOrderLineModify(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary; var PurchOrderLine: Record "Purchase Line"; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeUpdateBlanketOrderLine(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitOutstanding(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitQtyToInvoice(var TempPurchaseLine: Record "Purchase Line" temporary; WhseShip: Boolean; WhseReceive: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeLoop. + /// + /// + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeLoop(PurchHeader: Record "Purchase Header"; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnPurchHeaderReceive. + /// + /// + /// Specifies the PurchRcptHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnPurchHeaderReceive(var TempPurchLine: Record "Purchase Line"; PurchRcptHeader: Record "Purch. Rcpt. Header") begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnSetDefaultQtyBlank. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchPost parameter. + /// Specifies the SetDefaultQtyBlank parameter. [IntegrationEvent(true, false)] local procedure OnPostUpdateOrderLineOnSetDefaultQtyBlank(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary; PurchPost: Record "Purchases & Payables Setup"; var SetDefaultQtyBlank: Boolean) begin @@ -11352,177 +13725,393 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnProcessAssocItemJnlLineOnAfterInitTempDropShptPostBuffer. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnProcessAssocItemJnlLineOnAfterInitTempDropShptPostBuffer(var PurchLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnReleasePurchDocumentOnBeforeSetStatus. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnReleasePurchDocumentOnBeforeSetStatus(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRoundAmountOnBeforeCalculateLCYAmounts. + /// + /// + /// Specifies the PurchLineACY parameter. + /// Specifies the PurchHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TotalPurchaseLine parameter. + /// Specifies the TotalPurchaseLineLCY parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnBeforeCalculateLCYAmounts(var xPurchLine: Record "Purchase Line"; var PurchLineACY: Record "Purchase Line"; PurchHeader: Record "Purchase Header"; var IsHandled: Boolean; TotalPurchaseLine: Record "Purchase Line"; TotalPurchaseLineLCY: Record "Purchase Line"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnRoundAmountOnBeforeIncrAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the CurrExchRate parameter. + /// Specifies the NoVAT parameter. + /// Specifies the IsHandled parameter. + /// Specifies the NonDeductibleVAT parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnBeforeIncrAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchLineQty: Decimal; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line"; var xPurchaseLine: Record "Purchase Line"; var CurrExchRate: Record "Currency Exchange Rate"; var NoVAT: Boolean; var IsHandled: Boolean; var NonDeductibleVAT: Codeunit "Non-Deductible VAT") begin end; + /// + /// Event raised by OnRunOnBeforeFinalizePosting. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeFinalizePosting(var PurchaseHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShipmentHeader: Record "Return Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforeMakeInventoryAdjustment. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeMakeInventoryAdjustment(var PurchaseHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; PreviewMode: Boolean; PurchRcptHeader: Record "Purch. Rcpt. Header"; PurchInvHeader: Record "Purch. Inv. Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumPurchLines2OnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnAfterSetFilters(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnSumPurchLines2OnAfterDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnAfterDivideAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping; PurchLineQty: Decimal; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary) begin end; + /// + /// Event raised by OnSumPurchLines2OnBeforeDivideAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyType parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnBeforeDivideAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping) begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterSalesOrderHeaderModify. + /// + /// + /// Specifies the SalesSetup parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterSalesOrderHeaderModify(var SalesOrderHeader: Record "Sales Header"; var SalesSetup: Record "Sales & Receivables Setup") begin end; + /// + /// Event raised by OnUpdateAssociatedSalesOrderOnBeforeClearTempDropShptPostBuffer. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateAssociatedSalesOrderOnBeforeClearTempDropShptPostBuffer(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer") begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterSalesOrderLineModify. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesOrderHeader parameter. + /// Specifies the SalesShptHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterSalesOrderLineModify(var SalesOrderLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesOrderHeader: Record "Sales Header"; SalesShptHeader: Record "Sales Shipment Header") begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterOrderNoClearFilter. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterOrderNoClearFilter(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnUpdateAssocOrderOnBeforeSalesOrderLineModify. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnBeforeSalesOrderLineModify(var SalesOrderLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheck. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheck(var BlanketOrderPurchLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeInitOutstanding(var BlanketOrderPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnAfterCheckBlanketOrderPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnAfterCheckBlanketOrderPurchLine(var BlanketOrderPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnUpdatePurchLineBeforePostOnAfterCalcInitQtyToInvoiceNeeded. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the InitQtyToInvoiceNeeded parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePurchLineBeforePostOnAfterCalcInitQtyToInvoiceNeeded(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var InitQtyToInvoiceNeeded: Boolean) begin end; + /// + /// Event raised by OnUpdateWhseDocumentsOnAfterUpdateWhseRcpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateWhseDocumentsOnAfterUpdateWhseRcpt(var WarehouseReceiptHeader: Record "Warehouse Receipt Header") begin end; + /// + /// Event raised by OnUpdateWhseDocumentsOnAfterUpdateWhseShpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateWhseDocumentsOnAfterUpdateWhseShpt(var WarehouseShipmentHeader: Record "Warehouse Shipment Header") begin end; + /// + /// Event raised by OnBeforeRunItemJnlPostLineWithReservation. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeRunItemJnlPostLineWithReservation(var ItemJournalLine: Record "Item Journal Line"); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterCopyAndCheckItemCharge. + /// + /// [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterCopyAndCheckItemCharge(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterCalcCopyAndCheckItemChargeNeeded. + /// + /// + /// Specifies the CopyAndCheckItemChargeNeeded parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterCalcCopyAndCheckItemChargeNeeded(var PurchHeader: Record "Purchase Header"; var CopyAndCheckItemChargeNeeded: Boolean) begin end; + /// + /// Event raised by OnUpdatePostingNosOnBeforeUpdatePostingNo. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnBeforeUpdatePostingNo(PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; var ModifyHeader: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdatePostingNosOnAfterCalcShouldUpdateReceivingNo. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the ShouldUpdateReceivingNo parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnAfterCalcShouldUpdateReceivingNo(PurchaseHeader: Record "Purchase Header"; PreviewMode: Boolean; var ModifyHeader: Boolean; var ShouldUpdateReceivingNo: Boolean) begin end; + /// + /// Event raised by OnPostSalesTaxToGLOnAfterGenJnlLineAssignField. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesTaxToGLOnAfterGenJnlLineAssignField(var GenJnlLine: Record "Gen. Journal Line"; PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAddSalesTaxLineToSalesTaxCalcOnBeforeOnBeforeTempPurchLineForSalesTaxInsert. + /// + /// + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnAddSalesTaxLineToSalesTaxCalcOnBeforeOnBeforeTempPurchLineForSalesTaxInsert(var TempPurchLineForSalesTax: Record "Purchase Line" temporary; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnSumPurchLinesTempOnAfterCalcVATAmount. + /// + /// + /// Specifies the TotalPurchLine parameter. + /// Specifies the OldPurchLine parameter. + /// Specifies the VATAmount parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLinesTempOnAfterCalcVATAmount(PurchHeader: Record "Purchase Header"; TotalPurchLine: Record "Purchase Line"; OldPurchLine: Record "Purchase Line"; var VATAmount: Decimal) begin end; + /// + /// Event raised by OnCreatePositiveOnBeforeWhseJnlPostLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnCreatePositiveOnBeforeWhseJnlPostLine(var WhseJnlLine: Record "Warehouse Journal Line") begin end; + /// + /// Event raised by OnCreatePostedWhseShptLineOnBeforeCreatePostedShptLine. + /// + /// + /// Specifies the WarehouseShipmentLine parameter. + /// Specifies the PostedWhseShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnCreatePostedWhseShptLineOnBeforeCreatePostedShptLine(var ReturnShipmentLine: Record "Return Shipment Line"; var WarehouseShipmentLine: Record "Warehouse Shipment Line"; PostedWhseShipmentHeader: Record "Posted Whse. Shipment Header") begin end; + /// + /// Event raised by OnCreatePostedRcptLineOnBeforeCreatePostedRcptLine. + /// + /// + /// Specifies the WarehouseReceiptLine parameter. + /// Specifies the PostedWhseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnCreatePostedRcptLineOnBeforeCreatePostedRcptLine(var ReturnShipmentLine: Record "Return Shipment Line"; var WarehouseReceiptLine: Record "Warehouse Receipt Line"; PostedWhseReceiptHeader: Record "Posted Whse. Receipt Header") begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnBeforeTempTrackingSpecificationModify. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnBeforeTempTrackingSpecificationModify(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification. + /// + /// [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification(var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnBeforePostUpdateInvoiceLine. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateInvoiceLine(var TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean; var PurchaseHeader: Record "Purchase Header") begin @@ -11530,102 +14119,228 @@ codeunit 90 "Purch.-Post" #if not CLEAN28 [Obsolete('This event is no longer used.', '28.0')] + /// + /// Event raised by OnBeforeCheckAssociatedSalesOrderLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckAssociatedSalesOrderLine(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; #endif + /// + /// Event raised by OnBeforeCheckAssociatedOrderLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeCheckAssociatedOrderLines(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeCheckReceiveInvoiceShip. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckReceiveInvoiceShip(var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingItemChargePerOrderOnAfterCalcFactor. + /// + /// + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the TempTrackingSpecificationChargeAssmt parameter. + /// Specifies the SignFactor parameter. + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingItemChargePerOrderOnAfterCalcFactor(var NonDistrItemJnlLine: Record "Item Journal Line"; var ItemJnlLine2: Record "Item Journal Line"; var TempTrackingSpecificationChargeAssmt: Record "Tracking Specification"; SignFactor: Integer; Factor: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingItemChargePerOrderOnAfterUpdateItemJnlLine2LocationCode. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostItemTrackingItemChargePerOrderOnAfterUpdateItemJnlLine2LocationCode(var ItemJnlLine2: Record "Item Journal Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnAfterReturnShptLineReset. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnAfterReturnShptLineReset(var ReturnShptLine: Record "Return Shipment Line"; PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeSetItemEntryRelationForShipment. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeSetItemEntryRelationForShipment(var ItemEntryRelation: Record "Item Entry Relation"; var ReturnShptLine: Record "Return Shipment Line"; var InvoicingTrackingSpecification: Record "Tracking Specification"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding(ReturnShptLine: Record "Return Shipment Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnAfterFillTempLines. + /// + /// [IntegrationEvent(true, false)] local procedure OnRunOnAfterFillTempLines(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnRunOnAfterInvoiceRounding. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(true, false)] local procedure OnRunOnAfterInvoiceRounding(var PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnRunOnBeforeFillTempLines. + /// + /// + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(true, false)] local procedure OnRunOnBeforeFillTempLines(PreviewMode: Boolean; var GenJnlLineDocNo: Code[20]) begin end; + /// + /// Event raised by OnRunOnAfterPostPurchLine. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the ReturnShipmentHeader parameter. [IntegrationEvent(true, false)] local procedure OnRunOnAfterPostPurchLine(var TempPurchLineGlobal: Record "Purchase Line" temporary; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var ReturnShipmentHeader: Record "Return Shipment Header") begin end; + /// + /// Event raised by OnAfterCalcInvDiscount. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(true, false)] local procedure OnAfterCalcInvDiscount(PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostGLAccICLineOnBeforeCheckAndInsertICGenJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the ICGenJnlLineNo parameter. [IntegrationEvent(false, false)] local procedure OnPostGLAccICLineOnBeforeCheckAndInsertICGenJnlLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; ICGenJnlLineNo: Integer) begin end; + /// + /// Event raised by OnPostGLAccICLineOnAfterCreateJobPurchLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostGLAccICLineOnAfterCreateJobPurchLine(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostItemJnlLineTrackingOnBeforeTempHandlingSpecificationFind. + /// + /// + /// Specifies the TempHandlingSpecification parameter. [IntegrationEvent(true, false)] local procedure OnPostItemJnlLineTrackingOnBeforeTempHandlingSpecificationFind(PurchLine: Record "Purchase Line"; var TempHandlingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnFinalizePostingOnAfterUpdateItemChargeAssgnt. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the TempPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(true, false)] local procedure OnFinalizePostingOnAfterUpdateItemChargeAssgnt(var PurchHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var EverythingInvoiced: Boolean; var TempPurchLine: Record "Purchase Line" temporary; var TempPurchLineGlobal: Record "Purchase Line" temporary; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeInsertValueEntryRelation. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(true, false)] local procedure OnFinalizePostingOnBeforeInsertValueEntryRelation(var PurchHeader: Record "Purchase Header"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the TempPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(true, false)] local procedure OnFinalizePostingOnBeforeInsertTrackingSpecification(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; PurchHeader: Record "Purchase Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; EverythingInvoiced: Boolean; var TempPurchLine: Record "Purchase Line"; var TempPurchLineGlobal: Record "Purchase Line") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeUpdateWhseDocuments. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the WarehouseReceive parameter. + /// Specifies the WarehouseShip parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeUpdateWhseDocuments(var PurchaseHeader: Record "Purchase Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; WarehouseReceive: Boolean; WarehouseShip: Boolean; var IsHandled: Boolean) @@ -11635,695 +14350,1575 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnFinalizePostingOnBeforeCommit. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeCommit(PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertReceiptLineOnBeforeCreatePostedRcptLine. + /// + /// + /// Specifies the WarehouseReceiptLine parameter. + /// Specifies the PostedWhseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnBeforeCreatePostedRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var WarehouseReceiptLine: Record "Warehouse Receipt Line"; PostedWhseReceiptHeader: Record "Posted Whse. Receipt Header") begin end; + /// + /// Event raised by OnInsertReceiptLineOnBeforeCreatePostedShptLine. + /// + /// + /// Specifies the WarehouseShipmentLine parameter. + /// Specifies the PostedWhseShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnBeforeCreatePostedShptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var WarehouseShipmentLine: Record "Warehouse Shipment Line"; PostedWhseShipmentHeader: Record "Posted Whse. Shipment Header") begin end; + /// + /// Event raised by OnInsertReceiptLineOnBeforeProcessWhseShptRcpt. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the PurchRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnBeforeProcessWhseShptRcpt(var PurchLine: Record "Purchase Line"; var IsHandled: Boolean; var CostBaseAmount: Decimal; PurchRcptLine: Record "Purch. Rcpt. Line") begin end; - [IntegrationEvent(false, false)] + /// + /// Event raised by OnCheckAndUpdateOnBeforeArchiveUnpostedOrder. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the IsHandled parameter. + [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeArchiveUnpostedOrder(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterInsertPostedHeaders. + /// + /// [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterInsertPostedHeaders(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeReleaseSalesHeader. + /// + /// + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeReleaseSalesHeader(var PurchHeader: Record "Purchase Header"; var SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnAfterReleaseSalesHeader. + /// + /// + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnAfterReleaseSalesHeader(var PurchHeader: Record "Purchase Header"; var SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdatePostingNosOnAfterSetReturnShipmentNoFromNos. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnAfterSetReturnShipmentNoFromNos(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnUpdatePostingNosOnInvoiceOnBeforeSetPostingNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnInvoiceOnBeforeSetPostingNo(var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists. + /// + /// + /// Specifies the PostingDateExists parameter. + /// Specifies the ReplacePostingDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the VATDateExists parameter. + /// Specifies the ReplaceVATDate parameter. + /// Specifies the VATDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists(var PurchHeader: Record "Purchase Header"; var PostingDateExists: Boolean; var ReplacePostingDate: Boolean; var PostingDate: Date; var ReplaceDocumentDate: Boolean; var ModifyHeader: Boolean; var VATDateExists: Boolean; var ReplaceVATDate: Boolean; var VATDate: Date) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchaseLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchaseLine(PurchaseLine: Record "Purchase Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchRcptLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchRcptLine(PurchRcptLine: Record "Purch. Rcpt. Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnShipmentLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnShipmentLine(ReturnShipmentLine: Record "Return Shipment Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertReturnShipmentHeader. + /// + /// + /// Specifies the ReturnShptHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReturnShipmentHeader(var PurchHeader: Record "Purchase Header"; var ReturnShptHeader: Record "Return Shipment Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertInvoiceHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Window parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PurchCommentLine parameter. + /// Specifies the RecordLinkManagement parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertInvoiceHeader(var PurchHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var IsHandled: Boolean; var Window: Dialog; var HideProgressWindow: Boolean; var SrcCode: Code[10]; var PurchCommentLine: Record "Purch. Comment Line"; var RecordLinkManagement: Codeunit "Record Link Management") begin end; + /// + /// Event raised by OnBeforeInserCrMemoHeader. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the Window parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the PurchCommentLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInserCrMemoHeader(var PurchHeader: Record "Purchase Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var HideProgressWindow: Boolean; var Window: Dialog; var IsHandled: Boolean; SrcCode: Code[10]; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; var PurchCommentLine: Record "Purch. Comment Line") begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnBeforeCopyComments. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnBeforeCopyComments(var PurchHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesShptHeader: Record "Sales Shipment Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnBeforePostBalancingEntry. + /// + /// + /// Specifies the LineCount parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnBeforePostBalancingEntry(var PurchHeader: Record "Purchase Header"; var LineCount: Integer) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterReceive. + /// + /// + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterReceive(var PurchHeader: Record "Purchase Header"; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeUpdateAssosOrderPostingNos. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the DropShipment parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateAssosOrderPostingNos(var TempPurchLine: Record "Purchase Line" temporary; var PurchHeader: Record "Purchase Header"; var DropShipment: Boolean; var IsHandled: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeUpdateAfterPosting. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeUpdateAfterPosting(var PurchHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var EverythingInvoiced: Boolean; var IsHandled: Boolean; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforePurchOrderLineModify. + /// + /// + /// Specifies the PurchOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforePurchOrderLineModify(var PurchHeader: Record "Purchase Header"; var PurchOrderLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePostPurchLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostPurchLine(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeFindTempPurchLine. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeFindTempPurchLine(var TempPurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"); begin end; + /// + /// Event raised by OnCalcInvoiceOnAfterResetTempLines. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the NewInvoice parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvoiceOnAfterResetTempLines(var PurchHeader: Record "Purchase Header"; var TempPurchLine: Record "Purchase Line" temporary; var NewInvoice: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnAfterPostInvoice. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the Window parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnRunOnAfterPostInvoice(var PurchaseHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var ReturnShipmentHeader: Record "Return Shipment Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PreviewMode: Boolean; var Window: Dialog; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnCopyToTempLinesLoop. + /// + /// [IntegrationEvent(false, false)] local procedure OnCopyToTempLinesLoop(var PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnRunOnBeforePostPurchLine. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforePostPurchLine(var PurchLine: Record "Purchase Line"; var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeValidateICPartnerBusPostingGroups. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeValidateICPartnerBusPostingGroups(var TempICGenJnlLine: Record "Gen. Journal Line" temporary; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostSalesTaxToGL. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the LineCount parameter. + /// Specifies the TotalUseTaxAmount parameter. + /// Specifies the TotalNotUseTaxAmount parameter. + /// Specifies the TempSalesTaxAmtLine parameter. + /// Specifies the Window parameter. + /// Specifies the SalesTaxCountry parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the SrcCode parameter. + /// Specifies the Currency parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostSalesTaxToGL(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var LineCount: Integer; var TotalUseTaxAmount: Decimal; var TotalNotUseTaxAmount: Decimal; var TempSalesTaxAmtLine: Record "Sales Tax Amount Line" temporary; var Window: Dialog; var SalesTaxCountry: Option US,CA,,,,,,,,,,,,NoTax; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; var GenJnlLineDocType: Enum "Gen. Journal Document Type"; var SrcCode: Code[10]; var Currency: Record Currency; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var TotalPurchLineLCY: Record "Purchase Line"; var TotalPurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostProvincialSalesTaxToGLOnBeforeRunWithCheck. + /// + /// + /// Specifies the TotalUseTaxAmount parameter. + /// Specifies the GenJnlLine parameter. + /// Specifies the TempProvSalesTaxAmtLine parameter. + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnPostProvincialSalesTaxToGLOnBeforeRunWithCheck(var PurchHeader: Record "Purchase Header"; var TotalUseTaxAmount: Decimal; var GenJnlLine: Record "Gen. Journal Line"; var TempProvSalesTaxAmtLine: Record "Sales Tax Amount Line" temporary; var Currency: Record Currency) begin end; + /// + /// Event raised by OnAfterPostProvincialSalesTaxToGL. + /// + /// + /// Specifies the TotalUseTaxAmount parameter. + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostProvincialSalesTaxToGL(var PurchHeader: Record "Purchase Header"; var TotalUseTaxAmount: Decimal; var GenJnlLineDocNo: Code[20]) begin end; + /// + /// Event raised by OnAfterGetCurrency. + /// + /// + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetCurrency(CurrencyCode: Code[10]; var Currency: Record Currency) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterGetPurchPrepmtAccount. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterGetPurchPrepmtAccount(var GLAcc: Record "G/L Account"; var TempPurchaseLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeGetPurchPrepmtAccount. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the GenPostingSetup parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeGetPurchPrepmtAccount(var GLAcc: Record "G/L Account"; var TempPurchaseLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; var GenPostingSetup: Record "General Posting Setup"; CompleteFunctionality: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertReturnEntryRelation. + /// + /// + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReturnEntryRelation(var ReturnShptLine: Record "Return Shipment Line"; var Result: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestPurchLineOnBeforeTestFieldQtyToReceive. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnTestPurchLineOnBeforeTestFieldQtyToReceive(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestPurchLineOnBeforeTestFieldReturnQtyToShip. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnTestPurchLineOnBeforeTestFieldReturnQtyToShip(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnAfterCalcVATAmountLines. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TempVATAmountLine parameter. [IntegrationEvent(false, false)] local procedure OnRunOnAfterCalcVATAmountLines(var PurchaseHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var TempVATAmountLine: Record "VAT Amount Line" temporary) begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforeInitAssocItemJnlLine. + /// + /// + /// Specifies the ItemShptEntryNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforeInitAssocItemJnlLine(var SalesOrderLine: Record "Sales Line"; var ItemShptEntryNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingSpecificationOnBeforeGetItemTrackingSetup. + /// + /// + /// Specifies the ItemTrackingSetup parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingSpecificationOnBeforeGetItemTrackingSetup(var PurchaseLine: Record "Purchase Line"; var ItemTrackingSetup: Record "Item Tracking Setup"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcItemJnlLineToBeReceivedAmounts. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the RemAmt parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcItemJnlLineToBeReceivedAmounts(var ItemJnlLine: Record "Item Journal Line"; var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyToBeReceived: Decimal; var RemAmt: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforeExit. + /// + /// + /// Specifies the ItemShptEntryNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforeExit(SalesOrderHeader: Record "Sales Header"; var ItemShptEntryNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeCalcQty. + /// + /// + /// Specifies the PurchOrderLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeCalcQty(var TempPurchLine: Record "Purchase Line" temporary; var PurchOrderLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnBeforeInsertSalesShptHeader. + /// + /// + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnBeforeInsertSalesShptHeader(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterShouldCalcAmounts. + /// + /// + /// Specifies the ShouldCalcAmounts parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterShouldCalcAmounts(PurchHeader: Record "Purchase Header"; var ShouldCalcAmounts: Boolean; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeDivideAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnAfterUpdateSalesOrderLine. + /// + /// + /// Specifies the SalesOrderHeader parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the SalesShipmentLine parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnAfterUpdateSalesOrderLine(SalesShptHeader: Record "Sales Shipment Header"; SalesOrderHeader: Record "Sales Header"; var SalesOrderLine: Record "Sales Line"; SalesShipmentLine: Record "Sales Shipment Line") begin end; + /// + /// Event raised by OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckPosted. + /// + /// + /// Specifies the ShouldCheckPosted parameter. [IntegrationEvent(false, false)] local procedure OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckPosted(PurchHeader: Record "Purchase Header"; var ShouldCheckPosted: Boolean) begin end; + /// + /// Event raised by OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckUnposted. + /// + /// + /// Specifies the ShouldCheckUnposted parameter. [IntegrationEvent(false, false)] local procedure OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckUnposted(PurchHeader: Record "Purchase Header"; var ShouldCheckUnposted: Boolean) begin end; + /// + /// Event raised by OnAfterCopyToTempLines. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterCopyToTempLines(var TempPurchLine: Record "Purchase Line" temporary; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnBeforeTempPurchLineSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnBeforeTempPurchLineSetFilters(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForShipment. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForShipment(var PurchHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostGLAccICLineOnBeforeCreateJobPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostGLAccICLineOnBeforeCreateJobPurchLine(var PurchHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeIsItemChargeLineWithQuantityToInvoice. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeIsItemChargeLineWithQuantityToInvoice(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerRcpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRcpt(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterGetAppliedOutboundItemLedgEntryNo. + /// + /// + /// Specifies the ItemApplicationEntry parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetAppliedOutboundItemLedgEntryNo(var ItemJnlLine: Record "Item Journal Line"; var ItemApplicationEntry: Record "Item Application Entry") begin end; + /// + /// Event raised by OnAfterGetGeneralPostingSetup. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetGeneralPostingSetup(var GeneralPostingSetup: Record "General Posting Setup"; PurchLine: Record "Purchase Line"); begin end; + /// + /// Event raised by OnBeforeConfirmJobLineType. + /// + /// + /// Specifies the HideDialog parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeConfirmJobLineType(PurchLine: Record "Purchase Line"; var HideDialog: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeConfirmJobPlanningLineNo. + /// + /// + /// Specifies the HideDialog parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeConfirmJobPlanningLineNo(PurchLine: Record "Purchase Line"; var HideDialog: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldProcessShipment. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ShouldProcessShipment parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldProcessShipment(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ShouldProcessShipment: Boolean) begin end; + /// + /// Event raised by OnCheckItemReservDisruptionOnAfterInsertTempSKU. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckItemReservDisruptionOnAfterInsertTempSKU(var Item: Record Item; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterPostItemChargePerRetRcpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerRetRcpt(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerTransfer. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerTransfer(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerRetShpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerRetShpt(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerSalesShpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerSalesShpt(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnInsertInvoiceHeaderOnBeforeCopyLinks. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertInvoiceHeaderOnBeforeCopyLinks(var PurchHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeUpdateIncomingDocument. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeUpdateIncomingDocument(var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumptionOnAfterItemLedgEntrySetFilters. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineJobConsumptionOnAfterItemLedgEntrySetFilters(var ItemLedgEntry: Record "Item Ledger Entry"; var PurchLine: Record "Purchase Line"; var ItemJournalLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnTestPurchLineOnTypeCaseOnDocumentTypeCaseElse. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnTestPurchLineOnTypeCaseOnDocumentTypeCaseElse(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterDecrementPrepmtAmtInvLCY. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PrepmtAmountInvLCY parameter. + /// Specifies the PrepmtVATAmountInvLCY parameter. [IntegrationEvent(false, false)] local procedure OnAfterDecrementPrepmtAmtInvLCY(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var PrepmtAmountInvLCY: Decimal; var PrepmtVATAmountInvLCY: Decimal) begin end; #if not CLEAN27 + /// + /// Event raised by OnSetPostingPreviewDocumentNo. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnSetPostingPreviewDocumentNo(var PreviewDocumentNo: Code[20]) begin end; + /// + /// Event raised by OnGetPostingPreviewDocumentNos. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnGetPostingPreviewDocumentNos(var PreviewDocumentNos: List of [Code[20]]) begin end; #endif + /// + /// Event raised by OnInsertPostedHeadersOnAfterInvoice. + /// + /// + /// Specifies the GenJournalLine parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInvoice(var PurchaseHeader: Record "Purchase Header"; var GenJournalLine: Record "Gen. Journal Line"; var GenJnlLineDocType: Enum "Gen. Journal Document Type"; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterSumPurchLines2. + /// + /// + /// Specifies the OldPurchaseLine parameter. + /// Specifies the NewPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterSumPurchLines2(var PurchaseHeader: Record "Purchase Header"; var OldPurchaseLine: Record "Purchase Line"; var NewPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnTypeCaseElse. + /// + /// + /// Specifies the Sign parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnTypeCaseElse(var PurchaseLine: Record "Purchase Line"; var Sign: Decimal) begin end; + /// + /// Event raised by OnSumPurchLines2OnAfterIsRoundingLineInserted. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the OldPurchaseLine parameter. + /// Specifies the RoundingLineInserted parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnAfterIsRoundingLineInserted(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var OldPurchaseLine: Record "Purchase Line"; RoundingLineInserted: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckICPartnerBlocked. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckICPartnerBlocked(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnAfterPostLines. + /// + /// + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TotalAmount parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnAfterPostLines(var PurchaseHeader: Record "Purchase Header"; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line"; var TempPurchLineGlobal: Record "Purchase Line" temporary; TotalAmount: Decimal) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforePurchaseHeaderModify. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforePurchaseHeaderModify(var PurchaseHeader: Record "Purchase Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePurchLineDimSetIDFromAppliedEntry. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePurchLineDimSetIDFromAppliedEntry(var PurchaseLineToPost: Record "Purchase Line"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterDeleteItemChargeAssgnt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterDeleteItemChargeAssgnt(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforePostItemChargePerRetRcpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRetRcpt(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerITTransfer. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TransRcptLine parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerITTransfer(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; TransRcptLine: Record "Transfer Receipt Line"; var TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerRetShpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRetShpt(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeShouldTestGetReceiptPPmtAmtToDeduct. + /// + /// + /// Specifies the CompleteFunctionality parameter. + /// Specifies the ShouldTestGetReceiptPPmtAmtToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeShouldTestGetReceiptPPmtAmtToDeduct(PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean; var ShouldTestGetReceiptPPmtAmtToDeduct: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeAmountIncludingVATAmountRound. + /// + /// + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeAmountIncludingVATAmountRound(var PurchaseLine: Record "Purchase Line"; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeCalcAmountsForFullVAT. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeCalcAmountsForFullVAT(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckMandatoryFields. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckMandatoryFields(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckPostingDate. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPostingDate(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterInsertCrMemoHeader. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertCrMemoHeader(var PurchaseHeader: Record "Purchase Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnAfterInsertInvoiceHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertInvoiceHeader(var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header") begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeOnBeforeDoCommit. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeOnBeforeDoCommit(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnReleasePurchDocumentOnBeforeDoCommit. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnReleasePurchDocumentOnBeforeDoCommit(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateAssociatedSalesOrderBeforeInitOutstanding. + /// + /// + /// Specifies the SalesOrderLine parameter. + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssociatedSalesOrderBeforeInitOutstanding(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesOrderLine: Record "Sales Line"; SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnRunOnBeforePostInvoice. + /// + /// + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforePostInvoice(PurchaseHeader: Record "Purchase Header"; var EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnCheckPurchDocumentOnBeforeCheckPurchDim. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckPurchDocumentOnBeforeCheckPurchDim(var PurchaseHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnCalcInvDiscountOnBeforeDoCommit. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvDiscountOnBeforeDoCommit(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeSetReplaceDocumentDate. + /// + /// + /// Specifies the PostingDate parameter. + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeSetReplaceDocumentDate(var PurchaseHeader: Record "Purchase Header"; var PostingDate: Date; var ReplaceDocumentDate: Boolean; var ModifyHeader: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineGet. + /// + /// + /// Specifies the TempVATAmountLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineGet(PurchaseLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckFAPostingPossibility. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckFAPostingPossibility(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckPostRestrictions. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPostRestrictions(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeTestGeneralPostingGroups. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeTestGeneralPostingGroups(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeTestFieldBilltoCustomerNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeTestFieldBilltoCustomerNo(var SalesOrderHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnAfterCalcVATBaseAmount. + /// + /// [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterCalcVATBaseAmount(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeUpdateAfterPosting. + /// + /// + /// Specifies the SuppressCommit parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateAfterPosting(var PurchaseHeader: Record "Purchase Header"; SuppressCommit: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckAndUpdate. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckAndUpdate(var PurchaseHeader: Record "Purchase Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcProvincialSalesTax. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeCalcProvincialSalesTax(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforePostProvincialSalesTaxToGL. + /// + /// + /// Specifies the TotalUseTaxAmount parameter. + /// Specifies the TempSalesTaxAmountLine parameter. + /// Specifies the SalesTaxCountry parameter. + /// Specifies the TaxOption parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the SrcCode parameter. + /// Specifies the Currency parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostProvincialSalesTaxToGL(var PurchaseHeader: Record "Purchase Header"; var TotalUseTaxAmount: Decimal; var TempSalesTaxAmountLine: Record "Sales Tax Amount Line" temporary; var SalesTaxCountry: Option US,CA,,,,,,,,,,,,NoTax; TaxOption: Option ,VAT,SalesTax; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; var GenJnlLineDocType: Enum "Gen. Journal Document Type"; var SrcCode: Code[10]; var Currency: Record Currency; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterCalcTotalChargeAmt. + /// + /// + /// Specifies the QtyToAssign parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnAfterCalcTotalChargeAmt(var PurchaseLineToPost: Record "Purchase Line"; QtyToAssign: Decimal; var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostPurchLineOnAfterInsertReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the TempPurchaseLineGlobal parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterInsertReturnShipmentLine(var PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; ReturnShptHeader: Record "Return Shipment Header"; TempPurchaseLineGlobal: Record "Purchase Line"; RoundingLineInserted: Boolean; xPurchaseLine: Record "Purchase Line"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."); begin end; + /// + /// Event raised by OnBeforeMakeInventoryAdjustment. + /// + /// [IntegrationEvent(false, false)] procedure OnBeforeMakeInventoryAdjustment(var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeCheckItemReservDisruption. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckItemReservDisruption(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterSetCheckApplToItemEntry. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterSetCheckApplToItemEntry(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheckBlanketOrderPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheckBlanketOrderPurchLine(var BlanketOrderPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeModifyInvoicedQtyOnPurchRcptLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeModifyInvoicedQtyOnPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeTestPostingDate. + /// + /// + /// Specifies the ReplacePostingDate parameter. + /// Specifies the SkipTestPostingDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeTestPostingDate(var PurchaseHeader: Record "Purchase Header"; ReplacePostingDate: Boolean; var SkipTestPostingDate: Boolean) begin end; + /// + /// Event raised by OnBeforeCopyAndCheckItemCharge. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeCopyAndCheckItemCharge(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeThrowError. + /// + /// + /// Specifies the InvoiceEverything parameter. + /// Specifies the AssignError parameter. [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeThrowError(varPurchHeader: Record "Purchase Header"; var InvoiceEverything: Boolean; var AssignError: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckItemCharge. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckItemCharge(var ItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeProcedurePostAssocItemJnlLine. + /// + /// + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the ItemShptEntryNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeProcedurePostAssocItemJnlLine(var SalesOrderLine: Record "Sales Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempHandlingSpecification: Record "Tracking Specification" temporary; QtyToBeShipped: Decimal; QtyToBeShippedBase: Decimal; var ItemShptEntryNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostDistributeItemChargeOnAfterSetFactor. + /// + /// + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostDistributeItemChargeOnAfterSetFactor(TempItemLedgerEntry: Record "Item Ledger Entry"; var Factor: Decimal) begin end; + /// + /// Event raised by OnBeforeCalcItemJnlLineToBeInvoicedAmounts. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the RemAmt parameter. + /// Specifies the RemDiscAmt parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcItemJnlLineToBeInvoicedAmounts(var ItemJournalLine: Record "Item Journal Line"; var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; var RemAmt: Decimal; var RemDiscAmt: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemJnlLineWhseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the PostBefore parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLineWhseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary; PurchaseLine: Record "Purchase Line"; PostBefore: Boolean) begin end; + /// + /// Event raised by OnAfterPostItemJnlLineWhseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLineWhseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerTransferOnBeforeProcessItemApplicationEntry. + /// + /// + /// Specifies the ItemApplicationEntry parameter. + /// Specifies the TransferReceiptLine parameter. + /// Specifies the TotalAmountToPostFCY parameter. + /// Specifies the AmountToPostFCY parameter. + /// Specifies the GeneralLedgerSetup parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerTransferOnBeforeProcessItemApplicationEntry(PurchaseLine: Record "Purchase Line"; ItemApplicationEntry: Record "Item Application Entry"; TransferReceiptLine: Record "Transfer Receipt Line"; TotalAmountToPostFCY: Decimal; var AmountToPostFCY: Decimal; GeneralLedgerSetup: Record "General Ledger Setup"; PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemCharge. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ItemEntryNo parameter. + /// Specifies the QuantityBase parameter. + /// Specifies the AmountToAssign parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the IndirectCostPct parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemCharge(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; ItemEntryNo: Integer; QuantityBase: Decimal; AmountToAssign: Decimal; QtyToAssign: Decimal; IndirectCostPct: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertedPrepmtVATBaseToDeductOnAfterSetTempPrepmtDeductLCYPurchaseLine. + /// + /// + /// Specifies the PrepmtVATBaseToDeduct parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertedPrepmtVATBaseToDeductOnAfterSetTempPrepmtDeductLCYPurchaseLine(var TempPrepmtDeductLCYPurchaseLine: Record "Purchase Line" temporary; var PrepmtVATBaseToDeduct: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeAdjustPrepmtAmountLCY. + /// + /// + /// Specifies the PrepmtPurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustPrepmtAmountLCY(PurchaseHeader: Record "Purchase Header"; var PrepmtPurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeAdjustFinalInvWith100PctPrepmt. + /// + /// + /// Specifies the TempPrepmtDeductLCYPurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustFinalInvWith100PctPrepmt(var CombinedPurchaseLine: Record "Purchase Line"; var TempPrepmtDeductLCYPurchaseLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateInvoicedQtyOnReturnShipmentLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoicedQtyOnReturnShipmentLine(var ReturnShipmentLine: Record "Return Shipment Line") begin end; + /// + /// Event raised by OnAfterCheckPurchRcptLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckPurchRcptLine(PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnUpdateItemChargeAssgntOnBeforeItemChargeAssignmentPurchModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateItemChargeAssgntOnBeforeItemChargeAssignmentPurchModify(var ItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)") begin end; + /// + /// Event raised by OnBeforeUpdateReceiptInvoicingQuantities. + /// + /// + /// Specifies the SkipQuantityUpdate parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateReceiptInvoicingQuantities(PurchLine: Record "Purchase Line"; var SkipQuantityUpdate: Boolean) begin end; + /// + /// Event raised by OnSetCommitBehavior. + /// + /// [IntegrationEvent(false, false)] local procedure OnSetCommitBehavior(var IgnoreCommit: Boolean) begin end; -} \ No newline at end of file + + /// + /// Event raised by OnAfterProcessPostingLines. + /// + /// + /// Specifies the TotalPurchLine parameter. + /// Specifies the VendLedgEntry parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the Window parameter. + [IntegrationEvent(false, false)] + local procedure OnAfterProcessPostingLines(var PurchHeader: Record "Purchase Header"; var TotalPurchLine: Record "Purchase Line"; var VendLedgEntry: Record "Vendor Ledger Entry"; InvoicePostingParameters: Record "Invoice Posting Parameters"; SuppressCommit: Boolean; EverythingInvoiced: Boolean; var Window: Dialog) + begin + end; + + /// + /// Event is raised after the CheckPostRestrictions function is executed + /// + /// The purchase header record that was checked for post restrictions. + [IntegrationEvent(false, false)] + local procedure OnAfterCheckPostRestrictions(var PurchaseHeader: Record "Purchase Header") + begin + end; +} + diff --git a/src/Layers/NA/BaseApp/Sales/Posting/SalesPost.Codeunit.al b/src/Layers/NA/BaseApp/Sales/Posting/SalesPost.Codeunit.al index b1cd325ebc2..418ebfad79c 100644 --- a/src/Layers/NA/BaseApp/Sales/Posting/SalesPost.Codeunit.al +++ b/src/Layers/NA/BaseApp/Sales/Posting/SalesPost.Codeunit.al @@ -365,6 +365,8 @@ codeunit 80 "Sales-Post" ProcessPosting(SalesHeader, SalesHeader2, TempDropShptPostBuffer, CustLedgEntry, EverythingInvoiced); + Clear(GenJnlPostLine); + UpdateLastPostingNos(SalesHeader); OnRunOnBeforeFinalizePosting( @@ -570,6 +572,8 @@ codeunit 80 "Sales-Post" OnRunOnBeforeMakeInventoryAdjustment(SalesHeader, SalesInvHeader, GenJnlPostLine, ItemJnlPostLine, PreviewMode, SkipInventoryAdjustment); if not SkipInventoryAdjustment then MakeInventoryAdjustment(); + + OnAfterProcessPostingLines(SalesHeader, TotalSalesLine, CustLedgEntry, InvoicePostingParameters, SuppressCommit, EverythingInvoiced, Window, HideProgressWindow); end; /// @@ -6521,6 +6525,8 @@ codeunit 80 "Sales-Post" if SalesHeader."Bill-to Contact No." <> '' then if Contact.Get(SalesHeader."Bill-to Contact No.") then Contact.CheckIfPrivacyBlocked(true); + + OnAfterCheckPostRestrictions(SalesHeader); end; local procedure CheckCustBlockage(SalesHeader: Record "Sales Header"; CustCode: Code[20]; ExecuteDocCheck: Boolean) @@ -9933,6 +9939,7 @@ codeunit 80 "Sales-Post" /// Indicates whether the item journal line should be posted. /// Indicates whether warehouse shipment is involved. /// The warehouse receipt header. + /// Specifies the WarehouseShipmentHeader parameter. [IntegrationEvent(true, false)] local procedure OnAfterPostItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var WhseJnlPostLine: Codeunit "Whse. Jnl.-Register Line"; OriginalItemJnlLine: Record "Item Journal Line"; var ItemShptEntryNo: Integer; IsATO: Boolean; var TempHandlingSpecification: Record "Tracking Specification"; var TempATOTrackingSpecification: Record "Tracking Specification"; TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; ShouldPostItemJnlLine: Boolean; WhseShip: Boolean; WhseRcptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header") begin @@ -11061,11 +11068,21 @@ codeunit 80 "Sales-Post" /// The sales line being posted. /// The job task sales line. /// The resource journal line that was posted. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostSalesTaxToGL(var SalesHeader: Record "Sales Header"; GenJnlLineDocType: Integer; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]) begin end; + /// + /// Event raised by OnAfterPostResJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the JobTaskSalesLine parameter. + /// Specifies the ResJnlLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostResJnlLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; JobTaskSalesLine: Record "Sales Line"; ResJnlLine: Record "Res. Journal Line") begin @@ -11089,6 +11106,7 @@ codeunit 80 "Sales-Post" /// The sales line quantity. /// The temporary VAT amount line. /// The temporary VAT amount line remainder. + /// Specifies the TempSalesLineForSalesTax parameter. [IntegrationEvent(false, false)] local procedure OnAfterDivideAmount(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; QtyType: Option General,Invoicing,Shipping; SalesLineQty: Decimal; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; var TempSalesLineForSalesTax: Record "Sales Line" temporary) begin @@ -11615,6 +11633,7 @@ codeunit 80 "Sales-Post" /// The temporary global sales lines. /// Indicates whether database commits are suppressed. /// The sales and receivables setup. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateOrderLine(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line" temporary; CommitIsSuppressed: Boolean; var SalesSetup: Record "Sales & Receivables Setup") begin @@ -12202,16 +12221,38 @@ codeunit 80 "Sales-Post" until FindEmailParameter.Next() = 0; end; + /// + /// Event raised by OnBeforeCalculateSalesTax. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesTaxAmountLine parameter. + /// Specifies the LocalwasProcessed parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalculateSalesTax(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesTaxAmountLine: Record "Sales Tax Amount Line"; var LocalwasProcessed: Boolean; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnFinalizeInvoicePostingSalesTax. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnFinalizeInvoicePostingSalesTax(var SalesHeader: Record "Sales Header"; var SalesInvoiceHeader: Record "Sales Invoice Header"; CommitIsSuppressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnFinalizeCreditmemoPostingSalesTax. + /// + /// + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnFinalizeCreditmemoPostingSalesTax(var SalesHeader: Record "Sales Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; CommitIsSuppressed: Boolean; PreviewMode: Boolean) begin @@ -12614,11 +12655,22 @@ codeunit 80 "Sales-Post" begin end; + /// + /// Event raised by OnBeforePostSalesTaxToGL. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesTaxAmountLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostSalesTaxToGL(var GenJnlLine: Record "Gen. Journal Line"; SalesHeader: Record "Sales Header"; SalesTaxAmountLine: Record "Sales Tax Amount Line") begin end; + /// + /// Event raised by OnBeforePostSalesTaxRoundingToGL. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostSalesTaxRoundingToGL(var GenJnlLine: Record "Gen. Journal Line"; SalesHeader: Record "Sales Header") begin @@ -13122,839 +13174,1970 @@ codeunit 80 "Sales-Post" begin end; + /// + /// Event raised by OnSumSalesLines2OnAfterDivideAmount. + /// + /// + /// Specifies the SalesLineQty parameter. + /// Specifies the QtyType parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnAfterDivideAmount(var OldSalesLine: Record "Sales Line"; var SalesLineQty: Decimal; QtyType: Option General,Invoicing,Shipping) begin end; + /// + /// Event raised by OnSumSalesLines2OnAfterCalcTotalAdjCostLCY. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnAfterCalcTotalAdjCostLCY(var TotalAdjCostLCY: decimal; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnSumSalesLines2OnBeforeCalcVATAmountLines. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the InsertSalesLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnBeforeCalcVATAmountLines(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; InsertSalesLine: Boolean; var TempVATAmountLine: Record "VAT Amount Line" temporary; QtyType: Option General,Invoicing,Shipping; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumSalesLines2OnBeforeNewSalesLineInsert. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnBeforeNewSalesLineInsert(var NewSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumSalesLines2SetFilter. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the InsertSalesLine parameter. + /// Specifies the QtyType parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2SetFilter(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; InsertSalesLine: Boolean; var QtyType: Option) begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnBeforePostTempWhseJnlLine2. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnBeforePostTempWhseJnlLine2(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterTestUpdatedSalesLine. + /// + /// + /// Specifies the EverythingInvoiced parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterTestUpdatedSalesLine(var SalesLine: Record "Sales Line"; var EverythingInvoiced: Boolean; SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineBeforeInitQtyToInvoice. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineBeforeInitQtyToInvoice(var TempSalesLine: Record "Sales Line" temporary; WhseShip: Boolean; WhseReceive: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitOutstanding(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitTempSalesLineQuantities. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitTempSalesLineQuantities(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterUpdateInvoicedValues. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterUpdateInvoicedValues(var TempSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; TempSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; TempSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterInsertSalesOrderHeader. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterInsertSalesOrderHeader(var SalesOrderLine: Record "Sales Line"; TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; WhseShip: Boolean; WhseReceive: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeUpdateInvoicedValues. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeUpdateInvoicedValues(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnSetDefaultQtyBlank. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesSetup parameter. + /// Specifies the SetDefaultQtyBlank parameter. [IntegrationEvent(true, false)] local procedure OnPostUpdateOrderLineOnSetDefaultQtyBlank(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; SalesSetup: Record "Sales & Receivables Setup"; var SetDefaultQtyBlank: Boolean) begin end; + /// + /// Event raised by OnCalcInvoiceOnAfterTempSalesLineSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvoiceOnAfterTempSalesLineSetFilters(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterCalcInvDiscount. + /// + /// + /// Specifies the TempWhseShptHeader parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterCalcInvDiscount(SalesHeader: Record "Sales Header"; TempWhseShptHeader: Record "Warehouse Shipment Header" temporary; PreviewMode: Boolean; var TempSalesLineGlobal: Record "Sales Line" temporary; SuppressCommit: Boolean; WhseReceive: Boolean; WhseShip: Boolean); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterReleaseSalesDocument. + /// + /// + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterReleaseSalesDocument(SalesHeader: Record "Sales Header"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeSetPostingFlags. + /// + /// + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the HideProgressWindow parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnBeforeSetPostingFlags(var SalesHeader: Record "Sales Header"; var TempSalesLineGlobal: Record "Sales Line" temporary; var ModifyHeader: Boolean; var HideProgressWindow: Boolean); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetPostingFlags. + /// + /// + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the ModifyHeader parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterSetPostingFlags(var SalesHeader: Record "Sales Header"; var TempSalesLineGlobal: Record "Sales Line" temporary; var ModifyHeader: Boolean); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetSourceCode. + /// + /// + /// Specifies the SourceCodeSetup parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetSourceCode(var SalesHeader: Record "Sales Header"; SourceCodeSetup: Record "Source Code Setup"; var SrcCode: Code[10]); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetPoszingFromWhseRef. + /// + /// + /// Specifies the InvtPickPutaway parameter. + /// Specifies the PostingFromWhseRef parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetPoszingFromWhseRef(var SalesHeader: Record "Sales Header"; var InvtPickPutaway: Boolean; var PostingFromWhseRef: Integer); begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCalcInvDiscount. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the RefreshNeeded parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCalcInvDiscount(var SalesHeader: Record "Sales Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseReceive: Boolean; WhseShip: Boolean; var RefreshNeeded: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCheckPostRestrictions. + /// + /// + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCheckPostRestrictions(var SalesHeader: Record "Sales Header"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnCheckAssosOrderLinesOnAfterSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssosOrderLinesOnAfterSetFilters(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnCheckSalesDocumentOnAfterCalcShouldCheckItemCharge. + /// + /// + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ShouldCheckItemCharge parameter. + /// Specifies the ModifyHeader parameter. [IntegrationEvent(true, false)] local procedure OnCheckSalesDocumentOnAfterCalcShouldCheckItemCharge(var SalesHeader: Record "Sales Header"; WhseReceive: Boolean; WhseShip: Boolean; var ShouldCheckItemCharge: Boolean; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForShipOnBeforeCheck. + /// + /// + /// Specifies the TempWhseShipmentHeader parameter. + /// Specifies the TempWhseReceiptHeader parameter. + /// Specifies the Ship parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForShipOnBeforeCheck(var SalesHeader: Record "Sales Header"; var TempWhseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWhseReceiptHeader: Record "Warehouse Receipt Header" temporary; var Ship: Boolean; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForReceiveOnBeforeCheck. + /// + /// + /// Specifies the TempWhseShipmentHeader parameter. + /// Specifies the TempWhseReceiptHeader parameter. + /// Specifies the Receive parameter. [IntegrationEvent(true, false)] local procedure OnCheckTrackingAndWarehouseForReceiveOnBeforeCheck(var SalesHeader: Record "Sales Header"; var TempWhseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWhseReceiptHeader: Record "Warehouse Receipt Header" temporary; var Receive: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingSpecificationOnAfterTempItemSalesLineLoop. + /// + /// [IntegrationEvent(false, false)] local procedure OnCheckTrackingSpecificationOnAfterTempItemSalesLineLoop(var TempItemSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckCustBlockageOnAfterTempLinesSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckCustBlockageOnAfterTempLinesSetFilters(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary); begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterTempPrepmtSalesLineSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterTempPrepmtSalesLineSetFilters(var TempPrepmtSalesLine: Record "Sales Line" temporary; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterGetSalesPrepmtAccount. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterGetSalesPrepmtAccount(var GLAcc: Record "G/L Account"; var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeGetSalesPrepmtAccount. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the GenPostingSetup parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeGetSalesPrepmtAccount(var GLAcc: Record "G/L Account"; var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header"; var GenPostingSetup: Record "General Posting Setup"; CompleteFunctionality: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterTempSalesLineSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempPrepmtSalesLine parameter. + /// Specifies the NextLineNo parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterTempSalesLineSetFilters(var TempSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempPrepmtSalesLine: Record "Sales Line" temporary; var NextLineNo: Integer) begin end; + /// + /// Event raised by OnFinalizePostingOnAfterUpdateItemChargeAssgnt. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnAfterUpdateItemChargeAssgnt(var SalesHeader: Record "Sales Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the TempItemChargeAssignmentSales parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the TempSalesLine parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the SalesPost parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeInsertTrackingSpecification(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)" temporary; SalesHeader: Record "Sales Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; EverythingInvoiced: Boolean; var TempSalesLine: Record "Sales Line" temporary; var TempSalesLineGlobal: Record "Sales Line" temporary; SalesPost: Codeunit "Sales-Post") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeCreateOutboxSalesTrans. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeCreateOutboxSalesTrans(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; EverythingInvoiced: Boolean; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeDeleteApprovalEntries. + /// + /// + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeDeleteApprovalEntries(var SalesHeader: Record "Sales Header"; var EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeGenJnlPostPreviewThrowError. + /// + /// + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeGenJnlPostPreviewThrowError(SalesHeader: Record "Sales Header"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforePost. + /// + /// + /// Specifies the PurchOrderLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforePost(var ItemJournalLine: Record "Item Journal Line"; PurchOrderLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostATOOnBeforePostedATOLinkInsert. + /// + /// + /// Specifies the AssemblyHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostATOOnBeforePostedATOLinkInsert(var PostedATOLink: Record "Posted Assemble-to-Order Link"; var AssemblyHeader: Record "Assembly Header"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostATOAssocItemJnlLineOnBeforeRemainingPost. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the PostedATOLink parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the ItemLedgShptEntryNo parameter. [IntegrationEvent(false, false)] local procedure OnPostATOAssocItemJnlLineOnBeforeRemainingPost(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var PostedATOLink: Record "Posted Assemble-to-Order Link"; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal; var ItemLedgShptEntryNo: Integer) begin end; + /// + /// Event raised by OnPostDropOrderShipmentOnAfterUpdateBlanketOrderLine. + /// + /// + /// Specifies the PurchOrderLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostDropOrderShipmentOnAfterUpdateBlanketOrderLine(PurchOrderHeader: Record "Purchase Header"; PurchOrderLine: Record "Purchase Line"; TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesShptHeader: Record "Sales Shipment Header"; SalesHeader: Record "Sales Header"; PurchRcptHeader: Record "Purch. Rcpt. Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyDocumentFields. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header") begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCalcShouldPostItemJnlLineItemCharges. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the ShouldPostItemJnlLineItemCharges parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCalcShouldPostItemJnlLineItemCharges(SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var ShouldPostItemJnlLineItemCharges: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterPrepareItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the RemAmt parameter. + /// Specifies the RemDiscAmt parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterPrepareItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; WhseShip: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var QtyToBeShipped: Decimal; TrackingSpecification: Record "Tracking Specification"; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; var QtyToBeShippedBase: Decimal; var RemAmt: Decimal; var RemDiscAmt: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyItemCharge. + /// + /// + /// Specifies the TempItemChargeAssgntSales parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyItemCharge(var ItemJournalLine: Record "Item Journal Line"; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeIsJobContactLineCheck. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the ShouldPostItemJnlLine parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the QtyToBeShipped parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeIsJobContactLineCheck(var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var ShouldPostItemJnlLine: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; QtyToBeShipped: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck(var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforePostItemJnlLineWhseLine. + /// + /// + /// Specifies the TempWhseJnlLine parameter. + /// Specifies the TempWhseTrackingSpecification parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforePostItemJnlLineWhseLine(var ItemJnlLine: Record "Item Journal Line"; var TempWhseJnlLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeTransferReservToItemJnlLine. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the CheckApplFromItemEntry parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeShippedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeTransferReservToItemJnlLine(SalesLine: Record "Sales Line"; ItemJnlLine: Record "Item Journal Line"; var CheckApplFromItemEntry: Boolean; var TrackingSpecification: Record "Tracking Specification"; QtyToBeShippedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeCopyTrackingFromSpec. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeCopyTrackingFromSpec(TrackingSpecification: Record "Tracking Specification"; var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; IsATO: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine(var ItemChargeSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemJnlLinePrepareJournalLineOnBeforeCalcItemJnlAmounts. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLinePrepareJournalLineOnBeforeCalcItemJnlAmounts(var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; IsATO: Boolean) begin end; + /// + /// Event raised by OnPostItemChargeOnBeforePostItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the TempItemChargeAssgntSales parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnBeforePostItemJnlLine(var SalesLineToPost: Record "Sales Line"; var SalesLine: Record "Sales Line"; QtyToAssign: Decimal; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnAfterCopyToItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the GeneralLedgerSetup parameter. + /// Specifies the QtyToInvoice parameter. + /// Specifies the TempItemChargeAssignmentSales parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnAfterCopyToItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var SalesLine: Record "Sales Line"; GeneralLedgerSetup: Record "General Ledger Setup"; QtyToInvoice: Decimal; var TempItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)" temporary) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnAfterTempTrackingSpecificationInvSetFilters. + /// + /// + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the TempTrackingSpecificationInv parameter. + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the TotalSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnAfterTempTrackingSpecificationInvSetFilters(SalesHeader: record "Sales Header"; var ItemJnlLine2: record "Item Journal Line"; var TempTrackingSpecificationInv: Record "Tracking Specification" temporary; SalesLine: Record "Sales Line"; var IsHandled: Boolean; var TotalSalesLineLCY: Record "Sales Line"; var TotalSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnBeforeTestJobNo. + /// + /// + /// Specifies the SkipTestJobNo parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnBeforeTestJobNo(SalesLine: Record "Sales Line"; var SkipTestJobNo: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnBeforeLastRunWithCheck. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnBeforeLastRunWithCheck(NonDistrItemJnlLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnBeforeRunWithCheck. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnBeforeRunWithCheck(ItemJnlLine2: Record "Item Journal Line"; var IsHandled: Boolean; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerShptOnBeforeTestJobNo. + /// + /// + /// Specifies the SkipTestJobNo parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerShptOnBeforeTestJobNo(SalesShipmentLine: Record "Sales Shipment Line"; var SkipTestJobNo: Boolean; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerShptOnAfterCheckItemChargePerShpt. + /// + /// + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the DistributeCharge parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerShptOnAfterCheckItemChargePerShpt(SalesShipmentLine: Record "Sales Shipment Line"; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; DistributeCharge: Boolean; var IsHandled: Boolean; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerShptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the DistributeCharge parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerShptOnAfterCalcDistributeCharge(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesShptLine: Record "Sales Shipment Line"; TempItemLedgEntry: Record "Item Ledger Entry" temporary; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; var DistributeCharge: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the ReturnRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the DistributeCharge parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; ReturnRcptLine: Record "Return Receipt Line"; TempItemLedgEntry: Record "Item Ledger Entry" temporary; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; var DistributeCharge: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRetRcptOnBeforeTestFieldJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetRcptOnBeforeTestFieldJobNo(ReturnReceiptLine: Record "Return Receipt Line"; var IsHandled: Boolean; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingLineOnAfterRetrieveInvoiceSpecification. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingLineOnAfterRetrieveInvoiceSpecification(var SalesLine: Record "Sales Line"; var TempInvoicingSpecification: Record "Tracking Specification" temporary; var TrackingSpecificationExists: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnAfterSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnAfterSetFilters(var SalesShipmentLine: Record "Sales Shipment Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnAfterUpdateSalesShptLineFields. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnAfterUpdateSalesShptLineFields(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the HasATOShippedNotInvoiced parameter. + /// Specifies the ShouldAdjustQuantityRounding parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding(SalesShptLine: Record "Sales Shipment Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; HasATOShippedNotInvoiced: Boolean; var ShouldAdjustQuantityRounding: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeShipmentInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the ItemJnlRollRndg parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(true, false)] local procedure OnPostItemTrackingForShipmentOnBeforeShipmentInvoiceErr(SalesLine: Record "Sales Line"; var IsHandled: Boolean; SalesHeader: Record "Sales Header"; var ItemJnlRollRndg: Boolean; TrackingSpecificationExists: Boolean; var TempTrackingSpecification: Record "Tracking Specification" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeReturnReceiptInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the ItemJnlRollRndg parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(true, false)] local procedure OnPostItemTrackingForShipmentOnBeforeReturnReceiptInvoiceErr(SalesLine: Record "Sales Line"; var IsHandled: Boolean; SalesHeader: Record "Sales Header"; var ItemJnlRollRndg: Boolean; TrackingSpecificationExists: Boolean; var TempTrackingSpecification: Record "Tracking Specification" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnAfterSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnAfterSetFilters(var ReturnReceiptLine: Record "Return Receipt Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertCrMemoLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertCrMemoLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean; xSalesLine: Record "Sales Line"; SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertInvoiceLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the ShouldInsertInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertInvoiceLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean; xSalesLine: Record "Sales Line"; SalesInvHeader: Record "Sales Invoice Header"; var ShouldInsertInvoiceLine: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertReturnReceiptLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertReturnReceiptLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertShipmentLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesLineACY parameter. + /// Specifies the DocType parameter. + /// Specifies the DocNo parameter. + /// Specifies the ExtDocNo parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertShipmentLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean; SalesLineACY: Record "Sales Line"; DocType: Option; DocNo: Code[20]; ExtDocNo: Code[35]) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterSetEverythingInvoiced. + /// + /// + /// Specifies the EverythingInvoiced parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterSetEverythingInvoiced(SalesLine: Record "Sales Line"; var EverythingInvoiced: Boolean; var IsHandled: Boolean; SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterRoundAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterRoundAmount(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; GenJnlLineDocNo: Code[20]) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeTestJobNo(SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterPostItemTrackingLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempPostedATOLink parameter. [IntegrationEvent(true, false)] local procedure OnPostSalesLineOnAfterPostItemTrackingLine(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterTestSalesLine. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the WhseShptHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CostBaseAmount parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterTestSalesLine(var SalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header"; var WhseShptHeader: Record "Warehouse Shipment Header"; WhseShip: Boolean; PreviewMode: Boolean; var CostBaseAmount: Decimal) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforePostItemTrackingLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(true, false)] local procedure OnPostSalesLineOnBeforePostItemTrackingLine(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var ItemLedgShptEntryNo: Integer; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal; GenJnlLineDocNo: Code[20]; SrcCode: Code[10]; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeTestUnitOfMeasureCode. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeTestUnitOfMeasureCode(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterAdjustPrepmtAmountLCY. + /// + /// + /// Specifies the xSalesLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterAdjustPrepmtAmountLCY(var SalesLine: record "Sales Line"; var xSalesLine: record "Sales Line"; TempTrackingSpecification: record "Tracking Specification" temporary; SalesHeader: record "Sales Header") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterInsertReturnReceiptLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the ReturnRcptHeader parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the SalesShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterInsertReturnReceiptLine(var SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var xSalesLine: Record "Sales Line"; ReturnRcptHeader: Record "Return Receipt Header"; RoundingLineInserted: Boolean; var TempTrackingSpecification: Record "Tracking Specification" temporary; var ItemLedgShptEntryNo: Integer; SalesShipmentHeader: Record "Sales Shipment Header") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterGetSalesOrderLine. + /// + /// + /// Specifies the SalesShptLine parameter. + /// Specifies the SalesOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterGetSalesOrderLine(var TempSalesLine: Record "Sales Line" temporary; SalesShptLine: Record "Sales Shipment Line"; SalesOrderLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeCalcQuantityInvoiced. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeCalcQuantityInvoiced(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnAfterGetSalesOrderLine. + /// + /// + /// Specifies the ReturnRcptLine parameter. + /// Specifies the SalesOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnAfterGetSalesOrderLine(var TempSalesLine: Record "Sales Line" temporary; ReturnRcptLine: Record "Return Receipt Line"; SalesOrderLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeInitQtyToInvoice(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnAfterModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnAfterModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeCalcQuantityInvoiced. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeCalcQuantityInvoiced(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnProcessAssocItemJnlLineOnBeforeTempDropShptPostBufferInsert. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnProcessAssocItemJnlLineOnBeforeTempDropShptPostBufferInsert(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnProcessAssocItemJnlLineOnBeforePostAssocItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnProcessAssocItemJnlLineOnBeforePostAssocItemJnlLine(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnRoundAmountOnBeforeIncrAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineQty parameter. + /// Specifies the TotalSalesLine parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnBeforeIncrAmount(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineQty: Decimal; var TotalSalesLine: Record "Sales Line"; var TotalSalesLineLCY: Record "Sales Line"; var xSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforeCheckTotalInvoiceAmount. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeCheckTotalInvoiceAmount(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnRunOnBeforeFinalizePosting. + /// + /// + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the ReturnReceiptHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeFinalizePosting(var SalesHeader: Record "Sales Header"; var SalesShipmentHeader: Record "Sales Shipment Header"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var ReturnReceiptHeader: Record "Return Receipt Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; CommitIsSuppressed: Boolean; GenJnlLineExtDocNo: Code[35]; var EverythingInvoiced: Boolean; GenJnlLineDocNo: Code[20]; SrcCode: Code[10]; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforePostSalesLineEndLoop. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the LastLineRetrieved parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the RecSalesHeader parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the ReturnReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforePostSalesLineEndLoop(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var LastLineRetrieved: Boolean; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; RecSalesHeader: Record "Sales Header"; xSalesLine: Record "Sales Line"; var SalesShipmentHeader: Record "Sales Shipment Header"; var ReturnReceiptHeader: Record "Return Receipt Header") begin end; + /// + /// Event raised by OnGetATOItemLedgEntriesNotInvoicedOnBeforeItemLedgEntryNotInvoicedInsert. + /// + /// [IntegrationEvent(false, false)] local procedure OnGetATOItemLedgEntriesNotInvoicedOnBeforeItemLedgEntryNotInvoicedInsert(var ItemLedgEntry: Record "Item Ledger Entry") begin end; + /// + /// Event raised by OnGetPostedDocumentRecordElseCase. + /// + /// + /// Specifies the PostedSalesDocumentVariant parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnGetPostedDocumentRecordElseCase(SalesHeader: Record "Sales Header"; var PostedSalesDocumentVariant: Variant; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnGetSalesLinesOnAfterFillTempLines. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnGetSalesLinesOnAfterFillTempLines(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostItemLineOnAfterMakeSalesLineToShip. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempPostedATOLink parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemLineOnAfterMakeSalesLineToShip(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemLineOnBeforeMakeSalesLineToShip. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempPostedATOLink parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the IsHandled parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the ReturnReceiptHeader parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the TempHandlingSpecificationInv parameter. + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnPostItemLineOnBeforeMakeSalesLineToShip(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var ItemLedgShptEntryNo: Integer; var IsHandled: Boolean; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; ReturnReceiptHeader: Record "Return Receipt Header"; var TempHandlingSpecification: Record "Tracking Specification" temporary; var TempHandlingSpecificationInv: Record "Tracking Specification" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnPostItemLineOnBeforePostItemInvoiceLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempPostedATOLink parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemLineOnBeforePostItemInvoiceLine(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterPostItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnAfterPostItemJnlLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargeLineOnAfterTempItemChargeAssgntSalesLoop. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineParam parameter. [IntegrationEvent(true, false)] local procedure OnPostItemChargeLineOnAfterTempItemChargeAssgntSalesLoop(var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineParam: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargeLineOnBeforePostItemCharge. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeLineOnBeforePostItemCharge(var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforeReturnRcptLineModify. + /// + /// + /// Specifies the ReturnRcptLine parameter. + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforeReturnRcptLineModify(SalesHeader: Record "Sales Header"; var ReturnRcptLine: Record "Return Receipt Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforeAdjustQuantityRounding. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the ShouldAdjustQuantityRounding parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforeAdjustQuantityRounding(ReturnRcptLine: Record "Return Receipt Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; var ShouldAdjustQuantityRounding: Boolean) begin end; + /// + /// Event raised by OnReleaseSalesDocumentOnBeforeSetStatus. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SavedStatus parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the SuppressCommit parameter. [IntegrationEvent(false, false)] local procedure OnReleaseSalesDocumentOnBeforeSetStatus(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; SavedStatus: Enum "Sales Document Status"; PreviewMode: Boolean; SuppressCommit: Boolean); begin end; + /// + /// Event raised by OnRoundAmountOnAfterAssignSalesLines. + /// + /// + /// Specifies the SalesLineACY parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TotalSalesLines parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnAfterAssignSalesLines(var xSalesLine: Record "Sales Line"; var SalesLineACY: Record "Sales Line"; SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var TotalSalesLines: Record "Sales Line"; var TotalSalesLineLCY: Record "Sales Line"; var SalesLine: Record "Sales Line"); begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification. + /// + /// [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification(var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSendICDocumentOnBeforeSetICStatus. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSendICDocumentOnBeforeSetICStatus(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSendPostedDocumentRecordElseCase. + /// + /// + /// Specifies the DocumentSendingProfile parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSendPostedDocumentRecordElseCase(SalesHeader: Record "Sales Header"; var DocumentSendingProfile: Record "Document Sending Profile"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestSalesLineOnAfterTestSalesLineJob. + /// + /// [IntegrationEvent(false, false)] local procedure OnTestSalesLineOnAfterTestSalesLineJob(var SalesLine: record "Sales Line") begin end; + /// + /// Event raised by OnTestSalesLineOnAfterCalcShouldTestReturnQty. + /// + /// + /// Specifies the ShouldTestReturnQty parameter. [IntegrationEvent(false, false)] local procedure OnTestSalesLineOnAfterCalcShouldTestReturnQty(SalesLine: Record "Sales Line"; var ShouldTestReturnQty: Boolean) begin end; + /// + /// Event raised by OnBeforeTestGenPostingGroups. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestGenPostingGroups(var SalesLine: record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateSalesLineBeforePostOnAfterPostJobContractLine. + /// + /// + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateSalesLineBeforePostOnAfterPostJobContractLine(SalesInvoiceHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnUpdateAssosOrderOnAfterPurchOrderHeaderModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderOnAfterPurchOrderHeaderModify(var PurchOrderHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterModifyPurchLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterModifyPurchLine(var PurchOrderLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnUpdateAssocOrderOnBeforeModifyPurchLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnBeforeModifyPurchLine(var PurchOrderLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnAfterReleasePurchaseDocument. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnAfterReleasePurchaseDocument(var PurchOrderHeader: Record "Purchase Header"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeReleasePurchaseDocument. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeReleasePurchaseDocument(var PurchOrderHeader: Record "Purchase Header"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateAfterPostingOnBeforeFindSetForUpdate. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAfterPostingOnBeforeFindSetForUpdate(var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheck. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheck(var BlanketOrderSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheckSellToCustomerNo. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheckSellToCustomerNo(var BlanketOrderSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeInitOutstanding(var BlanketOrderSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnUpdateInvoicedQtyOnShipmentLineOnBeforeModifySalesShptLine. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnUpdateInvoicedQtyOnShipmentLineOnBeforeModifySalesShptLine(var SalesShptLine: Record "Sales Shipment Line"; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnAfterCalcSalesTaxGeneral. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterCalcSalesTaxGeneral(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnDivideAmountOnAfterInitAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterInitAmount(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnAfterInitLineDiscountAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterInitLineDiscountAmount(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineRemainderModify. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineRemainderModify(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency) begin end; + /// + /// Event raised by OnBeforeCalcVATBaseAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcVATBaseAmount(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostUpdateInvoiceLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateInvoiceLine(var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostUpdateReturnReceiptLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostUpdateReturnReceiptLine(var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertTrackingSpecification(SalesHeader: Record "Sales Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSendPostedDocumentRecord. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the DocumentSendingProfile parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSendPostedDocumentRecord(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var DocumentSendingProfile: Record "Document Sending Profile") begin end; + /// + /// Event raised by OnAfterPostItemChargeLine. + /// + /// + /// Specifies the SalesLineACY parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargeLine(var SalesLine: Record "Sales Line"; SalesLineACY: Record "Sales Line") begin end; + /// + /// Event raised by OnDeleteAfterPostingOnAfterDeleteLinks. + /// + /// [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnAfterDeleteLinks(var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnDeleteAfterPostingOnBeforeDeleteSalesHeader. + /// + /// [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnBeforeDeleteSalesHeader(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnDeleteAfterPostingOnBeforeDeleteLinks. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnBeforeDeleteLinks(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforeCheckAndUpdate. + /// + /// [IntegrationEvent(false, false)] local procedure OnRunOnBeforeCheckAndUpdate(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateWonOpportunitiesOnBeforeOpportunityModify. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the Opportunity parameter. [IntegrationEvent(false, false)] local procedure OnUpdateWonOpportunitiesOnBeforeOpportunityModify(var SalesHeader: Record "Sales Header"; SalesInvoiceHeader: Record "Sales Invoice Header"; var Opportunity: Record Opportunity) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCheckShip. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCheckShip(var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnBeforeUpdateReceiveAndCheckIfInvPutawayExists. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateReceiveAndCheckIfInvPutawayExists(var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnModifyTempLineOnAfterSalesLineModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnAfterSalesLineModify(var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnModifyTempLineOnBeforeTransferFields. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnBeforeTransferFields(var SalesLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnModifyTempLineOnBeforeSalesLineModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnBeforeSalesLineModify(var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesLine(SalesLine: Record "Sales Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesShipmentLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesShipmentLine(SalesShipmentLine: Record "Sales Shipment Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnReceiptLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnReceiptLine(ReturnReceiptLine: Record "Return Receipt Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateSalesLineDimSetIDFromAppliedEntry. + /// + /// + /// Specifies the ItemLedgEntry parameter. + /// Specifies the DimSetID parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateSalesLineDimSetIDFromAppliedEntry(var SalesLineToPost: Record "Sales Line"; var ItemLedgEntry: Record "Item Ledger Entry"; DimSetID: array[10] of Integer) begin end; + /// + /// Event raised by OnDeleteAfterPostingOnAfterSetupSalesHeader. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnAfterSetupSalesHeader(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnDeleteAfterPostingOnAfterSalesLineDeleteAll. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnAfterSalesLineDeleteAll(SalesHeader: Record "Sales Header"; SalesInvoiceHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; CommitIsSuppressed: Boolean; EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentConditionOnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentConditionOnBeforeUpdateBlanketOrderLine(var TempSalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostResJnlLineOnAfterInit. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostResJnlLineOnAfterInit(var ResJnlLine: Record "Res. Journal Line"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists. + /// + /// + /// Specifies the ReplacePostingDate parameter. + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the VATDateExists parameter. + /// Specifies the ReplaceVATDate parameter. + /// Specifies the VATDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists(var PostingDateExists: Boolean; var ReplacePostingDate: Boolean; var ReplaceDocumentDate: Boolean; var PostingDate: Date; var SalesHeader: Record "Sales Header"; var ModifyHeader: Boolean; var VATDateExists: Boolean; var ReplaceVATDate: Boolean; var VATDate: Date) begin end; + /// + /// Event raised by OnBeforeValidateICPartnerBusPostingGroups. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeValidateICPartnerBusPostingGroups(var TempICGenJnlLine: Record "Gen. Journal Line" temporary; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterGetCurrency. + /// + /// + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetCurrency(CurrencyCode: Code[10]; var Currency: Record Currency) begin end; + /// + /// Event raised by OnBeforePostItemLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemLine(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean; var TempSalesLineGlobal: Record "Sales Line" temporary; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnBeforePostItemChargeLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargeLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct(var TempPrepmtSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnAfterInsertReturnReceiptHeader. + /// + /// + /// Specifies the ReturnReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertReturnReceiptHeader(var SalesHeader: Record "Sales Header"; var ReturnReceiptHeader: Record "Return Receipt Header") begin @@ -13962,389 +15145,911 @@ codeunit 80 "Sales-Post" #if not CLEAN27 [Obsolete('This event is never raised.', '27.0')] + /// + /// Event raised by OnAfterGetAmountsForDeferral. + /// + /// + /// Specifies the AmtToDefer parameter. + /// Specifies the AmtToDeferACY parameter. + /// Specifies the DeferralAccount parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetAmountsForDeferral(SalesLine: Record "Sales Line"; var AmtToDefer: Decimal; var AmtToDeferACY: Decimal; var DeferralAccount: Code[20]) begin end; #endif + /// + /// Event raised by OnPostJobContractLineBeforeTestFields. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostJobContractLineBeforeTestFields(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertCrMemoHeaderOnAfterCalcShouldProcessAsReturnOrder. + /// + /// + /// Specifies the ShouldProcessAsReturnOrder parameter. [IntegrationEvent(false, false)] local procedure OnInsertCrMemoHeaderOnAfterCalcShouldProcessAsReturnOrder(SalesHeader: Record "Sales Header"; var ShouldProcessAsReturnOrder: Boolean) begin end; + /// + /// Event raised by OnUpdateQtyToBeInvoicedForShipmentOnAfterSetQtyToBeInvoiced. + /// + /// + /// Specifies the HasATOShippedNotInvoiced parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateQtyToBeInvoicedForShipmentOnAfterSetQtyToBeInvoiced(TrackingSpecificationExists: Boolean; HasATOShippedNotInvoiced: Boolean; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnBeforePostItemJnlLineItemCharges. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLineItemCharges(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeInitOutstanding(var SalesOrderLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeGetATOItemLedgEntriesNotInvoiced. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeGetATOItemLedgEntriesNotInvoiced(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckSalesDocumentOnBeforeCheckDueDate. + /// + /// + /// Specifies the ShouldCheckDueDate parameter. [IntegrationEvent(false, false)] local procedure OnCheckSalesDocumentOnBeforeCheckDueDate(var SalesHeader: Record "Sales Header"; var ShouldCheckDueDate: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineTrackingOnAfterCalcShouldInsertTrkgSpecInv. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the ShouldInsertTrkgSpecInv parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineTrackingOnAfterCalcShouldInsertTrkgSpecInv(var SalesLine: Record "Sales Line"; QtyToBeInvoiced: Decimal; var ShouldInsertTrkgSpecInv: Boolean) begin end; + /// + /// Event raised by OnUpdateSalesLineBeforePostOnBeforeGetUnitCost. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateSalesLineBeforePostOnBeforeGetUnitCost(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcItemJnlAmountsFromQtyToBeInvoiced. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcItemJnlAmountsFromQtyToBeInvoiced(var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; QtyToBeInvoiced: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForReceiveOnAfterSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForReceiveOnAfterSetFilters(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnRunOnBeforeCalcVATAmountLines. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeCalcVATAmountLines(var TempSalesLineGlobal: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestSalesLineOnBeforeTestFieldQtyToShip. + /// + /// + /// Specifies the ShouldTestQtyToShip parameter. [IntegrationEvent(false, false)] local procedure OnTestSalesLineOnBeforeTestFieldQtyToShip(SalesLine: Record "Sales Line"; var ShouldTestQtyToShip: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertShipmentLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertShipmentLine(var SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnIsEndLoopForShippedNotInvoicedOnBeforeExit. + /// + /// + /// Specifies the SalesShptLine parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnIsEndLoopForShippedNotInvoicedOnBeforeExit(SalesLine: Record "Sales Line"; SalesShptLine: Record "Sales Shipment Line"; RemQtyToBeInvoiced: Decimal; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLinePrepareJournalLineOnBeforeCalcQuantities. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLinePrepareJournalLineOnBeforeCalcQuantities(var ItemJnlLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; QtyToBeShipped: Decimal; QtyToBeShippedBase: Decimal; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean; IsATO: Boolean) begin end; + /// + /// Event raised by OnBeforeInvoiceRounding. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInvoiceRounding(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyTrackingFromSpec. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyTrackingFromSpec(var ItemJnlLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; QtyToBeShipped: Decimal; IsATO: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeValidateQtyToInvoice. + /// + /// + /// Specifies the ShouldValidateQtyToInvoice parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeValidateQtyToInvoice(var SalesHeader: Record "Sales Header"; var ShouldValidateQtyToInvoice: Boolean; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnAfterSetFilterTempSalesLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnAfterSetFilterTempSalesLine(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckTrackingSpecificationOnBeforeGetItemTrackingSettings. + /// + /// + /// Specifies the ItemTrackingSetup parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingSpecificationOnBeforeGetItemTrackingSettings(var TempItemSalesLine: Record "Sales Line" temporary; var ItemTrackingSetup: Record "Item Tracking Setup"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForReceipt. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForReceipt(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineTrackingOnBeforeInsertTempTrkgSpec. + /// + /// + /// Specifies the TempTrackingSpec parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineTrackingOnBeforeInsertTempTrkgSpec(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempTrackingSpec: Record "Tracking Specification" temporary; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInsertInvoiceHeaderOnBeforeCheckDocumentType. + /// + /// + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesSetup parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertInvoiceHeaderOnBeforeCheckDocumentType(SalesHeader: Record "Sales Header"; var SalesInvHeader: Record "Sales Invoice Header"; SalesSetup: Record "Sales & Receivables Setup"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnBeforePostBalancingEntry. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the TotalSalesLine parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnBeforePostBalancingEntry(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var TotalSalesLine: Record "Sales Line"; var TotalSalesLineLCY: Record "Sales Line"; SuppressCommit: Boolean; PreviewMode: Boolean; InvoicePostingParameters: Record "Invoice Posting Parameters"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin end; + /// + /// Event raised by OnBeforeFindNotShippedLines. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeFindNotShippedLines(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforePostSalesLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesLineACY parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforePostSalesLine(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; SrcCode: Code[10]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var IsHandled: Boolean; SalesLineACY: Record "Sales Line") begin end; + /// + /// Event raised by OnAfterUpdateInvoiceRounding. + /// + /// + /// Specifies the TotalSalesLine parameter. + /// Specifies the SalesLine parameter. + /// Specifies the Currency parameter. + /// Specifies the BiggestLineNo parameter. + /// Specifies the LastLineRetrieved parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the RoundingLineNo parameter. + /// Specifies the UseTempData parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoiceRounding(var SalesHeader: Record "Sales Header"; var TotalSalesLine: Record "Sales Line"; var SalesLine: Record "Sales Line"; var Currency: Record Currency; var BiggestLineNo: Integer; var LastLineRetrieved: Boolean; var RoundingLineInserted: Boolean; var RoundingLineNo: Integer; UseTempData: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterSetFilters(var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostItemLineOnBeforePostItemJnlLineForInvoiceDoc. + /// + /// + /// Specifies the SalesLineToShip parameter. + /// Specifies the Ship parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the TempTrackingSpecificationInv parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. + /// Specifies the QtyToInvoice parameter. + /// Specifies the TempAssembletoOrderLink parameter. [IntegrationEvent(true, false)] local procedure OnPostItemLineOnBeforePostItemJnlLineForInvoiceDoc(SalesHeader: Record "Sales Header"; var SalesLineToShip: Record "Sales Line"; Ship: Boolean; var ItemLedgShptEntryNo: Integer; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; SalesShptHeader: Record "Sales Shipment Header"; var TempHandlingSpecification: Record "Tracking Specification" temporary; var TempTrackingSpecificationInv: Record "Tracking Specification" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean; QtyToInvoice: Decimal; TempAssembletoOrderLink: Record "Posted Assemble-to-Order Link" temporary) begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForReceipt. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the QtyToInvoiceBaseInTrackingSpec parameter. + /// Specifies the ShouldPostItemTrackingForReceipt parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForReceipt(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; RemQtyToBeInvoiced: Decimal; QtyToInvoiceBaseInTrackingSpec: Decimal; var ShouldPostItemTrackingForReceipt: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForShipment. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the QtyToInvoiceBaseInTrackingSpec parameter. + /// Specifies the ShouldPostItemTrackingForShipment parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForShipment(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; RemQtyToBeInvoiced: Decimal; QtyToInvoiceBaseInTrackingSpec: Decimal; var ShouldPostItemTrackingForShipment: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeGetQuantityShipped. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeGetQuantityShipped(var TempSalesLine: Record "Sales Line"; var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeGetReturnQtyReceived. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeGetReturnQtyReceived(var TempSalesLine: Record "Sales Line"; var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldProcessReceipt. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the ShouldProcessReceipt parameter. + /// Specifies the ItemJnlRollRndg parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldProcessReceipt(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var ShouldProcessReceipt: Boolean; var ItemJnlRollRndg: Boolean) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeInitOutstanding(var SalesOrderLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnBeforeBalAccountNoWindowUpdate. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnBeforeBalAccountNoWindowUpdate(HideProgressWindow: Boolean; var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterCalcShouldCalcPrepmtAmounts. + /// + /// + /// Specifies the ShouldCalcPrepmtAmounts parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterCalcShouldCalcPrepmtAmounts(var TempSalesLine: Record "Sales Line" temporary; var ShouldCalcPrepmtAmounts: Boolean) begin end; + /// + /// Event raised by OnAfterGetGeneralPostingSetup. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetGeneralPostingSetup(var GeneralPostingSetup: Record "General Posting Setup"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnCheckItemTrackingQuantityOnDocumentTypeCaseElse. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckItemTrackingQuantityOnDocumentTypeCaseElse(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnSetCommitBehavior. + /// + /// [IntegrationEvent(false, false)] local procedure OnSetCommitBehavior(var ErrorOnCommit: Boolean) begin end; #if not CLEAN27 + /// + /// Event raised by OnSetPostingPreviewDocumentNo. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnSetPostingPreviewDocumentNo(var PreviewDocumentNo: Code[20]; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnGetPostingPreviewDocumentNos. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnGetPostingPreviewDocumentNos(var PreviewDocumentNos: List of [Code[20]]) begin end; #endif + /// + /// Event raised by OnPostInvoiceOnAfterPostLines. + /// + /// + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnAfterPostLines(var SalesHeader: Record "Sales Header"; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeAssignQtyToInvoice. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeAssignQtyToInvoice(var TempSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeItemLedgerEntryExist. + /// + /// + /// Specifies the ShipOrReceive parameter. + /// Specifies the HasItemLedgerEntry parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeItemLedgerEntryExist(var SalesLine: Record "Sales Line"; ShipOrReceive: Boolean; var HasItemLedgerEntry: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterCalcShouldInsertInvoiceHeader. + /// + /// + /// Specifies the ShouldInsertInvoiceHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterCalcShouldInsertInvoiceHeader(var SalesHeader: Record "Sales Header"; var ShouldInsertInvoiceHeader: Boolean) begin end; + /// + /// Event raised by OnInsertShptEntryRelationOnAfterItemEntryRelationInsert. + /// + /// + /// Specifies the ItemEntryRelation parameter. + /// Specifies the xSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertShptEntryRelationOnAfterItemEntryRelationInsert(SalesShipmentLine: Record "Sales Shipment Line"; var ItemEntryRelation: Record "Item Entry Relation"; xSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnBeforePostItemChargePerRetRcpt. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempItemChargeAssignmentSales parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRetRcpt(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeSetInvoiceFields. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the ShouldSetInvoiceFields parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeSetInvoiceFields(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line"; var ShouldSetInvoiceFields: Boolean) begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeError. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the InvoiceEverything parameter. [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeError(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var InvoiceEverything: Boolean) begin end; + /// + /// Event raised by OnBeforeGetSalesLineAdjCostLCY. + /// + /// + /// Specifies the QtyType parameter. + /// Specifies the AdjCostLCY parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetSalesLineAdjCostLCY(SalesLine2: Record "Sales Line"; QtyType: Option General,Invoicing,Shipping; AdjCostLCY: Decimal; var Result: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeShouldTestGetShipmentPPmtAmtToDeduct. + /// + /// + /// Specifies the CompleteFunctionality parameter. + /// Specifies the ShouldTestGetShipmentPPmtAmtToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeShouldTestGetShipmentPPmtAmtToDeduct(SalesHeader: Record "Sales Header"; CompleteFunctionality: Boolean; var ShouldTestGetShipmentPPmtAmtToDeduct: Boolean) begin end; + /// + /// Event raised by OnAfterDeleteApprovalEntries. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the ReturnReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterDeleteApprovalEntries(var SalesHeader: Record "Sales Header"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var SalesShipmentHeader: Record "Sales Shipment Header"; var ReturnReceiptHeader: Record "Return Receipt Header") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeUpdateSalesLineBeforePost. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeUpdateSalesLineBeforePost(var SalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header"; WhseShip: Boolean; WhseReceive: Boolean; RoundingLineInserted: Boolean; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnAfterSumSalesLines2. + /// + /// + /// Specifies the OldSalesLine parameter. + /// Specifies the NewSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterSumSalesLines2(var SalesHeader: Record "Sales Header"; var OldSalesLine: Record "Sales Line"; var NewSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnCheckPostWhseShptLinesOnAfterWhseShptLinesFound. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WhseShptLinesFound parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WarehouseShipmentLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckPostWhseShptLinesOnAfterWhseShptLinesFound(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line"; var WhseShptLinesFound: Boolean; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseShip: Boolean; WhseReceive: Boolean; var WarehouseShipmentLine: Record "Warehouse Shipment Line") begin end; + /// + /// Event raised by OnAfterDecrementPrepmtAmtInvLCY. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the PrepmtAmountInvLCY parameter. + /// Specifies the PrepmtVATAmountInvLCY parameter. [IntegrationEvent(false, false)] local procedure OnAfterDecrementPrepmtAmtInvLCY(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var PrepmtAmountInvLCY: Decimal; var PrepmtVATAmountInvLCY: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineGet. + /// + /// + /// Specifies the TempVATAmountLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineGet(SalesLine: Record "Sales Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeAdjustPrepmtAmountLCY. + /// + /// + /// Specifies the PrepmtSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustPrepmtAmountLCY(SalesHeader: Record "Sales Header"; var PrepmtSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostResJnlLineOnShouldExit. + /// + /// + /// Specifies the ShouldExit parameter. [IntegrationEvent(false, false)] local procedure OnPostResJnlLineOnShouldExit(var SalesLine: Record "Sales Line"; var ShouldExit: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeUpdateTempVATAmountLineRemainder. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeUpdateTempVATAmountLineRemainder(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterCalcTotalChargeAmt. + /// + /// + /// Specifies the QtyToAssign parameter. + /// Specifies the SalesLine parameter. + /// Specifies the xSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnAfterCalcTotalChargeAmt(var SalesLineToPost: Record "Sales Line"; QtyToAssign: Decimal; var SalesLine: Record "Sales Line"; xSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnBeforeCheckPostRestrictions. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPostRestrictions(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostSalesTaxToGeneralLedger. + /// + /// + /// Specifies the LineCount parameter. + /// Specifies the TempSalesTaxAmountLine parameter. + /// Specifies the Window parameter. + /// Specifies the SalesTaxCountry parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the SourceCode parameter. + /// Specifies the Currency parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the TotalSalesLine parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostSalesTaxToGeneralLedger(var SalesHeader: Record "Sales Header"; var LineCount: Integer; var TempSalesTaxAmountLine: Record "Sales Tax Amount Line" temporary; var Window: Dialog; var SalesTaxCountry: Option US,CA,,,,,,,,,,,,NoTax; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; var GenJnlLineDocType: Enum "Gen. Journal Document Type"; var SourceCode: Code[10]; var Currency: Record Currency; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var TotalSalesLineLCY: Record "Sales Line"; var TotalSalesLine: Record "Sales Line"; var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeValidateType. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeValidateType(var TempPrepmtSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeValidateDocumentDate. + /// + /// + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeValidateDocumentDate(var PostingDateExists: Boolean; var ReplaceDocumentDate: Boolean; var PostingDate: Date; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnCheckSalesDocumentOnBeforeCheckSalesDim. + /// + /// + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckSalesDocumentOnBeforeCheckSalesDim(var SalesHeader: Record "Sales Header"; var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeCreatePrepaymentTextLines. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePrepaymentTextLines(var TempPrepmtSalesLine: Record "Sales Line" temporary; var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header"; CompleteFunctionality: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckAndUpdate. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckAndUpdate(var SalesHeader: Record "Sales Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeCollectValueEntryRelation. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeCollectValueEntryRelation(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesInvoiceLine: Record "Sales Invoice Line") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeCollectValueEntryRelationForCrMemo. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeCollectValueEntryRelationForCrMemo(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesInvoiceLine: Record "Sales Invoice Line") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterCollectValueEntryRelation. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterCollectValueEntryRelation(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesInvoiceLine: Record "Sales Invoice Line") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterCreatePostedDeferralSchedule. + /// + /// + /// Specifies the SalesInvHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterCreatePostedDeferralSchedule(var SalesInvLine: Record "Sales Invoice Line"; SalesInvHeader: Record "Sales Invoice Header") begin end; + /// + /// Event raised by OnInvoiceRoundingOnAfterValidateQuantity. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnInvoiceRoundingOnAfterValidateQuantity(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInvoiceRoundingOnAfterSetLineNo. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnInvoiceRoundingOnAfterSetLineNo(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line") begin @@ -14361,16 +16066,32 @@ codeunit 80 "Sales-Post" begin end; + /// + /// Event raised by OnInsertPostedHeadersOnBeforeDeleteServItemOnSaleCreditMemo. + /// + /// + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnBeforeDeleteServItemOnSaleCreditMemo(var SalesHeader: Record "Sales Header"; var SalesShipmentHeader: Record "Sales Shipment Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterInsertInvoiceHeader. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInsertInvoiceHeader(var SalesHeader: Record "Sales Header"; var SalesInvoiceHeader: Record "Sales Invoice Header") begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterInsertCrMemoHeader. + /// + /// + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInsertCrMemoHeader(var SalesHeader: Record "Sales Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin @@ -14387,188 +16108,430 @@ codeunit 80 "Sales-Post" begin end; + /// + /// Event raised by OnProcessPostingLinesOnBeforePostDropOrderShipment. + /// + /// + /// Specifies the TotalSalesLine parameter. + /// Specifies the TotalSalesLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnProcessPostingLinesOnBeforePostDropOrderShipment(SalesHeader: Record "Sales Header"; TotalSalesLine: Record "Sales Line"; TotalSalesLineLCY: Record "Sales Line") begin end; + /// + /// Event raised by OnAfterArchiveUnpostedOrder. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the OrderArchived parameter. [IntegrationEvent(false, false)] local procedure OnAfterArchiveUnpostedOrder(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; OrderArchived: Boolean); begin end; + /// + /// Event raised by OnBeforeCheckReturnRcptLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckReturnRcptLine(var ReturnReceiptLine: Record "Return Receipt Line"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertReturnReceiptHeaderOnBeforeReturnReceiptHeaderTransferFields. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertReturnReceiptHeaderOnBeforeReturnReceiptHeaderTransferFields(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnBeforeCopyAndCheckItemCharge. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesLine parameter. + /// Specifies the InvoiceEverything parameter. + /// Specifies the AssignError parameter. + /// Specifies the QtyNeeded parameter. + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the ItemChargeAssgntSales parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCopyAndCheckItemCharge(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var SalesLine: Record "Sales Line"; var InvoiceEverything: Boolean; var AssignError: Boolean; var QtyNeeded: Decimal; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; var ItemChargeAssgntSales: Record "Item Charge Assignment (Sales)"; var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeTestPostingDate. + /// + /// + /// Specifies the ReplacePostingDate parameter. + /// Specifies the SkipTestPostingDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeTestPostingDate(var SalesHeader: Record "Sales Header"; ReplacePostingDate: Boolean; var SkipTestPostingDate: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeSalesHeaderModify. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeSalesHeaderModify(var SalesHeader: Record "Sales Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeTestLineFields. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeTestLineFields(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateQtyToBeInvoicedForReturnReceiptOnAfterSetQtyToBeInvoiced. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateQtyToBeInvoicedForReturnReceiptOnAfterSetQtyToBeInvoiced(TrackingSpecificationExists: Boolean; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterInsertShipmentHeader. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInsertShipmentHeader(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnInsertPostedHeadersDeleteServItemOnSaleCreditMemo. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersDeleteServItemOnSaleCreditMemo(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnRunWithCheckOnAfterFinalize. + /// + /// [IntegrationEvent(false, false)] local procedure OnRunWithCheckOnAfterFinalize(var SalesHeader: Record "Sales Header"); begin end; + /// + /// Event raised by OnBeforeFinalizePostATO. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeFinalizePostATO(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeDeleteATOLinks. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDeleteATOLinks(SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckATOLink. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckATOLink(SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumSalesLinesTempOnAfterVatAmountSet. + /// + /// + /// Specifies the TotalSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLinesTempOnAfterVatAmountSet(var VATAmount: Decimal; var TotalSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnFinalizePostingOnAfterDecrementPrepmtAmtInvLCY. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnAfterDecrementPrepmtAmtInvLCY(var SalesHeader: Record "Sales Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary); begin end; + /// + /// Event raised by OnAddSalesTaxLineToSalesTaxCalcOnBeforeTempSalesLineForSalesTaxInsert. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempSalesLineForSalesTax parameter. [IntegrationEvent(false, false)] local procedure OnAddSalesTaxLineToSalesTaxCalcOnBeforeTempSalesLineForSalesTaxInsert(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempSalesLineForSalesTax: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnSetTaxTypeOnAfterAddSalesTaxLineToSalesTaxCalc. + /// + /// [IntegrationEvent(false, false)] local procedure OnSetTaxTypeOnAfterAddSalesTaxLineToSalesTaxCalc(var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInsertShptEntryRelationOnBeforeDeleteTempHandlingSpecification. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertShptEntryRelationOnBeforeDeleteTempHandlingSpecification(var TempHandlingTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeModifyPurchOrderHeader. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeModifyPurchOrderHeader(var PurchaseOrderHeader: Record "Purchase Header"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnAfterPostJobContractLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostJobContractLine(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var GenJnlLineDocType: Enum "Gen. Journal Document Type"; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; var SrcCode: Code[10]) begin end; + /// + /// Event raised by OnBeforePostDistributeItemCharge. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempItemLedgerEntry parameter. + /// Specifies the NonDistrQuantity parameter. + /// Specifies the NonDistrQtyToAssign parameter. + /// Specifies the NonDistrAmountToAssign parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostDistributeItemCharge(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempItemLedgerEntry: Record "Item Ledger Entry"; NonDistrQuantity: Decimal; NonDistrQtyToAssign: Decimal; NonDistrAmountToAssign: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostDistributeItemChargeOnAfterSetFactor. + /// + /// + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostDistributeItemChargeOnAfterSetFactor(TempItemLedgerEntry: Record "Item Ledger Entry"; var Factor: Decimal) begin end; + /// + /// Event raised by OnBeforeCalcPrepmtAmtToDeduct. + /// + /// + /// Specifies the Ship parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PrepmtAmtToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcPrepmtAmtToDeduct(var SalesLine: Record "Sales Line"; Ship: Boolean; var IsHandled: Boolean; var PrepmtAmtToDeduct: Decimal) begin end; + /// + /// Event raised by OnBeforePostItemJournalLineWarehouseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJournalLineWarehouseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAfterPostItemJournalLineWarehouseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJournalLineWarehouseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAdjustPrepmtAmountLCYOnAfterGetOrderLine. + /// + /// + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnAdjustPrepmtAmountLCYOnAfterGetOrderLine(var SalesLine: Record "Sales Line"; var SalesInvoiceLine: Record "Sales Line"); begin end; + /// + /// Event raised by OnBeforeGetQtyToInvoice. + /// + /// + /// Specifies the Ship parameter. + /// Specifies the IsHandled parameter. + /// Specifies the QtyToInvoice parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetQtyToInvoice(SalesLine: Record "Sales Line"; Ship: Boolean; var IsHandled: Boolean; var QtyToInvoice: Decimal) begin end; + /// + /// Event raised by OnBeforeAdjustFinalInvWith100PctPrepmt. + /// + /// + /// Specifies the CombinedSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustFinalInvWith100PctPrepmt(var TempPrepmtDeductLCYSalesLine: Record "Sales Line" temporary; var CombinedSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateRemainingQtyToBeInvoiced. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateRemainingQtyToBeInvoiced(SalesShptLine: Record "Sales Shipment Line"; var RemQtyToInvoiceCurrLine: Decimal; var RemQtyToInvoiceCurrLineBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLineForCreditMemoOnBeforeGetSalesPrepmtAccount. + /// + /// + /// Specifies the SalesInvoiceLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLineForCreditMemoOnBeforeGetSalesPrepmtAccount(var GLAccount: Record "G/L Account"; var SalesInvoiceLine: Record "Sales Invoice Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateEmailParameters. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateEmailParameters(SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostUpdateOrderNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateOrderNo(var SalesInvoiceHeader: Record "Sales Invoice Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSetInvoiceOrderNo. + /// + /// + /// Specifies the SalesInvLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSetInvoiceOrderNo(SalesLine: Record "Sales Line"; var SalesInvLine: Record "Sales Invoice Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeArchiveRelatedJob. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeArchiveRelatedJob(SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSyncSurPlusItemTrackingOnBeforeModifyQtyToHandleInvoice. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ReservationEntry parameter. [IntegrationEvent(false, false)] local procedure OnSyncSurPlusItemTrackingOnBeforeModifyQtyToHandleInvoice(var SalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var ReservationEntry: Record "Reservation Entry") begin end; -} \ No newline at end of file + + /// + /// Event raised by OnAfterProcessPostingLines. + /// + /// + /// Specifies the TotalSalesLine parameter. + /// Specifies the CustLedgEntry parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the Window parameter. + /// Specifies the HideProgressWindow parameter. + [IntegrationEvent(false, false)] + local procedure OnAfterProcessPostingLines(var SalesHeader: Record "Sales Header"; var TotalSalesLine: Record "Sales Line"; var CustLedgEntry: Record "Cust. Ledger Entry"; InvoicePostingParameters: Record "Invoice Posting Parameters"; SuppressCommit: Boolean; EverythingInvoiced: Boolean; var Window: Dialog; HideProgressWindow: Boolean) + begin + end; + + /// + /// Raised after checking posting restrictions + /// + /// + [IntegrationEvent(false, false)] + local procedure OnAfterCheckPostRestrictions(var SalesHeader: Record "Sales Header") + begin + end; +} diff --git a/src/Layers/NA/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al b/src/Layers/NA/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al index 044f2feb077..65ce5888ba1 100644 --- a/src/Layers/NA/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al +++ b/src/Layers/NA/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al @@ -1,4 +1,4 @@ -// ------------------------------------------------------------------------------------------------ +// ------------------------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // ------------------------------------------------------------------------------------------------ @@ -19,6 +19,7 @@ using Microsoft.FixedAssets.FixedAsset; using Microsoft.Foundation.Attachment; using Microsoft.Foundation.AuditCodes; using Microsoft.Foundation.NoSeries; +using Microsoft.Foundation.PaymentTerms; using Microsoft.Intercompany.Partner; using Microsoft.Purchases.Vendor; using Microsoft.Sales.Customer; @@ -855,6 +856,13 @@ table 21 "Cust. Ledger Entry" Caption = 'Prepayment'; ToolTip = 'Specifies if the related payment is a prepayment.'; } + field(91; "Payment Terms Code"; Code[10]) + { + Caption = 'Payment Terms Code'; + Editable = false; + TableRelation = "Payment Terms"; + ToolTip = 'Specifies the payment terms that determine the due date and payment discount date for the entry.'; + } field(95; "G/L Register No."; Integer) { Caption = 'G/L Register No.'; @@ -868,6 +876,7 @@ table 21 "Cust. Ledger Entry" field(171; "Payment Reference"; Code[50]) { Caption = 'Payment Reference'; + ToolTip = 'Specifies the payment reference number used by banks to identify and track the payment.'; } /// /// Specifies the payment method used or expected for this transaction, such as bank transfer, cash, or check. @@ -1511,12 +1520,12 @@ table 21 "Cust. Ledger Entry" SetCurrentKey("Customer No.", Open, Positive, "Due Date"); SetRange("Customer No.", CustomerNo); SetRange(Open, true); + OnSetApplyToFiltersOnBeforeSetFilters(Rec); if ApplyDocNo <> '' then begin SetRange("Document Type", ApplyDocType); SetRange("Document No.", ApplyDocNo); if FindFirst() then; - SetRange("Document Type"); - SetRange("Document No."); + ClearDocumentFilters(); end else if ApplyDocType <> 0 then begin SetRange("Document Type", ApplyDocType); @@ -1530,6 +1539,22 @@ table 21 "Cust. Ledger Entry" end; end; + procedure SetAppliesToDocFilters(var GenJnlLine: Record "Gen. Journal Line") + begin + SetRange("Document Type", GenJnlLine."Applies-to Doc. Type"); + SetRange("Document No.", GenJnlLine."Applies-to Doc. No."); + + OnAfterSetAppliesToDocFilters(Rec, GenJnlLine); + end; + + procedure ClearDocumentFilters() + begin + SetRange("Document Type"); + SetRange("Document No."); + + OnAfterClearDocumentFilters(Rec); + end; + /// /// Toggles the Amount to Apply field between the remaining amount and zero for the specified document. /// @@ -1603,6 +1628,7 @@ table 21 "Cust. Ledger Entry" "Payment Method Code" := GenJnlLine."Payment Method Code"; "Payment Reference" := GenJnlLine."Payment Reference"; "Exported to Payment File" := GenJnlLine."Exported to Payment File"; + "Payment Terms Code" := GenJnlLine."Payment Terms Code"; OnAfterCopyCustLedgerEntryFromGenJnlLine(Rec, GenJnlLine); end; @@ -1726,7 +1752,6 @@ table 21 "Cust. Ledger Entry" exit(Math.Sign(Amount1) <> Math.Sign(Amount2)); end; - procedure GetDocumentVATPostingSetup(var TempVATPostingSetup: Record "VAT Posting Setup"; GenJnlLine: Record "Gen. Journal Line") begin if not (Rec."Document Type" in [Rec."Document Type"::"Credit Memo", Rec."Document Type"::Invoice]) then @@ -2028,5 +2053,20 @@ table 21 "Cust. Ledger Entry" local procedure OnValidateMaxPaymentToleranceOnBeforeFieldError(var CustLedgerEntry: Record "Cust. Ledger Entry") begin end; + + [IntegrationEvent(false, false)] + local procedure OnAfterSetAppliesToDocFilters(var Rec: Record "Cust. Ledger Entry"; var GenJnlLine: Record "Gen. Journal Line") + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnAfterClearDocumentFilters(var Rec: Record "Cust. Ledger Entry") + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnSetApplyToFiltersOnBeforeSetFilters(var Rec: Record "Cust. Ledger Entry") + begin + end; } diff --git a/src/Layers/NA/BaseApp/Utilities/CopyDocumentMgt.Codeunit.al b/src/Layers/NA/BaseApp/Utilities/CopyDocumentMgt.Codeunit.al index 929f2f01eb6..92c2eba2e2f 100644 --- a/src/Layers/NA/BaseApp/Utilities/CopyDocumentMgt.Codeunit.al +++ b/src/Layers/NA/BaseApp/Utilities/CopyDocumentMgt.Codeunit.al @@ -1591,6 +1591,7 @@ codeunit 6620 "Copy Document Mgt." RoundingLineInserted: Boolean; CopyThisLine: Boolean; InvDiscountAmount: Decimal; + PmtDiscountAmount: Decimal; IsHandled: Boolean; ShouldValidateQuantityMoveNegLines: Boolean; ShouldInitToSalesLine: Boolean; @@ -1659,6 +1660,7 @@ codeunit 6620 "Copy Document Mgt." (ToSalesHeader."Currency Factor" <> FromSalesHeader."Currency Factor") then begin InvDiscountAmount := ToSalesLine."Inv. Discount Amount"; + PmtDiscountAmount := ToSalesLine."Pmt. Discount Amount"; IsHandled := false; OnCopySalesDocLineOnBeforeValidateLineDiscountPct(ToSalesLine, IsHandled); if not IsHandled then @@ -1667,6 +1669,7 @@ codeunit 6620 "Copy Document Mgt." OnCopySalesDocLineOnBeforeValidateInvDiscountAmount(ToSalesLine, InvDiscountAmount, IsHandled); if not IsHandled then ToSalesLine.Validate("Inv. Discount Amount", InvDiscountAmount); + ToSalesLine."Pmt. Discount Amount" := PmtDiscountAmount; end; end; ToSalesLine.Validate("Currency Code", FromSalesHeader."Currency Code"); @@ -2163,6 +2166,7 @@ codeunit 6620 "Copy Document Mgt." local procedure ValidatePurchLineDiscountFields(FromPurchHeader: Record "Purchase Header"; ToPurchHeader: Record "Purchase Header"; var ToPurchLine: Record "Purchase Line") var InvDiscountAmount: Decimal; + PmtDiscountAmount: Decimal; IsHandled: Boolean; begin IsHandled := false; @@ -2176,8 +2180,10 @@ codeunit 6620 "Copy Document Mgt." (ToPurchHeader."Currency Factor" <> FromPurchHeader."Currency Factor")) then begin InvDiscountAmount := ToPurchLine."Inv. Discount Amount"; + PmtDiscountAmount := ToPurchLine."Pmt. Discount Amount"; ToPurchLine.Validate("Line Discount %"); ToPurchLine.Validate("Inv. Discount Amount", InvDiscountAmount); + ToPurchLine."Pmt. Discount Amount" := PmtDiscountAmount; end; end; @@ -7299,6 +7305,7 @@ codeunit 6620 "Copy Document Mgt." CustLedgEntry.SetRange("Document No.", FromDocNo); CustLedgEntry.SetRange("Customer No.", ToSalesHeader."Bill-to Customer No."); CustLedgEntry.SetRange(Open, true); + OnUpdateCustLedgEntryOnAfterSetFilters(CustLedgEntry, ToSalesHeader, FromDocType, FromDocNo); if CustLedgEntry.FindFirst() then begin ToSalesHeader."Bal. Account No." := ''; if FromDocType = "Sales Document Type From"::"Posted Invoice" then begin @@ -7313,7 +7320,8 @@ codeunit 6620 "Copy Document Mgt." CustLedgEntry."Accepted Payment Tolerance" := 0; CustLedgEntry."Accepted Pmt. Disc. Tolerance" := false; CODEUNIT.Run(CODEUNIT::"Cust. Entry-Edit", CustLedgEntry); - end; + end else + OnUpdateCustLedgEntryOnNoOpenEntries(CustLedgEntry, ToSalesHeader, FromDocType, FromDocNo); OnAfterUpdateCustLedgerEntry(ToSalesHeader, FromDocType, FromDocNo, CustLedgEntry); end; @@ -7334,6 +7342,7 @@ codeunit 6620 "Copy Document Mgt." VendLedgEntry.SetRange("Document No.", FromDocNo); VendLedgEntry.SetRange("Vendor No.", ToPurchHeader."Pay-to Vendor No."); VendLedgEntry.SetRange(Open, true); + OnUpdateVendLedgEntryOnAfterSetFilters(VendLedgEntry, ToPurchHeader, FromDocType, FromDocNo); if VendLedgEntry.FindFirst() then begin if FromDocType = "Purchase Document Type From"::"Posted Invoice" then begin ToPurchHeader."Applies-to Doc. Type" := ToPurchHeader."Applies-to Doc. Type"::Invoice; @@ -7347,7 +7356,8 @@ codeunit 6620 "Copy Document Mgt." VendLedgEntry."Accepted Payment Tolerance" := 0; VendLedgEntry."Accepted Pmt. Disc. Tolerance" := false; CODEUNIT.Run(CODEUNIT::"Vend. Entry-Edit", VendLedgEntry); - end; + end else + OnUpdateVendLedgEntryOnNoOpenEntries(VendLedgEntry, ToPurchHeader, FromDocType, FromDocNo); end; OnAfterUpdateVendLedgEntry(ToPurchHeader, FromDocNo, FromDocType, VendLedgEntry); @@ -8284,8 +8294,7 @@ codeunit 6620 "Copy Document Mgt." /// A boolean variable indicating if posted deferrals should be copied. /// The next line number for the target document. [IntegrationEvent(false, false)] - local procedure OnBeforeCopyPurchLine(var ToPurchHeader: Record "Purchase Header"; FromPurchHeader: Record "Purchase Header"; FromPurchLine: Record "Purchase Line"; RecalculateAmount: Boolean; var CopyThisLine: Boolean; ToPurchLine: Record "Purchase Line"; MoveNegLines: Boolean; var RoundingLineInserted: Boolean; var Result: Boolean; var IsHandled: Boolean; FromPurchDocType: Enum "Purchase Document Type From"; DocLineNo: Integer; - RecalculateLines: Boolean; var LinesNotCopied: Integer; var CopyPostedDeferral: Boolean; var NextLineNo: Integer) + local procedure OnBeforeCopyPurchLine(var ToPurchHeader: Record "Purchase Header"; FromPurchHeader: Record "Purchase Header"; FromPurchLine: Record "Purchase Line"; RecalculateAmount: Boolean; var CopyThisLine: Boolean; ToPurchLine: Record "Purchase Line"; MoveNegLines: Boolean; var RoundingLineInserted: Boolean; var Result: Boolean; var IsHandled: Boolean; FromPurchDocType: Enum "Purchase Document Type From"; DocLineNo: Integer; RecalculateLines: Boolean; var LinesNotCopied: Integer; var CopyPostedDeferral: Boolean; var NextLineNo: Integer) begin end; @@ -12593,4 +12602,24 @@ codeunit 6620 "Copy Document Mgt." local procedure OnCreateJobPlanningLineOnAfterInitFromJobPlanningLine(var NewJobPlanningLine: Record "Job Planning Line"; JobPlanningLine: Record "Job Planning Line"; SalesLine: Record "Sales Line") begin end; + + [IntegrationEvent(false, false)] + local procedure OnUpdateCustLedgEntryOnAfterSetFilters(var CustLedgerEntry: Record "Cust. Ledger Entry"; var ToSalesHeader: Record "Sales Header"; FromDocType: Enum "Gen. Journal Document Type"; FromDocNo: Code[20]) + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnUpdateVendLedgEntryOnAfterSetFilters(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var ToPurchHeader: Record "Purchase Header"; FromDocType: Enum "Gen. Journal Document Type"; FromDocNo: Code[20]) + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnUpdateCustLedgEntryOnNoOpenEntries(var CustLedgerEntry: Record "Cust. Ledger Entry"; var ToSalesHeader: Record "Sales Header"; FromDocType: Enum "Gen. Journal Document Type"; FromDocNo: Code[20]) + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnUpdateVendLedgEntryOnNoOpenEntries(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var ToPurchHeader: Record "Purchase Header"; FromDocType: Enum "Gen. Journal Document Type"; FromDocNo: Code[20]) + begin + end; } \ No newline at end of file diff --git a/src/Layers/NL/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al b/src/Layers/NL/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al index bb3e88e65e5..1a4cf184259 100644 --- a/src/Layers/NL/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al +++ b/src/Layers/NL/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al @@ -240,6 +240,8 @@ codeunit 11 "Gen. Jnl.-Check Line" exit; GenJournalLine.TestField("Document No.", ErrorInfo.Create()); + + OnAfterTestDocumentNo(GenJournalLine); end; local procedure TestAccountAndBalAccountType(var GenJnlLine: Record "Gen. Journal Line") @@ -1541,6 +1543,15 @@ codeunit 11 "Gen. Jnl.-Check Line" begin end; + /// + /// Integration event raised after validating document number field requirements for journal lines. + /// + /// Journal line record being validated for document number requirements. + [IntegrationEvent(false, false)] + local procedure OnAfterTestDocumentNo(GenJournalLine: Record "Gen. Journal Line") + begin + end; + /// /// Integration event raised before validating document number field requirements for journal lines. /// Enables custom logic to completely override standard document number validation processing. diff --git a/src/Layers/NL/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al b/src/Layers/NL/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al index 1be6126bac2..0424072a94a 100644 --- a/src/Layers/NL/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al +++ b/src/Layers/NL/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al @@ -18,6 +18,7 @@ using Microsoft.FixedAssets.FixedAsset; using Microsoft.Foundation.Attachment; using Microsoft.Foundation.AuditCodes; using Microsoft.Foundation.NoSeries; +using Microsoft.Foundation.PaymentTerms; using Microsoft.Intercompany.Partner; using Microsoft.Purchases.History; using Microsoft.Purchases.Remittance; @@ -581,6 +582,13 @@ table 25 "Vendor Ledger Entry" { Caption = 'Prepayment'; } + field(91; "Payment Terms Code"; Code[10]) + { + Caption = 'Payment Terms Code'; + Editable = false; + TableRelation = "Payment Terms"; + ToolTip = 'Specifies the payment terms that determine the due date and payment discount date for the entry.'; + } field(95; "G/L Register No."; Integer) { Caption = 'G/L Register No.'; @@ -1010,6 +1018,22 @@ table 25 "Vendor Ledger Entry" exit(''); end; + procedure SetAppliesToDocFilters(var GenJnlLine: Record "Gen. Journal Line") + begin + SetRange("Document Type", GenJnlLine."Applies-to Doc. Type"); + SetRange("Document No.", GenJnlLine."Applies-to Doc. No."); + + OnAfterSetAppliesToDocFilters(Rec, GenJnlLine); + end; + + procedure ClearDocumentFilters() + begin + SetRange("Document Type"); + SetRange("Document No."); + + OnAfterClearDocumentFilters(Rec); + end; + procedure CopyFromGenJnlLine(GenJnlLine: Record "Gen. Journal Line") begin "Vendor No." := GenJnlLine."Account No."; @@ -1051,6 +1075,7 @@ table 25 "Vendor Ledger Entry" "Creditor No." := GenJnlLine."Creditor No."; "Payment Reference" := GenJnlLine."Payment Reference"; "Payment Method Code" := GenJnlLine."Payment Method Code"; + "Payment Terms Code" := GenJnlLine."Payment Terms Code"; "Exported to Payment File" := GenJnlLine."Exported to Payment File"; "Transaction Mode Code" := GenJnlLine."Transaction Mode Code"; if (GenJnlLine."Remit-to Code" <> '') then @@ -1290,5 +1315,15 @@ table 25 "Vendor Ledger Entry" local procedure OnBeforeUpdateAmountsForApplication(var VendorLedgerEntry: Record "Vendor Ledger Entry"; ApplnDate: Date; ApplnCurrencyCode: Code[10]; RoundAmounts: Boolean; UpdateMaxPaymentTolerance: Boolean; var IsHandled: Boolean) begin end; + + [IntegrationEvent(false, false)] + local procedure OnAfterSetAppliesToDocFilters(var Rec: Record "Vendor Ledger Entry"; var GenJnlLine: Record "Gen. Journal Line") + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnAfterClearDocumentFilters(var Rec: Record "Vendor Ledger Entry") + begin + end; } diff --git a/src/Layers/NL/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al b/src/Layers/NL/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al index 7d0219757af..1c3948a5331 100644 --- a/src/Layers/NL/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al +++ b/src/Layers/NL/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al @@ -1,4 +1,4 @@ -// ------------------------------------------------------------------------------------------------ +// ------------------------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // ------------------------------------------------------------------------------------------------ @@ -19,6 +19,7 @@ using Microsoft.FixedAssets.FixedAsset; using Microsoft.Foundation.Attachment; using Microsoft.Foundation.AuditCodes; using Microsoft.Foundation.NoSeries; +using Microsoft.Foundation.PaymentTerms; using Microsoft.Intercompany.Partner; using Microsoft.Purchases.Vendor; using Microsoft.Sales.Customer; @@ -854,6 +855,13 @@ table 21 "Cust. Ledger Entry" Caption = 'Prepayment'; ToolTip = 'Specifies if the related payment is a prepayment.'; } + field(91; "Payment Terms Code"; Code[10]) + { + Caption = 'Payment Terms Code'; + Editable = false; + TableRelation = "Payment Terms"; + ToolTip = 'Specifies the payment terms that determine the due date and payment discount date for the entry.'; + } field(95; "G/L Register No."; Integer) { Caption = 'G/L Register No.'; @@ -867,6 +875,7 @@ table 21 "Cust. Ledger Entry" field(171; "Payment Reference"; Code[50]) { Caption = 'Payment Reference'; + ToolTip = 'Specifies the payment reference number used by banks to identify and track the payment.'; } /// /// Specifies the payment method used or expected for this transaction, such as bank transfer, cash, or check. @@ -1427,12 +1436,12 @@ table 21 "Cust. Ledger Entry" SetCurrentKey("Customer No.", Open, Positive, "Due Date"); SetRange("Customer No.", CustomerNo); SetRange(Open, true); + OnSetApplyToFiltersOnBeforeSetFilters(Rec); if ApplyDocNo <> '' then begin SetRange("Document Type", ApplyDocType); SetRange("Document No.", ApplyDocNo); if FindFirst() then; - SetRange("Document Type"); - SetRange("Document No."); + ClearDocumentFilters(); end else if ApplyDocType <> 0 then begin SetRange("Document Type", ApplyDocType); @@ -1446,6 +1455,22 @@ table 21 "Cust. Ledger Entry" end; end; + procedure SetAppliesToDocFilters(var GenJnlLine: Record "Gen. Journal Line") + begin + SetRange("Document Type", GenJnlLine."Applies-to Doc. Type"); + SetRange("Document No.", GenJnlLine."Applies-to Doc. No."); + + OnAfterSetAppliesToDocFilters(Rec, GenJnlLine); + end; + + procedure ClearDocumentFilters() + begin + SetRange("Document Type"); + SetRange("Document No."); + + OnAfterClearDocumentFilters(Rec); + end; + /// /// Toggles the Amount to Apply field between the remaining amount and zero for the specified document. /// @@ -1519,6 +1544,7 @@ table 21 "Cust. Ledger Entry" "Payment Method Code" := GenJnlLine."Payment Method Code"; "Payment Reference" := GenJnlLine."Payment Reference"; "Exported to Payment File" := GenJnlLine."Exported to Payment File"; + "Payment Terms Code" := GenJnlLine."Payment Terms Code"; "Transaction Mode Code" := GenJnlLine."Transaction Mode Code"; OnAfterCopyCustLedgerEntryFromGenJnlLine(Rec, GenJnlLine); @@ -1855,5 +1881,20 @@ table 21 "Cust. Ledger Entry" local procedure OnValidateMaxPaymentToleranceOnBeforeFieldError(var CustLedgerEntry: Record "Cust. Ledger Entry") begin end; + + [IntegrationEvent(false, false)] + local procedure OnAfterSetAppliesToDocFilters(var Rec: Record "Cust. Ledger Entry"; var GenJnlLine: Record "Gen. Journal Line") + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnAfterClearDocumentFilters(var Rec: Record "Cust. Ledger Entry") + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnSetApplyToFiltersOnBeforeSetFilters(var Rec: Record "Cust. Ledger Entry") + begin + end; } diff --git a/src/Layers/NL/BaseApp/Utilities/CopyDocumentMgt.Codeunit.al b/src/Layers/NL/BaseApp/Utilities/CopyDocumentMgt.Codeunit.al index 0e2eb10a44e..805e91a3bba 100644 --- a/src/Layers/NL/BaseApp/Utilities/CopyDocumentMgt.Codeunit.al +++ b/src/Layers/NL/BaseApp/Utilities/CopyDocumentMgt.Codeunit.al @@ -1572,6 +1572,7 @@ codeunit 6620 "Copy Document Mgt." RoundingLineInserted: Boolean; CopyThisLine: Boolean; InvDiscountAmount: Decimal; + PmtDiscountAmount: Decimal; IsHandled: Boolean; ShouldValidateQuantityMoveNegLines: Boolean; ShouldInitToSalesLine: Boolean; @@ -1640,6 +1641,7 @@ codeunit 6620 "Copy Document Mgt." (ToSalesHeader."Currency Factor" <> FromSalesHeader."Currency Factor") then begin InvDiscountAmount := ToSalesLine."Inv. Discount Amount"; + PmtDiscountAmount := ToSalesLine."Pmt. Discount Amount"; IsHandled := false; OnCopySalesDocLineOnBeforeValidateLineDiscountPct(ToSalesLine, IsHandled); if not IsHandled then @@ -1648,6 +1650,7 @@ codeunit 6620 "Copy Document Mgt." OnCopySalesDocLineOnBeforeValidateInvDiscountAmount(ToSalesLine, InvDiscountAmount, IsHandled); if not IsHandled then ToSalesLine.Validate("Inv. Discount Amount", InvDiscountAmount); + ToSalesLine."Pmt. Discount Amount" := PmtDiscountAmount; end; end; ToSalesLine.Validate("Currency Code", FromSalesHeader."Currency Code"); @@ -2141,6 +2144,7 @@ codeunit 6620 "Copy Document Mgt." local procedure ValidatePurchLineDiscountFields(FromPurchHeader: Record "Purchase Header"; ToPurchHeader: Record "Purchase Header"; var ToPurchLine: Record "Purchase Line") var InvDiscountAmount: Decimal; + PmtDiscountAmount: Decimal; IsHandled: Boolean; begin IsHandled := false; @@ -2154,8 +2158,10 @@ codeunit 6620 "Copy Document Mgt." (ToPurchHeader."Currency Factor" <> FromPurchHeader."Currency Factor")) then begin InvDiscountAmount := ToPurchLine."Inv. Discount Amount"; + PmtDiscountAmount := ToPurchLine."Pmt. Discount Amount"; ToPurchLine.Validate("Line Discount %"); ToPurchLine.Validate("Inv. Discount Amount", InvDiscountAmount); + ToPurchLine."Pmt. Discount Amount" := PmtDiscountAmount; end; end; @@ -7240,6 +7246,7 @@ codeunit 6620 "Copy Document Mgt." CustLedgEntry.SetRange("Document No.", FromDocNo); CustLedgEntry.SetRange("Customer No.", ToSalesHeader."Bill-to Customer No."); CustLedgEntry.SetRange(Open, true); + OnUpdateCustLedgEntryOnAfterSetFilters(CustLedgEntry, ToSalesHeader, FromDocType, FromDocNo); if CustLedgEntry.FindFirst() then begin ToSalesHeader."Bal. Account No." := ''; if FromDocType = "Sales Document Type From"::"Posted Invoice" then begin @@ -7254,7 +7261,8 @@ codeunit 6620 "Copy Document Mgt." CustLedgEntry."Accepted Payment Tolerance" := 0; CustLedgEntry."Accepted Pmt. Disc. Tolerance" := false; CODEUNIT.Run(CODEUNIT::"Cust. Entry-Edit", CustLedgEntry); - end; + end else + OnUpdateCustLedgEntryOnNoOpenEntries(CustLedgEntry, ToSalesHeader, FromDocType, FromDocNo); OnAfterUpdateCustLedgerEntry(ToSalesHeader, FromDocType, FromDocNo, CustLedgEntry); end; @@ -7275,6 +7283,7 @@ codeunit 6620 "Copy Document Mgt." VendLedgEntry.SetRange("Document No.", FromDocNo); VendLedgEntry.SetRange("Vendor No.", ToPurchHeader."Pay-to Vendor No."); VendLedgEntry.SetRange(Open, true); + OnUpdateVendLedgEntryOnAfterSetFilters(VendLedgEntry, ToPurchHeader, FromDocType, FromDocNo); if VendLedgEntry.FindFirst() then begin if FromDocType = "Purchase Document Type From"::"Posted Invoice" then begin ToPurchHeader."Applies-to Doc. Type" := ToPurchHeader."Applies-to Doc. Type"::Invoice; @@ -7288,7 +7297,8 @@ codeunit 6620 "Copy Document Mgt." VendLedgEntry."Accepted Payment Tolerance" := 0; VendLedgEntry."Accepted Pmt. Disc. Tolerance" := false; CODEUNIT.Run(CODEUNIT::"Vend. Entry-Edit", VendLedgEntry); - end; + end else + OnUpdateVendLedgEntryOnNoOpenEntries(VendLedgEntry, ToPurchHeader, FromDocType, FromDocNo); end; OnAfterUpdateVendLedgEntry(ToPurchHeader, FromDocNo, FromDocType, VendLedgEntry); @@ -8225,8 +8235,7 @@ codeunit 6620 "Copy Document Mgt." /// A boolean variable indicating if posted deferrals should be copied. /// The next line number for the target document. [IntegrationEvent(false, false)] - local procedure OnBeforeCopyPurchLine(var ToPurchHeader: Record "Purchase Header"; FromPurchHeader: Record "Purchase Header"; FromPurchLine: Record "Purchase Line"; RecalculateAmount: Boolean; var CopyThisLine: Boolean; ToPurchLine: Record "Purchase Line"; MoveNegLines: Boolean; var RoundingLineInserted: Boolean; var Result: Boolean; var IsHandled: Boolean; FromPurchDocType: Enum "Purchase Document Type From"; DocLineNo: Integer; - RecalculateLines: Boolean; var LinesNotCopied: Integer; var CopyPostedDeferral: Boolean; var NextLineNo: Integer) + local procedure OnBeforeCopyPurchLine(var ToPurchHeader: Record "Purchase Header"; FromPurchHeader: Record "Purchase Header"; FromPurchLine: Record "Purchase Line"; RecalculateAmount: Boolean; var CopyThisLine: Boolean; ToPurchLine: Record "Purchase Line"; MoveNegLines: Boolean; var RoundingLineInserted: Boolean; var Result: Boolean; var IsHandled: Boolean; FromPurchDocType: Enum "Purchase Document Type From"; DocLineNo: Integer; RecalculateLines: Boolean; var LinesNotCopied: Integer; var CopyPostedDeferral: Boolean; var NextLineNo: Integer) begin end; @@ -12534,4 +12543,24 @@ codeunit 6620 "Copy Document Mgt." local procedure OnCreateJobPlanningLineOnAfterInitFromJobPlanningLine(var NewJobPlanningLine: Record "Job Planning Line"; JobPlanningLine: Record "Job Planning Line"; SalesLine: Record "Sales Line") begin end; + + [IntegrationEvent(false, false)] + local procedure OnUpdateCustLedgEntryOnAfterSetFilters(var CustLedgerEntry: Record "Cust. Ledger Entry"; var ToSalesHeader: Record "Sales Header"; FromDocType: Enum "Gen. Journal Document Type"; FromDocNo: Code[20]) + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnUpdateVendLedgEntryOnAfterSetFilters(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var ToPurchHeader: Record "Purchase Header"; FromDocType: Enum "Gen. Journal Document Type"; FromDocNo: Code[20]) + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnUpdateCustLedgEntryOnNoOpenEntries(var CustLedgerEntry: Record "Cust. Ledger Entry"; var ToSalesHeader: Record "Sales Header"; FromDocType: Enum "Gen. Journal Document Type"; FromDocNo: Code[20]) + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnUpdateVendLedgEntryOnNoOpenEntries(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var ToPurchHeader: Record "Purchase Header"; FromDocType: Enum "Gen. Journal Document Type"; FromDocNo: Code[20]) + begin + end; } diff --git a/src/Layers/NO/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al b/src/Layers/NO/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al index 218a8b89b04..1ee1617ea35 100644 --- a/src/Layers/NO/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al +++ b/src/Layers/NO/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al @@ -240,6 +240,8 @@ codeunit 11 "Gen. Jnl.-Check Line" exit; GenJournalLine.TestField("Document No.", ErrorInfo.Create()); + + OnAfterTestDocumentNo(GenJournalLine); end; local procedure TestAccountAndBalAccountType(var GenJnlLine: Record "Gen. Journal Line") @@ -1569,6 +1571,15 @@ codeunit 11 "Gen. Jnl.-Check Line" begin end; + /// + /// Integration event raised after validating document number field requirements for journal lines. + /// + /// Journal line record being validated for document number requirements. + [IntegrationEvent(false, false)] + local procedure OnAfterTestDocumentNo(GenJournalLine: Record "Gen. Journal Line") + begin + end; + /// /// Integration event raised before validating document number field requirements for journal lines. /// Enables custom logic to completely override standard document number validation processing. diff --git a/src/Layers/NO/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al b/src/Layers/NO/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al index 6e0a8a3772f..78c00c75ee7 100644 --- a/src/Layers/NO/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al +++ b/src/Layers/NO/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al @@ -1,4 +1,4 @@ -// ------------------------------------------------------------------------------------------------ +// ------------------------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // ------------------------------------------------------------------------------------------------ @@ -799,7 +799,7 @@ codeunit 12 "Gen. Jnl.-Post Line" VATEntry."Transaction No." := NextTransactionNo; VATEntry."Sales Tax Connection No." := NextConnectionNo; VATEntry.SetVATDateFromGenJnlLine(GenJnlLine); - OnInsertVATOnAfterAssignVATEntryFields(GenJnlLine, VATEntry, CurrExchRate); + OnInsertVATOnAfterAssignVATEntryFields(GenJnlLine, VATEntry, CurrExchRate, VATPostingSetup); if GenJnlLine."VAT Difference" = 0 then VATDifferenceLCY := 0 @@ -9881,7 +9881,7 @@ codeunit 12 "Gen. Jnl.-Post Line" end; [IntegrationEvent(false, false)] - local procedure OnInsertVATOnAfterAssignVATEntryFields(GenJnlLine: Record "Gen. Journal Line"; var VATEntry: Record "VAT Entry"; CurrExchRate: Record "Currency Exchange Rate") + local procedure OnInsertVATOnAfterAssignVATEntryFields(var GenJnlLine: Record "Gen. Journal Line"; var VATEntry: Record "VAT Entry"; CurrExchRate: Record "Currency Exchange Rate"; var VATPostingSetup: Record "VAT Posting Setup") begin end; diff --git a/src/Layers/NO/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al b/src/Layers/NO/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al index c01fced8e04..dfc1652e7c5 100644 --- a/src/Layers/NO/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al +++ b/src/Layers/NO/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al @@ -17,6 +17,7 @@ using Microsoft.FixedAssets.FixedAsset; using Microsoft.Foundation.Attachment; using Microsoft.Foundation.AuditCodes; using Microsoft.Foundation.NoSeries; +using Microsoft.Foundation.PaymentTerms; using Microsoft.Intercompany.Partner; using Microsoft.Purchases.History; using Microsoft.Purchases.Remittance; @@ -580,6 +581,13 @@ table 25 "Vendor Ledger Entry" { Caption = 'Prepayment'; } + field(91; "Payment Terms Code"; Code[10]) + { + Caption = 'Payment Terms Code'; + Editable = false; + TableRelation = "Payment Terms"; + ToolTip = 'Specifies the payment terms that determine the due date and payment discount date for the entry.'; + } field(95; "G/L Register No."; Integer) { Caption = 'G/L Register No.'; @@ -996,6 +1004,22 @@ table 25 "Vendor Ledger Entry" exit(''); end; + procedure SetAppliesToDocFilters(var GenJnlLine: Record "Gen. Journal Line") + begin + SetRange("Document Type", GenJnlLine."Applies-to Doc. Type"); + SetRange("Document No.", GenJnlLine."Applies-to Doc. No."); + + OnAfterSetAppliesToDocFilters(Rec, GenJnlLine); + end; + + procedure ClearDocumentFilters() + begin + SetRange("Document Type"); + SetRange("Document No."); + + OnAfterClearDocumentFilters(Rec); + end; + procedure CopyFromGenJnlLine(GenJnlLine: Record "Gen. Journal Line") begin "Vendor No." := GenJnlLine."Account No."; @@ -1037,6 +1061,7 @@ table 25 "Vendor Ledger Entry" "Creditor No." := GenJnlLine."Creditor No."; "Payment Reference" := GenJnlLine."Payment Reference"; "Payment Method Code" := GenJnlLine."Payment Method Code"; + "Payment Terms Code" := GenJnlLine."Payment Terms Code"; "Exported to Payment File" := GenJnlLine."Exported to Payment File"; KID := GenJnlLine.KID; "Payment Type Code Abroad" := GenJnlLine."Payment Type Code Abroad"; @@ -1278,5 +1303,15 @@ table 25 "Vendor Ledger Entry" local procedure OnBeforeUpdateAmountsForApplication(var VendorLedgerEntry: Record "Vendor Ledger Entry"; ApplnDate: Date; ApplnCurrencyCode: Code[10]; RoundAmounts: Boolean; UpdateMaxPaymentTolerance: Boolean; var IsHandled: Boolean) begin end; + + [IntegrationEvent(false, false)] + local procedure OnAfterSetAppliesToDocFilters(var Rec: Record "Vendor Ledger Entry"; var GenJnlLine: Record "Gen. Journal Line") + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnAfterClearDocumentFilters(var Rec: Record "Vendor Ledger Entry") + begin + end; } diff --git a/src/Layers/NO/BaseApp/Sales/Posting/SalesPost.Codeunit.al b/src/Layers/NO/BaseApp/Sales/Posting/SalesPost.Codeunit.al index 363790f091e..b10e905ebfd 100644 --- a/src/Layers/NO/BaseApp/Sales/Posting/SalesPost.Codeunit.al +++ b/src/Layers/NO/BaseApp/Sales/Posting/SalesPost.Codeunit.al @@ -355,6 +355,8 @@ codeunit 80 "Sales-Post" ProcessPosting(SalesHeader, SalesHeader2, TempDropShptPostBuffer, CustLedgEntry, EverythingInvoiced); + Clear(GenJnlPostLine); + UpdateLastPostingNos(SalesHeader); OnRunOnBeforeFinalizePosting( @@ -543,6 +545,8 @@ codeunit 80 "Sales-Post" OnRunOnBeforeMakeInventoryAdjustment(SalesHeader, SalesInvHeader, GenJnlPostLine, ItemJnlPostLine, PreviewMode, SkipInventoryAdjustment); if not SkipInventoryAdjustment then MakeInventoryAdjustment(); + + OnAfterProcessPostingLines(SalesHeader, TotalSalesLine, CustLedgEntry, InvoicePostingParameters, SuppressCommit, EverythingInvoiced, Window, HideProgressWindow); end; /// @@ -6267,6 +6271,8 @@ codeunit 80 "Sales-Post" if SalesHeader."Bill-to Contact No." <> '' then if Contact.Get(SalesHeader."Bill-to Contact No.") then Contact.CheckIfPrivacyBlocked(true); + + OnAfterCheckPostRestrictions(SalesHeader); end; local procedure CheckCustBlockage(SalesHeader: Record "Sales Header"; CustCode: Code[20]; ExecuteDocCheck: Boolean) @@ -9432,6 +9438,7 @@ codeunit 80 "Sales-Post" /// Indicates whether the item journal line should be posted. /// Indicates whether warehouse shipment is involved. /// The warehouse receipt header. + /// Specifies the WarehouseShipmentHeader parameter. [IntegrationEvent(true, false)] local procedure OnAfterPostItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var WhseJnlPostLine: Codeunit "Whse. Jnl.-Register Line"; OriginalItemJnlLine: Record "Item Journal Line"; var ItemShptEntryNo: Integer; IsATO: Boolean; var TempHandlingSpecification: Record "Tracking Specification"; var TempATOTrackingSpecification: Record "Tracking Specification"; TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; ShouldPostItemJnlLine: Boolean; WhseShip: Boolean; WhseRcptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header") begin @@ -12591,834 +12598,1960 @@ codeunit 80 "Sales-Post" begin end; + /// + /// Event raised by OnSumSalesLines2OnAfterDivideAmount. + /// + /// + /// Specifies the SalesLineQty parameter. + /// Specifies the QtyType parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnAfterDivideAmount(var OldSalesLine: Record "Sales Line"; var SalesLineQty: Decimal; QtyType: Option General,Invoicing,Shipping) begin end; + /// + /// Event raised by OnSumSalesLines2OnAfterCalcTotalAdjCostLCY. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnAfterCalcTotalAdjCostLCY(var TotalAdjCostLCY: decimal; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnSumSalesLines2OnBeforeCalcVATAmountLines. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the InsertSalesLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnBeforeCalcVATAmountLines(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; InsertSalesLine: Boolean; var TempVATAmountLine: Record "VAT Amount Line" temporary; QtyType: Option General,Invoicing,Shipping; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumSalesLines2OnBeforeNewSalesLineInsert. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnBeforeNewSalesLineInsert(var NewSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumSalesLines2SetFilter. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the InsertSalesLine parameter. + /// Specifies the QtyType parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2SetFilter(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; InsertSalesLine: Boolean; var QtyType: Option) begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnBeforePostTempWhseJnlLine2. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnBeforePostTempWhseJnlLine2(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterTestUpdatedSalesLine. + /// + /// + /// Specifies the EverythingInvoiced parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterTestUpdatedSalesLine(var SalesLine: Record "Sales Line"; var EverythingInvoiced: Boolean; SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineBeforeInitQtyToInvoice. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineBeforeInitQtyToInvoice(var TempSalesLine: Record "Sales Line" temporary; WhseShip: Boolean; WhseReceive: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitOutstanding(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitTempSalesLineQuantities. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitTempSalesLineQuantities(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterUpdateInvoicedValues. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterUpdateInvoicedValues(var TempSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; TempSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; TempSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterInsertSalesOrderHeader. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterInsertSalesOrderHeader(var SalesOrderLine: Record "Sales Line"; TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; WhseShip: Boolean; WhseReceive: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeUpdateInvoicedValues. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeUpdateInvoicedValues(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnSetDefaultQtyBlank. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesSetup parameter. + /// Specifies the SetDefaultQtyBlank parameter. [IntegrationEvent(true, false)] local procedure OnPostUpdateOrderLineOnSetDefaultQtyBlank(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; SalesSetup: Record "Sales & Receivables Setup"; var SetDefaultQtyBlank: Boolean) begin end; + /// + /// Event raised by OnCalcInvoiceOnAfterTempSalesLineSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvoiceOnAfterTempSalesLineSetFilters(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterCalcInvDiscount. + /// + /// + /// Specifies the TempWhseShptHeader parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterCalcInvDiscount(SalesHeader: Record "Sales Header"; TempWhseShptHeader: Record "Warehouse Shipment Header" temporary; PreviewMode: Boolean; var TempSalesLineGlobal: Record "Sales Line" temporary; SuppressCommit: Boolean; WhseReceive: Boolean; WhseShip: Boolean); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterReleaseSalesDocument. + /// + /// + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterReleaseSalesDocument(SalesHeader: Record "Sales Header"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeSetPostingFlags. + /// + /// + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the HideProgressWindow parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnBeforeSetPostingFlags(var SalesHeader: Record "Sales Header"; var TempSalesLineGlobal: Record "Sales Line" temporary; var ModifyHeader: Boolean; var HideProgressWindow: Boolean); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetPostingFlags. + /// + /// + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the ModifyHeader parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterSetPostingFlags(var SalesHeader: Record "Sales Header"; var TempSalesLineGlobal: Record "Sales Line" temporary; var ModifyHeader: Boolean); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetSourceCode. + /// + /// + /// Specifies the SourceCodeSetup parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetSourceCode(var SalesHeader: Record "Sales Header"; SourceCodeSetup: Record "Source Code Setup"; var SrcCode: Code[10]); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetPoszingFromWhseRef. + /// + /// + /// Specifies the InvtPickPutaway parameter. + /// Specifies the PostingFromWhseRef parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetPoszingFromWhseRef(var SalesHeader: Record "Sales Header"; var InvtPickPutaway: Boolean; var PostingFromWhseRef: Integer); begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCalcInvDiscount. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the RefreshNeeded parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCalcInvDiscount(var SalesHeader: Record "Sales Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseReceive: Boolean; WhseShip: Boolean; var RefreshNeeded: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCheckPostRestrictions. + /// + /// + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCheckPostRestrictions(var SalesHeader: Record "Sales Header"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnCheckAssosOrderLinesOnAfterSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssosOrderLinesOnAfterSetFilters(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnCheckSalesDocumentOnAfterCalcShouldCheckItemCharge. + /// + /// + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ShouldCheckItemCharge parameter. + /// Specifies the ModifyHeader parameter. [IntegrationEvent(true, false)] local procedure OnCheckSalesDocumentOnAfterCalcShouldCheckItemCharge(var SalesHeader: Record "Sales Header"; WhseReceive: Boolean; WhseShip: Boolean; var ShouldCheckItemCharge: Boolean; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForShipOnBeforeCheck. + /// + /// + /// Specifies the TempWhseShipmentHeader parameter. + /// Specifies the TempWhseReceiptHeader parameter. + /// Specifies the Ship parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForShipOnBeforeCheck(var SalesHeader: Record "Sales Header"; var TempWhseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWhseReceiptHeader: Record "Warehouse Receipt Header" temporary; var Ship: Boolean; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForReceiveOnBeforeCheck. + /// + /// + /// Specifies the TempWhseShipmentHeader parameter. + /// Specifies the TempWhseReceiptHeader parameter. + /// Specifies the Receive parameter. [IntegrationEvent(true, false)] local procedure OnCheckTrackingAndWarehouseForReceiveOnBeforeCheck(var SalesHeader: Record "Sales Header"; var TempWhseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWhseReceiptHeader: Record "Warehouse Receipt Header" temporary; var Receive: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingSpecificationOnAfterTempItemSalesLineLoop. + /// + /// [IntegrationEvent(false, false)] local procedure OnCheckTrackingSpecificationOnAfterTempItemSalesLineLoop(var TempItemSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckCustBlockageOnAfterTempLinesSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckCustBlockageOnAfterTempLinesSetFilters(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary); begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterTempPrepmtSalesLineSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterTempPrepmtSalesLineSetFilters(var TempPrepmtSalesLine: Record "Sales Line" temporary; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterGetSalesPrepmtAccount. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterGetSalesPrepmtAccount(var GLAcc: Record "G/L Account"; var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeGetSalesPrepmtAccount. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the GenPostingSetup parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeGetSalesPrepmtAccount(var GLAcc: Record "G/L Account"; var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header"; var GenPostingSetup: Record "General Posting Setup"; CompleteFunctionality: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterTempSalesLineSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempPrepmtSalesLine parameter. + /// Specifies the NextLineNo parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterTempSalesLineSetFilters(var TempSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempPrepmtSalesLine: Record "Sales Line" temporary; var NextLineNo: Integer) begin end; + /// + /// Event raised by OnFinalizePostingOnAfterUpdateItemChargeAssgnt. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnAfterUpdateItemChargeAssgnt(var SalesHeader: Record "Sales Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the TempItemChargeAssignmentSales parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the TempSalesLine parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the SalesPost parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeInsertTrackingSpecification(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)" temporary; SalesHeader: Record "Sales Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; EverythingInvoiced: Boolean; var TempSalesLine: Record "Sales Line" temporary; var TempSalesLineGlobal: Record "Sales Line" temporary; SalesPost: Codeunit "Sales-Post") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeCreateOutboxSalesTrans. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeCreateOutboxSalesTrans(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; EverythingInvoiced: Boolean; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeDeleteApprovalEntries. + /// + /// + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeDeleteApprovalEntries(var SalesHeader: Record "Sales Header"; var EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeGenJnlPostPreviewThrowError. + /// + /// + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeGenJnlPostPreviewThrowError(SalesHeader: Record "Sales Header"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforePost. + /// + /// + /// Specifies the PurchOrderLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforePost(var ItemJournalLine: Record "Item Journal Line"; PurchOrderLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostATOOnBeforePostedATOLinkInsert. + /// + /// + /// Specifies the AssemblyHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostATOOnBeforePostedATOLinkInsert(var PostedATOLink: Record "Posted Assemble-to-Order Link"; var AssemblyHeader: Record "Assembly Header"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostATOAssocItemJnlLineOnBeforeRemainingPost. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the PostedATOLink parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the ItemLedgShptEntryNo parameter. [IntegrationEvent(false, false)] local procedure OnPostATOAssocItemJnlLineOnBeforeRemainingPost(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var PostedATOLink: Record "Posted Assemble-to-Order Link"; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal; var ItemLedgShptEntryNo: Integer) begin end; + /// + /// Event raised by OnPostDropOrderShipmentOnAfterUpdateBlanketOrderLine. + /// + /// + /// Specifies the PurchOrderLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostDropOrderShipmentOnAfterUpdateBlanketOrderLine(PurchOrderHeader: Record "Purchase Header"; PurchOrderLine: Record "Purchase Line"; TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesShptHeader: Record "Sales Shipment Header"; SalesHeader: Record "Sales Header"; PurchRcptHeader: Record "Purch. Rcpt. Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyDocumentFields. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header") begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCalcShouldPostItemJnlLineItemCharges. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the ShouldPostItemJnlLineItemCharges parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCalcShouldPostItemJnlLineItemCharges(SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var ShouldPostItemJnlLineItemCharges: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterPrepareItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the RemAmt parameter. + /// Specifies the RemDiscAmt parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterPrepareItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; WhseShip: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var QtyToBeShipped: Decimal; TrackingSpecification: Record "Tracking Specification"; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; var QtyToBeShippedBase: Decimal; var RemAmt: Decimal; var RemDiscAmt: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyItemCharge. + /// + /// + /// Specifies the TempItemChargeAssgntSales parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyItemCharge(var ItemJournalLine: Record "Item Journal Line"; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeIsJobContactLineCheck. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the ShouldPostItemJnlLine parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the QtyToBeShipped parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeIsJobContactLineCheck(var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var ShouldPostItemJnlLine: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; QtyToBeShipped: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck(var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforePostItemJnlLineWhseLine. + /// + /// + /// Specifies the TempWhseJnlLine parameter. + /// Specifies the TempWhseTrackingSpecification parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforePostItemJnlLineWhseLine(var ItemJnlLine: Record "Item Journal Line"; var TempWhseJnlLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeTransferReservToItemJnlLine. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the CheckApplFromItemEntry parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeShippedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeTransferReservToItemJnlLine(SalesLine: Record "Sales Line"; ItemJnlLine: Record "Item Journal Line"; var CheckApplFromItemEntry: Boolean; var TrackingSpecification: Record "Tracking Specification"; QtyToBeShippedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeCopyTrackingFromSpec. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeCopyTrackingFromSpec(TrackingSpecification: Record "Tracking Specification"; var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; IsATO: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine(var ItemChargeSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemJnlLinePrepareJournalLineOnBeforeCalcItemJnlAmounts. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLinePrepareJournalLineOnBeforeCalcItemJnlAmounts(var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; IsATO: Boolean) begin end; + /// + /// Event raised by OnPostItemChargeOnBeforePostItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the TempItemChargeAssgntSales parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnBeforePostItemJnlLine(var SalesLineToPost: Record "Sales Line"; var SalesLine: Record "Sales Line"; QtyToAssign: Decimal; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnAfterCopyToItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the GeneralLedgerSetup parameter. + /// Specifies the QtyToInvoice parameter. + /// Specifies the TempItemChargeAssignmentSales parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnAfterCopyToItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var SalesLine: Record "Sales Line"; GeneralLedgerSetup: Record "General Ledger Setup"; QtyToInvoice: Decimal; var TempItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)" temporary) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnAfterTempTrackingSpecificationInvSetFilters. + /// + /// + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the TempTrackingSpecificationInv parameter. + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the TotalSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnAfterTempTrackingSpecificationInvSetFilters(SalesHeader: record "Sales Header"; var ItemJnlLine2: record "Item Journal Line"; var TempTrackingSpecificationInv: Record "Tracking Specification" temporary; SalesLine: Record "Sales Line"; var IsHandled: Boolean; var TotalSalesLineLCY: Record "Sales Line"; var TotalSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnBeforeTestJobNo. + /// + /// + /// Specifies the SkipTestJobNo parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnBeforeTestJobNo(SalesLine: Record "Sales Line"; var SkipTestJobNo: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnBeforeLastRunWithCheck. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnBeforeLastRunWithCheck(NonDistrItemJnlLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnBeforeRunWithCheck. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnBeforeRunWithCheck(ItemJnlLine2: Record "Item Journal Line"; var IsHandled: Boolean; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerShptOnBeforeTestJobNo. + /// + /// + /// Specifies the SkipTestJobNo parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerShptOnBeforeTestJobNo(SalesShipmentLine: Record "Sales Shipment Line"; var SkipTestJobNo: Boolean; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerShptOnAfterCheckItemChargePerShpt. + /// + /// + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the DistributeCharge parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerShptOnAfterCheckItemChargePerShpt(SalesShipmentLine: Record "Sales Shipment Line"; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; DistributeCharge: Boolean; var IsHandled: Boolean; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerShptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the DistributeCharge parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerShptOnAfterCalcDistributeCharge(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesShptLine: Record "Sales Shipment Line"; TempItemLedgEntry: Record "Item Ledger Entry" temporary; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; var DistributeCharge: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the ReturnRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the DistributeCharge parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; ReturnRcptLine: Record "Return Receipt Line"; TempItemLedgEntry: Record "Item Ledger Entry" temporary; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; var DistributeCharge: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRetRcptOnBeforeTestFieldJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetRcptOnBeforeTestFieldJobNo(ReturnReceiptLine: Record "Return Receipt Line"; var IsHandled: Boolean; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingLineOnAfterRetrieveInvoiceSpecification. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingLineOnAfterRetrieveInvoiceSpecification(var SalesLine: Record "Sales Line"; var TempInvoicingSpecification: Record "Tracking Specification" temporary; var TrackingSpecificationExists: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnAfterSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnAfterSetFilters(var SalesShipmentLine: Record "Sales Shipment Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnAfterUpdateSalesShptLineFields. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnAfterUpdateSalesShptLineFields(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the HasATOShippedNotInvoiced parameter. + /// Specifies the ShouldAdjustQuantityRounding parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding(SalesShptLine: Record "Sales Shipment Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; HasATOShippedNotInvoiced: Boolean; var ShouldAdjustQuantityRounding: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeShipmentInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the ItemJnlRollRndg parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(true, false)] local procedure OnPostItemTrackingForShipmentOnBeforeShipmentInvoiceErr(SalesLine: Record "Sales Line"; var IsHandled: Boolean; SalesHeader: Record "Sales Header"; var ItemJnlRollRndg: Boolean; TrackingSpecificationExists: Boolean; var TempTrackingSpecification: Record "Tracking Specification" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeReturnReceiptInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the ItemJnlRollRndg parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(true, false)] local procedure OnPostItemTrackingForShipmentOnBeforeReturnReceiptInvoiceErr(SalesLine: Record "Sales Line"; var IsHandled: Boolean; SalesHeader: Record "Sales Header"; var ItemJnlRollRndg: Boolean; TrackingSpecificationExists: Boolean; var TempTrackingSpecification: Record "Tracking Specification" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnAfterSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnAfterSetFilters(var ReturnReceiptLine: Record "Return Receipt Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertCrMemoLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertCrMemoLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean; xSalesLine: Record "Sales Line"; SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertInvoiceLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the ShouldInsertInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertInvoiceLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean; xSalesLine: Record "Sales Line"; SalesInvHeader: Record "Sales Invoice Header"; var ShouldInsertInvoiceLine: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertReturnReceiptLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertReturnReceiptLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertShipmentLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesLineACY parameter. + /// Specifies the DocType parameter. + /// Specifies the DocNo parameter. + /// Specifies the ExtDocNo parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertShipmentLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean; SalesLineACY: Record "Sales Line"; DocType: Option; DocNo: Code[20]; ExtDocNo: Code[35]) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterSetEverythingInvoiced. + /// + /// + /// Specifies the EverythingInvoiced parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterSetEverythingInvoiced(SalesLine: Record "Sales Line"; var EverythingInvoiced: Boolean; var IsHandled: Boolean; SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterRoundAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterRoundAmount(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; GenJnlLineDocNo: Code[20]) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeTestJobNo(SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterPostItemTrackingLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempPostedATOLink parameter. [IntegrationEvent(true, false)] local procedure OnPostSalesLineOnAfterPostItemTrackingLine(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterTestSalesLine. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the WhseShptHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CostBaseAmount parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterTestSalesLine(var SalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header"; var WhseShptHeader: Record "Warehouse Shipment Header"; WhseShip: Boolean; PreviewMode: Boolean; var CostBaseAmount: Decimal) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforePostItemTrackingLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(true, false)] local procedure OnPostSalesLineOnBeforePostItemTrackingLine(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var ItemLedgShptEntryNo: Integer; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal; GenJnlLineDocNo: Code[20]; SrcCode: Code[10]; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeTestUnitOfMeasureCode. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeTestUnitOfMeasureCode(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterAdjustPrepmtAmountLCY. + /// + /// + /// Specifies the xSalesLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterAdjustPrepmtAmountLCY(var SalesLine: record "Sales Line"; var xSalesLine: record "Sales Line"; TempTrackingSpecification: record "Tracking Specification" temporary; SalesHeader: record "Sales Header") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterInsertReturnReceiptLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the ReturnRcptHeader parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the SalesShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterInsertReturnReceiptLine(var SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var xSalesLine: Record "Sales Line"; ReturnRcptHeader: Record "Return Receipt Header"; RoundingLineInserted: Boolean; var TempTrackingSpecification: Record "Tracking Specification" temporary; var ItemLedgShptEntryNo: Integer; SalesShipmentHeader: Record "Sales Shipment Header") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterGetSalesOrderLine. + /// + /// + /// Specifies the SalesShptLine parameter. + /// Specifies the SalesOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterGetSalesOrderLine(var TempSalesLine: Record "Sales Line" temporary; SalesShptLine: Record "Sales Shipment Line"; SalesOrderLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeCalcQuantityInvoiced. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeCalcQuantityInvoiced(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnAfterGetSalesOrderLine. + /// + /// + /// Specifies the ReturnRcptLine parameter. + /// Specifies the SalesOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnAfterGetSalesOrderLine(var TempSalesLine: Record "Sales Line" temporary; ReturnRcptLine: Record "Return Receipt Line"; SalesOrderLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeInitQtyToInvoice(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnAfterModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnAfterModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeCalcQuantityInvoiced. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeCalcQuantityInvoiced(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnProcessAssocItemJnlLineOnBeforeTempDropShptPostBufferInsert. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnProcessAssocItemJnlLineOnBeforeTempDropShptPostBufferInsert(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnProcessAssocItemJnlLineOnBeforePostAssocItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnProcessAssocItemJnlLineOnBeforePostAssocItemJnlLine(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnRoundAmountOnBeforeIncrAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineQty parameter. + /// Specifies the TotalSalesLine parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnBeforeIncrAmount(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineQty: Decimal; var TotalSalesLine: Record "Sales Line"; var TotalSalesLineLCY: Record "Sales Line"; var xSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforeCheckTotalInvoiceAmount. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeCheckTotalInvoiceAmount(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnRunOnBeforeFinalizePosting. + /// + /// + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the ReturnReceiptHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeFinalizePosting(var SalesHeader: Record "Sales Header"; var SalesShipmentHeader: Record "Sales Shipment Header"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var ReturnReceiptHeader: Record "Return Receipt Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; CommitIsSuppressed: Boolean; GenJnlLineExtDocNo: Code[35]; var EverythingInvoiced: Boolean; GenJnlLineDocNo: Code[20]; SrcCode: Code[10]; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforePostSalesLineEndLoop. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the LastLineRetrieved parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the RecSalesHeader parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the ReturnReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforePostSalesLineEndLoop(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var LastLineRetrieved: Boolean; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; RecSalesHeader: Record "Sales Header"; xSalesLine: Record "Sales Line"; var SalesShipmentHeader: Record "Sales Shipment Header"; var ReturnReceiptHeader: Record "Return Receipt Header") begin end; + /// + /// Event raised by OnGetATOItemLedgEntriesNotInvoicedOnBeforeItemLedgEntryNotInvoicedInsert. + /// + /// [IntegrationEvent(false, false)] local procedure OnGetATOItemLedgEntriesNotInvoicedOnBeforeItemLedgEntryNotInvoicedInsert(var ItemLedgEntry: Record "Item Ledger Entry") begin end; + /// + /// Event raised by OnGetPostedDocumentRecordElseCase. + /// + /// + /// Specifies the PostedSalesDocumentVariant parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnGetPostedDocumentRecordElseCase(SalesHeader: Record "Sales Header"; var PostedSalesDocumentVariant: Variant; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnGetSalesLinesOnAfterFillTempLines. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnGetSalesLinesOnAfterFillTempLines(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; - [IntegrationEvent(false, false)] - local procedure OnPostItemLineOnAfterMakeSalesLineToShip(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) + /// + /// Event raised by OnPostItemLineOnAfterMakeSalesLineToShip. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempPostedATOLink parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + [IntegrationEvent(false, false)] + local procedure OnPostItemLineOnAfterMakeSalesLineToShip(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemLineOnBeforeMakeSalesLineToShip. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempPostedATOLink parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the IsHandled parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the ReturnReceiptHeader parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the TempHandlingSpecificationInv parameter. + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnPostItemLineOnBeforeMakeSalesLineToShip(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var ItemLedgShptEntryNo: Integer; var IsHandled: Boolean; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; ReturnReceiptHeader: Record "Return Receipt Header"; var TempHandlingSpecification: Record "Tracking Specification" temporary; var TempHandlingSpecificationInv: Record "Tracking Specification" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnPostItemLineOnBeforePostItemInvoiceLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempPostedATOLink parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemLineOnBeforePostItemInvoiceLine(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterPostItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnAfterPostItemJnlLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargeLineOnAfterTempItemChargeAssgntSalesLoop. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineParam parameter. [IntegrationEvent(true, false)] local procedure OnPostItemChargeLineOnAfterTempItemChargeAssgntSalesLoop(var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineParam: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargeLineOnBeforePostItemCharge. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeLineOnBeforePostItemCharge(var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforeReturnRcptLineModify. + /// + /// + /// Specifies the ReturnRcptLine parameter. + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforeReturnRcptLineModify(SalesHeader: Record "Sales Header"; var ReturnRcptLine: Record "Return Receipt Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforeAdjustQuantityRounding. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the ShouldAdjustQuantityRounding parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforeAdjustQuantityRounding(ReturnRcptLine: Record "Return Receipt Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; var ShouldAdjustQuantityRounding: Boolean) begin end; + /// + /// Event raised by OnReleaseSalesDocumentOnBeforeSetStatus. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SavedStatus parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the SuppressCommit parameter. [IntegrationEvent(false, false)] local procedure OnReleaseSalesDocumentOnBeforeSetStatus(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; SavedStatus: Enum "Sales Document Status"; PreviewMode: Boolean; SuppressCommit: Boolean); begin end; + /// + /// Event raised by OnRoundAmountOnAfterAssignSalesLines. + /// + /// + /// Specifies the SalesLineACY parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TotalSalesLines parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnAfterAssignSalesLines(var xSalesLine: Record "Sales Line"; var SalesLineACY: Record "Sales Line"; SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var TotalSalesLines: Record "Sales Line"; var TotalSalesLineLCY: Record "Sales Line"; var SalesLine: Record "Sales Line"); begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification. + /// + /// [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification(var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSendICDocumentOnBeforeSetICStatus. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSendICDocumentOnBeforeSetICStatus(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSendPostedDocumentRecordElseCase. + /// + /// + /// Specifies the DocumentSendingProfile parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSendPostedDocumentRecordElseCase(SalesHeader: Record "Sales Header"; var DocumentSendingProfile: Record "Document Sending Profile"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestSalesLineOnAfterTestSalesLineJob. + /// + /// [IntegrationEvent(false, false)] local procedure OnTestSalesLineOnAfterTestSalesLineJob(var SalesLine: record "Sales Line") begin end; + /// + /// Event raised by OnTestSalesLineOnAfterCalcShouldTestReturnQty. + /// + /// + /// Specifies the ShouldTestReturnQty parameter. [IntegrationEvent(false, false)] local procedure OnTestSalesLineOnAfterCalcShouldTestReturnQty(SalesLine: Record "Sales Line"; var ShouldTestReturnQty: Boolean) begin end; + /// + /// Event raised by OnBeforeTestGenPostingGroups. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestGenPostingGroups(var SalesLine: record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateSalesLineBeforePostOnAfterPostJobContractLine. + /// + /// + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateSalesLineBeforePostOnAfterPostJobContractLine(SalesInvoiceHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnUpdateAssosOrderOnAfterPurchOrderHeaderModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderOnAfterPurchOrderHeaderModify(var PurchOrderHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterModifyPurchLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterModifyPurchLine(var PurchOrderLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnUpdateAssocOrderOnBeforeModifyPurchLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnBeforeModifyPurchLine(var PurchOrderLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnAfterReleasePurchaseDocument. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnAfterReleasePurchaseDocument(var PurchOrderHeader: Record "Purchase Header"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeReleasePurchaseDocument. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeReleasePurchaseDocument(var PurchOrderHeader: Record "Purchase Header"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateAfterPostingOnBeforeFindSetForUpdate. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAfterPostingOnBeforeFindSetForUpdate(var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheck. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheck(var BlanketOrderSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheckSellToCustomerNo. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheckSellToCustomerNo(var BlanketOrderSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeInitOutstanding(var BlanketOrderSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnUpdateInvoicedQtyOnShipmentLineOnBeforeModifySalesShptLine. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnUpdateInvoicedQtyOnShipmentLineOnBeforeModifySalesShptLine(var SalesShptLine: Record "Sales Shipment Line"; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnAfterInitAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterInitAmount(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnAfterInitLineDiscountAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterInitLineDiscountAmount(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineRemainderModify. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineRemainderModify(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency) begin end; + /// + /// Event raised by OnBeforeCalcVATBaseAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcVATBaseAmount(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostUpdateInvoiceLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateInvoiceLine(var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostUpdateReturnReceiptLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostUpdateReturnReceiptLine(var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertTrackingSpecification(SalesHeader: Record "Sales Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSendPostedDocumentRecord. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the DocumentSendingProfile parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSendPostedDocumentRecord(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var DocumentSendingProfile: Record "Document Sending Profile") begin end; + /// + /// Event raised by OnAfterPostItemChargeLine. + /// + /// + /// Specifies the SalesLineACY parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargeLine(var SalesLine: Record "Sales Line"; SalesLineACY: Record "Sales Line") begin end; + /// + /// Event raised by OnDeleteAfterPostingOnAfterDeleteLinks. + /// + /// [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnAfterDeleteLinks(var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnDeleteAfterPostingOnBeforeDeleteSalesHeader. + /// + /// [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnBeforeDeleteSalesHeader(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnDeleteAfterPostingOnBeforeDeleteLinks. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnBeforeDeleteLinks(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforeCheckAndUpdate. + /// + /// [IntegrationEvent(false, false)] local procedure OnRunOnBeforeCheckAndUpdate(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateWonOpportunitiesOnBeforeOpportunityModify. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the Opportunity parameter. [IntegrationEvent(false, false)] local procedure OnUpdateWonOpportunitiesOnBeforeOpportunityModify(var SalesHeader: Record "Sales Header"; SalesInvoiceHeader: Record "Sales Invoice Header"; var Opportunity: Record Opportunity) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCheckShip. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCheckShip(var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnBeforeUpdateReceiveAndCheckIfInvPutawayExists. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateReceiveAndCheckIfInvPutawayExists(var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnModifyTempLineOnAfterSalesLineModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnAfterSalesLineModify(var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnModifyTempLineOnBeforeTransferFields. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnBeforeTransferFields(var SalesLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnModifyTempLineOnBeforeSalesLineModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnBeforeSalesLineModify(var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesLine(SalesLine: Record "Sales Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesShipmentLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesShipmentLine(SalesShipmentLine: Record "Sales Shipment Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnReceiptLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnReceiptLine(ReturnReceiptLine: Record "Return Receipt Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateSalesLineDimSetIDFromAppliedEntry. + /// + /// + /// Specifies the ItemLedgEntry parameter. + /// Specifies the DimSetID parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateSalesLineDimSetIDFromAppliedEntry(var SalesLineToPost: Record "Sales Line"; var ItemLedgEntry: Record "Item Ledger Entry"; DimSetID: array[10] of Integer) begin end; + /// + /// Event raised by OnDeleteAfterPostingOnAfterSetupSalesHeader. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnAfterSetupSalesHeader(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnDeleteAfterPostingOnAfterSalesLineDeleteAll. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnAfterSalesLineDeleteAll(SalesHeader: Record "Sales Header"; SalesInvoiceHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; CommitIsSuppressed: Boolean; EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentConditionOnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentConditionOnBeforeUpdateBlanketOrderLine(var TempSalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostResJnlLineOnAfterInit. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostResJnlLineOnAfterInit(var ResJnlLine: Record "Res. Journal Line"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists. + /// + /// + /// Specifies the ReplacePostingDate parameter. + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the VATDateExists parameter. + /// Specifies the ReplaceVATDate parameter. + /// Specifies the VATDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists(var PostingDateExists: Boolean; var ReplacePostingDate: Boolean; var ReplaceDocumentDate: Boolean; var PostingDate: Date; var SalesHeader: Record "Sales Header"; var ModifyHeader: Boolean; var VATDateExists: Boolean; var ReplaceVATDate: Boolean; var VATDate: Date) begin end; + /// + /// Event raised by OnBeforeValidateICPartnerBusPostingGroups. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeValidateICPartnerBusPostingGroups(var TempICGenJnlLine: Record "Gen. Journal Line" temporary; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterGetCurrency. + /// + /// + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetCurrency(CurrencyCode: Code[10]; var Currency: Record Currency) begin end; + /// + /// Event raised by OnBeforePostItemLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemLine(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean; var TempSalesLineGlobal: Record "Sales Line" temporary; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnBeforePostItemChargeLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargeLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct(var TempPrepmtSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnAfterInsertReturnReceiptHeader. + /// + /// + /// Specifies the ReturnReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertReturnReceiptHeader(var SalesHeader: Record "Sales Header"; var ReturnReceiptHeader: Record "Return Receipt Header") begin @@ -13426,384 +14559,888 @@ codeunit 80 "Sales-Post" #if not CLEAN27 [Obsolete('This event is never raised.', '27.0')] + /// + /// Event raised by OnAfterGetAmountsForDeferral. + /// + /// + /// Specifies the AmtToDefer parameter. + /// Specifies the AmtToDeferACY parameter. + /// Specifies the DeferralAccount parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetAmountsForDeferral(SalesLine: Record "Sales Line"; var AmtToDefer: Decimal; var AmtToDeferACY: Decimal; var DeferralAccount: Code[20]) begin end; #endif + /// + /// Event raised by OnPostJobContractLineBeforeTestFields. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostJobContractLineBeforeTestFields(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertCrMemoHeaderOnAfterCalcShouldProcessAsReturnOrder. + /// + /// + /// Specifies the ShouldProcessAsReturnOrder parameter. [IntegrationEvent(false, false)] local procedure OnInsertCrMemoHeaderOnAfterCalcShouldProcessAsReturnOrder(SalesHeader: Record "Sales Header"; var ShouldProcessAsReturnOrder: Boolean) begin end; + /// + /// Event raised by OnUpdateQtyToBeInvoicedForShipmentOnAfterSetQtyToBeInvoiced. + /// + /// + /// Specifies the HasATOShippedNotInvoiced parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateQtyToBeInvoicedForShipmentOnAfterSetQtyToBeInvoiced(TrackingSpecificationExists: Boolean; HasATOShippedNotInvoiced: Boolean; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnBeforePostItemJnlLineItemCharges. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLineItemCharges(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeInitOutstanding(var SalesOrderLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeGetATOItemLedgEntriesNotInvoiced. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeGetATOItemLedgEntriesNotInvoiced(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckSalesDocumentOnBeforeCheckDueDate. + /// + /// + /// Specifies the ShouldCheckDueDate parameter. [IntegrationEvent(false, false)] local procedure OnCheckSalesDocumentOnBeforeCheckDueDate(var SalesHeader: Record "Sales Header"; var ShouldCheckDueDate: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineTrackingOnAfterCalcShouldInsertTrkgSpecInv. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the ShouldInsertTrkgSpecInv parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineTrackingOnAfterCalcShouldInsertTrkgSpecInv(var SalesLine: Record "Sales Line"; QtyToBeInvoiced: Decimal; var ShouldInsertTrkgSpecInv: Boolean) begin end; + /// + /// Event raised by OnUpdateSalesLineBeforePostOnBeforeGetUnitCost. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateSalesLineBeforePostOnBeforeGetUnitCost(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcItemJnlAmountsFromQtyToBeInvoiced. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcItemJnlAmountsFromQtyToBeInvoiced(var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; QtyToBeInvoiced: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForReceiveOnAfterSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForReceiveOnAfterSetFilters(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnRunOnBeforeCalcVATAmountLines. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeCalcVATAmountLines(var TempSalesLineGlobal: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestSalesLineOnBeforeTestFieldQtyToShip. + /// + /// + /// Specifies the ShouldTestQtyToShip parameter. [IntegrationEvent(false, false)] local procedure OnTestSalesLineOnBeforeTestFieldQtyToShip(SalesLine: Record "Sales Line"; var ShouldTestQtyToShip: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertShipmentLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertShipmentLine(var SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnIsEndLoopForShippedNotInvoicedOnBeforeExit. + /// + /// + /// Specifies the SalesShptLine parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnIsEndLoopForShippedNotInvoicedOnBeforeExit(SalesLine: Record "Sales Line"; SalesShptLine: Record "Sales Shipment Line"; RemQtyToBeInvoiced: Decimal; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLinePrepareJournalLineOnBeforeCalcQuantities. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLinePrepareJournalLineOnBeforeCalcQuantities(var ItemJnlLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; QtyToBeShipped: Decimal; QtyToBeShippedBase: Decimal; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean; IsATO: Boolean) begin end; + /// + /// Event raised by OnBeforeInvoiceRounding. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInvoiceRounding(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyTrackingFromSpec. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyTrackingFromSpec(var ItemJnlLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; QtyToBeShipped: Decimal; IsATO: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeValidateQtyToInvoice. + /// + /// + /// Specifies the ShouldValidateQtyToInvoice parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeValidateQtyToInvoice(var SalesHeader: Record "Sales Header"; var ShouldValidateQtyToInvoice: Boolean; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnAfterSetFilterTempSalesLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnAfterSetFilterTempSalesLine(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckTrackingSpecificationOnBeforeGetItemTrackingSettings. + /// + /// + /// Specifies the ItemTrackingSetup parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingSpecificationOnBeforeGetItemTrackingSettings(var TempItemSalesLine: Record "Sales Line" temporary; var ItemTrackingSetup: Record "Item Tracking Setup"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForReceipt. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForReceipt(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineTrackingOnBeforeInsertTempTrkgSpec. + /// + /// + /// Specifies the TempTrackingSpec parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineTrackingOnBeforeInsertTempTrkgSpec(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempTrackingSpec: Record "Tracking Specification" temporary; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInsertInvoiceHeaderOnBeforeCheckDocumentType. + /// + /// + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesSetup parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertInvoiceHeaderOnBeforeCheckDocumentType(SalesHeader: Record "Sales Header"; var SalesInvHeader: Record "Sales Invoice Header"; SalesSetup: Record "Sales & Receivables Setup"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnBeforePostBalancingEntry. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the TotalSalesLine parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnBeforePostBalancingEntry(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var TotalSalesLine: Record "Sales Line"; var TotalSalesLineLCY: Record "Sales Line"; SuppressCommit: Boolean; PreviewMode: Boolean; InvoicePostingParameters: Record "Invoice Posting Parameters"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin end; + /// + /// Event raised by OnBeforeFindNotShippedLines. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeFindNotShippedLines(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforePostSalesLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesLineACY parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforePostSalesLine(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; SrcCode: Code[10]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var IsHandled: Boolean; SalesLineACY: Record "Sales Line") begin end; + /// + /// Event raised by OnAfterUpdateInvoiceRounding. + /// + /// + /// Specifies the TotalSalesLine parameter. + /// Specifies the SalesLine parameter. + /// Specifies the Currency parameter. + /// Specifies the BiggestLineNo parameter. + /// Specifies the LastLineRetrieved parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the RoundingLineNo parameter. + /// Specifies the UseTempData parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoiceRounding(var SalesHeader: Record "Sales Header"; var TotalSalesLine: Record "Sales Line"; var SalesLine: Record "Sales Line"; var Currency: Record Currency; var BiggestLineNo: Integer; var LastLineRetrieved: Boolean; var RoundingLineInserted: Boolean; var RoundingLineNo: Integer; UseTempData: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterSetFilters(var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostItemLineOnBeforePostItemJnlLineForInvoiceDoc. + /// + /// + /// Specifies the SalesLineToShip parameter. + /// Specifies the Ship parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the TempTrackingSpecificationInv parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. + /// Specifies the QtyToInvoice parameter. + /// Specifies the TempAssembletoOrderLink parameter. [IntegrationEvent(true, false)] local procedure OnPostItemLineOnBeforePostItemJnlLineForInvoiceDoc(SalesHeader: Record "Sales Header"; var SalesLineToShip: Record "Sales Line"; Ship: Boolean; var ItemLedgShptEntryNo: Integer; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; SalesShptHeader: Record "Sales Shipment Header"; var TempHandlingSpecification: Record "Tracking Specification" temporary; var TempTrackingSpecificationInv: Record "Tracking Specification" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean; QtyToInvoice: Decimal; TempAssembletoOrderLink: Record "Posted Assemble-to-Order Link" temporary) begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForReceipt. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the QtyToInvoiceBaseInTrackingSpec parameter. + /// Specifies the ShouldPostItemTrackingForReceipt parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForReceipt(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; RemQtyToBeInvoiced: Decimal; QtyToInvoiceBaseInTrackingSpec: Decimal; var ShouldPostItemTrackingForReceipt: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForShipment. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the QtyToInvoiceBaseInTrackingSpec parameter. + /// Specifies the ShouldPostItemTrackingForShipment parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForShipment(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; RemQtyToBeInvoiced: Decimal; QtyToInvoiceBaseInTrackingSpec: Decimal; var ShouldPostItemTrackingForShipment: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeGetQuantityShipped. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeGetQuantityShipped(var TempSalesLine: Record "Sales Line"; var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeGetReturnQtyReceived. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeGetReturnQtyReceived(var TempSalesLine: Record "Sales Line"; var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldProcessReceipt. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the ShouldProcessReceipt parameter. + /// Specifies the ItemJnlRollRndg parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldProcessReceipt(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var ShouldProcessReceipt: Boolean; var ItemJnlRollRndg: Boolean) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeInitOutstanding(var SalesOrderLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnBeforeBalAccountNoWindowUpdate. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnBeforeBalAccountNoWindowUpdate(HideProgressWindow: Boolean; var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterCalcShouldCalcPrepmtAmounts. + /// + /// + /// Specifies the ShouldCalcPrepmtAmounts parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterCalcShouldCalcPrepmtAmounts(var TempSalesLine: Record "Sales Line" temporary; var ShouldCalcPrepmtAmounts: Boolean) begin end; + /// + /// Event raised by OnAfterGetGeneralPostingSetup. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetGeneralPostingSetup(var GeneralPostingSetup: Record "General Posting Setup"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnCheckItemTrackingQuantityOnDocumentTypeCaseElse. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckItemTrackingQuantityOnDocumentTypeCaseElse(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnSetCommitBehavior. + /// + /// [IntegrationEvent(false, false)] local procedure OnSetCommitBehavior(var ErrorOnCommit: Boolean) begin end; #if not CLEAN27 + /// + /// Event raised by OnSetPostingPreviewDocumentNo. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnSetPostingPreviewDocumentNo(var PreviewDocumentNo: Code[20]; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnGetPostingPreviewDocumentNos. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnGetPostingPreviewDocumentNos(var PreviewDocumentNos: List of [Code[20]]) begin end; #endif + /// + /// Event raised by OnPostInvoiceOnAfterPostLines. + /// + /// + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnAfterPostLines(var SalesHeader: Record "Sales Header"; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeAssignQtyToInvoice. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeAssignQtyToInvoice(var TempSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeItemLedgerEntryExist. + /// + /// + /// Specifies the ShipOrReceive parameter. + /// Specifies the HasItemLedgerEntry parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeItemLedgerEntryExist(var SalesLine: Record "Sales Line"; ShipOrReceive: Boolean; var HasItemLedgerEntry: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterCalcShouldInsertInvoiceHeader. + /// + /// + /// Specifies the ShouldInsertInvoiceHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterCalcShouldInsertInvoiceHeader(var SalesHeader: Record "Sales Header"; var ShouldInsertInvoiceHeader: Boolean) begin end; + /// + /// Event raised by OnInsertShptEntryRelationOnAfterItemEntryRelationInsert. + /// + /// + /// Specifies the ItemEntryRelation parameter. + /// Specifies the xSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertShptEntryRelationOnAfterItemEntryRelationInsert(SalesShipmentLine: Record "Sales Shipment Line"; var ItemEntryRelation: Record "Item Entry Relation"; xSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnBeforePostItemChargePerRetRcpt. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempItemChargeAssignmentSales parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRetRcpt(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeSetInvoiceFields. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the ShouldSetInvoiceFields parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeSetInvoiceFields(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line"; var ShouldSetInvoiceFields: Boolean) begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeError. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the InvoiceEverything parameter. [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeError(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var InvoiceEverything: Boolean) begin end; + /// + /// Event raised by OnBeforeGetSalesLineAdjCostLCY. + /// + /// + /// Specifies the QtyType parameter. + /// Specifies the AdjCostLCY parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetSalesLineAdjCostLCY(SalesLine2: Record "Sales Line"; QtyType: Option General,Invoicing,Shipping; AdjCostLCY: Decimal; var Result: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeShouldTestGetShipmentPPmtAmtToDeduct. + /// + /// + /// Specifies the CompleteFunctionality parameter. + /// Specifies the ShouldTestGetShipmentPPmtAmtToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeShouldTestGetShipmentPPmtAmtToDeduct(SalesHeader: Record "Sales Header"; CompleteFunctionality: Boolean; var ShouldTestGetShipmentPPmtAmtToDeduct: Boolean) begin end; + /// + /// Event raised by OnAfterDeleteApprovalEntries. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the ReturnReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterDeleteApprovalEntries(var SalesHeader: Record "Sales Header"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var SalesShipmentHeader: Record "Sales Shipment Header"; var ReturnReceiptHeader: Record "Return Receipt Header") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeUpdateSalesLineBeforePost. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeUpdateSalesLineBeforePost(var SalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header"; WhseShip: Boolean; WhseReceive: Boolean; RoundingLineInserted: Boolean; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnAfterSumSalesLines2. + /// + /// + /// Specifies the OldSalesLine parameter. + /// Specifies the NewSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterSumSalesLines2(var SalesHeader: Record "Sales Header"; var OldSalesLine: Record "Sales Line"; var NewSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnCheckPostWhseShptLinesOnAfterWhseShptLinesFound. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WhseShptLinesFound parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WarehouseShipmentLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckPostWhseShptLinesOnAfterWhseShptLinesFound(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line"; var WhseShptLinesFound: Boolean; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseShip: Boolean; WhseReceive: Boolean; var WarehouseShipmentLine: Record "Warehouse Shipment Line") begin end; + /// + /// Event raised by OnAfterDecrementPrepmtAmtInvLCY. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the PrepmtAmountInvLCY parameter. + /// Specifies the PrepmtVATAmountInvLCY parameter. [IntegrationEvent(false, false)] local procedure OnAfterDecrementPrepmtAmtInvLCY(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var PrepmtAmountInvLCY: Decimal; var PrepmtVATAmountInvLCY: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineGet. + /// + /// + /// Specifies the TempVATAmountLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineGet(SalesLine: Record "Sales Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeAdjustPrepmtAmountLCY. + /// + /// + /// Specifies the PrepmtSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustPrepmtAmountLCY(SalesHeader: Record "Sales Header"; var PrepmtSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostResJnlLineOnShouldExit. + /// + /// + /// Specifies the ShouldExit parameter. [IntegrationEvent(false, false)] local procedure OnPostResJnlLineOnShouldExit(var SalesLine: Record "Sales Line"; var ShouldExit: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeUpdateTempVATAmountLineRemainder. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeUpdateTempVATAmountLineRemainder(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterCalcTotalChargeAmt. + /// + /// + /// Specifies the QtyToAssign parameter. + /// Specifies the SalesLine parameter. + /// Specifies the xSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnAfterCalcTotalChargeAmt(var SalesLineToPost: Record "Sales Line"; QtyToAssign: Decimal; var SalesLine: Record "Sales Line"; xSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnBeforeCheckPostRestrictions. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPostRestrictions(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeValidateType. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeValidateType(var TempPrepmtSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeValidateDocumentDate. + /// + /// + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeValidateDocumentDate(var PostingDateExists: Boolean; var ReplaceDocumentDate: Boolean; var PostingDate: Date; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnCheckSalesDocumentOnBeforeCheckSalesDim. + /// + /// + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckSalesDocumentOnBeforeCheckSalesDim(var SalesHeader: Record "Sales Header"; var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeCreatePrepaymentTextLines. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePrepaymentTextLines(var TempPrepmtSalesLine: Record "Sales Line" temporary; var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header"; CompleteFunctionality: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckAndUpdate. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckAndUpdate(var SalesHeader: Record "Sales Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeCollectValueEntryRelation. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeCollectValueEntryRelation(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesInvoiceLine: Record "Sales Invoice Line") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeCollectValueEntryRelationForCrMemo. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeCollectValueEntryRelationForCrMemo(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesInvoiceLine: Record "Sales Invoice Line") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterCollectValueEntryRelation. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterCollectValueEntryRelation(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesInvoiceLine: Record "Sales Invoice Line") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterCreatePostedDeferralSchedule. + /// + /// + /// Specifies the SalesInvHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterCreatePostedDeferralSchedule(var SalesInvLine: Record "Sales Invoice Line"; SalesInvHeader: Record "Sales Invoice Header") begin end; + /// + /// Event raised by OnInvoiceRoundingOnAfterValidateQuantity. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnInvoiceRoundingOnAfterValidateQuantity(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInvoiceRoundingOnAfterSetLineNo. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnInvoiceRoundingOnAfterSetLineNo(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line") begin @@ -13820,16 +15457,32 @@ codeunit 80 "Sales-Post" begin end; + /// + /// Event raised by OnInsertPostedHeadersOnBeforeDeleteServItemOnSaleCreditMemo. + /// + /// + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnBeforeDeleteServItemOnSaleCreditMemo(var SalesHeader: Record "Sales Header"; var SalesShipmentHeader: Record "Sales Shipment Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterInsertInvoiceHeader. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInsertInvoiceHeader(var SalesHeader: Record "Sales Header"; var SalesInvoiceHeader: Record "Sales Invoice Header") begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterInsertCrMemoHeader. + /// + /// + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInsertCrMemoHeader(var SalesHeader: Record "Sales Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin @@ -13846,173 +15499,400 @@ codeunit 80 "Sales-Post" begin end; + /// + /// Event raised by OnProcessPostingLinesOnBeforePostDropOrderShipment. + /// + /// + /// Specifies the TotalSalesLine parameter. + /// Specifies the TotalSalesLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnProcessPostingLinesOnBeforePostDropOrderShipment(SalesHeader: Record "Sales Header"; TotalSalesLine: Record "Sales Line"; TotalSalesLineLCY: Record "Sales Line") begin end; + /// + /// Event raised by OnAfterArchiveUnpostedOrder. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the OrderArchived parameter. [IntegrationEvent(false, false)] local procedure OnAfterArchiveUnpostedOrder(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; OrderArchived: Boolean); begin end; + /// + /// Event raised by OnBeforeCheckReturnRcptLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckReturnRcptLine(var ReturnReceiptLine: Record "Return Receipt Line"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertReturnReceiptHeaderOnBeforeReturnReceiptHeaderTransferFields. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertReturnReceiptHeaderOnBeforeReturnReceiptHeaderTransferFields(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnBeforeCopyAndCheckItemCharge. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesLine parameter. + /// Specifies the InvoiceEverything parameter. + /// Specifies the AssignError parameter. + /// Specifies the QtyNeeded parameter. + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the ItemChargeAssgntSales parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCopyAndCheckItemCharge(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var SalesLine: Record "Sales Line"; var InvoiceEverything: Boolean; var AssignError: Boolean; var QtyNeeded: Decimal; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; var ItemChargeAssgntSales: Record "Item Charge Assignment (Sales)"; var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeTestPostingDate. + /// + /// + /// Specifies the ReplacePostingDate parameter. + /// Specifies the SkipTestPostingDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeTestPostingDate(var SalesHeader: Record "Sales Header"; ReplacePostingDate: Boolean; var SkipTestPostingDate: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeSalesHeaderModify. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeSalesHeaderModify(var SalesHeader: Record "Sales Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeTestLineFields. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeTestLineFields(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateQtyToBeInvoicedForReturnReceiptOnAfterSetQtyToBeInvoiced. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateQtyToBeInvoicedForReturnReceiptOnAfterSetQtyToBeInvoiced(TrackingSpecificationExists: Boolean; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterInsertShipmentHeader. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInsertShipmentHeader(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnInsertPostedHeadersDeleteServItemOnSaleCreditMemo. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersDeleteServItemOnSaleCreditMemo(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnRunWithCheckOnAfterFinalize. + /// + /// [IntegrationEvent(false, false)] local procedure OnRunWithCheckOnAfterFinalize(var SalesHeader: Record "Sales Header"); begin end; + /// + /// Event raised by OnBeforeFinalizePostATO. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeFinalizePostATO(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeDeleteATOLinks. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDeleteATOLinks(SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckATOLink. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckATOLink(SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumSalesLinesTempOnAfterVatAmountSet. + /// + /// + /// Specifies the TotalSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLinesTempOnAfterVatAmountSet(var VATAmount: Decimal; var TotalSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInsertShptEntryRelationOnBeforeDeleteTempHandlingSpecification. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertShptEntryRelationOnBeforeDeleteTempHandlingSpecification(var TempHandlingTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeModifyPurchOrderHeader. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeModifyPurchOrderHeader(var PurchaseOrderHeader: Record "Purchase Header"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnAfterPostJobContractLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostJobContractLine(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var GenJnlLineDocType: Enum "Gen. Journal Document Type"; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; var SrcCode: Code[10]) begin end; + /// + /// Event raised by OnBeforePostDistributeItemCharge. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempItemLedgerEntry parameter. + /// Specifies the NonDistrQuantity parameter. + /// Specifies the NonDistrQtyToAssign parameter. + /// Specifies the NonDistrAmountToAssign parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostDistributeItemCharge(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempItemLedgerEntry: Record "Item Ledger Entry"; NonDistrQuantity: Decimal; NonDistrQtyToAssign: Decimal; NonDistrAmountToAssign: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostDistributeItemChargeOnAfterSetFactor. + /// + /// + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostDistributeItemChargeOnAfterSetFactor(TempItemLedgerEntry: Record "Item Ledger Entry"; var Factor: Decimal) begin end; + /// + /// Event raised by OnBeforeCalcPrepmtAmtToDeduct. + /// + /// + /// Specifies the Ship parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PrepmtAmtToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcPrepmtAmtToDeduct(var SalesLine: Record "Sales Line"; Ship: Boolean; var IsHandled: Boolean; var PrepmtAmtToDeduct: Decimal) begin end; + /// + /// Event raised by OnBeforePostItemJournalLineWarehouseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJournalLineWarehouseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAfterPostItemJournalLineWarehouseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJournalLineWarehouseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAdjustPrepmtAmountLCYOnAfterGetOrderLine. + /// + /// + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnAdjustPrepmtAmountLCYOnAfterGetOrderLine(var SalesLine: Record "Sales Line"; var SalesInvoiceLine: Record "Sales Line"); begin end; + /// + /// Event raised by OnBeforeGetQtyToInvoice. + /// + /// + /// Specifies the Ship parameter. + /// Specifies the IsHandled parameter. + /// Specifies the QtyToInvoice parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetQtyToInvoice(SalesLine: Record "Sales Line"; Ship: Boolean; var IsHandled: Boolean; var QtyToInvoice: Decimal) begin end; + /// + /// Event raised by OnBeforeAdjustFinalInvWith100PctPrepmt. + /// + /// + /// Specifies the CombinedSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustFinalInvWith100PctPrepmt(var TempPrepmtDeductLCYSalesLine: Record "Sales Line" temporary; var CombinedSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateRemainingQtyToBeInvoiced. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateRemainingQtyToBeInvoiced(SalesShptLine: Record "Sales Shipment Line"; var RemQtyToInvoiceCurrLine: Decimal; var RemQtyToInvoiceCurrLineBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLineForCreditMemoOnBeforeGetSalesPrepmtAccount. + /// + /// + /// Specifies the SalesInvoiceLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLineForCreditMemoOnBeforeGetSalesPrepmtAccount(var GLAccount: Record "G/L Account"; var SalesInvoiceLine: Record "Sales Invoice Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateEmailParameters. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateEmailParameters(SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostUpdateOrderNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateOrderNo(var SalesInvoiceHeader: Record "Sales Invoice Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSetInvoiceOrderNo. + /// + /// + /// Specifies the SalesInvLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSetInvoiceOrderNo(SalesLine: Record "Sales Line"; var SalesInvLine: Record "Sales Invoice Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeArchiveRelatedJob. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeArchiveRelatedJob(SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSyncSurPlusItemTrackingOnBeforeModifyQtyToHandleInvoice. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ReservationEntry parameter. [IntegrationEvent(false, false)] local procedure OnSyncSurPlusItemTrackingOnBeforeModifyQtyToHandleInvoice(var SalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var ReservationEntry: Record "Reservation Entry") begin end; -} \ No newline at end of file + + /// + /// Event raised by OnAfterProcessPostingLines. + /// + /// + /// Specifies the TotalSalesLine parameter. + /// Specifies the CustLedgEntry parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the Window parameter. + /// Specifies the HideProgressWindow parameter. + [IntegrationEvent(false, false)] + local procedure OnAfterProcessPostingLines(var SalesHeader: Record "Sales Header"; var TotalSalesLine: Record "Sales Line"; var CustLedgEntry: Record "Cust. Ledger Entry"; InvoicePostingParameters: Record "Invoice Posting Parameters"; SuppressCommit: Boolean; EverythingInvoiced: Boolean; var Window: Dialog; HideProgressWindow: Boolean) + begin + end; + + /// + /// Raised after checking posting restrictions + /// + /// + [IntegrationEvent(false, false)] + local procedure OnAfterCheckPostRestrictions(var SalesHeader: Record "Sales Header") + begin + end; +} diff --git a/src/Layers/RU/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al b/src/Layers/RU/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al index cc17b47f1c8..9b06e78af8d 100644 --- a/src/Layers/RU/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al +++ b/src/Layers/RU/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al @@ -263,6 +263,8 @@ codeunit 11 "Gen. Jnl.-Check Line" exit; GenJournalLine.TestField("Document No.", ErrorInfo.Create()); + + OnAfterTestDocumentNo(GenJournalLine); end; local procedure TestAccountAndBalAccountType(var GenJnlLine: Record "Gen. Journal Line") @@ -1641,6 +1643,15 @@ codeunit 11 "Gen. Jnl.-Check Line" begin end; + /// + /// Integration event raised after validating document number field requirements for journal lines. + /// + /// Journal line record being validated for document number requirements. + [IntegrationEvent(false, false)] + local procedure OnAfterTestDocumentNo(GenJournalLine: Record "Gen. Journal Line") + begin + end; + /// /// Integration event raised before validating document number field requirements for journal lines. /// Enables custom logic to completely override standard document number validation processing. diff --git a/src/Layers/RU/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al b/src/Layers/RU/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al index 1eaacc9f861..5ee8ef25a05 100644 --- a/src/Layers/RU/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al +++ b/src/Layers/RU/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al @@ -1,4 +1,4 @@ -// ------------------------------------------------------------------------------------------------ +// ------------------------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // ------------------------------------------------------------------------------------------------ @@ -907,7 +907,7 @@ codeunit 12 "Gen. Jnl.-Post Line" VATEntry."CV Ledg. Entry No." := GenJnlLine."Initial Entry No."; GLEntryBaseAmount := GenJnlLine."Advance VAT Base Amount"; end; - OnInsertVATOnAfterAssignVATEntryFields(GenJnlLine, VATEntry, CurrExchRate); + OnInsertVATOnAfterAssignVATEntryFields(GenJnlLine, VATEntry, CurrExchRate, VATPostingSetup); if GenJnlLine."VAT Difference" = 0 then VATDifferenceLCY := 0 @@ -12313,7 +12313,7 @@ codeunit 12 "Gen. Jnl.-Post Line" end; [IntegrationEvent(false, false)] - local procedure OnInsertVATOnAfterAssignVATEntryFields(GenJnlLine: Record "Gen. Journal Line"; var VATEntry: Record "VAT Entry"; CurrExchRate: Record "Currency Exchange Rate") + local procedure OnInsertVATOnAfterAssignVATEntryFields(var GenJnlLine: Record "Gen. Journal Line"; var VATEntry: Record "VAT Entry"; CurrExchRate: Record "Currency Exchange Rate"; var VATPostingSetup: Record "VAT Posting Setup") begin end; diff --git a/src/Layers/RU/BaseApp/Foundation/Navigate/Navigate.Page.al b/src/Layers/RU/BaseApp/Foundation/Navigate/Navigate.Page.al index c2580304278..8ade80a506e 100644 --- a/src/Layers/RU/BaseApp/Foundation/Navigate/Navigate.Page.al +++ b/src/Layers/RU/BaseApp/Foundation/Navigate/Navigate.Page.al @@ -1904,6 +1904,7 @@ page 344 Navigate ItemTrackingFilters.SetFilter("Package No. Filter", PackageNoFilter); OnAfterSetTrackingFiltersOnBeforeFindTrackingRecords(ItemTrackingFilters); + OnFindTrackingRecordsOnAfterSetTrackingFilters(ItemTrackingFilters); Clear(ItemTrackingNavigateMgt); ItemTrackingNavigateMgt.FindTrackingRecords(ItemTrackingFilters); @@ -1967,7 +1968,6 @@ page 344 Navigate ContactNo := ''; end; - local procedure DocNoFilterOnAfterValidate() begin ClearSourceInfo(); @@ -2359,6 +2359,11 @@ page 344 Navigate begin end; + [IntegrationEvent(true, false)] + local procedure OnFindTrackingRecordsOnAfterSetTrackingFilters(var ItemTrackingFilters: Record Item) + begin + end; + [IntegrationEvent(false, false)] local procedure OnFindUnpostedPurchaseDocsOnAfterSetFilters(var PurchaseHeader: Record "Purchase Header") begin diff --git a/src/Layers/RU/BaseApp/Purchases/Payables/VendEntryApplyPostedEntries.Codeunit.al b/src/Layers/RU/BaseApp/Purchases/Payables/VendEntryApplyPostedEntries.Codeunit.al index 6201117aa74..a1d3eb5e6f0 100644 --- a/src/Layers/RU/BaseApp/Purchases/Payables/VendEntryApplyPostedEntries.Codeunit.al +++ b/src/Layers/RU/BaseApp/Purchases/Payables/VendEntryApplyPostedEntries.Codeunit.al @@ -77,11 +77,7 @@ codeunit 227 "VendEntry-Apply Posted Entries" NotAllowedPostingDatesErr: Label 'Posting date is not within the range of allowed posting dates.'; #pragma warning disable AA0470 LatestEntryMustBeApplicationErr: Label 'The latest Transaction No. must be an application in Vendor Ledger Entry No. %1.'; -#pragma warning restore AA0470 -#pragma warning disable AA0470 CannotUnapplyExchRateErr: Label 'You cannot unapply the entry with the posting date %1, because the exchange rate for the additional reporting currency has been changed.'; -#pragma warning restore AA0470 -#pragma warning disable AA0470 CannotUnapplyInReversalErr: Label 'You cannot unapply Vendor Ledger Entry No. %1 because the entry is part of a reversal.'; #pragma warning restore AA0470 CannotApplyClosedEntriesErr: Label 'One or more of the entries that you selected is closed. You cannot apply closed entries.'; @@ -390,6 +386,8 @@ codeunit 227 "VendEntry-Apply Posted Entries" CheckAdditionalCurrency(ApplyUnapplyParameters."Posting Date", DtldVendLedgEntry."Posting Date"); AddCurrChecked := true; end; + CheckInitialDocumentType( + DtldVendLedgEntry, ApplyUnapplyParameters."Document No.", ApplyUnapplyParameters."Posting Date"); CheckReversal(DtldVendLedgEntry."Vendor Ledger Entry No."); if DtldVendLedgEntry."Transaction No." <> 0 then CheckUnappliedEntries(DtldVendLedgEntry); @@ -460,6 +458,18 @@ codeunit 227 "VendEntry-Apply Posted Entries" ExchRateAdjmtRunHandler.RunVendExchRateAdjustment(GenJnlLine, TempVendorLedgerEntry); end; + local procedure CheckInitialDocumentType(var DtldVendLedgEntry: Record "Detailed Vendor Ledg. Entry"; DocNo: Code[20]; PostingDate: Date) + var + IsHandled: Boolean; + begin + IsHandled := false; + OnBeforeCheckInitialDocumentType(DtldVendLedgEntry, DocNo, PostingDate, IsHandled); + if IsHandled then + exit; + + OnAfterCheckInitialDocumentType(DtldVEndLedgEntry); + end; + local procedure CheckPostingDate(ApplyUnapplyParameters: Record "Apply Unapply Parameters"; var MaxPostingDate: Date) var GenJnlCheckLine: Codeunit "Gen. Jnl.-Check Line"; @@ -846,6 +856,27 @@ codeunit 227 "VendEntry-Apply Posted Entries" begin end; + /// + /// Raised after checking initial document Type + /// + /// The detailed vendor ledger entry. + [IntegrationEvent(false, false)] + local procedure OnAfterCheckInitialDocumentType(var DtldVendLedgEntry: Record "Detailed Vendor Ledg. Entry") + begin + end; + + /// + /// Raised before checking initial document Type + /// + /// The detailed vendor ledger entry. + /// The document number. + /// The posting date. + /// Indicates whether the event is handled. + [IntegrationEvent(false, false)] + local procedure OnBeforeCheckInitialDocumentType(var DtldVendLedgEntry: Record "Detailed Vendor Ledg. Entry"; DocNo: Code[20]; PostingDate: Date; var IsHandled: Boolean) + begin + end; + [IntegrationEvent(false, false)] local procedure OnPostUnApplyVendorCommitOnBeforeFilterDtldVendLedgEntry(DetailedVendorLedgEntry2: Record "Detailed Vendor Ledg. Entry"; ApplyUnapplyParameters: Record "Apply Unapply Parameters") begin diff --git a/src/Layers/RU/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al b/src/Layers/RU/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al index 82dccf794c2..25aed7cff84 100644 --- a/src/Layers/RU/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al +++ b/src/Layers/RU/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al @@ -17,6 +17,7 @@ using Microsoft.FixedAssets.FixedAsset; using Microsoft.Foundation.Attachment; using Microsoft.Foundation.AuditCodes; using Microsoft.Foundation.NoSeries; +using Microsoft.Foundation.PaymentTerms; using Microsoft.Intercompany.Partner; using Microsoft.Purchases.History; using Microsoft.Purchases.Remittance; @@ -590,6 +591,13 @@ table 25 "Vendor Ledger Entry" { Caption = 'Prepayment'; } + field(91; "Payment Terms Code"; Code[10]) + { + Caption = 'Payment Terms Code'; + Editable = false; + TableRelation = "Payment Terms"; + ToolTip = 'Specifies the payment terms that determine the due date and payment discount date for the entry.'; + } field(95; "G/L Register No."; Integer) { Caption = 'G/L Register No.'; @@ -1089,6 +1097,22 @@ table 25 "Vendor Ledger Entry" exit(''); end; + procedure SetAppliesToDocFilters(var GenJnlLine: Record "Gen. Journal Line") + begin + SetRange("Document Type", GenJnlLine."Applies-to Doc. Type"); + SetRange("Document No.", GenJnlLine."Applies-to Doc. No."); + + OnAfterSetAppliesToDocFilters(Rec, GenJnlLine); + end; + + procedure ClearDocumentFilters() + begin + SetRange("Document Type"); + SetRange("Document No."); + + OnAfterClearDocumentFilters(Rec); + end; + procedure CopyFromGenJnlLine(GenJnlLine: Record "Gen. Journal Line") begin "Vendor No." := GenJnlLine."Account No."; @@ -1130,6 +1154,7 @@ table 25 "Vendor Ledger Entry" "Creditor No." := GenJnlLine."Creditor No."; "Payment Reference" := GenJnlLine."Payment Reference"; "Payment Method Code" := GenJnlLine."Payment Method Code"; + "Payment Terms Code" := GenJnlLine."Payment Terms Code"; "Exported to Payment File" := GenJnlLine."Exported to Payment File"; "Vendor VAT Invoice No." := GenJnlLine."Vendor VAT Invoice No."; "Vendor VAT Invoice Date" := GenJnlLine."Vendor VAT Invoice Date"; @@ -1375,5 +1400,15 @@ table 25 "Vendor Ledger Entry" local procedure OnBeforeUpdateAmountsForApplication(var VendorLedgerEntry: Record "Vendor Ledger Entry"; ApplnDate: Date; ApplnCurrencyCode: Code[10]; RoundAmounts: Boolean; UpdateMaxPaymentTolerance: Boolean; var IsHandled: Boolean) begin end; + + [IntegrationEvent(false, false)] + local procedure OnAfterSetAppliesToDocFilters(var Rec: Record "Vendor Ledger Entry"; var GenJnlLine: Record "Gen. Journal Line") + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnAfterClearDocumentFilters(var Rec: Record "Vendor Ledger Entry") + begin + end; } diff --git a/src/Layers/RU/BaseApp/Purchases/Posting/PurchPost.Codeunit.al b/src/Layers/RU/BaseApp/Purchases/Posting/PurchPost.Codeunit.al index 8e3e1a4cdfd..460e41dcdf7 100644 --- a/src/Layers/RU/BaseApp/Purchases/Posting/PurchPost.Codeunit.al +++ b/src/Layers/RU/BaseApp/Purchases/Posting/PurchPost.Codeunit.al @@ -188,10 +188,7 @@ codeunit 90 "Purch.-Post" /// The purchase header of the document that is being posted. /// Accumulates drop-shipment buffer records during posting. /// Set to false during posting if any line is partially invoiced. - local procedure ProcessPosting( - var PurchHeader: Record "Purchase Header"; - var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; - var EverythingInvoiced: Boolean) + local procedure ProcessPosting(var PurchHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var EverythingInvoiced: Boolean) var IgnoreCommit: Boolean; begin @@ -289,7 +286,7 @@ codeunit 90 "Purch.-Post" PostPurchLine( PurchHeader, TempPurchLineGlobal, TempVATAmountLine, TempVATAmountLineRemainder, - TempDropShptPostBuffer, EverythingInvoiced, ICGenJnlLineNo, TempEmplPurchLine); + TempDropShptPostBuffer, EverythingInvoiced, ICGenJnlLineNo, TempEmplPurchLine); OnRunOnAfterPostPurchLine(TempPurchLineGlobal, PurchInvHeader, PurchCrMemoHeader, PurchRcptHeader, ReturnShptHeader); end; @@ -339,6 +336,10 @@ codeunit 90 "Purch.-Post" OnRunOnBeforeMakeInventoryAdjustment(PurchHeader, GenJnlPostLine, ItemJnlPostLine, PreviewMode, PurchRcptHeader, PurchInvHeader, IsHandled); if not IsHandled then MakeInventoryAdjustment(); + + Clear(GenJnlPostLine); + + OnAfterProcessPostingLines(PurchHeader, TotalPurchLine, VendLedgEntry, InvoicePostingParameters, SuppressCommit, EverythingInvoiced, Window); end; var @@ -880,6 +881,7 @@ codeunit 90 "Purch.-Post" begin if not DocumentIsReadyToBeChecked then PrepareCheckDocument(PurchHeader); + ErrorMessageMgt.PushContext(ErrorContextElement, PurchHeader.RecordId, 0, CheckPurchHeaderMsg); CheckMandatoryHeaderFields(PurchHeader); GetGLSetup(); @@ -3171,6 +3173,7 @@ codeunit 90 "Purch.-Post" if NoSeries.IsNoSeriesInDateOrder(PurchHeader."Receiving No. Series") then DateOrderSeriesUsed := true; ModifyHeader := true; + // Check for posting conflicts. if PurchRcptHeader.Get(PurchHeader."Receiving No.") then Error(PurchRcptHeaderConflictErr, PurchHeader."Receiving No."); @@ -3191,6 +3194,7 @@ codeunit 90 "Purch.-Post" DateOrderSeriesUsed := true; ModifyHeader := true; OnUpdatePostingNosOnAfterSetReturnShipmentNoFromNos(PurchHeader); + // Check for posting conflicts. if ReturnShptHeader.Get(PurchHeader."Return Shipment No.") then Error(ReturnShptHeaderConflictErr, PurchHeader."Return Shipment No."); @@ -4231,6 +4235,8 @@ codeunit 90 "Purch.-Post" if PurchaseHeader."Pay-to Contact No." <> '' then if Contact.Get(PurchaseHeader."Pay-to Contact No.") then Contact.CheckIfPrivacyBlocked(true); + + OnAfterCheckPostRestrictions(PurchaseHeader); end; local procedure CheckFAPostingPossibility(PurchaseHeader: Record "Purchase Header") @@ -5501,7 +5507,7 @@ codeunit 90 "Purch.-Post" if PurchHeader."Prices Including VAT" then PrepmtVATBaseToDeduct := Round( - (TotalPrepmtAmtToDeduct + PurchLine."Prepmt Amt to Deduct") / (1 + PurchLine."Prepayment VAT %" / 100), + (TotalPrepmtAmtToDeduct + PurchLine."Prepmt Amt to Deduct") / (1 + PurchLine.GetPrepaymentVATPct() / 100), Currency."Amount Rounding Precision") - Round( TotalPrepmtAmtToDeduct / (1 + PurchLine.GetPrepaymentVATPct() / 100), @@ -9747,169 +9753,404 @@ codeunit 90 "Purch.-Post" ItemsToAdjust.Add(Item2."No."); end; + /// + /// Event raised by OnArchiveSalesOrdersOnBeforeSalesOrderLineModify. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnArchiveSalesOrdersOnBeforeSalesOrderLineModify(var SalesOrderLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnAfterBlanketOrderPurchLineModify. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnAfterBlanketOrderPurchLineModify(var BlanketOrderPurchLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnAfterCheckPurchDoc. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the ErrorMessageMgt parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckPurchDoc(var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; WhseShip: Boolean; WhseReceive: Boolean; PreviewMode: Boolean; var ErrorMessageMgt: Codeunit "Error Message Management") begin end; + /// + /// Event raised by OnAfterCheckAndUpdate. + /// + /// + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckAndUpdate(var PurchaseHeader: Record "Purchase Header"; CommitIsSuppressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterCheckTrackingSpecification. + /// + /// + /// Specifies the TempItemPurchaseLine parameter. [IntegrationEvent(true, false)] local procedure OnAfterCheckTrackingSpecification(PurchaseHeader: Record "Purchase Header"; var TempItemPurchaseLine: Record "Purchase Line" temporary); begin end; + /// + /// Event raised by OnAfterCheckTrackingAndWarehouseForReceive. + /// + /// + /// Specifies the Receive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckTrackingAndWarehouseForReceive(var PurchaseHeader: Record "Purchase Header"; var Receive: Boolean; CommitIsSupressed: Boolean; var TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterCheckTrackingAndWarehouseForShip. + /// + /// + /// Specifies the Ship parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchaseLine parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckTrackingAndWarehouseForShip(var PurchaseHeader: Record "Purchase Header"; var Ship: Boolean; CommitIsSupressed: Boolean; var TempPurchaseLine: Record "Purchase Line" temporary; var TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary) begin end; + /// + /// Event raised by OnAfterCreateJobPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCreateJobPurchLine(var JobPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterCreateWhseJnlLine. + /// + /// + /// Specifies the TempWhseJnlLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCreateWhseJnlLine(PurchaseLine: Record "Purchase Line"; var TempWhseJnlLine: record "Warehouse Journal Line" temporary) begin end; + /// + /// Event raised by OnAfterDeleteAfterPosting. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterDeleteAfterPosting(PurchHeader: Record "Purchase Header"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterDeleteApprovalEntries. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchRcptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterDeleteApprovalEntries(var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; PurchRcptHeader: Record "Purch. Rcpt. Header") begin end; + /// + /// Event raised by OnAfterDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. [IntegrationEvent(false, false)] local procedure OnAfterDivideAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping; PurchLineQty: Decimal; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary) begin end; + /// + /// Event raised by OnAfterGetAmountRoundingPrecisionInLCY. + /// + /// + /// Specifies the DocNo parameter. + /// Specifies the CurrencyCode parameter. + /// Specifies the AmountRoundingPrecision parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetAmountRoundingPrecisionInLCY(DocType: Enum "Purchase Document Type"; DocNo: Code[20]; CurrencyCode: Code[10]; var AmountRoundingPrecision: Decimal) begin end; + /// + /// Event raised by OnAfterGetLineDataFromOrder. + /// + /// + /// Specifies the PurchOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetLineDataFromOrder(var PurchLine: Record "Purchase Line"; PurchOrderLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterGetPurchSetup. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterGetPurchSetup(var PurchSetup: Record "Purchases & Payables Setup") begin end; + /// + /// Event raised by OnAfterModifyTempLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterModifyTempLine(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostPurchaseDoc. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PurchRcpHdrNo parameter. + /// Specifies the RetShptHdrNo parameter. + /// Specifies the PurchInvHdrNo parameter. + /// Specifies the PurchCrMemoHdrNo parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] procedure OnAfterPostPurchaseDoc(var PurchaseHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PurchRcpHdrNo: Code[20]; RetShptHdrNo: Code[20]; PurchInvHdrNo: Code[20]; PurchCrMemoHdrNo: Code[20]; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterPostPurchaseDocDropShipment. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostPurchaseDocDropShipment(SalesShptNo: Code[20]; CommitIsSupressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterRetrieveInvoiceTrackingSpecificationIfExists. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. [IntegrationEvent(false, false)] local procedure OnAfterRetrieveInvoiceTrackingSpecificationIfExists(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TrackingSpecificationExists: Boolean) begin end; + /// + /// Event raised by OnAfterUpdatePostingNos. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePostingNos(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; PreviewMode: Boolean; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnAfterCheckMandatoryFields. + /// + /// + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckMandatoryFields(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterFinalizePosting. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterFinalizePosting(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShptHeader: Record "Return Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PreviewMode: Boolean; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterFinalizePostingOnBeforeCommit. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnAfterFinalizePostingOnBeforeCommit(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShptHeader: Record "Return Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PreviewMode: Boolean; CommitIsSupressed: Boolean; EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnAfterIncrAmount. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterIncrAmount(var TotalPurchLine: Record "Purchase Line"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterInitAssocItemJnlLine. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the QtyToBeShipped parameter. [IntegrationEvent(false, false)] local procedure OnAfterInitAssocItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; PurchaseHeader: Record "Purchase Header"; QtyToBeShipped: Decimal) begin end; + /// + /// Event raised by OnAfterInsertCombinedSalesShipment. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterInsertCombinedSalesShipment(var SalesShipmentHeader: Record "Sales Shipment Header") begin end; + /// + /// Event raised by OnAfterInsertPostedHeaders. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchSetup parameter. + /// Specifies the Window parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertPostedHeaders(var PurchaseHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShptHeader: Record "Return Shipment Header"; var PurchSetup: Record "Purchases & Payables Setup"; var Window: Dialog) begin end; + /// + /// Event raised by OnAfterInsertReceiptHeader. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertReceiptHeader(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var TempWhseRcptHeader: Record "Warehouse Receipt Header" temporary; WhseReceive: Boolean; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnAfterInsertReturnShipmentHeader. + /// + /// + /// Specifies the ReturnShptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertReturnShipmentHeader(var PurchHeader: Record "Purchase Header"; var ReturnShptHeader: Record "Return Shipment Header") begin end; + /// + /// Event raised by OnAfterInvoiceRoundingAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TotalPurchaseLine parameter. + /// Specifies the UseTempData parameter. + /// Specifies the InvoiceRoundingAmount parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the RoundingLineNo parameter. [IntegrationEvent(false, false)] local procedure OnAfterInvoiceRoundingAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TotalPurchaseLine: Record "Purchase Line"; UseTempData: Boolean; InvoiceRoundingAmount: Decimal; CommitIsSuppressed: Boolean; RoundingLineInserted: Boolean; RoundingLineNo: Integer) begin end; + /// + /// Event raised by OnAfterInsertedPrepmtVATBaseToDeduct. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PrepmtLineNo parameter. + /// Specifies the TotalPrepmtAmtToDeduct parameter. + /// Specifies the TempPrepmtDeductLCYPurchLine parameter. + /// Specifies the PrepmtVATBaseToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertedPrepmtVATBaseToDeduct(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; PrepmtLineNo: Integer; TotalPrepmtAmtToDeduct: Decimal; var TempPrepmtDeductLCYPurchLine: Record "Purchase Line" temporary; var PrepmtVATBaseToDeduct: Decimal) begin end; + /// + /// Event raised by OnAfterPostAssocItemJnlLine. + /// + /// + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the SalesLineOrder parameter. + /// Specifies the SalesOrderHeader parameter. + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostAssocItemJnlLine(var ItemJnlLine: Record "Item Journal Line"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var SalesLineOrder: Record "Sales Line"; var SalesOrderHeader: Record "Sales Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAfterPostCombineSalesOrderShipment. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostCombineSalesOrderShipment(var PurchaseHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin @@ -9922,275 +10163,680 @@ codeunit 90 "Purch.-Post" end; [Obsolete('Moved to codeunit MfgPurchPost', '27.0')] + /// + /// Event raised by OnAfterPostItemJnlLineCopyProdOrder. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLineCopyProdOrder(var ItemJnlLine: Record "Item Journal Line"; PurchLine: Record "Purchase Line"; PurchRcptHeader: Record "Purch. Rcpt. Header"; QtyToBeReceived: Decimal; CommitIsSupressed: Boolean; QtyToBeInvoiced: Decimal) begin end; #endif + /// + /// Event raised by OnAfterPostItemJnlLineItemCharges. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLineItemCharges(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerOrder. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerOrder(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemTrackingLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemTrackingLine(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnAfterPostUpdateCreditMemoLine. + /// + /// [IntegrationEvent(true, false)] local procedure OnAfterPostUpdateCreditMemoLine(var PurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPostUpdateInvoiceLine. + /// + /// [IntegrationEvent(true, false)] local procedure OnAfterPostUpdateInvoiceLine(var PurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPurchRcptHeaderInsert. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchRcptHeaderInsert(var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterPurchRcptLineInsert. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchRcptLineInsert(PurchaseLine: Record "Purchase Line"; var PurchRcptLine: Record "Purch. Rcpt. Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; PurchInvHeader: Record "Purch. Inv. Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; PurchRcptHeader: Record "Purch. Rcpt. Header"; TempWhseRcptHeader: Record "Warehouse Receipt Header"; xPurchLine: Record "Purchase Line"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPurchInvHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchInvHeaderInsert(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterPurchInvLineInsert. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchInvLineInsert(var PurchInvLine: Record "Purch. Inv. Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; PurchHeader: Record "Purchase Header"; PurchRcptHeader: Record "Purch. Rcpt. Header"; TempWhseRcptHeader: Record "Warehouse Receipt Header"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnAfterPurchCrMemoHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchCrMemoHeaderInsert(var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterPurchCrMemoLineInsert. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchCrMemoLineInsert(var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var PurchaseHeader: Record "Purchase Header"; GenJnlLineDocNo: Code[20]; RoundingLineInserted: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnAfterReturnShptHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterReturnShptHeaderInsert(var ReturnShptHeader: Record "Return Shipment Header"; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterReturnShptLineInsert. + /// + /// + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempWhseShptHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the xPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterReturnShptLineInsert(var ReturnShptLine: Record "Return Shipment Line"; ReturnShptHeader: Record "Return Shipment Header"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; var TempWhseShptHeader: Record "Warehouse Shipment Header" temporary; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; xPurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterRevertWarehouseEntry. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterRevertWarehouseEntry(var TempWhseJnlLine: Record "Warehouse Journal Line" temporary) begin end; + /// + /// Event raised by OnAfterSalesShptHeaderInsert. + /// + /// + /// Specifies the SalesOrderHeader parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterSalesShptHeaderInsert(var SalesShipmentHeader: Record "Sales Shipment Header"; SalesOrderHeader: Record "Sales Header"; CommitIsSuppressed: Boolean; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterSalesShptLineInsert. + /// + /// + /// Specifies the SalesShptHeader parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the DropShptPostBuffer parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnAfterSalesShptLineInsert(var SalesShptLine: Record "Sales Shipment Line"; SalesShptHeader: Record "Sales Shipment Header"; SalesOrderLine: Record "Sales Line"; CommitIsSuppressed: Boolean; DropShptPostBuffer: Record "Drop Shpt. Post. Buffer"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPostAccICLine. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostAccICLine(PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnAfterPostItemLine. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(true, false)] local procedure OnAfterPostItemLine(PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; PurchaseHeader: Record "Purchase Header"; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnAfterPostItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the WhseJnlRegisterLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseRcptHeader parameter. + /// Specifies the WhseShptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var WhseJnlRegisterLine: Codeunit "Whse. Jnl.-Register Line"; var WhseReceive: Boolean; var WhseShip: Boolean; var WhseRcptHeader: Record "Warehouse Receipt Header"; var WhseShptHeader: Record "Warehouse Shipment Header") begin end; + /// + /// Event raised by OnAfterPostWhseJnlLine. + /// + /// + /// Specifies the ItemLedgEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostWhseJnlLine(var PurchaseLine: Record "Purchase Line"; ItemLedgEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterPostUpdateOrderLine. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostUpdateOrderLine(var PurchaseLine: Record "Purchase Line"; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterPostInvoice. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the VendorLedgerEntry parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostInvoice(var PurchHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; TotalPurchLine: Record "Purchase Line"; TotalPurchLineLCY: Record "Purchase Line"; CommitIsSupressed: Boolean; var VendorLedgerEntry: Record "Vendor Ledger Entry") begin end; + /// + /// Event raised by OnAfterPostPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchInvLine parameter. + /// Specifies the PurchCrMemoLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLineACY parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostPurchLine(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var PurchInvLine: Record "Purch. Inv. Line"; var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchLineACY: Record "Purchase Line"; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; SrcCode: Code[10]; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterProcessPurchLines. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the PurchLinesProcessed parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnAfterProcessPurchLines(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShipmentHeader: Record "Return Shipment Header"; WhseShip: Boolean; WhseReceive: Boolean; var PurchLinesProcessed: Boolean; CommitIsSuppressed: Boolean; EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnAfterProcessAssocItemJnlLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnAfterProcessAssocItemJnlLine(var PurchLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnAfterReleasePurchDoc. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterReleasePurchDoc(var PurchHeader: Record "Purchase Header"); begin end; + /// + /// Event raised by OnAfterRefreshTempLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterRefreshTempLines(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterResetTempLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterResetTempLines(var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterRestorePurchaseHeader. + /// + /// + /// Specifies the PurchaseHeaderCopy parameter. [IntegrationEvent(false, false)] local procedure OnAfterRestorePurchaseHeader(var PurchaseHeader: Record "Purchase Header"; PurchaseHeaderCopy: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterReverseAmount. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterReverseAmount(var PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterRoundAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchLineQty parameter. [IntegrationEvent(false, false)] local procedure OnAfterRoundAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchLineQty: Decimal) begin end; + /// + /// Event raised by OnAfterSaveTempWhseSplitSpec. + /// + /// + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnAfterSaveTempWhseSplitSpec(PurchaseLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAfterSetPostingFlags. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterSetPostingFlags(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterTestPurchLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(false, false)] local procedure OnAfterTestPurchLine(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateInvoicedQtyOnPurchRcptLine. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoicedQtyOnPurchRcptLine(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchRcptLine: Record "Purch. Rcpt. Line"; var PurchaseLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; TrackingSpecificationExists: Boolean; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; var PurchaseHeader: Record "Purchase Header"; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateInvoicedQtyOnReturnShptLine. + /// + /// + /// Specifies the ReturnShipmentLine parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoicedQtyOnReturnShptLine(PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShipmentLine: Record "Return Shipment Line"; PurchaseLine: Record "Purchase Line"; TempTrackingSpecification: Record "Tracking Specification" temporary; TrackingSpecificationExists: Boolean; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnAfterUpdateLastPostingNos. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterUpdateLastPostingNos(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterUpdatePurchLineBeforePost. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the RoundingLineInserted parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePurchLineBeforePost(var PurchaseLine: Record "Purchase Line"; WhseShip: Boolean; WhseReceive: Boolean; PurchaseHeader: Record "Purchase Header"; RoundingLineInserted: Boolean) begin end; + /// + /// Event raised by OnAfterUpdatePrepmtPurchLineWithRounding. + /// + /// + /// Specifies the TotalRoundingAmount parameter. + /// Specifies the TotalPrepmtAmount parameter. + /// Specifies the FinalInvoice parameter. + /// Specifies the PricesInclVATRoundingAmount parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePrepmtPurchLineWithRounding(var PrepmtPurchLine: Record "Purchase Line"; TotalRoundingAmount: array[2] of Decimal; TotalPrepmtAmount: array[2] of Decimal; FinalInvoice: Boolean; PricesInclVATRoundingAmount: array[2] of Decimal; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterUpdatePurchaseHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePurchaseHeader(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; GenJnlLineDocType: Integer; GenJnlLineDocNo: Code[20]; PreviewMode: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterUpdatePurchLineDimSetIDFromAppliedEntry. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePurchLineDimSetIDFromAppliedEntry(var PurchLineToPost: Record "Purchase Line"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterValidatePostingAndDocumentDate. + /// + /// + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterValidatePostingAndDocumentDate(var PurchaseHeader: Record "Purchase Header"; CommitIsSuppressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnBeforeAddAssociatedOrderLineToBuffer. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAddAssociatedOrderLineToBuffer(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeModifyTempLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeModifyTempLine(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnModifyTempLineOnBeforeTransferFields. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnBeforeTransferFields(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeAdjustQuantityRoundingForReceipt. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustQuantityRoundingForReceipt(PurchRcptLine: Record "Purch. Rcpt. Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeArchiveUnpostedOrder. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the OrderArchived parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeArchiveUnpostedOrder(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; var OrderArchived: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnBeforeArchiveSalesOrders. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeArchiveSalesOrders(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeBlanketOrderPurchLineModify. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnBeforeBlanketOrderPurchLineModify(var BlanketOrderPurchLine: Record "Purchase Line"; PurchLine: Record "Purchase Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcInvoice. + /// + /// + /// Specifies the NewInvoice parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcInvoice(var PurchHeader: Record "Purchase Header"; var NewInvoice: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalculateAmountsInclVAT. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalculateAmountsInclVAT(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalculateInvoiceEverything. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the InvoiceEverything parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalculateInvoiceEverything(var TempPurchaseLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; var InvoiceEverything: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcLineAmountAndLineDiscountAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Currency parameter. [IntegrationEvent(true, false)] local procedure OnBeforeCalcLineAmountAndLineDiscountAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; PurchLineQty: Decimal; var IsHandled: Boolean; Currency: Record Currency) begin @@ -10198,163 +10844,379 @@ codeunit 90 "Purch.-Post" #if not CLEAN28 [Obsolete('This event is no longer used.', '28.0')] + /// + /// Event raised by OnBeforeCheckDropShipmentReceiveInvoice. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforeCheckDropShipmentReceiveInvoice(PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; #endif + /// + /// Event raised by OnBeforeCheckDocumentTotalAmounts. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforeCheckDocumentTotalAmounts(PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckExternalDocumentNumber. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the Handled parameter. + /// Specifies the DocType parameter. + /// Specifies the ExtDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckExternalDocumentNumber(VendorLedgerEntry: Record "Vendor Ledger Entry"; PurchaseHeader: Record "Purchase Header"; var Handled: Boolean; DocType: Option; ExtDocNo: Text[35]; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeCheckExtDocNo. + /// + /// + /// Specifies the DocumentType parameter. + /// Specifies the ExtDocNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckExtDocNo(PurchaseHeader: Record "Purchase Header"; DocumentType: Enum "Gen. Journal Document Type"; ExtDocNo: Text[35]; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckGLAccDirectPosting. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckGLAccDirectPosting(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckICDocumentDuplicatePosting. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckICDocumentDuplicatePosting(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckIfInvPutawayExists. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckIfInvPutawayExists(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckHeaderPostingType. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckHeaderPostingType(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckFieldsOnReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckFieldsOnReturnShipmentLine(var ReturnShipmentLine: Record "Return Shipment Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterCheckFieldsOnReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckFieldsOnReturnShipmentLine(ReturnShipmentLine: Record "Return Shipment Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeCheckPrepmtAmtToDeduct. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPrepmtAmtToDeduct(PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckPurchRcptLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckTrackingSpecification. + /// + /// + /// Specifies the TempItemPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckTrackingSpecification(PurchHeader: Record "Purchase Header"; var TempItemPurchLine: Record "Purchase Line" temporary); begin end; + /// + /// Event raised by OnBeforeCheckTrackingAndWarehouseForShip. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the Ship parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckTrackingAndWarehouseForShip(PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var Ship: Boolean; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeCheckWarehouse. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckWarehouse(var TempItemPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckWhseRcptLineQtyToReceive. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckWhseRcptLineQtyToReceive(var WhseRcptLine: Record "Warehouse Receipt Line"; var PurchRcptLine: Record "Purch. Rcpt. Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeClearRemAmt. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlRollRndg parameter. + /// Specifies the RemAmt parameter. + /// Specifies the RemDiscAmt parameter. [IntegrationEvent(false, false)] local procedure OnBeforeClearRemAmt(PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; ItemJnlRollRndg: Boolean; var RemAmt: Decimal; var RemDiscAmt: Decimal) begin end; + /// + /// Event raised by OnBeforeCreatePositiveEntry. + /// + /// + /// Specifies the JobNo parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePositiveEntry(var WarehouseJournalLine: Record "Warehouse Journal Line"; JobNo: Code[20]; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCreatePostedWhseRcptHeader. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedWhseRcptHeader(var PostedWhseReceiptHeader: Record "Posted Whse. Receipt Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeCreatePostedWhseShptHeader. + /// + /// + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedWhseShptHeader(var PostedWhseShipmentHeader: Record "Posted Whse. Shipment Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeCreatePostedWhseShptLine. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedWhseShptLine(PurchLine: Record "Purchase Line"; ReturnShptLine: Record "Return Shipment Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCreatePostedRcptLine. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedRcptLine(PurchLine: Record "Purchase Line"; ReturnShptLine: Record "Return Shipment Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCreateWhseLineFromReturnShptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreateWhseLineFromReturnShptLine(var ReturnShptLine: Record "Return Shipment Line"; PurchLine: Record "Purchase Line"; CostBaseAmount: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCommitAndUpdateAnalysisVeiw. + /// + /// + /// Specifies the SuppressCommit parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCommitAndUpdateAnalysisVeiw(InvtPickPutaway: Boolean; SuppressCommit: Boolean; PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCopyAndCheckItemChargeTempPurchLine. + /// + /// + /// Specifies the TempPrepmtPurchaseLine parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the IsHandled parameter. + /// Specifies the AssignError parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCopyAndCheckItemChargeTempPurchLine(PurchaseHeader: Record "Purchase Header"; var TempPrepmtPurchaseLine: Record "Purchase Line" temporary; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean; var AssignError: Boolean) begin end; + /// + /// Event raised by OnBeforeCreatePrepmtLines. + /// + /// + /// Specifies the TempPrepmtPurchaseLine parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePrepmtLines(PurchaseHeader: Record "Purchase Header"; var TempPrepmtPurchaseLine: Record "Purchase Line" temporary; CompleteFunctionality: Boolean; var IsHandled: Boolean; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeDeleteAfterPosting. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the SkipDelete parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDeleteAfterPosting(var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var SkipDelete: Boolean; CommitIsSupressed: Boolean; var TempPurchLine: Record "Purchase Line" temporary; var TempPurchLineGlobal: Record "Purchase Line" temporary; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnBeforeDeleteApprovalEntries. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDeleteApprovalEntries(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnBeforeDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDivideAmount(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping; var PurchLineQty: Decimal; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeFinalizePosting. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeFinalizePosting(var PurchaseHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var EverythingInvoiced: Boolean; CommitIsSupressed: Boolean; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnBeforeGetInvoicePostingSetup. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetInvoicePostingSetup(var InvoicePostingInterface: Interface "Invoice Posting"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInitAssocItemJnlLine. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInitAssocItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; PurchaseHeader: Record "Purchase Header") begin @@ -10362,97 +11224,265 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforeInvoiceRoundingAmount. + /// + /// + /// Specifies the TotalAmountIncludingVAT parameter. + /// Specifies the UseTempData parameter. + /// Specifies the InvoiceRoundingAmount parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInvoiceRoundingAmount(PurchHeader: Record "Purchase Header"; TotalAmountIncludingVAT: Decimal; UseTempData: Boolean; var InvoiceRoundingAmount: Decimal; CommitIsSupressed: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeInsertICGenJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ICGenJnlLineNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertICGenJnlLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var ICGenJnlLineNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertPostedHeaders. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertPostedHeaders(var PurchaseHeader: Record "Purchase Header"; var WarehouseReceiptHeader: Record "Warehouse Receipt Header"; var WarehouseShipmentHeader: Record "Warehouse Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertRcptEntryRelation. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the TempTrackingSpecificationInv parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertRcptEntryRelation(PurchaseLine: Record "Purchase Line"; var PurchRcptLine: Record "Purch. Rcpt. Line"; var TempHandlingSpecification: Record "Tracking Specification" temporary; TempTrackingSpecificationInv: Record "Tracking Specification" temporary; ItemLedgShptEntryNo: Integer; var Result: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertReceiptHeader. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReceiptHeader(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var IsHandled: Boolean; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertReceiptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReceiptLine(var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchLine: Record "Purchase Line"; var CostBaseAmount: Decimal; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeInsertReturnShipmentLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReturnShipmentLine(var ReturnShptHeader: Record "Return Shipment Header"; var PurchLine: Record "Purchase Line"; var CostBaseAmount: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertTrackingSpecification(PurchHeader: Record "Purchase Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeItemJnlPostLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. + /// Specifies the WhseReceiptHeader parameter. + /// Specifies the WhseShipmentHeader parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. [IntegrationEvent(true, false)] local procedure OnBeforeItemJnlPostLine(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; var IsHandled: Boolean; WhseReceiptHeader: Record "Warehouse Receipt Header"; WhseShipmentHeader: Record "Warehouse Shipment Header"; TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnBeforeIsEndLoopForShippedNotInvoiced. + /// + /// + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the ReturnShptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the PurchLine parameter. + /// Specifies the EndLoop parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeIsEndLoopForShippedNotInvoiced(RemQtyToBeInvoiced: Decimal; TrackingSpecificationExists: Boolean; var ReturnShptLine: Record "Return Shipment Line"; var InvoicingTrackingSpecification: Record "Tracking Specification"; PurchLine: Record "Purchase Line"; var EndLoop: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeIsEndLoopForReceivedNotInvoiced. + /// + /// + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PurchRcptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the PurchLine parameter. + /// Specifies the EndLoop parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeIsEndLoopForReceivedNotInvoiced(RemQtyToBeInvoiced: Decimal; TrackingSpecificationExists: Boolean; var PurchRcptLine: Record "Purch. Rcpt. Line"; var InvoicingTrackingSpecification: Record "Tracking Specification"; PurchLine: Record "Purchase Line"; var EndLoop: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeGetPurchRcptLineFromTrackingOrUpdateItemEntryRelation. + /// + /// + /// Specifies the TrackingSpecification parameter. + /// Specifies the ItemEntryRelation parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetPurchRcptLineFromTrackingOrUpdateItemEntryRelation(var PurchRcptLine: Record "Purch. Rcpt. Line"; var TrackingSpecification: Record "Tracking Specification"; var ItemEntryRelation: Record "Item Entry Relation"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeGetPurchLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeGetPurchLines(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeLockTables. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempPurchaseLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnBeforeLockTables(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSuppressed: Boolean; var IsHandled: Boolean; var TempPurchaseLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforePostLines. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostLines(var PurchLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSupressed: Boolean; var TempPurchLineGlobal: Record "Purchase Line" temporary; var TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary) begin end; + /// + /// Event raised by OnBeforePostDistributeItemCharge. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemLedgerEntry parameter. + /// Specifies the NonDistrQuantity parameter. + /// Specifies the NonDistrQtyToAssign parameter. + /// Specifies the NonDistrAmountToAssign parameter. + /// Specifies the Sign parameter. + /// Specifies the IndirectCostPct parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostDistributeItemCharge(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var TempItemLedgerEntry: Record "Item Ledger Entry"; NonDistrQuantity: Decimal; NonDistrQtyToAssign: Decimal; NonDistrAmountToAssign: Decimal; Sign: Decimal; IndirectCostPct: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostInvoice. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Window parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the InvoicePostingInterface parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostInvoice(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSupressed: Boolean; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var IsHandled: Boolean; var Window: Dialog; HideProgressWindow: Boolean; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line"; var InvoicePostingInterface: Interface "Invoice Posting"; var InvoicePostingParameters: Record "Invoice Posting Parameters"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnBeforePostGLAccICLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ICGenJnlLineNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostGLAccICLine(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ICGenJnlLineNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerSalesShpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerSalesShpt(var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin @@ -10465,98 +11495,245 @@ codeunit 90 "Purch.-Post" end; [Obsolete('Moved to codeunit MfgPurchPost', '27.0')] + /// + /// Event raised by OnBeforePostItemJnlLineCopyProdOrder. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemJnlLineCopyProdOrder(PurchLine: Record "Purchase Line"; var ItemJnlLine: Record "Item Journal Line"; QtyToBeReceived: Decimal; QtyToBeInvoiced: Decimal; CommitIsSupressed: Boolean; var IsHandled: Boolean) begin end; #endif + /// + /// Event raised by OnBeforePostPurchaseDoc. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostPurchaseDoc(var PurchaseHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSupressed: Boolean; var HideProgressWindow: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostCommitPurchaseDoc. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostCommitPurchaseDoc(var PurchaseHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PreviewMode: Boolean; var ModifyHeader: Boolean; var CommitIsSupressed: Boolean; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeProcessAssocItemJnlLine. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the SourceCode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeProcessAssocItemJnlLine(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary; ItemLedgShptEntryNo: Integer; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; SourceCode: Code[10]) begin end; + /// + /// Event raised by OnBeforePrepareCheckDocument. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforePrepareCheckDocument(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforePurchLineDeleteAll. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchLineDeleteAll(var PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforePurchRcptHeaderInsert. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchRcptHeaderInsert(var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseReceive: Boolean; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseShip: Boolean) begin end; + /// + /// Event raised by OnBeforePurchRcptLineInsert. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PostedWhseRcptLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemLedgShptEntryNo parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchRcptLineInsert(var PurchRcptLine: Record "Purch. Rcpt. Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean; PostedWhseRcptLine: Record "Posted Whse. Receipt Line"; var IsHandled: Boolean; ItemLedgShptEntryNo: Integer) begin end; + /// + /// Event raised by OnBeforePurchInvHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchInvHeaderInsert(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnBeforePurchInvLineInsert. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchInvLineInsert(var PurchInvLine: Record "Purch. Inv. Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePurchCrMemoHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchCrMemoHeaderInsert(var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnBeforePurchCrMemoLineInsert. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchCrMemoLineInsert(var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeReleasePurchDoc. + /// + /// + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeReleasePurchDoc(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean); begin end; + /// + /// Event raised by OnBeforeReturnShptHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(false, false)] local procedure OnBeforeReturnShptHeaderInsert(var ReturnShptHeader: Record "Return Shipment Header"; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseReceive: Boolean; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseShip: Boolean) begin end; + /// + /// Event raised by OnBeforeReturnShptLineInsert. + /// + /// + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeReturnShptLineInsert(var ReturnShptLine: Record "Return Shipment Line"; var ReturnShptHeader: Record "Return Shipment Header"; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnBeforeRoundAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchLineQty parameter. [IntegrationEvent(false, false)] local procedure OnBeforeRoundAmount(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchLineQty: Decimal) begin end; + /// + /// Event raised by OnBeforeSalesShptHeaderInsert. + /// + /// + /// Specifies the SalesOrderHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSalesShptHeaderInsert(var SalesShptHeader: Record "Sales Shipment Header"; SalesOrderHeader: Record "Sales Header"; CommitIsSupressed: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeSalesShptLineInsert. + /// + /// + /// Specifies the SalesShptHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the DropShptPostBuffer parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSalesShptLineInsert(var SalesShptLine: Record "Sales Shipment Line"; SalesShptHeader: Record "Sales Shipment Header"; SalesLine: Record "Sales Line"; CommitIsSupressed: Boolean; DropShptPostBuffer: Record "Drop Shpt. Post. Buffer"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSetCheckApplToItemEntry. + /// + /// + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSetCheckApplToItemEntry(var PurchaseLine: Record "Purchase Line"; var Result: Boolean; var IsHandled: Boolean; PurchaseHeader: Record "Purchase Header"; ItemJournalLine: Record "Item Journal Line") begin @@ -10564,6 +11741,17 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforePostCombineSalesOrderShipment. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostCombineSalesOrderShipment(var PurchaseHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesShipmentHeader: Record "Sales Shipment Header"; var ItemLedgShptEntryNo: Integer; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempHandlingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean) begin @@ -10571,241 +11759,616 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforePostItemJnlLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeReceivedBase parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the ItemChargeNo parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the Result parameter. + /// Specifies the WarehouseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLine(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var QtyToBeReceived: Decimal; var QtyToBeReceivedBase: Decimal; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; var ItemLedgShptEntryNo: Integer; var ItemChargeNo: Code[20]; var TrackingSpecification: Record "Tracking Specification"; CommitIsSupressed: Boolean; var IsHandled: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var Result: Integer; var WarehouseReceiptHeader: Record "Warehouse Receipt Header") begin end; + /// + /// Event raised by OnBeforePostItemJnlLineItemCharges. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLineItemCharges(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostAssocItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostAssocItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var SalesLine: Record "Sales Line"; CommitIsSupressed: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePostItemChargePerOrder. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the ItemChargePurchLine parameter. + /// Specifies the TempTrackingSpecificationChargeAssmt parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerOrder(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ItemJnlLine2: Record "Item Journal Line"; var ItemChargePurchLine: Record "Purchase Line"; var TempTrackingSpecificationChargeAssmt: Record "Tracking Specification" temporary; CommitIsSupressed: Boolean; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargeLineProcedure. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargeLineProcedure(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemLine(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; PurchRcptHeader: Record "Purch. Rcpt. Header"; var RemQtyToBeInvoiced: Decimal; var TempPurchLineGlobal: Record "Purchase Line" temporary; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var RemQtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemJnlLineJobConsumption. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the SourceCode parameter. + /// Specifies the PostJobConsumptionBeforePurch parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemJnlLineJobConsumption(var ItemJournalLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; SourceCode: Code[10]; var PostJobConsumptionBeforePurch: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTracking. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PreciseTotalChargeAmt parameter. + /// Specifies the PreciseTotalChargeAmtACY parameter. + /// Specifies the RoundedPrevTotalChargeAmt parameter. + /// Specifies the RoundedPrevTotalChargeAmtACY parameter. + /// Specifies the IsHandled parameter. + /// Specifies the RemQtyToBeInvoiced parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemTracking(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TrackingSpecificationExists: Boolean; var PreciseTotalChargeAmt: Decimal; var PreciseTotalChargeAmtACY: Decimal; var RoundedPrevTotalChargeAmt: Decimal; var RoundedPrevTotalChargeAmtACY: Decimal; var IsHandled: Boolean; RemQtyToBeInvoiced: Decimal) begin end; + /// + /// Event raised by OnBeforePostItemTrackingCheckReceipt. + /// + /// + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingCheckReceipt(PurchaseLine: Record "Purchase Line"; RemQtyToBeInvoiced: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingCheckShipment. + /// + /// + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingCheckShipment(PurchaseLine: Record "Purchase Line"; RemQtyToBeInvoiced: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForReceiptCondition. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the Condition parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForReceiptCondition(PurchaseLine: Record "Purchase Line"; PurchRcptLine: Record "Purch. Rcpt. Line"; var Condition: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingItemChargePerOrder. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the TempTrackingSpecificationChargeAssmtCorrect parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingItemChargePerOrder(var TempTrackingSpecificationChargeAssmt: Record "Tracking Specification" temporary; var IsHandled: Boolean; var ItemJnlLine2: Record "Item Journal Line"; var TempTrackingSpecificationChargeAssmtCorrect: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnBeforePostItemTrackingLineOnPostPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemTrackingLineOnPostPurchLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; TempTrackingSpecification: Record "Tracking Specification" temporary; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForShipmentCondition. + /// + /// + /// Specifies the ReturnShipmentLine parameter. + /// Specifies the Condition parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForShipmentCondition(PurchaseLine: Record "Purchase Line"; ReturnShipmentLine: Record "Return Shipment Line"; var Condition: Boolean) begin end; + /// + /// Event raised by OnBeforePostResourceLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the JobPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostResourceLine(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; SrcCode: Code[10]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocNo: Code[20]; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; JobPurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePostUpdateOrderLine. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PurchSetup parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateOrderLine(PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; CommitIsSuppressed: Boolean; PurchSetup: Record "Purchases & Payables Setup") begin end; + /// + /// Event raised by OnBeforePostUpdateOrderLineModifyTempLine. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateOrderLineModifyTempLine(var TempPurchaseLine: Record "Purchase Line" temporary; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSuppressed: Boolean; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeRevertWarehouseEntry. + /// + /// + /// Specifies the JobNo parameter. + /// Specifies the PostJobConsumption parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeRevertWarehouseEntry(var WarehouseJournalLine: Record "Warehouse Journal Line"; JobNo: Code[20]; PostJobConsumption: Boolean; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSendICDocument. + /// + /// + /// Specifies the ModifyHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSendICDocument(var PurchHeader: Record "Purchase Header"; var ModifyHeader: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSumPurchLines2. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the VATAmountLine parameter. + /// Specifies the InsertPurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforeSumPurchLines2(QtyType: Option; var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var VATAmountLine: Record "VAT Amount Line"; InsertPurchLine: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSumPurchLinesTemp. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeSumPurchLinesTemp(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeTempDropShptPostBufferInsert. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTempDropShptPostBufferInsert(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; PurchaseLine: Record "Purchase Line"; var ItemLedgShptEntryNo: Integer) begin end; + /// + /// Event raised by OnBeforeTempPrepmtPurchLineInsert. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTempPrepmtPurchLineInsert(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var TempPurchLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnBeforeTempPrepmtPurchLineModify. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTempPrepmtPurchLineModify(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var TempPurchLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnBeforeTransferReservToItemJnlLine. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the PurchLine parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the ApplySpecificItemTracking parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTransferReservToItemJnlLine(var SalesOrderLine: Record "Sales Line"; var ItemJnlLine: Record "Item Journal Line"; PurchLine: Record "Purchase Line"; QtyToBeShippedBase: Decimal; var ApplySpecificItemTracking: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateAssocOrder. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(true, false)] local procedure OnBeforeUpdateAssocOrder(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var IsHandled: Boolean; SuppressCommit: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the Receive parameter. + /// Specifies the Ship parameter. + /// Specifies the Invoice parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateBlanketOrderLine(PurchLine: Record "Purchase Line"; Receive: Boolean; Ship: Boolean; Invoice: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePostingNos. + /// + /// + /// Specifies the ModifyHeader parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the IsHandled parameter. + /// Specifies the DateOrderSeriesUsed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePostingNos(var PurchHeader: Record "Purchase Header"; var ModifyHeader: Boolean; SuppressCommit: Boolean; var IsHandled: Boolean; var DateOrderSeriesUsed: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePurchaseHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePurchaseHeader(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; GenJnlLineDocType: Option; var IsHandled: Boolean; var PurchaseHeader: Record "Purchase Header"; GenJnlLineDocNo: Code[20]; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePurchLineBeforePost. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePurchLineBeforePost(var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; WhseShip: Boolean; WhseReceive: Boolean; RoundingLineInserted: Boolean; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateInvoicedQtyOnPurchRcptLine. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateInvoicedQtyOnPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; CommitIsSupressed: Boolean; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeUpdatePrepmtPurchLineWithRounding. + /// + /// + /// Specifies the TotalRoundingAmount parameter. + /// Specifies the TotalPrepmtAmount parameter. + /// Specifies the FinalInvoice parameter. + /// Specifies the PricesInclVATRoundingAmount parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePrepmtPurchLineWithRounding(var PrepmtPurchLine: Record "Purchase Line"; TotalRoundingAmount: array[2] of Decimal; TotalPrepmtAmount: array[2] of Decimal; FinalInvoice: Boolean; PricesInclVATRoundingAmount: array[2] of Decimal; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeUpdateQtyToInvoiceForOrder. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToInvoiceForOrder(var PurchHeader: Record "Purchase Header"; TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateQtyToInvoiceForReturnOrder. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToInvoiceForReturnOrder(var PurchHeader: Record "Purchase Header"; TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateQtyToBeInvoicedForReceipt. + /// + /// + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToBeInvoicedForReceipt(var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; PurchLine: Record "Purchase Line"; PurchRcptLine: Record "Purch. Rcpt. Line"; InvoicingTrackingSpecification: Record "Tracking Specification"; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateQtyToBeInvoicedForReturnShipment. + /// + /// + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ReturnShipmentLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToBeInvoicedForReturnShipment(var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; PurchLine: Record "Purchase Line"; ReturnShipmentLine: Record "Return Shipment Line"; InvoicingTrackingSpecification: Record "Tracking Specification"; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateJobConsumptionReservationApplToItemEntry. + /// + /// + /// Specifies the ItemJournalLine parameter. + /// Specifies the IsNonInventoriableItem parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateJobConsumptionReservationApplToItemEntry(var TempReservEntryJobCons: Record "Reservation Entry" temporary; var ItemJournalLine: Record "Item Journal Line"; IsNonInventoriableItem: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLine. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLine(var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineFixedAsset. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineFixedAsset(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineItemCharge. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineItemCharge(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineJob. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineJob(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineOthers. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineOthers(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestStatusRelease. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestStatusRelease(PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateItemChargeAssgnt. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateItemChargeAssgnt(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateHandledICInboxTransaction. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateHandledICInboxTransaction(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeValidatePostingAndDocumentDate. + /// + /// + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeValidatePostingAndDocumentDate(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnSetPostingDateExists. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PostingDateExists parameter. + /// Specifies the ReplacePostingDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnSetPostingDateExists(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; var PostingDateExists: Boolean; var ReplacePostingDate: Boolean; var PostingDate: Date; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeWhseHandlingRequired. + /// + /// + /// Specifies the Required parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeWhseHandlingRequired(PurchaseLine: Record "Purchase Line"; var Required: Boolean; var IsHandled: Boolean) begin @@ -10813,62 +12376,140 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforeGetCountryCode. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the CountryRegionCode parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetCountryCode(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var CountryRegionCode: Code[10]; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeShouldPostWhseJnlLine. + /// + /// + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlLine parameter. + /// Specifies the TempWhseJnlLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeShouldPostWhseJnlLine(PurchLine: Record "Purchase Line"; var Result: Boolean; var IsHandled: Boolean; var ItemJnlLine: Record "Item Journal Line"; var TempWhseJnlLine: Record "Warehouse Journal Line" temporary; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnCalcInvDiscountSetFilter. + /// + /// + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvDiscountSetFilter(var PurchLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterClearPostingFromWhseRef. + /// + /// + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterClearPostingFromWhseRef(var PurchHeader: Record "Purchase Header"; var InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetPostingFlags. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetPostingFlags(var PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary); begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeSetPostingFlags. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeSetPostingFlags(var PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetSourceCode. + /// + /// + /// Specifies the SourceCodeSetup parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetSourceCode(var PurchHeader: Record "Purchase Header"; SourceCodeSetup: Record "Source Code Setup"; var SrcCode: Code[10]); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterArchiveUnpostedOrder. + /// + /// + /// Specifies the Currency parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterArchiveUnpostedOrder(var PurchHeader: Record "Purchase Header"; Currency: Record "Currency"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCalcInvDiscount. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the RefreshNeeded parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCalcInvDiscount(var PurchaseHeader: Record "Purchase Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseReceive: Boolean; WhseShip: Boolean; var RefreshNeeded: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateAssocOrderPostingDateOnBeforeValidateDocumentDate. + /// + /// + /// Specifies the OriginalDocumentDate parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateAssocOrderPostingDateOnBeforeValidateDocumentDate(var SalesHeader: Record "Sales Header"; var OriginalDocumentDate: Date) begin end; + /// + /// Event raised by OnCheckAssociatedOrderLinesOnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssociatedOrderLinesOnAfterSetFilters(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnCheckAssociatedOrderLinesOnAfterCheckDimensions. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssociatedOrderLinesOnAfterCheckDimensions(PurchaseHeader: Record "Purchase Header"; SalesHeader: Record "Sales Header"; var PurchaseLine: Record "Purchase Line"; TempSalesLine: Record "Sales Line" temporary) begin @@ -10876,72 +12517,146 @@ codeunit 90 "Purch.-Post" #if not CLEAN28 [Obsolete('This event is no longer used.', '28.0')] + /// + /// Event raised by OnCheckAssocOrderLinesOnBeforeCheckOrderLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssocOrderLinesOnBeforeCheckOrderLine(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; #endif + /// + /// Event raised by OnCheckExternalDocumentNumberOnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnCheckExternalDocumentNumberOnAfterSetFilters(var VendLedgEntry: Record "Vendor Ledger Entry"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForShipOnAfterTempPurchLineSetFilters. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForShipOnAfterTempPurchLineSetFilters(PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForReceiveOnAfterTempPurchLineSetFilters. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForReceiveOnAfterTempPurchLineSetFilters(PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCheckWarehouseOnAfterSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnCheckWarehouseOnAfterSetFilters(var TempItemPurchLine: Record "Purchase Line"); begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeLoop. + /// + /// + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeLoop(var TempPurchLine: Record "Purchase Line" temporary; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeCheckIfEmpty. + /// + /// [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeCheckIfEmpty(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCopyToTempLinesOnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnCopyToTempLinesOnAfterSetFilters(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterInitTempPrepmtPurchLineFromPurchHeader. + /// + /// [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterInitTempPrepmtPurchLineFromPurchHeader(var TempPrepmtPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterTempPurchLineSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterTempPurchLineSetFilters(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterTempPrepmtPurchLineSetFilters. + /// + /// + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterTempPrepmtPurchLineSetFilters(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnDivideAmountOnAfterClearAmounts. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterClearAmounts(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var PurchLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnAfterCalcLineAmountAndLineDiscountAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterCalcLineAmountAndLineDiscountAmount(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchaseLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineRemainderModify. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineRemainderModify(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency) begin @@ -10952,227 +12667,589 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnGetItemChargeLineOnAfterGet. + /// + /// + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnGetItemChargeLineOnAfterGet(var ItemChargePurchLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnGetPurchLinesOnAfterFillTempLines. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnGetPurchLinesOnAfterFillTempLines(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyType: Option; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnInsertICGenJnlLineOnAfterCopyDocumentFields. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempICGenJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertICGenJnlLineOnAfterCopyDocumentFields(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var TempICGenJournalLine: Record "Gen. Journal Line") begin end; + /// + /// Event raised by OnInsertAssocOrderChargeOnBeforeInsert. + /// + /// + /// Specifies the NewItemChargeAssignmentPurch parameter. [IntegrationEvent(false, false)] local procedure OnInsertAssocOrderChargeOnBeforeInsert(TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)"; var NewItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)") begin end; + /// + /// Event raised by OnInsertICGenJnlLineOnBeforeICGenJnlLineInsert. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnInsertICGenJnlLineOnBeforeICGenJnlLineInsert(var TempICGenJournalLine: Record "Gen. Journal Line" temporary; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnInsertReceiptLineOnAfterGetWhseRcptLine. + /// + /// + /// Specifies the PurchRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterGetWhseRcptLine(var WhseRcptLine: Record "Warehouse Receipt Line"; PurchRcptLine: Record "Purch. Rcpt. Line") begin end; + /// + /// Event raised by OnInsertReceiptLineOnAfterInitPurchRcptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the PostedWhseRcptHeader parameter. + /// Specifies the WhseRcptHeader parameter. + /// Specifies the WhseRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterInitPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; xPurchLine: Record "Purchase Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var CostBaseAmount: Decimal; PostedWhseRcptHeader: Record "Posted Whse. Receipt Header"; WhseRcptHeader: Record "Warehouse Receipt Header"; var WhseRcptLine: Record "Warehouse Receipt Line") begin end; + /// + /// Event raised by OnInsertReceiptLineOnAfterCalcShouldGetWhseRcptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PostedWhseRcptHeader parameter. + /// Specifies the WhseRcptHeader parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ShouldGetWhseRcptLine parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the PurchRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterCalcShouldGetWhseRcptLine(PurchRcptHeader: Record "Purch. Rcpt. Header"; PurchLine: Record "Purchase Line"; PostedWhseRcptHeader: Record "Posted Whse. Receipt Header"; WhseRcptHeader: Record "Warehouse Receipt Header"; CostBaseAmount: Decimal; WhseReceive: Boolean; WhseShip: Boolean; var ShouldGetWhseRcptLine: Boolean; xPurchLine: Record "Purchase Line"; var PurchRcptLine: Record "Purch. Rcpt. Line") begin end; + /// + /// Event raised by OnInsertReceiptLineOnAfterCalcShouldGetWhseShptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PostedWhseShptHeader parameter. + /// Specifies the WhseShptHeader parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ShouldGetWhseShptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterCalcShouldGetWhseShptLine(PurchRcptHeader: Record "Purch. Rcpt. Header"; PurchLine: Record "Purchase Line"; PostedWhseShptHeader: Record "Posted Whse. Shipment Header"; WhseShptHeader: Record "Warehouse Shipment Header"; CostBaseAmount: Decimal; WhseReceive: Boolean; WhseShip: Boolean; var ShouldGetWhseShptLine: Boolean) begin end; + /// + /// Event raised by OnInsertReturnShipmentLineOnAfterGetWhseShptLine. + /// + /// + /// Specifies the ReturnShptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReturnShipmentLineOnAfterGetWhseShptLine(var WhseShptLine: Record "Warehouse Shipment Line"; ReturnShptLine: Record "Return Shipment Line") begin end; + /// + /// Event raised by OnInsertReturnShipmentLineOnAfterReturnShptLineInit. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the PurchLine parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnInsertReturnShipmentLineOnAfterReturnShptLineInit(var ReturnShptHeader: Record "Return Shipment Header"; var ReturnShptLine: Record "Return Shipment Line"; var PurchLine: Record "Purchase Line"; var xPurchLine: Record "Purchase Line"; var CostBaseAmount: Decimal; WhseShip: Boolean; WhseReceive: Boolean); begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforePost. + /// + /// + /// Specifies the SalesOrderLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforePost(var ItemJournalLine: Record "Item Journal Line"; SalesOrderLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnAfterUpdateBlanketOrderLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the SalesOrderHeader parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the SrcCode parameter. + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnAfterUpdateBlanketOrderLine(var PurchaseHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer"; var SalesOrderLine: Record "Sales Line"; var SalesOrderHeader: record "Sales Header"; var SalesShptLine: record "Sales Shipment Line"; SalesShptHeader: Record "Sales Shipment Header"; SrcCode: Code[10]; Currency: Record Currency) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the SalesShptLine parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnBeforeUpdateBlanketOrderLine(var SalesOrderLine: Record "Sales Line"; SalesShptLine: Record "Sales Shipment Line") begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnAfterProcessDropShptPostBuffer. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnAfterProcessDropShptPostBuffer(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; PurchRcptHeader: Record "Purch. Rcpt. Header"; SalesShptLine: Record "Sales Shipment Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary); begin end; + /// + /// Event raised by OnPostDistributeItemChargeOnAfterCalcAmountToAssign. + /// + /// + /// Specifies the TempItemLedgerEntry parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the AmountToAssign parameter. + /// Specifies the Sign parameter. + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostDistributeItemChargeOnAfterCalcAmountToAssign(var PurchaseLine: Record "Purchase Line"; TempItemLedgerEntry: Record "Item Ledger Entry"; QtyToAssign: Decimal; AmountToAssign: Decimal; Sign: Decimal; Factor: Decimal) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterPostItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ItemChargeAssignmentPurch parameter. [IntegrationEvent(true, false)] local procedure OnPostItemChargeOnAfterPostItemJnlLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; ItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)") begin end; + /// + /// Event raised by OnPostItemChargeLineOnAfterPostItemCharge. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchaseLineBackup parameter. + /// Specifies the PurchLine parameter. [IntegrationEvent(true, false)] local procedure OnPostItemChargeLineOnAfterPostItemCharge(var TempItemChargeAssgntPurch: record "Item Charge Assignment (Purch)" temporary; PurchHeader: Record "Purchase Header"; PurchaseLineBackup: Record "Purchase Line"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargeLineOnBeforePostItemCharge. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeLineOnBeforePostItemCharge(var TempItemChargeAssgntPurch: record "Item Charge Assignment (Purch)" temporary; PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var GenJnlLineDocNo: Code[20]) begin end; + /// + /// Event raised by OnPostItemChargeOnBeforePostItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the PurchInvHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnBeforePostItemJnlLine(var PurchaseLineToPost: Record "Purchase Line"; var PurchaseLine: Record "Purchase Line"; QtyToAssign: Decimal; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; PurchInvHeader: Record "Purch. Inv. Header") begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnAfterCopyToItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the GeneralLedgerSetup parameter. + /// Specifies the QtyToInvoice parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnAfterCopyToItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; GeneralLedgerSetup: Record "General Ledger Setup"; QtyToInvoice: Decimal; var TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ReturnRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ReturnRcptLine: Record "Return Receipt Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerSalesRetRcptOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerSalesRetRcptOnBeforeTestJobNo(ReturnReceiptLine: Record "Return Receipt Line"; var IsHandled: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerSalesShptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerSalesShptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var SalesShptLine: Record "Sales Shipment Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerSalesShptOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerSalesShptOnBeforeTestJobNo(SalesShipmentLine: Record "Sales Shipment Line"; var IsHandled: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerRetShptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ReturnShptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetShptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ReturnShptLine: Record "Return Shipment Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRetShptOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetShptOnBeforeTestJobNo(ReturnShipmentLine: Record "Return Shipment Line"; var IsHandled: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerRcptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRcptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var PurchRcptLine: record "Purch. Rcpt. Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRcptOnAfterPurchRcptLineGet. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRcptOnAfterPurchRcptLineGet(PurchRcptLine: Record "Purch. Rcpt. Line"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerTransferOnAfterInitPurchLine2. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerTransferOnAfterInitPurchLine2(TransferReceiptLine: Record "Transfer Receipt Line"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerTransferOnBeforePostItemJnlLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemApplnEntry parameter. + /// Specifies the TransferReceiptLine parameter. + /// Specifies the ItemChargeAssignmentPurch parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerTransferOnBeforePostItemJnlLine(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; ItemApplnEntry: Record "Item Application Entry"; TransferReceiptLine: Record "Transfer Receipt Line"; ItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)") begin end; + /// + /// Event raised by OnPostItemChargePerITTransferOnAfterCollectItemEntryRelation. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TransRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerITTransferOnAfterCollectItemEntryRelation(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; TransRcptLine: Record "Transfer Receipt Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnBeforeTempWhseJnlLine2Find. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnBeforeTempWhseJnlLine2Find(var TempWarehouseJournalLine2: Record "Warehouse Journal Line" temporary; PurchaseLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyDocumentFields. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; PurchRcptHeader: Record "Purch. Rcpt. Header"; GenJnlLineExtDocNo: Code[35]; QtyToBeInvoiced: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforePostItemJnlLineCopyDocumentFields. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforePostItemJnlLineCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; QtyToBeInvoiced: Decimal; QtyToBeReceived: Decimal; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterPostItemJnlLineJobConsumption. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the OriginalItemJnlLine parameter. + /// Specifies the TempReservationEntry parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the PostJobConsumptionBeforePurch parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the TempWhseTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterPostItemJnlLineJobConsumption(var ItemJournalLine: Record "Item Journal Line"; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; OriginalItemJnlLine: Record "Item Journal Line"; var TempReservationEntry: Record "Reservation Entry" temporary; var TrackingSpecification: Record "Tracking Specification" temporary; QtyToBeInvoiced: Decimal; QtyToBeReceived: Decimal; var PostJobConsumptionBeforePurch: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyItemCharge. + /// + /// + /// Specifies the TempItemChargeAssgntPurch parameter. [IntegrationEvent(true, false)] local procedure OnPostItemJnlLineOnAfterCopyItemCharge(var ItemJournalLine: Record "Item Journal Line"; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeCopyDocumentFields. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforePostWhseJnlLine. + /// + /// + /// Specifies the TempWhseJnlLine parameter. + /// Specifies the ItemJnlLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforePostWhseJnlLine(TempHandlingSpecification: Record "Tracking Specification"; var TempWhseJnlLine: Record "Warehouse Journal Line"; ItemJnlLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumptionOnBeforeRunItemJnlPostLineWithReservation. + /// + /// + /// Specifies the TempReservationEntry parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(true, false)] local procedure OnPostItemJnlLineJobConsumptionOnBeforeRunItemJnlPostLineWithReservation(var ItemJournalLine: Record "Item Journal Line"; var TempReservationEntry: Record "Reservation Entry" temporary; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumption. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemJournalLine parameter. + /// Specifies the TempPurchReservEntry parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the PurchItemLedgEntryNo parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineJobConsumption(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; ItemJournalLine: Record "Item Journal Line"; var TempPurchReservEntry: Record "Reservation Entry" temporary; QtyToBeInvoiced: Decimal; QtyToBeReceived: Decimal; var TempTrackingSpecification: Record "Tracking Specification" temporary; PurchItemLedgEntryNo: Integer; var IsHandled: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterSetFactor. + /// + /// + /// Specifies the Factor parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterSetFactor(var PurchaseLine: Record "Purchase Line"; var Factor: Decimal; var GenJnlLineExtDocNo: Code[35]; var ItemJournalLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterPrepareItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterPrepareItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; PreviewMode: Boolean; var GenJnlLineDocNo: code[20]; TrackingSpecification: Record "Tracking Specification"; QtyToBeReceived: Decimal; QtyToBeInvoiced: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnCopyProdOrder. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the SuppressCommit parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnCopyProdOrder(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; QtyToBeReceived: Decimal; QtyToBeInvoiced: Decimal; SuppressCommit: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumptionOnBeforeJobPost. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the SrcCode parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the IsHandled parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineJobConsumptionOnBeforeJobPost( var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; @@ -11181,191 +13258,471 @@ codeunit 90 "Purch.-Post" begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnAfterPostRevert. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnAfterPostRevert(var TempWhseJnlLine: Record "Warehouse Journal Line" temporary; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnBeforePostSingleLine. + /// + /// + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the TempWhseJnlLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnBeforePostSingleLine(WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean; var TempWhseJnlLine: Record "Warehouse Journal Line" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the QtyToBeReceivedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck(var ItemJnlLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; QtyToBeReceived: Decimal; WhseReceive: Boolean; var TempWhseRcptHeader: Record "Warehouse Receipt Header" temporary; QtyToBeReceivedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeItemJnlPostLineRunWithCheck. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the DropShipOrder parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeReceivedBase parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeItemJnlPostLineRunWithCheck(var ItemJnlLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; DropShipOrder: Boolean; PurchaseHeader: Record "Purchase Header"; WhseReceive: Boolean; QtyToBeReceived: Decimal; QtyToBeReceivedBase: Decimal; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeInitAmount. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeInitAmount(var ItemJnlLine: Record "Item Journal Line"; PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine(var ItemChargePurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemLineOnBeforePostShipReceive. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemLineOnBeforePostShipReceive(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforeReceiptInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforeReceiptInvoiceErr(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforePostItemTrackingForReceiptCondition. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforePostItemTrackingForReceiptCondition(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchRcptLine: Record "Purch. Rcpt. Line"; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnAfterPurchRcptLineTestFields. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnAfterPurchRcptLineTestFields(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnAfterPurchRcptLineSetFilters. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnAfterPurchRcptLineSetFilters(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeReturnShipmentInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeReturnShipmentInvoiceErr(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostPurchLineOnAfterSetEverythingInvoiced. + /// + /// + /// Specifies the EverythingInvoiced parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the AmountsOnly parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterSetEverythingInvoiced(var PurchaseLine: Record "Purchase Line"; var EverythingInvoiced: Boolean; PurchaseHeader: Record "Purchase Header"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; var AmountsOnly: Boolean) begin end; + /// + /// Event raised by OnPostPurchLineOnAfterPostByType. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterPostByType(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnAfterCollectPurchaseLineReservEntries. + /// + /// + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCollectPurchaseLineReservEntries(var JobReservationEntry: Record "Reservation Entry"; ItemJournalLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnAfterGetPurchOrderLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetPurchOrderLine(var PurchaseLineOrder: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; PurchRcptLine: Record "Purch. Rcpt. Line") begin end; + /// + /// Event raised by OnPostPurchLineOnBeforePostByType. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLine parameter. + /// Specifies the PurchLineACY parameter. + /// Specifies the Sourcecode parameter. [IntegrationEvent(true, false)] local procedure OnPostPurchLineOnBeforePostByType(PurchHeader: Record "Purchase Header"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; PurchLine: Record "Purchase Line"; PurchLineACY: Record "Purchase Line"; Sourcecode: Code[10]) begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertCrMemoLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchCrMemoLine parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeInsertCrMemoLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; xPurchaseLine: Record "Purchase Line"); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertInvoiceLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchInvLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeInsertInvoiceLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; var PurchInvLine: Record "Purch. Inv. Line"); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertReceiptLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(true, false)] local procedure OnPostPurchLineOnBeforeInsertReceiptLine(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; PurchRcptHeader: Record "Purch. Rcpt. Header"; RoundingLineInserted: Boolean; CostBaseAmount: Decimal; xPurchaseLine: Record "Purchase Line"; var ReturnShipmentHeader: Record "Return Shipment Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var ItemLedgShptEntryNo: Integer; SrcCode: Code[10]; PreviewMode: Boolean; var WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseReceive: Boolean; WhseShip: Boolean; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; GenJnlLineDocNo: Code[20]); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the PurchRcptHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeInsertReturnShipmentLine(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; ReturnShptHeader: Record "Return Shipment Header"; TempPurchLineGlobal: Record "Purchase Line"; RoundingLineInserted: Boolean; xPurchaseLine: Record "Purchase Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeRoundAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeRoundAmount(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnPostPurchLineOnTypeCaseElse. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the SourceCode parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnTypeCaseElse(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; SourceCode: Code[10]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary); begin end; + /// + /// Event raised by OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDoc. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDoc(var PurchInvLine: Record "Purch. Inv. Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDocCrMemo. + /// + /// + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDocCrMemo(var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnAfterPurchOrderLineModify. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the ReturnShptLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnAfterPurchOrderLineModify(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary; var ReturnShptLine: Record "Return Shipment Line") begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnAfterResetTempLines. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnAfterResetTempLines(var TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnBeforeInitQtyToInvoice(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterPurchOrderLineGet. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the PurchOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterPurchOrderLineGet(var TempPurchLine: Record "Purchase Line" temporary; PurchRcptLine: Record "Purch. Rcpt. Line"; PurchOrderLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterPurchOrderLineModify. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchOrderLine parameter. + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterPurchOrderLineModify(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary; var PurchOrderLine: Record "Purchase Line"; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeUpdateBlanketOrderLine(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitOutstanding(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitQtyToInvoice(var TempPurchaseLine: Record "Purchase Line" temporary; WhseShip: Boolean; WhseReceive: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeLoop. + /// + /// + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeLoop(PurchHeader: Record "Purchase Header"; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnPurchHeaderReceive. + /// + /// + /// Specifies the PurchRcptHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnPurchHeaderReceive(var TempPurchLine: Record "Purchase Line"; PurchRcptHeader: Record "Purch. Rcpt. Header") begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnSetDefaultQtyBlank. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchPost parameter. + /// Specifies the SetDefaultQtyBlank parameter. [IntegrationEvent(true, false)] local procedure OnPostUpdateOrderLineOnSetDefaultQtyBlank(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary; PurchPost: Record "Purchases & Payables Setup"; var SetDefaultQtyBlank: Boolean) begin @@ -11373,162 +13730,360 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnProcessAssocItemJnlLineOnAfterInitTempDropShptPostBuffer. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnProcessAssocItemJnlLineOnAfterInitTempDropShptPostBuffer(var PurchLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnReleasePurchDocumentOnBeforeSetStatus. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnReleasePurchDocumentOnBeforeSetStatus(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRoundAmountOnBeforeCalculateLCYAmounts. + /// + /// + /// Specifies the PurchLineACY parameter. + /// Specifies the PurchHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TotalPurchaseLine parameter. + /// Specifies the TotalPurchaseLineLCY parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnBeforeCalculateLCYAmounts(var xPurchLine: Record "Purchase Line"; var PurchLineACY: Record "Purchase Line"; PurchHeader: Record "Purchase Header"; var IsHandled: Boolean; TotalPurchaseLine: Record "Purchase Line"; TotalPurchaseLineLCY: Record "Purchase Line"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnRoundAmountOnBeforeIncrAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the CurrExchRate parameter. + /// Specifies the NoVAT parameter. + /// Specifies the IsHandled parameter. + /// Specifies the NonDeductibleVAT parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnBeforeIncrAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchLineQty: Decimal; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line"; var xPurchaseLine: Record "Purchase Line"; var CurrExchRate: Record "Currency Exchange Rate"; var NoVAT: Boolean; var IsHandled: Boolean; var NonDeductibleVAT: Codeunit "Non-Deductible VAT") begin end; + /// + /// Event raised by OnRunOnBeforeFinalizePosting. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeFinalizePosting(var PurchaseHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShipmentHeader: Record "Return Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforeMakeInventoryAdjustment. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeMakeInventoryAdjustment(var PurchaseHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; PreviewMode: Boolean; PurchRcptHeader: Record "Purch. Rcpt. Header"; PurchInvHeader: Record "Purch. Inv. Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumPurchLines2OnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnAfterSetFilters(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnSumPurchLines2OnAfterDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnAfterDivideAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping; PurchLineQty: Decimal; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary) begin end; + /// + /// Event raised by OnSumPurchLines2OnBeforeDivideAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyType parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnBeforeDivideAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping) begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterSalesOrderHeaderModify. + /// + /// + /// Specifies the SalesSetup parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterSalesOrderHeaderModify(var SalesOrderHeader: Record "Sales Header"; var SalesSetup: Record "Sales & Receivables Setup") begin end; + /// + /// Event raised by OnUpdateAssociatedSalesOrderOnBeforeClearTempDropShptPostBuffer. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateAssociatedSalesOrderOnBeforeClearTempDropShptPostBuffer(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer") begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterSalesOrderLineModify. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesOrderHeader parameter. + /// Specifies the SalesShptHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterSalesOrderLineModify(var SalesOrderLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesOrderHeader: Record "Sales Header"; SalesShptHeader: Record "Sales Shipment Header") begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterOrderNoClearFilter. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterOrderNoClearFilter(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnUpdateAssocOrderOnBeforeSalesOrderLineModify. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnBeforeSalesOrderLineModify(var SalesOrderLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheck. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheck(var BlanketOrderPurchLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeInitOutstanding(var BlanketOrderPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnAfterCheckBlanketOrderPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnAfterCheckBlanketOrderPurchLine(var BlanketOrderPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnUpdatePurchLineBeforePostOnAfterCalcInitQtyToInvoiceNeeded. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the InitQtyToInvoiceNeeded parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePurchLineBeforePostOnAfterCalcInitQtyToInvoiceNeeded(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var InitQtyToInvoiceNeeded: Boolean) begin end; + /// + /// Event raised by OnUpdateWhseDocumentsOnAfterUpdateWhseRcpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateWhseDocumentsOnAfterUpdateWhseRcpt(var WarehouseReceiptHeader: Record "Warehouse Receipt Header") begin end; + /// + /// Event raised by OnUpdateWhseDocumentsOnAfterUpdateWhseShpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateWhseDocumentsOnAfterUpdateWhseShpt(var WarehouseShipmentHeader: Record "Warehouse Shipment Header") begin end; + /// + /// Event raised by OnBeforeRunItemJnlPostLineWithReservation. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeRunItemJnlPostLineWithReservation(var ItemJournalLine: Record "Item Journal Line"); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterCopyAndCheckItemCharge. + /// + /// [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterCopyAndCheckItemCharge(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterCalcCopyAndCheckItemChargeNeeded. + /// + /// + /// Specifies the CopyAndCheckItemChargeNeeded parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterCalcCopyAndCheckItemChargeNeeded(var PurchHeader: Record "Purchase Header"; var CopyAndCheckItemChargeNeeded: Boolean) begin end; + /// + /// Event raised by OnUpdatePostingNosOnBeforeUpdatePostingNo. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnBeforeUpdatePostingNo(PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; var ModifyHeader: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdatePostingNosOnAfterCalcShouldUpdateReceivingNo. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the ShouldUpdateReceivingNo parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnAfterCalcShouldUpdateReceivingNo(PurchaseHeader: Record "Purchase Header"; PreviewMode: Boolean; var ModifyHeader: Boolean; var ShouldUpdateReceivingNo: Boolean) begin end; + /// + /// Event raised by OnCreatePositiveOnBeforeWhseJnlPostLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnCreatePositiveOnBeforeWhseJnlPostLine(var WhseJnlLine: Record "Warehouse Journal Line") begin end; + /// + /// Event raised by OnCreatePostedWhseShptLineOnBeforeCreatePostedShptLine. + /// + /// + /// Specifies the WarehouseShipmentLine parameter. + /// Specifies the PostedWhseShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnCreatePostedWhseShptLineOnBeforeCreatePostedShptLine(var ReturnShipmentLine: Record "Return Shipment Line"; var WarehouseShipmentLine: Record "Warehouse Shipment Line"; PostedWhseShipmentHeader: Record "Posted Whse. Shipment Header") begin end; + /// + /// Event raised by OnCreatePostedRcptLineOnBeforeCreatePostedRcptLine. + /// + /// + /// Specifies the WarehouseReceiptLine parameter. + /// Specifies the PostedWhseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnCreatePostedRcptLineOnBeforeCreatePostedRcptLine(var ReturnShipmentLine: Record "Return Shipment Line"; var WarehouseReceiptLine: Record "Warehouse Receipt Line"; PostedWhseReceiptHeader: Record "Posted Whse. Receipt Header") begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnBeforeTempTrackingSpecificationModify. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnBeforeTempTrackingSpecificationModify(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification. + /// + /// [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification(var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnBeforePostUpdateInvoiceLine. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateInvoiceLine(var TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean; var PurchaseHeader: Record "Purchase Header") begin @@ -11536,102 +14091,228 @@ codeunit 90 "Purch.-Post" #if not CLEAN28 [Obsolete('This event is no longer used.', '28.0')] + /// + /// Event raised by OnBeforeCheckAssociatedSalesOrderLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckAssociatedSalesOrderLine(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; #endif + /// + /// Event raised by OnBeforeCheckAssociatedOrderLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeCheckAssociatedOrderLines(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeCheckReceiveInvoiceShip. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckReceiveInvoiceShip(var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingItemChargePerOrderOnAfterCalcFactor. + /// + /// + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the TempTrackingSpecificationChargeAssmt parameter. + /// Specifies the SignFactor parameter. + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingItemChargePerOrderOnAfterCalcFactor(var NonDistrItemJnlLine: Record "Item Journal Line"; var ItemJnlLine2: Record "Item Journal Line"; var TempTrackingSpecificationChargeAssmt: Record "Tracking Specification"; SignFactor: Integer; Factor: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingItemChargePerOrderOnAfterUpdateItemJnlLine2LocationCode. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostItemTrackingItemChargePerOrderOnAfterUpdateItemJnlLine2LocationCode(var ItemJnlLine2: Record "Item Journal Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnAfterReturnShptLineReset. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnAfterReturnShptLineReset(var ReturnShptLine: Record "Return Shipment Line"; PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeSetItemEntryRelationForShipment. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeSetItemEntryRelationForShipment(var ItemEntryRelation: Record "Item Entry Relation"; var ReturnShptLine: Record "Return Shipment Line"; var InvoicingTrackingSpecification: Record "Tracking Specification"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding(ReturnShptLine: Record "Return Shipment Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnAfterFillTempLines. + /// + /// [IntegrationEvent(true, false)] local procedure OnRunOnAfterFillTempLines(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnRunOnAfterInvoiceRounding. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(true, false)] local procedure OnRunOnAfterInvoiceRounding(var PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnRunOnBeforeFillTempLines. + /// + /// + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(true, false)] local procedure OnRunOnBeforeFillTempLines(PreviewMode: Boolean; var GenJnlLineDocNo: Code[20]) begin end; + /// + /// Event raised by OnRunOnAfterPostPurchLine. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the ReturnShipmentHeader parameter. [IntegrationEvent(true, false)] local procedure OnRunOnAfterPostPurchLine(var TempPurchLineGlobal: Record "Purchase Line" temporary; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var ReturnShipmentHeader: Record "Return Shipment Header") begin end; + /// + /// Event raised by OnAfterCalcInvDiscount. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(true, false)] local procedure OnAfterCalcInvDiscount(PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostGLAccICLineOnBeforeCheckAndInsertICGenJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the ICGenJnlLineNo parameter. [IntegrationEvent(false, false)] local procedure OnPostGLAccICLineOnBeforeCheckAndInsertICGenJnlLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; ICGenJnlLineNo: Integer) begin end; + /// + /// Event raised by OnPostGLAccICLineOnAfterCreateJobPurchLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostGLAccICLineOnAfterCreateJobPurchLine(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostItemJnlLineTrackingOnBeforeTempHandlingSpecificationFind. + /// + /// + /// Specifies the TempHandlingSpecification parameter. [IntegrationEvent(true, false)] local procedure OnPostItemJnlLineTrackingOnBeforeTempHandlingSpecificationFind(PurchLine: Record "Purchase Line"; var TempHandlingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnFinalizePostingOnAfterUpdateItemChargeAssgnt. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the TempPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(true, false)] local procedure OnFinalizePostingOnAfterUpdateItemChargeAssgnt(var PurchHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var EverythingInvoiced: Boolean; var TempPurchLine: Record "Purchase Line" temporary; var TempPurchLineGlobal: Record "Purchase Line" temporary; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeInsertValueEntryRelation. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(true, false)] local procedure OnFinalizePostingOnBeforeInsertValueEntryRelation(var PurchHeader: Record "Purchase Header"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the TempPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(true, false)] local procedure OnFinalizePostingOnBeforeInsertTrackingSpecification(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; PurchHeader: Record "Purchase Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; EverythingInvoiced: Boolean; var TempPurchLine: Record "Purchase Line"; var TempPurchLineGlobal: Record "Purchase Line") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeUpdateWhseDocuments. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the WarehouseReceive parameter. + /// Specifies the WarehouseShip parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeUpdateWhseDocuments(var PurchaseHeader: Record "Purchase Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; WarehouseReceive: Boolean; WarehouseShip: Boolean; var IsHandled: Boolean) @@ -11641,662 +14322,1477 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnFinalizePostingOnBeforeCommit. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeCommit(PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertReceiptLineOnBeforeCreatePostedRcptLine. + /// + /// + /// Specifies the WarehouseReceiptLine parameter. + /// Specifies the PostedWhseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnBeforeCreatePostedRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var WarehouseReceiptLine: Record "Warehouse Receipt Line"; PostedWhseReceiptHeader: Record "Posted Whse. Receipt Header") begin end; + /// + /// Event raised by OnInsertReceiptLineOnBeforeCreatePostedShptLine. + /// + /// + /// Specifies the WarehouseShipmentLine parameter. + /// Specifies the PostedWhseShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnBeforeCreatePostedShptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var WarehouseShipmentLine: Record "Warehouse Shipment Line"; PostedWhseShipmentHeader: Record "Posted Whse. Shipment Header") begin end; + /// + /// Event raised by OnInsertReceiptLineOnBeforeProcessWhseShptRcpt. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the PurchRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnBeforeProcessWhseShptRcpt(var PurchLine: Record "Purchase Line"; var IsHandled: Boolean; var CostBaseAmount: Decimal; PurchRcptLine: Record "Purch. Rcpt. Line") begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeArchiveUnpostedOrder. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeArchiveUnpostedOrder(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterInsertPostedHeaders. + /// + /// [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterInsertPostedHeaders(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeReleaseSalesHeader. + /// + /// + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeReleaseSalesHeader(var PurchHeader: Record "Purchase Header"; var SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnAfterReleaseSalesHeader. + /// + /// + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnAfterReleaseSalesHeader(var PurchHeader: Record "Purchase Header"; var SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdatePostingNosOnAfterSetReturnShipmentNoFromNos. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnAfterSetReturnShipmentNoFromNos(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnUpdatePostingNosOnInvoiceOnBeforeSetPostingNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnInvoiceOnBeforeSetPostingNo(var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists. + /// + /// + /// Specifies the PostingDateExists parameter. + /// Specifies the ReplacePostingDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the VATDateExists parameter. + /// Specifies the ReplaceVATDate parameter. + /// Specifies the VATDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists(var PurchHeader: Record "Purchase Header"; var PostingDateExists: Boolean; var ReplacePostingDate: Boolean; var PostingDate: Date; var ReplaceDocumentDate: Boolean; var ModifyHeader: Boolean; var VATDateExists: Boolean; var ReplaceVATDate: Boolean; var VATDate: Date) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchaseLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchaseLine(PurchaseLine: Record "Purchase Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchRcptLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchRcptLine(PurchRcptLine: Record "Purch. Rcpt. Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnShipmentLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnShipmentLine(ReturnShipmentLine: Record "Return Shipment Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertReturnShipmentHeader. + /// + /// + /// Specifies the ReturnShptHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReturnShipmentHeader(var PurchHeader: Record "Purchase Header"; var ReturnShptHeader: Record "Return Shipment Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertInvoiceHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Window parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PurchCommentLine parameter. + /// Specifies the RecordLinkManagement parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertInvoiceHeader(var PurchHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var IsHandled: Boolean; var Window: Dialog; var HideProgressWindow: Boolean; var SrcCode: Code[10]; var PurchCommentLine: Record "Purch. Comment Line"; var RecordLinkManagement: Codeunit "Record Link Management") begin end; + /// + /// Event raised by OnBeforeInserCrMemoHeader. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the Window parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the PurchCommentLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInserCrMemoHeader(var PurchHeader: Record "Purchase Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var HideProgressWindow: Boolean; var Window: Dialog; var IsHandled: Boolean; SrcCode: Code[10]; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; var PurchCommentLine: Record "Purch. Comment Line") begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnBeforeCopyComments. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnBeforeCopyComments(var PurchHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesShptHeader: Record "Sales Shipment Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnBeforePostBalancingEntry. + /// + /// + /// Specifies the LineCount parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnBeforePostBalancingEntry(var PurchHeader: Record "Purchase Header"; var LineCount: Integer) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterReceive. + /// + /// + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterReceive(var PurchHeader: Record "Purchase Header"; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeUpdateAssosOrderPostingNos. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the DropShipment parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateAssosOrderPostingNos(var TempPurchLine: Record "Purchase Line" temporary; var PurchHeader: Record "Purchase Header"; var DropShipment: Boolean; var IsHandled: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeUpdateAfterPosting. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeUpdateAfterPosting(var PurchHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var EverythingInvoiced: Boolean; var IsHandled: Boolean; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforePurchOrderLineModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforePurchOrderLineModify(var PurchOrderLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePostPurchLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostPurchLine(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeFindTempPurchLine. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeFindTempPurchLine(var TempPurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"); begin end; + /// + /// Event raised by OnCalcInvoiceOnAfterResetTempLines. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the NewInvoice parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvoiceOnAfterResetTempLines(var PurchHeader: Record "Purchase Header"; var TempPurchLine: Record "Purchase Line" temporary; var NewInvoice: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnAfterPostInvoice. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the Window parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnRunOnAfterPostInvoice(var PurchaseHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var ReturnShipmentHeader: Record "Return Shipment Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PreviewMode: Boolean; var Window: Dialog; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnCopyToTempLinesLoop. + /// + /// [IntegrationEvent(false, false)] local procedure OnCopyToTempLinesLoop(var PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnRunOnBeforePostPurchLine. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforePostPurchLine(var PurchLine: Record "Purchase Line"; var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeValidateICPartnerBusPostingGroups. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeValidateICPartnerBusPostingGroups(var TempICGenJnlLine: Record "Gen. Journal Line" temporary; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterGetCurrency. + /// + /// + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetCurrency(CurrencyCode: Code[10]; var Currency: Record Currency) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterGetPurchPrepmtAccount. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterGetPurchPrepmtAccount(var GLAcc: Record "G/L Account"; var TempPurchaseLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeGetPurchPrepmtAccount. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the GenPostingSetup parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeGetPurchPrepmtAccount(var GLAcc: Record "G/L Account"; var TempPurchaseLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; var GenPostingSetup: Record "General Posting Setup"; CompleteFunctionality: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertReturnEntryRelation. + /// + /// + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReturnEntryRelation(var ReturnShptLine: Record "Return Shipment Line"; var Result: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestPurchLineOnBeforeTestFieldQtyToReceive. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnTestPurchLineOnBeforeTestFieldQtyToReceive(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestPurchLineOnBeforeTestFieldReturnQtyToShip. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnTestPurchLineOnBeforeTestFieldReturnQtyToShip(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnAfterCalcVATAmountLines. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TempVATAmountLine parameter. [IntegrationEvent(false, false)] local procedure OnRunOnAfterCalcVATAmountLines(var PurchaseHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var TempVATAmountLine: Record "VAT Amount Line" temporary) begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforeInitAssocItemJnlLine. + /// + /// + /// Specifies the ItemShptEntryNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforeInitAssocItemJnlLine(var SalesOrderLine: Record "Sales Line"; var ItemShptEntryNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingSpecificationOnBeforeGetItemTrackingSetup. + /// + /// + /// Specifies the ItemTrackingSetup parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingSpecificationOnBeforeGetItemTrackingSetup(var PurchaseLine: Record "Purchase Line"; var ItemTrackingSetup: Record "Item Tracking Setup"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcItemJnlLineToBeReceivedAmounts. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the RemAmt parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcItemJnlLineToBeReceivedAmounts(var ItemJnlLine: Record "Item Journal Line"; var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyToBeReceived: Decimal; var RemAmt: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforeExit. + /// + /// + /// Specifies the ItemShptEntryNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforeExit(SalesOrderHeader: Record "Sales Header"; var ItemShptEntryNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeCalcQty. + /// + /// + /// Specifies the PurchOrderLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeCalcQty(var TempPurchLine: Record "Purchase Line" temporary; var PurchOrderLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnBeforeInsertSalesShptHeader. + /// + /// + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnBeforeInsertSalesShptHeader(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterShouldCalcAmounts. + /// + /// + /// Specifies the ShouldCalcAmounts parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterShouldCalcAmounts(PurchHeader: Record "Purchase Header"; var ShouldCalcAmounts: Boolean; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeDivideAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnAfterUpdateSalesOrderLine. + /// + /// + /// Specifies the SalesOrderHeader parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the SalesShipmentLine parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnAfterUpdateSalesOrderLine(SalesShptHeader: Record "Sales Shipment Header"; SalesOrderHeader: Record "Sales Header"; var SalesOrderLine: Record "Sales Line"; SalesShipmentLine: Record "Sales Shipment Line") begin end; + /// + /// Event raised by OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckPosted. + /// + /// + /// Specifies the ShouldCheckPosted parameter. [IntegrationEvent(false, false)] local procedure OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckPosted(PurchHeader: Record "Purchase Header"; var ShouldCheckPosted: Boolean) begin end; + /// + /// Event raised by OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckUnposted. + /// + /// + /// Specifies the ShouldCheckUnposted parameter. [IntegrationEvent(false, false)] local procedure OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckUnposted(PurchHeader: Record "Purchase Header"; var ShouldCheckUnposted: Boolean) begin end; + /// + /// Event raised by OnAfterCopyToTempLines. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterCopyToTempLines(var TempPurchLine: Record "Purchase Line" temporary; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnBeforeTempPurchLineSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnBeforeTempPurchLineSetFilters(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForShipment. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForShipment(var PurchHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostGLAccICLineOnBeforeCreateJobPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostGLAccICLineOnBeforeCreateJobPurchLine(var PurchHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeIsItemChargeLineWithQuantityToInvoice. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeIsItemChargeLineWithQuantityToInvoice(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerRcpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRcpt(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterGetAppliedOutboundItemLedgEntryNo. + /// + /// + /// Specifies the ItemApplicationEntry parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetAppliedOutboundItemLedgEntryNo(var ItemJnlLine: Record "Item Journal Line"; var ItemApplicationEntry: Record "Item Application Entry") begin end; + /// + /// Event raised by OnAfterGetGeneralPostingSetup. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetGeneralPostingSetup(var GeneralPostingSetup: Record "General Posting Setup"; PurchLine: Record "Purchase Line"); begin end; + /// + /// Event raised by OnBeforeConfirmJobLineType. + /// + /// + /// Specifies the HideDialog parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeConfirmJobLineType(PurchLine: Record "Purchase Line"; var HideDialog: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeConfirmJobPlanningLineNo. + /// + /// + /// Specifies the HideDialog parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeConfirmJobPlanningLineNo(PurchLine: Record "Purchase Line"; var HideDialog: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldProcessShipment. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ShouldProcessShipment parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldProcessShipment(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ShouldProcessShipment: Boolean) begin end; + /// + /// Event raised by OnCheckItemReservDisruptionOnAfterInsertTempSKU. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckItemReservDisruptionOnAfterInsertTempSKU(var Item: Record Item; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterPostItemChargePerRetRcpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerRetRcpt(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerTransfer. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerTransfer(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerRetShpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerRetShpt(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerSalesShpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerSalesShpt(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnInsertInvoiceHeaderOnBeforeCopyLinks. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertInvoiceHeaderOnBeforeCopyLinks(var PurchHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeUpdateIncomingDocument. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeUpdateIncomingDocument(var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumptionOnAfterItemLedgEntrySetFilters. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineJobConsumptionOnAfterItemLedgEntrySetFilters(var ItemLedgEntry: Record "Item Ledger Entry"; var PurchLine: Record "Purchase Line"; var ItemJournalLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnTestPurchLineOnTypeCaseOnDocumentTypeCaseElse. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnTestPurchLineOnTypeCaseOnDocumentTypeCaseElse(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterDecrementPrepmtAmtInvLCY. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PrepmtAmountInvLCY parameter. + /// Specifies the PrepmtVATAmountInvLCY parameter. [IntegrationEvent(false, false)] local procedure OnAfterDecrementPrepmtAmtInvLCY(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var PrepmtAmountInvLCY: Decimal; var PrepmtVATAmountInvLCY: Decimal) begin end; #if not CLEAN27 + /// + /// Event raised by OnSetPostingPreviewDocumentNo. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnSetPostingPreviewDocumentNo(var PreviewDocumentNo: Code[20]) begin end; + /// + /// Event raised by OnGetPostingPreviewDocumentNos. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnGetPostingPreviewDocumentNos(var PreviewDocumentNos: List of [Code[20]]) begin end; #endif + /// + /// Event raised by OnInsertPostedHeadersOnAfterInvoice. + /// + /// + /// Specifies the GenJournalLine parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInvoice(var PurchaseHeader: Record "Purchase Header"; var GenJournalLine: Record "Gen. Journal Line"; var GenJnlLineDocType: Enum "Gen. Journal Document Type"; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterSumPurchLines2. + /// + /// + /// Specifies the OldPurchaseLine parameter. + /// Specifies the NewPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterSumPurchLines2(var PurchaseHeader: Record "Purchase Header"; var OldPurchaseLine: Record "Purchase Line"; var NewPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnTypeCaseElse. + /// + /// + /// Specifies the Sign parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnTypeCaseElse(var PurchaseLine: Record "Purchase Line"; var Sign: Decimal) begin end; + /// + /// Event raised by OnSumPurchLines2OnAfterIsRoundingLineInserted. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the OldPurchaseLine parameter. + /// Specifies the RoundingLineInserted parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnAfterIsRoundingLineInserted(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var OldPurchaseLine: Record "Purchase Line"; RoundingLineInserted: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckICPartnerBlocked. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckICPartnerBlocked(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnAfterPostLines. + /// + /// + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TotalAmount parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnAfterPostLines(var PurchaseHeader: Record "Purchase Header"; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line"; var TempPurchLineGlobal: Record "Purchase Line" temporary; TotalAmount: Decimal) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforePurchaseHeaderModify. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforePurchaseHeaderModify(var PurchaseHeader: Record "Purchase Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePurchLineDimSetIDFromAppliedEntry. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePurchLineDimSetIDFromAppliedEntry(var PurchaseLineToPost: Record "Purchase Line"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterDeleteItemChargeAssgnt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterDeleteItemChargeAssgnt(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforePostItemChargePerRetRcpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRetRcpt(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerITTransfer. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TransRcptLine parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerITTransfer(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; TransRcptLine: Record "Transfer Receipt Line"; var TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerRetShpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRetShpt(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeShouldTestGetReceiptPPmtAmtToDeduct. + /// + /// + /// Specifies the CompleteFunctionality parameter. + /// Specifies the ShouldTestGetReceiptPPmtAmtToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeShouldTestGetReceiptPPmtAmtToDeduct(PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean; var ShouldTestGetReceiptPPmtAmtToDeduct: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeAmountIncludingVATAmountRound. + /// + /// + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeAmountIncludingVATAmountRound(var PurchaseLine: Record "Purchase Line"; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeCalcAmountsForFullVAT. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeCalcAmountsForFullVAT(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckMandatoryFields. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckMandatoryFields(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckPostingDate. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPostingDate(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterInsertCrMemoHeader. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertCrMemoHeader(var PurchaseHeader: Record "Purchase Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnAfterInsertInvoiceHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertInvoiceHeader(var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header") begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeOnBeforeDoCommit. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeOnBeforeDoCommit(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnReleasePurchDocumentOnBeforeDoCommit. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnReleasePurchDocumentOnBeforeDoCommit(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateAssociatedSalesOrderBeforeInitOutstanding. + /// + /// + /// Specifies the SalesOrderLine parameter. + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssociatedSalesOrderBeforeInitOutstanding(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesOrderLine: Record "Sales Line"; SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnRunOnBeforePostInvoice. + /// + /// + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforePostInvoice(PurchaseHeader: Record "Purchase Header"; var EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnCheckPurchDocumentOnBeforeCheckPurchDim. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckPurchDocumentOnBeforeCheckPurchDim(var PurchaseHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnCalcInvDiscountOnBeforeDoCommit. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvDiscountOnBeforeDoCommit(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeSetReplaceDocumentDate. + /// + /// + /// Specifies the PostingDate parameter. + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeSetReplaceDocumentDate(var PurchaseHeader: Record "Purchase Header"; var PostingDate: Date; var ReplaceDocumentDate: Boolean; var ModifyHeader: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineGet. + /// + /// + /// Specifies the TempVATAmountLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineGet(PurchaseLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckFAPostingPossibility. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckFAPostingPossibility(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckPostRestrictions. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPostRestrictions(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeTestGeneralPostingGroups. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeTestGeneralPostingGroups(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeTestFieldBilltoCustomerNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeTestFieldBilltoCustomerNo(var SalesOrderHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnAfterCalcVATBaseAmount. + /// + /// [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterCalcVATBaseAmount(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeUpdateAfterPosting. + /// + /// + /// Specifies the SuppressCommit parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateAfterPosting(var PurchaseHeader: Record "Purchase Header"; SuppressCommit: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckAndUpdate. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckAndUpdate(var PurchaseHeader: Record "Purchase Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterCalcTotalChargeAmt. + /// + /// + /// Specifies the QtyToAssign parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnAfterCalcTotalChargeAmt(var PurchaseLineToPost: Record "Purchase Line"; QtyToAssign: Decimal; var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostPurchLineOnAfterInsertReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the TempPurchaseLineGlobal parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterInsertReturnShipmentLine(var PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; ReturnShptHeader: Record "Return Shipment Header"; TempPurchaseLineGlobal: Record "Purchase Line"; RoundingLineInserted: Boolean; xPurchaseLine: Record "Purchase Line"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."); begin end; + /// + /// Event raised by OnBeforeMakeInventoryAdjustment. + /// + /// [IntegrationEvent(false, false)] procedure OnBeforeMakeInventoryAdjustment(var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeCheckItemReservDisruption. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckItemReservDisruption(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterSetCheckApplToItemEntry. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterSetCheckApplToItemEntry(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheckBlanketOrderPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheckBlanketOrderPurchLine(var BlanketOrderPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeModifyInvoicedQtyOnPurchRcptLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeModifyInvoicedQtyOnPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeTestPostingDate. + /// + /// + /// Specifies the ReplacePostingDate parameter. + /// Specifies the SkipTestPostingDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeTestPostingDate(var PurchaseHeader: Record "Purchase Header"; ReplacePostingDate: Boolean; var SkipTestPostingDate: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckItemCharge. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckItemCharge(var ItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeProcedurePostAssocItemJnlLine. + /// + /// + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the ItemShptEntryNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeProcedurePostAssocItemJnlLine(var SalesOrderLine: Record "Sales Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempHandlingSpecification: Record "Tracking Specification" temporary; QtyToBeShipped: Decimal; QtyToBeShippedBase: Decimal; var ItemShptEntryNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostDistributeItemChargeOnAfterSetFactor. + /// + /// + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostDistributeItemChargeOnAfterSetFactor(TempItemLedgerEntry: Record "Item Ledger Entry"; var Factor: Decimal) begin end; + /// + /// Event raised by OnBeforeCalcItemJnlLineToBeInvoicedAmounts. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the RemAmt parameter. + /// Specifies the RemDiscAmt parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcItemJnlLineToBeInvoicedAmounts(var ItemJournalLine: Record "Item Journal Line"; var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; var RemAmt: Decimal; var RemDiscAmt: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemJnlLineWhseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the PostBefore parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLineWhseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary; PurchaseLine: Record "Purchase Line"; PostBefore: Boolean) begin end; + /// + /// Event raised by OnAfterPostItemJnlLineWhseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLineWhseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerTransferOnBeforeProcessItemApplicationEntry. + /// + /// + /// Specifies the ItemApplicationEntry parameter. + /// Specifies the TransferReceiptLine parameter. + /// Specifies the TotalAmountToPostFCY parameter. + /// Specifies the AmountToPostFCY parameter. + /// Specifies the GeneralLedgerSetup parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerTransferOnBeforeProcessItemApplicationEntry(PurchaseLine: Record "Purchase Line"; ItemApplicationEntry: Record "Item Application Entry"; TransferReceiptLine: Record "Transfer Receipt Line"; TotalAmountToPostFCY: Decimal; var AmountToPostFCY: Decimal; GeneralLedgerSetup: Record "General Ledger Setup"; PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemCharge. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ItemEntryNo parameter. + /// Specifies the QuantityBase parameter. + /// Specifies the AmountToAssign parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the IndirectCostPct parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemCharge(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; ItemEntryNo: Integer; QuantityBase: Decimal; AmountToAssign: Decimal; QtyToAssign: Decimal; IndirectCostPct: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertedPrepmtVATBaseToDeductOnAfterSetTempPrepmtDeductLCYPurchaseLine. + /// + /// + /// Specifies the PrepmtVATBaseToDeduct parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertedPrepmtVATBaseToDeductOnAfterSetTempPrepmtDeductLCYPurchaseLine(var TempPrepmtDeductLCYPurchaseLine: Record "Purchase Line" temporary; var PrepmtVATBaseToDeduct: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeAdjustPrepmtAmountLCY. + /// + /// + /// Specifies the PrepmtPurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustPrepmtAmountLCY(PurchaseHeader: Record "Purchase Header"; var PrepmtPurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeAdjustFinalInvWith100PctPrepmt. + /// + /// + /// Specifies the TempPrepmtDeductLCYPurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustFinalInvWith100PctPrepmt(var CombinedPurchaseLine: Record "Purchase Line"; var TempPrepmtDeductLCYPurchaseLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateInvoicedQtyOnReturnShipmentLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoicedQtyOnReturnShipmentLine(var ReturnShipmentLine: Record "Return Shipment Line") begin end; + /// + /// Event raised by OnAfterCheckPurchRcptLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckPurchRcptLine(PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnUpdateItemChargeAssgntOnBeforeItemChargeAssignmentPurchModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateItemChargeAssgntOnBeforeItemChargeAssignmentPurchModify(var ItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)") begin end; + /// + /// Event raised by OnBeforeUpdateReceiptInvoicingQuantities. + /// + /// + /// Specifies the SkipQuantityUpdate parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateReceiptInvoicingQuantities(PurchLine: Record "Purchase Line"; var SkipQuantityUpdate: Boolean) begin end; + /// + /// Event raised by OnSetCommitBehavior. + /// + /// [IntegrationEvent(false, false)] local procedure OnSetCommitBehavior(var IgnoreCommit: Boolean) begin end; + + /// + /// Event raised by OnAfterProcessPostingLines. + /// + /// + /// Specifies the TotalPurchLine parameter. + /// Specifies the VendLedgEntry parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the Window parameter. + [IntegrationEvent(false, false)] + local procedure OnAfterProcessPostingLines(var PurchHeader: Record "Purchase Header"; var TotalPurchLine: Record "Purchase Line"; var VendLedgEntry: Record "Vendor Ledger Entry"; InvoicePostingParameters: Record "Invoice Posting Parameters"; SuppressCommit: Boolean; EverythingInvoiced: Boolean; var Window: Dialog) + begin + end; + + /// + /// Event is raised after the CheckPostRestrictions function is executed + /// + /// The purchase header record that was checked for post restrictions. + [IntegrationEvent(false, false)] + local procedure OnAfterCheckPostRestrictions(var PurchaseHeader: Record "Purchase Header") + begin + end; } diff --git a/src/Layers/RU/BaseApp/Sales/Posting/SalesPost.Codeunit.al b/src/Layers/RU/BaseApp/Sales/Posting/SalesPost.Codeunit.al index 0349f3e6b95..1c00b97f540 100644 --- a/src/Layers/RU/BaseApp/Sales/Posting/SalesPost.Codeunit.al +++ b/src/Layers/RU/BaseApp/Sales/Posting/SalesPost.Codeunit.al @@ -373,6 +373,8 @@ codeunit 80 "Sales-Post" ProcessPosting(SalesHeader, SalesHeader2, TempDropShptPostBuffer, CustLedgEntry, EverythingInvoiced); + Clear(GenJnlPostLine); + UpdateLastPostingNos(SalesHeader); OnRunOnBeforeFinalizePosting( @@ -561,6 +563,8 @@ codeunit 80 "Sales-Post" OnRunOnBeforeMakeInventoryAdjustment(SalesHeader, SalesInvHeader, GenJnlPostLine, ItemJnlPostLine, PreviewMode, SkipInventoryAdjustment); if not SkipInventoryAdjustment then MakeInventoryAdjustment(); + + OnAfterProcessPostingLines(SalesHeader, TotalSalesLine, CustLedgEntry, InvoicePostingParameters, SuppressCommit, EverythingInvoiced, Window, HideProgressWindow); end; /// @@ -6375,6 +6379,8 @@ codeunit 80 "Sales-Post" if SalesHeader."Bill-to Contact No." <> '' then if Contact.Get(SalesHeader."Bill-to Contact No.") then Contact.CheckIfPrivacyBlocked(true); + + OnAfterCheckPostRestrictions(SalesHeader); end; local procedure CheckCustBlockage(SalesHeader: Record "Sales Header"; CustCode: Code[20]; ExecuteDocCheck: Boolean) @@ -10136,6 +10142,7 @@ codeunit 80 "Sales-Post" /// Indicates whether the item journal line should be posted. /// Indicates whether warehouse shipment is involved. /// The warehouse receipt header. + /// Specifies the WarehouseShipmentHeader parameter. [IntegrationEvent(true, false)] local procedure OnAfterPostItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var WhseJnlPostLine: Codeunit "Whse. Jnl.-Register Line"; OriginalItemJnlLine: Record "Item Journal Line"; var ItemShptEntryNo: Integer; IsATO: Boolean; var TempHandlingSpecification: Record "Tracking Specification"; var TempATOTrackingSpecification: Record "Tracking Specification"; TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; ShouldPostItemJnlLine: Boolean; WhseShip: Boolean; WhseRcptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header") begin @@ -13316,839 +13323,1969 @@ codeunit 80 "Sales-Post" begin end; + /// + /// Event raised by OnSumSalesLines2OnAfterDivideAmount. + /// + /// + /// Specifies the SalesLineQty parameter. + /// Specifies the QtyType parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnAfterDivideAmount(var OldSalesLine: Record "Sales Line"; var SalesLineQty: Decimal; QtyType: Option General,Invoicing,Shipping) begin end; + /// + /// Event raised by OnSumSalesLines2OnAfterCalcTotalAdjCostLCY. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnAfterCalcTotalAdjCostLCY(var TotalAdjCostLCY: decimal; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnSumSalesLines2OnBeforeCalcVATAmountLines. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the InsertSalesLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnBeforeCalcVATAmountLines(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; InsertSalesLine: Boolean; var TempVATAmountLine: Record "VAT Amount Line" temporary; QtyType: Option General,Invoicing,Shipping; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumSalesLines2OnBeforeNewSalesLineInsert. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnBeforeNewSalesLineInsert(var NewSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumSalesLines2SetFilter. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the InsertSalesLine parameter. + /// Specifies the QtyType parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2SetFilter(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; InsertSalesLine: Boolean; var QtyType: Option) begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnBeforePostTempWhseJnlLine2. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnBeforePostTempWhseJnlLine2(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterTestUpdatedSalesLine. + /// + /// + /// Specifies the EverythingInvoiced parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterTestUpdatedSalesLine(var SalesLine: Record "Sales Line"; var EverythingInvoiced: Boolean; SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineBeforeInitQtyToInvoice. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineBeforeInitQtyToInvoice(var TempSalesLine: Record "Sales Line" temporary; WhseShip: Boolean; WhseReceive: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitOutstanding(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitTempSalesLineQuantities. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitTempSalesLineQuantities(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterUpdateInvoicedValues. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterUpdateInvoicedValues(var TempSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; TempSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; TempSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterInsertSalesOrderHeader. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterInsertSalesOrderHeader(var SalesOrderLine: Record "Sales Line"; TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; WhseShip: Boolean; WhseReceive: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeUpdateInvoicedValues. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeUpdateInvoicedValues(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnSetDefaultQtyBlank. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesSetup parameter. + /// Specifies the SetDefaultQtyBlank parameter. [IntegrationEvent(true, false)] local procedure OnPostUpdateOrderLineOnSetDefaultQtyBlank(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; SalesSetup: Record "Sales & Receivables Setup"; var SetDefaultQtyBlank: Boolean) begin end; + /// + /// Event raised by OnCalcInvoiceOnAfterTempSalesLineSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvoiceOnAfterTempSalesLineSetFilters(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterCalcInvDiscount. + /// + /// + /// Specifies the TempWhseShptHeader parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterCalcInvDiscount(SalesHeader: Record "Sales Header"; TempWhseShptHeader: Record "Warehouse Shipment Header" temporary; PreviewMode: Boolean; var TempSalesLineGlobal: Record "Sales Line" temporary; SuppressCommit: Boolean; WhseReceive: Boolean; WhseShip: Boolean); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterReleaseSalesDocument. + /// + /// + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterReleaseSalesDocument(SalesHeader: Record "Sales Header"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeSetPostingFlags. + /// + /// + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the HideProgressWindow parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnBeforeSetPostingFlags(var SalesHeader: Record "Sales Header"; var TempSalesLineGlobal: Record "Sales Line" temporary; var ModifyHeader: Boolean; var HideProgressWindow: Boolean); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetPostingFlags. + /// + /// + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the ModifyHeader parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterSetPostingFlags(var SalesHeader: Record "Sales Header"; var TempSalesLineGlobal: Record "Sales Line" temporary; var ModifyHeader: Boolean); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetSourceCode. + /// + /// + /// Specifies the SourceCodeSetup parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetSourceCode(var SalesHeader: Record "Sales Header"; SourceCodeSetup: Record "Source Code Setup"; var SrcCode: Code[10]); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetPoszingFromWhseRef. + /// + /// + /// Specifies the InvtPickPutaway parameter. + /// Specifies the PostingFromWhseRef parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetPoszingFromWhseRef(var SalesHeader: Record "Sales Header"; var InvtPickPutaway: Boolean; var PostingFromWhseRef: Integer); begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCalcInvDiscount. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the RefreshNeeded parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCalcInvDiscount(var SalesHeader: Record "Sales Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseReceive: Boolean; WhseShip: Boolean; var RefreshNeeded: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCheckPostRestrictions. + /// + /// + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCheckPostRestrictions(var SalesHeader: Record "Sales Header"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnCheckAssosOrderLinesOnAfterSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssosOrderLinesOnAfterSetFilters(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnCheckSalesDocumentOnAfterCalcShouldCheckItemCharge. + /// + /// + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ShouldCheckItemCharge parameter. + /// Specifies the ModifyHeader parameter. [IntegrationEvent(true, false)] local procedure OnCheckSalesDocumentOnAfterCalcShouldCheckItemCharge(var SalesHeader: Record "Sales Header"; WhseReceive: Boolean; WhseShip: Boolean; var ShouldCheckItemCharge: Boolean; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForShipOnBeforeCheck. + /// + /// + /// Specifies the TempWhseShipmentHeader parameter. + /// Specifies the TempWhseReceiptHeader parameter. + /// Specifies the Ship parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForShipOnBeforeCheck(var SalesHeader: Record "Sales Header"; var TempWhseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWhseReceiptHeader: Record "Warehouse Receipt Header" temporary; var Ship: Boolean; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForReceiveOnBeforeCheck. + /// + /// + /// Specifies the TempWhseShipmentHeader parameter. + /// Specifies the TempWhseReceiptHeader parameter. + /// Specifies the Receive parameter. [IntegrationEvent(true, false)] local procedure OnCheckTrackingAndWarehouseForReceiveOnBeforeCheck(var SalesHeader: Record "Sales Header"; var TempWhseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWhseReceiptHeader: Record "Warehouse Receipt Header" temporary; var Receive: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingSpecificationOnAfterTempItemSalesLineLoop. + /// + /// [IntegrationEvent(false, false)] local procedure OnCheckTrackingSpecificationOnAfterTempItemSalesLineLoop(var TempItemSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckCustBlockageOnAfterTempLinesSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckCustBlockageOnAfterTempLinesSetFilters(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary); begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterTempPrepmtSalesLineSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterTempPrepmtSalesLineSetFilters(var TempPrepmtSalesLine: Record "Sales Line" temporary; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterGetSalesPrepmtAccount. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterGetSalesPrepmtAccount(var GLAcc: Record "G/L Account"; var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeGetSalesPrepmtAccount. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the GenPostingSetup parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeGetSalesPrepmtAccount(var GLAcc: Record "G/L Account"; var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header"; var GenPostingSetup: Record "General Posting Setup"; CompleteFunctionality: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterTempSalesLineSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempPrepmtSalesLine parameter. + /// Specifies the NextLineNo parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterTempSalesLineSetFilters(var TempSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempPrepmtSalesLine: Record "Sales Line" temporary; var NextLineNo: Integer) begin end; + /// + /// Event raised by OnFinalizePostingOnAfterUpdateItemChargeAssgnt. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnAfterUpdateItemChargeAssgnt(var SalesHeader: Record "Sales Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the TempItemChargeAssignmentSales parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the TempSalesLine parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the SalesPost parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeInsertTrackingSpecification(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)" temporary; SalesHeader: Record "Sales Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; EverythingInvoiced: Boolean; var TempSalesLine: Record "Sales Line" temporary; var TempSalesLineGlobal: Record "Sales Line" temporary; SalesPost: Codeunit "Sales-Post") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeCreateOutboxSalesTrans. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeCreateOutboxSalesTrans(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; EverythingInvoiced: Boolean; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeDeleteApprovalEntries. + /// + /// + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeDeleteApprovalEntries(var SalesHeader: Record "Sales Header"; var EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeGenJnlPostPreviewThrowError. + /// + /// + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeGenJnlPostPreviewThrowError(SalesHeader: Record "Sales Header"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforePost. + /// + /// + /// Specifies the PurchOrderLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforePost(var ItemJournalLine: Record "Item Journal Line"; PurchOrderLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostATOOnBeforePostedATOLinkInsert. + /// + /// + /// Specifies the AssemblyHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostATOOnBeforePostedATOLinkInsert(var PostedATOLink: Record "Posted Assemble-to-Order Link"; var AssemblyHeader: Record "Assembly Header"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostATOAssocItemJnlLineOnBeforeRemainingPost. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the PostedATOLink parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the ItemLedgShptEntryNo parameter. [IntegrationEvent(false, false)] local procedure OnPostATOAssocItemJnlLineOnBeforeRemainingPost(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var PostedATOLink: Record "Posted Assemble-to-Order Link"; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal; var ItemLedgShptEntryNo: Integer) begin end; + /// + /// Event raised by OnPostDropOrderShipmentOnAfterUpdateBlanketOrderLine. + /// + /// + /// Specifies the PurchOrderLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostDropOrderShipmentOnAfterUpdateBlanketOrderLine(PurchOrderHeader: Record "Purchase Header"; PurchOrderLine: Record "Purchase Line"; TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesShptHeader: Record "Sales Shipment Header"; SalesHeader: Record "Sales Header"; PurchRcptHeader: Record "Purch. Rcpt. Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyDocumentFields. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header") begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCalcShouldPostItemJnlLineItemCharges. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the ShouldPostItemJnlLineItemCharges parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCalcShouldPostItemJnlLineItemCharges(SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var ShouldPostItemJnlLineItemCharges: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterPrepareItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the RemAmt parameter. + /// Specifies the RemDiscAmt parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterPrepareItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; WhseShip: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var QtyToBeShipped: Decimal; TrackingSpecification: Record "Tracking Specification"; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; var QtyToBeShippedBase: Decimal; var RemAmt: Decimal; var RemDiscAmt: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyItemCharge. + /// + /// + /// Specifies the TempItemChargeAssgntSales parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyItemCharge(var ItemJournalLine: Record "Item Journal Line"; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeIsJobContactLineCheck. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the ShouldPostItemJnlLine parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the QtyToBeShipped parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeIsJobContactLineCheck(var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var ShouldPostItemJnlLine: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; QtyToBeShipped: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck(var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforePostItemJnlLineWhseLine. + /// + /// + /// Specifies the TempWhseJnlLine parameter. + /// Specifies the TempWhseTrackingSpecification parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforePostItemJnlLineWhseLine(var ItemJnlLine: Record "Item Journal Line"; var TempWhseJnlLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeTransferReservToItemJnlLine. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the CheckApplFromItemEntry parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeShippedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeTransferReservToItemJnlLine(SalesLine: Record "Sales Line"; ItemJnlLine: Record "Item Journal Line"; var CheckApplFromItemEntry: Boolean; var TrackingSpecification: Record "Tracking Specification"; QtyToBeShippedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeCopyTrackingFromSpec. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeCopyTrackingFromSpec(TrackingSpecification: Record "Tracking Specification"; var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; IsATO: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine(var ItemChargeSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemJnlLinePrepareJournalLineOnBeforeCalcItemJnlAmounts. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLinePrepareJournalLineOnBeforeCalcItemJnlAmounts(var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; IsATO: Boolean) begin end; + /// + /// Event raised by OnPostItemChargeOnBeforePostItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the TempItemChargeAssgntSales parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnBeforePostItemJnlLine(var SalesLineToPost: Record "Sales Line"; var SalesLine: Record "Sales Line"; QtyToAssign: Decimal; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnAfterCopyToItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the GeneralLedgerSetup parameter. + /// Specifies the QtyToInvoice parameter. + /// Specifies the TempItemChargeAssignmentSales parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnAfterCopyToItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var SalesLine: Record "Sales Line"; GeneralLedgerSetup: Record "General Ledger Setup"; QtyToInvoice: Decimal; var TempItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)" temporary) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnAfterTempTrackingSpecificationInvSetFilters. + /// + /// + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the TempTrackingSpecificationInv parameter. + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the TotalSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnAfterTempTrackingSpecificationInvSetFilters(SalesHeader: record "Sales Header"; var ItemJnlLine2: record "Item Journal Line"; var TempTrackingSpecificationInv: Record "Tracking Specification" temporary; SalesLine: Record "Sales Line"; var IsHandled: Boolean; var TotalSalesLineLCY: Record "Sales Line"; var TotalSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnBeforeTestJobNo. + /// + /// + /// Specifies the SkipTestJobNo parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnBeforeTestJobNo(SalesLine: Record "Sales Line"; var SkipTestJobNo: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnBeforeLastRunWithCheck. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnBeforeLastRunWithCheck(NonDistrItemJnlLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnBeforeRunWithCheck. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnBeforeRunWithCheck(ItemJnlLine2: Record "Item Journal Line"; var IsHandled: Boolean; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerShptOnBeforeTestJobNo. + /// + /// + /// Specifies the SkipTestJobNo parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerShptOnBeforeTestJobNo(SalesShipmentLine: Record "Sales Shipment Line"; var SkipTestJobNo: Boolean; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerShptOnAfterCheckItemChargePerShpt. + /// + /// + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the DistributeCharge parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerShptOnAfterCheckItemChargePerShpt(SalesShipmentLine: Record "Sales Shipment Line"; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; DistributeCharge: Boolean; var IsHandled: Boolean; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerShptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the DistributeCharge parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerShptOnAfterCalcDistributeCharge(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesShptLine: Record "Sales Shipment Line"; TempItemLedgEntry: Record "Item Ledger Entry" temporary; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; var DistributeCharge: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the ReturnRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the DistributeCharge parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; ReturnRcptLine: Record "Return Receipt Line"; TempItemLedgEntry: Record "Item Ledger Entry" temporary; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; var DistributeCharge: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRetRcptOnBeforeTestFieldJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetRcptOnBeforeTestFieldJobNo(ReturnReceiptLine: Record "Return Receipt Line"; var IsHandled: Boolean; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingLineOnAfterRetrieveInvoiceSpecification. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingLineOnAfterRetrieveInvoiceSpecification(var SalesLine: Record "Sales Line"; var TempInvoicingSpecification: Record "Tracking Specification" temporary; var TrackingSpecificationExists: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnAfterSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnAfterSetFilters(var SalesShipmentLine: Record "Sales Shipment Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnAfterUpdateSalesShptLineFields. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnAfterUpdateSalesShptLineFields(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the HasATOShippedNotInvoiced parameter. + /// Specifies the ShouldAdjustQuantityRounding parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding(SalesShptLine: Record "Sales Shipment Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; HasATOShippedNotInvoiced: Boolean; var ShouldAdjustQuantityRounding: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeShipmentInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the ItemJnlRollRndg parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(true, false)] local procedure OnPostItemTrackingForShipmentOnBeforeShipmentInvoiceErr(SalesLine: Record "Sales Line"; var IsHandled: Boolean; SalesHeader: Record "Sales Header"; var ItemJnlRollRndg: Boolean; TrackingSpecificationExists: Boolean; var TempTrackingSpecification: Record "Tracking Specification" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeReturnReceiptInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the ItemJnlRollRndg parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(true, false)] local procedure OnPostItemTrackingForShipmentOnBeforeReturnReceiptInvoiceErr(SalesLine: Record "Sales Line"; var IsHandled: Boolean; SalesHeader: Record "Sales Header"; var ItemJnlRollRndg: Boolean; TrackingSpecificationExists: Boolean; var TempTrackingSpecification: Record "Tracking Specification" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnAfterSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnAfterSetFilters(var ReturnReceiptLine: Record "Return Receipt Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertCrMemoLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertCrMemoLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean; xSalesLine: Record "Sales Line"; SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertInvoiceLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the ShouldInsertInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertInvoiceLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean; xSalesLine: Record "Sales Line"; SalesInvHeader: Record "Sales Invoice Header"; var ShouldInsertInvoiceLine: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertReturnReceiptLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertReturnReceiptLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertShipmentLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesLineACY parameter. + /// Specifies the DocType parameter. + /// Specifies the DocNo parameter. + /// Specifies the ExtDocNo parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertShipmentLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean; SalesLineACY: Record "Sales Line"; DocType: Option; DocNo: Code[20]; ExtDocNo: Code[35]) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterSetEverythingInvoiced. + /// + /// + /// Specifies the EverythingInvoiced parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterSetEverythingInvoiced(SalesLine: Record "Sales Line"; var EverythingInvoiced: Boolean; var IsHandled: Boolean; SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterRoundAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterRoundAmount(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; GenJnlLineDocNo: Code[20]) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeTestJobNo(SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterPostItemTrackingLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempPostedATOLink parameter. [IntegrationEvent(true, false)] local procedure OnPostSalesLineOnAfterPostItemTrackingLine(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterTestSalesLine. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the WhseShptHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CostBaseAmount parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterTestSalesLine(var SalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header"; var WhseShptHeader: Record "Warehouse Shipment Header"; WhseShip: Boolean; PreviewMode: Boolean; var CostBaseAmount: Decimal) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforePostItemTrackingLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(true, false)] local procedure OnPostSalesLineOnBeforePostItemTrackingLine(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var ItemLedgShptEntryNo: Integer; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal; GenJnlLineDocNo: Code[20]; SrcCode: Code[10]; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeTestUnitOfMeasureCode. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeTestUnitOfMeasureCode(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterAdjustPrepmtAmountLCY. + /// + /// + /// Specifies the xSalesLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterAdjustPrepmtAmountLCY(var SalesLine: record "Sales Line"; var xSalesLine: record "Sales Line"; TempTrackingSpecification: record "Tracking Specification" temporary; SalesHeader: record "Sales Header") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterInsertReturnReceiptLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the ReturnRcptHeader parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the SalesShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterInsertReturnReceiptLine(var SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var xSalesLine: Record "Sales Line"; ReturnRcptHeader: Record "Return Receipt Header"; RoundingLineInserted: Boolean; var TempTrackingSpecification: Record "Tracking Specification" temporary; var ItemLedgShptEntryNo: Integer; SalesShipmentHeader: Record "Sales Shipment Header") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterGetSalesOrderLine. + /// + /// + /// Specifies the SalesShptLine parameter. + /// Specifies the SalesOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterGetSalesOrderLine(var TempSalesLine: Record "Sales Line" temporary; SalesShptLine: Record "Sales Shipment Line"; SalesOrderLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeCalcQuantityInvoiced. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeCalcQuantityInvoiced(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnAfterGetSalesOrderLine. + /// + /// + /// Specifies the ReturnRcptLine parameter. + /// Specifies the SalesOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnAfterGetSalesOrderLine(var TempSalesLine: Record "Sales Line" temporary; ReturnRcptLine: Record "Return Receipt Line"; SalesOrderLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeInitQtyToInvoice(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnAfterModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnAfterModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeCalcQuantityInvoiced. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeCalcQuantityInvoiced(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnProcessAssocItemJnlLineOnBeforeTempDropShptPostBufferInsert. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnProcessAssocItemJnlLineOnBeforeTempDropShptPostBufferInsert(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnProcessAssocItemJnlLineOnBeforePostAssocItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnProcessAssocItemJnlLineOnBeforePostAssocItemJnlLine(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnRoundAmountOnBeforeIncrAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineQty parameter. + /// Specifies the TotalSalesLine parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnBeforeIncrAmount(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineQty: Decimal; var TotalSalesLine: Record "Sales Line"; var TotalSalesLineLCY: Record "Sales Line"; var xSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforeCheckTotalInvoiceAmount. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeCheckTotalInvoiceAmount(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnRunOnBeforeFinalizePosting. + /// + /// + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the ReturnReceiptHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeFinalizePosting(var SalesHeader: Record "Sales Header"; var SalesShipmentHeader: Record "Sales Shipment Header"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var ReturnReceiptHeader: Record "Return Receipt Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; CommitIsSuppressed: Boolean; GenJnlLineExtDocNo: Code[35]; var EverythingInvoiced: Boolean; GenJnlLineDocNo: Code[20]; SrcCode: Code[10]; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforePostSalesLineEndLoop. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the LastLineRetrieved parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the RecSalesHeader parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the ReturnReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforePostSalesLineEndLoop(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var LastLineRetrieved: Boolean; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; RecSalesHeader: Record "Sales Header"; xSalesLine: Record "Sales Line"; var SalesShipmentHeader: Record "Sales Shipment Header"; var ReturnReceiptHeader: Record "Return Receipt Header") begin end; + /// + /// Event raised by OnGetATOItemLedgEntriesNotInvoicedOnBeforeItemLedgEntryNotInvoicedInsert. + /// + /// [IntegrationEvent(false, false)] local procedure OnGetATOItemLedgEntriesNotInvoicedOnBeforeItemLedgEntryNotInvoicedInsert(var ItemLedgEntry: Record "Item Ledger Entry") begin end; + /// + /// Event raised by OnGetPostedDocumentRecordElseCase. + /// + /// + /// Specifies the PostedSalesDocumentVariant parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnGetPostedDocumentRecordElseCase(SalesHeader: Record "Sales Header"; var PostedSalesDocumentVariant: Variant; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnGetSalesLinesOnAfterFillTempLines. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnGetSalesLinesOnAfterFillTempLines(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; - [IntegrationEvent(false, false)] - local procedure OnPostItemLineOnAfterMakeSalesLineToShip(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) + /// + /// Event raised by OnPostItemLineOnAfterMakeSalesLineToShip. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempPostedATOLink parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + [IntegrationEvent(false, false)] + local procedure OnPostItemLineOnAfterMakeSalesLineToShip(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemLineOnBeforeMakeSalesLineToShip. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempPostedATOLink parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the IsHandled parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the ReturnReceiptHeader parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the TempHandlingSpecificationInv parameter. + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnPostItemLineOnBeforeMakeSalesLineToShip(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var ItemLedgShptEntryNo: Integer; var IsHandled: Boolean; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; ReturnReceiptHeader: Record "Return Receipt Header"; var TempHandlingSpecification: Record "Tracking Specification" temporary; var TempHandlingSpecificationInv: Record "Tracking Specification" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnPostItemLineOnBeforePostItemInvoiceLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempPostedATOLink parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemLineOnBeforePostItemInvoiceLine(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterPostItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnAfterPostItemJnlLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargeLineOnAfterTempItemChargeAssgntSalesLoop. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineParam parameter. [IntegrationEvent(true, false)] local procedure OnPostItemChargeLineOnAfterTempItemChargeAssgntSalesLoop(var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineParam: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargeLineOnBeforePostItemCharge. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeLineOnBeforePostItemCharge(var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforeReturnRcptLineModify. + /// + /// + /// Specifies the ReturnRcptLine parameter. + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforeReturnRcptLineModify(SalesHeader: Record "Sales Header"; var ReturnRcptLine: Record "Return Receipt Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforeAdjustQuantityRounding. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the ShouldAdjustQuantityRounding parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforeAdjustQuantityRounding(ReturnRcptLine: Record "Return Receipt Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; var ShouldAdjustQuantityRounding: Boolean) begin end; + /// + /// Event raised by OnReleaseSalesDocumentOnBeforeSetStatus. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SavedStatus parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the SuppressCommit parameter. [IntegrationEvent(false, false)] local procedure OnReleaseSalesDocumentOnBeforeSetStatus(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; SavedStatus: Enum "Sales Document Status"; PreviewMode: Boolean; SuppressCommit: Boolean); begin end; + /// + /// Event raised by OnRoundAmountOnAfterAssignSalesLines. + /// + /// + /// Specifies the SalesLineACY parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TotalSalesLines parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnAfterAssignSalesLines(var xSalesLine: Record "Sales Line"; var SalesLineACY: Record "Sales Line"; SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var TotalSalesLines: Record "Sales Line"; var TotalSalesLineLCY: Record "Sales Line"; var SalesLine: Record "Sales Line"); begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification. + /// + /// [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification(var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSendICDocumentOnBeforeSetICStatus. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSendICDocumentOnBeforeSetICStatus(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSendPostedDocumentRecordElseCase. + /// + /// + /// Specifies the DocumentSendingProfile parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSendPostedDocumentRecordElseCase(SalesHeader: Record "Sales Header"; var DocumentSendingProfile: Record "Document Sending Profile"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestSalesLineOnAfterTestSalesLineJob. + /// + /// [IntegrationEvent(false, false)] local procedure OnTestSalesLineOnAfterTestSalesLineJob(var SalesLine: record "Sales Line") begin end; + /// + /// Event raised by OnTestSalesLineOnAfterCalcShouldTestReturnQty. + /// + /// + /// Specifies the ShouldTestReturnQty parameter. [IntegrationEvent(false, false)] local procedure OnTestSalesLineOnAfterCalcShouldTestReturnQty(SalesLine: Record "Sales Line"; var ShouldTestReturnQty: Boolean) begin end; + /// + /// Event raised by OnBeforeTestGenPostingGroups. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestGenPostingGroups(var SalesLine: record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateSalesLineBeforePostOnAfterPostJobContractLine. + /// + /// + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateSalesLineBeforePostOnAfterPostJobContractLine(SalesInvoiceHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnUpdateAssosOrderOnAfterPurchOrderHeaderModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderOnAfterPurchOrderHeaderModify(var PurchOrderHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterModifyPurchLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterModifyPurchLine(var PurchOrderLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnUpdateAssocOrderOnBeforeModifyPurchLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnBeforeModifyPurchLine(var PurchOrderLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnAfterReleasePurchaseDocument. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnAfterReleasePurchaseDocument(var PurchOrderHeader: Record "Purchase Header"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeReleasePurchaseDocument. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeReleasePurchaseDocument(var PurchOrderHeader: Record "Purchase Header"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateAfterPostingOnBeforeFindSetForUpdate. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAfterPostingOnBeforeFindSetForUpdate(var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheck. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheck(var BlanketOrderSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheckSellToCustomerNo. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheckSellToCustomerNo(var BlanketOrderSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeInitOutstanding(var BlanketOrderSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnUpdateInvoicedQtyOnShipmentLineOnBeforeModifySalesShptLine. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnUpdateInvoicedQtyOnShipmentLineOnBeforeModifySalesShptLine(var SalesShptLine: Record "Sales Shipment Line"; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnAfterInitAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterInitAmount(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnAfterInitLineDiscountAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterInitLineDiscountAmount(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineRemainderModify. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineRemainderModify(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency) begin end; + /// + /// Event raised by OnBeforeCalcVATBaseAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcVATBaseAmount(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostUpdateInvoiceLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateInvoiceLine(var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostUpdateReturnReceiptLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostUpdateReturnReceiptLine(var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertTrackingSpecification(SalesHeader: Record "Sales Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSendPostedDocumentRecord. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the DocumentSendingProfile parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSendPostedDocumentRecord(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var DocumentSendingProfile: Record "Document Sending Profile") begin end; + /// + /// Event raised by OnAfterPostItemChargeLine. + /// + /// + /// Specifies the SalesLineACY parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargeLine(var SalesLine: Record "Sales Line"; SalesLineACY: Record "Sales Line") begin end; + /// + /// Event raised by OnDeleteAfterPostingOnAfterDeleteLinks. + /// + /// [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnAfterDeleteLinks(var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemJnlLinePrepareJournalLineOnCheckApplyFrom. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostItemJnlLinePrepareJournalLineOnCheckApplyFrom(SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnDeleteAfterPostingOnBeforeDeleteSalesHeader. + /// + /// [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnBeforeDeleteSalesHeader(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnDeleteAfterPostingOnBeforeDeleteLinks. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnBeforeDeleteLinks(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforeCheckAndUpdate. + /// + /// [IntegrationEvent(false, false)] local procedure OnRunOnBeforeCheckAndUpdate(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateWonOpportunitiesOnBeforeOpportunityModify. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the Opportunity parameter. [IntegrationEvent(false, false)] local procedure OnUpdateWonOpportunitiesOnBeforeOpportunityModify(var SalesHeader: Record "Sales Header"; SalesInvoiceHeader: Record "Sales Invoice Header"; var Opportunity: Record Opportunity) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCheckShip. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCheckShip(var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnBeforeUpdateReceiveAndCheckIfInvPutawayExists. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateReceiveAndCheckIfInvPutawayExists(var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnModifyTempLineOnAfterSalesLineModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnAfterSalesLineModify(var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnModifyTempLineOnBeforeTransferFields. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnBeforeTransferFields(var SalesLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnModifyTempLineOnBeforeSalesLineModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnBeforeSalesLineModify(var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesLine(SalesLine: Record "Sales Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesShipmentLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesShipmentLine(SalesShipmentLine: Record "Sales Shipment Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnReceiptLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnReceiptLine(ReturnReceiptLine: Record "Return Receipt Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateSalesLineDimSetIDFromAppliedEntry. + /// + /// + /// Specifies the ItemLedgEntry parameter. + /// Specifies the DimSetID parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateSalesLineDimSetIDFromAppliedEntry(var SalesLineToPost: Record "Sales Line"; var ItemLedgEntry: Record "Item Ledger Entry"; DimSetID: array[10] of Integer) begin end; + /// + /// Event raised by OnDeleteAfterPostingOnAfterSetupSalesHeader. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnAfterSetupSalesHeader(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnDeleteAfterPostingOnAfterSalesLineDeleteAll. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnAfterSalesLineDeleteAll(SalesHeader: Record "Sales Header"; SalesInvoiceHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; CommitIsSuppressed: Boolean; EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentConditionOnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentConditionOnBeforeUpdateBlanketOrderLine(var TempSalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostResJnlLineOnAfterInit. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostResJnlLineOnAfterInit(var ResJnlLine: Record "Res. Journal Line"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists. + /// + /// + /// Specifies the ReplacePostingDate parameter. + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the VATDateExists parameter. + /// Specifies the ReplaceVATDate parameter. + /// Specifies the VATDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists(var PostingDateExists: Boolean; var ReplacePostingDate: Boolean; var ReplaceDocumentDate: Boolean; var PostingDate: Date; var SalesHeader: Record "Sales Header"; var ModifyHeader: Boolean; var VATDateExists: Boolean; var ReplaceVATDate: Boolean; var VATDate: Date) begin end; + /// + /// Event raised by OnBeforeValidateICPartnerBusPostingGroups. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeValidateICPartnerBusPostingGroups(var TempICGenJnlLine: Record "Gen. Journal Line" temporary; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterGetCurrency. + /// + /// + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetCurrency(CurrencyCode: Code[10]; var Currency: Record Currency) begin end; + /// + /// Event raised by OnBeforePostItemLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemLine(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean; var TempSalesLineGlobal: Record "Sales Line" temporary; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnBeforePostItemChargeLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargeLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct(var TempPrepmtSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnAfterInsertReturnReceiptHeader. + /// + /// + /// Specifies the ReturnReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertReturnReceiptHeader(var SalesHeader: Record "Sales Header"; var ReturnReceiptHeader: Record "Return Receipt Header") begin @@ -14156,384 +15293,888 @@ codeunit 80 "Sales-Post" #if not CLEAN27 [Obsolete('This event is never raised.', '27.0')] + /// + /// Event raised by OnAfterGetAmountsForDeferral. + /// + /// + /// Specifies the AmtToDefer parameter. + /// Specifies the AmtToDeferACY parameter. + /// Specifies the DeferralAccount parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetAmountsForDeferral(SalesLine: Record "Sales Line"; var AmtToDefer: Decimal; var AmtToDeferACY: Decimal; var DeferralAccount: Code[20]) begin end; #endif + /// + /// Event raised by OnPostJobContractLineBeforeTestFields. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostJobContractLineBeforeTestFields(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertCrMemoHeaderOnAfterCalcShouldProcessAsReturnOrder. + /// + /// + /// Specifies the ShouldProcessAsReturnOrder parameter. [IntegrationEvent(false, false)] local procedure OnInsertCrMemoHeaderOnAfterCalcShouldProcessAsReturnOrder(SalesHeader: Record "Sales Header"; var ShouldProcessAsReturnOrder: Boolean) begin end; + /// + /// Event raised by OnUpdateQtyToBeInvoicedForShipmentOnAfterSetQtyToBeInvoiced. + /// + /// + /// Specifies the HasATOShippedNotInvoiced parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateQtyToBeInvoicedForShipmentOnAfterSetQtyToBeInvoiced(TrackingSpecificationExists: Boolean; HasATOShippedNotInvoiced: Boolean; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnBeforePostItemJnlLineItemCharges. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLineItemCharges(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeInitOutstanding(var SalesOrderLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeGetATOItemLedgEntriesNotInvoiced. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeGetATOItemLedgEntriesNotInvoiced(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckSalesDocumentOnBeforeCheckDueDate. + /// + /// + /// Specifies the ShouldCheckDueDate parameter. [IntegrationEvent(false, false)] local procedure OnCheckSalesDocumentOnBeforeCheckDueDate(var SalesHeader: Record "Sales Header"; var ShouldCheckDueDate: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineTrackingOnAfterCalcShouldInsertTrkgSpecInv. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the ShouldInsertTrkgSpecInv parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineTrackingOnAfterCalcShouldInsertTrkgSpecInv(var SalesLine: Record "Sales Line"; QtyToBeInvoiced: Decimal; var ShouldInsertTrkgSpecInv: Boolean) begin end; + /// + /// Event raised by OnUpdateSalesLineBeforePostOnBeforeGetUnitCost. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateSalesLineBeforePostOnBeforeGetUnitCost(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcItemJnlAmountsFromQtyToBeInvoiced. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcItemJnlAmountsFromQtyToBeInvoiced(var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; QtyToBeInvoiced: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForReceiveOnAfterSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForReceiveOnAfterSetFilters(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnRunOnBeforeCalcVATAmountLines. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeCalcVATAmountLines(var TempSalesLineGlobal: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestSalesLineOnBeforeTestFieldQtyToShip. + /// + /// + /// Specifies the ShouldTestQtyToShip parameter. [IntegrationEvent(false, false)] local procedure OnTestSalesLineOnBeforeTestFieldQtyToShip(SalesLine: Record "Sales Line"; var ShouldTestQtyToShip: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertShipmentLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertShipmentLine(var SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnIsEndLoopForShippedNotInvoicedOnBeforeExit. + /// + /// + /// Specifies the SalesShptLine parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnIsEndLoopForShippedNotInvoicedOnBeforeExit(SalesLine: Record "Sales Line"; SalesShptLine: Record "Sales Shipment Line"; RemQtyToBeInvoiced: Decimal; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLinePrepareJournalLineOnBeforeCalcQuantities. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLinePrepareJournalLineOnBeforeCalcQuantities(var ItemJnlLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; QtyToBeShipped: Decimal; QtyToBeShippedBase: Decimal; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean; IsATO: Boolean) begin end; + /// + /// Event raised by OnBeforeInvoiceRounding. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInvoiceRounding(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyTrackingFromSpec. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyTrackingFromSpec(var ItemJnlLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; QtyToBeShipped: Decimal; IsATO: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeValidateQtyToInvoice. + /// + /// + /// Specifies the ShouldValidateQtyToInvoice parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeValidateQtyToInvoice(var SalesHeader: Record "Sales Header"; var ShouldValidateQtyToInvoice: Boolean; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnAfterSetFilterTempSalesLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnAfterSetFilterTempSalesLine(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckTrackingSpecificationOnBeforeGetItemTrackingSettings. + /// + /// + /// Specifies the ItemTrackingSetup parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingSpecificationOnBeforeGetItemTrackingSettings(var TempItemSalesLine: Record "Sales Line" temporary; var ItemTrackingSetup: Record "Item Tracking Setup"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForReceipt. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForReceipt(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineTrackingOnBeforeInsertTempTrkgSpec. + /// + /// + /// Specifies the TempTrackingSpec parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineTrackingOnBeforeInsertTempTrkgSpec(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempTrackingSpec: Record "Tracking Specification" temporary; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInsertInvoiceHeaderOnBeforeCheckDocumentType. + /// + /// + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesSetup parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertInvoiceHeaderOnBeforeCheckDocumentType(SalesHeader: Record "Sales Header"; var SalesInvHeader: Record "Sales Invoice Header"; SalesSetup: Record "Sales & Receivables Setup"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnBeforePostBalancingEntry. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the TotalSalesLine parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnBeforePostBalancingEntry(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var TotalSalesLine: Record "Sales Line"; var TotalSalesLineLCY: Record "Sales Line"; SuppressCommit: Boolean; PreviewMode: Boolean; InvoicePostingParameters: Record "Invoice Posting Parameters"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin end; + /// + /// Event raised by OnBeforeFindNotShippedLines. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeFindNotShippedLines(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforePostSalesLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesLineACY parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforePostSalesLine(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; SrcCode: Code[10]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var IsHandled: Boolean; SalesLineACY: Record "Sales Line") begin end; + /// + /// Event raised by OnAfterUpdateInvoiceRounding. + /// + /// + /// Specifies the TotalSalesLine parameter. + /// Specifies the SalesLine parameter. + /// Specifies the Currency parameter. + /// Specifies the BiggestLineNo parameter. + /// Specifies the LastLineRetrieved parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the RoundingLineNo parameter. + /// Specifies the UseTempData parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoiceRounding(var SalesHeader: Record "Sales Header"; var TotalSalesLine: Record "Sales Line"; var SalesLine: Record "Sales Line"; var Currency: Record Currency; var BiggestLineNo: Integer; var LastLineRetrieved: Boolean; var RoundingLineInserted: Boolean; var RoundingLineNo: Integer; UseTempData: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterSetFilters(var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostItemLineOnBeforePostItemJnlLineForInvoiceDoc. + /// + /// + /// Specifies the SalesLineToShip parameter. + /// Specifies the Ship parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the TempTrackingSpecificationInv parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. + /// Specifies the QtyToInvoice parameter. + /// Specifies the TempAssembletoOrderLink parameter. [IntegrationEvent(true, false)] local procedure OnPostItemLineOnBeforePostItemJnlLineForInvoiceDoc(SalesHeader: Record "Sales Header"; var SalesLineToShip: Record "Sales Line"; Ship: Boolean; var ItemLedgShptEntryNo: Integer; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; SalesShptHeader: Record "Sales Shipment Header"; var TempHandlingSpecification: Record "Tracking Specification" temporary; var TempTrackingSpecificationInv: Record "Tracking Specification" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean; QtyToInvoice: Decimal; TempAssembletoOrderLink: Record "Posted Assemble-to-Order Link" temporary) begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForReceipt. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the QtyToInvoiceBaseInTrackingSpec parameter. + /// Specifies the ShouldPostItemTrackingForReceipt parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForReceipt(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; RemQtyToBeInvoiced: Decimal; QtyToInvoiceBaseInTrackingSpec: Decimal; var ShouldPostItemTrackingForReceipt: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForShipment. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the QtyToInvoiceBaseInTrackingSpec parameter. + /// Specifies the ShouldPostItemTrackingForShipment parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForShipment(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; RemQtyToBeInvoiced: Decimal; QtyToInvoiceBaseInTrackingSpec: Decimal; var ShouldPostItemTrackingForShipment: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeGetQuantityShipped. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeGetQuantityShipped(var TempSalesLine: Record "Sales Line"; var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeGetReturnQtyReceived. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeGetReturnQtyReceived(var TempSalesLine: Record "Sales Line"; var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldProcessReceipt. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the ShouldProcessReceipt parameter. + /// Specifies the ItemJnlRollRndg parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldProcessReceipt(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var ShouldProcessReceipt: Boolean; var ItemJnlRollRndg: Boolean) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeInitOutstanding(var SalesOrderLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnBeforeBalAccountNoWindowUpdate. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnBeforeBalAccountNoWindowUpdate(HideProgressWindow: Boolean; var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterCalcShouldCalcPrepmtAmounts. + /// + /// + /// Specifies the ShouldCalcPrepmtAmounts parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterCalcShouldCalcPrepmtAmounts(var TempSalesLine: Record "Sales Line" temporary; var ShouldCalcPrepmtAmounts: Boolean) begin end; + /// + /// Event raised by OnAfterGetGeneralPostingSetup. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetGeneralPostingSetup(var GeneralPostingSetup: Record "General Posting Setup"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnCheckItemTrackingQuantityOnDocumentTypeCaseElse. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckItemTrackingQuantityOnDocumentTypeCaseElse(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnSetCommitBehavior. + /// + /// [IntegrationEvent(false, false)] local procedure OnSetCommitBehavior(var ErrorOnCommit: Boolean) begin end; #if not CLEAN27 + /// + /// Event raised by OnSetPostingPreviewDocumentNo. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnSetPostingPreviewDocumentNo(var PreviewDocumentNo: Code[20]; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnGetPostingPreviewDocumentNos. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnGetPostingPreviewDocumentNos(var PreviewDocumentNos: List of [Code[20]]) begin end; #endif + /// + /// Event raised by OnPostInvoiceOnAfterPostLines. + /// + /// + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnAfterPostLines(var SalesHeader: Record "Sales Header"; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeAssignQtyToInvoice. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeAssignQtyToInvoice(var TempSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeItemLedgerEntryExist. + /// + /// + /// Specifies the ShipOrReceive parameter. + /// Specifies the HasItemLedgerEntry parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeItemLedgerEntryExist(var SalesLine: Record "Sales Line"; ShipOrReceive: Boolean; var HasItemLedgerEntry: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterCalcShouldInsertInvoiceHeader. + /// + /// + /// Specifies the ShouldInsertInvoiceHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterCalcShouldInsertInvoiceHeader(var SalesHeader: Record "Sales Header"; var ShouldInsertInvoiceHeader: Boolean) begin end; + /// + /// Event raised by OnInsertShptEntryRelationOnAfterItemEntryRelationInsert. + /// + /// + /// Specifies the ItemEntryRelation parameter. + /// Specifies the xSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertShptEntryRelationOnAfterItemEntryRelationInsert(SalesShipmentLine: Record "Sales Shipment Line"; var ItemEntryRelation: Record "Item Entry Relation"; xSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnBeforePostItemChargePerRetRcpt. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempItemChargeAssignmentSales parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRetRcpt(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeSetInvoiceFields. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the ShouldSetInvoiceFields parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeSetInvoiceFields(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line"; var ShouldSetInvoiceFields: Boolean) begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeError. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the InvoiceEverything parameter. [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeError(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var InvoiceEverything: Boolean) begin end; + /// + /// Event raised by OnBeforeGetSalesLineAdjCostLCY. + /// + /// + /// Specifies the QtyType parameter. + /// Specifies the AdjCostLCY parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetSalesLineAdjCostLCY(SalesLine2: Record "Sales Line"; QtyType: Option General,Invoicing,Shipping; AdjCostLCY: Decimal; var Result: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeShouldTestGetShipmentPPmtAmtToDeduct. + /// + /// + /// Specifies the CompleteFunctionality parameter. + /// Specifies the ShouldTestGetShipmentPPmtAmtToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeShouldTestGetShipmentPPmtAmtToDeduct(SalesHeader: Record "Sales Header"; CompleteFunctionality: Boolean; var ShouldTestGetShipmentPPmtAmtToDeduct: Boolean) begin end; + /// + /// Event raised by OnAfterDeleteApprovalEntries. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the ReturnReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterDeleteApprovalEntries(var SalesHeader: Record "Sales Header"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var SalesShipmentHeader: Record "Sales Shipment Header"; var ReturnReceiptHeader: Record "Return Receipt Header") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeUpdateSalesLineBeforePost. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeUpdateSalesLineBeforePost(var SalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header"; WhseShip: Boolean; WhseReceive: Boolean; RoundingLineInserted: Boolean; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnAfterSumSalesLines2. + /// + /// + /// Specifies the OldSalesLine parameter. + /// Specifies the NewSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterSumSalesLines2(var SalesHeader: Record "Sales Header"; var OldSalesLine: Record "Sales Line"; var NewSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnCheckPostWhseShptLinesOnAfterWhseShptLinesFound. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WhseShptLinesFound parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WarehouseShipmentLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckPostWhseShptLinesOnAfterWhseShptLinesFound(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line"; var WhseShptLinesFound: Boolean; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseShip: Boolean; WhseReceive: Boolean; var WarehouseShipmentLine: Record "Warehouse Shipment Line") begin end; + /// + /// Event raised by OnAfterDecrementPrepmtAmtInvLCY. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the PrepmtAmountInvLCY parameter. + /// Specifies the PrepmtVATAmountInvLCY parameter. [IntegrationEvent(false, false)] local procedure OnAfterDecrementPrepmtAmtInvLCY(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var PrepmtAmountInvLCY: Decimal; var PrepmtVATAmountInvLCY: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineGet. + /// + /// + /// Specifies the TempVATAmountLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineGet(SalesLine: Record "Sales Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeAdjustPrepmtAmountLCY. + /// + /// + /// Specifies the PrepmtSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustPrepmtAmountLCY(SalesHeader: Record "Sales Header"; var PrepmtSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostResJnlLineOnShouldExit. + /// + /// + /// Specifies the ShouldExit parameter. [IntegrationEvent(false, false)] local procedure OnPostResJnlLineOnShouldExit(var SalesLine: Record "Sales Line"; var ShouldExit: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeUpdateTempVATAmountLineRemainder. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeUpdateTempVATAmountLineRemainder(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterCalcTotalChargeAmt. + /// + /// + /// Specifies the QtyToAssign parameter. + /// Specifies the SalesLine parameter. + /// Specifies the xSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnAfterCalcTotalChargeAmt(var SalesLineToPost: Record "Sales Line"; QtyToAssign: Decimal; var SalesLine: Record "Sales Line"; xSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnBeforeCheckPostRestrictions. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPostRestrictions(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeValidateType. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeValidateType(var TempPrepmtSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeValidateDocumentDate. + /// + /// + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeValidateDocumentDate(var PostingDateExists: Boolean; var ReplaceDocumentDate: Boolean; var PostingDate: Date; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnCheckSalesDocumentOnBeforeCheckSalesDim. + /// + /// + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckSalesDocumentOnBeforeCheckSalesDim(var SalesHeader: Record "Sales Header"; var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeCreatePrepaymentTextLines. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePrepaymentTextLines(var TempPrepmtSalesLine: Record "Sales Line" temporary; var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header"; CompleteFunctionality: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckAndUpdate. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckAndUpdate(var SalesHeader: Record "Sales Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeCollectValueEntryRelation. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeCollectValueEntryRelation(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesInvoiceLine: Record "Sales Invoice Line") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeCollectValueEntryRelationForCrMemo. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeCollectValueEntryRelationForCrMemo(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesInvoiceLine: Record "Sales Invoice Line") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterCollectValueEntryRelation. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterCollectValueEntryRelation(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesInvoiceLine: Record "Sales Invoice Line") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterCreatePostedDeferralSchedule. + /// + /// + /// Specifies the SalesInvHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterCreatePostedDeferralSchedule(var SalesInvLine: Record "Sales Invoice Line"; SalesInvHeader: Record "Sales Invoice Header") begin end; + /// + /// Event raised by OnInvoiceRoundingOnAfterValidateQuantity. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnInvoiceRoundingOnAfterValidateQuantity(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInvoiceRoundingOnAfterSetLineNo. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnInvoiceRoundingOnAfterSetLineNo(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line") begin @@ -14550,16 +16191,32 @@ codeunit 80 "Sales-Post" begin end; + /// + /// Event raised by OnInsertPostedHeadersOnBeforeDeleteServItemOnSaleCreditMemo. + /// + /// + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnBeforeDeleteServItemOnSaleCreditMemo(var SalesHeader: Record "Sales Header"; var SalesShipmentHeader: Record "Sales Shipment Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterInsertInvoiceHeader. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInsertInvoiceHeader(var SalesHeader: Record "Sales Header"; var SalesInvoiceHeader: Record "Sales Invoice Header") begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterInsertCrMemoHeader. + /// + /// + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInsertCrMemoHeader(var SalesHeader: Record "Sales Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin @@ -14576,173 +16233,400 @@ codeunit 80 "Sales-Post" begin end; + /// + /// Event raised by OnProcessPostingLinesOnBeforePostDropOrderShipment. + /// + /// + /// Specifies the TotalSalesLine parameter. + /// Specifies the TotalSalesLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnProcessPostingLinesOnBeforePostDropOrderShipment(SalesHeader: Record "Sales Header"; TotalSalesLine: Record "Sales Line"; TotalSalesLineLCY: Record "Sales Line") begin end; + /// + /// Event raised by OnAfterArchiveUnpostedOrder. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the OrderArchived parameter. [IntegrationEvent(false, false)] local procedure OnAfterArchiveUnpostedOrder(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; OrderArchived: Boolean); begin end; + /// + /// Event raised by OnBeforeCheckReturnRcptLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckReturnRcptLine(var ReturnReceiptLine: Record "Return Receipt Line"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertReturnReceiptHeaderOnBeforeReturnReceiptHeaderTransferFields. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertReturnReceiptHeaderOnBeforeReturnReceiptHeaderTransferFields(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnBeforeCopyAndCheckItemCharge. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesLine parameter. + /// Specifies the InvoiceEverything parameter. + /// Specifies the AssignError parameter. + /// Specifies the QtyNeeded parameter. + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the ItemChargeAssgntSales parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCopyAndCheckItemCharge(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var SalesLine: Record "Sales Line"; var InvoiceEverything: Boolean; var AssignError: Boolean; var QtyNeeded: Decimal; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; var ItemChargeAssgntSales: Record "Item Charge Assignment (Sales)"; var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeTestPostingDate. + /// + /// + /// Specifies the ReplacePostingDate parameter. + /// Specifies the SkipTestPostingDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeTestPostingDate(var SalesHeader: Record "Sales Header"; ReplacePostingDate: Boolean; var SkipTestPostingDate: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeSalesHeaderModify. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeSalesHeaderModify(var SalesHeader: Record "Sales Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeTestLineFields. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeTestLineFields(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateQtyToBeInvoicedForReturnReceiptOnAfterSetQtyToBeInvoiced. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateQtyToBeInvoicedForReturnReceiptOnAfterSetQtyToBeInvoiced(TrackingSpecificationExists: Boolean; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterInsertShipmentHeader. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInsertShipmentHeader(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnInsertPostedHeadersDeleteServItemOnSaleCreditMemo. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersDeleteServItemOnSaleCreditMemo(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnRunWithCheckOnAfterFinalize. + /// + /// [IntegrationEvent(false, false)] local procedure OnRunWithCheckOnAfterFinalize(var SalesHeader: Record "Sales Header"); begin end; + /// + /// Event raised by OnBeforeFinalizePostATO. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeFinalizePostATO(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeDeleteATOLinks. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDeleteATOLinks(SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckATOLink. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckATOLink(SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumSalesLinesTempOnAfterVatAmountSet. + /// + /// + /// Specifies the TotalSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLinesTempOnAfterVatAmountSet(var VATAmount: Decimal; var TotalSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInsertShptEntryRelationOnBeforeDeleteTempHandlingSpecification. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertShptEntryRelationOnBeforeDeleteTempHandlingSpecification(var TempHandlingTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeModifyPurchOrderHeader. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeModifyPurchOrderHeader(var PurchaseOrderHeader: Record "Purchase Header"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnAfterPostJobContractLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostJobContractLine(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var GenJnlLineDocType: Enum "Gen. Journal Document Type"; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; var SrcCode: Code[10]) begin end; + /// + /// Event raised by OnBeforePostDistributeItemCharge. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempItemLedgerEntry parameter. + /// Specifies the NonDistrQuantity parameter. + /// Specifies the NonDistrQtyToAssign parameter. + /// Specifies the NonDistrAmountToAssign parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostDistributeItemCharge(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempItemLedgerEntry: Record "Item Ledger Entry"; NonDistrQuantity: Decimal; NonDistrQtyToAssign: Decimal; NonDistrAmountToAssign: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostDistributeItemChargeOnAfterSetFactor. + /// + /// + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostDistributeItemChargeOnAfterSetFactor(TempItemLedgerEntry: Record "Item Ledger Entry"; var Factor: Decimal) begin end; + /// + /// Event raised by OnBeforeCalcPrepmtAmtToDeduct. + /// + /// + /// Specifies the Ship parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PrepmtAmtToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcPrepmtAmtToDeduct(var SalesLine: Record "Sales Line"; Ship: Boolean; var IsHandled: Boolean; var PrepmtAmtToDeduct: Decimal) begin end; + /// + /// Event raised by OnBeforePostItemJournalLineWarehouseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJournalLineWarehouseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAfterPostItemJournalLineWarehouseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJournalLineWarehouseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAdjustPrepmtAmountLCYOnAfterGetOrderLine. + /// + /// + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnAdjustPrepmtAmountLCYOnAfterGetOrderLine(var SalesLine: Record "Sales Line"; var SalesInvoiceLine: Record "Sales Line"); begin end; + /// + /// Event raised by OnBeforeGetQtyToInvoice. + /// + /// + /// Specifies the Ship parameter. + /// Specifies the IsHandled parameter. + /// Specifies the QtyToInvoice parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetQtyToInvoice(SalesLine: Record "Sales Line"; Ship: Boolean; var IsHandled: Boolean; var QtyToInvoice: Decimal) begin end; + /// + /// Event raised by OnBeforeAdjustFinalInvWith100PctPrepmt. + /// + /// + /// Specifies the CombinedSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustFinalInvWith100PctPrepmt(var TempPrepmtDeductLCYSalesLine: Record "Sales Line" temporary; var CombinedSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateRemainingQtyToBeInvoiced. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateRemainingQtyToBeInvoiced(SalesShptLine: Record "Sales Shipment Line"; var RemQtyToInvoiceCurrLine: Decimal; var RemQtyToInvoiceCurrLineBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLineForCreditMemoOnBeforeGetSalesPrepmtAccount. + /// + /// + /// Specifies the SalesInvoiceLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLineForCreditMemoOnBeforeGetSalesPrepmtAccount(var GLAccount: Record "G/L Account"; var SalesInvoiceLine: Record "Sales Invoice Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateEmailParameters. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateEmailParameters(SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostUpdateOrderNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateOrderNo(var SalesInvoiceHeader: Record "Sales Invoice Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSetInvoiceOrderNo. + /// + /// + /// Specifies the SalesInvLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSetInvoiceOrderNo(SalesLine: Record "Sales Line"; var SalesInvLine: Record "Sales Invoice Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeArchiveRelatedJob. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeArchiveRelatedJob(SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSyncSurPlusItemTrackingOnBeforeModifyQtyToHandleInvoice. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ReservationEntry parameter. [IntegrationEvent(false, false)] local procedure OnSyncSurPlusItemTrackingOnBeforeModifyQtyToHandleInvoice(var SalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var ReservationEntry: Record "Reservation Entry") begin end; -} \ No newline at end of file + + /// + /// Event raised by OnAfterProcessPostingLines. + /// + /// + /// Specifies the TotalSalesLine parameter. + /// Specifies the CustLedgEntry parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the Window parameter. + /// Specifies the HideProgressWindow parameter. + [IntegrationEvent(false, false)] + local procedure OnAfterProcessPostingLines(var SalesHeader: Record "Sales Header"; var TotalSalesLine: Record "Sales Line"; var CustLedgEntry: Record "Cust. Ledger Entry"; InvoicePostingParameters: Record "Invoice Posting Parameters"; SuppressCommit: Boolean; EverythingInvoiced: Boolean; var Window: Dialog; HideProgressWindow: Boolean) + begin + end; + + /// + /// Raised after checking posting restrictions + /// + /// + [IntegrationEvent(false, false)] + local procedure OnAfterCheckPostRestrictions(var SalesHeader: Record "Sales Header") + begin + end; +} diff --git a/src/Layers/RU/BaseApp/Sales/Receivables/CustEntryApplyPostedEntries.Codeunit.al b/src/Layers/RU/BaseApp/Sales/Receivables/CustEntryApplyPostedEntries.Codeunit.al index b0cec3c8261..4a162916162 100644 --- a/src/Layers/RU/BaseApp/Sales/Receivables/CustEntryApplyPostedEntries.Codeunit.al +++ b/src/Layers/RU/BaseApp/Sales/Receivables/CustEntryApplyPostedEntries.Codeunit.al @@ -79,11 +79,7 @@ codeunit 226 "CustEntry-Apply Posted Entries" NotAllowedPostingDatesErr: Label 'Posting date is not within the range of allowed posting dates.'; #pragma warning disable AA0470 LatestEntryMustBeApplicationErr: Label 'The latest Transaction No. must be an application in Cust. Ledger Entry No. %1.'; -#pragma warning restore AA0470 -#pragma warning disable AA0470 CannotUnapplyExchRateErr: Label 'You cannot unapply the entry with the posting date %1, because the exchange rate for the additional reporting currency has been changed.'; -#pragma warning restore AA0470 -#pragma warning disable AA0470 CannotUnapplyInReversalErr: Label 'You cannot unapply Cust. Ledger Entry No. %1 because the entry is part of a reversal.'; #pragma warning restore AA0470 CannotApplyClosedEntriesErr: Label 'One or more of the entries that you selected is closed. You cannot apply closed entries.'; @@ -425,6 +421,8 @@ codeunit 226 "CustEntry-Apply Posted Entries" CheckAdditionalCurrency(ApplyUnapplyParameters."Posting Date", DtldCustLedgEntry."Posting Date"); AddCurrChecked := true; end; + CheckInitialDocumentType( + DtldCustLedgEntry, ApplyUnapplyParameters."Document No.", ApplyUnapplyParameters."Posting Date", CommitChanges); CheckReversal(DtldCustLedgEntry."Cust. Ledger Entry No."); if DtldCustLedgEntry."Transaction No." <> 0 then CheckUnappliedEntries(DtldCustLedgEntry); @@ -497,6 +495,18 @@ codeunit 226 "CustEntry-Apply Posted Entries" ExchRateAdjmtRunHandler.RunCustExchRateAdjustment(GenJnlLine, TempCustLedgerEntry); end; + local procedure CheckInitialDocumentType(var DtldCustLedgEntry: Record "Detailed Cust. Ledg. Entry"; DocNo: Code[20]; PostingDate: Date; var CommitChanges: Boolean) + var + IsHandled: Boolean; + begin + IsHandled := false; + OnBeforeCheckInitialDocumentType(DtldCustLedgEntry, DocNo, PostingDate, CommitChanges, IsHandled); + if IsHandled then + exit; + + OnAfterCheckInitialDocumentType(DtldCustLedgEntry); + end; + local procedure CheckPostingDate(ApplyUnapplyParameters: Record "Apply Unapply Parameters"; var MaxPostingDate: Date) var GenJnlCheckLine: Codeunit "Gen. Jnl.-Check Line"; @@ -1067,6 +1077,28 @@ codeunit 226 "CustEntry-Apply Posted Entries" begin end; + /// + /// Raised after checking initial document Type + /// + /// The detailed customer ledger entry. + [IntegrationEvent(false, false)] + local procedure OnAfterCheckInitialDocumentType(var DtldCustLedgEntry: Record "Detailed Cust. Ledg. Entry"); + begin + end; + + /// + /// Raised before checking initial document Type + /// + /// The detailed customer ledger entry. + /// The document number. + /// The posting date. + /// Indicates whether to commit changes. + /// Indicates whether the event is handled. + [IntegrationEvent(false, false)] + local procedure OnBeforeCheckInitialDocumentType(var DtldCustLedgEntry: Record "Detailed Cust. Ledg. Entry"; DocNo: Code[20]; PostingDate: Date; var CommitChanges: Boolean; var IsHandled: Boolean); + begin + end; + /// /// Raised before filtering detailed customer ledger entries during unapplication. /// diff --git a/src/Layers/RU/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al b/src/Layers/RU/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al index a992fa3de8d..65d1505c96e 100644 --- a/src/Layers/RU/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al +++ b/src/Layers/RU/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al @@ -1,4 +1,4 @@ -// ------------------------------------------------------------------------------------------------ +// ------------------------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // ------------------------------------------------------------------------------------------------ @@ -18,6 +18,7 @@ using Microsoft.FixedAssets.FixedAsset; using Microsoft.Foundation.Attachment; using Microsoft.Foundation.AuditCodes; using Microsoft.Foundation.NoSeries; +using Microsoft.Foundation.PaymentTerms; using Microsoft.Intercompany.Partner; using Microsoft.Purchases.Vendor; using Microsoft.Sales.Customer; @@ -863,6 +864,13 @@ table 21 "Cust. Ledger Entry" Caption = 'Prepayment'; ToolTip = 'Specifies if the related payment is a prepayment.'; } + field(91; "Payment Terms Code"; Code[10]) + { + Caption = 'Payment Terms Code'; + Editable = false; + TableRelation = "Payment Terms"; + ToolTip = 'Specifies the payment terms that determine the due date and payment discount date for the entry.'; + } field(95; "G/L Register No."; Integer) { Caption = 'G/L Register No.'; @@ -876,6 +884,7 @@ table 21 "Cust. Ledger Entry" field(171; "Payment Reference"; Code[50]) { Caption = 'Payment Reference'; + ToolTip = 'Specifies the payment reference number used by banks to identify and track the payment.'; } /// /// Specifies the payment method used or expected for this transaction, such as bank transfer, cash, or check. @@ -1211,11 +1220,6 @@ table 21 "Cust. Ledger Entry" } } - trigger OnInsert() - begin - TestField("G/L Register No."); - end; - var #pragma warning disable AA0074 #pragma warning disable AA0470 @@ -1459,12 +1463,12 @@ table 21 "Cust. Ledger Entry" SetCurrentKey("Customer No.", Open, Positive, "Due Date"); SetRange("Customer No.", CustomerNo); SetRange(Open, true); + OnSetApplyToFiltersOnBeforeSetFilters(Rec); if ApplyDocNo <> '' then begin SetRange("Document Type", ApplyDocType); SetRange("Document No.", ApplyDocNo); if FindFirst() then; - SetRange("Document Type"); - SetRange("Document No."); + ClearDocumentFilters(); end else if ApplyDocType <> 0 then begin SetRange("Document Type", ApplyDocType); @@ -1478,6 +1482,22 @@ table 21 "Cust. Ledger Entry" end; end; + procedure SetAppliesToDocFilters(var GenJnlLine: Record "Gen. Journal Line") + begin + SetRange("Document Type", GenJnlLine."Applies-to Doc. Type"); + SetRange("Document No.", GenJnlLine."Applies-to Doc. No."); + + OnAfterSetAppliesToDocFilters(Rec, GenJnlLine); + end; + + procedure ClearDocumentFilters() + begin + SetRange("Document Type"); + SetRange("Document No."); + + OnAfterClearDocumentFilters(Rec); + end; + /// /// Toggles the Amount to Apply field between the remaining amount and zero for the specified document. /// @@ -1551,6 +1571,7 @@ table 21 "Cust. Ledger Entry" "Payment Method Code" := GenJnlLine."Payment Method Code"; "Payment Reference" := GenJnlLine."Payment Reference"; "Exported to Payment File" := GenJnlLine."Exported to Payment File"; + "Payment Terms Code" := GenJnlLine."Payment Terms Code"; "Prepayment Status" := GenJnlLine."Prepayment Status"; "Agreement No." := GenJnlLine."Agreement No."; "VAT Entry Type" := GenJnlLine."VAT Entry Type"; @@ -1890,5 +1911,20 @@ table 21 "Cust. Ledger Entry" local procedure OnValidateMaxPaymentToleranceOnBeforeFieldError(var CustLedgerEntry: Record "Cust. Ledger Entry") begin end; + + [IntegrationEvent(false, false)] + local procedure OnAfterSetAppliesToDocFilters(var Rec: Record "Cust. Ledger Entry"; var GenJnlLine: Record "Gen. Journal Line") + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnAfterClearDocumentFilters(var Rec: Record "Cust. Ledger Entry") + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnSetApplyToFiltersOnBeforeSetFilters(var Rec: Record "Cust. Ledger Entry") + begin + end; } diff --git a/src/Layers/RU/BaseApp/Utilities/CopyDocumentMgt.Codeunit.al b/src/Layers/RU/BaseApp/Utilities/CopyDocumentMgt.Codeunit.al index 09eaee8d287..58933f81f11 100644 --- a/src/Layers/RU/BaseApp/Utilities/CopyDocumentMgt.Codeunit.al +++ b/src/Layers/RU/BaseApp/Utilities/CopyDocumentMgt.Codeunit.al @@ -1574,6 +1574,7 @@ codeunit 6620 "Copy Document Mgt." RoundingLineInserted: Boolean; CopyThisLine: Boolean; InvDiscountAmount: Decimal; + PmtDiscountAmount: Decimal; IsHandled: Boolean; ShouldValidateQuantityMoveNegLines: Boolean; ShouldInitToSalesLine: Boolean; @@ -1643,6 +1644,7 @@ codeunit 6620 "Copy Document Mgt." (ToSalesHeader."Currency Factor" <> FromSalesHeader."Currency Factor") then begin InvDiscountAmount := ToSalesLine."Inv. Discount Amount"; + PmtDiscountAmount := ToSalesLine."Pmt. Discount Amount"; IsHandled := false; OnCopySalesDocLineOnBeforeValidateLineDiscountPct(ToSalesLine, IsHandled); if not IsHandled then @@ -1651,6 +1653,7 @@ codeunit 6620 "Copy Document Mgt." OnCopySalesDocLineOnBeforeValidateInvDiscountAmount(ToSalesLine, InvDiscountAmount, IsHandled); if not IsHandled then ToSalesLine.Validate("Inv. Discount Amount", InvDiscountAmount); + ToSalesLine."Pmt. Discount Amount" := PmtDiscountAmount; end; end; ToSalesLine.Validate("Currency Code", FromSalesHeader."Currency Code"); @@ -2145,6 +2148,7 @@ codeunit 6620 "Copy Document Mgt." local procedure ValidatePurchLineDiscountFields(FromPurchHeader: Record "Purchase Header"; ToPurchHeader: Record "Purchase Header"; var ToPurchLine: Record "Purchase Line") var InvDiscountAmount: Decimal; + PmtDiscountAmount: Decimal; IsHandled: Boolean; begin IsHandled := false; @@ -2158,8 +2162,10 @@ codeunit 6620 "Copy Document Mgt." (ToPurchHeader."Currency Factor" <> FromPurchHeader."Currency Factor")) then begin InvDiscountAmount := ToPurchLine."Inv. Discount Amount"; + PmtDiscountAmount := ToPurchLine."Pmt. Discount Amount"; ToPurchLine.Validate("Line Discount %"); ToPurchLine.Validate("Inv. Discount Amount", InvDiscountAmount); + ToPurchLine."Pmt. Discount Amount" := PmtDiscountAmount; end; end; @@ -7257,6 +7263,7 @@ codeunit 6620 "Copy Document Mgt." CustLedgEntry.SetRange("Document No.", FromDocNo); CustLedgEntry.SetRange("Customer No.", ToSalesHeader."Bill-to Customer No."); CustLedgEntry.SetRange(Open, true); + OnUpdateCustLedgEntryOnAfterSetFilters(CustLedgEntry, ToSalesHeader, FromDocType, FromDocNo); if CustLedgEntry.FindFirst() then begin ToSalesHeader."Bal. Account No." := ''; if FromDocType = "Sales Document Type From"::"Posted Invoice" then begin @@ -7271,7 +7278,8 @@ codeunit 6620 "Copy Document Mgt." CustLedgEntry."Accepted Payment Tolerance" := 0; CustLedgEntry."Accepted Pmt. Disc. Tolerance" := false; CODEUNIT.Run(CODEUNIT::"Cust. Entry-Edit", CustLedgEntry); - end; + end else + OnUpdateCustLedgEntryOnNoOpenEntries(CustLedgEntry, ToSalesHeader, FromDocType, FromDocNo); OnAfterUpdateCustLedgerEntry(ToSalesHeader, FromDocType, FromDocNo, CustLedgEntry); end; @@ -7292,6 +7300,7 @@ codeunit 6620 "Copy Document Mgt." VendLedgEntry.SetRange("Document No.", FromDocNo); VendLedgEntry.SetRange("Vendor No.", ToPurchHeader."Pay-to Vendor No."); VendLedgEntry.SetRange(Open, true); + OnUpdateVendLedgEntryOnAfterSetFilters(VendLedgEntry, ToPurchHeader, FromDocType, FromDocNo); if VendLedgEntry.FindFirst() then begin if FromDocType = "Purchase Document Type From"::"Posted Invoice" then begin ToPurchHeader."Applies-to Doc. Type" := ToPurchHeader."Applies-to Doc. Type"::Invoice; @@ -7305,7 +7314,8 @@ codeunit 6620 "Copy Document Mgt." VendLedgEntry."Accepted Payment Tolerance" := 0; VendLedgEntry."Accepted Pmt. Disc. Tolerance" := false; CODEUNIT.Run(CODEUNIT::"Vend. Entry-Edit", VendLedgEntry); - end; + end else + OnUpdateVendLedgEntryOnNoOpenEntries(VendLedgEntry, ToPurchHeader, FromDocType, FromDocNo); end; OnAfterUpdateVendLedgEntry(ToPurchHeader, FromDocNo, FromDocType, VendLedgEntry); @@ -8242,8 +8252,7 @@ codeunit 6620 "Copy Document Mgt." /// A boolean variable indicating if posted deferrals should be copied. /// The next line number for the target document. [IntegrationEvent(false, false)] - local procedure OnBeforeCopyPurchLine(var ToPurchHeader: Record "Purchase Header"; FromPurchHeader: Record "Purchase Header"; FromPurchLine: Record "Purchase Line"; RecalculateAmount: Boolean; var CopyThisLine: Boolean; ToPurchLine: Record "Purchase Line"; MoveNegLines: Boolean; var RoundingLineInserted: Boolean; var Result: Boolean; var IsHandled: Boolean; FromPurchDocType: Enum "Purchase Document Type From"; DocLineNo: Integer; - RecalculateLines: Boolean; var LinesNotCopied: Integer; var CopyPostedDeferral: Boolean; var NextLineNo: Integer) + local procedure OnBeforeCopyPurchLine(var ToPurchHeader: Record "Purchase Header"; FromPurchHeader: Record "Purchase Header"; FromPurchLine: Record "Purchase Line"; RecalculateAmount: Boolean; var CopyThisLine: Boolean; ToPurchLine: Record "Purchase Line"; MoveNegLines: Boolean; var RoundingLineInserted: Boolean; var Result: Boolean; var IsHandled: Boolean; FromPurchDocType: Enum "Purchase Document Type From"; DocLineNo: Integer; RecalculateLines: Boolean; var LinesNotCopied: Integer; var CopyPostedDeferral: Boolean; var NextLineNo: Integer) begin end; @@ -12551,4 +12560,24 @@ codeunit 6620 "Copy Document Mgt." local procedure OnCreateJobPlanningLineOnAfterInitFromJobPlanningLine(var NewJobPlanningLine: Record "Job Planning Line"; JobPlanningLine: Record "Job Planning Line"; SalesLine: Record "Sales Line") begin end; + + [IntegrationEvent(false, false)] + local procedure OnUpdateCustLedgEntryOnAfterSetFilters(var CustLedgerEntry: Record "Cust. Ledger Entry"; var ToSalesHeader: Record "Sales Header"; FromDocType: Enum "Gen. Journal Document Type"; FromDocNo: Code[20]) + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnUpdateVendLedgEntryOnAfterSetFilters(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var ToPurchHeader: Record "Purchase Header"; FromDocType: Enum "Gen. Journal Document Type"; FromDocNo: Code[20]) + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnUpdateCustLedgEntryOnNoOpenEntries(var CustLedgerEntry: Record "Cust. Ledger Entry"; var ToSalesHeader: Record "Sales Header"; FromDocType: Enum "Gen. Journal Document Type"; FromDocNo: Code[20]) + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnUpdateVendLedgEntryOnNoOpenEntries(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var ToPurchHeader: Record "Purchase Header"; FromDocType: Enum "Gen. Journal Document Type"; FromDocNo: Code[20]) + begin + end; } diff --git a/src/Layers/W1/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al b/src/Layers/W1/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al index 373abb71c78..2dc93c7c6a4 100644 --- a/src/Layers/W1/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al +++ b/src/Layers/W1/BaseApp/Finance/GeneralLedger/Journal/GenJnlCheckLine.Codeunit.al @@ -238,6 +238,8 @@ codeunit 11 "Gen. Jnl.-Check Line" exit; GenJournalLine.TestField("Document No.", ErrorInfo.Create()); + + OnAfterTestDocumentNo(GenJournalLine); end; local procedure TestAccountAndBalAccountType(var GenJnlLine: Record "Gen. Journal Line") @@ -1539,6 +1541,15 @@ codeunit 11 "Gen. Jnl.-Check Line" begin end; + /// + /// Integration event raised after validating document number field requirements for journal lines. + /// + /// Journal line record being validated for document number requirements. + [IntegrationEvent(false, false)] + local procedure OnAfterTestDocumentNo(GenJournalLine: Record "Gen. Journal Line") + begin + end; + /// /// Integration event raised before validating document number field requirements for journal lines. /// Enables custom logic to completely override standard document number validation processing. diff --git a/src/Layers/W1/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al b/src/Layers/W1/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al index e6e82196d90..ee1cf249fc2 100644 --- a/src/Layers/W1/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al +++ b/src/Layers/W1/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostLine.Codeunit.al @@ -795,7 +795,7 @@ codeunit 12 "Gen. Jnl.-Post Line" VATEntry."Transaction No." := NextTransactionNo; VATEntry."Sales Tax Connection No." := NextConnectionNo; VATEntry.SetVATDateFromGenJnlLine(GenJnlLine); - OnInsertVATOnAfterAssignVATEntryFields(GenJnlLine, VATEntry, CurrExchRate); + OnInsertVATOnAfterAssignVATEntryFields(GenJnlLine, VATEntry, CurrExchRate, VATPostingSetup); if GenJnlLine."VAT Difference" = 0 then VATDifferenceLCY := 0 @@ -9778,7 +9778,7 @@ codeunit 12 "Gen. Jnl.-Post Line" end; [IntegrationEvent(false, false)] - local procedure OnInsertVATOnAfterAssignVATEntryFields(GenJnlLine: Record "Gen. Journal Line"; var VATEntry: Record "VAT Entry"; CurrExchRate: Record "Currency Exchange Rate") + local procedure OnInsertVATOnAfterAssignVATEntryFields(var GenJnlLine: Record "Gen. Journal Line"; var VATEntry: Record "VAT Entry"; CurrExchRate: Record "Currency Exchange Rate"; var VATPostingSetup: Record "VAT Posting Setup") begin end; diff --git a/src/Layers/W1/BaseApp/Foundation/Navigate/Navigate.Page.al b/src/Layers/W1/BaseApp/Foundation/Navigate/Navigate.Page.al index fc1707bd607..abce6969c0e 100644 --- a/src/Layers/W1/BaseApp/Foundation/Navigate/Navigate.Page.al +++ b/src/Layers/W1/BaseApp/Foundation/Navigate/Navigate.Page.al @@ -1903,6 +1903,7 @@ page 344 Navigate ItemTrackingFilters.SetFilter("Lot No. Filter", LotNoFilter); ItemTrackingFilters.SetFilter("Package No. Filter", PackageNoFilter); + OnAfterSetTrackingFiltersOnBeforeFindTrackingRecords(ItemTrackingFilters); OnFindTrackingRecordsOnAfterSetTrackingFilters(ItemTrackingFilters); Clear(ItemTrackingNavigateMgt); @@ -2353,6 +2354,11 @@ page 344 Navigate begin end; + [IntegrationEvent(true, false)] + local procedure OnAfterSetTrackingFiltersOnBeforeFindTrackingRecords(var ItemTrackingFilters: Record Item) + begin + end; + [IntegrationEvent(true, false)] local procedure OnFindTrackingRecordsOnAfterSetTrackingFilters(var ItemTrackingFilters: Record Item) begin diff --git a/src/Layers/W1/BaseApp/Purchases/Payables/VendEntryApplyPostedEntries.Codeunit.al b/src/Layers/W1/BaseApp/Purchases/Payables/VendEntryApplyPostedEntries.Codeunit.al index bd3867347b4..7f2f946f7ab 100644 --- a/src/Layers/W1/BaseApp/Purchases/Payables/VendEntryApplyPostedEntries.Codeunit.al +++ b/src/Layers/W1/BaseApp/Purchases/Payables/VendEntryApplyPostedEntries.Codeunit.al @@ -371,6 +371,8 @@ codeunit 227 "VendEntry-Apply Posted Entries" CheckAdditionalCurrency(ApplyUnapplyParameters."Posting Date", DtldVendLedgEntry."Posting Date"); AddCurrChecked := true; end; + CheckInitialDocumentType( + DtldVendLedgEntry, ApplyUnapplyParameters."Document No.", ApplyUnapplyParameters."Posting Date"); CheckReversal(DtldVendLedgEntry."Vendor Ledger Entry No."); if DtldVendLedgEntry."Transaction No." <> 0 then CheckUnappliedEntries(DtldVendLedgEntry); @@ -427,6 +429,18 @@ codeunit 227 "VendEntry-Apply Posted Entries" ExchRateAdjmtRunHandler.RunVendExchRateAdjustment(GenJnlLine, TempVendorLedgerEntry); end; + local procedure CheckInitialDocumentType(var DtldVendLedgEntry: Record "Detailed Vendor Ledg. Entry"; DocNo: Code[20]; PostingDate: Date) + var + IsHandled: Boolean; + begin + IsHandled := false; + OnBeforeCheckInitialDocumentType(DtldVendLedgEntry, DocNo, PostingDate, IsHandled); + if IsHandled then + exit; + + OnAfterCheckInitialDocumentType(DtldVEndLedgEntry); + end; + local procedure CheckPostingDate(ApplyUnapplyParameters: Record "Apply Unapply Parameters"; var MaxPostingDate: Date) var GenJnlCheckLine: Codeunit "Gen. Jnl.-Check Line"; @@ -793,6 +807,27 @@ codeunit 227 "VendEntry-Apply Posted Entries" begin end; + /// + /// Raised after checking initial document Type + /// + /// The detailed vendor ledger entry. + [IntegrationEvent(false, false)] + local procedure OnAfterCheckInitialDocumentType(var DtldVendLedgEntry: Record "Detailed Vendor Ledg. Entry") + begin + end; + + /// + /// Raised before checking initial document Type + /// + /// The detailed vendor ledger entry. + /// The document number. + /// The posting date. + /// Indicates whether the event is handled. + [IntegrationEvent(false, false)] + local procedure OnBeforeCheckInitialDocumentType(var DtldVendLedgEntry: Record "Detailed Vendor Ledg. Entry"; DocNo: Code[20]; PostingDate: Date; var IsHandled: Boolean) + begin + end; + [IntegrationEvent(false, false)] local procedure OnPostUnApplyVendorCommitOnBeforeFilterDtldVendLedgEntry(DetailedVendorLedgEntry2: Record "Detailed Vendor Ledg. Entry"; ApplyUnapplyParameters: Record "Apply Unapply Parameters") begin diff --git a/src/Layers/W1/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al b/src/Layers/W1/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al index f979882a287..3411465a116 100644 --- a/src/Layers/W1/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al +++ b/src/Layers/W1/BaseApp/Purchases/Payables/VendorLedgerEntry.Table.al @@ -17,6 +17,7 @@ using Microsoft.FixedAssets.FixedAsset; using Microsoft.Foundation.Attachment; using Microsoft.Foundation.AuditCodes; using Microsoft.Foundation.NoSeries; +using Microsoft.Foundation.PaymentTerms; using Microsoft.Intercompany.Partner; using Microsoft.Purchases.History; using Microsoft.Purchases.Remittance; @@ -580,6 +581,13 @@ table 25 "Vendor Ledger Entry" { Caption = 'Prepayment'; } + field(91; "Payment Terms Code"; Code[10]) + { + Caption = 'Payment Terms Code'; + Editable = false; + TableRelation = "Payment Terms"; + ToolTip = 'Specifies the payment terms that determine the due date and payment discount date for the entry.'; + } field(95; "G/L Register No."; Integer) { Caption = 'G/L Register No.'; @@ -966,6 +974,22 @@ table 25 "Vendor Ledger Entry" exit(''); end; + procedure SetAppliesToDocFilters(var GenJnlLine: Record "Gen. Journal Line") + begin + SetRange("Document Type", GenJnlLine."Applies-to Doc. Type"); + SetRange("Document No.", GenJnlLine."Applies-to Doc. No."); + + OnAfterSetAppliesToDocFilters(Rec, GenJnlLine); + end; + + procedure ClearDocumentFilters() + begin + SetRange("Document Type"); + SetRange("Document No."); + + OnAfterClearDocumentFilters(Rec); + end; + procedure CopyFromGenJnlLine(GenJnlLine: Record "Gen. Journal Line") begin "Vendor No." := GenJnlLine."Account No."; @@ -1007,6 +1031,7 @@ table 25 "Vendor Ledger Entry" "Creditor No." := GenJnlLine."Creditor No."; "Payment Reference" := GenJnlLine."Payment Reference"; "Payment Method Code" := GenJnlLine."Payment Method Code"; + "Payment Terms Code" := GenJnlLine."Payment Terms Code"; "Exported to Payment File" := GenJnlLine."Exported to Payment File"; if (GenJnlLine."Remit-to Code" <> '') then "Remit-to Code" := GenJnlLine."Remit-to Code"; @@ -1245,5 +1270,15 @@ table 25 "Vendor Ledger Entry" local procedure OnBeforeUpdateAmountsForApplication(var VendorLedgerEntry: Record "Vendor Ledger Entry"; ApplnDate: Date; ApplnCurrencyCode: Code[10]; RoundAmounts: Boolean; UpdateMaxPaymentTolerance: Boolean; var IsHandled: Boolean) begin end; + + [IntegrationEvent(false, false)] + local procedure OnAfterSetAppliesToDocFilters(var Rec: Record "Vendor Ledger Entry"; var GenJnlLine: Record "Gen. Journal Line") + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnAfterClearDocumentFilters(var Rec: Record "Vendor Ledger Entry") + begin + end; } diff --git a/src/Layers/W1/BaseApp/Purchases/Posting/PurchPost.Codeunit.al b/src/Layers/W1/BaseApp/Purchases/Posting/PurchPost.Codeunit.al index e31b4f5b0cd..ed9574451af 100644 --- a/src/Layers/W1/BaseApp/Purchases/Posting/PurchPost.Codeunit.al +++ b/src/Layers/W1/BaseApp/Purchases/Posting/PurchPost.Codeunit.al @@ -325,6 +325,10 @@ codeunit 90 "Purch.-Post" OnRunOnBeforeMakeInventoryAdjustment(PurchHeader, GenJnlPostLine, ItemJnlPostLine, PreviewMode, PurchRcptHeader, PurchInvHeader, IsHandled); if not IsHandled then MakeInventoryAdjustment(); + + Clear(GenJnlPostLine); + + OnAfterProcessPostingLines(PurchHeader, TotalPurchLine, VendLedgEntry, InvoicePostingParameters, SuppressCommit, EverythingInvoiced, Window); end; var @@ -844,6 +848,7 @@ codeunit 90 "Purch.-Post" begin if not DocumentIsReadyToBeChecked then PrepareCheckDocument(PurchHeader); + ErrorMessageMgt.PushContext(ErrorContextElement, PurchHeader.RecordId, 0, CheckPurchHeaderMsg); CheckMandatoryHeaderFields(PurchHeader); GetGLSetup(); @@ -4051,6 +4056,8 @@ codeunit 90 "Purch.-Post" if PurchaseHeader."Pay-to Contact No." <> '' then if Contact.Get(PurchaseHeader."Pay-to Contact No.") then Contact.CheckIfPrivacyBlocked(true); + + OnAfterCheckPostRestrictions(PurchaseHeader); end; local procedure CheckFAPostingPossibility(PurchaseHeader: Record "Purchase Header") @@ -5318,7 +5325,7 @@ codeunit 90 "Purch.-Post" if PurchHeader."Prices Including VAT" then PrepmtVATBaseToDeduct := Round( - (TotalPrepmtAmtToDeduct + PurchLine."Prepmt Amt to Deduct") / (1 + PurchLine."Prepayment VAT %" / 100), + (TotalPrepmtAmtToDeduct + PurchLine."Prepmt Amt to Deduct") / (1 + PurchLine.GetPrepaymentVATPct() / 100), Currency."Amount Rounding Precision") - Round( TotalPrepmtAmtToDeduct / (1 + PurchLine.GetPrepaymentVATPct() / 100), @@ -8968,169 +8975,404 @@ codeunit 90 "Purch.-Post" ItemsToAdjust.Add(Item2."No."); end; + /// + /// Event raised by OnArchiveSalesOrdersOnBeforeSalesOrderLineModify. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnArchiveSalesOrdersOnBeforeSalesOrderLineModify(var SalesOrderLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnAfterBlanketOrderPurchLineModify. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnAfterBlanketOrderPurchLineModify(var BlanketOrderPurchLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnAfterCheckPurchDoc. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the ErrorMessageMgt parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckPurchDoc(var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; WhseShip: Boolean; WhseReceive: Boolean; PreviewMode: Boolean; var ErrorMessageMgt: Codeunit "Error Message Management") begin end; + /// + /// Event raised by OnAfterCheckAndUpdate. + /// + /// + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckAndUpdate(var PurchaseHeader: Record "Purchase Header"; CommitIsSuppressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterCheckTrackingSpecification. + /// + /// + /// Specifies the TempItemPurchaseLine parameter. [IntegrationEvent(true, false)] local procedure OnAfterCheckTrackingSpecification(PurchaseHeader: Record "Purchase Header"; var TempItemPurchaseLine: Record "Purchase Line" temporary); begin end; + /// + /// Event raised by OnAfterCheckTrackingAndWarehouseForReceive. + /// + /// + /// Specifies the Receive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckTrackingAndWarehouseForReceive(var PurchaseHeader: Record "Purchase Header"; var Receive: Boolean; CommitIsSupressed: Boolean; var TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterCheckTrackingAndWarehouseForShip. + /// + /// + /// Specifies the Ship parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchaseLine parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckTrackingAndWarehouseForShip(var PurchaseHeader: Record "Purchase Header"; var Ship: Boolean; CommitIsSupressed: Boolean; var TempPurchaseLine: Record "Purchase Line" temporary; var TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary) begin end; + /// + /// Event raised by OnAfterCreateJobPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCreateJobPurchLine(var JobPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterCreateWhseJnlLine. + /// + /// + /// Specifies the TempWhseJnlLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCreateWhseJnlLine(PurchaseLine: Record "Purchase Line"; var TempWhseJnlLine: record "Warehouse Journal Line" temporary) begin end; + /// + /// Event raised by OnAfterDeleteAfterPosting. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterDeleteAfterPosting(PurchHeader: Record "Purchase Header"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterDeleteApprovalEntries. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchRcptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterDeleteApprovalEntries(var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; PurchRcptHeader: Record "Purch. Rcpt. Header") begin end; + /// + /// Event raised by OnAfterDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. [IntegrationEvent(false, false)] local procedure OnAfterDivideAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping; PurchLineQty: Decimal; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary) begin end; + /// + /// Event raised by OnAfterGetAmountRoundingPrecisionInLCY. + /// + /// + /// Specifies the DocNo parameter. + /// Specifies the CurrencyCode parameter. + /// Specifies the AmountRoundingPrecision parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetAmountRoundingPrecisionInLCY(DocType: Enum "Purchase Document Type"; DocNo: Code[20]; CurrencyCode: Code[10]; var AmountRoundingPrecision: Decimal) begin end; + /// + /// Event raised by OnAfterGetLineDataFromOrder. + /// + /// + /// Specifies the PurchOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetLineDataFromOrder(var PurchLine: Record "Purchase Line"; PurchOrderLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterGetPurchSetup. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterGetPurchSetup(var PurchSetup: Record "Purchases & Payables Setup") begin end; + /// + /// Event raised by OnAfterModifyTempLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterModifyTempLine(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostPurchaseDoc. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PurchRcpHdrNo parameter. + /// Specifies the RetShptHdrNo parameter. + /// Specifies the PurchInvHdrNo parameter. + /// Specifies the PurchCrMemoHdrNo parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] procedure OnAfterPostPurchaseDoc(var PurchaseHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PurchRcpHdrNo: Code[20]; RetShptHdrNo: Code[20]; PurchInvHdrNo: Code[20]; PurchCrMemoHdrNo: Code[20]; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterPostPurchaseDocDropShipment. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostPurchaseDocDropShipment(SalesShptNo: Code[20]; CommitIsSupressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterRetrieveInvoiceTrackingSpecificationIfExists. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. [IntegrationEvent(false, false)] local procedure OnAfterRetrieveInvoiceTrackingSpecificationIfExists(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TrackingSpecificationExists: Boolean) begin end; + /// + /// Event raised by OnAfterUpdatePostingNos. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePostingNos(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; PreviewMode: Boolean; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnAfterCheckMandatoryFields. + /// + /// + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckMandatoryFields(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterFinalizePosting. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterFinalizePosting(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShptHeader: Record "Return Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PreviewMode: Boolean; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterFinalizePostingOnBeforeCommit. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnAfterFinalizePostingOnBeforeCommit(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShptHeader: Record "Return Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PreviewMode: Boolean; CommitIsSupressed: Boolean; EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnAfterIncrAmount. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterIncrAmount(var TotalPurchLine: Record "Purchase Line"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterInitAssocItemJnlLine. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the QtyToBeShipped parameter. [IntegrationEvent(false, false)] local procedure OnAfterInitAssocItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; PurchaseHeader: Record "Purchase Header"; QtyToBeShipped: Decimal) begin end; + /// + /// Event raised by OnAfterInsertCombinedSalesShipment. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterInsertCombinedSalesShipment(var SalesShipmentHeader: Record "Sales Shipment Header") begin end; + /// + /// Event raised by OnAfterInsertPostedHeaders. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchSetup parameter. + /// Specifies the Window parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertPostedHeaders(var PurchaseHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShptHeader: Record "Return Shipment Header"; var PurchSetup: Record "Purchases & Payables Setup"; var Window: Dialog) begin end; + /// + /// Event raised by OnAfterInsertReceiptHeader. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertReceiptHeader(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var TempWhseRcptHeader: Record "Warehouse Receipt Header" temporary; WhseReceive: Boolean; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnAfterInsertReturnShipmentHeader. + /// + /// + /// Specifies the ReturnShptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertReturnShipmentHeader(var PurchHeader: Record "Purchase Header"; var ReturnShptHeader: Record "Return Shipment Header") begin end; + /// + /// Event raised by OnAfterInvoiceRoundingAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TotalPurchaseLine parameter. + /// Specifies the UseTempData parameter. + /// Specifies the InvoiceRoundingAmount parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the RoundingLineNo parameter. [IntegrationEvent(false, false)] local procedure OnAfterInvoiceRoundingAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TotalPurchaseLine: Record "Purchase Line"; UseTempData: Boolean; InvoiceRoundingAmount: Decimal; CommitIsSuppressed: Boolean; RoundingLineInserted: Boolean; RoundingLineNo: Integer) begin end; + /// + /// Event raised by OnAfterInsertedPrepmtVATBaseToDeduct. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PrepmtLineNo parameter. + /// Specifies the TotalPrepmtAmtToDeduct parameter. + /// Specifies the TempPrepmtDeductLCYPurchLine parameter. + /// Specifies the PrepmtVATBaseToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertedPrepmtVATBaseToDeduct(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; PrepmtLineNo: Integer; TotalPrepmtAmtToDeduct: Decimal; var TempPrepmtDeductLCYPurchLine: Record "Purchase Line" temporary; var PrepmtVATBaseToDeduct: Decimal) begin end; + /// + /// Event raised by OnAfterPostAssocItemJnlLine. + /// + /// + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the SalesLineOrder parameter. + /// Specifies the SalesOrderHeader parameter. + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostAssocItemJnlLine(var ItemJnlLine: Record "Item Journal Line"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var SalesLineOrder: Record "Sales Line"; var SalesOrderHeader: Record "Sales Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAfterPostCombineSalesOrderShipment. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostCombineSalesOrderShipment(var PurchaseHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin @@ -9143,275 +9385,680 @@ codeunit 90 "Purch.-Post" end; [Obsolete('Moved to codeunit MfgPurchPost', '27.0')] + /// + /// Event raised by OnAfterPostItemJnlLineCopyProdOrder. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLineCopyProdOrder(var ItemJnlLine: Record "Item Journal Line"; PurchLine: Record "Purchase Line"; PurchRcptHeader: Record "Purch. Rcpt. Header"; QtyToBeReceived: Decimal; CommitIsSupressed: Boolean; QtyToBeInvoiced: Decimal) begin end; #endif + /// + /// Event raised by OnAfterPostItemJnlLineItemCharges. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLineItemCharges(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerOrder. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerOrder(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemTrackingLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemTrackingLine(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnAfterPostUpdateCreditMemoLine. + /// + /// [IntegrationEvent(true, false)] local procedure OnAfterPostUpdateCreditMemoLine(var PurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPostUpdateInvoiceLine. + /// + /// [IntegrationEvent(true, false)] local procedure OnAfterPostUpdateInvoiceLine(var PurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPurchRcptHeaderInsert. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchRcptHeaderInsert(var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterPurchRcptLineInsert. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchRcptLineInsert(PurchaseLine: Record "Purchase Line"; var PurchRcptLine: Record "Purch. Rcpt. Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; PurchInvHeader: Record "Purch. Inv. Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; PurchRcptHeader: Record "Purch. Rcpt. Header"; TempWhseRcptHeader: Record "Warehouse Receipt Header"; xPurchLine: Record "Purchase Line"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPurchInvHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchInvHeaderInsert(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterPurchInvLineInsert. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchInvLineInsert(var PurchInvLine: Record "Purch. Inv. Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; PurchHeader: Record "Purchase Header"; PurchRcptHeader: Record "Purch. Rcpt. Header"; TempWhseRcptHeader: Record "Warehouse Receipt Header"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnAfterPurchCrMemoHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchCrMemoHeaderInsert(var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnAfterPurchCrMemoLineInsert. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPurchCrMemoLineInsert(var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var PurchaseHeader: Record "Purchase Header"; GenJnlLineDocNo: Code[20]; RoundingLineInserted: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnAfterReturnShptHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterReturnShptHeaderInsert(var ReturnShptHeader: Record "Return Shipment Header"; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterReturnShptLineInsert. + /// + /// + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempWhseShptHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the xPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterReturnShptLineInsert(var ReturnShptLine: Record "Return Shipment Line"; ReturnShptHeader: Record "Return Shipment Header"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; var TempWhseShptHeader: Record "Warehouse Shipment Header" temporary; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; xPurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterRevertWarehouseEntry. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterRevertWarehouseEntry(var TempWhseJnlLine: Record "Warehouse Journal Line" temporary) begin end; + /// + /// Event raised by OnAfterSalesShptHeaderInsert. + /// + /// + /// Specifies the SalesOrderHeader parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterSalesShptHeaderInsert(var SalesShipmentHeader: Record "Sales Shipment Header"; SalesOrderHeader: Record "Sales Header"; CommitIsSuppressed: Boolean; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterSalesShptLineInsert. + /// + /// + /// Specifies the SalesShptHeader parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the DropShptPostBuffer parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnAfterSalesShptLineInsert(var SalesShptLine: Record "Sales Shipment Line"; SalesShptHeader: Record "Sales Shipment Header"; SalesOrderLine: Record "Sales Line"; CommitIsSuppressed: Boolean; DropShptPostBuffer: Record "Drop Shpt. Post. Buffer"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterPostAccICLine. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostAccICLine(PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnAfterPostItemLine. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(true, false)] local procedure OnAfterPostItemLine(PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; PurchaseHeader: Record "Purchase Header"; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnAfterPostItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the WhseJnlRegisterLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseRcptHeader parameter. + /// Specifies the WhseShptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var WhseJnlRegisterLine: Codeunit "Whse. Jnl.-Register Line"; var WhseReceive: Boolean; var WhseShip: Boolean; var WhseRcptHeader: Record "Warehouse Receipt Header"; var WhseShptHeader: Record "Warehouse Shipment Header") begin end; + /// + /// Event raised by OnAfterPostWhseJnlLine. + /// + /// + /// Specifies the ItemLedgEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostWhseJnlLine(var PurchaseLine: Record "Purchase Line"; ItemLedgEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterPostUpdateOrderLine. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostUpdateOrderLine(var PurchaseLine: Record "Purchase Line"; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnAfterPostInvoice. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the VendorLedgerEntry parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostInvoice(var PurchHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; TotalPurchLine: Record "Purchase Line"; TotalPurchLineLCY: Record "Purchase Line"; CommitIsSupressed: Boolean; var VendorLedgerEntry: Record "Vendor Ledger Entry") begin end; + /// + /// Event raised by OnAfterPostPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchInvLine parameter. + /// Specifies the PurchCrMemoLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLineACY parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostPurchLine(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var PurchInvLine: Record "Purch. Inv. Line"; var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchLineACY: Record "Purchase Line"; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; SrcCode: Code[10]; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterProcessPurchLines. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the PurchLinesProcessed parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnAfterProcessPurchLines(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShipmentHeader: Record "Return Shipment Header"; WhseShip: Boolean; WhseReceive: Boolean; var PurchLinesProcessed: Boolean; CommitIsSuppressed: Boolean; EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnAfterProcessAssocItemJnlLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnAfterProcessAssocItemJnlLine(var PurchLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnAfterReleasePurchDoc. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterReleasePurchDoc(var PurchHeader: Record "Purchase Header"); begin end; + /// + /// Event raised by OnAfterRefreshTempLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterRefreshTempLines(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterResetTempLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterResetTempLines(var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnAfterRestorePurchaseHeader. + /// + /// + /// Specifies the PurchaseHeaderCopy parameter. [IntegrationEvent(false, false)] local procedure OnAfterRestorePurchaseHeader(var PurchaseHeader: Record "Purchase Header"; PurchaseHeaderCopy: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterReverseAmount. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterReverseAmount(var PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterRoundAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchLineQty parameter. [IntegrationEvent(false, false)] local procedure OnAfterRoundAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchLineQty: Decimal) begin end; + /// + /// Event raised by OnAfterSaveTempWhseSplitSpec. + /// + /// + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnAfterSaveTempWhseSplitSpec(PurchaseLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAfterSetPostingFlags. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterSetPostingFlags(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterTestPurchLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(false, false)] local procedure OnAfterTestPurchLine(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateInvoicedQtyOnPurchRcptLine. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoicedQtyOnPurchRcptLine(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchRcptLine: Record "Purch. Rcpt. Line"; var PurchaseLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; TrackingSpecificationExists: Boolean; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; var PurchaseHeader: Record "Purchase Header"; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateInvoicedQtyOnReturnShptLine. + /// + /// + /// Specifies the ReturnShipmentLine parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoicedQtyOnReturnShptLine(PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShipmentLine: Record "Return Shipment Line"; PurchaseLine: Record "Purchase Line"; TempTrackingSpecification: Record "Tracking Specification" temporary; TrackingSpecificationExists: Boolean; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnAfterUpdateLastPostingNos. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterUpdateLastPostingNos(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterUpdatePurchLineBeforePost. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the RoundingLineInserted parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePurchLineBeforePost(var PurchaseLine: Record "Purchase Line"; WhseShip: Boolean; WhseReceive: Boolean; PurchaseHeader: Record "Purchase Header"; RoundingLineInserted: Boolean) begin end; + /// + /// Event raised by OnAfterUpdatePrepmtPurchLineWithRounding. + /// + /// + /// Specifies the TotalRoundingAmount parameter. + /// Specifies the TotalPrepmtAmount parameter. + /// Specifies the FinalInvoice parameter. + /// Specifies the PricesInclVATRoundingAmount parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePrepmtPurchLineWithRounding(var PrepmtPurchLine: Record "Purchase Line"; TotalRoundingAmount: array[2] of Decimal; TotalPrepmtAmount: array[2] of Decimal; FinalInvoice: Boolean; PricesInclVATRoundingAmount: array[2] of Decimal; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterUpdatePurchaseHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePurchaseHeader(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; GenJnlLineDocType: Integer; GenJnlLineDocNo: Code[20]; PreviewMode: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnAfterUpdatePurchLineDimSetIDFromAppliedEntry. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdatePurchLineDimSetIDFromAppliedEntry(var PurchLineToPost: Record "Purchase Line"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterValidatePostingAndDocumentDate. + /// + /// + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnAfterValidatePostingAndDocumentDate(var PurchaseHeader: Record "Purchase Header"; CommitIsSuppressed: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnBeforeAddAssociatedOrderLineToBuffer. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAddAssociatedOrderLineToBuffer(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeModifyTempLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeModifyTempLine(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnModifyTempLineOnBeforeTransferFields. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnBeforeTransferFields(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeAdjustQuantityRoundingForReceipt. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustQuantityRoundingForReceipt(PurchRcptLine: Record "Purch. Rcpt. Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeArchiveUnpostedOrder. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the OrderArchived parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeArchiveUnpostedOrder(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; var OrderArchived: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnBeforeArchiveSalesOrders. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeArchiveSalesOrders(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeBlanketOrderPurchLineModify. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnBeforeBlanketOrderPurchLineModify(var BlanketOrderPurchLine: Record "Purchase Line"; PurchLine: Record "Purchase Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcInvoice. + /// + /// + /// Specifies the NewInvoice parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcInvoice(var PurchHeader: Record "Purchase Header"; var NewInvoice: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalculateAmountsInclVAT. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalculateAmountsInclVAT(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalculateInvoiceEverything. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the InvoiceEverything parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalculateInvoiceEverything(var TempPurchaseLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; var InvoiceEverything: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcLineAmountAndLineDiscountAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Currency parameter. [IntegrationEvent(true, false)] local procedure OnBeforeCalcLineAmountAndLineDiscountAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; PurchLineQty: Decimal; var IsHandled: Boolean; Currency: Record Currency) begin @@ -9419,163 +10066,379 @@ codeunit 90 "Purch.-Post" #if not CLEAN28 [Obsolete('This event is no longer used.', '28.0')] + /// + /// Event raised by OnBeforeCheckDropShipmentReceiveInvoice. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforeCheckDropShipmentReceiveInvoice(PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; #endif + /// + /// Event raised by OnBeforeCheckDocumentTotalAmounts. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforeCheckDocumentTotalAmounts(PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckExternalDocumentNumber. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the Handled parameter. + /// Specifies the DocType parameter. + /// Specifies the ExtDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckExternalDocumentNumber(VendorLedgerEntry: Record "Vendor Ledger Entry"; PurchaseHeader: Record "Purchase Header"; var Handled: Boolean; DocType: Option; ExtDocNo: Text[35]; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeCheckExtDocNo. + /// + /// + /// Specifies the DocumentType parameter. + /// Specifies the ExtDocNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckExtDocNo(PurchaseHeader: Record "Purchase Header"; DocumentType: Enum "Gen. Journal Document Type"; ExtDocNo: Text[35]; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckGLAccDirectPosting. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckGLAccDirectPosting(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckICDocumentDuplicatePosting. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckICDocumentDuplicatePosting(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckIfInvPutawayExists. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckIfInvPutawayExists(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckHeaderPostingType. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckHeaderPostingType(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckFieldsOnReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckFieldsOnReturnShipmentLine(var ReturnShipmentLine: Record "Return Shipment Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterCheckFieldsOnReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckFieldsOnReturnShipmentLine(ReturnShipmentLine: Record "Return Shipment Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeCheckPrepmtAmtToDeduct. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPrepmtAmtToDeduct(PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckPurchRcptLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckTrackingSpecification. + /// + /// + /// Specifies the TempItemPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckTrackingSpecification(PurchHeader: Record "Purchase Header"; var TempItemPurchLine: Record "Purchase Line" temporary); begin end; + /// + /// Event raised by OnBeforeCheckTrackingAndWarehouseForShip. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the Ship parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckTrackingAndWarehouseForShip(PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var Ship: Boolean; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeCheckWarehouse. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckWarehouse(var TempItemPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckWhseRcptLineQtyToReceive. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckWhseRcptLineQtyToReceive(var WhseRcptLine: Record "Warehouse Receipt Line"; var PurchRcptLine: Record "Purch. Rcpt. Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeClearRemAmt. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlRollRndg parameter. + /// Specifies the RemAmt parameter. + /// Specifies the RemDiscAmt parameter. [IntegrationEvent(false, false)] local procedure OnBeforeClearRemAmt(PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; ItemJnlRollRndg: Boolean; var RemAmt: Decimal; var RemDiscAmt: Decimal) begin end; + /// + /// Event raised by OnBeforeCreatePositiveEntry. + /// + /// + /// Specifies the JobNo parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePositiveEntry(var WarehouseJournalLine: Record "Warehouse Journal Line"; JobNo: Code[20]; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCreatePostedWhseRcptHeader. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedWhseRcptHeader(var PostedWhseReceiptHeader: Record "Posted Whse. Receipt Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeCreatePostedWhseShptHeader. + /// + /// + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedWhseShptHeader(var PostedWhseShipmentHeader: Record "Posted Whse. Shipment Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeCreatePostedWhseShptLine. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedWhseShptLine(PurchLine: Record "Purchase Line"; ReturnShptLine: Record "Return Shipment Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCreatePostedRcptLine. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePostedRcptLine(PurchLine: Record "Purchase Line"; ReturnShptLine: Record "Return Shipment Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCreateWhseLineFromReturnShptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreateWhseLineFromReturnShptLine(var ReturnShptLine: Record "Return Shipment Line"; PurchLine: Record "Purchase Line"; CostBaseAmount: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCommitAndUpdateAnalysisVeiw. + /// + /// + /// Specifies the SuppressCommit parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCommitAndUpdateAnalysisVeiw(InvtPickPutaway: Boolean; SuppressCommit: Boolean; PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCopyAndCheckItemChargeTempPurchLine. + /// + /// + /// Specifies the TempPrepmtPurchaseLine parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the IsHandled parameter. + /// Specifies the AssignError parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCopyAndCheckItemChargeTempPurchLine(PurchaseHeader: Record "Purchase Header"; var TempPrepmtPurchaseLine: Record "Purchase Line" temporary; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean; var AssignError: Boolean) begin end; + /// + /// Event raised by OnBeforeCreatePrepmtLines. + /// + /// + /// Specifies the TempPrepmtPurchaseLine parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePrepmtLines(PurchaseHeader: Record "Purchase Header"; var TempPrepmtPurchaseLine: Record "Purchase Line" temporary; CompleteFunctionality: Boolean; var IsHandled: Boolean; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeDeleteAfterPosting. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the SkipDelete parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDeleteAfterPosting(var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var SkipDelete: Boolean; CommitIsSupressed: Boolean; var TempPurchLine: Record "Purchase Line" temporary; var TempPurchLineGlobal: Record "Purchase Line" temporary; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnBeforeDeleteApprovalEntries. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDeleteApprovalEntries(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnBeforeDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDivideAmount(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping; var PurchLineQty: Decimal; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeFinalizePosting. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeFinalizePosting(var PurchaseHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var EverythingInvoiced: Boolean; CommitIsSupressed: Boolean; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnBeforeGetInvoicePostingSetup. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetInvoicePostingSetup(var InvoicePostingInterface: Interface "Invoice Posting"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInitAssocItemJnlLine. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInitAssocItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; PurchaseHeader: Record "Purchase Header") begin @@ -9583,97 +10446,265 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforeInvoiceRoundingAmount. + /// + /// + /// Specifies the TotalAmountIncludingVAT parameter. + /// Specifies the UseTempData parameter. + /// Specifies the InvoiceRoundingAmount parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInvoiceRoundingAmount(PurchHeader: Record "Purchase Header"; TotalAmountIncludingVAT: Decimal; UseTempData: Boolean; var InvoiceRoundingAmount: Decimal; CommitIsSupressed: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeInsertICGenJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ICGenJnlLineNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertICGenJnlLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var ICGenJnlLineNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertPostedHeaders. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertPostedHeaders(var PurchaseHeader: Record "Purchase Header"; var WarehouseReceiptHeader: Record "Warehouse Receipt Header"; var WarehouseShipmentHeader: Record "Warehouse Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertRcptEntryRelation. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the TempTrackingSpecificationInv parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertRcptEntryRelation(PurchaseLine: Record "Purchase Line"; var PurchRcptLine: Record "Purch. Rcpt. Line"; var TempHandlingSpecification: Record "Tracking Specification" temporary; TempTrackingSpecificationInv: Record "Tracking Specification" temporary; ItemLedgShptEntryNo: Integer; var Result: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertReceiptHeader. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReceiptHeader(var PurchHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var IsHandled: Boolean; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertReceiptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReceiptLine(var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchLine: Record "Purchase Line"; var CostBaseAmount: Decimal; var IsHandled: Boolean); begin end; - [IntegrationEvent(false, false)] + /// + /// Event raised by OnBeforeInsertReturnShipmentLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the IsHandled parameter. + [IntegrationEvent(false, false)] local procedure OnBeforeInsertReturnShipmentLine(var ReturnShptHeader: Record "Return Shipment Header"; var PurchLine: Record "Purchase Line"; var CostBaseAmount: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertTrackingSpecification(PurchHeader: Record "Purchase Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeItemJnlPostLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. + /// Specifies the WhseReceiptHeader parameter. + /// Specifies the WhseShipmentHeader parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. [IntegrationEvent(true, false)] local procedure OnBeforeItemJnlPostLine(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; var IsHandled: Boolean; WhseReceiptHeader: Record "Warehouse Receipt Header"; WhseShipmentHeader: Record "Warehouse Shipment Header"; TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnBeforeIsEndLoopForShippedNotInvoiced. + /// + /// + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the ReturnShptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the PurchLine parameter. + /// Specifies the EndLoop parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeIsEndLoopForShippedNotInvoiced(RemQtyToBeInvoiced: Decimal; TrackingSpecificationExists: Boolean; var ReturnShptLine: Record "Return Shipment Line"; var InvoicingTrackingSpecification: Record "Tracking Specification"; PurchLine: Record "Purchase Line"; var EndLoop: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeIsEndLoopForReceivedNotInvoiced. + /// + /// + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PurchRcptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the PurchLine parameter. + /// Specifies the EndLoop parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeIsEndLoopForReceivedNotInvoiced(RemQtyToBeInvoiced: Decimal; TrackingSpecificationExists: Boolean; var PurchRcptLine: Record "Purch. Rcpt. Line"; var InvoicingTrackingSpecification: Record "Tracking Specification"; PurchLine: Record "Purchase Line"; var EndLoop: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeGetPurchRcptLineFromTrackingOrUpdateItemEntryRelation. + /// + /// + /// Specifies the TrackingSpecification parameter. + /// Specifies the ItemEntryRelation parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetPurchRcptLineFromTrackingOrUpdateItemEntryRelation(var PurchRcptLine: Record "Purch. Rcpt. Line"; var TrackingSpecification: Record "Tracking Specification"; var ItemEntryRelation: Record "Item Entry Relation"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeGetPurchLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeGetPurchLines(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeLockTables. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempPurchaseLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnBeforeLockTables(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSuppressed: Boolean; var IsHandled: Boolean; var TempPurchaseLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforePostLines. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostLines(var PurchLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSupressed: Boolean; var TempPurchLineGlobal: Record "Purchase Line" temporary; var TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary) begin end; + /// + /// Event raised by OnBeforePostDistributeItemCharge. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemLedgerEntry parameter. + /// Specifies the NonDistrQuantity parameter. + /// Specifies the NonDistrQtyToAssign parameter. + /// Specifies the NonDistrAmountToAssign parameter. + /// Specifies the Sign parameter. + /// Specifies the IndirectCostPct parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostDistributeItemCharge(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var TempItemLedgerEntry: Record "Item Ledger Entry"; NonDistrQuantity: Decimal; NonDistrQtyToAssign: Decimal; NonDistrAmountToAssign: Decimal; Sign: Decimal; IndirectCostPct: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostInvoice. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Window parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the InvoicePostingInterface parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostInvoice(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSupressed: Boolean; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var IsHandled: Boolean; var Window: Dialog; HideProgressWindow: Boolean; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line"; var InvoicePostingInterface: Interface "Invoice Posting"; var InvoicePostingParameters: Record "Invoice Posting Parameters"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnBeforePostGLAccICLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ICGenJnlLineNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostGLAccICLine(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ICGenJnlLineNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerSalesShpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerSalesShpt(var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin @@ -9686,98 +10717,245 @@ codeunit 90 "Purch.-Post" end; [Obsolete('Moved to codeunit MfgPurchPost', '27.0')] + /// + /// Event raised by OnBeforePostItemJnlLineCopyProdOrder. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemJnlLineCopyProdOrder(PurchLine: Record "Purchase Line"; var ItemJnlLine: Record "Item Journal Line"; QtyToBeReceived: Decimal; QtyToBeInvoiced: Decimal; CommitIsSupressed: Boolean; var IsHandled: Boolean) begin end; #endif + /// + /// Event raised by OnBeforePostPurchaseDoc. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostPurchaseDoc(var PurchaseHeader: Record "Purchase Header"; PreviewMode: Boolean; CommitIsSupressed: Boolean; var HideProgressWindow: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostCommitPurchaseDoc. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostCommitPurchaseDoc(var PurchaseHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PreviewMode: Boolean; var ModifyHeader: Boolean; var CommitIsSupressed: Boolean; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeProcessAssocItemJnlLine. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the SourceCode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeProcessAssocItemJnlLine(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary; ItemLedgShptEntryNo: Integer; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; SourceCode: Code[10]) begin end; + /// + /// Event raised by OnBeforePrepareCheckDocument. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforePrepareCheckDocument(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforePurchLineDeleteAll. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchLineDeleteAll(var PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforePurchRcptHeaderInsert. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchRcptHeaderInsert(var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseReceive: Boolean; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseShip: Boolean) begin end; + /// + /// Event raised by OnBeforePurchRcptLineInsert. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PostedWhseRcptLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemLedgShptEntryNo parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchRcptLineInsert(var PurchRcptLine: Record "Purch. Rcpt. Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean; PostedWhseRcptLine: Record "Posted Whse. Receipt Line"; var IsHandled: Boolean; ItemLedgShptEntryNo: Integer) begin end; + /// + /// Event raised by OnBeforePurchInvHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchInvHeaderInsert(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnBeforePurchInvLineInsert. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchInvLineInsert(var PurchInvLine: Record "Purch. Inv. Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchaseLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePurchCrMemoHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchCrMemoHeaderInsert(var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnBeforePurchCrMemoLineInsert. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePurchCrMemoLineInsert(var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean; var xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeReleasePurchDoc. + /// + /// + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeReleasePurchDoc(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean); begin end; + /// + /// Event raised by OnBeforeReturnShptHeaderInsert. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(false, false)] local procedure OnBeforeReturnShptHeaderInsert(var ReturnShptHeader: Record "Return Shipment Header"; var PurchHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseReceive: Boolean; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseShip: Boolean) begin end; + /// + /// Event raised by OnBeforeReturnShptLineInsert. + /// + /// + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeReturnShptLineInsert(var ReturnShptLine: Record "Return Shipment Line"; var ReturnShptHeader: Record "Return Shipment Header"; var PurchLine: Record "Purchase Line"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnBeforeRoundAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchLineQty parameter. [IntegrationEvent(false, false)] local procedure OnBeforeRoundAmount(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchLineQty: Decimal) begin end; + /// + /// Event raised by OnBeforeSalesShptHeaderInsert. + /// + /// + /// Specifies the SalesOrderHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSalesShptHeaderInsert(var SalesShptHeader: Record "Sales Shipment Header"; SalesOrderHeader: Record "Sales Header"; CommitIsSupressed: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeSalesShptLineInsert. + /// + /// + /// Specifies the SalesShptHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the DropShptPostBuffer parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSalesShptLineInsert(var SalesShptLine: Record "Sales Shipment Line"; SalesShptHeader: Record "Sales Shipment Header"; SalesLine: Record "Sales Line"; CommitIsSupressed: Boolean; DropShptPostBuffer: Record "Drop Shpt. Post. Buffer"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSetCheckApplToItemEntry. + /// + /// + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSetCheckApplToItemEntry(var PurchaseLine: Record "Purchase Line"; var Result: Boolean; var IsHandled: Boolean; PurchaseHeader: Record "Purchase Header"; ItemJournalLine: Record "Item Journal Line") begin @@ -9785,6 +10963,17 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforePostCombineSalesOrderShipment. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostCombineSalesOrderShipment(var PurchaseHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesShipmentHeader: Record "Sales Shipment Header"; var ItemLedgShptEntryNo: Integer; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempHandlingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean) begin @@ -9792,241 +10981,616 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforePostItemJnlLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeReceivedBase parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the ItemChargeNo parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the Result parameter. + /// Specifies the WarehouseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLine(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var QtyToBeReceived: Decimal; var QtyToBeReceivedBase: Decimal; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; var ItemLedgShptEntryNo: Integer; var ItemChargeNo: Code[20]; var TrackingSpecification: Record "Tracking Specification"; CommitIsSupressed: Boolean; var IsHandled: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var Result: Integer; var WarehouseReceiptHeader: Record "Warehouse Receipt Header") begin end; + /// + /// Event raised by OnBeforePostItemJnlLineItemCharges. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLineItemCharges(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostAssocItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostAssocItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var SalesLine: Record "Sales Line"; CommitIsSupressed: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePostItemChargePerOrder. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the ItemChargePurchLine parameter. + /// Specifies the TempTrackingSpecificationChargeAssmt parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerOrder(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ItemJnlLine2: Record "Item Journal Line"; var ItemChargePurchLine: Record "Purchase Line"; var TempTrackingSpecificationChargeAssmt: Record "Tracking Specification" temporary; CommitIsSupressed: Boolean; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargeLineProcedure. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargeLineProcedure(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemLine(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; PurchRcptHeader: Record "Purch. Rcpt. Header"; var RemQtyToBeInvoiced: Decimal; var TempPurchLineGlobal: Record "Purchase Line" temporary; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var RemQtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemJnlLineJobConsumption. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the SourceCode parameter. + /// Specifies the PostJobConsumptionBeforePurch parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemJnlLineJobConsumption(var ItemJournalLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; SourceCode: Code[10]; var PostJobConsumptionBeforePurch: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTracking. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PreciseTotalChargeAmt parameter. + /// Specifies the PreciseTotalChargeAmtACY parameter. + /// Specifies the RoundedPrevTotalChargeAmt parameter. + /// Specifies the RoundedPrevTotalChargeAmtACY parameter. + /// Specifies the IsHandled parameter. + /// Specifies the RemQtyToBeInvoiced parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemTracking(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TrackingSpecificationExists: Boolean; var PreciseTotalChargeAmt: Decimal; var PreciseTotalChargeAmtACY: Decimal; var RoundedPrevTotalChargeAmt: Decimal; var RoundedPrevTotalChargeAmtACY: Decimal; var IsHandled: Boolean; RemQtyToBeInvoiced: Decimal) begin end; + /// + /// Event raised by OnBeforePostItemTrackingCheckReceipt. + /// + /// + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingCheckReceipt(PurchaseLine: Record "Purchase Line"; RemQtyToBeInvoiced: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingCheckShipment. + /// + /// + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingCheckShipment(PurchaseLine: Record "Purchase Line"; RemQtyToBeInvoiced: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForReceiptCondition. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the Condition parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForReceiptCondition(PurchaseLine: Record "Purchase Line"; PurchRcptLine: Record "Purch. Rcpt. Line"; var Condition: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingItemChargePerOrder. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the TempTrackingSpecificationChargeAssmtCorrect parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingItemChargePerOrder(var TempTrackingSpecificationChargeAssmt: Record "Tracking Specification" temporary; var IsHandled: Boolean; var ItemJnlLine2: Record "Item Journal Line"; var TempTrackingSpecificationChargeAssmtCorrect: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnBeforePostItemTrackingLineOnPostPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostItemTrackingLineOnPostPurchLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; TempTrackingSpecification: Record "Tracking Specification" temporary; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForShipmentCondition. + /// + /// + /// Specifies the ReturnShipmentLine parameter. + /// Specifies the Condition parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForShipmentCondition(PurchaseLine: Record "Purchase Line"; ReturnShipmentLine: Record "Return Shipment Line"; var Condition: Boolean) begin end; + /// + /// Event raised by OnBeforePostResourceLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the JobPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostResourceLine(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; SrcCode: Code[10]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocNo: Code[20]; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; JobPurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePostUpdateOrderLine. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PurchSetup parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateOrderLine(PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; CommitIsSuppressed: Boolean; PurchSetup: Record "Purchases & Payables Setup") begin end; + /// + /// Event raised by OnBeforePostUpdateOrderLineModifyTempLine. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateOrderLineModifyTempLine(var TempPurchaseLine: Record "Purchase Line" temporary; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSuppressed: Boolean; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeRevertWarehouseEntry. + /// + /// + /// Specifies the JobNo parameter. + /// Specifies the PostJobConsumption parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeRevertWarehouseEntry(var WarehouseJournalLine: Record "Warehouse Journal Line"; JobNo: Code[20]; PostJobConsumption: Boolean; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSendICDocument. + /// + /// + /// Specifies the ModifyHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSendICDocument(var PurchHeader: Record "Purchase Header"; var ModifyHeader: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSumPurchLines2. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the VATAmountLine parameter. + /// Specifies the InsertPurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforeSumPurchLines2(QtyType: Option; var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var VATAmountLine: Record "VAT Amount Line"; InsertPurchLine: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSumPurchLinesTemp. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeSumPurchLinesTemp(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeTempDropShptPostBufferInsert. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTempDropShptPostBufferInsert(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; PurchaseLine: Record "Purchase Line"; var ItemLedgShptEntryNo: Integer) begin end; + /// + /// Event raised by OnBeforeTempPrepmtPurchLineInsert. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTempPrepmtPurchLineInsert(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var TempPurchLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnBeforeTempPrepmtPurchLineModify. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTempPrepmtPurchLineModify(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var TempPurchLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnBeforeTransferReservToItemJnlLine. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the PurchLine parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the ApplySpecificItemTracking parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTransferReservToItemJnlLine(var SalesOrderLine: Record "Sales Line"; var ItemJnlLine: Record "Item Journal Line"; PurchLine: Record "Purchase Line"; QtyToBeShippedBase: Decimal; var ApplySpecificItemTracking: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateAssocOrder. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(true, false)] local procedure OnBeforeUpdateAssocOrder(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var IsHandled: Boolean; SuppressCommit: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the Receive parameter. + /// Specifies the Ship parameter. + /// Specifies the Invoice parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateBlanketOrderLine(PurchLine: Record "Purchase Line"; Receive: Boolean; Ship: Boolean; Invoice: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePostingNos. + /// + /// + /// Specifies the ModifyHeader parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the IsHandled parameter. + /// Specifies the DateOrderSeriesUsed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePostingNos(var PurchHeader: Record "Purchase Header"; var ModifyHeader: Boolean; SuppressCommit: Boolean; var IsHandled: Boolean; var DateOrderSeriesUsed: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePurchaseHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePurchaseHeader(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; GenJnlLineDocType: Option; var IsHandled: Boolean; var PurchaseHeader: Record "Purchase Header"; GenJnlLineDocNo: Code[20]; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePurchLineBeforePost. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePurchLineBeforePost(var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; WhseShip: Boolean; WhseReceive: Boolean; RoundingLineInserted: Boolean; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateInvoicedQtyOnPurchRcptLine. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateInvoicedQtyOnPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; CommitIsSupressed: Boolean; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeUpdatePrepmtPurchLineWithRounding. + /// + /// + /// Specifies the TotalRoundingAmount parameter. + /// Specifies the TotalPrepmtAmount parameter. + /// Specifies the FinalInvoice parameter. + /// Specifies the PricesInclVATRoundingAmount parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePrepmtPurchLineWithRounding(var PrepmtPurchLine: Record "Purchase Line"; TotalRoundingAmount: array[2] of Decimal; TotalPrepmtAmount: array[2] of Decimal; FinalInvoice: Boolean; PricesInclVATRoundingAmount: array[2] of Decimal; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeUpdateQtyToInvoiceForOrder. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToInvoiceForOrder(var PurchHeader: Record "Purchase Header"; TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateQtyToInvoiceForReturnOrder. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToInvoiceForReturnOrder(var PurchHeader: Record "Purchase Header"; TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateQtyToBeInvoicedForReceipt. + /// + /// + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToBeInvoicedForReceipt(var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; PurchLine: Record "Purchase Line"; PurchRcptLine: Record "Purch. Rcpt. Line"; InvoicingTrackingSpecification: Record "Tracking Specification"; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateQtyToBeInvoicedForReturnShipment. + /// + /// + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ReturnShipmentLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateQtyToBeInvoicedForReturnShipment(var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; PurchLine: Record "Purchase Line"; ReturnShipmentLine: Record "Return Shipment Line"; InvoicingTrackingSpecification: Record "Tracking Specification"; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateJobConsumptionReservationApplToItemEntry. + /// + /// + /// Specifies the ItemJournalLine parameter. + /// Specifies the IsNonInventoriableItem parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateJobConsumptionReservationApplToItemEntry(var TempReservEntryJobCons: Record "Reservation Entry" temporary; var ItemJournalLine: Record "Item Journal Line"; IsNonInventoriableItem: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLine. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLine(var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineFixedAsset. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineFixedAsset(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineItemCharge. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineItemCharge(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineJob. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineJob(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestPurchLineOthers. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestPurchLineOthers(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeTestStatusRelease. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestStatusRelease(PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateItemChargeAssgnt. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateItemChargeAssgnt(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateHandledICInboxTransaction. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateHandledICInboxTransaction(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeValidatePostingAndDocumentDate. + /// + /// + /// Specifies the CommitIsSupressed parameter. [IntegrationEvent(false, false)] local procedure OnBeforeValidatePostingAndDocumentDate(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnSetPostingDateExists. + /// + /// + /// Specifies the CommitIsSupressed parameter. + /// Specifies the PostingDateExists parameter. + /// Specifies the ReplacePostingDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnSetPostingDateExists(var PurchaseHeader: Record "Purchase Header"; CommitIsSupressed: Boolean; var PostingDateExists: Boolean; var ReplacePostingDate: Boolean; var PostingDate: Date; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeWhseHandlingRequired. + /// + /// + /// Specifies the Required parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeWhseHandlingRequired(PurchaseLine: Record "Purchase Line"; var Required: Boolean; var IsHandled: Boolean) begin @@ -10034,62 +11598,140 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnBeforeGetCountryCode. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the CountryRegionCode parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetCountryCode(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var CountryRegionCode: Code[10]; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeShouldPostWhseJnlLine. + /// + /// + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlLine parameter. + /// Specifies the TempWhseJnlLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeShouldPostWhseJnlLine(PurchLine: Record "Purchase Line"; var Result: Boolean; var IsHandled: Boolean; var ItemJnlLine: Record "Item Journal Line"; var TempWhseJnlLine: Record "Warehouse Journal Line" temporary; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnCalcInvDiscountSetFilter. + /// + /// + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvDiscountSetFilter(var PurchLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterClearPostingFromWhseRef. + /// + /// + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterClearPostingFromWhseRef(var PurchHeader: Record "Purchase Header"; var InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetPostingFlags. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetPostingFlags(var PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary); begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeSetPostingFlags. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeSetPostingFlags(var PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetSourceCode. + /// + /// + /// Specifies the SourceCodeSetup parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetSourceCode(var PurchHeader: Record "Purchase Header"; SourceCodeSetup: Record "Source Code Setup"; var SrcCode: Code[10]); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterArchiveUnpostedOrder. + /// + /// + /// Specifies the Currency parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterArchiveUnpostedOrder(var PurchHeader: Record "Purchase Header"; Currency: Record "Currency"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCalcInvDiscount. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the RefreshNeeded parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCalcInvDiscount(var PurchaseHeader: Record "Purchase Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseReceive: Boolean; WhseShip: Boolean; var RefreshNeeded: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateAssocOrderPostingDateOnBeforeValidateDocumentDate. + /// + /// + /// Specifies the OriginalDocumentDate parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateAssocOrderPostingDateOnBeforeValidateDocumentDate(var SalesHeader: Record "Sales Header"; var OriginalDocumentDate: Date) begin end; + /// + /// Event raised by OnCheckAssociatedOrderLinesOnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssociatedOrderLinesOnAfterSetFilters(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnCheckAssociatedOrderLinesOnAfterCheckDimensions. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssociatedOrderLinesOnAfterCheckDimensions(PurchaseHeader: Record "Purchase Header"; SalesHeader: Record "Sales Header"; var PurchaseLine: Record "Purchase Line"; TempSalesLine: Record "Sales Line" temporary) begin @@ -10097,72 +11739,146 @@ codeunit 90 "Purch.-Post" #if not CLEAN28 [Obsolete('This event is no longer used.', '28.0')] + /// + /// Event raised by OnCheckAssocOrderLinesOnBeforeCheckOrderLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssocOrderLinesOnBeforeCheckOrderLine(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; #endif + /// + /// Event raised by OnCheckExternalDocumentNumberOnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnCheckExternalDocumentNumberOnAfterSetFilters(var VendLedgEntry: Record "Vendor Ledger Entry"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForShipOnAfterTempPurchLineSetFilters. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForShipOnAfterTempPurchLineSetFilters(PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForReceiveOnAfterTempPurchLineSetFilters. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForReceiveOnAfterTempPurchLineSetFilters(PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCheckWarehouseOnAfterSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnCheckWarehouseOnAfterSetFilters(var TempItemPurchLine: Record "Purchase Line"); begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeLoop. + /// + /// + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeLoop(var TempPurchLine: Record "Purchase Line" temporary; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeCheckIfEmpty. + /// + /// [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeCheckIfEmpty(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCopyToTempLinesOnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnCopyToTempLinesOnAfterSetFilters(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterInitTempPrepmtPurchLineFromPurchHeader. + /// + /// [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterInitTempPrepmtPurchLineFromPurchHeader(var TempPrepmtPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterTempPurchLineSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterTempPurchLineSetFilters(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterTempPrepmtPurchLineSetFilters. + /// + /// + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterTempPrepmtPurchLineSetFilters(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnDivideAmountOnAfterClearAmounts. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterClearAmounts(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var PurchLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnAfterCalcLineAmountAndLineDiscountAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterCalcLineAmountAndLineDiscountAmount(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchaseLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineRemainderModify. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineRemainderModify(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency) begin @@ -10173,227 +11889,589 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnGetItemChargeLineOnAfterGet. + /// + /// + /// Specifies the PurchHeader parameter. [IntegrationEvent(false, false)] local procedure OnGetItemChargeLineOnAfterGet(var ItemChargePurchLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnGetPurchLinesOnAfterFillTempLines. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnGetPurchLinesOnAfterFillTempLines(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyType: Option; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnInsertICGenJnlLineOnAfterCopyDocumentFields. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempICGenJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertICGenJnlLineOnAfterCopyDocumentFields(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var TempICGenJournalLine: Record "Gen. Journal Line") begin end; + /// + /// Event raised by OnInsertAssocOrderChargeOnBeforeInsert. + /// + /// + /// Specifies the NewItemChargeAssignmentPurch parameter. [IntegrationEvent(false, false)] local procedure OnInsertAssocOrderChargeOnBeforeInsert(TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)"; var NewItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)") begin end; + /// + /// Event raised by OnInsertICGenJnlLineOnBeforeICGenJnlLineInsert. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnInsertICGenJnlLineOnBeforeICGenJnlLineInsert(var TempICGenJournalLine: Record "Gen. Journal Line" temporary; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnInsertReceiptLineOnAfterGetWhseRcptLine. + /// + /// + /// Specifies the PurchRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterGetWhseRcptLine(var WhseRcptLine: Record "Warehouse Receipt Line"; PurchRcptLine: Record "Purch. Rcpt. Line") begin end; + /// + /// Event raised by OnInsertReceiptLineOnAfterInitPurchRcptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the PostedWhseRcptHeader parameter. + /// Specifies the WhseRcptHeader parameter. + /// Specifies the WhseRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterInitPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; xPurchLine: Record "Purchase Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var CostBaseAmount: Decimal; PostedWhseRcptHeader: Record "Posted Whse. Receipt Header"; WhseRcptHeader: Record "Warehouse Receipt Header"; var WhseRcptLine: Record "Warehouse Receipt Line") begin end; + /// + /// Event raised by OnInsertReceiptLineOnAfterCalcShouldGetWhseRcptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PostedWhseRcptHeader parameter. + /// Specifies the WhseRcptHeader parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ShouldGetWhseRcptLine parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the PurchRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterCalcShouldGetWhseRcptLine(PurchRcptHeader: Record "Purch. Rcpt. Header"; PurchLine: Record "Purchase Line"; PostedWhseRcptHeader: Record "Posted Whse. Receipt Header"; WhseRcptHeader: Record "Warehouse Receipt Header"; CostBaseAmount: Decimal; WhseReceive: Boolean; WhseShip: Boolean; var ShouldGetWhseRcptLine: Boolean; xPurchLine: Record "Purchase Line"; var PurchRcptLine: Record "Purch. Rcpt. Line") begin end; + /// + /// Event raised by OnInsertReceiptLineOnAfterCalcShouldGetWhseShptLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PostedWhseShptHeader parameter. + /// Specifies the WhseShptHeader parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ShouldGetWhseShptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnAfterCalcShouldGetWhseShptLine(PurchRcptHeader: Record "Purch. Rcpt. Header"; PurchLine: Record "Purchase Line"; PostedWhseShptHeader: Record "Posted Whse. Shipment Header"; WhseShptHeader: Record "Warehouse Shipment Header"; CostBaseAmount: Decimal; WhseReceive: Boolean; WhseShip: Boolean; var ShouldGetWhseShptLine: Boolean) begin end; + /// + /// Event raised by OnInsertReturnShipmentLineOnAfterGetWhseShptLine. + /// + /// + /// Specifies the ReturnShptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReturnShipmentLineOnAfterGetWhseShptLine(var WhseShptLine: Record "Warehouse Shipment Line"; ReturnShptLine: Record "Return Shipment Line") begin end; + /// + /// Event raised by OnInsertReturnShipmentLineOnAfterReturnShptLineInit. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the PurchLine parameter. + /// Specifies the xPurchLine parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnInsertReturnShipmentLineOnAfterReturnShptLineInit(var ReturnShptHeader: Record "Return Shipment Header"; var ReturnShptLine: Record "Return Shipment Line"; var PurchLine: Record "Purchase Line"; var xPurchLine: Record "Purchase Line"; var CostBaseAmount: Decimal; WhseShip: Boolean; WhseReceive: Boolean); begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforePost. + /// + /// + /// Specifies the SalesOrderLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforePost(var ItemJournalLine: Record "Item Journal Line"; SalesOrderLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnAfterUpdateBlanketOrderLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the SalesOrderHeader parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the SrcCode parameter. + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnAfterUpdateBlanketOrderLine(var PurchaseHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer"; var SalesOrderLine: Record "Sales Line"; var SalesOrderHeader: record "Sales Header"; var SalesShptLine: record "Sales Shipment Line"; SalesShptHeader: Record "Sales Shipment Header"; SrcCode: Code[10]; Currency: Record Currency) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the SalesShptLine parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnBeforeUpdateBlanketOrderLine(var SalesOrderLine: Record "Sales Line"; SalesShptLine: Record "Sales Shipment Line") begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnAfterProcessDropShptPostBuffer. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnAfterProcessDropShptPostBuffer(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; PurchRcptHeader: Record "Purch. Rcpt. Header"; SalesShptLine: Record "Sales Shipment Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary); begin end; + /// + /// Event raised by OnPostDistributeItemChargeOnAfterCalcAmountToAssign. + /// + /// + /// Specifies the TempItemLedgerEntry parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the AmountToAssign parameter. + /// Specifies the Sign parameter. + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostDistributeItemChargeOnAfterCalcAmountToAssign(var PurchaseLine: Record "Purchase Line"; TempItemLedgerEntry: Record "Item Ledger Entry"; QtyToAssign: Decimal; AmountToAssign: Decimal; Sign: Decimal; Factor: Decimal) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterPostItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ItemChargeAssignmentPurch parameter. [IntegrationEvent(true, false)] local procedure OnPostItemChargeOnAfterPostItemJnlLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; ItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)") begin end; + /// + /// Event raised by OnPostItemChargeLineOnAfterPostItemCharge. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchaseLineBackup parameter. + /// Specifies the PurchLine parameter. [IntegrationEvent(true, false)] local procedure OnPostItemChargeLineOnAfterPostItemCharge(var TempItemChargeAssgntPurch: record "Item Charge Assignment (Purch)" temporary; PurchHeader: Record "Purchase Header"; PurchaseLineBackup: Record "Purchase Line"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargeLineOnBeforePostItemCharge. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeLineOnBeforePostItemCharge(var TempItemChargeAssgntPurch: record "Item Charge Assignment (Purch)" temporary; PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var GenJnlLineDocNo: Code[20]) begin end; + /// + /// Event raised by OnPostItemChargeOnBeforePostItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the PurchInvHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnBeforePostItemJnlLine(var PurchaseLineToPost: Record "Purchase Line"; var PurchaseLine: Record "Purchase Line"; QtyToAssign: Decimal; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; PurchInvHeader: Record "Purch. Inv. Header") begin end; - [IntegrationEvent(false, false)] + /// + /// Event raised by OnPostItemChargePerOrderOnAfterCopyToItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the GeneralLedgerSetup parameter. + /// Specifies the QtyToInvoice parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the PurchLine parameter. + [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnAfterCopyToItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; GeneralLedgerSetup: Record "General Ledger Setup"; QtyToInvoice: Decimal; var TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ReturnRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ReturnRcptLine: Record "Return Receipt Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerSalesRetRcptOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerSalesRetRcptOnBeforeTestJobNo(ReturnReceiptLine: Record "Return Receipt Line"; var IsHandled: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerSalesShptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerSalesShptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var SalesShptLine: Record "Sales Shipment Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerSalesShptOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerSalesShptOnBeforeTestJobNo(SalesShipmentLine: Record "Sales Shipment Line"; var IsHandled: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerRetShptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ReturnShptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetShptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ReturnShptLine: Record "Return Shipment Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRetShptOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetShptOnBeforeTestJobNo(ReturnShipmentLine: Record "Return Shipment Line"; var IsHandled: Boolean; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerRcptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the PurchRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the DistributeCharge parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRcptOnAfterCalcDistributeCharge(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var PurchRcptLine: record "Purch. Rcpt. Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var DistributeCharge: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRcptOnAfterPurchRcptLineGet. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRcptOnAfterPurchRcptLineGet(PurchRcptLine: Record "Purch. Rcpt. Line"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerTransferOnAfterInitPurchLine2. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerTransferOnAfterInitPurchLine2(TransferReceiptLine: Record "Transfer Receipt Line"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerTransferOnBeforePostItemJnlLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemApplnEntry parameter. + /// Specifies the TransferReceiptLine parameter. + /// Specifies the ItemChargeAssignmentPurch parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerTransferOnBeforePostItemJnlLine(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; ItemApplnEntry: Record "Item Application Entry"; TransferReceiptLine: Record "Transfer Receipt Line"; ItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)") begin end; + /// + /// Event raised by OnPostItemChargePerITTransferOnAfterCollectItemEntryRelation. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TransRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerITTransferOnAfterCollectItemEntryRelation(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; TransRcptLine: Record "Transfer Receipt Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnBeforeTempWhseJnlLine2Find. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnBeforeTempWhseJnlLine2Find(var TempWarehouseJournalLine2: Record "Warehouse Journal Line" temporary; PurchaseLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyDocumentFields. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; PurchRcptHeader: Record "Purch. Rcpt. Header"; GenJnlLineExtDocNo: Code[35]; QtyToBeInvoiced: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforePostItemJnlLineCopyDocumentFields. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforePostItemJnlLineCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; QtyToBeInvoiced: Decimal; QtyToBeReceived: Decimal; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterPostItemJnlLineJobConsumption. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the OriginalItemJnlLine parameter. + /// Specifies the TempReservationEntry parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the PostJobConsumptionBeforePurch parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the TempWhseTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterPostItemJnlLineJobConsumption(var ItemJournalLine: Record "Item Journal Line"; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; OriginalItemJnlLine: Record "Item Journal Line"; var TempReservationEntry: Record "Reservation Entry" temporary; var TrackingSpecification: Record "Tracking Specification" temporary; QtyToBeInvoiced: Decimal; QtyToBeReceived: Decimal; var PostJobConsumptionBeforePurch: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyItemCharge. + /// + /// + /// Specifies the TempItemChargeAssgntPurch parameter. [IntegrationEvent(true, false)] local procedure OnPostItemJnlLineOnAfterCopyItemCharge(var ItemJournalLine: Record "Item Journal Line"; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeCopyDocumentFields. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; WhseReceive: Boolean; WhseShip: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforePostWhseJnlLine. + /// + /// + /// Specifies the TempWhseJnlLine parameter. + /// Specifies the ItemJnlLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforePostWhseJnlLine(TempHandlingSpecification: Record "Tracking Specification"; var TempWhseJnlLine: Record "Warehouse Journal Line"; ItemJnlLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumptionOnBeforeRunItemJnlPostLineWithReservation. + /// + /// + /// Specifies the TempReservationEntry parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(true, false)] local procedure OnPostItemJnlLineJobConsumptionOnBeforeRunItemJnlPostLineWithReservation(var ItemJournalLine: Record "Item Journal Line"; var TempReservationEntry: Record "Reservation Entry" temporary; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumption. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemJournalLine parameter. + /// Specifies the TempPurchReservEntry parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the PurchItemLedgEntryNo parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineJobConsumption(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; ItemJournalLine: Record "Item Journal Line"; var TempPurchReservEntry: Record "Reservation Entry" temporary; QtyToBeInvoiced: Decimal; QtyToBeReceived: Decimal; var TempTrackingSpecification: Record "Tracking Specification" temporary; PurchItemLedgEntryNo: Integer; var IsHandled: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterSetFactor. + /// + /// + /// Specifies the Factor parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterSetFactor(var PurchaseLine: Record "Purchase Line"; var Factor: Decimal; var GenJnlLineExtDocNo: Code[35]; var ItemJournalLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterPrepareItemJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterPrepareItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; PreviewMode: Boolean; var GenJnlLineDocNo: code[20]; TrackingSpecification: Record "Tracking Specification"; QtyToBeReceived: Decimal; QtyToBeInvoiced: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnCopyProdOrder. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the SuppressCommit parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnCopyProdOrder(var ItemJournalLine: Record "Item Journal Line"; PurchaseLine: Record "Purchase Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; QtyToBeReceived: Decimal; QtyToBeInvoiced: Decimal; SuppressCommit: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumptionOnBeforeJobPost. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the SrcCode parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the IsHandled parameter. + /// Specifies the QtyToBeInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineJobConsumptionOnBeforeJobPost( var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; @@ -10402,191 +12480,471 @@ codeunit 90 "Purch.-Post" begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnAfterPostRevert. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnAfterPostRevert(var TempWhseJnlLine: Record "Warehouse Journal Line" temporary; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnBeforePostSingleLine. + /// + /// + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the TempWhseJnlLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnBeforePostSingleLine(WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean; var TempWhseJnlLine: Record "Warehouse Journal Line" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the TempWhseRcptHeader parameter. + /// Specifies the QtyToBeReceivedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck(var ItemJnlLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"; QtyToBeReceived: Decimal; WhseReceive: Boolean; var TempWhseRcptHeader: Record "Warehouse Receipt Header" temporary; QtyToBeReceivedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeItemJnlPostLineRunWithCheck. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the DropShipOrder parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the QtyToBeReceivedBase parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeItemJnlPostLineRunWithCheck(var ItemJnlLine: Record "Item Journal Line"; var PurchaseLine: Record "Purchase Line"; DropShipOrder: Boolean; PurchaseHeader: Record "Purchase Header"; WhseReceive: Boolean; QtyToBeReceived: Decimal; QtyToBeReceivedBase: Decimal; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeInitAmount. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeInitAmount(var ItemJnlLine: Record "Item Journal Line"; PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine(var ItemChargePurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemLineOnBeforePostShipReceive. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemLineOnBeforePostShipReceive(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforeReceiptInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforeReceiptInvoiceErr(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforePostItemTrackingForReceiptCondition. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforePostItemTrackingForReceiptCondition(var PurchInvHeader: Record "Purch. Inv. Header"; var PurchRcptLine: Record "Purch. Rcpt. Line"; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnAfterPurchRcptLineTestFields. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnAfterPurchRcptLineTestFields(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnAfterPurchRcptLineSetFilters. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnAfterPurchRcptLineSetFilters(var PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeReturnShipmentInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeReturnShipmentInvoiceErr(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostPurchLineOnAfterSetEverythingInvoiced. + /// + /// + /// Specifies the EverythingInvoiced parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the AmountsOnly parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterSetEverythingInvoiced(var PurchaseLine: Record "Purchase Line"; var EverythingInvoiced: Boolean; PurchaseHeader: Record "Purchase Header"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; var AmountsOnly: Boolean) begin end; + /// + /// Event raised by OnPostPurchLineOnAfterPostByType. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterPostByType(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnAfterCollectPurchaseLineReservEntries. + /// + /// + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCollectPurchaseLineReservEntries(var JobReservationEntry: Record "Reservation Entry"; ItemJournalLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnAfterGetPurchOrderLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetPurchOrderLine(var PurchaseLineOrder: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; PurchRcptLine: Record "Purch. Rcpt. Line") begin end; + /// + /// Event raised by OnPostPurchLineOnBeforePostByType. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchLine parameter. + /// Specifies the PurchLineACY parameter. + /// Specifies the Sourcecode parameter. [IntegrationEvent(true, false)] local procedure OnPostPurchLineOnBeforePostByType(PurchHeader: Record "Purchase Header"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; PurchLine: Record "Purchase Line"; PurchLineACY: Record "Purchase Line"; Sourcecode: Code[10]) begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertCrMemoLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchCrMemoLine parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeInsertCrMemoLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; xPurchaseLine: Record "Purchase Line"); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertInvoiceLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchInvLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeInsertInvoiceLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; var PurchInvLine: Record "Purch. Inv. Line"); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertReceiptLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(true, false)] local procedure OnPostPurchLineOnBeforeInsertReceiptLine(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; PurchRcptHeader: Record "Purch. Rcpt. Header"; RoundingLineInserted: Boolean; CostBaseAmount: Decimal; xPurchaseLine: Record "Purchase Line"; var ReturnShipmentHeader: Record "Return Shipment Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var ItemLedgShptEntryNo: Integer; SrcCode: Code[10]; PreviewMode: Boolean; var WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseReceive: Boolean; WhseShip: Boolean; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; GenJnlLineDocNo: Code[20]); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeInsertReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the PurchRcptHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeInsertReturnShipmentLine(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; ReturnShptHeader: Record "Return Shipment Header"; TempPurchLineGlobal: Record "Purchase Line"; RoundingLineInserted: Boolean; xPurchaseLine: Record "Purchase Line"; var PurchRcptHeader: Record "Purch. Rcpt. Header"); begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeRoundAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeRoundAmount(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnPostPurchLineOnTypeCaseElse. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the SourceCode parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnTypeCaseElse(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; SourceCode: Code[10]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary); begin end; + /// + /// Event raised by OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDoc. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDoc(var PurchInvLine: Record "Purch. Inv. Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDocCrMemo. + /// + /// + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the PurchLine parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the CommitIsSupressed parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterCreatePostedDeferralScheduleFromPurchDocCrMemo(var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnAfterPurchOrderLineModify. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the ReturnShptLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnAfterPurchOrderLineModify(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary; var ReturnShptLine: Record "Return Shipment Line") begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnAfterResetTempLines. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnAfterResetTempLines(var TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnBeforeInitQtyToInvoice(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterPurchOrderLineGet. + /// + /// + /// Specifies the PurchRcptLine parameter. + /// Specifies the PurchOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterPurchOrderLineGet(var TempPurchLine: Record "Purchase Line" temporary; PurchRcptLine: Record "Purch. Rcpt. Line"; PurchOrderLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterPurchOrderLineModify. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchOrderLine parameter. + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterPurchOrderLineModify(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary; var PurchOrderLine: Record "Purchase Line"; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice(var PurchaseLine: Record "Purchase Line"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeUpdateBlanketOrderLine(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitOutstanding(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitQtyToInvoice(var TempPurchaseLine: Record "Purchase Line" temporary; WhseShip: Boolean; WhseReceive: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeLoop. + /// + /// + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeLoop(PurchHeader: Record "Purchase Header"; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnPurchHeaderReceive. + /// + /// + /// Specifies the PurchRcptHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnPurchHeaderReceive(var TempPurchLine: Record "Purchase Line"; PurchRcptHeader: Record "Purch. Rcpt. Header") begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnSetDefaultQtyBlank. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchPost parameter. + /// Specifies the SetDefaultQtyBlank parameter. [IntegrationEvent(true, false)] local procedure OnPostUpdateOrderLineOnSetDefaultQtyBlank(var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary; PurchPost: Record "Purchases & Payables Setup"; var SetDefaultQtyBlank: Boolean) begin @@ -10594,162 +12952,360 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnProcessAssocItemJnlLineOnAfterInitTempDropShptPostBuffer. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnProcessAssocItemJnlLineOnAfterInitTempDropShptPostBuffer(var PurchLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnReleasePurchDocumentOnBeforeSetStatus. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnReleasePurchDocumentOnBeforeSetStatus(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRoundAmountOnBeforeCalculateLCYAmounts. + /// + /// + /// Specifies the PurchLineACY parameter. + /// Specifies the PurchHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TotalPurchaseLine parameter. + /// Specifies the TotalPurchaseLineLCY parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnBeforeCalculateLCYAmounts(var xPurchLine: Record "Purchase Line"; var PurchLineACY: Record "Purchase Line"; PurchHeader: Record "Purchase Header"; var IsHandled: Boolean; TotalPurchaseLine: Record "Purchase Line"; TotalPurchaseLineLCY: Record "Purchase Line"; var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnRoundAmountOnBeforeIncrAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the CurrExchRate parameter. + /// Specifies the NoVAT parameter. + /// Specifies the IsHandled parameter. + /// Specifies the NonDeductibleVAT parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnBeforeIncrAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; PurchLineQty: Decimal; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line"; var xPurchaseLine: Record "Purchase Line"; var CurrExchRate: Record "Currency Exchange Rate"; var NoVAT: Boolean; var IsHandled: Boolean; var NonDeductibleVAT: Codeunit "Non-Deductible VAT") begin end; + /// + /// Event raised by OnRunOnBeforeFinalizePosting. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeFinalizePosting(var PurchaseHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var ReturnShipmentHeader: Record "Return Shipment Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforeMakeInventoryAdjustment. + /// + /// + /// Specifies the GenJnlPostLine parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeMakeInventoryAdjustment(var PurchaseHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; PreviewMode: Boolean; PurchRcptHeader: Record "Purch. Rcpt. Header"; PurchInvHeader: Record "Purch. Inv. Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumPurchLines2OnAfterSetFilters. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnAfterSetFilters(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnSumPurchLines2OnAfterDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the PurchLineQty parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnAfterDivideAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping; PurchLineQty: Decimal; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary) begin end; + /// + /// Event raised by OnSumPurchLines2OnBeforeDivideAmount. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyType parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnBeforeDivideAmount(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyType: Option General,Invoicing,Shipping) begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterSalesOrderHeaderModify. + /// + /// + /// Specifies the SalesSetup parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterSalesOrderHeaderModify(var SalesOrderHeader: Record "Sales Header"; var SalesSetup: Record "Sales & Receivables Setup") begin end; + /// + /// Event raised by OnUpdateAssociatedSalesOrderOnBeforeClearTempDropShptPostBuffer. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateAssociatedSalesOrderOnBeforeClearTempDropShptPostBuffer(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer") begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterSalesOrderLineModify. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesOrderHeader parameter. + /// Specifies the SalesShptHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterSalesOrderLineModify(var SalesOrderLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesOrderHeader: Record "Sales Header"; SalesShptHeader: Record "Sales Shipment Header") begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterOrderNoClearFilter. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterOrderNoClearFilter(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnUpdateAssocOrderOnBeforeSalesOrderLineModify. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnBeforeSalesOrderLineModify(var SalesOrderLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheck. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheck(var BlanketOrderPurchLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeInitOutstanding(var BlanketOrderPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnAfterCheckBlanketOrderPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnAfterCheckBlanketOrderPurchLine(var BlanketOrderPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnUpdatePurchLineBeforePostOnAfterCalcInitQtyToInvoiceNeeded. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the InitQtyToInvoiceNeeded parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePurchLineBeforePostOnAfterCalcInitQtyToInvoiceNeeded(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var InitQtyToInvoiceNeeded: Boolean) begin end; + /// + /// Event raised by OnUpdateWhseDocumentsOnAfterUpdateWhseRcpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateWhseDocumentsOnAfterUpdateWhseRcpt(var WarehouseReceiptHeader: Record "Warehouse Receipt Header") begin end; + /// + /// Event raised by OnUpdateWhseDocumentsOnAfterUpdateWhseShpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateWhseDocumentsOnAfterUpdateWhseShpt(var WarehouseShipmentHeader: Record "Warehouse Shipment Header") begin end; + /// + /// Event raised by OnBeforeRunItemJnlPostLineWithReservation. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeRunItemJnlPostLineWithReservation(var ItemJournalLine: Record "Item Journal Line"); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterCopyAndCheckItemCharge. + /// + /// [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterCopyAndCheckItemCharge(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterCalcCopyAndCheckItemChargeNeeded. + /// + /// + /// Specifies the CopyAndCheckItemChargeNeeded parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterCalcCopyAndCheckItemChargeNeeded(var PurchHeader: Record "Purchase Header"; var CopyAndCheckItemChargeNeeded: Boolean) begin end; + /// + /// Event raised by OnUpdatePostingNosOnBeforeUpdatePostingNo. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnBeforeUpdatePostingNo(PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; var ModifyHeader: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdatePostingNosOnAfterCalcShouldUpdateReceivingNo. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the ShouldUpdateReceivingNo parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnAfterCalcShouldUpdateReceivingNo(PurchaseHeader: Record "Purchase Header"; PreviewMode: Boolean; var ModifyHeader: Boolean; var ShouldUpdateReceivingNo: Boolean) begin end; + /// + /// Event raised by OnCreatePositiveOnBeforeWhseJnlPostLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnCreatePositiveOnBeforeWhseJnlPostLine(var WhseJnlLine: Record "Warehouse Journal Line") begin end; + /// + /// Event raised by OnCreatePostedWhseShptLineOnBeforeCreatePostedShptLine. + /// + /// + /// Specifies the WarehouseShipmentLine parameter. + /// Specifies the PostedWhseShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnCreatePostedWhseShptLineOnBeforeCreatePostedShptLine(var ReturnShipmentLine: Record "Return Shipment Line"; var WarehouseShipmentLine: Record "Warehouse Shipment Line"; PostedWhseShipmentHeader: Record "Posted Whse. Shipment Header") begin end; + /// + /// Event raised by OnCreatePostedRcptLineOnBeforeCreatePostedRcptLine. + /// + /// + /// Specifies the WarehouseReceiptLine parameter. + /// Specifies the PostedWhseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnCreatePostedRcptLineOnBeforeCreatePostedRcptLine(var ReturnShipmentLine: Record "Return Shipment Line"; var WarehouseReceiptLine: Record "Warehouse Receipt Line"; PostedWhseReceiptHeader: Record "Posted Whse. Receipt Header") begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnBeforeTempTrackingSpecificationModify. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnBeforeTempTrackingSpecificationModify(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification. + /// + /// [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification(var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnBeforePostUpdateInvoiceLine. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateInvoiceLine(var TempPurchLine: Record "Purchase Line" temporary; var IsHandled: Boolean; var PurchaseHeader: Record "Purchase Header") begin @@ -10757,102 +13313,228 @@ codeunit 90 "Purch.-Post" #if not CLEAN28 [Obsolete('This event is no longer used.', '28.0')] + /// + /// Event raised by OnBeforeCheckAssociatedSalesOrderLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckAssociatedSalesOrderLine(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; #endif + /// + /// Event raised by OnBeforeCheckAssociatedOrderLines. + /// + /// [IntegrationEvent(false, false)] local procedure OnBeforeCheckAssociatedOrderLines(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforeCheckReceiveInvoiceShip. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckReceiveInvoiceShip(var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingItemChargePerOrderOnAfterCalcFactor. + /// + /// + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the TempTrackingSpecificationChargeAssmt parameter. + /// Specifies the SignFactor parameter. + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingItemChargePerOrderOnAfterCalcFactor(var NonDistrItemJnlLine: Record "Item Journal Line"; var ItemJnlLine2: Record "Item Journal Line"; var TempTrackingSpecificationChargeAssmt: Record "Tracking Specification"; SignFactor: Integer; Factor: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingItemChargePerOrderOnAfterUpdateItemJnlLine2LocationCode. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostItemTrackingItemChargePerOrderOnAfterUpdateItemJnlLine2LocationCode(var ItemJnlLine2: Record "Item Journal Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnAfterReturnShptLineReset. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnAfterReturnShptLineReset(var ReturnShptLine: Record "Return Shipment Line"; PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeSetItemEntryRelationForShipment. + /// + /// + /// Specifies the ReturnShptLine parameter. + /// Specifies the InvoicingTrackingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeSetItemEntryRelationForShipment(var ItemEntryRelation: Record "Item Entry Relation"; var ReturnShptLine: Record "Return Shipment Line"; var InvoicingTrackingSpecification: Record "Tracking Specification"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding(ReturnShptLine: Record "Return Shipment Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnAfterFillTempLines. + /// + /// [IntegrationEvent(true, false)] local procedure OnRunOnAfterFillTempLines(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnRunOnAfterInvoiceRounding. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(true, false)] local procedure OnRunOnAfterInvoiceRounding(var PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnRunOnBeforeFillTempLines. + /// + /// + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(true, false)] local procedure OnRunOnBeforeFillTempLines(PreviewMode: Boolean; var GenJnlLineDocNo: Code[20]) begin end; + /// + /// Event raised by OnRunOnAfterPostPurchLine. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the ReturnShipmentHeader parameter. [IntegrationEvent(true, false)] local procedure OnRunOnAfterPostPurchLine(var TempPurchLineGlobal: Record "Purchase Line" temporary; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var ReturnShipmentHeader: Record "Return Shipment Header") begin end; + /// + /// Event raised by OnAfterCalcInvDiscount. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(true, false)] local procedure OnAfterCalcInvDiscount(PurchHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostGLAccICLineOnBeforeCheckAndInsertICGenJnlLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the ICGenJnlLineNo parameter. [IntegrationEvent(false, false)] local procedure OnPostGLAccICLineOnBeforeCheckAndInsertICGenJnlLine(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line"; ICGenJnlLineNo: Integer) begin end; + /// + /// Event raised by OnPostGLAccICLineOnAfterCreateJobPurchLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostGLAccICLineOnAfterCreateJobPurchLine(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostItemJnlLineTrackingOnBeforeTempHandlingSpecificationFind. + /// + /// + /// Specifies the TempHandlingSpecification parameter. [IntegrationEvent(true, false)] local procedure OnPostItemJnlLineTrackingOnBeforeTempHandlingSpecificationFind(PurchLine: Record "Purchase Line"; var TempHandlingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnFinalizePostingOnAfterUpdateItemChargeAssgnt. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the TempPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(true, false)] local procedure OnFinalizePostingOnAfterUpdateItemChargeAssgnt(var PurchHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var EverythingInvoiced: Boolean; var TempPurchLine: Record "Purchase Line" temporary; var TempPurchLineGlobal: Record "Purchase Line" temporary; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeInsertValueEntryRelation. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(true, false)] local procedure OnFinalizePostingOnBeforeInsertValueEntryRelation(var PurchHeader: Record "Purchase Header"; PurchInvHeader: Record "Purch. Inv. Header"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the TempPurchLine parameter. + /// Specifies the TempPurchLineGlobal parameter. [IntegrationEvent(true, false)] local procedure OnFinalizePostingOnBeforeInsertTrackingSpecification(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; PurchHeader: Record "Purchase Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; EverythingInvoiced: Boolean; var TempPurchLine: Record "Purchase Line"; var TempPurchLineGlobal: Record "Purchase Line") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeUpdateWhseDocuments. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the TempWarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the TempWarehouseShipmentHeader parameter. + /// Specifies the WarehouseReceive parameter. + /// Specifies the WarehouseShip parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeUpdateWhseDocuments(var PurchaseHeader: Record "Purchase Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; TempWarehouseReceiptHeader: Record "Warehouse Receipt Header" temporary; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; TempWarehouseShipmentHeader: Record "Warehouse Shipment Header" temporary; WarehouseReceive: Boolean; WarehouseShip: Boolean; var IsHandled: Boolean) @@ -10862,662 +13544,1476 @@ codeunit 90 "Purch.-Post" + /// + /// Event raised by OnFinalizePostingOnBeforeCommit. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeCommit(PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertReceiptLineOnBeforeCreatePostedRcptLine. + /// + /// + /// Specifies the WarehouseReceiptLine parameter. + /// Specifies the PostedWhseReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnBeforeCreatePostedRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var WarehouseReceiptLine: Record "Warehouse Receipt Line"; PostedWhseReceiptHeader: Record "Posted Whse. Receipt Header") begin end; + /// + /// Event raised by OnInsertReceiptLineOnBeforeCreatePostedShptLine. + /// + /// + /// Specifies the WarehouseShipmentLine parameter. + /// Specifies the PostedWhseShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnBeforeCreatePostedShptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var WarehouseShipmentLine: Record "Warehouse Shipment Line"; PostedWhseShipmentHeader: Record "Posted Whse. Shipment Header") begin end; + /// + /// Event raised by OnInsertReceiptLineOnBeforeProcessWhseShptRcpt. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the CostBaseAmount parameter. + /// Specifies the PurchRcptLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertReceiptLineOnBeforeProcessWhseShptRcpt(var PurchLine: Record "Purchase Line"; var IsHandled: Boolean; var CostBaseAmount: Decimal; PurchRcptLine: Record "Purch. Rcpt. Line") begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeArchiveUnpostedOrder. + /// + /// + /// Specifies the PreviewMode parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeArchiveUnpostedOrder(var PurchHeader: Record "Purchase Header"; PreviewMode: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterInsertPostedHeaders. + /// + /// [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterInsertPostedHeaders(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeReleaseSalesHeader. + /// + /// + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeReleaseSalesHeader(var PurchHeader: Record "Purchase Header"; var SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnAfterReleaseSalesHeader. + /// + /// + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnAfterReleaseSalesHeader(var PurchHeader: Record "Purchase Header"; var SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdatePostingNosOnAfterSetReturnShipmentNoFromNos. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnAfterSetReturnShipmentNoFromNos(var PurchHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnUpdatePostingNosOnInvoiceOnBeforeSetPostingNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdatePostingNosOnInvoiceOnBeforeSetPostingNo(var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists. + /// + /// + /// Specifies the PostingDateExists parameter. + /// Specifies the ReplacePostingDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the VATDateExists parameter. + /// Specifies the ReplaceVATDate parameter. + /// Specifies the VATDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists(var PurchHeader: Record "Purchase Header"; var PostingDateExists: Boolean; var ReplacePostingDate: Boolean; var PostingDate: Date; var ReplaceDocumentDate: Boolean; var ModifyHeader: Boolean; var VATDateExists: Boolean; var ReplaceVATDate: Boolean; var VATDate: Date) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchaseLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchaseLine(PurchaseLine: Record "Purchase Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchRcptLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnPurchRcptLine(PurchRcptLine: Record "Purch. Rcpt. Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnShipmentLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnShipmentLine(ReturnShipmentLine: Record "Return Shipment Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertReturnShipmentHeader. + /// + /// + /// Specifies the ReturnShptHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReturnShipmentHeader(var PurchHeader: Record "Purchase Header"; var ReturnShptHeader: Record "Return Shipment Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertInvoiceHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the Window parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PurchCommentLine parameter. + /// Specifies the RecordLinkManagement parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertInvoiceHeader(var PurchHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var IsHandled: Boolean; var Window: Dialog; var HideProgressWindow: Boolean; var SrcCode: Code[10]; var PurchCommentLine: Record "Purch. Comment Line"; var RecordLinkManagement: Codeunit "Record Link Management") begin end; + /// + /// Event raised by OnBeforeInserCrMemoHeader. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the HideProgressWindow parameter. + /// Specifies the Window parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PurchCrMemoHeader parameter. + /// Specifies the PurchCommentLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInserCrMemoHeader(var PurchHeader: Record "Purchase Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var HideProgressWindow: Boolean; var Window: Dialog; var IsHandled: Boolean; SrcCode: Code[10]; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; var PurchCommentLine: Record "Purch. Comment Line") begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnBeforeCopyComments. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnBeforeCopyComments(var PurchHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesShptHeader: Record "Sales Shipment Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnBeforePostBalancingEntry. + /// + /// + /// Specifies the LineCount parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnBeforePostBalancingEntry(var PurchHeader: Record "Purchase Header"; var LineCount: Integer) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterReceive. + /// + /// + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterReceive(var PurchHeader: Record "Purchase Header"; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforeUpdateAssosOrderPostingNos. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the DropShipment parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateAssosOrderPostingNos(var TempPurchLine: Record "Purchase Line" temporary; var PurchHeader: Record "Purchase Header"; var DropShipment: Boolean; var IsHandled: Boolean; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeUpdateAfterPosting. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempPurchLine parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeUpdateAfterPosting(var PurchHeader: Record "Purchase Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var EverythingInvoiced: Boolean; var IsHandled: Boolean; var TempPurchLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforePurchOrderLineModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforePurchOrderLineModify(var PurchOrderLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforePostPurchLine. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostPurchLine(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeFindTempPurchLine. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeFindTempPurchLine(var TempPurchaseLine: Record "Purchase Line"; var PurchaseHeader: Record "Purchase Header"); begin end; + /// + /// Event raised by OnCalcInvoiceOnAfterResetTempLines. + /// + /// + /// Specifies the TempPurchLine parameter. + /// Specifies the NewInvoice parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvoiceOnAfterResetTempLines(var PurchHeader: Record "Purchase Header"; var TempPurchLine: Record "Purchase Line" temporary; var NewInvoice: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnAfterPostInvoice. + /// + /// + /// Specifies the PurchRcptHeader parameter. + /// Specifies the ReturnShipmentHeader parameter. + /// Specifies the PurchInvHeader parameter. + /// Specifies the PurchCrMemoHdr parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the Window parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnRunOnAfterPostInvoice(var PurchaseHeader: Record "Purchase Header"; var PurchRcptHeader: Record "Purch. Rcpt. Header"; var ReturnShipmentHeader: Record "Return Shipment Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."; var PreviewMode: Boolean; var Window: Dialog; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnCopyToTempLinesLoop. + /// + /// [IntegrationEvent(false, false)] local procedure OnCopyToTempLinesLoop(var PurchLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnRunOnBeforePostPurchLine. + /// + /// + /// Specifies the PurchHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforePostPurchLine(var PurchLine: Record "Purchase Line"; var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeValidateICPartnerBusPostingGroups. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeValidateICPartnerBusPostingGroups(var TempICGenJnlLine: Record "Gen. Journal Line" temporary; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterGetCurrency. + /// + /// + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetCurrency(CurrencyCode: Code[10]; var Currency: Record Currency) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct(var TempPrepmtPurchLine: Record "Purchase Line" temporary; var PurchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterGetPurchPrepmtAccount. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterGetPurchPrepmtAccount(var GLAcc: Record "G/L Account"; var TempPurchaseLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeGetPurchPrepmtAccount. + /// + /// + /// Specifies the TempPurchaseLine parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the GenPostingSetup parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeGetPurchPrepmtAccount(var GLAcc: Record "G/L Account"; var TempPurchaseLine: Record "Purchase Line" temporary; PurchaseHeader: Record "Purchase Header"; var GenPostingSetup: Record "General Posting Setup"; CompleteFunctionality: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertReturnEntryRelation. + /// + /// + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertReturnEntryRelation(var ReturnShptLine: Record "Return Shipment Line"; var Result: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestPurchLineOnBeforeTestFieldQtyToReceive. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnTestPurchLineOnBeforeTestFieldQtyToReceive(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestPurchLineOnBeforeTestFieldReturnQtyToShip. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnTestPurchLineOnBeforeTestFieldReturnQtyToShip(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnAfterCalcVATAmountLines. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TempVATAmountLine parameter. [IntegrationEvent(false, false)] local procedure OnRunOnAfterCalcVATAmountLines(var PurchaseHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var TempVATAmountLine: Record "VAT Amount Line" temporary) begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforeInitAssocItemJnlLine. + /// + /// + /// Specifies the ItemShptEntryNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforeInitAssocItemJnlLine(var SalesOrderLine: Record "Sales Line"; var ItemShptEntryNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingSpecificationOnBeforeGetItemTrackingSetup. + /// + /// + /// Specifies the ItemTrackingSetup parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingSpecificationOnBeforeGetItemTrackingSetup(var PurchaseLine: Record "Purchase Line"; var ItemTrackingSetup: Record "Item Tracking Setup"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcItemJnlLineToBeReceivedAmounts. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToBeReceived parameter. + /// Specifies the RemAmt parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcItemJnlLineToBeReceivedAmounts(var ItemJnlLine: Record "Item Journal Line"; var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyToBeReceived: Decimal; var RemAmt: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforeExit. + /// + /// + /// Specifies the ItemShptEntryNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforeExit(SalesOrderHeader: Record "Sales Header"; var ItemShptEntryNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeCalcQty. + /// + /// + /// Specifies the PurchOrderLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeCalcQty(var TempPurchLine: Record "Purchase Line" temporary; var PurchOrderLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnBeforeInsertSalesShptHeader. + /// + /// + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnBeforeInsertSalesShptHeader(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnCreatePrepmtLinesOnAfterShouldCalcAmounts. + /// + /// + /// Specifies the ShouldCalcAmounts parameter. + /// Specifies the TempPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepmtLinesOnAfterShouldCalcAmounts(PurchHeader: Record "Purchase Header"; var ShouldCalcAmounts: Boolean; var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeDivideAmount. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeDivideAmount(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostCombineSalesOrderShipmentOnAfterUpdateSalesOrderLine. + /// + /// + /// Specifies the SalesOrderHeader parameter. + /// Specifies the SalesOrderLine parameter. + /// Specifies the SalesShipmentLine parameter. [IntegrationEvent(false, false)] local procedure OnPostCombineSalesOrderShipmentOnAfterUpdateSalesOrderLine(SalesShptHeader: Record "Sales Shipment Header"; SalesOrderHeader: Record "Sales Header"; var SalesOrderLine: Record "Sales Line"; SalesShipmentLine: Record "Sales Shipment Line") begin end; + /// + /// Event raised by OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckPosted. + /// + /// + /// Specifies the ShouldCheckPosted parameter. [IntegrationEvent(false, false)] local procedure OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckPosted(PurchHeader: Record "Purchase Header"; var ShouldCheckPosted: Boolean) begin end; + /// + /// Event raised by OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckUnposted. + /// + /// + /// Specifies the ShouldCheckUnposted parameter. [IntegrationEvent(false, false)] local procedure OnCheckICDocumentDuplicatePostingOnAfterCalcShouldCheckUnposted(PurchHeader: Record "Purchase Header"; var ShouldCheckUnposted: Boolean) begin end; + /// + /// Event raised by OnAfterCopyToTempLines. + /// + /// + /// Specifies the PurchaseHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterCopyToTempLines(var TempPurchLine: Record "Purchase Line" temporary; var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnPostUpdateCreditMemoLineOnBeforeTempPurchLineSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostUpdateCreditMemoLineOnBeforeTempPurchLineSetFilters(var TempPurchaseLine: Record "Purchase Line" temporary) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForShipment. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForShipment(var PurchHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostGLAccICLineOnBeforeCreateJobPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostGLAccICLineOnBeforeCreateJobPurchLine(var PurchHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeIsItemChargeLineWithQuantityToInvoice. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeIsItemChargeLineWithQuantityToInvoice(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerRcpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemChargeAssgntPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRcpt(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TempItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterGetAppliedOutboundItemLedgEntryNo. + /// + /// + /// Specifies the ItemApplicationEntry parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetAppliedOutboundItemLedgEntryNo(var ItemJnlLine: Record "Item Journal Line"; var ItemApplicationEntry: Record "Item Application Entry") begin end; + /// + /// Event raised by OnAfterGetGeneralPostingSetup. + /// + /// + /// Specifies the PurchLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetGeneralPostingSetup(var GeneralPostingSetup: Record "General Posting Setup"; PurchLine: Record "Purchase Line"); begin end; + /// + /// Event raised by OnBeforeConfirmJobLineType. + /// + /// + /// Specifies the HideDialog parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeConfirmJobLineType(PurchLine: Record "Purchase Line"; var HideDialog: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeConfirmJobPlanningLineNo. + /// + /// + /// Specifies the HideDialog parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeConfirmJobPlanningLineNo(PurchLine: Record "Purchase Line"; var HideDialog: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldProcessShipment. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ShouldProcessShipment parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldProcessShipment(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var ShouldProcessShipment: Boolean) begin end; + /// + /// Event raised by OnCheckItemReservDisruptionOnAfterInsertTempSKU. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckItemReservDisruptionOnAfterInsertTempSKU(var Item: Record Item; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterPostItemChargePerRetRcpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerRetRcpt(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerTransfer. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerTransfer(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerRetShpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerRetShpt(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterPostItemChargePerSalesShpt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargePerSalesShpt(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnInsertInvoiceHeaderOnBeforeCopyLinks. + /// + /// + /// Specifies the PurchInvHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertInvoiceHeaderOnBeforeCopyLinks(var PurchHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeUpdateIncomingDocument. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeUpdateIncomingDocument(var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineJobConsumptionOnAfterItemLedgEntrySetFilters. + /// + /// + /// Specifies the PurchLine parameter. + /// Specifies the ItemJournalLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineJobConsumptionOnAfterItemLedgEntrySetFilters(var ItemLedgEntry: Record "Item Ledger Entry"; var PurchLine: Record "Purchase Line"; var ItemJournalLine: Record "Item Journal Line") begin end; + /// + /// Event raised by OnTestPurchLineOnTypeCaseOnDocumentTypeCaseElse. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnTestPurchLineOnTypeCaseOnDocumentTypeCaseElse(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnAfterDecrementPrepmtAmtInvLCY. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the PrepmtAmountInvLCY parameter. + /// Specifies the PrepmtVATAmountInvLCY parameter. [IntegrationEvent(false, false)] local procedure OnAfterDecrementPrepmtAmtInvLCY(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; var PrepmtAmountInvLCY: Decimal; var PrepmtVATAmountInvLCY: Decimal) begin end; #if not CLEAN27 + /// + /// Event raised by OnSetPostingPreviewDocumentNo. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnSetPostingPreviewDocumentNo(var PreviewDocumentNo: Code[20]) begin end; + /// + /// Event raised by OnGetPostingPreviewDocumentNos. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnGetPostingPreviewDocumentNos(var PreviewDocumentNos: List of [Code[20]]) begin end; #endif + /// + /// Event raised by OnInsertPostedHeadersOnAfterInvoice. + /// + /// + /// Specifies the GenJournalLine parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInvoice(var PurchaseHeader: Record "Purchase Header"; var GenJournalLine: Record "Gen. Journal Line"; var GenJnlLineDocType: Enum "Gen. Journal Document Type"; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterSumPurchLines2. + /// + /// + /// Specifies the OldPurchaseLine parameter. + /// Specifies the NewPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterSumPurchLines2(var PurchaseHeader: Record "Purchase Header"; var OldPurchaseLine: Record "Purchase Line"; var NewPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnTypeCaseElse. + /// + /// + /// Specifies the Sign parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnTypeCaseElse(var PurchaseLine: Record "Purchase Line"; var Sign: Decimal) begin end; + /// + /// Event raised by OnSumPurchLines2OnAfterIsRoundingLineInserted. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the OldPurchaseLine parameter. + /// Specifies the RoundingLineInserted parameter. [IntegrationEvent(false, false)] local procedure OnSumPurchLines2OnAfterIsRoundingLineInserted(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var OldPurchaseLine: Record "Purchase Line"; RoundingLineInserted: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckICPartnerBlocked. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckICPartnerBlocked(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnAfterPostLines. + /// + /// + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the TotalPurchLine parameter. + /// Specifies the TotalPurchLineLCY parameter. + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the TotalAmount parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnAfterPostLines(var PurchaseHeader: Record "Purchase Header"; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line"; var TempPurchLineGlobal: Record "Purchase Line" temporary; TotalAmount: Decimal) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforePurchaseHeaderModify. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforePurchaseHeaderModify(var PurchaseHeader: Record "Purchase Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdatePurchLineDimSetIDFromAppliedEntry. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdatePurchLineDimSetIDFromAppliedEntry(var PurchaseLineToPost: Record "Purchase Line"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterDeleteItemChargeAssgnt. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterDeleteItemChargeAssgnt(var PurchaseHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnBeforePostItemChargePerRetRcpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRetRcpt(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerITTransfer. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TransRcptLine parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerITTransfer(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; TransRcptLine: Record "Transfer Receipt Line"; var TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemChargePerRetShpt. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the TempItemChargeAssignmentPurch parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRetShpt(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; TempItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeShouldTestGetReceiptPPmtAmtToDeduct. + /// + /// + /// Specifies the CompleteFunctionality parameter. + /// Specifies the ShouldTestGetReceiptPPmtAmtToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeShouldTestGetReceiptPPmtAmtToDeduct(PurchaseHeader: Record "Purchase Header"; CompleteFunctionality: Boolean; var ShouldTestGetReceiptPPmtAmtToDeduct: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeAmountIncludingVATAmountRound. + /// + /// + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeAmountIncludingVATAmountRound(var PurchaseLine: Record "Purchase Line"; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeCalcAmountsForFullVAT. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeCalcAmountsForFullVAT(var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckMandatoryFields. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckMandatoryFields(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckPostingDate. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPostingDate(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterInsertCrMemoHeader. + /// + /// + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertCrMemoHeader(var PurchaseHeader: Record "Purchase Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.") begin end; + /// + /// Event raised by OnAfterInsertInvoiceHeader. + /// + /// + /// Specifies the PurchInvHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertInvoiceHeader(var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header") begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeOnBeforeDoCommit. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeOnBeforeDoCommit(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnReleasePurchDocumentOnBeforeDoCommit. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnReleasePurchDocumentOnBeforeDoCommit(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateAssociatedSalesOrderBeforeInitOutstanding. + /// + /// + /// Specifies the SalesOrderLine parameter. + /// Specifies the SalesOrderHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssociatedSalesOrderBeforeInitOutstanding(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var SalesOrderLine: Record "Sales Line"; SalesOrderHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnRunOnBeforePostInvoice. + /// + /// + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforePostInvoice(PurchaseHeader: Record "Purchase Header"; var EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnCheckPurchDocumentOnBeforeCheckPurchDim. + /// + /// + /// Specifies the TempPurchLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckPurchDocumentOnBeforeCheckPurchDim(var PurchaseHeader: Record "Purchase Header"; var TempPurchLineGlobal: Record "Purchase Line" temporary; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnCalcInvDiscountOnBeforeDoCommit. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvDiscountOnBeforeDoCommit(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeSetReplaceDocumentDate. + /// + /// + /// Specifies the PostingDate parameter. + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeSetReplaceDocumentDate(var PurchaseHeader: Record "Purchase Header"; var PostingDate: Date; var ReplaceDocumentDate: Boolean; var ModifyHeader: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineGet. + /// + /// + /// Specifies the TempVATAmountLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineGet(PurchaseLine: Record "Purchase Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckFAPostingPossibility. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckFAPostingPossibility(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckPostRestrictions. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPostRestrictions(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostPurchLineOnBeforeTestGeneralPostingGroups. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnBeforeTestGeneralPostingGroups(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeTestFieldBilltoCustomerNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeTestFieldBilltoCustomerNo(var SalesOrderHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnAfterCalcVATBaseAmount. + /// + /// [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterCalcVATBaseAmount(var PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnBeforeUpdateAfterPosting. + /// + /// + /// Specifies the SuppressCommit parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateAfterPosting(var PurchaseHeader: Record "Purchase Header"; SuppressCommit: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckAndUpdate. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckAndUpdate(var PurchaseHeader: Record "Purchase Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterCalcTotalChargeAmt. + /// + /// + /// Specifies the QtyToAssign parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the xPurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnAfterCalcTotalChargeAmt(var PurchaseLineToPost: Record "Purchase Line"; QtyToAssign: Decimal; var PurchaseLine: Record "Purchase Line"; xPurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostPurchLineOnAfterInsertReturnShipmentLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ReturnShptHeader parameter. + /// Specifies the TempPurchaseLineGlobal parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the xPurchaseLine parameter. + /// Specifies the PurchCrMemoHdr parameter. [IntegrationEvent(false, false)] local procedure OnPostPurchLineOnAfterInsertReturnShipmentLine(var PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; ReturnShptHeader: Record "Return Shipment Header"; TempPurchaseLineGlobal: Record "Purchase Line"; RoundingLineInserted: Boolean; xPurchaseLine: Record "Purchase Line"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr."); begin end; + /// + /// Event raised by OnBeforeMakeInventoryAdjustment. + /// + /// [IntegrationEvent(false, false)] procedure OnBeforeMakeInventoryAdjustment(var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeCheckItemReservDisruption. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckItemReservDisruption(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterSetCheckApplToItemEntry. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterSetCheckApplToItemEntry(PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheckBlanketOrderPurchLine. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheckBlanketOrderPurchLine(var BlanketOrderPurchaseLine: Record "Purchase Line"; PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeModifyInvoicedQtyOnPurchRcptLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeModifyInvoicedQtyOnPurchRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeTestPostingDate. + /// + /// + /// Specifies the ReplacePostingDate parameter. + /// Specifies the SkipTestPostingDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeTestPostingDate(var PurchaseHeader: Record "Purchase Header"; ReplacePostingDate: Boolean; var SkipTestPostingDate: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckItemCharge. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckItemCharge(var ItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeProcedurePostAssocItemJnlLine. + /// + /// + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the ItemShptEntryNo parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeProcedurePostAssocItemJnlLine(var SalesOrderLine: Record "Sales Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempHandlingSpecification: Record "Tracking Specification" temporary; QtyToBeShipped: Decimal; QtyToBeShippedBase: Decimal; var ItemShptEntryNo: Integer; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostDistributeItemChargeOnAfterSetFactor. + /// + /// + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostDistributeItemChargeOnAfterSetFactor(TempItemLedgerEntry: Record "Item Ledger Entry"; var Factor: Decimal) begin end; + /// + /// Event raised by OnBeforeCalcItemJnlLineToBeInvoicedAmounts. + /// + /// + /// Specifies the PurchaseHeader parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the RemAmt parameter. + /// Specifies the RemDiscAmt parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcItemJnlLineToBeInvoicedAmounts(var ItemJournalLine: Record "Item Journal Line"; var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; var RemAmt: Decimal; var RemDiscAmt: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemJnlLineWhseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. + /// Specifies the PurchaseLine parameter. + /// Specifies the PostBefore parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLineWhseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary; PurchaseLine: Record "Purchase Line"; PostBefore: Boolean) begin end; + /// + /// Event raised by OnAfterPostItemJnlLineWhseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJnlLineWhseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnPostItemChargePerTransferOnBeforeProcessItemApplicationEntry. + /// + /// + /// Specifies the ItemApplicationEntry parameter. + /// Specifies the TransferReceiptLine parameter. + /// Specifies the TotalAmountToPostFCY parameter. + /// Specifies the AmountToPostFCY parameter. + /// Specifies the GeneralLedgerSetup parameter. + /// Specifies the PurchaseHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerTransferOnBeforeProcessItemApplicationEntry(PurchaseLine: Record "Purchase Line"; ItemApplicationEntry: Record "Item Application Entry"; TransferReceiptLine: Record "Transfer Receipt Line"; TotalAmountToPostFCY: Decimal; var AmountToPostFCY: Decimal; GeneralLedgerSetup: Record "General Ledger Setup"; PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemCharge. + /// + /// + /// Specifies the PurchaseLine parameter. + /// Specifies the ItemEntryNo parameter. + /// Specifies the QuantityBase parameter. + /// Specifies the AmountToAssign parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the IndirectCostPct parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemCharge(PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"; ItemEntryNo: Integer; QuantityBase: Decimal; AmountToAssign: Decimal; QtyToAssign: Decimal; IndirectCostPct: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertedPrepmtVATBaseToDeductOnAfterSetTempPrepmtDeductLCYPurchaseLine. + /// + /// + /// Specifies the PrepmtVATBaseToDeduct parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertedPrepmtVATBaseToDeductOnAfterSetTempPrepmtDeductLCYPurchaseLine(var TempPrepmtDeductLCYPurchaseLine: Record "Purchase Line" temporary; var PrepmtVATBaseToDeduct: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeAdjustPrepmtAmountLCY. + /// + /// + /// Specifies the PrepmtPurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustPrepmtAmountLCY(PurchaseHeader: Record "Purchase Header"; var PrepmtPurchaseLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeAdjustFinalInvWith100PctPrepmt. + /// + /// + /// Specifies the TempPrepmtDeductLCYPurchaseLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustFinalInvWith100PctPrepmt(var CombinedPurchaseLine: Record "Purchase Line"; var TempPrepmtDeductLCYPurchaseLine: Record "Purchase Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateInvoicedQtyOnReturnShipmentLine. + /// + /// [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoicedQtyOnReturnShipmentLine(var ReturnShipmentLine: Record "Return Shipment Line") begin end; + /// + /// Event raised by OnAfterCheckPurchRcptLine. + /// + /// + /// Specifies the PurchaseLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterCheckPurchRcptLine(PurchRcptLine: Record "Purch. Rcpt. Line"; PurchaseLine: Record "Purchase Line") begin end; + /// + /// Event raised by OnUpdateItemChargeAssgntOnBeforeItemChargeAssignmentPurchModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateItemChargeAssgntOnBeforeItemChargeAssignmentPurchModify(var ItemChargeAssgntPurch: Record "Item Charge Assignment (Purch)") begin end; + /// + /// Event raised by OnBeforeUpdateReceiptInvoicingQuantities. + /// + /// + /// Specifies the SkipQuantityUpdate parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateReceiptInvoicingQuantities(PurchLine: Record "Purchase Line"; var SkipQuantityUpdate: Boolean) begin end; + /// + /// Event raised by OnSetCommitBehavior. + /// + /// [IntegrationEvent(false, false)] local procedure OnSetCommitBehavior(var IgnoreCommit: Boolean) begin end; -} + /// + /// Event raised by OnAfterProcessPostingLines. + /// + /// + /// Specifies the TotalPurchLine parameter. + /// Specifies the VendLedgEntry parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the Window parameter. + [IntegrationEvent(false, false)] + local procedure OnAfterProcessPostingLines(var PurchHeader: Record "Purchase Header"; var TotalPurchLine: Record "Purchase Line"; var VendLedgEntry: Record "Vendor Ledger Entry"; InvoicePostingParameters: Record "Invoice Posting Parameters"; SuppressCommit: Boolean; EverythingInvoiced: Boolean; var Window: Dialog) + begin + end; + + /// + /// Event is raised after the CheckPostRestrictions function is executed + /// + /// The purchase header record that was checked for post restrictions. + [IntegrationEvent(false, false)] + local procedure OnAfterCheckPostRestrictions(var PurchaseHeader: Record "Purchase Header") + begin + end; +} diff --git a/src/Layers/W1/BaseApp/Sales/Posting/SalesPost.Codeunit.al b/src/Layers/W1/BaseApp/Sales/Posting/SalesPost.Codeunit.al index d0a29103c5c..339393014df 100644 --- a/src/Layers/W1/BaseApp/Sales/Posting/SalesPost.Codeunit.al +++ b/src/Layers/W1/BaseApp/Sales/Posting/SalesPost.Codeunit.al @@ -352,6 +352,8 @@ codeunit 80 "Sales-Post" ProcessPosting(SalesHeader, SalesHeader2, TempDropShptPostBuffer, CustLedgEntry, EverythingInvoiced); + Clear(GenJnlPostLine); + UpdateLastPostingNos(SalesHeader); OnRunOnBeforeFinalizePosting( @@ -540,6 +542,8 @@ codeunit 80 "Sales-Post" OnRunOnBeforeMakeInventoryAdjustment(SalesHeader, SalesInvHeader, GenJnlPostLine, ItemJnlPostLine, PreviewMode, SkipInventoryAdjustment); if not SkipInventoryAdjustment then MakeInventoryAdjustment(); + + OnAfterProcessPostingLines(SalesHeader, TotalSalesLine, CustLedgEntry, InvoicePostingParameters, SuppressCommit, EverythingInvoiced, Window, HideProgressWindow); end; /// @@ -6260,6 +6264,8 @@ codeunit 80 "Sales-Post" if SalesHeader."Bill-to Contact No." <> '' then if Contact.Get(SalesHeader."Bill-to Contact No.") then Contact.CheckIfPrivacyBlocked(true); + + OnAfterCheckPostRestrictions(SalesHeader); end; local procedure CheckCustBlockage(SalesHeader: Record "Sales Header"; CustCode: Code[20]; ExecuteDocCheck: Boolean) @@ -9423,6 +9429,7 @@ codeunit 80 "Sales-Post" /// Indicates whether the item journal line should be posted. /// Indicates whether warehouse shipment is involved. /// The warehouse receipt header. + /// Specifies the WarehouseShipmentHeader parameter. [IntegrationEvent(true, false)] local procedure OnAfterPostItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var WhseJnlPostLine: Codeunit "Whse. Jnl.-Register Line"; OriginalItemJnlLine: Record "Item Journal Line"; var ItemShptEntryNo: Integer; IsATO: Boolean; var TempHandlingSpecification: Record "Tracking Specification"; var TempATOTrackingSpecification: Record "Tracking Specification"; TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; ShouldPostItemJnlLine: Boolean; WhseShip: Boolean; WhseRcptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header") begin @@ -12582,834 +12589,1960 @@ codeunit 80 "Sales-Post" begin end; + /// + /// Event raised by OnSumSalesLines2OnAfterDivideAmount. + /// + /// + /// Specifies the SalesLineQty parameter. + /// Specifies the QtyType parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnAfterDivideAmount(var OldSalesLine: Record "Sales Line"; var SalesLineQty: Decimal; QtyType: Option General,Invoicing,Shipping) begin end; + /// + /// Event raised by OnSumSalesLines2OnAfterCalcTotalAdjCostLCY. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnAfterCalcTotalAdjCostLCY(var TotalAdjCostLCY: decimal; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnSumSalesLines2OnBeforeCalcVATAmountLines. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the InsertSalesLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the QtyType parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnBeforeCalcVATAmountLines(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; InsertSalesLine: Boolean; var TempVATAmountLine: Record "VAT Amount Line" temporary; QtyType: Option General,Invoicing,Shipping; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumSalesLines2OnBeforeNewSalesLineInsert. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2OnBeforeNewSalesLineInsert(var NewSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumSalesLines2SetFilter. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the InsertSalesLine parameter. + /// Specifies the QtyType parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLines2SetFilter(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; InsertSalesLine: Boolean; var QtyType: Option) begin end; + /// + /// Event raised by OnPostItemJnlLineWhseLineOnBeforePostTempWhseJnlLine2. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineWhseLineOnBeforePostTempWhseJnlLine2(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterTestUpdatedSalesLine. + /// + /// + /// Specifies the EverythingInvoiced parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterTestUpdatedSalesLine(var SalesLine: Record "Sales Line"; var EverythingInvoiced: Boolean; SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineBeforeInitQtyToInvoice. + /// + /// + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineBeforeInitQtyToInvoice(var TempSalesLine: Record "Sales Line" temporary; WhseShip: Boolean; WhseReceive: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitOutstanding(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeInitTempSalesLineQuantities. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeInitTempSalesLineQuantities(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterUpdateInvoicedValues. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterUpdateInvoicedValues(var TempSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; TempSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; TempSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterInsertSalesOrderHeader. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterInsertSalesOrderHeader(var SalesOrderLine: Record "Sales Line"; TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterInitQtyToReceiveOrShip(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; WhseShip: Boolean; WhseReceive: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeUpdateInvoicedValues. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeUpdateInvoicedValues(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnSetDefaultQtyBlank. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesSetup parameter. + /// Specifies the SetDefaultQtyBlank parameter. [IntegrationEvent(true, false)] local procedure OnPostUpdateOrderLineOnSetDefaultQtyBlank(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; SalesSetup: Record "Sales & Receivables Setup"; var SetDefaultQtyBlank: Boolean) begin end; + /// + /// Event raised by OnCalcInvoiceOnAfterTempSalesLineSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCalcInvoiceOnAfterTempSalesLineSetFilters(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterCalcInvDiscount. + /// + /// + /// Specifies the TempWhseShptHeader parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterCalcInvDiscount(SalesHeader: Record "Sales Header"; TempWhseShptHeader: Record "Warehouse Shipment Header" temporary; PreviewMode: Boolean; var TempSalesLineGlobal: Record "Sales Line" temporary; SuppressCommit: Boolean; WhseReceive: Boolean; WhseShip: Boolean); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterReleaseSalesDocument. + /// + /// + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterReleaseSalesDocument(SalesHeader: Record "Sales Header"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeSetPostingFlags. + /// + /// + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the HideProgressWindow parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnBeforeSetPostingFlags(var SalesHeader: Record "Sales Header"; var TempSalesLineGlobal: Record "Sales Line" temporary; var ModifyHeader: Boolean; var HideProgressWindow: Boolean); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetPostingFlags. + /// + /// + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the ModifyHeader parameter. [IntegrationEvent(true, false)] local procedure OnCheckAndUpdateOnAfterSetPostingFlags(var SalesHeader: Record "Sales Header"; var TempSalesLineGlobal: Record "Sales Line" temporary; var ModifyHeader: Boolean); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetSourceCode. + /// + /// + /// Specifies the SourceCodeSetup parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetSourceCode(var SalesHeader: Record "Sales Header"; SourceCodeSetup: Record "Source Code Setup"; var SrcCode: Code[10]); begin end; + /// + /// Event raised by OnCheckAndUpdateOnAfterSetPoszingFromWhseRef. + /// + /// + /// Specifies the InvtPickPutaway parameter. + /// Specifies the PostingFromWhseRef parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnAfterSetPoszingFromWhseRef(var SalesHeader: Record "Sales Header"; var InvtPickPutaway: Boolean; var PostingFromWhseRef: Integer); begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCalcInvDiscount. + /// + /// + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the RefreshNeeded parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCalcInvDiscount(var SalesHeader: Record "Sales Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WhseReceive: Boolean; WhseShip: Boolean; var RefreshNeeded: Boolean) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCheckPostRestrictions. + /// + /// + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCheckPostRestrictions(var SalesHeader: Record "Sales Header"; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnCheckAssosOrderLinesOnAfterSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnCheckAssosOrderLinesOnAfterSetFilters(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnCheckSalesDocumentOnAfterCalcShouldCheckItemCharge. + /// + /// + /// Specifies the WhseReceive parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ShouldCheckItemCharge parameter. + /// Specifies the ModifyHeader parameter. [IntegrationEvent(true, false)] local procedure OnCheckSalesDocumentOnAfterCalcShouldCheckItemCharge(var SalesHeader: Record "Sales Header"; WhseReceive: Boolean; WhseShip: Boolean; var ShouldCheckItemCharge: Boolean; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForShipOnBeforeCheck. + /// + /// + /// Specifies the TempWhseShipmentHeader parameter. + /// Specifies the TempWhseReceiptHeader parameter. + /// Specifies the Ship parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForShipOnBeforeCheck(var SalesHeader: Record "Sales Header"; var TempWhseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWhseReceiptHeader: Record "Warehouse Receipt Header" temporary; var Ship: Boolean; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForReceiveOnBeforeCheck. + /// + /// + /// Specifies the TempWhseShipmentHeader parameter. + /// Specifies the TempWhseReceiptHeader parameter. + /// Specifies the Receive parameter. [IntegrationEvent(true, false)] local procedure OnCheckTrackingAndWarehouseForReceiveOnBeforeCheck(var SalesHeader: Record "Sales Header"; var TempWhseShipmentHeader: Record "Warehouse Shipment Header" temporary; var TempWhseReceiptHeader: Record "Warehouse Receipt Header" temporary; var Receive: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingSpecificationOnAfterTempItemSalesLineLoop. + /// + /// [IntegrationEvent(false, false)] local procedure OnCheckTrackingSpecificationOnAfterTempItemSalesLineLoop(var TempItemSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckCustBlockageOnAfterTempLinesSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckCustBlockageOnAfterTempLinesSetFilters(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary); begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterTempPrepmtSalesLineSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterTempPrepmtSalesLineSetFilters(var TempPrepmtSalesLine: Record "Sales Line" temporary; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterGetSalesPrepmtAccount. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the CompleteFunctionality parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterGetSalesPrepmtAccount(var GLAcc: Record "G/L Account"; var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header"; CompleteFunctionality: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeGetSalesPrepmtAccount. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the GenPostingSetup parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeGetSalesPrepmtAccount(var GLAcc: Record "G/L Account"; var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header"; var GenPostingSetup: Record "General Posting Setup"; CompleteFunctionality: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnAfterTempSalesLineSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempPrepmtSalesLine parameter. + /// Specifies the NextLineNo parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnAfterTempSalesLineSetFilters(var TempSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempPrepmtSalesLine: Record "Sales Line" temporary; var NextLineNo: Integer) begin end; + /// + /// Event raised by OnFinalizePostingOnAfterUpdateItemChargeAssgnt. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnAfterUpdateItemChargeAssgnt(var SalesHeader: Record "Sales Header"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the TempItemChargeAssignmentSales parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the TempSalesLine parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the SalesPost parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeInsertTrackingSpecification(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)" temporary; SalesHeader: Record "Sales Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; EverythingInvoiced: Boolean; var TempSalesLine: Record "Sales Line" temporary; var TempSalesLineGlobal: Record "Sales Line" temporary; SalesPost: Codeunit "Sales-Post") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeCreateOutboxSalesTrans. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeCreateOutboxSalesTrans(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; EverythingInvoiced: Boolean; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeDeleteApprovalEntries. + /// + /// + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeDeleteApprovalEntries(var SalesHeader: Record "Sales Header"; var EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnFinalizePostingOnBeforeGenJnlPostPreviewThrowError. + /// + /// + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnFinalizePostingOnBeforeGenJnlPostPreviewThrowError(SalesHeader: Record "Sales Header"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostAssocItemJnlLineOnBeforePost. + /// + /// + /// Specifies the PurchOrderLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostAssocItemJnlLineOnBeforePost(var ItemJournalLine: Record "Item Journal Line"; PurchOrderLine: Record "Purchase Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostATOOnBeforePostedATOLinkInsert. + /// + /// + /// Specifies the AssemblyHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostATOOnBeforePostedATOLinkInsert(var PostedATOLink: Record "Posted Assemble-to-Order Link"; var AssemblyHeader: Record "Assembly Header"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostATOAssocItemJnlLineOnBeforeRemainingPost. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the PostedATOLink parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the ItemLedgShptEntryNo parameter. [IntegrationEvent(false, false)] local procedure OnPostATOAssocItemJnlLineOnBeforeRemainingPost(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var PostedATOLink: Record "Posted Assemble-to-Order Link"; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal; var ItemLedgShptEntryNo: Integer) begin end; + /// + /// Event raised by OnPostDropOrderShipmentOnAfterUpdateBlanketOrderLine. + /// + /// + /// Specifies the PurchOrderLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the PurchRcptHeader parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnPostDropOrderShipmentOnAfterUpdateBlanketOrderLine(PurchOrderHeader: Record "Purchase Header"; PurchOrderLine: Record "Purchase Line"; TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesShptHeader: Record "Sales Shipment Header"; SalesHeader: Record "Sales Header"; PurchRcptHeader: Record "Purch. Rcpt. Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; SrcCode: Code[10]) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyDocumentFields. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WarehouseShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyDocumentFields(var ItemJournalLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WarehouseShipmentHeader: Record "Warehouse Shipment Header") begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCalcShouldPostItemJnlLineItemCharges. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the ShouldPostItemJnlLineItemCharges parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCalcShouldPostItemJnlLineItemCharges(SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var ShouldPostItemJnlLineItemCharges: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterPrepareItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the RemAmt parameter. + /// Specifies the RemDiscAmt parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterPrepareItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; WhseShip: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var QtyToBeShipped: Decimal; TrackingSpecification: Record "Tracking Specification"; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; var QtyToBeShippedBase: Decimal; var RemAmt: Decimal; var RemDiscAmt: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyItemCharge. + /// + /// + /// Specifies the TempItemChargeAssgntSales parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyItemCharge(var ItemJournalLine: Record "Item Journal Line"; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeIsJobContactLineCheck. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the ShouldPostItemJnlLine parameter. + /// Specifies the ItemJnlPostLine parameter. + /// Specifies the QtyToBeShipped parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeIsJobContactLineCheck(var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var ShouldPostItemJnlLine: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; QtyToBeShipped: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterItemJnlPostLineRunWithCheck(var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforePostItemJnlLineWhseLine. + /// + /// + /// Specifies the TempWhseJnlLine parameter. + /// Specifies the TempWhseTrackingSpecification parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforePostItemJnlLineWhseLine(var ItemJnlLine: Record "Item Journal Line"; var TempWhseJnlLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeTransferReservToItemJnlLine. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the CheckApplFromItemEntry parameter. + /// Specifies the TrackingSpecification parameter. + /// Specifies the QtyToBeShippedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeTransferReservToItemJnlLine(SalesLine: Record "Sales Line"; ItemJnlLine: Record "Item Journal Line"; var CheckApplFromItemEntry: Boolean; var TrackingSpecification: Record "Tracking Specification"; QtyToBeShippedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemJnlLineOnBeforeCopyTrackingFromSpec. + /// + /// + /// Specifies the ItemJnlLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnBeforeCopyTrackingFromSpec(TrackingSpecification: Record "Tracking Specification"; var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; IsATO: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineItemChargesOnAfterGetItemChargeLine(var ItemChargeSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemJnlLinePrepareJournalLineOnBeforeCalcItemJnlAmounts. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLinePrepareJournalLineOnBeforeCalcItemJnlAmounts(var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; IsATO: Boolean) begin end; + /// + /// Event raised by OnPostItemChargeOnBeforePostItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the QtyToAssign parameter. + /// Specifies the TempItemChargeAssgntSales parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnBeforePostItemJnlLine(var SalesLineToPost: Record "Sales Line"; var SalesLine: Record "Sales Line"; QtyToAssign: Decimal; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnAfterCopyToItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the GeneralLedgerSetup parameter. + /// Specifies the QtyToInvoice parameter. + /// Specifies the TempItemChargeAssignmentSales parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnAfterCopyToItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var SalesLine: Record "Sales Line"; GeneralLedgerSetup: Record "General Ledger Setup"; QtyToInvoice: Decimal; var TempItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)" temporary) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnAfterTempTrackingSpecificationInvSetFilters. + /// + /// + /// Specifies the ItemJnlLine2 parameter. + /// Specifies the TempTrackingSpecificationInv parameter. + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the TotalSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnAfterTempTrackingSpecificationInvSetFilters(SalesHeader: record "Sales Header"; var ItemJnlLine2: record "Item Journal Line"; var TempTrackingSpecificationInv: Record "Tracking Specification" temporary; SalesLine: Record "Sales Line"; var IsHandled: Boolean; var TotalSalesLineLCY: Record "Sales Line"; var TotalSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnBeforeTestJobNo. + /// + /// + /// Specifies the SkipTestJobNo parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnBeforeTestJobNo(SalesLine: Record "Sales Line"; var SkipTestJobNo: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnBeforeLastRunWithCheck. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnBeforeLastRunWithCheck(NonDistrItemJnlLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerOrderOnBeforeRunWithCheck. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerOrderOnBeforeRunWithCheck(ItemJnlLine2: Record "Item Journal Line"; var IsHandled: Boolean; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerShptOnBeforeTestJobNo. + /// + /// + /// Specifies the SkipTestJobNo parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerShptOnBeforeTestJobNo(SalesShipmentLine: Record "Sales Shipment Line"; var SkipTestJobNo: Boolean; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerShptOnAfterCheckItemChargePerShpt. + /// + /// + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the DistributeCharge parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerShptOnAfterCheckItemChargePerShpt(SalesShipmentLine: Record "Sales Shipment Line"; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; DistributeCharge: Boolean; var IsHandled: Boolean; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargePerShptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesShptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the DistributeCharge parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerShptOnAfterCalcDistributeCharge(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesShptLine: Record "Sales Shipment Line"; TempItemLedgEntry: Record "Item Ledger Entry" temporary; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; var DistributeCharge: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the ReturnRcptLine parameter. + /// Specifies the TempItemLedgEntry parameter. + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the DistributeCharge parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetRcptOnAfterCalcDistributeCharge(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; ReturnRcptLine: Record "Return Receipt Line"; TempItemLedgEntry: Record "Item Ledger Entry" temporary; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; var DistributeCharge: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargePerRetRcptOnBeforeTestFieldJobNo. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargePerRetRcptOnBeforeTestFieldJobNo(ReturnReceiptLine: Record "Return Receipt Line"; var IsHandled: Boolean; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingLineOnAfterRetrieveInvoiceSpecification. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. + /// Specifies the TrackingSpecificationExists parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingLineOnAfterRetrieveInvoiceSpecification(var SalesLine: Record "Sales Line"; var TempInvoicingSpecification: Record "Tracking Specification" temporary; var TrackingSpecificationExists: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnAfterSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnAfterSetFilters(var SalesShipmentLine: Record "Sales Shipment Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnAfterUpdateSalesShptLineFields. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnAfterUpdateSalesShptLineFields(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the HasATOShippedNotInvoiced parameter. + /// Specifies the ShouldAdjustQuantityRounding parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeAdjustQuantityRounding(SalesShptLine: Record "Sales Shipment Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; HasATOShippedNotInvoiced: Boolean; var ShouldAdjustQuantityRounding: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeShipmentInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the ItemJnlRollRndg parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(true, false)] local procedure OnPostItemTrackingForShipmentOnBeforeShipmentInvoiceErr(SalesLine: Record "Sales Line"; var IsHandled: Boolean; SalesHeader: Record "Sales Header"; var ItemJnlRollRndg: Boolean; TrackingSpecificationExists: Boolean; var TempTrackingSpecification: Record "Tracking Specification" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeReturnReceiptInvoiceErr. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the ItemJnlRollRndg parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(true, false)] local procedure OnPostItemTrackingForShipmentOnBeforeReturnReceiptInvoiceErr(SalesLine: Record "Sales Line"; var IsHandled: Boolean; SalesHeader: Record "Sales Header"; var ItemJnlRollRndg: Boolean; TrackingSpecificationExists: Boolean; var TempTrackingSpecification: Record "Tracking Specification" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnAfterSetFilters. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnAfterSetFilters(var ReturnReceiptLine: Record "Return Receipt Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertCrMemoLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertCrMemoLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean; xSalesLine: Record "Sales Line"; SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertInvoiceLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the ShouldInsertInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertInvoiceLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean; xSalesLine: Record "Sales Line"; SalesInvHeader: Record "Sales Invoice Header"; var ShouldInsertInvoiceLine: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertReturnReceiptLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertReturnReceiptLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeInsertShipmentLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesLineACY parameter. + /// Specifies the DocType parameter. + /// Specifies the DocNo parameter. + /// Specifies the ExtDocNo parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeInsertShipmentLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean; SalesLineACY: Record "Sales Line"; DocType: Option; DocNo: Code[20]; ExtDocNo: Code[35]) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterSetEverythingInvoiced. + /// + /// + /// Specifies the EverythingInvoiced parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterSetEverythingInvoiced(SalesLine: Record "Sales Line"; var EverythingInvoiced: Boolean; var IsHandled: Boolean; SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterRoundAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the GenJnlLineDocNo parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterRoundAmount(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; GenJnlLineDocNo: Code[20]) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeTestJobNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeTestJobNo(SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterPostItemTrackingLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempPostedATOLink parameter. [IntegrationEvent(true, false)] local procedure OnPostSalesLineOnAfterPostItemTrackingLine(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterTestSalesLine. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the WhseShptHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the CostBaseAmount parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterTestSalesLine(var SalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header"; var WhseShptHeader: Record "Warehouse Shipment Header"; WhseShip: Boolean; PreviewMode: Boolean; var CostBaseAmount: Decimal) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforePostItemTrackingLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the InvtPickPutaway parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(true, false)] local procedure OnPostSalesLineOnBeforePostItemTrackingLine(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; WhseShip: Boolean; WhseReceive: Boolean; InvtPickPutaway: Boolean; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var ItemLedgShptEntryNo: Integer; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal; GenJnlLineDocNo: Code[20]; SrcCode: Code[10]; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeTestUnitOfMeasureCode. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeTestUnitOfMeasureCode(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnAfterAdjustPrepmtAmountLCY. + /// + /// + /// Specifies the xSalesLine parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterAdjustPrepmtAmountLCY(var SalesLine: record "Sales Line"; var xSalesLine: record "Sales Line"; TempTrackingSpecification: record "Tracking Specification" temporary; SalesHeader: record "Sales Header") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterInsertReturnReceiptLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the ReturnRcptHeader parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the SalesShipmentHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterInsertReturnReceiptLine(var SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var xSalesLine: Record "Sales Line"; ReturnRcptHeader: Record "Return Receipt Header"; RoundingLineInserted: Boolean; var TempTrackingSpecification: Record "Tracking Specification" temporary; var ItemLedgShptEntryNo: Integer; SalesShipmentHeader: Record "Sales Shipment Header") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnAfterGetSalesOrderLine. + /// + /// + /// Specifies the SalesShptLine parameter. + /// Specifies the SalesOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnAfterGetSalesOrderLine(var TempSalesLine: Record "Sales Line" temporary; SalesShptLine: Record "Sales Shipment Line"; SalesOrderLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeInitQtyToInvoice(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeCalcQuantityInvoiced. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeCalcQuantityInvoiced(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnAfterGetSalesOrderLine. + /// + /// + /// Specifies the ReturnRcptLine parameter. + /// Specifies the SalesOrderLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnAfterGetSalesOrderLine(var TempSalesLine: Record "Sales Line" temporary; ReturnRcptLine: Record "Return Receipt Line"; SalesOrderLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeInitQtyToInvoice. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeInitQtyToInvoice(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnAfterModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnAfterModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeModifySalesOrderLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeModifySalesOrderLine(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeCalcQuantityInvoiced. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeCalcQuantityInvoiced(var SalesOrderLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnProcessAssocItemJnlLineOnBeforeTempDropShptPostBufferInsert. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnProcessAssocItemJnlLineOnBeforeTempDropShptPostBufferInsert(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnProcessAssocItemJnlLineOnBeforePostAssocItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnProcessAssocItemJnlLineOnBeforePostAssocItemJnlLine(var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnRoundAmountOnBeforeIncrAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineQty parameter. + /// Specifies the TotalSalesLine parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnBeforeIncrAmount(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineQty: Decimal; var TotalSalesLine: Record "Sales Line"; var TotalSalesLineLCY: Record "Sales Line"; var xSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforeCheckTotalInvoiceAmount. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeCheckTotalInvoiceAmount(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnRunOnBeforeFinalizePosting. + /// + /// + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the ReturnReceiptHeader parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the SrcCode parameter. + /// Specifies the PreviewMode parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeFinalizePosting(var SalesHeader: Record "Sales Header"; var SalesShipmentHeader: Record "Sales Shipment Header"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var ReturnReceiptHeader: Record "Return Receipt Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; CommitIsSuppressed: Boolean; GenJnlLineExtDocNo: Code[35]; var EverythingInvoiced: Boolean; GenJnlLineDocNo: Code[20]; SrcCode: Code[10]; PreviewMode: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforePostSalesLineEndLoop. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the LastLineRetrieved parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the RecSalesHeader parameter. + /// Specifies the xSalesLine parameter. + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the ReturnReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforePostSalesLineEndLoop(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var LastLineRetrieved: Boolean; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; RecSalesHeader: Record "Sales Header"; xSalesLine: Record "Sales Line"; var SalesShipmentHeader: Record "Sales Shipment Header"; var ReturnReceiptHeader: Record "Return Receipt Header") begin end; + /// + /// Event raised by OnGetATOItemLedgEntriesNotInvoicedOnBeforeItemLedgEntryNotInvoicedInsert. + /// + /// [IntegrationEvent(false, false)] local procedure OnGetATOItemLedgEntriesNotInvoicedOnBeforeItemLedgEntryNotInvoicedInsert(var ItemLedgEntry: Record "Item Ledger Entry") begin end; + /// + /// Event raised by OnGetPostedDocumentRecordElseCase. + /// + /// + /// Specifies the PostedSalesDocumentVariant parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnGetPostedDocumentRecordElseCase(SalesHeader: Record "Sales Header"; var PostedSalesDocumentVariant: Variant; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnGetSalesLinesOnAfterFillTempLines. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnGetSalesLinesOnAfterFillTempLines(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; - [IntegrationEvent(false, false)] - local procedure OnPostItemLineOnAfterMakeSalesLineToShip(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) + /// + /// Event raised by OnPostItemLineOnAfterMakeSalesLineToShip. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempPostedATOLink parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + [IntegrationEvent(false, false)] + local procedure OnPostItemLineOnAfterMakeSalesLineToShip(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemLineOnBeforeMakeSalesLineToShip. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempPostedATOLink parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the IsHandled parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the ReturnReceiptHeader parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the TempHandlingSpecificationInv parameter. + /// Specifies the TempTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnPostItemLineOnBeforeMakeSalesLineToShip(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var ItemLedgShptEntryNo: Integer; var IsHandled: Boolean; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; ReturnReceiptHeader: Record "Return Receipt Header"; var TempHandlingSpecification: Record "Tracking Specification" temporary; var TempHandlingSpecificationInv: Record "Tracking Specification" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnPostItemLineOnBeforePostItemInvoiceLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the TempPostedATOLink parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnPostItemLineOnBeforePostItemInvoiceLine(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var TempPostedATOLink: Record "Posted Assemble-to-Order Link" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterPostItemJnlLine. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnAfterPostItemJnlLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargeLineOnAfterTempItemChargeAssgntSalesLoop. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineParam parameter. [IntegrationEvent(true, false)] local procedure OnPostItemChargeLineOnAfterTempItemChargeAssgntSalesLoop(var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineParam: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemChargeLineOnBeforePostItemCharge. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeLineOnBeforePostItemCharge(var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforeReturnRcptLineModify. + /// + /// + /// Specifies the ReturnRcptLine parameter. + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforeReturnRcptLineModify(SalesHeader: Record "Sales Header"; var ReturnRcptLine: Record "Return Receipt Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForReceiptOnBeforeAdjustQuantityRounding. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the TrackingSpecificationExists parameter. + /// Specifies the ShouldAdjustQuantityRounding parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForReceiptOnBeforeAdjustQuantityRounding(ReturnRcptLine: Record "Return Receipt Line"; RemQtyToInvoiceCurrLine: Decimal; var QtyToBeInvoiced: Decimal; RemQtyToInvoiceCurrLineBase: Decimal; QtyToBeInvoicedBase: Decimal; TrackingSpecificationExists: Boolean; var ShouldAdjustQuantityRounding: Boolean) begin end; + /// + /// Event raised by OnReleaseSalesDocumentOnBeforeSetStatus. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SavedStatus parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the SuppressCommit parameter. [IntegrationEvent(false, false)] local procedure OnReleaseSalesDocumentOnBeforeSetStatus(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; SavedStatus: Enum "Sales Document Status"; PreviewMode: Boolean; SuppressCommit: Boolean); begin end; + /// + /// Event raised by OnRoundAmountOnAfterAssignSalesLines. + /// + /// + /// Specifies the SalesLineACY parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TotalSalesLines parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnRoundAmountOnAfterAssignSalesLines(var xSalesLine: Record "Sales Line"; var SalesLineACY: Record "Sales Line"; SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var TotalSalesLines: Record "Sales Line"; var TotalSalesLineLCY: Record "Sales Line"; var SalesLine: Record "Sales Line"); begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification. + /// + /// + /// Specifies the TempInvoicingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnAfterUpdateTempTrackingSpecification(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification. + /// + /// [IntegrationEvent(false, false)] local procedure OnSaveInvoiceSpecificationOnBeforeAssignTempInvoicingSpecification(var TempInvoicingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnSendICDocumentOnBeforeSetICStatus. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSendICDocumentOnBeforeSetICStatus(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSendPostedDocumentRecordElseCase. + /// + /// + /// Specifies the DocumentSendingProfile parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnSendPostedDocumentRecordElseCase(SalesHeader: Record "Sales Header"; var DocumentSendingProfile: Record "Document Sending Profile"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestSalesLineOnAfterTestSalesLineJob. + /// + /// [IntegrationEvent(false, false)] local procedure OnTestSalesLineOnAfterTestSalesLineJob(var SalesLine: record "Sales Line") begin end; + /// + /// Event raised by OnTestSalesLineOnAfterCalcShouldTestReturnQty. + /// + /// + /// Specifies the ShouldTestReturnQty parameter. [IntegrationEvent(false, false)] local procedure OnTestSalesLineOnAfterCalcShouldTestReturnQty(SalesLine: Record "Sales Line"; var ShouldTestReturnQty: Boolean) begin end; + /// + /// Event raised by OnBeforeTestGenPostingGroups. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeTestGenPostingGroups(var SalesLine: record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateSalesLineBeforePostOnAfterPostJobContractLine. + /// + /// + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateSalesLineBeforePostOnAfterPostJobContractLine(SalesInvoiceHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnUpdateAssosOrderOnAfterPurchOrderHeaderModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderOnAfterPurchOrderHeaderModify(var PurchOrderHeader: Record "Purchase Header") begin end; + /// + /// Event raised by OnUpdateAssocOrderOnAfterModifyPurchLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnAfterModifyPurchLine(var PurchOrderLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnUpdateAssocOrderOnBeforeModifyPurchLine. + /// + /// + /// Specifies the TempDropShptPostBuffer parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssocOrderOnBeforeModifyPurchLine(var PurchOrderLine: Record "Purchase Line"; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnAfterReleasePurchaseDocument. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnAfterReleasePurchaseDocument(var PurchOrderHeader: Record "Purchase Header"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeReleasePurchaseDocument. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeReleasePurchaseDocument(var PurchOrderHeader: Record "Purchase Header"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateAfterPostingOnBeforeFindSetForUpdate. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAfterPostingOnBeforeFindSetForUpdate(var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheck. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheck(var BlanketOrderSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeCheckSellToCustomerNo. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeCheckSellToCustomerNo(var BlanketOrderSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateBlanketOrderLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the Ship parameter. + /// Specifies the Receive parameter. + /// Specifies the Invoice parameter. [IntegrationEvent(false, false)] local procedure OnUpdateBlanketOrderLineOnBeforeInitOutstanding(var BlanketOrderSalesLine: Record "Sales Line"; SalesLine: Record "Sales Line"; Ship: Boolean; Receive: Boolean; Invoice: Boolean) begin end; + /// + /// Event raised by OnUpdateInvoicedQtyOnShipmentLineOnBeforeModifySalesShptLine. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. [IntegrationEvent(false, false)] local procedure OnUpdateInvoicedQtyOnShipmentLineOnBeforeModifySalesShptLine(var SalesShptLine: Record "Sales Shipment Line"; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnAfterInitAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterInitAmount(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnAfterInitLineDiscountAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesLineQty parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnAfterInitLineDiscountAmount(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; SalesLineQty: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineRemainderModify. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineRemainderModify(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency) begin end; + /// + /// Event raised by OnBeforeCalcVATBaseAmount. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcVATBaseAmount(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostUpdateInvoiceLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateInvoiceLine(var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostUpdateReturnReceiptLine. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(true, false)] local procedure OnBeforePostUpdateReturnReceiptLine(var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertTrackingSpecification. + /// + /// + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertTrackingSpecification(SalesHeader: Record "Sales Header"; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSendPostedDocumentRecord. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the DocumentSendingProfile parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSendPostedDocumentRecord(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var DocumentSendingProfile: Record "Document Sending Profile") begin end; + /// + /// Event raised by OnAfterPostItemChargeLine. + /// + /// + /// Specifies the SalesLineACY parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemChargeLine(var SalesLine: Record "Sales Line"; SalesLineACY: Record "Sales Line") begin end; + /// + /// Event raised by OnDeleteAfterPostingOnAfterDeleteLinks. + /// + /// [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnAfterDeleteLinks(var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnDeleteAfterPostingOnBeforeDeleteSalesHeader. + /// + /// [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnBeforeDeleteSalesHeader(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnDeleteAfterPostingOnBeforeDeleteLinks. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnBeforeDeleteLinks(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnRunOnBeforeCheckAndUpdate. + /// + /// [IntegrationEvent(false, false)] local procedure OnRunOnBeforeCheckAndUpdate(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnUpdateWonOpportunitiesOnBeforeOpportunityModify. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the Opportunity parameter. [IntegrationEvent(false, false)] local procedure OnUpdateWonOpportunitiesOnBeforeOpportunityModify(var SalesHeader: Record "Sales Header"; SalesInvoiceHeader: Record "Sales Invoice Header"; var Opportunity: Record Opportunity) begin end; + /// + /// Event raised by OnCheckAndUpdateOnBeforeCheckShip. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnCheckAndUpdateOnBeforeCheckShip(var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnBeforeUpdateReceiveAndCheckIfInvPutawayExists. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateReceiveAndCheckIfInvPutawayExists(var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnModifyTempLineOnAfterSalesLineModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnAfterSalesLineModify(var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnModifyTempLineOnBeforeTransferFields. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnBeforeTransferFields(var SalesLine: Record "Sales Line"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnModifyTempLineOnBeforeSalesLineModify. + /// + /// [IntegrationEvent(false, false)] local procedure OnModifyTempLineOnBeforeSalesLineModify(var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesLine(SalesLine: Record "Sales Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesShipmentLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnSalesShipmentLine(SalesShipmentLine: Record "Sales Shipment Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnReceiptLine. + /// + /// + /// Specifies the NeedUpdate parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnNeedUpdateGenProdPostingGroupOnItemChargeOnReturnReceiptLine(ReturnReceiptLine: Record "Return Receipt Line"; var NeedUpdate: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterUpdateSalesLineDimSetIDFromAppliedEntry. + /// + /// + /// Specifies the ItemLedgEntry parameter. + /// Specifies the DimSetID parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateSalesLineDimSetIDFromAppliedEntry(var SalesLineToPost: Record "Sales Line"; var ItemLedgEntry: Record "Item Ledger Entry"; DimSetID: array[10] of Integer) begin end; + /// + /// Event raised by OnDeleteAfterPostingOnAfterSetupSalesHeader. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnAfterSetupSalesHeader(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnDeleteAfterPostingOnAfterSalesLineDeleteAll. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the CommitIsSuppressed parameter. + /// Specifies the EverythingInvoiced parameter. [IntegrationEvent(false, false)] local procedure OnDeleteAfterPostingOnAfterSalesLineDeleteAll(SalesHeader: Record "Sales Header"; SalesInvoiceHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; CommitIsSuppressed: Boolean; EverythingInvoiced: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentConditionOnBeforeUpdateBlanketOrderLine. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentConditionOnBeforeUpdateBlanketOrderLine(var TempSalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostResJnlLineOnAfterInit. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostResJnlLineOnAfterInit(var ResJnlLine: Record "Res. Journal Line"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists. + /// + /// + /// Specifies the ReplacePostingDate parameter. + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the ModifyHeader parameter. + /// Specifies the VATDateExists parameter. + /// Specifies the ReplaceVATDate parameter. + /// Specifies the VATDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnAfterCalcPostingDateExists(var PostingDateExists: Boolean; var ReplacePostingDate: Boolean; var ReplaceDocumentDate: Boolean; var PostingDate: Date; var SalesHeader: Record "Sales Header"; var ModifyHeader: Boolean; var VATDateExists: Boolean; var ReplaceVATDate: Boolean; var VATDate: Date) begin end; + /// + /// Event raised by OnBeforeValidateICPartnerBusPostingGroups. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeValidateICPartnerBusPostingGroups(var TempICGenJnlLine: Record "Gen. Journal Line" temporary; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnAfterGetCurrency. + /// + /// + /// Specifies the Currency parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetCurrency(CurrencyCode: Code[10]; var Currency: Record Currency) begin end; + /// + /// Event raised by OnBeforePostItemLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the TempDropShptPostBuffer parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the ItemJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemLine(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean; var TempSalesLineGlobal: Record "Sales Line" temporary; var TempDropShptPostBuffer: Record "Drop Shpt. Post. Buffer" temporary; var RemQtyToBeInvoiced: Decimal; var RemQtyToBeInvoicedBase: Decimal; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line") begin end; + /// + /// Event raised by OnBeforePostItemChargeLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargeLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeInsertedPrepmtVATBaseToDeduct(var TempPrepmtSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnAfterInsertReturnReceiptHeader. + /// + /// + /// Specifies the ReturnReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterInsertReturnReceiptHeader(var SalesHeader: Record "Sales Header"; var ReturnReceiptHeader: Record "Return Receipt Header") begin @@ -13417,384 +14550,888 @@ codeunit 80 "Sales-Post" #if not CLEAN27 [Obsolete('This event is never raised.', '27.0')] + /// + /// Event raised by OnAfterGetAmountsForDeferral. + /// + /// + /// Specifies the AmtToDefer parameter. + /// Specifies the AmtToDeferACY parameter. + /// Specifies the DeferralAccount parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetAmountsForDeferral(SalesLine: Record "Sales Line"; var AmtToDefer: Decimal; var AmtToDeferACY: Decimal; var DeferralAccount: Code[20]) begin end; #endif + /// + /// Event raised by OnPostJobContractLineBeforeTestFields. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostJobContractLineBeforeTestFields(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertCrMemoHeaderOnAfterCalcShouldProcessAsReturnOrder. + /// + /// + /// Specifies the ShouldProcessAsReturnOrder parameter. [IntegrationEvent(false, false)] local procedure OnInsertCrMemoHeaderOnAfterCalcShouldProcessAsReturnOrder(SalesHeader: Record "Sales Header"; var ShouldProcessAsReturnOrder: Boolean) begin end; + /// + /// Event raised by OnUpdateQtyToBeInvoicedForShipmentOnAfterSetQtyToBeInvoiced. + /// + /// + /// Specifies the HasATOShippedNotInvoiced parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateQtyToBeInvoicedForShipmentOnAfterSetQtyToBeInvoiced(TrackingSpecificationExists: Boolean; HasATOShippedNotInvoiced: Boolean; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnBeforePostItemJnlLineItemCharges. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJnlLineItemCharges(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateReturnReceiptLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateReturnReceiptLineOnBeforeInitOutstanding(var SalesOrderLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeGetATOItemLedgEntriesNotInvoiced. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeGetATOItemLedgEntriesNotInvoiced(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckSalesDocumentOnBeforeCheckDueDate. + /// + /// + /// Specifies the ShouldCheckDueDate parameter. [IntegrationEvent(false, false)] local procedure OnCheckSalesDocumentOnBeforeCheckDueDate(var SalesHeader: Record "Sales Header"; var ShouldCheckDueDate: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineTrackingOnAfterCalcShouldInsertTrkgSpecInv. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the ShouldInsertTrkgSpecInv parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineTrackingOnAfterCalcShouldInsertTrkgSpecInv(var SalesLine: Record "Sales Line"; QtyToBeInvoiced: Decimal; var ShouldInsertTrkgSpecInv: Boolean) begin end; + /// + /// Event raised by OnUpdateSalesLineBeforePostOnBeforeGetUnitCost. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnUpdateSalesLineBeforePostOnBeforeGetUnitCost(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCalcItemJnlAmountsFromQtyToBeInvoiced. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the SalesLine parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcItemJnlAmountsFromQtyToBeInvoiced(var ItemJnlLine: Record "Item Journal Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; QtyToBeInvoiced: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCheckTrackingAndWarehouseForReceiveOnAfterSetFilters. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingAndWarehouseForReceiveOnAfterSetFilters(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnRunOnBeforeCalcVATAmountLines. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnRunOnBeforeCalcVATAmountLines(var TempSalesLineGlobal: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnTestSalesLineOnBeforeTestFieldQtyToShip. + /// + /// + /// Specifies the ShouldTestQtyToShip parameter. [IntegrationEvent(false, false)] local procedure OnTestSalesLineOnBeforeTestFieldQtyToShip(SalesLine: Record "Sales Line"; var ShouldTestQtyToShip: Boolean) begin end; + /// + /// Event raised by OnBeforeInsertShipmentLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInsertShipmentLine(var SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnIsEndLoopForShippedNotInvoicedOnBeforeExit. + /// + /// + /// Specifies the SalesShptLine parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnIsEndLoopForShippedNotInvoicedOnBeforeExit(SalesLine: Record "Sales Line"; SalesShptLine: Record "Sales Shipment Line"; RemQtyToBeInvoiced: Decimal; var Result: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLinePrepareJournalLineOnBeforeCalcQuantities. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the QtyToBeShippedBase parameter. + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the IsHandled parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLinePrepareJournalLineOnBeforeCalcQuantities(var ItemJnlLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; QtyToBeShipped: Decimal; QtyToBeShippedBase: Decimal; QtyToBeInvoiced: Decimal; QtyToBeInvoicedBase: Decimal; var IsHandled: Boolean; IsATO: Boolean) begin end; + /// + /// Event raised by OnBeforeInvoiceRounding. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeInvoiceRounding(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineOnAfterCopyTrackingFromSpec. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the QtyToBeShipped parameter. + /// Specifies the IsATO parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineOnAfterCopyTrackingFromSpec(var ItemJnlLine: Record "Item Journal Line"; SalesLine: Record "Sales Line"; QtyToBeShipped: Decimal; IsATO: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeValidateQtyToInvoice. + /// + /// + /// Specifies the ShouldValidateQtyToInvoice parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeValidateQtyToInvoice(var SalesHeader: Record "Sales Header"; var ShouldValidateQtyToInvoice: Boolean; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnAfterSetFilterTempSalesLine. + /// + /// + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnAfterSetFilterTempSalesLine(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnCheckTrackingSpecificationOnBeforeGetItemTrackingSettings. + /// + /// + /// Specifies the ItemTrackingSetup parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckTrackingSpecificationOnBeforeGetItemTrackingSettings(var TempItemSalesLine: Record "Sales Line" temporary; var ItemTrackingSetup: Record "Item Tracking Setup"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostItemTrackingForReceipt. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemTrackingForReceipt(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemJnlLineTrackingOnBeforeInsertTempTrkgSpec. + /// + /// + /// Specifies the TempTrackingSpec parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemJnlLineTrackingOnBeforeInsertTempTrkgSpec(var TempTrackingSpecification: Record "Tracking Specification" temporary; var TempTrackingSpec: Record "Tracking Specification" temporary; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInsertInvoiceHeaderOnBeforeCheckDocumentType. + /// + /// + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesSetup parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertInvoiceHeaderOnBeforeCheckDocumentType(SalesHeader: Record "Sales Header"; var SalesInvHeader: Record "Sales Invoice Header"; SalesSetup: Record "Sales & Receivables Setup"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnBeforePostBalancingEntry. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the TotalSalesLine parameter. + /// Specifies the TotalSalesLineLCY parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the PreviewMode parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the SalesInvHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnBeforePostBalancingEntry(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var TotalSalesLine: Record "Sales Line"; var TotalSalesLineLCY: Record "Sales Line"; SuppressCommit: Boolean; PreviewMode: Boolean; InvoicePostingParameters: Record "Invoice Posting Parameters"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; SalesInvHeader: Record "Sales Invoice Header"; SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin end; + /// + /// Event raised by OnBeforeFindNotShippedLines. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeFindNotShippedLines(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforePostSalesLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlPostLine parameter. + /// Specifies the IsHandled parameter. + /// Specifies the SalesLineACY parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforePostSalesLine(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; SrcCode: Code[10]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; var IsHandled: Boolean; SalesLineACY: Record "Sales Line") begin end; + /// + /// Event raised by OnAfterUpdateInvoiceRounding. + /// + /// + /// Specifies the TotalSalesLine parameter. + /// Specifies the SalesLine parameter. + /// Specifies the Currency parameter. + /// Specifies the BiggestLineNo parameter. + /// Specifies the LastLineRetrieved parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the RoundingLineNo parameter. + /// Specifies the UseTempData parameter. [IntegrationEvent(false, false)] local procedure OnAfterUpdateInvoiceRounding(var SalesHeader: Record "Sales Header"; var TotalSalesLine: Record "Sales Line"; var SalesLine: Record "Sales Line"; var Currency: Record Currency; var BiggestLineNo: Integer; var LastLineRetrieved: Boolean; var RoundingLineInserted: Boolean; var RoundingLineNo: Integer; UseTempData: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterSetFilters. + /// + /// [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterSetFilters(var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnPostItemLineOnBeforePostItemJnlLineForInvoiceDoc. + /// + /// + /// Specifies the SalesLineToShip parameter. + /// Specifies the Ship parameter. + /// Specifies the ItemLedgShptEntryNo parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the SalesShptHeader parameter. + /// Specifies the TempHandlingSpecification parameter. + /// Specifies the TempTrackingSpecificationInv parameter. + /// Specifies the TempTrackingSpecification parameter. + /// Specifies the IsHandled parameter. + /// Specifies the QtyToInvoice parameter. + /// Specifies the TempAssembletoOrderLink parameter. [IntegrationEvent(true, false)] local procedure OnPostItemLineOnBeforePostItemJnlLineForInvoiceDoc(SalesHeader: Record "Sales Header"; var SalesLineToShip: Record "Sales Line"; Ship: Boolean; var ItemLedgShptEntryNo: Integer; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; SalesShptHeader: Record "Sales Shipment Header"; var TempHandlingSpecification: Record "Tracking Specification" temporary; var TempTrackingSpecificationInv: Record "Tracking Specification" temporary; var TempTrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean; QtyToInvoice: Decimal; TempAssembletoOrderLink: Record "Posted Assemble-to-Order Link" temporary) begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForReceipt. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the QtyToInvoiceBaseInTrackingSpec parameter. + /// Specifies the ShouldPostItemTrackingForReceipt parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForReceipt(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; RemQtyToBeInvoiced: Decimal; QtyToInvoiceBaseInTrackingSpec: Decimal; var ShouldPostItemTrackingForReceipt: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForShipment. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the QtyToInvoiceBaseInTrackingSpec parameter. + /// Specifies the ShouldPostItemTrackingForShipment parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldPostItemTrackingForShipment(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; RemQtyToBeInvoiced: Decimal; QtyToInvoiceBaseInTrackingSpec: Decimal; var ShouldPostItemTrackingForShipment: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeGetQuantityShipped. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeGetQuantityShipped(var TempSalesLine: Record "Sales Line"; var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeGetReturnQtyReceived. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeGetReturnQtyReceived(var TempSalesLine: Record "Sales Line"; var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostItemTrackingOnAfterCalcShouldProcessReceipt. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the ShouldProcessReceipt parameter. + /// Specifies the ItemJnlRollRndg parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingOnAfterCalcShouldProcessReceipt(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var ShouldProcessReceipt: Boolean; var ItemJnlRollRndg: Boolean) begin end; + /// + /// Event raised by OnPostUpdateInvoiceLineOnBeforeInitOutstanding. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateInvoiceLineOnBeforeInitOutstanding(var SalesOrderLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostInvoiceOnBeforeBalAccountNoWindowUpdate. + /// + /// + /// Specifies the IsHandled parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnBeforeBalAccountNoWindowUpdate(HideProgressWindow: Boolean; var IsHandled: Boolean; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnAfterCalcShouldCalcPrepmtAmounts. + /// + /// + /// Specifies the ShouldCalcPrepmtAmounts parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnAfterCalcShouldCalcPrepmtAmounts(var TempSalesLine: Record "Sales Line" temporary; var ShouldCalcPrepmtAmounts: Boolean) begin end; + /// + /// Event raised by OnAfterGetGeneralPostingSetup. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterGetGeneralPostingSetup(var GeneralPostingSetup: Record "General Posting Setup"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnCheckItemTrackingQuantityOnDocumentTypeCaseElse. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckItemTrackingQuantityOnDocumentTypeCaseElse(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnSetCommitBehavior. + /// + /// [IntegrationEvent(false, false)] local procedure OnSetCommitBehavior(var ErrorOnCommit: Boolean) begin end; #if not CLEAN27 + /// + /// Event raised by OnSetPostingPreviewDocumentNo. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnSetPostingPreviewDocumentNo(var PreviewDocumentNo: Code[20]; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnGetPostingPreviewDocumentNos. + /// + /// [IntegrationEvent(false, false)] [Obsolete('This event is no longer used.', '27.0')] local procedure OnGetPostingPreviewDocumentNos(var PreviewDocumentNos: List of [Code[20]]) begin end; #endif + /// + /// Event raised by OnPostInvoiceOnAfterPostLines. + /// + /// + /// Specifies the SrcCode parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the GenJnlPostLine parameter. [IntegrationEvent(false, false)] local procedure OnPostInvoiceOnAfterPostLines(var SalesHeader: Record "Sales Header"; SrcCode: Code[10]; GenJnlLineDocType: Enum "Gen. Journal Document Type"; GenJnlLineDocNo: Code[20]; GenJnlLineExtDocNo: Code[35]; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line") begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeAssignQtyToInvoice. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeAssignQtyToInvoice(var TempSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeItemLedgerEntryExist. + /// + /// + /// Specifies the ShipOrReceive parameter. + /// Specifies the HasItemLedgerEntry parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeItemLedgerEntryExist(var SalesLine: Record "Sales Line"; ShipOrReceive: Boolean; var HasItemLedgerEntry: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterCalcShouldInsertInvoiceHeader. + /// + /// + /// Specifies the ShouldInsertInvoiceHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterCalcShouldInsertInvoiceHeader(var SalesHeader: Record "Sales Header"; var ShouldInsertInvoiceHeader: Boolean) begin end; + /// + /// Event raised by OnInsertShptEntryRelationOnAfterItemEntryRelationInsert. + /// + /// + /// Specifies the ItemEntryRelation parameter. + /// Specifies the xSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnInsertShptEntryRelationOnAfterItemEntryRelationInsert(SalesShipmentLine: Record "Sales Shipment Line"; var ItemEntryRelation: Record "Item Entry Relation"; xSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnBeforePostItemChargePerRetRcpt. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempItemChargeAssignmentSales parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemChargePerRetRcpt(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostUpdateOrderLineOnBeforeSetInvoiceFields. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the ShouldSetInvoiceFields parameter. [IntegrationEvent(false, false)] local procedure OnPostUpdateOrderLineOnBeforeSetInvoiceFields(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line"; var ShouldSetInvoiceFields: Boolean) begin end; + /// + /// Event raised by OnCopyAndCheckItemChargeOnBeforeError. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the InvoiceEverything parameter. [IntegrationEvent(false, false)] local procedure OnCopyAndCheckItemChargeOnBeforeError(SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var InvoiceEverything: Boolean) begin end; + /// + /// Event raised by OnBeforeGetSalesLineAdjCostLCY. + /// + /// + /// Specifies the QtyType parameter. + /// Specifies the AdjCostLCY parameter. + /// Specifies the Result parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetSalesLineAdjCostLCY(SalesLine2: Record "Sales Line"; QtyType: Option General,Invoicing,Shipping; AdjCostLCY: Decimal; var Result: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeShouldTestGetShipmentPPmtAmtToDeduct. + /// + /// + /// Specifies the CompleteFunctionality parameter. + /// Specifies the ShouldTestGetShipmentPPmtAmtToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeShouldTestGetShipmentPPmtAmtToDeduct(SalesHeader: Record "Sales Header"; CompleteFunctionality: Boolean; var ShouldTestGetShipmentPPmtAmtToDeduct: Boolean) begin end; + /// + /// Event raised by OnAfterDeleteApprovalEntries. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesCrMemoHeader parameter. + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the ReturnReceiptHeader parameter. [IntegrationEvent(false, false)] local procedure OnAfterDeleteApprovalEntries(var SalesHeader: Record "Sales Header"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var SalesShipmentHeader: Record "Sales Shipment Header"; var ReturnReceiptHeader: Record "Return Receipt Header") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeUpdateSalesLineBeforePost. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the RoundingLineInserted parameter. + /// Specifies the CommitIsSuppressed parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeUpdateSalesLineBeforePost(var SalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header"; WhseShip: Boolean; WhseReceive: Boolean; RoundingLineInserted: Boolean; CommitIsSuppressed: Boolean) begin end; + /// + /// Event raised by OnAfterSumSalesLines2. + /// + /// + /// Specifies the OldSalesLine parameter. + /// Specifies the NewSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnAfterSumSalesLines2(var SalesHeader: Record "Sales Header"; var OldSalesLine: Record "Sales Line"; var NewSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnCheckPostWhseShptLinesOnAfterWhseShptLinesFound. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the WhseShptLinesFound parameter. + /// Specifies the WarehouseShipmentHeader parameter. + /// Specifies the WarehouseReceiptHeader parameter. + /// Specifies the WhseShip parameter. + /// Specifies the WhseReceive parameter. + /// Specifies the WarehouseShipmentLine parameter. [IntegrationEvent(false, false)] local procedure OnCheckPostWhseShptLinesOnAfterWhseShptLinesFound(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line"; var WhseShptLinesFound: Boolean; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; WarehouseReceiptHeader: Record "Warehouse Receipt Header"; WhseShip: Boolean; WhseReceive: Boolean; var WarehouseShipmentLine: Record "Warehouse Shipment Line") begin end; + /// + /// Event raised by OnAfterDecrementPrepmtAmtInvLCY. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the PrepmtAmountInvLCY parameter. + /// Specifies the PrepmtVATAmountInvLCY parameter. [IntegrationEvent(false, false)] local procedure OnAfterDecrementPrepmtAmtInvLCY(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var PrepmtAmountInvLCY: Decimal; var PrepmtVATAmountInvLCY: Decimal) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeTempVATAmountLineGet. + /// + /// + /// Specifies the TempVATAmountLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeTempVATAmountLineGet(SalesLine: Record "Sales Line"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeAdjustPrepmtAmountLCY. + /// + /// + /// Specifies the PrepmtSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustPrepmtAmountLCY(SalesHeader: Record "Sales Header"; var PrepmtSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostResJnlLineOnShouldExit. + /// + /// + /// Specifies the ShouldExit parameter. [IntegrationEvent(false, false)] local procedure OnPostResJnlLineOnShouldExit(var SalesLine: Record "Sales Line"; var ShouldExit: Boolean) begin end; + /// + /// Event raised by OnDivideAmountOnBeforeUpdateTempVATAmountLineRemainder. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempVATAmountLine parameter. + /// Specifies the TempVATAmountLineRemainder parameter. + /// Specifies the Currency parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnDivideAmountOnBeforeUpdateTempVATAmountLineRemainder(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; Currency: Record Currency; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostItemChargeOnAfterCalcTotalChargeAmt. + /// + /// + /// Specifies the QtyToAssign parameter. + /// Specifies the SalesLine parameter. + /// Specifies the xSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnPostItemChargeOnAfterCalcTotalChargeAmt(var SalesLineToPost: Record "Sales Line"; QtyToAssign: Decimal; var SalesLine: Record "Sales Line"; xSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnBeforeCheckPostRestrictions. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckPostRestrictions(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLinesOnBeforeValidateType. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the TempSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLinesOnBeforeValidateType(var TempPrepmtSalesLine: Record "Sales Line" temporary; var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeValidateDocumentDate. + /// + /// + /// Specifies the ReplaceDocumentDate parameter. + /// Specifies the PostingDate parameter. + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeValidateDocumentDate(var PostingDateExists: Boolean; var ReplaceDocumentDate: Boolean; var PostingDate: Date; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnCheckSalesDocumentOnBeforeCheckSalesDim. + /// + /// + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCheckSalesDocumentOnBeforeCheckSalesDim(var SalesHeader: Record "Sales Header"; var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnBeforeCreatePrepaymentTextLines. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesHeader parameter. + /// Specifies the CompleteFunctionality parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCreatePrepaymentTextLines(var TempPrepmtSalesLine: Record "Sales Line" temporary; var TempSalesLine: Record "Sales Line" temporary; SalesHeader: Record "Sales Header"; CompleteFunctionality: Boolean; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckAndUpdate. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckAndUpdate(var SalesHeader: Record "Sales Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeCollectValueEntryRelation. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeCollectValueEntryRelation(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesInvoiceLine: Record "Sales Invoice Line") begin end; + /// + /// Event raised by OnPostSalesLineOnBeforeCollectValueEntryRelationForCrMemo. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnBeforeCollectValueEntryRelationForCrMemo(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesInvoiceLine: Record "Sales Invoice Line") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterCollectValueEntryRelation. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the SalesInvoiceHeader parameter. + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterCollectValueEntryRelation(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesInvoiceLine: Record "Sales Invoice Line") begin end; + /// + /// Event raised by OnPostSalesLineOnAfterCreatePostedDeferralSchedule. + /// + /// + /// Specifies the SalesInvHeader parameter. [IntegrationEvent(false, false)] local procedure OnPostSalesLineOnAfterCreatePostedDeferralSchedule(var SalesInvLine: Record "Sales Invoice Line"; SalesInvHeader: Record "Sales Invoice Header") begin end; + /// + /// Event raised by OnInvoiceRoundingOnAfterValidateQuantity. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnInvoiceRoundingOnAfterValidateQuantity(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInvoiceRoundingOnAfterSetLineNo. + /// + /// + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnInvoiceRoundingOnAfterSetLineNo(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line") begin @@ -13811,16 +15448,32 @@ codeunit 80 "Sales-Post" begin end; + /// + /// Event raised by OnInsertPostedHeadersOnBeforeDeleteServItemOnSaleCreditMemo. + /// + /// + /// Specifies the SalesShipmentHeader parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnBeforeDeleteServItemOnSaleCreditMemo(var SalesHeader: Record "Sales Header"; var SalesShipmentHeader: Record "Sales Shipment Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterInsertInvoiceHeader. + /// + /// + /// Specifies the SalesInvoiceHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInsertInvoiceHeader(var SalesHeader: Record "Sales Header"; var SalesInvoiceHeader: Record "Sales Invoice Header") begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterInsertCrMemoHeader. + /// + /// + /// Specifies the SalesCrMemoHeader parameter. [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInsertCrMemoHeader(var SalesHeader: Record "Sales Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header") begin @@ -13837,173 +15490,400 @@ codeunit 80 "Sales-Post" begin end; + /// + /// Event raised by OnProcessPostingLinesOnBeforePostDropOrderShipment. + /// + /// + /// Specifies the TotalSalesLine parameter. + /// Specifies the TotalSalesLineLCY parameter. [IntegrationEvent(false, false)] local procedure OnProcessPostingLinesOnBeforePostDropOrderShipment(SalesHeader: Record "Sales Header"; TotalSalesLine: Record "Sales Line"; TotalSalesLineLCY: Record "Sales Line") begin end; + /// + /// Event raised by OnAfterArchiveUnpostedOrder. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the OrderArchived parameter. [IntegrationEvent(false, false)] local procedure OnAfterArchiveUnpostedOrder(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; OrderArchived: Boolean); begin end; + /// + /// Event raised by OnBeforeCheckReturnRcptLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckReturnRcptLine(var ReturnReceiptLine: Record "Return Receipt Line"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnInsertReturnReceiptHeaderOnBeforeReturnReceiptHeaderTransferFields. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertReturnReceiptHeaderOnBeforeReturnReceiptHeaderTransferFields(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnBeforeCopyAndCheckItemCharge. + /// + /// + /// Specifies the TempSalesLine parameter. + /// Specifies the SalesLine parameter. + /// Specifies the InvoiceEverything parameter. + /// Specifies the AssignError parameter. + /// Specifies the QtyNeeded parameter. + /// Specifies the TempItemChargeAssgntSales parameter. + /// Specifies the ItemChargeAssgntSales parameter. + /// Specifies the TempSalesLineGlobal parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCopyAndCheckItemCharge(var SalesHeader: Record "Sales Header"; var TempSalesLine: Record "Sales Line" temporary; var SalesLine: Record "Sales Line"; var InvoiceEverything: Boolean; var AssignError: Boolean; var QtyNeeded: Decimal; var TempItemChargeAssgntSales: Record "Item Charge Assignment (Sales)" temporary; var ItemChargeAssgntSales: Record "Item Charge Assignment (Sales)"; var TempSalesLineGlobal: Record "Sales Line" temporary; var IsHandled: Boolean); begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeTestPostingDate. + /// + /// + /// Specifies the ReplacePostingDate parameter. + /// Specifies the SkipTestPostingDate parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeTestPostingDate(var SalesHeader: Record "Sales Header"; ReplacePostingDate: Boolean; var SkipTestPostingDate: Boolean) begin end; + /// + /// Event raised by OnValidatePostingAndDocumentDateOnBeforeSalesHeaderModify. + /// + /// + /// Specifies the ModifyHeader parameter. [IntegrationEvent(false, false)] local procedure OnValidatePostingAndDocumentDateOnBeforeSalesHeaderModify(var SalesHeader: Record "Sales Header"; var ModifyHeader: Boolean) begin end; + /// + /// Event raised by OnPostItemTrackingForShipmentOnBeforeTestLineFields. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnPostItemTrackingForShipmentOnBeforeTestLineFields(var SalesShipmentLine: Record "Sales Shipment Line"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnUpdateQtyToBeInvoicedForReturnReceiptOnAfterSetQtyToBeInvoiced. + /// + /// + /// Specifies the QtyToBeInvoiced parameter. + /// Specifies the QtyToBeInvoicedBase parameter. + /// Specifies the RemQtyToBeInvoiced parameter. + /// Specifies the RemQtyToBeInvoicedBase parameter. + /// Specifies the SalesLine parameter. [IntegrationEvent(false, false)] local procedure OnUpdateQtyToBeInvoicedForReturnReceiptOnAfterSetQtyToBeInvoiced(TrackingSpecificationExists: Boolean; var QtyToBeInvoiced: Decimal; var QtyToBeInvoicedBase: Decimal; RemQtyToBeInvoiced: Decimal; RemQtyToBeInvoicedBase: Decimal; var SalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInsertPostedHeadersOnAfterInsertShipmentHeader. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersOnAfterInsertShipmentHeader(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnInsertPostedHeadersDeleteServItemOnSaleCreditMemo. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertPostedHeadersDeleteServItemOnSaleCreditMemo(var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnRunWithCheckOnAfterFinalize. + /// + /// [IntegrationEvent(false, false)] local procedure OnRunWithCheckOnAfterFinalize(var SalesHeader: Record "Sales Header"); begin end; + /// + /// Event raised by OnBeforeFinalizePostATO. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeFinalizePostATO(var SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeDeleteATOLinks. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeDeleteATOLinks(SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeCheckATOLink. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCheckATOLink(SalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSumSalesLinesTempOnAfterVatAmountSet. + /// + /// + /// Specifies the TotalSalesLine parameter. [IntegrationEvent(false, false)] local procedure OnSumSalesLinesTempOnAfterVatAmountSet(var VATAmount: Decimal; var TotalSalesLine: Record "Sales Line") begin end; + /// + /// Event raised by OnInsertShptEntryRelationOnBeforeDeleteTempHandlingSpecification. + /// + /// [IntegrationEvent(false, false)] local procedure OnInsertShptEntryRelationOnBeforeDeleteTempHandlingSpecification(var TempHandlingTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnUpdateAssosOrderPostingNosOnBeforeModifyPurchOrderHeader. + /// + /// + /// Specifies the SalesHeader parameter. [IntegrationEvent(false, false)] local procedure OnUpdateAssosOrderPostingNosOnBeforeModifyPurchOrderHeader(var PurchaseOrderHeader: Record "Purchase Header"; var SalesHeader: Record "Sales Header") begin end; + /// + /// Event raised by OnAfterPostJobContractLine. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the GenJnlLineDocType parameter. + /// Specifies the GenJnlLineDocNo parameter. + /// Specifies the GenJnlLineExtDocNo parameter. + /// Specifies the SrcCode parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostJobContractLine(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var GenJnlLineDocType: Enum "Gen. Journal Document Type"; var GenJnlLineDocNo: Code[20]; var GenJnlLineExtDocNo: Code[35]; var SrcCode: Code[10]) begin end; + /// + /// Event raised by OnBeforePostDistributeItemCharge. + /// + /// + /// Specifies the SalesLine parameter. + /// Specifies the TempItemLedgerEntry parameter. + /// Specifies the NonDistrQuantity parameter. + /// Specifies the NonDistrQtyToAssign parameter. + /// Specifies the NonDistrAmountToAssign parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostDistributeItemCharge(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempItemLedgerEntry: Record "Item Ledger Entry"; NonDistrQuantity: Decimal; NonDistrQtyToAssign: Decimal; NonDistrAmountToAssign: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnPostDistributeItemChargeOnAfterSetFactor. + /// + /// + /// Specifies the Factor parameter. [IntegrationEvent(false, false)] local procedure OnPostDistributeItemChargeOnAfterSetFactor(TempItemLedgerEntry: Record "Item Ledger Entry"; var Factor: Decimal) begin end; + /// + /// Event raised by OnBeforeCalcPrepmtAmtToDeduct. + /// + /// + /// Specifies the Ship parameter. + /// Specifies the IsHandled parameter. + /// Specifies the PrepmtAmtToDeduct parameter. [IntegrationEvent(false, false)] local procedure OnBeforeCalcPrepmtAmtToDeduct(var SalesLine: Record "Sales Line"; Ship: Boolean; var IsHandled: Boolean; var PrepmtAmtToDeduct: Decimal) begin end; + /// + /// Event raised by OnBeforePostItemJournalLineWarehouseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostItemJournalLineWarehouseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAfterPostItemJournalLineWarehouseLine. + /// + /// + /// Specifies the TempWhseTrackingSpecification parameter. [IntegrationEvent(false, false)] local procedure OnAfterPostItemJournalLineWarehouseLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var TempWhseTrackingSpecification: Record "Tracking Specification" temporary) begin end; + /// + /// Event raised by OnAdjustPrepmtAmountLCYOnAfterGetOrderLine. + /// + /// + /// Specifies the SalesInvoiceLine parameter. [IntegrationEvent(false, false)] local procedure OnAdjustPrepmtAmountLCYOnAfterGetOrderLine(var SalesLine: Record "Sales Line"; var SalesInvoiceLine: Record "Sales Line"); begin end; + /// + /// Event raised by OnBeforeGetQtyToInvoice. + /// + /// + /// Specifies the Ship parameter. + /// Specifies the IsHandled parameter. + /// Specifies the QtyToInvoice parameter. [IntegrationEvent(false, false)] local procedure OnBeforeGetQtyToInvoice(SalesLine: Record "Sales Line"; Ship: Boolean; var IsHandled: Boolean; var QtyToInvoice: Decimal) begin end; + /// + /// Event raised by OnBeforeAdjustFinalInvWith100PctPrepmt. + /// + /// + /// Specifies the CombinedSalesLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeAdjustFinalInvWith100PctPrepmt(var TempPrepmtDeductLCYSalesLine: Record "Sales Line" temporary; var CombinedSalesLine: Record "Sales Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateRemainingQtyToBeInvoiced. + /// + /// + /// Specifies the RemQtyToInvoiceCurrLine parameter. + /// Specifies the RemQtyToInvoiceCurrLineBase parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateRemainingQtyToBeInvoiced(SalesShptLine: Record "Sales Shipment Line"; var RemQtyToInvoiceCurrLine: Decimal; var RemQtyToInvoiceCurrLineBase: Decimal; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnCreatePrepaymentLineForCreditMemoOnBeforeGetSalesPrepmtAccount. + /// + /// + /// Specifies the SalesInvoiceLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnCreatePrepaymentLineForCreditMemoOnBeforeGetSalesPrepmtAccount(var GLAccount: Record "G/L Account"; var SalesInvoiceLine: Record "Sales Invoice Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeUpdateEmailParameters. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeUpdateEmailParameters(SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforePostUpdateOrderNo. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforePostUpdateOrderNo(var SalesInvoiceHeader: Record "Sales Invoice Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeSetInvoiceOrderNo. + /// + /// + /// Specifies the SalesInvLine parameter. + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeSetInvoiceOrderNo(SalesLine: Record "Sales Line"; var SalesInvLine: Record "Sales Invoice Line"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnBeforeArchiveRelatedJob. + /// + /// + /// Specifies the IsHandled parameter. [IntegrationEvent(false, false)] local procedure OnBeforeArchiveRelatedJob(SalesHeader: Record "Sales Header"; var IsHandled: Boolean) begin end; + /// + /// Event raised by OnSyncSurPlusItemTrackingOnBeforeModifyQtyToHandleInvoice. + /// + /// + /// Specifies the SalesHeader parameter. + /// Specifies the IsHandled parameter. + /// Specifies the ReservationEntry parameter. [IntegrationEvent(false, false)] local procedure OnSyncSurPlusItemTrackingOnBeforeModifyQtyToHandleInvoice(var SalesLine: Record "Sales Line"; var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var ReservationEntry: Record "Reservation Entry") begin end; -} \ No newline at end of file + + /// + /// Event raised by OnAfterProcessPostingLines. + /// + /// + /// Specifies the TotalSalesLine parameter. + /// Specifies the CustLedgEntry parameter. + /// Specifies the InvoicePostingParameters parameter. + /// Specifies the SuppressCommit parameter. + /// Specifies the EverythingInvoiced parameter. + /// Specifies the Window parameter. + /// Specifies the HideProgressWindow parameter. + [IntegrationEvent(false, false)] + local procedure OnAfterProcessPostingLines(var SalesHeader: Record "Sales Header"; var TotalSalesLine: Record "Sales Line"; var CustLedgEntry: Record "Cust. Ledger Entry"; InvoicePostingParameters: Record "Invoice Posting Parameters"; SuppressCommit: Boolean; EverythingInvoiced: Boolean; var Window: Dialog; HideProgressWindow: Boolean) + begin + end; + + /// + /// Raised after checking posting restrictions + /// + /// + [IntegrationEvent(false, false)] + local procedure OnAfterCheckPostRestrictions(var SalesHeader: Record "Sales Header") + begin + end; +} diff --git a/src/Layers/W1/BaseApp/Sales/Receivables/CustEntryApplyPostedEntries.Codeunit.al b/src/Layers/W1/BaseApp/Sales/Receivables/CustEntryApplyPostedEntries.Codeunit.al index 2620e9d9e14..a6e5a00e9aa 100644 --- a/src/Layers/W1/BaseApp/Sales/Receivables/CustEntryApplyPostedEntries.Codeunit.al +++ b/src/Layers/W1/BaseApp/Sales/Receivables/CustEntryApplyPostedEntries.Codeunit.al @@ -407,6 +407,8 @@ codeunit 226 "CustEntry-Apply Posted Entries" CheckAdditionalCurrency(ApplyUnapplyParameters."Posting Date", DtldCustLedgEntry."Posting Date"); AddCurrChecked := true; end; + CheckInitialDocumentType( + DtldCustLedgEntry, ApplyUnapplyParameters."Document No.", ApplyUnapplyParameters."Posting Date", CommitChanges); CheckReversal(DtldCustLedgEntry."Cust. Ledger Entry No."); if DtldCustLedgEntry."Transaction No." <> 0 then CheckUnappliedEntries(DtldCustLedgEntry); @@ -465,6 +467,18 @@ codeunit 226 "CustEntry-Apply Posted Entries" ExchRateAdjmtRunHandler.RunCustExchRateAdjustment(GenJnlLine, TempCustLedgerEntry); end; + local procedure CheckInitialDocumentType(var DtldCustLedgEntry: Record "Detailed Cust. Ledg. Entry"; DocNo: Code[20]; PostingDate: Date; var CommitChanges: Boolean) + var + IsHandled: Boolean; + begin + IsHandled := false; + OnBeforeCheckInitialDocumentType(DtldCustLedgEntry, DocNo, PostingDate, CommitChanges, IsHandled); + if IsHandled then + exit; + + OnAfterCheckInitialDocumentType(DtldCustLedgEntry); + end; + local procedure CheckPostingDate(ApplyUnapplyParameters: Record "Apply Unapply Parameters"; var MaxPostingDate: Date) var GenJnlCheckLine: Codeunit "Gen. Jnl.-Check Line"; @@ -1015,6 +1029,28 @@ codeunit 226 "CustEntry-Apply Posted Entries" begin end; + /// + /// Raised after checking initial document Type + /// + /// The detailed customer ledger entry. + [IntegrationEvent(false, false)] + local procedure OnAfterCheckInitialDocumentType(var DtldCustLedgEntry: Record "Detailed Cust. Ledg. Entry"); + begin + end; + + /// + /// Raised before checking initial document Type + /// + /// The detailed customer ledger entry. + /// The document number. + /// The posting date. + /// Indicates whether to commit changes. + /// Indicates whether the event is handled. + [IntegrationEvent(false, false)] + local procedure OnBeforeCheckInitialDocumentType(var DtldCustLedgEntry: Record "Detailed Cust. Ledg. Entry"; DocNo: Code[20]; PostingDate: Date; var CommitChanges: Boolean; var IsHandled: Boolean); + begin + end; + /// /// Raised before filtering detailed customer ledger entries during unapplication. /// diff --git a/src/Layers/W1/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al b/src/Layers/W1/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al index 117c46752c2..a375618e3e3 100644 --- a/src/Layers/W1/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al +++ b/src/Layers/W1/BaseApp/Sales/Receivables/CustLedgerEntry.Table.al @@ -1,4 +1,4 @@ -// ------------------------------------------------------------------------------------------------ +// ------------------------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // ------------------------------------------------------------------------------------------------ @@ -18,6 +18,7 @@ using Microsoft.FixedAssets.FixedAsset; using Microsoft.Foundation.Attachment; using Microsoft.Foundation.AuditCodes; using Microsoft.Foundation.NoSeries; +using Microsoft.Foundation.PaymentTerms; using Microsoft.Intercompany.Partner; using Microsoft.Purchases.Vendor; using Microsoft.Sales.Customer; @@ -853,6 +854,13 @@ table 21 "Cust. Ledger Entry" Caption = 'Prepayment'; ToolTip = 'Specifies if the related payment is a prepayment.'; } + field(91; "Payment Terms Code"; Code[10]) + { + Caption = 'Payment Terms Code'; + Editable = false; + TableRelation = "Payment Terms"; + ToolTip = 'Specifies the payment terms that determine the due date and payment discount date for the entry.'; + } field(95; "G/L Register No."; Integer) { Caption = 'G/L Register No.'; @@ -866,6 +874,7 @@ table 21 "Cust. Ledger Entry" field(171; "Payment Reference"; Code[50]) { Caption = 'Payment Reference'; + ToolTip = 'Specifies the payment reference number used by banks to identify and track the payment.'; } /// /// Specifies the payment method used or expected for this transaction, such as bank transfer, cash, or check. @@ -1383,12 +1392,12 @@ table 21 "Cust. Ledger Entry" SetCurrentKey("Customer No.", Open, Positive, "Due Date"); SetRange("Customer No.", CustomerNo); SetRange(Open, true); + OnSetApplyToFiltersOnBeforeSetFilters(Rec); if ApplyDocNo <> '' then begin SetRange("Document Type", ApplyDocType); SetRange("Document No.", ApplyDocNo); if FindFirst() then; - SetRange("Document Type"); - SetRange("Document No."); + ClearDocumentFilters(); end else if ApplyDocType <> 0 then begin SetRange("Document Type", ApplyDocType); @@ -1402,6 +1411,22 @@ table 21 "Cust. Ledger Entry" end; end; + procedure SetAppliesToDocFilters(var GenJnlLine: Record "Gen. Journal Line") + begin + SetRange("Document Type", GenJnlLine."Applies-to Doc. Type"); + SetRange("Document No.", GenJnlLine."Applies-to Doc. No."); + + OnAfterSetAppliesToDocFilters(Rec, GenJnlLine); + end; + + procedure ClearDocumentFilters() + begin + SetRange("Document Type"); + SetRange("Document No."); + + OnAfterClearDocumentFilters(Rec); + end; + /// /// Toggles the Amount to Apply field between the remaining amount and zero for the specified document. /// @@ -1475,6 +1500,7 @@ table 21 "Cust. Ledger Entry" "Payment Method Code" := GenJnlLine."Payment Method Code"; "Payment Reference" := GenJnlLine."Payment Reference"; "Exported to Payment File" := GenJnlLine."Exported to Payment File"; + "Payment Terms Code" := GenJnlLine."Payment Terms Code"; OnAfterCopyCustLedgerEntryFromGenJnlLine(Rec, GenJnlLine); end; @@ -1810,5 +1836,20 @@ table 21 "Cust. Ledger Entry" local procedure OnValidateMaxPaymentToleranceOnBeforeFieldError(var CustLedgerEntry: Record "Cust. Ledger Entry") begin end; + + [IntegrationEvent(false, false)] + local procedure OnAfterSetAppliesToDocFilters(var Rec: Record "Cust. Ledger Entry"; var GenJnlLine: Record "Gen. Journal Line") + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnAfterClearDocumentFilters(var Rec: Record "Cust. Ledger Entry") + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnSetApplyToFiltersOnBeforeSetFilters(var Rec: Record "Cust. Ledger Entry") + begin + end; } diff --git a/src/Layers/W1/BaseApp/Utilities/CopyDocumentMgt.Codeunit.al b/src/Layers/W1/BaseApp/Utilities/CopyDocumentMgt.Codeunit.al index 7a9981ee716..805e91a3bba 100644 --- a/src/Layers/W1/BaseApp/Utilities/CopyDocumentMgt.Codeunit.al +++ b/src/Layers/W1/BaseApp/Utilities/CopyDocumentMgt.Codeunit.al @@ -1572,6 +1572,7 @@ codeunit 6620 "Copy Document Mgt." RoundingLineInserted: Boolean; CopyThisLine: Boolean; InvDiscountAmount: Decimal; + PmtDiscountAmount: Decimal; IsHandled: Boolean; ShouldValidateQuantityMoveNegLines: Boolean; ShouldInitToSalesLine: Boolean; @@ -1640,6 +1641,7 @@ codeunit 6620 "Copy Document Mgt." (ToSalesHeader."Currency Factor" <> FromSalesHeader."Currency Factor") then begin InvDiscountAmount := ToSalesLine."Inv. Discount Amount"; + PmtDiscountAmount := ToSalesLine."Pmt. Discount Amount"; IsHandled := false; OnCopySalesDocLineOnBeforeValidateLineDiscountPct(ToSalesLine, IsHandled); if not IsHandled then @@ -1648,6 +1650,7 @@ codeunit 6620 "Copy Document Mgt." OnCopySalesDocLineOnBeforeValidateInvDiscountAmount(ToSalesLine, InvDiscountAmount, IsHandled); if not IsHandled then ToSalesLine.Validate("Inv. Discount Amount", InvDiscountAmount); + ToSalesLine."Pmt. Discount Amount" := PmtDiscountAmount; end; end; ToSalesLine.Validate("Currency Code", FromSalesHeader."Currency Code"); @@ -2141,6 +2144,7 @@ codeunit 6620 "Copy Document Mgt." local procedure ValidatePurchLineDiscountFields(FromPurchHeader: Record "Purchase Header"; ToPurchHeader: Record "Purchase Header"; var ToPurchLine: Record "Purchase Line") var InvDiscountAmount: Decimal; + PmtDiscountAmount: Decimal; IsHandled: Boolean; begin IsHandled := false; @@ -2154,8 +2158,10 @@ codeunit 6620 "Copy Document Mgt." (ToPurchHeader."Currency Factor" <> FromPurchHeader."Currency Factor")) then begin InvDiscountAmount := ToPurchLine."Inv. Discount Amount"; + PmtDiscountAmount := ToPurchLine."Pmt. Discount Amount"; ToPurchLine.Validate("Line Discount %"); ToPurchLine.Validate("Inv. Discount Amount", InvDiscountAmount); + ToPurchLine."Pmt. Discount Amount" := PmtDiscountAmount; end; end; @@ -7240,6 +7246,7 @@ codeunit 6620 "Copy Document Mgt." CustLedgEntry.SetRange("Document No.", FromDocNo); CustLedgEntry.SetRange("Customer No.", ToSalesHeader."Bill-to Customer No."); CustLedgEntry.SetRange(Open, true); + OnUpdateCustLedgEntryOnAfterSetFilters(CustLedgEntry, ToSalesHeader, FromDocType, FromDocNo); if CustLedgEntry.FindFirst() then begin ToSalesHeader."Bal. Account No." := ''; if FromDocType = "Sales Document Type From"::"Posted Invoice" then begin @@ -7254,7 +7261,8 @@ codeunit 6620 "Copy Document Mgt." CustLedgEntry."Accepted Payment Tolerance" := 0; CustLedgEntry."Accepted Pmt. Disc. Tolerance" := false; CODEUNIT.Run(CODEUNIT::"Cust. Entry-Edit", CustLedgEntry); - end; + end else + OnUpdateCustLedgEntryOnNoOpenEntries(CustLedgEntry, ToSalesHeader, FromDocType, FromDocNo); OnAfterUpdateCustLedgerEntry(ToSalesHeader, FromDocType, FromDocNo, CustLedgEntry); end; @@ -7275,6 +7283,7 @@ codeunit 6620 "Copy Document Mgt." VendLedgEntry.SetRange("Document No.", FromDocNo); VendLedgEntry.SetRange("Vendor No.", ToPurchHeader."Pay-to Vendor No."); VendLedgEntry.SetRange(Open, true); + OnUpdateVendLedgEntryOnAfterSetFilters(VendLedgEntry, ToPurchHeader, FromDocType, FromDocNo); if VendLedgEntry.FindFirst() then begin if FromDocType = "Purchase Document Type From"::"Posted Invoice" then begin ToPurchHeader."Applies-to Doc. Type" := ToPurchHeader."Applies-to Doc. Type"::Invoice; @@ -7288,7 +7297,8 @@ codeunit 6620 "Copy Document Mgt." VendLedgEntry."Accepted Payment Tolerance" := 0; VendLedgEntry."Accepted Pmt. Disc. Tolerance" := false; CODEUNIT.Run(CODEUNIT::"Vend. Entry-Edit", VendLedgEntry); - end; + end else + OnUpdateVendLedgEntryOnNoOpenEntries(VendLedgEntry, ToPurchHeader, FromDocType, FromDocNo); end; OnAfterUpdateVendLedgEntry(ToPurchHeader, FromDocNo, FromDocType, VendLedgEntry); @@ -8225,8 +8235,7 @@ codeunit 6620 "Copy Document Mgt." /// A boolean variable indicating if posted deferrals should be copied. /// The next line number for the target document. [IntegrationEvent(false, false)] - local procedure OnBeforeCopyPurchLine(var ToPurchHeader: Record "Purchase Header"; FromPurchHeader: Record "Purchase Header"; FromPurchLine: Record "Purchase Line"; RecalculateAmount: Boolean; var CopyThisLine: Boolean; ToPurchLine: Record "Purchase Line"; MoveNegLines: Boolean; var RoundingLineInserted: Boolean; var Result: Boolean; var IsHandled: Boolean; FromPurchDocType: Enum "Purchase Document Type From"; DocLineNo: Integer; - RecalculateLines: Boolean; var LinesNotCopied: Integer; var CopyPostedDeferral: Boolean; var NextLineNo: Integer) + local procedure OnBeforeCopyPurchLine(var ToPurchHeader: Record "Purchase Header"; FromPurchHeader: Record "Purchase Header"; FromPurchLine: Record "Purchase Line"; RecalculateAmount: Boolean; var CopyThisLine: Boolean; ToPurchLine: Record "Purchase Line"; MoveNegLines: Boolean; var RoundingLineInserted: Boolean; var Result: Boolean; var IsHandled: Boolean; FromPurchDocType: Enum "Purchase Document Type From"; DocLineNo: Integer; RecalculateLines: Boolean; var LinesNotCopied: Integer; var CopyPostedDeferral: Boolean; var NextLineNo: Integer) begin end; @@ -12534,4 +12543,24 @@ codeunit 6620 "Copy Document Mgt." local procedure OnCreateJobPlanningLineOnAfterInitFromJobPlanningLine(var NewJobPlanningLine: Record "Job Planning Line"; JobPlanningLine: Record "Job Planning Line"; SalesLine: Record "Sales Line") begin end; + + [IntegrationEvent(false, false)] + local procedure OnUpdateCustLedgEntryOnAfterSetFilters(var CustLedgerEntry: Record "Cust. Ledger Entry"; var ToSalesHeader: Record "Sales Header"; FromDocType: Enum "Gen. Journal Document Type"; FromDocNo: Code[20]) + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnUpdateVendLedgEntryOnAfterSetFilters(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var ToPurchHeader: Record "Purchase Header"; FromDocType: Enum "Gen. Journal Document Type"; FromDocNo: Code[20]) + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnUpdateCustLedgEntryOnNoOpenEntries(var CustLedgerEntry: Record "Cust. Ledger Entry"; var ToSalesHeader: Record "Sales Header"; FromDocType: Enum "Gen. Journal Document Type"; FromDocNo: Code[20]) + begin + end; + + [IntegrationEvent(false, false)] + local procedure OnUpdateVendLedgEntryOnNoOpenEntries(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var ToPurchHeader: Record "Purchase Header"; FromDocType: Enum "Gen. Journal Document Type"; FromDocNo: Code[20]) + begin + end; }