Skip to content

Codeunit 99000822 "Mfg. Item Jnl.-Post Line" - 2 event changes #29549

@Pieterheinevdm

Description

@Pieterheinevdm

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    SCMGitHub request for SCM areaevent-requestRequest for adding an event

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions