-
Notifications
You must be signed in to change notification settings - Fork 687
Description
Why do you need this change?
Microsoft is moving the event OnPostOutputOnBeforeInsertCostValueEntries from codeunit 22 to 99000822. This is a breaking change because of sender if changed from var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line" of var MfgItemJnlPostLine: Codeunit "Mfg. Item Jnl.-Post Line". With custom code we need to have access to the var ItemJnlPostLine to add extra postings
Describe the request
please add var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line" in codeunit codeunit 99000822 "Mfg. Item Jnl.-Post Line" to the two events: OnPostOutputOnBeforeInsertCostValueEntries and OnPostOutputOnAfterInsertCostValueEntries
Old:
[IntegrationEvent(true, false)]
local procedure OnPostOutputOnBeforeInsertCostValueEntries(var ItemJournalLine: Record "Item Journal Line"; var CapacityLedgerEntry: Record "Capacity Ledger Entry"; var ValuedQty: Decimal; var DirCostAmt: Decimal; var IndirCostAmt: Decimal)
[IntegrationEvent(false, false)]
local procedure OnPostOutputOnAfterInsertCostValueEntries(ItemJournalLine: Record "Item Journal Line"; var CapLedgEntry: Record "Capacity Ledger Entry"; CalledFromAdjustment: Boolean; PostToGL: Boolean)
New:
[IntegrationEvent(true, false)]
local procedure OnPostOutputOnBeforeInsertCostValueEntries(var ItemJournalLine: Record "Item Journal Line"; var CapacityLedgerEntry: Record "Capacity Ledger Entry"; var ValuedQty: Decimal; var DirCostAmt: Decimal; var IndirCostAmt: Decimal; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line")
[IntegrationEvent(false, false)]
local procedure OnPostOutputOnAfterInsertCostValueEntries(ItemJournalLine: Record "Item Journal Line"; var CapLedgEntry: Record "Capacity Ledger Entry"; CalledFromAdjustment: Boolean; PostToGL: Boolean; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line")
Internal work item: AB#617182