Codeunit "Undo Prod. Posting Mgmt."

ID 99000843
Namespace: Microsoft.Manufacturing.Journal

Methods

ReverseProdItemLedgerEntry

procedure ReverseProdItemLedgerEntry(var ItemLedgerEntry: Record "Item Ledger Entry")

Parameters

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

ReverseCapacityLedgerEntry

procedure ReverseCapacityLedgerEntry(var CapacityLedgEntry: Record "Capacity Ledger Entry")

Parameters

Name Type Description
CapacityLedgEntry Table Microsoft.Manufacturing.Capacity."Capacity Ledger Entry"

Events

OnReverseConsumptionItemLedgerEntryOnBeforeValidateQuantity

[IntegrationEvent(False,False)]
local procedure OnReverseConsumptionItemLedgerEntryOnBeforeValidateQuantity(var ItemJournalLine: Record "Item Journal Line", ItemLedgerEntry: Record "Item Ledger Entry", var IsHandled: Boolean)

Parameters

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

OnCreateOutputReservationEntryOnBeforeInsert

[IntegrationEvent(False,False)]
local procedure OnCreateOutputReservationEntryOnBeforeInsert(var ReservationEntry: Record "Reservation Entry", ItemLedgerEntry: Record "Item Ledger Entry")

Parameters

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

OnReverseOutputCapacityLedgerEntryOnBeforeValidateQuantity

[IntegrationEvent(False,False)]
local procedure OnReverseOutputCapacityLedgerEntryOnBeforeValidateQuantity(var ItemJournalLine: Record "Item Journal Line", CapacityLedgerEntry: Record "Capacity Ledger Entry", var IsHandled: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
CapacityLedgerEntry Table Microsoft.Manufacturing.Capacity."Capacity Ledger Entry"
IsHandled Boolean

OnReverseOutputItemLedgerEntryOnBeforeValidateOutputQuantity

[IntegrationEvent(False,False)]
local procedure OnReverseOutputItemLedgerEntryOnBeforeValidateOutputQuantity(var ItemJournalLine: Record "Item Journal Line", ItemLedgerEntry: Record "Item Ledger Entry", var IsHandled: Boolean)

Parameters

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

OnReverseOutputCapacityLedgerEntryOnBeforeItemJnlPostLine

[IntegrationEvent(False,False)]
local procedure OnReverseOutputCapacityLedgerEntryOnBeforeItemJnlPostLine(var ItemJournalLine: Record "Item Journal Line", CapacityLedgerEntry: Record "Capacity Ledger Entry")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
CapacityLedgerEntry Table Microsoft.Manufacturing.Capacity."Capacity Ledger Entry"

OnReverseOutputItemLedgerEntryOnBeforeItemJnlPostLine

[IntegrationEvent(False,False)]
local procedure OnReverseOutputItemLedgerEntryOnBeforeItemJnlPostLine(var ItemJournalLine: Record "Item Journal Line", ItemLedgerEntry: Record "Item Ledger Entry", ProductionOrder: Record "Production Order")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ProductionOrder Table Microsoft.Manufacturing.Document."Production Order"

OnReverseConsumptionItemLedgerEntryOnBeforeItemJnlPostLine

[IntegrationEvent(False,False)]
local procedure OnReverseConsumptionItemLedgerEntryOnBeforeItemJnlPostLine(var ItemJournalLine: Record "Item Journal Line", ItemLedgerEntry: Record "Item Ledger Entry", ProductionOrder: Record "Production Order")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ProductionOrder Table Microsoft.Manufacturing.Document."Production Order"

OnReverseProdItemLedgerEntryOnAfterProcessItemLedgerEntry

[IntegrationEvent(False,False)]
local procedure OnReverseProdItemLedgerEntryOnAfterProcessItemLedgerEntry(ItemLedgerEntry: Record "Item Ledger Entry")

Parameters

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

OnReverseCapacityLedgerEntryOnAfterReverseOutputCapacityLedgerEntry

[IntegrationEvent(False,False)]
local procedure OnReverseCapacityLedgerEntryOnAfterReverseOutputCapacityLedgerEntry(CapacityLedgerEntry: Record "Capacity Ledger Entry")

Parameters

Name Type Description
CapacityLedgerEntry Table Microsoft.Manufacturing.Capacity."Capacity Ledger Entry"

OnAfterValidateProdOrder

[IntegrationEvent(False,False)]
local procedure OnAfterValidateProdOrder(ItemLedgerEntry: Record "Item Ledger Entry", ProdOrderLine: Record "Prod. Order Line")

Parameters

Name Type Description
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"

OnCreateConsumptionReservationEntryOnBeforeInsert

[IntegrationEvent(False,False)]
local procedure OnCreateConsumptionReservationEntryOnBeforeInsert(var ReservationEntry: Record "Reservation Entry", ItemLedgerEntry: Record "Item Ledger Entry")

Parameters

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

See also