Table of Contents

KVSPSAUndo Job Shipment Line

Procedures

OnRun

procedure OnRun(Rec: Record "KVSPSAPosted Job Document Line")

FindPostedWhseShptLine(Record Posted Whse. Shipment Line, Integer, Code[20], Integer, Integer, Code[20], Integer) : Boolean

Summary: This procedure finds a posted warehouse shipment line based on the provided parameters.

procedure FindPostedWhseShptLine(var PostedWhseShipmentLine: Record "Posted Whse. Shipment Line"; UndoType: Integer; UndoID: Code[20]; SourceType: Integer; SourceSubtype: Integer; SourceID: Code[20]; SourceRefNo: Integer): Boolean

Parameters:

  • PostedWhseShipmentLine: Posted Whse. Shipment Line record to be found.
  • UndoType: Undo type to be used for condition.
  • UndoID: Undo ID to be used for finding the line.
  • SourceType: Source type to be used for finding the line.
  • SourceSubtype: Source subtype to be used for finding the line.
  • SourceID: Source ID to be used for finding the line.
  • SourceRefNo: Source reference number to be used for finding the line.

Returns: Return resulting whether the posted warehouse shipment line was found.

GetCorrectionLineNo(Record KVSPSAPosted Job Document Line) : Integer

Summary: This procedure finds suitable line number for a correction line based on the provided posted job document line.

procedure GetCorrectionLineNo(PostedJobDocumentLine2: Record "KVSPSAPosted Job Document Line"): Integer

Parameters:

  • PostedJobDocumentLine2: Posted Job Document Line to find the correction line for.

Returns: Line number for the correction line.

GetInvoicedShptEntries(Record KVSPSAPosted Job Document Line, Record Item Ledger Entry) : Boolean

Summary: This procedure find item ledger entries that match the specified posted job document line.

procedure GetInvoicedShptEntries(PostedJobDocumentLine2: Record "KVSPSAPosted Job Document Line"; var ItemLedgerEntry: Record "Item Ledger Entry"): Boolean

Parameters:

  • PostedJobDocumentLine2: Posted Job Document Line to find matching item ledger entries for.
  • ItemLedgerEntry: Item Ledger Entry record that matches the posted job document line.

Returns: True if matching item ledger entries are found, false otherwise.

SetHideDialog(Boolean) :

Summary: This procedure sets value of GlobalHideDialog.

procedure SetHideDialog(NewHideDialog: Boolean): 

Parameters:

  • NewHideDialog: New value for GlobalHideDialog.

UpdateOrderLine(Record KVSPSAPosted Job Document Line) :

Summary: This procedure updates Job Document Line after undo Posted Job Document Line.

procedure UpdateOrderLine(PostedJobDocumentLine2: Record "KVSPSAPosted Job Document Line"): 

Parameters:

  • PostedJobDocumentLine2: Posted Job Document Line for get Job Document Line.

Events

KVSPSAOnAfterCheckJobShptLine(Record KVSPSAPosted Job Document Line, Record Item Ledger Entry) :

[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterCheckJobShptLine(var PostedJobDocumentLine: Record "KVSPSAPosted Job Document Line"; var TempItemLedgerEntry: Record "Item Ledger Entry" temporary): 

KVSPSAOnAfterCode(Record KVSPSAPosted Job Document Line) :

[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterCode(var PostedJobDocumentLine: Record "KVSPSAPosted Job Document Line"): 

KVSPSAOnAfterCopyItemJnlLineFromJobShpt(Record Item Journal Line, Record KVSPSAPostedJobDocumentHeader, Record KVSPSAPosted Job Document Line, Record Warehouse Journal Line, Codeunit Whse. Undo Quantity) :

[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterCopyItemJnlLineFromJobShpt(var ItemJournalLine: Record "Item Journal Line"; PostedJobDocumentHeader: Record "KVSPSAPostedJobDocumentHeader"; PostedJobDocumentLine: Record "KVSPSAPosted Job Document Line"; var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var WhseUndoQuantity: Codeunit "Whse. Undo Quantity"): 

KVSPSAOnAfterGetCorrectionLineNo(Record KVSPSAPosted Job Document Line, Integer) :

[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterGetCorrectionLineNo(PostedJobDocumentLine: Record "KVSPSAPosted Job Document Line"; var Result: Integer): 

KVSPSAOnAfterInsertNewShipmentLine(Record KVSPSAPosted Job Document Line, Record Posted Whse. Shipment Line, Boolean, Integer, Integer) :

[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterInsertNewShipmentLine(var PostedJobDocumentLine: Record "KVSPSAPosted Job Document Line"; var PostedWhseShipmentLine: Record "Posted Whse. Shipment Line"; var PostedWhseShptLineFound: Boolean; DocLineNo: Integer; ItemShptEntryNo: Integer): 

KVSPSAOnAfterJobShptLineModify(Record KVSPSAPosted Job Document Line, Integer) :

[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterJobShptLineModify(var PostedJobDocumentLine: Record "KVSPSAPosted Job Document Line"; DocLineNo: Integer): 

KVSPSAOnAfterNewJobShptLineInsert(Record KVSPSAPosted Job Document Line, Record KVSPSAPosted Job Document Line) :

[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterNewJobShptLineInsert(var NewPostedJobDocumentLine: Record "KVSPSAPosted Job Document Line"; OldPostedJobDocumentLine: Record "KVSPSAPosted Job Document Line"): 

KVSPSAOnAfterPostItemJnlLine(Record Item Journal Line, Record KVSPSAPosted Job Document Line) :

[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterPostItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; var PostedJobDocumentLine: Record "KVSPSAPosted Job Document Line"): 

KVSPSAOnAfterUpdateJobDocumentLine(Record KVSPSAJob Document Line, Record KVSPSAPosted Job Document Line) :

[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterUpdateJobDocumentLine(var JobDocumentLine: Record "KVSPSAJob Document Line"; var PostedJobDocumentLine: Record "KVSPSAPosted Job Document Line"): 

KVSPSAOnBeforeCheckJobShptLine(Record KVSPSAPosted Job Document Line, Boolean, Boolean, Boolean) :

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeCheckJobShptLine(var PostedJobDocumentLine: Record "KVSPSAPosted Job Document Line"; var IsHandled: Boolean; var SkipTestFields: Boolean; var SkipUndoPosting: Boolean): 

KVSPSAOnBeforeFindPostedWhseShptLine(Record Posted Whse. Shipment Line, Integer, Code[20], Integer, Integer, Code[20], Integer, Boolean, Boolean) :

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeFindPostedWhseShptLine(var PostedWhseShipmentLine: Record "Posted Whse. Shipment Line"; UndoType: Integer; UndoID: Code[20]; SourceType: Integer; SourceSubtype: Integer; SourceID: Code[20]; SourceRefNo: Integer; var Ok: Boolean; var IsHandled: Boolean): 

KVSPSAOnBeforeGetCorrectionLineNo(Record KVSPSAPosted Job Document Line, Integer, Boolean) :

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeGetCorrectionLineNo(PostedJobDocumentLine: Record "KVSPSAPosted Job Document Line"; var Result: Integer; var IsHandled: Boolean): 

KVSPSAOnBeforeJobShptLineModify(Record KVSPSAPosted Job Document Line) :

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeJobShptLineModify(var PostedJobDocumentLine: Record "KVSPSAPosted Job Document Line"): 

KVSPSAOnBeforeNewJobShptLineInsert(Record KVSPSAPosted Job Document Line, Record KVSPSAPosted Job Document Line) :

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeNewJobShptLineInsert(var NewPostedJobDocumentLine: Record "KVSPSAPosted Job Document Line"; OldPostedJobDocumentLine: Record "KVSPSAPosted Job Document Line"): 

KVSPSAOnBeforeOnRun(Record KVSPSAPosted Job Document Line, Boolean, Boolean, Boolean) :

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeOnRun(var PostedJobDocumentLine: Record "KVSPSAPosted Job Document Line"; var IsHandled: Boolean; var SkipTypeCheck: Boolean; var HideDialog: Boolean): 

KVSPSAOnBeforePostItemJnlLine(Record KVSPSAPosted Job Document Line, Integer, Integer, Boolean, Record Item Ledger Entry, Record Item Entry Relation, Record Warehouse Journal Line, Integer) :

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforePostItemJnlLine(var PostedJobDocumentLine: Record "KVSPSAPosted Job Document Line"; var DocLineNo: Integer; var ItemLedgEntryNo: Integer; var IsHandled: Boolean; var TempGlobalItemLedgerEntry: Record "Item Ledger Entry" temporary; var TempGlobalItemEntryRelation: Record "Item Entry Relation" temporary; var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var NextLineNo: Integer): 

KVSPSAOnBeforeUpdateOrderLine(Record KVSPSAPosted Job Document Line, Boolean, Record Item Ledger Entry) :

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeUpdateOrderLine(var PostedJobDocumentLine: Record "KVSPSAPosted Job Document Line"; var IsHandled: Boolean; var TempGlobalItemLedgerEntry: Record "Item Ledger Entry" temporary): 

KVSPSAOnCheckJobShptLineOnBeforeCollectItemLedgEntries(Record KVSPSAPosted Job Document Line, Record Item Ledger Entry, Boolean) :

[IntegrationEvent(false, false)]
local procedure KVSPSAOnCheckJobShptLineOnBeforeCollectItemLedgEntries(PostedJobDocumentLine: Record "KVSPSAPosted Job Document Line"; var TempItemLedgerEntry: Record "Item Ledger Entry" temporary; var IsHandled: Boolean): 

KVSPSAOnCheckJobShptLineOnBeforeHasInvoicedNotReturnedQuantity(Record KVSPSAPosted Job Document Line, Boolean) :

[IntegrationEvent(false, false)]
local procedure KVSPSAOnCheckJobShptLineOnBeforeHasInvoicedNotReturnedQuantity(PostedJobDocumentLine: Record "KVSPSAPosted Job Document Line"; var IsHandled: Boolean): 

KVSPSAOnCodeOnAfterJobShptLineSetFilters(Record KVSPSAPosted Job Document Line) :

[IntegrationEvent(false, false)]
local procedure KVSPSAOnCodeOnAfterJobShptLineSetFilters(var PostedJobDocumentLine: Record "KVSPSAPosted Job Document Line"): 

KVSPSAOnCodeOnBeforeProcessItemShptEntry(Integer, Integer, Record KVSPSAPosted Job Document Line, Boolean) :

[IntegrationEvent(false, false)]
local procedure KVSPSAOnCodeOnBeforeProcessItemShptEntry(var ItemShptEntryNo: Integer; var DocLineNo: Integer; var PostedJobDocumentLine: Record "KVSPSAPosted Job Document Line"; var IsHandled: Boolean): 

KVSPSAOnCodeOnBeforeUndoLoop(Record KVSPSAPosted Job Document Line) :

[IntegrationEvent(false, false)]
local procedure KVSPSAOnCodeOnBeforeUndoLoop(var PostedJobDocumentLine: Record "KVSPSAPosted Job Document Line"): 

KVSPSAOnFindPostedWhseShptLineOnAfterSetFilters(Record Posted Whse. Shipment Line) :

[IntegrationEvent(false, false)]
local procedure KVSPSAOnFindPostedWhseShptLineOnAfterSetFilters(var PostedWhseShipmentLine: Record "Posted Whse. Shipment Line"): 

KVSPSAOnGetInvoicedShptEntriesOnAfterSetFilters(Record Item Ledger Entry, Record KVSPSAPosted Job Document Line) :

[IntegrationEvent(false, false)]
local procedure KVSPSAOnGetInvoicedShptEntriesOnAfterSetFilters(var ItemLedgerEntry: Record "Item Ledger Entry"; PostedJobDocumentLine: Record "KVSPSAPosted Job Document Line"): 

KVSPSAOnItemJnlPostLineOnAfterGetInvoicedShptEntriesOnBeforeExit(Record Item Journal Line, Record KVSPSAPosted Job Document Line) :

[IntegrationEvent(false, false)]
local procedure KVSPSAOnItemJnlPostLineOnAfterGetInvoicedShptEntriesOnBeforeExit(var ItemJournalLine: Record "Item Journal Line"; var PostedJobDocumentLine: Record "KVSPSAPosted Job Document Line"): 

KVSPSAOnPostItemJnlLineOnAfterCalcRemQtyBase(Decimal, Record Item Journal Line, Record KVSPSAPosted Job Document Line, Record Item Ledger Entry) :

[IntegrationEvent(false, false)]
local procedure KVSPSAOnPostItemJnlLineOnAfterCalcRemQtyBase(var RemQtyBase: Decimal; var ItemJournalLine: Record "Item Journal Line"; var PostedJobDocumentLine: Record "KVSPSAPosted Job Document Line"; var ItemLedgerEntryNotInvoiced: Record "Item Ledger Entry"): 

KVSPSAOnPostItemJnlLineOnAfterInsertTempWhseJnlLine(Record KVSPSAPosted Job Document Line, Record Item Journal Line, Record Warehouse Journal Line, Integer) :

[IntegrationEvent(false, false)]
local procedure KVSPSAOnPostItemJnlLineOnAfterInsertTempWhseJnlLine(PostedJobDocumentLine: Record "KVSPSAPosted Job Document Line"; var ItemJournalLine: Record "Item Journal Line"; var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; var NextLineNo: Integer): 

KVSPSAOnPostItemJnlLineOnAfterRunItemJnlPostLine(Record Item Journal Line) :

[IntegrationEvent(false, false)]
local procedure KVSPSAOnPostItemJnlLineOnAfterRunItemJnlPostLine(var ItemJournalLine: Record "Item Journal Line"): 

KVSPSAOnPostItemJnlLineOnBeforeRunItemJnlPostLine(Record Item Journal Line, Record Item Ledger Entry, Record KVSPSAPosted Job Document Line, Record KVSPSAPostedJobDocumentHeader, Boolean) :

[IntegrationEvent(false, false)]
local procedure KVSPSAOnPostItemJnlLineOnBeforeRunItemJnlPostLine(var ItemJournalLine: Record "Item Journal Line"; ItemLedgerEntryNotInvoiced: Record "Item Ledger Entry"; PostedJobDocumentLine: Record "KVSPSAPosted Job Document Line"; PostedJobDocumentHeader: Record "KVSPSAPostedJobDocumentHeader"; var IsHandled: Boolean): 

KVSPSAOnUpdateOrderLineOnBeforeUpdateJobDocumentLine(Record KVSPSAPosted Job Document Line, Record KVSPSAJob Document Line) :

[IntegrationEvent(false, false)]
local procedure KVSPSAOnUpdateOrderLineOnBeforeUpdateJobDocumentLine(var PostedJobDocumentLine: Record "KVSPSAPosted Job Document Line"; var JobDocumentLine: Record "KVSPSAJob Document Line"):