Codeunit 1313 Correct Posted Purch. Invoice
src/Layers/W1/BaseApp/Purchases/History/CorrectPostedPurchInvoice.Codeunit.al47 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT
OnRun line 35, trigger
- 42callsUnapplyCostApplication
- 43raisesOnRunOnBeforeCreateCopyDocument
- 44callsCreateCopyDocument
- 47callsCheckPurchaseOrderLinesCanAbsorbCancellation
- 49callsCodeunit 310 No. Series IsNoSeriesInDateOrder
- 51raisesOnAfterCreateCorrectivePurchCrMemo
- 55runsCodeunit 90 Purch.-Post
- 56callsSetTrackInfoForCancellation
- 58callsCodeunit 22 Item Jnl.-Post Line RedoApplications
- 59callsUpdatePurchaseOrderLinesFromCancelledInvoice
- 60callsResetIncomingDocumentForCancelledInvoice
- 61raisesOnRunOnAfterUpdatePurchaseOrderLinesFromCancelledInvoice
CancelPostedInvoice line 126
- 129callsCreateCreditMemo
CreateCreditMemo line 132, local
- 138callsTestCorrectInvoiceIsAllowed
- 139runsCodeunit 1313 Correct Posted Purch. Invoice
- 144raisesOnBeforeShowPostedPurchCreditMemoIsHandled
- 146runsPage 140 Posted Purchase Credit Memo
- 152raisesOnCreateCreditMemoOnBeforeConfirmPostingCreditMemoFailedOpenIsHandled
- 155raisesOnBeforeShowPurchaseCreditMemoIsHandled
- 157runsPage 52 Purchase Credit Memo
CreateCopyDocument line 167, local
- 171raisesOnBeforeCreateCopyDocument
- 175callsTable 38 Purchase Header SetAllowSelectNoSeries
- 176raisesOnBeforePurchaseHeaderInsert
- 177writesTable 38 Purchase Header Insert(true)
- 181callsCodeunit 6620 Copy Document Mgt. SetPropertiesForCorrectiveCreditMemo
- 183callsCodeunit 6620 Copy Document Mgt. SetPropertiesForInvoiceCorrection
- 188callsCodeunit 6620 Copy Document Mgt. CopyPurchaseDocForInvoiceCancelling
- 190raisesOnAfterCreateCopyDocument
CreateCreditMemoCopyDocument line 193
- 197callsTable 122 Purch. Inv. Header IsFullyOpen
- 198callsShowInvoiceAppliedNotification
- 207callsCreateCopyDocument
CreateCorrectiveCreditMemo line 211
- 220callsCreateCopyDocument
- 222raisesOnBeforeShowPurchaseCreditMemoIsHandled
- 224runsPage 52 Purchase Credit Memo
ShowAppliedEntries line 227
CancelPostedInvoiceStartNewInvoice line 242
TestCorrectInvoiceIsAllowed line 253
- 256callsTestIfPostingIsAllowed
- 257callsTestIfInvoiceIsCorrectedOnce
- 258callsTestIfInvoiceIsNotCorrectiveDoc
- 259callsTestIfInvoiceIsPaid
- 260callsTestIfVendorIsBlocked
- 261callsTestIfVendorIsBlocked
- 262callsTestVendorDimension
- 263callsTestDimensionOnHeader
- 264callsTestPurchaseLines
- 265callsTestIfAnyFreeNumberSeries
- 266callsTestExternalDocument
- 267callsTestInventoryPostingClosed
- 269raisesOnAfterTestCorrectInvoiceIsAllowed
ShowInvoiceAppliedNotification line 272, local
- 290callsCodeunit 1511 Notification Lifecycle Mgt. SendNotification
SetTrackInfoForCancellation line 293, local
- 300raisesOnBeforeSetTrackInfoForCancellationIsHandled
- 306callsTable 1900 Cancelled Document InsertPurchInvToCrMemoCancelledDocument
TestDimensionOnHeader line 309, local
- 313callsCodeunit 408 DimensionManagement CheckDimIDComb
- 314callsErrorHelperHeader
TestVendorDimension line 326, local
- 336callsCodeunit 408 DimensionManagement CheckDimValuePosting
- 337callsErrorHelperAccount
TestPurchaseLines line 340, local
- 355callsIsCommentLine
- 356callsTable 123 Purch. Inv. Line IsCancellationSupported
- 356callsNotInvRndAccount
- 357callsErrorHelperLine
- 362callsTable 27 Item IsInventoriableType
- 363callsWasNotCancelled
- 364callsTable 123 Purch. Inv. Line CalcReceivedPurchNotReturned
- 366raisesOnTestPurchaseLinesOnAfterCalcThrowItemReturnedError
- 368callsErrorHelperLine
- 372callsErrorHelperLine
- 376callsErrorHelperLine
- 381callsCodeunit 408 DimensionManagement CheckDimValuePosting
- 382callsErrorHelperAccount
- 384callsTable 27 Item IsInventoriableType
- 385callsTestInventoryPostingSetup
- 388callsTestGenPostingSetup
- 389callsTestVendorPostingGroup
- 390callsTestVATPostingSetup
- 392callsCodeunit 408 DimensionManagement CheckDimIDComb
- 393callsErrorHelperLine
TestGLAccount line 398, local
- 408callsErrorHelperAccount
- 414callsCodeunit 408 DimensionManagement CheckDimValuePosting
- 415callsErrorHelperAccount
TestGLAccount line 419, local
- 429callsErrorHelperAccount
- 433callsCodeunit 408 DimensionManagement CheckDimValuePosting
- 434callsErrorHelperAccount
TestIfInvoiceIsPaid line 439, local
- 444raisesOnBeforeTestIfInvoiceIsPaidIsHandled
- 451callsErrorHelperHeader
TestIfInvoiceIsCorrectedOnce line 454, local
- 458callsTable 1900 Cancelled Document FindPurchCancelledInvoice
- 459callsErrorHelperHeader
TestIfInvoiceIsNotCorrectiveDoc line 462, local
- 466callsTable 1900 Cancelled Document FindPurchCorrectiveInvoice
- 467callsErrorHelperHeader
TestIfPostingIsAllowed line 470, local
- 474callsCodeunit 11 Gen. Jnl.-Check Line DateNotAllowed
- 475callsErrorHelperHeader
TestIfAnyFreeNumberSeries line 478, local
- 488raisesOnBeforeTestIfAnyFreeNumberSeriesIsHandled
- 495callsTryPeekNextNo
- 496callsErrorHelperHeader
- 504callsTryPeekNextNo
- 505callsErrorHelperHeader
- 507callsTryPeekNextNo
- 508callsErrorHelperHeader
TryPeekNextNo line 512, local
- 516callsCodeunit 310 No. Series PeekNextNo
TestGenPostingSetup line 548, local
- 558callsTestGLAccount
- 560callsTestGLAccount
- 562callsIsCheckDirectCostAppliedAccount
- 564callsTestGLAccount
- 566callsHasLineDiscountSetup
- 568callsTestGLAccount
TestVATPostingSetup line 580, local
- 586raisesOnBeforeTestVATPostingSetupIsHandled
- 593callsTestGLAccount
TestInventoryPostingSetup line 597, local
- 603raisesOnBeforeTestInventoryPostingSetupIsHandled
- 609callsTestGLAccount
IsCommentLine line 612, local
- 615raisesOnAfterIsCommentLine
UnapplyCostApplication line 638, local
- 645raisesOnBeforeUnAppyCostApplicationIsHandled
- 649callsFindItemLedgEntries
- 650callsFindAppliedInbndEntries
- 652callsCodeunit 22 Item Jnl.-Post Line UnApply
FindItemLedgEntries line 658
- 666callsTable 123 Purch. Inv. Line GetItemLedgEntries
FindAppliedInbndEntries line 670, local
- 675writesTable 339 Item Application Entry DeleteAll
- 678callsTable 339 Item Application Entry AppliedOutbndEntryExists
- 682writesTable 339 Item Application Entry Insert
UpdatePurchaseOrderLinesFromCancelledInvoice line 832, local
- 844writesTable 32 Item Ledger Entry DeleteAll
- 845callsTable 123 Purch. Inv. Line GetItemLedgEntries
- 847callsUpdatePurchaseOrderLineInvoicedQuantity
- 848callsUpdatePurchaseOrderLinePrepmtAmount
- 849callsUpdateReverseItemChargeAssignment
- 851callsCodeunit 5817 Undo Posting Management RevertPostedItemTracking
UpdatePurchaseOrderLineInvoicedQuantity line 856, local
- 861raisesOnBeforeUpdatePurchaseOrderLineInvoicedQuantityIsHandled
- 869callsTable 39 Purchase Line InitOutstanding
- 870callsTable 39 Purchase Line InitQtyToReceive
- 871callsTable 39 Purchase Line InitQtyToInvoice
- 872writesTable 39 Purchase Line Modify
HasLineDiscountSetup line 875, local
- 877callsTable 312 Purchases & Payables Setup GetRecordOnce
- 881raisesOnHasLineDiscountSetup
IsCheckDirectCostAppliedAccount line 884, local
- 891callsTable 27 Item IsInventoriableType
- 893raisesOnAfterIsCheckDirectCostAppliedAccount
UpdateReverseItemChargeAssignment line 896, local
- 910callsCodeunit 5805 Item Charge Assgnt. (Purch.) ReverseItemChargeAssgnt
UpdatePurchaseOrderLineIfExist line 913, internal
GetPurchInvLineAndUpdatePurchaseOrderLines line 927, local
- 931callsTable 125 Purch. Cr. Memo Line GetPurchaseInvoiceLine
- 933callsUpdatePurchaseOrderLinesFromCreditMemo
UpdatePurchaseOrderLinesFromCreditMemo line 936, local
- 946callsTable 123 Purch. Inv. Line GetItemLedgEntries
- 948callsUpdatePurchaseOrderLineInvoicedQuantity
- 949callsUpdatePurchaseOrderLinePrepmtAmount
- 953callsUpdateWhseRequest
- 956callsCodeunit 5817 Undo Posting Management RevertPostedItemTracking
UpdatePurchaseOrderLinePrepmtAmount line 960, local
- 977callsTable 4 Currency Initialize
- 980callsValidatePrepmtAmountsWithCurrency
- 982callsValidatePrepmtAmountsFromPurchInv
- 984validatesTable 39 Purchase Line Prepmt Amt Deducted
- 991validatesTable 39 Purchase Line Prepmt Amt to Deduct
- 998writesTable 39 Purchase Line Modify(true)
ValidatePrepmtAmountsWithCurrency line 1001, local
- 1005validatesTable 39 Purchase Line Prepmt. Amount Inv. (LCY)
- 1009callsTable 330 Currency Exchange Rate ExchangeAmtFCYToLCY
- 1018validatesTable 39 Purchase Line Prepmt. VAT Amount Inv. (LCY)
- 1022callsTable 330 Currency Exchange Rate ExchangeAmtFCYToLCY
ValidatePrepmtAmountsFromPurchInv line 1032, local
- 1034validatesTable 39 Purchase Line Prepmt. Amount Inv. (LCY)
- 1041validatesTable 39 Purchase Line Prepmt. VAT Amount Inv. (LCY)
UpdateWhseRequest line 1049, local
- 1054callsTable 5765 Warehouse Request SetSourceFilter
- 1058writesTable 5765 Warehouse Request Modify
ResetIncomingDocumentForCancelledInvoice line 1062, local
- 1096writesTable 130 Incoming Document Modify(true)
- 1099writesTable 133 Incoming Document Attachment ModifyAll
- 1100writesTable 133 Incoming Document Attachment ModifyAll