Share via


Codeunit "Whse. Undo Quantity"

ID 7320
Namespace: Microsoft.Warehouse.History

Properties

Name Value
Permissions TableData "Whse. Item Entry Relation" = md, TableData "Posted Whse. Shipment Line" = rimd
TableNo Table Microsoft.Inventory.Journal."Item Journal Line"

Methods

InsertTempWhseJnlLine

procedure InsertTempWhseJnlLine(ItemJnlLine: Record "Item Journal Line", SourceType: Integer, SourceSubType: Integer, SourceNo: Code[20], SourceLineNo: Integer, RefDoc: Integer, var TempWhseJnlLine: Record "Warehouse Journal Line" temporary, var NextLineNo: Integer)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
SourceType Integer
SourceSubType Integer
SourceNo Code[20]
SourceLineNo Integer
RefDoc Integer
TempWhseJnlLine Table Microsoft.Warehouse.Journal."Warehouse Journal Line"
NextLineNo Integer

PostTempWhseJnlLine

procedure PostTempWhseJnlLine(var TempWhseJnlLine: Record "Warehouse Journal Line" temporary)

Parameters

Name Type Description
TempWhseJnlLine Table Microsoft.Warehouse.Journal."Warehouse Journal Line"

PostTempWhseJnlLineCache

procedure PostTempWhseJnlLineCache(var TempWhseJnlLine: Record "Warehouse Journal Line" temporary, var WhseJnlRegLine: Codeunit "Whse. Jnl.-Register Line")

Parameters

Name Type Description
TempWhseJnlLine Table Microsoft.Warehouse.Journal."Warehouse Journal Line"
WhseJnlRegLine Codeunit Microsoft.Warehouse.Journal."Whse. Jnl.-Register Line"

UndoPostedWhseRcptLine

procedure UndoPostedWhseRcptLine(var PostedWhseRcptLine: Record "Posted Whse. Receipt Line")

Parameters

Name Type Description
PostedWhseRcptLine Table Microsoft.Warehouse.History."Posted Whse. Receipt Line"

UndoPostedWhseShptLine

procedure UndoPostedWhseShptLine(var PostedWhseShptLine: Record "Posted Whse. Shipment Line")

Parameters

Name Type Description
PostedWhseShptLine Table Microsoft.Warehouse.History."Posted Whse. Shipment Line"

UpdateRcptSourceDocLines

procedure UpdateRcptSourceDocLines(var PostedWhseRcptLine: Record "Posted Whse. Receipt Line")

Parameters

Name Type Description
PostedWhseRcptLine Table Microsoft.Warehouse.History."Posted Whse. Receipt Line"

UpdateShptSourceDocLines

procedure UpdateShptSourceDocLines(var PostedWhseShptLine: Record "Posted Whse. Shipment Line")

Parameters

Name Type Description
PostedWhseShptLine Table Microsoft.Warehouse.History."Posted Whse. Shipment Line"

FindPostedWhseRcptLine

procedure FindPostedWhseRcptLine(var PostedWhseRcptLine: Record "Posted Whse. Receipt Line", UndoType: Integer, UndoID: Code[20], SourceType: Integer, SourceSubtype: Integer, SourceID: Code[20], SourceRefNo: Integer): Boolean

Parameters

Name Type Description
PostedWhseRcptLine Table Microsoft.Warehouse.History."Posted Whse. Receipt Line"
UndoType Integer
UndoID Code[20]
SourceType Integer
SourceSubtype Integer
SourceID Code[20]
SourceRefNo Integer

Returns

Type Description
Boolean

FindPostedWhseShptLine

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

Parameters

Name Type Description
PostedWhseShptLine Table Microsoft.Warehouse.History."Posted Whse. Shipment Line"
UndoType Integer
UndoID Code[20]
SourceType Integer
SourceSubtype Integer
SourceID Code[20]
SourceRefNo Integer

Returns

Type Description
Boolean

InsertPostedWhseShptLine

procedure InsertPostedWhseShptLine(OldPostedWhseShptLine: Record "Posted Whse. Shipment Line")

Parameters

Name Type Description
OldPostedWhseShptLine Table Microsoft.Warehouse.History."Posted Whse. Shipment Line"

Events

OnAfterPostTempWhseJnlLineCache

[IntegrationEvent(False,False)]
local procedure OnAfterPostTempWhseJnlLineCache(var TempWhseJnlLine: Record "Warehouse Journal Line" temporary)

Parameters

Name Type Description
TempWhseJnlLine Table Microsoft.Warehouse.Journal."Warehouse Journal Line"

OnAfterUndoPostedWhseRcptLine

[IntegrationEvent(False,False)]
local procedure OnAfterUndoPostedWhseRcptLine(var PostedWhseReceiptLine: Record "Posted Whse. Receipt Line")

Parameters

Name Type Description
PostedWhseReceiptLine Table Microsoft.Warehouse.History."Posted Whse. Receipt Line"

OnAfterUndoPostedWhseShptLine

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

Parameters

Name Type Description
PostedWhseShipmentLine Table Microsoft.Warehouse.History."Posted Whse. Shipment Line"

OnAfterUpdateWhseRequestRcpt

[IntegrationEvent(False,False)]
local procedure OnAfterUpdateWhseRequestRcpt(var PostedWhseReceiptLine: Record "Posted Whse. Receipt Line")

Parameters

Name Type Description
PostedWhseReceiptLine Table Microsoft.Warehouse.History."Posted Whse. Receipt Line"

OnAfterUpdateWhseRequestShpt

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

Parameters

Name Type Description
PostedWhseShipmentLine Table Microsoft.Warehouse.History."Posted Whse. Shipment Line"

OnBeforeGetWhseShptLineSpacing

[IntegrationEvent(False,False)]
local procedure OnBeforeGetWhseShptLineSpacing(OldPostedWhseShptLine: Record "Posted Whse. Shipment Line", var NewPostedWhseShptLine: Record "Posted Whse. Shipment Line", var LineSpacing: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
OldPostedWhseShptLine Table Microsoft.Warehouse.History."Posted Whse. Shipment Line"
NewPostedWhseShptLine Table Microsoft.Warehouse.History."Posted Whse. Shipment Line"
LineSpacing Integer
IsHandled Boolean

OnBeforeGetWhseRcptLineSpacing

[IntegrationEvent(False,False)]
local procedure OnBeforeGetWhseRcptLineSpacing(OldPostedWhseRcptLine: Record "Posted Whse. Receipt Line", var NewPostedWhseRcptLine: Record "Posted Whse. Receipt Line", var LineSpacing: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
OldPostedWhseRcptLine Table Microsoft.Warehouse.History."Posted Whse. Receipt Line"
NewPostedWhseRcptLine Table Microsoft.Warehouse.History."Posted Whse. Receipt Line"
LineSpacing Integer
IsHandled Boolean

OnBeforeFindPostedWhseRcptLine

[IntegrationEvent(False,False)]
local procedure OnBeforeFindPostedWhseRcptLine(var PostedWhseRcptLine: Record "Posted Whse. Receipt Line", UndoType: Integer, UndoID: Code[20], SourceType: Integer, SourceSubtype: Integer, SourceID: Code[20], SourceRefNo: Integer, var Ok: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
PostedWhseRcptLine Table Microsoft.Warehouse.History."Posted Whse. Receipt Line"
UndoType Integer
UndoID Code[20]
SourceType Integer
SourceSubtype Integer
SourceID Code[20]
SourceRefNo Integer
Ok Boolean
IsHandled Boolean

OnBeforeFindPostedWhseShptLine

[IntegrationEvent(False,False)]
local procedure OnBeforeFindPostedWhseShptLine(var PostedWhseShptLine: 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)

Parameters

Name Type Description
PostedWhseShptLine Table Microsoft.Warehouse.History."Posted Whse. Shipment Line"
UndoType Integer
UndoID Code[20]
SourceType Integer
SourceSubtype Integer
SourceID Code[20]
SourceRefNo Integer
Ok Boolean
IsHandled Boolean

OnBeforeOldPostedWhseRcptLineModify

[IntegrationEvent(False,False)]
local procedure OnBeforeOldPostedWhseRcptLineModify(var PostedWhseReceiptLine: Record "Posted Whse. Receipt Line")

Parameters

Name Type Description
PostedWhseReceiptLine Table Microsoft.Warehouse.History."Posted Whse. Receipt Line"

OnBeforePostTempWhseJnlLine

[IntegrationEvent(False,False)]
local procedure OnBeforePostTempWhseJnlLine(var TempWhseJnlLine: Record "Warehouse Journal Line" temporary)

Parameters

Name Type Description
TempWhseJnlLine Table Microsoft.Warehouse.Journal."Warehouse Journal Line"

OnBeforePostedWhseRcptLineInsert

[IntegrationEvent(False,False)]
local procedure OnBeforePostedWhseRcptLineInsert(var NewPostedWhseReceiptLine: Record "Posted Whse. Receipt Line", OldPostedWhseReceiptLine: Record "Posted Whse. Receipt Line", LineSpacing: Integer)

Parameters

Name Type Description
NewPostedWhseReceiptLine Table Microsoft.Warehouse.History."Posted Whse. Receipt Line"
OldPostedWhseReceiptLine Table Microsoft.Warehouse.History."Posted Whse. Receipt Line"
LineSpacing Integer

OnBeforePostedWhseShptLineInsert

[IntegrationEvent(False,False)]
local procedure OnBeforePostedWhseShptLineInsert(var NewPostedWhseShipmentLine: Record "Posted Whse. Shipment Line", OldPostedWhseShipmentLine: Record "Posted Whse. Shipment Line", LineSpacing: Integer)

Parameters

Name Type Description
NewPostedWhseShipmentLine Table Microsoft.Warehouse.History."Posted Whse. Shipment Line"
OldPostedWhseShipmentLine Table Microsoft.Warehouse.History."Posted Whse. Shipment Line"
LineSpacing Integer

OnBeforeTempWhseJnlLineInsert

[IntegrationEvent(False,False)]
local procedure OnBeforeTempWhseJnlLineInsert(var WarehouseJournalLine: Record "Warehouse Journal Line", WarehouseEntry: Record "Warehouse Entry", ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
WarehouseJournalLine Table Microsoft.Warehouse.Journal."Warehouse Journal Line"
WarehouseEntry Table Microsoft.Warehouse.Ledger."Warehouse Entry"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnBeforeUpdateWhseRequestShpt

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateWhseRequestShpt(var PostedWhseShipmentLine: Record "Posted Whse. Shipment Line", var IsHandled: Boolean)

Parameters

Name Type Description
PostedWhseShipmentLine Table Microsoft.Warehouse.History."Posted Whse. Shipment Line"
IsHandled Boolean

OnBeforeWhseRcptLineModify

[IntegrationEvent(False,False)]
local procedure OnBeforeWhseRcptLineModify(var WarehouseReceiptLine: Record "Warehouse Receipt Line", var PostedWhseReceiptLine: Record "Posted Whse. Receipt Line")

Parameters

Name Type Description
WarehouseReceiptLine Table Microsoft.Warehouse.Document."Warehouse Receipt Line"
PostedWhseReceiptLine Table Microsoft.Warehouse.History."Posted Whse. Receipt Line"

OnBeforeWhseShptLineModify

[IntegrationEvent(False,False)]
local procedure OnBeforeWhseShptLineModify(var WarehouseShipmentLine: Record "Warehouse Shipment Line", var PostedWhseShipmentLine: Record "Posted Whse. Shipment Line")

Parameters

Name Type Description
WarehouseShipmentLine Table Microsoft.Warehouse.Document."Warehouse Shipment Line"
PostedWhseShipmentLine Table Microsoft.Warehouse.History."Posted Whse. Shipment Line"

OnFindPostedWhseRcptLineOnAfterSetFilters

[IntegrationEvent(False,False)]
local procedure OnFindPostedWhseRcptLineOnAfterSetFilters(var PostedWhseReceiptLine: Record "Posted Whse. Receipt Line")

Parameters

Name Type Description
PostedWhseReceiptLine Table Microsoft.Warehouse.History."Posted Whse. Receipt Line"

OnFindPostedWhseShptLineOnAfterSetFilters

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

Parameters

Name Type Description
PostedWhseShipmentLine Table Microsoft.Warehouse.History."Posted Whse. Shipment Line"

OnAfterUpdateWhseRcptLine

[IntegrationEvent(False,False)]
local procedure OnAfterUpdateWhseRcptLine(var PostedWhseRcptLine: Record "Posted Whse. Receipt Line", var WhseRcptLine: Record "Warehouse Receipt Line")

Parameters

Name Type Description
PostedWhseRcptLine Table Microsoft.Warehouse.History."Posted Whse. Receipt Line"
WhseRcptLine Table Microsoft.Warehouse.Document."Warehouse Receipt Line"

OnInsertTempWhseJnlLineOnAfterWhseEntrySetFilters

[IntegrationEvent(False,False)]
local procedure OnInsertTempWhseJnlLineOnAfterWhseEntrySetFilters(ItemJnlLine: Record "Item Journal Line", SourceType: Integer, SourceSubType: Integer, SourceNo: Code[20], SourceLineNo: Integer, RefDoc: Integer, var WhseEntry: Record "Warehouse Entry")

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
SourceType Integer
SourceSubType Integer
SourceNo Code[20]
SourceLineNo Integer
RefDoc Integer
WhseEntry Table Microsoft.Warehouse.Ledger."Warehouse Entry"

OnInsertTempWhseJnlLineOnAfterTempWhseJnlLineInit

[IntegrationEvent(False,False)]
local procedure OnInsertTempWhseJnlLineOnAfterTempWhseJnlLineInit(var ItemJnlLine: Record "Item Journal Line", var WarehouseEntry: Record "Warehouse Entry", var WarehouseJournalLine: Record "Warehouse Journal Line")

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
WarehouseEntry Table Microsoft.Warehouse.Ledger."Warehouse Entry"
WarehouseJournalLine Table Microsoft.Warehouse.Journal."Warehouse Journal Line"

OnPostTempWhseJnlLineCacheOnBeforeRegisterWhseJnlLine

[IntegrationEvent(False,False)]
local procedure OnPostTempWhseJnlLineCacheOnBeforeRegisterWhseJnlLine(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary)

Parameters

Name Type Description
TempWarehouseJournalLine Table Microsoft.Warehouse.Journal."Warehouse Journal Line"

OnBeforeUpdateWhseRcptLine

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateWhseRcptLine(PostedWhseReceiptLine: Record "Posted Whse. Receipt Line", var IsHandled: Boolean)

Parameters

Name Type Description
PostedWhseReceiptLine Table Microsoft.Warehouse.History."Posted Whse. Receipt Line"
IsHandled Boolean

OnBeforeUpdateWhseShptLine

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateWhseShptLine(PostedWhseShipmentLine: Record "Posted Whse. Shipment Line", var IsHandled: Boolean)

Parameters

Name Type Description
PostedWhseShipmentLine Table Microsoft.Warehouse.History."Posted Whse. Shipment Line"
IsHandled Boolean

OnAfterIsShipmentLine

[IntegrationEvent(False,False)]
local procedure OnAfterIsShipmentLine(UndoType: Integer, var IsShipment: Boolean)

Parameters

Name Type Description
UndoType Integer
IsShipment Boolean

See also