Share via


Codeunit "Undo Posting Management"

ID 5817
Namespace: Microsoft.Inventory

Properties

Name Value
Permissions TableData "Reservation Entry" = i

Methods

TestTransferShptLine

procedure TestTransferShptLine(TransferShptLine: Record "Transfer Shipment Line")

Parameters

Name Type Description
TransferShptLine Table Microsoft.Inventory.Transfer."Transfer Shipment Line"

TestSalesShptLine

procedure TestSalesShptLine(SalesShptLine: Record "Sales Shipment Line")

Parameters

Name Type Description
SalesShptLine Table Microsoft.Sales.History."Sales Shipment Line"

TestServShptLine

Obsolete

This element will become obsolete from version 25.0. Moved to codeunit Serv. Undo Posting Mgt.

[Obsolete(Moved to codeunit Serv. Undo Posting Mgt.,25.0)]
procedure TestServShptLine(ServShptLine: Record "Service Shipment Line")

Parameters

Name Type Description
ServShptLine Table Microsoft.Service.History."Service Shipment Line"

TestPurchRcptLine

procedure TestPurchRcptLine(PurchRcptLine: Record "Purch. Rcpt. Line")

Parameters

Name Type Description
PurchRcptLine Table Microsoft.Purchases.History."Purch. Rcpt. Line"

TestReturnShptLine

procedure TestReturnShptLine(ReturnShptLine: Record "Return Shipment Line")

Parameters

Name Type Description
ReturnShptLine Table Microsoft.Purchases.History."Return Shipment Line"

TestReturnRcptLine

procedure TestReturnRcptLine(ReturnRcptLine: Record "Return Receipt Line")

Parameters

Name Type Description
ReturnRcptLine Table Microsoft.Sales.History."Return Receipt Line"

TestAsmHeader

procedure TestAsmHeader(PostedAsmHeader: Record "Posted Assembly Header")

Parameters

Name Type Description
PostedAsmHeader Table Microsoft.Assembly.History."Posted Assembly Header"

TestAsmLine

procedure TestAsmLine(PostedAsmLine: Record "Posted Assembly Line")

Parameters

Name Type Description
PostedAsmLine Table Microsoft.Assembly.History."Posted Assembly Line"

RunTestAllTransactions

procedure RunTestAllTransactions(UndoType: Integer, UndoID: Code[20], UndoLineNo: Integer, SourceType: Integer, SourceSubtype: Integer, SourceID: Code[20], SourceRefNo: Integer)

Parameters

Name Type Description
UndoType Integer
UndoID Code[20]
UndoLineNo Integer
SourceType Integer
SourceSubtype Integer
SourceID Code[20]
SourceRefNo Integer

TestAllTransactions

procedure TestAllTransactions(UndoType: Integer, UndoID: Code[20], UndoLineNo: Integer, SourceType: Integer, SourceSubtype: Integer, SourceID: Code[20], SourceRefNo: Integer)

Parameters

Name Type Description
UndoType Integer
UndoID Code[20]
UndoLineNo Integer
SourceType Integer
SourceSubtype Integer
SourceID Code[20]
SourceRefNo Integer

CheckItemLedgEntries

procedure CheckItemLedgEntries(var TempItemLedgEntry: Record "Item Ledger Entry" temporary, LineRef: Integer)

Parameters

Name Type Description
TempItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
LineRef Integer

CheckItemLedgEntries

procedure CheckItemLedgEntries(var TempItemLedgEntry: Record "Item Ledger Entry" temporary, LineRef: Integer, InvoicedEntry: Boolean)

Parameters

Name Type Description
TempItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
LineRef Integer
InvoicedEntry Boolean

PostItemJnlLineAppliedToList

procedure PostItemJnlLineAppliedToList(ItemJnlLine: Record "Item Journal Line", var TempApplyToItemLedgEntry: Record "Item Ledger Entry" temporary, UndoQty: Decimal, UndoQtyBase: Decimal, var TempItemLedgEntry: Record "Item Ledger Entry" temporary, var TempItemEntryRelation: Record "Item Entry Relation" temporary)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
TempApplyToItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
UndoQty Decimal
UndoQtyBase Decimal
TempItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
TempItemEntryRelation Table Microsoft.Inventory.Item."Item Entry Relation"

PostItemJnlLineAppliedToList

procedure PostItemJnlLineAppliedToList(ItemJnlLine: Record "Item Journal Line", var TempApplyToItemLedgEntry: Record "Item Ledger Entry" temporary, UndoQty: Decimal, UndoQtyBase: Decimal, var TempItemLedgEntry: Record "Item Ledger Entry" temporary, var TempItemEntryRelation: Record "Item Entry Relation" temporary, InvoicedEntry: Boolean)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
TempApplyToItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
UndoQty Decimal
UndoQtyBase Decimal
TempItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
TempItemEntryRelation Table Microsoft.Inventory.Item."Item Entry Relation"
InvoicedEntry Boolean

AreAllItemEntriesCompletelyInvoiced

procedure AreAllItemEntriesCompletelyInvoiced(var TempApplyToItemLedgEntry: Record "Item Ledger Entry" temporary): Boolean

Parameters

Name Type Description
TempApplyToItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

Returns

Type Description
Boolean

CollectItemLedgEntries

procedure CollectItemLedgEntries(var TempItemLedgEntry: Record "Item Ledger Entry" temporary, SourceType: Integer, DocumentNo: Code[20], LineNo: Integer, BaseQty: Decimal, EntryRef: Integer)

Parameters

Name Type Description
TempItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
SourceType Integer
DocumentNo Code[20]
LineNo Integer
BaseQty Decimal
EntryRef Integer

UpdatePurchLine

procedure UpdatePurchLine(PurchLine: Record "Purchase Line", UndoQty: Decimal, UndoQtyBase: Decimal, var TempUndoneItemLedgEntry: Record "Item Ledger Entry" temporary)

Parameters

Name Type Description
PurchLine Table Microsoft.Purchases.Document."Purchase Line"
UndoQty Decimal
UndoQtyBase Decimal
TempUndoneItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

UpdateSalesLine

procedure UpdateSalesLine(SalesLine: Record "Sales Line", UndoQty: Decimal, UndoQtyBase: Decimal, var TempUndoneItemLedgEntry: Record "Item Ledger Entry" temporary)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
UndoQty Decimal
UndoQtyBase Decimal
TempUndoneItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

UpdateTransLine

procedure UpdateTransLine(TransferLine: Record "Transfer Line", UndoQty: Decimal, UndoQtyBase: Decimal, var TempUndoneItemLedgEntry: Record "Item Ledger Entry" temporary)

Parameters

Name Type Description
TransferLine Table Microsoft.Inventory.Transfer."Transfer Line"
UndoQty Decimal
UndoQtyBase Decimal
TempUndoneItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

UpdateServLine

Obsolete

This element will become obsolete from version 25.0. Moved to codeunit Serv. Undo Posting Mgt.

[Obsolete(Moved to codeunit Serv. Undo Posting Mgt.,25.0)]
procedure UpdateServLine(ServLine: Record "Service Line", UndoQty: Decimal, UndoQtyBase: Decimal, var TempUndoneItemLedgEntry: Record "Item Ledger Entry" temporary)

Parameters

Name Type Description
ServLine Table Microsoft.Service.Document."Service Line"
UndoQty Decimal
UndoQtyBase Decimal
TempUndoneItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

UpdateServLineCnsm

Obsolete

This element will become obsolete from version 25.0. Moved to codeunit Serv. Undo Posting Mgt.

[Obsolete(Moved to codeunit Serv. Undo Posting Mgt.,25.0)]
procedure UpdateServLineCnsm(var ServLine: Record "Service Line", UndoQty: Decimal, UndoQtyBase: Decimal, var TempUndoneItemLedgEntry: Record "Item Ledger Entry" temporary)

Parameters

Name Type Description
ServLine Table Microsoft.Service.Document."Service Line"
UndoQty Decimal
UndoQtyBase Decimal
TempUndoneItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

RevertPostedItemTracking

procedure RevertPostedItemTracking(var TempItemLedgEntry: Record "Item Ledger Entry" temporary, AvailabilityDate: Date, RevertInvoiced: Boolean)

Parameters

Name Type Description
TempItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
AvailabilityDate Date
RevertInvoiced Boolean

PostItemJnlLine

procedure PostItemJnlLine(var ItemJnlLine: Record "Item Journal Line")

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"

TransferSourceValues

procedure TransferSourceValues(var ItemJnlLine: Record "Item Journal Line", EntryNo: Integer)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
EntryNo Integer

ReapplyJobConsumption

procedure ReapplyJobConsumption(ItemRcptEntryNo: Integer)

Parameters

Name Type Description
ItemRcptEntryNo Integer

FindItemReceiptApplication

procedure FindItemReceiptApplication(var ItemApplnEntry: Record "Item Application Entry", ItemRcptEntryNo: Integer)

Parameters

Name Type Description
ItemApplnEntry Table Microsoft.Inventory.Ledger."Item Application Entry"
ItemRcptEntryNo Integer

FindItemShipmentApplication

procedure FindItemShipmentApplication(var ItemApplnEntry: Record "Item Application Entry", ItemShipmentEntryNo: Integer)

Parameters

Name Type Description
ItemApplnEntry Table Microsoft.Inventory.Ledger."Item Application Entry"
ItemShipmentEntryNo Integer

UpdatePurchaseLineOverRcptQty

procedure UpdatePurchaseLineOverRcptQty(PurchaseLine: Record "Purchase Line", OverRcptQty: Decimal)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
OverRcptQty Decimal

UpdateWarehouseRequest

procedure UpdateWarehouseRequest(SourceType: Integer, SourceSubtype: Integer, SourceNo: Code[20], LocationCode: Code[10])

Parameters

Name Type Description
SourceType Integer
SourceSubtype Integer
SourceNo Code[20]
LocationCode Code[10]

Events

OnAfterRevertPostedItemTracking

[IntegrationEvent(False,False)]
local procedure OnAfterRevertPostedItemTracking(var TempReservEntry: Record "Reservation Entry" temporary)

Parameters

Name Type Description
TempReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"

OnAfterUpdateTransLine

[IntegrationEvent(False,False)]
local procedure OnAfterUpdateTransLine(var TransferLine: Record "Transfer Line")

Parameters

Name Type Description
TransferLine Table Microsoft.Inventory.Transfer."Transfer Line"

OnAfterUpdateSalesLine

[IntegrationEvent(False,False)]
local procedure OnAfterUpdateSalesLine(var SalesLine: Record "Sales Line")

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"

OnAfterUpdatePurchline

[IntegrationEvent(False,False)]
local procedure OnAfterUpdatePurchline(var PurchLine: Record "Purchase Line")

Parameters

Name Type Description
PurchLine Table Microsoft.Purchases.Document."Purchase Line"

OnAfterUpdateServLine

Obsolete

This element will become obsolete from version 25.0. Moved to codeunit Serv. Undo Posting Mgt.

[Obsolete(Moved to codeunit Serv. Undo Posting Mgt.,25.0)]
[IntegrationEvent(False,False)]
local procedure OnAfterUpdateServLine(var ServLine: Record "Service Line")

Parameters

Name Type Description
ServLine Table Microsoft.Service.Document."Service Line"

OnBeforeAdjustQuantityRounding

[IntegrationEvent(False,False)]
local procedure OnBeforeAdjustQuantityRounding(var ItemJnlLine: Record "Item Journal Line", var NonDistrQuantity: Decimal, NonDistrQuantityBase: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
NonDistrQuantity Decimal
NonDistrQuantityBase Decimal
IsHandled Boolean

OnBeforeCheckMissingItemLedgers

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckMissingItemLedgers(var TempItemLedgEntry: Record "Item Ledger Entry" temporary, SourceType: Integer, DocumentNo: Code[20], LineNo: Integer, BaseQty: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
TempItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
SourceType Integer
DocumentNo Code[20]
LineNo Integer
BaseQty Decimal
IsHandled Boolean

OnBeforeCheckItemLedgEntries

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckItemLedgEntries(var TempItemLedgEntry: Record "Item Ledger Entry" temporary, LineRef: Integer, InvoicedEntry: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
TempItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
LineRef Integer
InvoicedEntry Boolean
IsHandled Boolean

OnBeforeCheckValueEntries

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckValueEntries(var TempItemLedgEntry: Record "Item Ledger Entry" temporary, LineRef: Integer, InvoicedEntry: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
TempItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
LineRef Integer
InvoicedEntry Boolean
IsHandled Boolean

OnBeforePostItemJnlLine

[IntegrationEvent(False,False)]
local procedure OnBeforePostItemJnlLine(var ItemJournalLine: Record "Item Journal Line", TempApplyToItemLedgEntry: Record "Item Ledger Entry" temporary)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
TempApplyToItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

OnBeforePostItemJnlLineForJob

[IntegrationEvent(False,False)]
local procedure OnBeforePostItemJnlLineForJob(var ItemJournalLine: Record "Item Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
IsHandled Boolean

OnBeforePostItemJnlLineAppliedToList

[IntegrationEvent(False,False)]
local procedure OnBeforePostItemJnlLineAppliedToList(ItemJnlLine: Record "Item Journal Line", var TempApplyToItemLedgEntry: Record "Item Ledger Entry" temporary, UndoQty: Decimal, UndoQtyBase: Decimal, var TempItemLedgEntry: Record "Item Ledger Entry" temporary, var TempItemEntryRelation: Record "Item Entry Relation" temporary, InvoicedEntry: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
TempApplyToItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
UndoQty Decimal
UndoQtyBase Decimal
TempItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
TempItemEntryRelation Table Microsoft.Inventory.Item."Item Entry Relation"
InvoicedEntry Boolean
IsHandled Boolean

OnBeforeReapplyJobConsumption

[IntegrationEvent(False,False)]
local procedure OnBeforeReapplyJobConsumption(ItemRcptEntryNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ItemRcptEntryNo Integer
IsHandled Boolean

OnBeforeRevertPostedItemTracking

[IntegrationEvent(False,False)]
local procedure OnBeforeRevertPostedItemTracking(var TempItemLedgerEntry: Record "Item Ledger Entry" temporary, AvailabilityDate: Date, RevertInvoiced: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
TempItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
AvailabilityDate Date
RevertInvoiced Boolean
IsHandled Boolean

OnBeforeRevertPostedItemTrackingFromPurchLine

[IntegrationEvent(False,False)]
local procedure OnBeforeRevertPostedItemTrackingFromPurchLine(PurchLine: Record "Purchase Line", var TempUndoneItemLedgEntry: Record "Item Ledger Entry" temporary, var IsHandled: Boolean)

Parameters

Name Type Description
PurchLine Table Microsoft.Purchases.Document."Purchase Line"
TempUndoneItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
IsHandled Boolean

OnBeforePurchLineReserveVerifyQuantity

[IntegrationEvent(False,False)]
local procedure OnBeforePurchLineReserveVerifyQuantity(PurchLine: Record "Purchase Line", xPurchLine: Record "Purchase Line", var IsHandled: Boolean)

Parameters

Name Type Description
PurchLine Table Microsoft.Purchases.Document."Purchase Line"
xPurchLine Table Microsoft.Purchases.Document."Purchase Line"
IsHandled Boolean

OnBeforeRevertPostedItemTrackingFromSalesLine

[IntegrationEvent(False,False)]
local procedure OnBeforeRevertPostedItemTrackingFromSalesLine(SalesLine: Record "Sales Line", var TempUndoneItemLedgEntry: Record "Item Ledger Entry" temporary, var IsHandled: Boolean)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
TempUndoneItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
IsHandled Boolean

OnBeforeSalesLineReserveVerifyQuantity

[IntegrationEvent(False,False)]
local procedure OnBeforeSalesLineReserveVerifyQuantity(SalesLine: Record "Sales Line", xSalesLine: Record "Sales Line", var IsHandled: Boolean)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
xSalesLine Table Microsoft.Sales.Document."Sales Line"
IsHandled Boolean

OnBeforeRevertPostedItemTrackingFromServiceLine

Obsolete

This element will become obsolete from version 25.0. Moved to codeunit Serv. Undo Posting Mgt.

[Obsolete(Moved to codeunit Serv. Undo Posting Mgt.,25.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeRevertPostedItemTrackingFromServiceLine(ServiceLine: Record "Service Line", var TempUndoneItemLedgEntry: Record "Item Ledger Entry" temporary, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
TempUndoneItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
IsHandled Boolean

OnBeforeServiceLineReserveVerifyQuantity

Obsolete

This element will become obsolete from version 25.0. Moved to codeunit Serv. Undo Posting Mgt.

[Obsolete(Moved to codeunit Serv. Undo Posting Mgt.,25.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeServiceLineReserveVerifyQuantity(ServiceLine: Record "Service Line", xServiceLine: Record "Service Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"
IsHandled Boolean

OnBeforeServiceLineCnsmReserveVerifyQuantity

Obsolete

This element will become obsolete from version 25.0. Moved to codeunit Serv. Undo Posting Mgt.

[Obsolete(Moved to codeunit Serv. Undo Posting Mgt.,25.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeServiceLineCnsmReserveVerifyQuantity(ServiceLine: Record "Service Line", xServiceLine: Record "Service Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
xServiceLine Table Microsoft.Service.Document."Service Line"
IsHandled Boolean

OnBeforeTestAllTransactions

[IntegrationEvent(False,False)]
local procedure OnBeforeTestAllTransactions(UndoType: Integer, UndoID: Code[20], UndoLineNo: Integer, SourceType: Integer, SourceSubtype: Integer, SourceID: Code[20], SourceRefNo: Integer)

Parameters

Name Type Description
UndoType Integer
UndoID Code[20]
UndoLineNo Integer
SourceType Integer
SourceSubtype Integer
SourceID Code[20]
SourceRefNo Integer

OnBeforeTestTransferShptLine

[IntegrationEvent(False,False)]
local procedure OnBeforeTestTransferShptLine(var TransferShipmentLine: Record "Transfer Shipment Line", var IsHandled: Boolean)

Parameters

Name Type Description
TransferShipmentLine Table Microsoft.Inventory.Transfer."Transfer Shipment Line"
IsHandled Boolean

OnBeforeTestPostedInvtPickLine

[IntegrationEvent(False,False)]
local procedure OnBeforeTestPostedInvtPickLine(UndoLineNo: Integer, SourceType: Integer, SourceSubtype: Integer, SourceID: Code[20], SourceRefNo: Integer, var IsHandled: Boolean, UndoType: Integer, UndoID: Code[20])

Parameters

Name Type Description
UndoLineNo Integer
SourceType Integer
SourceSubtype Integer
SourceID Code[20]
SourceRefNo Integer
IsHandled Boolean
UndoType Integer
UndoID Code[20]

OnBeforeTestPostedInvtPutAwayLine

[IntegrationEvent(False,False)]
local procedure OnBeforeTestPostedInvtPutAwayLine(UndoLineNo: Integer, SourceType: Integer, SourceSubtype: Integer, SourceID: Code[20], SourceRefNo: Integer, var IsHandled: Boolean, UndoType: Integer, UndoID: Code[20])

Parameters

Name Type Description
UndoLineNo Integer
SourceType Integer
SourceSubtype Integer
SourceID Code[20]
SourceRefNo Integer
IsHandled Boolean
UndoType Integer
UndoID Code[20]

OnBeforeTestPostedWhseShipmentLine

[IntegrationEvent(False,False)]
local procedure OnBeforeTestPostedWhseShipmentLine(UndoLineNo: Integer, SourceType: Integer, SourceSubtype: Integer, SourceID: Code[20], SourceRefNo: Integer, var IsHandled: Boolean, UndoType: Integer, UndoID: Code[20])

Parameters

Name Type Description
UndoLineNo Integer
SourceType Integer
SourceSubtype Integer
SourceID Code[20]
SourceRefNo Integer
IsHandled Boolean
UndoType Integer
UndoID Code[20]

OnBeforeTestRgstrdWhseActivityLine

[IntegrationEvent(False,False)]
local procedure OnBeforeTestRgstrdWhseActivityLine(UndoLineNo: Integer, SourceType: Integer, SourceSubtype: Integer, SourceID: Code[20], SourceRefNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
UndoLineNo Integer
SourceType Integer
SourceSubtype Integer
SourceID Code[20]
SourceRefNo Integer
IsHandled Boolean

OnBeforeTestWarehouseActivityLine

[IntegrationEvent(False,False)]
local procedure OnBeforeTestWarehouseActivityLine(UndoType: Option, UndoLineNo: Integer, SourceType: Integer, SourceSubtype: Integer, SourceID: Code[20], SourceRefNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
UndoType Option
UndoLineNo Integer
SourceType Integer
SourceSubtype Integer
SourceID Code[20]
SourceRefNo Integer
IsHandled Boolean

OnBeforeTestWarehouseEntry

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

Parameters

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

OnBeforeTestWarehouseReceiptLine

[IntegrationEvent(False,False)]
local procedure OnBeforeTestWarehouseReceiptLine(UndoLineNo: Integer, SourceType: Integer, SourceSubtype: Integer, SourceID: Code[20], SourceRefNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
UndoLineNo Integer
SourceType Integer
SourceSubtype Integer
SourceID Code[20]
SourceRefNo Integer
IsHandled Boolean

OnBeforeTestWarehouseShipmentLine

[IntegrationEvent(False,False)]
local procedure OnBeforeTestWarehouseShipmentLine(UndoLineNo: Integer, SourceType: Integer, SourceSubtype: Integer, SourceID: Code[20], SourceRefNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
UndoLineNo Integer
SourceType Integer
SourceSubtype Integer
SourceID Code[20]
SourceRefNo Integer
IsHandled Boolean

OnBeforeTestWhseWorksheetLine

[IntegrationEvent(False,False)]
local procedure OnBeforeTestWhseWorksheetLine(UndoLineNo: Integer, SourceType: Integer, SourceSubtype: Integer, SourceID: Code[20], SourceRefNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
UndoLineNo Integer
SourceType Integer
SourceSubtype Integer
SourceID Code[20]
SourceRefNo Integer
IsHandled Boolean

OnBeforeUndoValuePostingFromJob

[IntegrationEvent(False,False)]
local procedure OnBeforeUndoValuePostingFromJob(var ItemJournalLine: Record "Item Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
IsHandled Boolean

OnCheckItemLedgEntriesOnBeforeCheckTempItemLedgEntry

[IntegrationEvent(False,False)]
local procedure OnCheckItemLedgEntriesOnBeforeCheckTempItemLedgEntry(var TempItemLedgEntry: Record "Item Ledger Entry" temporary, var IsHandled: Boolean)

Parameters

Name Type Description
TempItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
IsHandled Boolean

OnPostItemJnlLineAppliedToListOnBeforeTempItemEntryRelationInsert

[IntegrationEvent(False,False)]
local procedure OnPostItemJnlLineAppliedToListOnBeforeTempItemEntryRelationInsert(var TempItemEntryRelation: Record "Item Entry Relation" temporary, ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
TempItemEntryRelation Table Microsoft.Inventory.Item."Item Entry Relation"
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnPostItemJnlLineAppliedToListOnAfterPostItemJnlLine

[IntegrationEvent(False,False)]
local procedure OnPostItemJnlLineAppliedToListOnAfterPostItemJnlLine(var ItemJournalLine: Record "Item Journal Line", TempApplyToItemLedgEntry: Record "Item Ledger Entry" temporary)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
TempApplyToItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

OnPostItemJnlLineAppliedToListOnAfterSetInvoicedQty

[IntegrationEvent(False,False)]
local procedure OnPostItemJnlLineAppliedToListOnAfterSetInvoicedQty(var ItemJournalLine: Record "Item Journal Line", TempApplyToItemLedgEntry: Record "Item Ledger Entry" temporary)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
TempApplyToItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

OnUpdateSalesLineOnBeforeInitOustanding

[IntegrationEvent(False,False)]
local procedure OnUpdateSalesLineOnBeforeInitOustanding(var SalesLine: Record "Sales Line", var UndoQty: Decimal, var UndoQtyBase: Decimal)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
UndoQty Decimal
UndoQtyBase Decimal

OnPostItemJnlLineOnBeforePostJobConsumption

[IntegrationEvent(False,False)]
local procedure OnPostItemJnlLineOnBeforePostJobConsumption(var ItemJnlLine2: Record "Item Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
ItemJnlLine2 Table Microsoft.Inventory.Journal."Item Journal Line"
IsHandled Boolean

OnPostItemJnlLineOnBeforePostItemJnlLineForJob

[IntegrationEvent(False,False)]
local procedure OnPostItemJnlLineOnBeforePostItemJnlLineForJob(var ItemJnlLine2: Record "Item Journal Line", var IsHandled: Boolean, var ItemJnlLine: Record "Item Journal Line", var PostJobConsumptionBeforePurch: Boolean)

Parameters

Name Type Description
ItemJnlLine2 Table Microsoft.Inventory.Journal."Item Journal Line"
IsHandled Boolean
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
PostJobConsumptionBeforePurch Boolean

OnBeforeTestWarehouseActivityLine2

[IntegrationEvent(False,False)]
local procedure OnBeforeTestWarehouseActivityLine2(var WarehouseActivityLine: Record "Warehouse Activity Line", var IsHandled: Boolean)

Parameters

Name Type Description
WarehouseActivityLine Table Microsoft.Warehouse.Activity."Warehouse Activity Line"
IsHandled Boolean

OnRevertPostedItemTrackingOnBeforeReservEntryInsert

[IntegrationEvent(False,False)]
local procedure OnRevertPostedItemTrackingOnBeforeReservEntryInsert(var ReservationEntry: Record "Reservation Entry", var TempItemLedgerEntry: Record "Item Ledger Entry" temporary)

Parameters

Name Type Description
ReservationEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
TempItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

OnTestWarehouseEntryOnAfterSetFilters

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

Parameters

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

OnUpdatePurchLineOnAfterSetQtyToShip

[IntegrationEvent(False,False)]
local procedure OnUpdatePurchLineOnAfterSetQtyToShip(var PurchLine: Record "Purchase Line")

Parameters

Name Type Description
PurchLine Table Microsoft.Purchases.Document."Purchase Line"

OnUpdatePurchLineOnAfterSetQtyToReceive

[IntegrationEvent(False,False)]
local procedure OnUpdatePurchLineOnAfterSetQtyToReceive(var PurchLine: Record "Purchase Line")

Parameters

Name Type Description
PurchLine Table Microsoft.Purchases.Document."Purchase Line"

OnUpdatePurchLineOnBeforePurchLineModify

[IntegrationEvent(False,False)]
local procedure OnUpdatePurchLineOnBeforePurchLineModify(var PurchLine: Record "Purchase Line")

Parameters

Name Type Description
PurchLine Table Microsoft.Purchases.Document."Purchase Line"

OnUpdateSalesLineOnBeforeSalesLineModify

[IntegrationEvent(False,False)]
local procedure OnUpdateSalesLineOnBeforeSalesLineModify(var SalesLine: Record "Sales Line")

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"

OnBeforeUpdateServLine

Obsolete

This element will become obsolete from version 25.0. Moved to codeunit Serv. Undo Posting Mgt.

[Obsolete(Moved to codeunit Serv. Undo Posting Mgt.,25.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateServLine(var ServiceLine: Record "Service Line", var UndoQty: Decimal, var UndoQtyBase: Decimal, var TempUndoneItemLedgEntry: Record "Item Ledger Entry" temporary, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
UndoQty Decimal
UndoQtyBase Decimal
TempUndoneItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
IsHandled Boolean

OnBeforeUpdatePurchLine

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdatePurchLine(PurchaseLine: Record "Purchase Line", var UndoQty: Decimal, var UndoQtyBase: Decimal, var TempUndoneItemLedgEntry: Record "Item Ledger Entry" temporary, var IsHandled: Boolean)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
UndoQty Decimal
UndoQtyBase Decimal
TempUndoneItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
IsHandled Boolean

OnAfterTestAllTransactions

[IntegrationEvent(False,False)]
local procedure OnAfterTestAllTransactions(UndoType: Integer, UndoID: Code[20], UndoLineNo: Integer, SourceType: Integer, SourceSubtype: Integer, SourceID: Code[20], SourceRefNo: Integer)

Parameters

Name Type Description
UndoType Integer
UndoID Code[20]
UndoLineNo Integer
SourceType Integer
SourceSubtype Integer
SourceID Code[20]
SourceRefNo Integer

OnBeforeUpdateTransLine

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateTransLine(TransLine: Record "Transfer Line", var UndoQty: Decimal, var UndoQtyBase: Decimal, var TempUndoneItemLedgEntry: Record "Item Ledger Entry" temporary, var IsHandled: Boolean)

Parameters

Name Type Description
TransLine Table Microsoft.Inventory.Transfer."Transfer Line"
UndoQty Decimal
UndoQtyBase Decimal
TempUndoneItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
IsHandled Boolean

OnBeforeUpdateSalesLine

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateSalesLine(SalesLine: Record "Sales Line", var UndoQty: Decimal, var UndoQtyBase: Decimal, var TempUndoneItemLedgEntry: Record "Item Ledger Entry" temporary, var IsHandled: Boolean)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
UndoQty Decimal
UndoQtyBase Decimal
TempUndoneItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
IsHandled Boolean

OnRevertPostedItemTrackingOnBeforeUpdateReservEntry

[IntegrationEvent(False,False)]
local procedure OnRevertPostedItemTrackingOnBeforeUpdateReservEntry(var TempItemLedgEntry: Record "Item Ledger Entry" temporary, var TrackingSpecification: Record "Tracking Specification", var IsHandled: Boolean)

Parameters

Name Type Description
TempItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
TrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
IsHandled Boolean

OnTestAllTransactionsOnBeforeTestWarehouseActivityLine

[IntegrationEvent(False,False)]
local procedure OnTestAllTransactionsOnBeforeTestWarehouseActivityLine(UndoType: Integer, UndoID: Code[20], UndoLineNo: Integer, SourceType: Integer, SourceSubtype: Integer, SourceID: Code[20], SourceRefNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
UndoType Integer
UndoID Code[20]
UndoLineNo Integer
SourceType Integer
SourceSubtype Integer
SourceID Code[20]
SourceRefNo Integer
IsHandled Boolean

OnUpdateSalesLineOnAfterUpdateWithWarehouseShipForReturnOrder

[IntegrationEvent(False,False)]
local procedure OnUpdateSalesLineOnAfterUpdateWithWarehouseShipForReturnOrder(var SalesLine: Record "Sales Line")

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"

OnBeforeTestRgstrdWhseActivityLine2

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

Parameters

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

OnShouldRevertBaseQtySign

[IntegrationEvent(False,False)]
local procedure OnShouldRevertBaseQtySign(SourceType: Integer, var RevertSign: Boolean)

Parameters

Name Type Description
SourceType Integer
RevertSign Boolean

OnSkipTestWarehouseShipmentLine

[IntegrationEvent(False,False)]
local procedure OnSkipTestWarehouseShipmentLine(UndoType: Integer, var SkipTest: Boolean)

Parameters

Name Type Description
UndoType Integer
SkipTest Boolean

OnRevertPostedItemTrackingOnBeforeGetTrackingSpecification

[IntegrationEvent(False,False)]
local procedure OnRevertPostedItemTrackingOnBeforeGetTrackingSpecification(var TempItemLedgerEntry: Record "Item Ledger Entry" temporary, var IsHandled: Boolean)

Parameters

Name Type Description
TempItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
IsHandled Boolean

OnUpdateDerivedTransferLineOnAfterTransferTracking

[IntegrationEvent(False,False)]
local procedure OnUpdateDerivedTransferLineOnAfterTransferTracking(var TransferLine: Record "Transfer Line", var TransferShipmentLine: Record "Transfer Shipment Line", var DerivedTransferLine: Record "Transfer Line")

Parameters

Name Type Description
TransferLine Table Microsoft.Inventory.Transfer."Transfer Line"
TransferShipmentLine Table Microsoft.Inventory.Transfer."Transfer Shipment Line"
DerivedTransferLine Table Microsoft.Inventory.Transfer."Transfer Line"

OnCollectOutputItemLedgEntriesForSubcontructingPurcReceiptLine

[IntegrationEvent(False,False)]
local procedure OnCollectOutputItemLedgEntriesForSubcontructingPurcReceiptLine(var TempItemLedgerEntry: Record "Item Ledger Entry" temporary, PurchRcptLine: Record "Purch. Rcpt. Line", var Result: Boolean)

Parameters

Name Type Description
TempItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
PurchRcptLine Table Microsoft.Purchases.History."Purch. Rcpt. Line"
Result Boolean

See also