Codeunit 5813 Undo Purchase Receipt Line

Base Application, Microsoft.Purchases.History

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

OnRun line 32, trigger

  1. 38raisesOnBeforeOnRunIsHandled
  2. 47callsCode

Code line 81, local

  1. 91raisesOnBeforeCode
  2. 93callsCheckPurchRcptLines
  3. 97raisesOnCodeOnBeforeLoopPurchRcptLine
  4. 101writesTable 32 Item Ledger Entry DeleteAll
  5. 104writesTable 6507 Item Entry Relation DeleteAll
  6. 109callsUndoDropShipmentPurchRcptLine
  7. 112raisesOnCodeOnBeforeFindPostedWhseRcptLine
  8. 115callsCodeunit 7320 Whse. Undo Quantity FindPostedWhseRcptLine
  9. 124callsPostItemJnlLine
  10. 126callsGetCorrectionLineNo
  11. 128callsInsertNewReceiptLine
  12. 129raisesOnAfterInsertNewReceiptLine
  13. 132callsCodeunit 7320 Whse. Undo Quantity UndoPostedWhseRcptLine
  14. 134callsUpdateOrderLine
  15. 136callsCodeunit 7320 Whse. Undo Quantity UpdateRcptSourceDocLines
  16. 139callsUpdateBlanketOrder
  17. 146raisesOnBeforePurchRcptLineModify
  18. 147writesTable 121 Purch. Rcpt. Line Modify
  19. 148raisesOnAfterPurchRcptLineModify
  20. 155raisesOnCodeOnBeforeMakeInventoryAdjustment
  21. 156callsMakeInventoryAdjustment
  22. 158callsCodeunit 7320 Whse. Undo Quantity PostTempWhseJnlLine
  23. 160raisesOnAfterCode

CheckPurchRcptLines line 163, local

  1. 168raisesOnBeforeCheckPurchRcptLinesIsHandled
  2. 174raisesOnCheckPurchRcptLinesAfterPurchRcptLineSetFilters
  3. 182callsCheckPurchRcptLine

CheckPurchRcptLine line 186, local

  1. 192raisesOnBeforeCheckPurchRcptLineIsHandled
  2. 199callsTable 121 Purch. Rcpt. Line IsProdOrder
  3. 201callsHasInvoicedNotReturnedQuantity
  4. 205callsCodeunit 5817 Undo Posting Management TestPurchRcptLine
  5. 207raisesOnCheckPurchRcptLineOnBeforeCollectItemLedgEntriesIsHandled
  6. 209callsTable 121 Purch. Rcpt. Line IsProdOrder
  7. 210callsCodeunit 5817 Undo Posting Management CollectOutputItemLedgEntriesForSubcontructingPurcReceiptLine
  8. 211callsCodeunit 5817 Undo Posting Management CheckItemLedgEntries
  9. 215callsCodeunit 5817 Undo Posting Management CollectItemLedgEntries
  10. 217callsCodeunit 5817 Undo Posting Management CheckItemLedgEntries

GetCorrectionLineNo line 222, local

  1. 229raisesOnBeforeGetCorrectionLineNoIsHandled

PostItemJnlLine line 247, local

  1. 266raisesOnBeforePostItemJnlLineIsHandled
  2. 273callsGetCorrectionLineNo
  3. 314callsTable 121 Purch. Rcpt. Line IsProdOrder
  4. 315raisesOnUpdateItemJnlLineProdOrderSubcontracting
  5. 318raisesOnAfterCopyItemJnlLineFromPurchRcptIsHandled
  6. 322callsCodeunit 7320 Whse. Undo Quantity InsertTempWhseJnlLine
  7. 325raisesOnPostItemJnlLineOnAfterInsertTempWhseJnlLine
  8. 329callsCodeunit 5817 Undo Posting Management TransferSourceValues
  9. 332raisesOnPostItemJnlLineOnBeforeUndoPostingIsHandled
  10. 336callsCodeunit 5817 Undo Posting Management PostItemJnlLine
  11. 339raisesOnPostItemJnlLineOnBeforeUndoValuePostingWithJobIsHandled
  12. 349callsTable 339 Item Application Entry GetInboundEntriesTheOutbndEntryAppliedTo
  13. 351callsTable 339 Item Application Entry GetOutboundEntriesAppliedToTheInboundEntry
  14. 354callsCodeunit 5817 Undo Posting Management FindItemReceiptApplication
  15. 355callsCodeunit 22 Item Jnl.-Post Line UndoValuePostingWithJob
  16. 358raisesOnPostItemJournalInboundItemEntryPostingWithJobIsHandled
  17. 360callsCodeunit 5817 Undo Posting Management FindItemShipmentApplication
  18. 361callsCodeunit 22 Item Jnl.-Post Line UndoValuePostingWithJob
  19. 365callsCodeunit 5817 Undo Posting Management ReapplyJobConsumption
  20. 372callsTable 121 Purch. Rcpt. Line IsProdOrder
  21. 373callsCodeunit 5817 Undo Posting Management CollectItemLedgEntries
  22. 376callsTable 121 Purch. Rcpt. Line IsProdOrder
  23. 377callsCodeunit 5402 Unit of Measure Management CalcBaseQty
  24. 380raisesOnPostItemJnlLineOnAfterCollectItemLedgEntriesIsHandled
  25. 385callsReapplyJobConsumptionFromApplyToEntryList
  26. 388callsCodeunit 5817 Undo Posting Management PostItemJnlLine
  27. 390callsCodeunit 5817 Undo Posting Management PostItemJnlLineAppliedToList

ReapplyJobConsumptionFromApplyToEntryList line 396, local

  1. 403raisesOnBeforeReapplyJobConsumptionFromApplyToEntryListIsHandled
  2. 411callsCodeunit 5801 Show Applied Entries FindAppliedEntries
  3. 414callsCodeunit 5817 Undo Posting Management ReapplyJobConsumption
  4. 417callsCodeunit 5817 Undo Posting Management ReapplyJobConsumption

InsertNewReceiptLine line 421, local

  1. 438raisesOnBeforeNewPurchRcptLineInsert
  2. 439writesTable 121 Purch. Rcpt. Line Insert
  3. 441raisesOnAfterNewPurchRcptLineInsert
  4. 443callsInsertItemEntryRelation

UpdateOrderLine line 446

  1. 452raisesOnBeforeUpdateOrderLineIsHandled
  2. 457raisesOnUpdateOrderLineOnBeforeUpdatePurchLine
  3. 458callsCodeunit 5817 Undo Posting Management UpdatePurchLine
  4. 459callsCodeunit 5817 Undo Posting Management UpdatePurchaseLineOverRcptQty
  5. 460raisesOnAfterUpdateOrderLine

UpdateBlanketOrder line 463

  1. 469raisesOnBeforeUpdateBlanketOrderIsHandled
  2. 486callsCodeunit 5402 Unit of Measure Management QtyRndPrecision
  3. 489raisesOnBeforeBlanketOrderInitOutstanding
  4. 490callsTable 39 Purchase Line InitOutstanding
  5. 491writesTable 39 Purchase Line Modify

InsertItemEntryRelation line 495, local

  1. 502callsTable 6507 Item Entry Relation TransferFieldsPurchRcptLine
  2. 503writesTable 6507 Item Entry Relation Insert

HasInvoicedNotReturnedQuantity line 507

  1. 526callsTable 339 Item Application Entry AppliedOutbndEntryExists
  2. 530callsIsCancelled

MakeInventoryAdjustment line 575, local

  1. 579callsCodeunit 5894 Inventory Adjustment Handler SetJobUpdateProperties
  2. 580callsCodeunit 5894 Inventory Adjustment Handler MakeAutomaticInventoryAdjustment

OnSetItemAdjmtPropertiesOnBeforeCheckModifyItem line 584, local

  1. 588callsTable 313 Inventory Setup UseLegacyPosting

UndoDropShipmentPurchRcptLine line 595, local

  1. 606callsFindSalesShipmentLine
  2. 608callsCodeunit 5815 Undo Sales Shipment Line SetHideDialog
  3. 609callsCodeunit 5815 Undo Sales Shipment Line SetCalledFromUndoPurchaseReceiptLine
  4. 610runsCodeunit 5815 Undo Sales Shipment Line

FindSalesShipmentLine line 613, local

  1. 644callsFindSalesShipmentLineByDropShipmentLink