Codeunit 5815 Undo Sales Shipment Line

Base Application, Microsoft.Sales.History

src/Layers/W1/BaseApp/Sales/History/UndoSalesShipmentLine.Codeunit.al22 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

OnRun line 39, trigger

  1. 47raisesOnBeforeOnRunIsHandled
  2. 52callsHandleConfirmMessage
  3. 56callsCode
  4. 57callsCodeunit 7150 Update Item Analysis View UpdateAll

Code line 113, local

  1. 128raisesOnCodeOnAfterSalesShptLineSetFilters
  2. 136callsCheckSalesShptLine
  3. 139raisesOnAfterCheckSalesShipmentLines
  4. 144raisesOnCodeOnBeforeUndoLoop
  5. 147writesTable 32 Item Ledger Entry DeleteAll
  6. 150writesTable 6507 Item Entry Relation DeleteAll
  7. 156raisesOnCodeOnBeforeProcessItemShptEntryIsHandled
  8. 160callsCodeunit 7320 Whse. Undo Quantity FindPostedWhseShptLine
  9. 165callsPostItemJnlLine
  10. 167callsGetCorrectionLineNo
  11. 169callsInsertNewShipmentLine
  12. 170raisesOnAfterInsertNewShipmentLine
  13. 173callsCodeunit 7320 Whse. Undo Quantity UndoPostedWhseShptLine
  14. 176callsCodeunit 7320 Whse. Undo Quantity PostTempWhseJnlLineCache
  15. 178callsUndoPostATO
  16. 180callsUpdateOrderLine
  17. 182callsCodeunit 7320 Whse. Undo Quantity UpdateShptSourceDocLines
  18. 185callsUpdateBlanketOrder
  19. 187raisesOnBeforeDeleteRelatedItems
  20. 194raisesOnBeforeSalesShptLineModify
  21. 195writesTable 111 Sales Shipment Line Modify
  22. 196raisesOnAfterSalesShptLineModify
  23. 198callsUndoFinalizePostATO
  24. 202callsMakeInventoryAdjustment
  25. 204raisesOnAfterCode

RemoveDropShipmentApplicationWithPurchase line 207, local

  1. 217callsUnApplyDropShipment
  2. 219callsApplyFilterForItemTracking
  3. 226callsUnApplyDropShipment
  4. 230callsUndoPurchaseReceiptLineForDropShipment

UnApplyDropShipment line 242, local

  1. 247callsFindRelevantNewSalesShptLedgerEntryNo
  2. 249callsTable 339 Item Application Entry SetBaseLoadFields
  3. 253raisesOnUnApplyDropShipmentOnBeforeFindItemApplicationEntry
  4. 255callsCodeunit 22 Item Jnl.-Post Line UnApplyDropShipment

UndoPurchaseReceiptLineForDropShipment line 279, local

  1. 296callsCodeunit 5813 Undo Purchase Receipt Line SetHideDialog
  2. 297callsCodeunit 5813 Undo Purchase Receipt Line IsUndoSalesShipmentLineForDropShipment
  3. 298runsCodeunit 5813 Undo Purchase Receipt Line

CheckSalesShptLine line 301, local

  1. 310raisesOnBeforeCheckSalesShptLineIsHandled
  2. 317raisesOnCheckSalesShptLineOnBeforeHasInvoicedNotReturnedQuantityIsHandled
  3. 320callsHasInvoicedNotReturnedQuantity
  4. 325callsCodeunit 5817 Undo Posting Management TestSalesShptLine
  5. 328raisesOnCheckSalesShptLineOnBeforeCollectItemLedgEntriesIsHandled
  6. 330callsCodeunit 5817 Undo Posting Management CollectItemLedgEntries
  7. 332callsCodeunit 5817 Undo Posting Management CheckItemLedgEntries
  8. 335callsUndoInitPostATO
  9. 339raisesOnAfterCheckSalesShptLine

GetCorrectionLineNo line 347

  1. 354raisesOnBeforeGetCorrectionLineNoIsHandled
  2. 370raisesOnAfterGetCorrectionLineNo

PostItemJnlLine line 373, local

  1. 386raisesOnBeforePostItemJnlLineIsHandled
  2. 391callsGetCorrectionLineNo
  3. 415raisesOnAfterCopyItemJnlLineFromSalesShptIsHandled
  4. 419callsCodeunit 5817 Undo Posting Management CollectItemLedgEntries
  5. 423callsCodeunit 5817 Undo Posting Management AreAllItemEntriesCompletelyInvoiced
  6. 425callsCodeunit 7320 Whse. Undo Quantity InsertTempWhseJnlLine
  7. 429raisesOnPostItemJnlLineOnAfterInsertTempWhseJnlLine
  8. 431callsGetInvoicedShptEntries
  9. 433raisesOnPostItemJnlLineOnAfterCalcRemQtyBase
  10. 439raisesOnPostItemJnlLineOnBeforeRunItemJnlPostLineIsHandled
  11. 441runsCodeunit 22 Item Jnl.-Post Line
  12. 442raisesOnPostItemJnlLineOnAfterRunItemJnlPostLine
  13. 446raisesOnItemJnlPostLineOnAfterGetInvoicedShptEntriesOnBeforeExit
  14. 450callsCodeunit 5817 Undo Posting Management PostItemJnlLineAppliedToList
  15. 453raisesOnAfterPostItemJnlLine

InsertNewShipmentLine line 457, local

  1. 473raisesOnBeforeNewSalesShptLineInsert
  2. 474writesTable 111 Sales Shipment Line Insert
  3. 475raisesOnAfterNewSalesShptLineInsert
  4. 477callsRemoveDropShipmentApplicationWithPurchase
  5. 478callsInsertItemEntryRelation

UpdateOrderLine line 485

  1. 491raisesOnBeforeUpdateOrderLineIsHandled
  2. 496raisesOnUpdateOrderLineOnBeforeUpdateSalesLine
  3. 497callsCodeunit 5817 Undo Posting Management UpdateSalesLine
  4. 500raisesOnAfterUpdateSalesLine

UpdateBlanketOrder line 507

  1. 514raisesOnBeforeUpdateBlanketOrderIsHandled
  2. 533callsCodeunit 5402 Unit of Measure Management QtyRndPrecision
  3. 536raisesOnBeforeBlanketOrderInitOutstanding
  4. 537callsTable 37 Sales Line InitOutstanding
  5. 538writesTable 37 Sales Line Modify
  6. 540callsCodeunit 900 Assembly-Post UpdateBlanketATO

InsertItemEntryRelation line 544, local

  1. 551callsTable 6507 Item Entry Relation TransferFieldsSalesShptLine
  2. 552writesTable 6507 Item Entry Relation Insert

UndoInitPostATO line 556, local

  1. 560callsTable 111 Sales Shipment Line AsmToShipmentExists
  2. 561callsOpenATOProgressWindow
  3. 562callsCodeunit 900 Assembly-Post UndoInitPostATO

UndoPostATO line 567, local

  1. 571callsTable 111 Sales Shipment Line AsmToShipmentExists
  2. 572callsOpenATOProgressWindow
  3. 573callsCodeunit 900 Assembly-Post UndoPostATO

UndoFinalizePostATO line 578, local

  1. 582callsTable 111 Sales Shipment Line AsmToShipmentExists
  2. 583callsOpenATOProgressWindow
  3. 584callsCodeunit 900 Assembly-Post UndoFinalizePostATO
  4. 585callsSynchronizeATO

SynchronizeATO line 590, local

  1. 597callsTable 37 Sales Line AsmToOrderExists
  2. 599writesTable 900 Assembly Header Modify
  3. 600callsTable 37 Sales Line AutoAsmToOrder
  4. 602writesTable 900 Assembly Header Modify
  5. 604callsTable 37 Sales Line AutoAsmToOrder
  6. 606raisesOnSynchronizeATOOnBeforeModify
  7. 607writesTable 37 Sales Line Modify(true)

GetInvoicedShptEntries line 625

  1. 631callsTable 32 Item Ledger Entry SetTrackingFilterBlank
  2. 633raisesOnGetInvoicedShptEntriesOnAfterSetFilters

HasInvoicedNotReturnedQuantity line 637, local

  1. 654callsTable 339 Item Application Entry AppliedInbndEntryExists
  2. 658callsIsCancelled
  3. 670callsIsSalesInvoiceCancelled

IsSalesInvoiceCancelled line 702, local

  1. 707raisesOnAfterIsSalesInvoiceCancelled

MakeInventoryAdjustment line 710, local

  1. 714callsCodeunit 5894 Inventory Adjustment Handler SetJobUpdateProperties
  2. 715callsCodeunit 5894 Inventory Adjustment Handler MakeAutomaticInventoryAdjustment

HandleConfirmMessage line 727, local

  1. 729callsIsCancelledSalesInvoice

OnSetItemAdjmtPropertiesOnBeforeCheckModifyItem line 736, local

  1. 740callsTable 313 Inventory Setup UseLegacyPosting