Codeunit 5819 Undo Service Consumption Line

Base Application, Microsoft.Service.History

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

OnRun line 36, trigger

  1. 42raisesOnBeforeOnRunIsHandled
  2. 50callsCodeunit 27 Confirm Management GetResponseOrDefault
  3. 55callsCode

Code line 96, local

  1. 110callsCheckServShptLine
  2. 113callsCodeunit 5912 ServLedgEntries-Post InitServiceRegister
  3. 119writesTable 32 Item Ledger Entry DeleteAll
  4. 122writesTable 6507 Item Entry Relation DeleteAll
  5. 128callsCollectItemLedgerEntries
  6. 129callsPostItemJnlLine
  7. 135callsPostResourceJnlLine
  8. 136callsInsertCorrectiveShipmentLine
  9. 138callsCodeunit 5912 ServLedgEntries-Post ReverseCnsmServLedgEntries
  10. 140callsCodeunit 5912 ServLedgEntries-Post ReverseWarrantyEntry
  11. 142callsUpdateOrderLine
  12. 143callsUpdateServShptLine
  13. 144raisesOnCodeOnAfterUpdateServShptLine
  14. 147callsCodeunit 5912 ServLedgEntries-Post FinishServiceRegister
  15. 149callsMakeInventoryAdjustment
  16. 151callsCodeunit 7320 Whse. Undo Quantity PostTempWhseJnlLine
  17. 153raisesOnAfterCode

CheckServShptLine line 156, local

  1. 164raisesOnBeforeCheckServShptLineIsHandled
  2. 183callsCodeunit 6484 Serv. Undo Posting Mgt. TestServShptLine
  3. 185callsCodeunit 5817 Undo Posting Management CollectItemLedgEntries
  4. 187callsCodeunit 5817 Undo Posting Management CheckItemLedgEntries

CollectItemLedgerEntries line 191, local

  1. 196callsTable 5991 Service Shipment Line FilterPstdDocLnItemLedgEntries
  2. 197callsCodeunit 6503 Item Tracking Doc. Management CopyItemLedgerEntriesToTemp
  3. 198callsCodeunit 6503 Item Tracking Doc. Management RetrieveDocumentItemTracking

PostItemJnlLine line 203, local

  1. 215callsGetCorrectiveShptLineNoStep
  2. 217callsTable 83 Item Journal Line CopyDocumentFields
  3. 219callsTable 5990 Service Shipment Header CopyToItemJnlLine
  4. 220callsTable 5991 Service Shipment Line CopyToItemJnlLineUndo
  5. 227validatesTable 83 Item Journal Line Applies-from Entry
  6. 229raisesOnAfterCopyItemJnlLineFromServShpt
  7. 231callsCodeunit 7320 Whse. Undo Quantity InsertTempWhseJnlLine
  8. 236callsCodeunit 22 Item Jnl.-Post Line SetServUndoConsumption
  9. 237callsCodeunit 22 Item Jnl.-Post Line RunWithCheck
  10. 238raisesOnItemJnlPostLineOnAfteItemJnlPostLineOnBeforeExit
  11. 245writesTable 32 Item Ledger Entry DeleteAll
  12. 250writesTable 32 Item Ledger Entry Insert
  13. 252callsInsertNewReservationEntries
  14. 253callsPostItemJnlLineWithIT

PostResourceJnlLine line 258, local

  1. 265raisesOnBeforePostResourceJnlLineIsHandled
  2. 273callsTable 207 Res. Journal Line CopyDocumentFields
  3. 275callsTable 5990 Service Shipment Header CopyToResJournalLine
  4. 276callsTable 5991 Service Shipment Line CopyToResJournalLine
  5. 286raisesOnPostResourceJnlLineOnBeforeResJnlPostLine
  6. 287callsCodeunit 212 Res. Jnl.-Post Line RunWithCheck

PostItemJnlLineWithIT line 290, local

  1. 298callsGetCorrectiveShptLineNoStep
  2. 300callsTable 83 Item Journal Line CopyDocumentFields
  3. 303callsTable 5990 Service Shipment Header CopyToItemJnlLine
  4. 304callsTable 5991 Service Shipment Line CopyToItemJnlLineUndo
  5. 319callsCodeunit 6500 Item Tracking Management AdjustQuantityRounding
  6. 328raisesOnBeforePostItemJnlLineWithIT
  7. 330callsCodeunit 5817 Undo Posting Management CollectItemLedgEntries
  8. 333callsCodeunit 5817 Undo Posting Management PostItemJnlLineAppliedToList

InsertNewReservationEntries line 337, local

  1. 350callsTable 337 Reservation Entry CopyTrackingFromItemLedgEntry
  2. 362validatesTable 337 Reservation Entry Quantity (Base)
  3. 374callsTable 337 Reservation Entry UpdateItemTracking
  4. 376raisesOnBeforeReservEntryInsert
  5. 377writesTable 337 Reservation Entry Insert
  6. 379writesTable 337 Reservation Entry Insert
  7. 381callsCodeunit 99000831 Reservation Engine Mgt. UpdateOrderTracking

InsertNewTrackSpecifications line 384, local

  1. 392writesTable 32 Item Ledger Entry DeleteAll
  2. 393callsCollectItemLedgerEntries
  3. 396callsInsertOneNewTrackSpec
  4. 400callsTable 6507 Item Entry Relation CopyTrackingFromItemledgEntry
  5. 401raisesOnBeforeTempGlobalItemEntryRelationInsert
  6. 402writesTable 6507 Item Entry Relation Insert

InsertOneNewTrackSpec line 409, local

  1. 437validatesTable 336 Tracking Specification Quantity (Base)
  2. 438writesTable 336 Tracking Specification Insert

InsertCorrectiveShipmentLine line 459, local

  1. 464raisesOnBeforeInsertCorrectiveShipmentLine
  2. 466callsGetCorrectiveShptLineNoStep
  3. 481raisesOnInsertCorrectiveShipmentLineOnBeforeInsert
  4. 482writesTable 5991 Service Shipment Line Insert
  5. 484callsUpdateItemJnlLine
  6. 486callsInsertNewTrackSpecifications
  7. 487callsInsertItemEntryRelation

UpdateOrderLine line 491, local

  1. 496callsCodeunit 6484 Serv. Undo Posting Mgt. UpdateServLineCnsm
  2. 497raisesOnAfterUpdateOrderLine

UpdateServShptLine line 500, local

  1. 507writesTable 5991 Service Shipment Line Modify

InsertItemEntryRelation line 510, local

  1. 517callsTable 5991 Service Shipment Line TransferToItemEntryRelation
  2. 518writesTable 6507 Item Entry Relation Insert
  3. 520writesTable 6507 Item Entry Relation DeleteAll

UpdateItemJnlLine line 523, local

  1. 529writesTable 32 Item Ledger Entry Modify

MakeInventoryAdjustment line 533, local

  1. 539callsTable 313 Inventory Setup AutomaticCostAdjmtRequired
  2. 540callsCodeunit 5894 Inventory Adjustment Handler MakeInventoryAdjustment