Codeunit 1402 Cancel Posted Purch. Cr. Memo

Base Application, Microsoft.Purchases.History

src/Layers/W1/BaseApp/Purchases/History/CancelPostedPurchCrMemo.Codeunit.al26 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

OnRun line 29, trigger

  1. 33callsUnapplyEntries
  2. 34callsCreateCopyDocument
  3. 36raisesOnRunOnBeforeRunPurchPost
  4. 37runsCodeunit 90 Purch.-Post
  5. 38callsSetTrackInfoForCancellation

CancelPostedCrMemo line 65

  1. 70raisesOnCancelPostedCrMemoOnBeforeTestCorrectCrMemoIsAllowed
  2. 71callsTestCorrectCrMemoIsAllowed
  3. 72runsCodeunit 1402 Cancel Posted Purch. Cr. Memo
  4. 76callsShowPostedPurchaseInvoice
  5. 81callsShowPurchaseInvoice

ShowPostedPurchaseInvoice line 90, local

  1. 95raisesOnBeforeShowPostedPurchaseInvoiceIsHandled
  2. 99runsPage 138 Posted Purchase Invoice

ShowPurchaseInvoice line 102, local

  1. 107raisesOnBeforeShowPurchaseInvoiceIsHandled
  2. 111runsPage 51 Purchase Invoice

CreateCopyDocument line 114, local

  1. 121raisesOnCreateCopyDocumentOnBeforePurchHeaderInsert
  2. 122writesTable 38 Purchase Header Insert(true)
  3. 123callsCodeunit 6620 Copy Document Mgt. SetPropertiesForInvoiceCorrection
  4. 124callsCodeunit 6620 Copy Document Mgt. CopyPurchDocForCrMemoCancelling
  5. 126raisesOnAfterCreateCopyDocument

TestCorrectCrMemoIsAllowed line 129

  1. 131callsTestIfPostingIsAllowed
  2. 132callsTestIfVendorIsBlocked
  3. 133callsTestIfVendorIsBlocked
  4. 134callsTestIfInvoiceIsCorrectedOnce
  5. 135callsTestIfCrMemoIsCorrectiveDoc
  6. 136callsTestVendorDimension
  7. 137callsTestDimensionOnHeader
  8. 138callsTestPurchLines
  9. 139callsTestIfAnyFreeNumberSeries
  10. 140callsTestExternalDocument
  11. 141callsTestInventoryPostingClosed
  12. 143raisesOnAfterTestCorrectCrMemoIsAllowed

SetTrackInfoForCancellation line 146, local

  1. 153callsTable 1900 Cancelled Document InsertPurchCrMemoToInvCancelledDocument

TestDimensionOnHeader line 156, local

  1. 160callsCodeunit 408 DimensionManagement CheckDimIDComb
  2. 161callsErrorHelperHeader

TestIfVendorIsBlocked line 164, local

  1. 170callsErrorHelperHeader

TestIfAppliedCorrectly line 173, local

  1. 179raisesOnTestIfAppliedCorrectlyBeforeCalcPartiallyApplied
  2. 182callsCalcDtldVendLedgEntryCount
  3. 183callsCalcDtldVendLedgEntryCount
  4. 184callsAnyDtldVendLedgEntriesExceptInitialAndApplicaltionExists
  5. 187callsErrorHelperHeader

TestIfUnapplied line 190, local

  1. 195raisesOnBeforeTestIfUnappliedIsHandled
  2. 202callsErrorHelperHeader

TestVendorDimension line 205, local

  1. 215callsCodeunit 408 DimensionManagement CheckDimValuePosting
  2. 216callsErrorHelperAccount

TestPurchLines line 219, local

  1. 231callsIsCommentLine
  2. 236callsErrorHelperLine
  3. 240callsErrorHelperLine
  4. 245callsCodeunit 408 DimensionManagement CheckDimValuePosting
  5. 246callsErrorHelperAccount
  6. 249callsTestInventoryPostingSetup
  7. 252callsTestGenPostingSetup
  8. 253callsTestVendorPostingGroup
  9. 254callsTestVATPostingSetup
  10. 256callsCodeunit 408 DimensionManagement CheckDimIDComb
  11. 257callsErrorHelperLine

CheckGLAccount line 262

  1. 272callsErrorHelperAccount
  2. 278callsCodeunit 408 DimensionManagement CheckDimValuePosting
  3. 279callsErrorHelperAccount

TestIfInvoiceIsCorrectedOnce line 283, local

  1. 287callsTable 1900 Cancelled Document FindPurchCancelledCrMemo
  2. 288callsErrorHelperHeader

TestIfCrMemoIsCorrectiveDoc line 291, local

  1. 297raisesOnBeforeTestIfCrMemoIsCorrectiveDocIsHandled
  2. 301callsTable 1900 Cancelled Document FindPurchCorrectiveCrMemo
  3. 302callsErrorHelperHeader

TestIfPostingIsAllowed line 305, local

  1. 309callsCodeunit 11 Gen. Jnl.-Check Line DateNotAllowed
  2. 310callsErrorHelperHeader

TestIfAnyFreeNumberSeries line 313, local

  1. 323raisesOnBeforeTestIfAnyFreeNumberSeriesIsHandled
  2. 330callsTryPeekNextNo
  3. 331callsErrorHelperHeader
  4. 339callsTryPeekNextNo
  5. 340callsErrorHelperHeader

TryPeekNextNo line 344, local

  1. 348callsCodeunit 310 No. Series PeekNextNo

TestExternalDocument line 352, local

  1. 358callsErrorHelperHeader

TestInventoryPostingClosed line 361, local

  1. 368callsErrorHelperHeader

TestGenPostingSetup line 371, local

  1. 378raisesOnBeforeTestGenPostingSetupIsHandled
  2. 388callsCheckGLAccount
  3. 390callsCheckGLAccount
  4. 394callsCheckGLAccount
  5. 398callsTable 27 Item IsInventoriableType
  6. 399callsCheckGLAccount
  7. 399callsTable 252 General Posting Setup GetCOGSAccount

TestVendorPostingGroup line 403, local

  1. 409callsCheckGLAccount

TestVATPostingSetup line 412, local

  1. 419callsCheckGLAccount

TestInventoryPostingSetup line 423, local

  1. 429raisesOnBeforeTestInventoryPostingSetupIsHandled
  2. 435callsCheckGLAccount

UnapplyEntries line 438, local

  1. 445callsFindVendLedgEntry
  2. 446callsTestIfAppliedCorrectly
  3. 450callsFindDetailedApplicationEntry
  4. 453callsCodeunit 227 VendEntry-Apply Posted Entries PostUnApplyVendor
  5. 454callsTestIfUnapplied