Codeunit 6256 Sust. Item Post Subscriber

Sustainability, Microsoft.Sustainability.Posting

Source AL, 176 lines

src/Apps/W1/Sustainability/app/src/Posting/SustItemPostSubscriber.Codeunit.allines 11 to 26 of 176, Copyright (c) Microsoft Corporation. MIT

codeunit 6256 "Sust. Item Post Subscriber"{    [EventSubscriber(ObjectType::Codeunit, Codeunit::"Item Jnl.-Post Line", 'OnAfterInsertValueEntry', '', false, false)]    local procedure OnBeforeInsertValueEntry(ItemJournalLine: Record "Item Journal Line"; var ValueEntry: Record "Value Entry"; var ItemLedgerEntry: Record "Item Ledger Entry")    begin        if CanCreateSustValueEntry(ItemJournalLine, ValueEntry) then            PostSustainabilityValueEntry(ItemJournalLine, ValueEntry, ItemLedgerEntry);    end;    [EventSubscriber(ObjectType::Codeunit, Codeunit::"Item Jnl.-Post Line", 'OnAfterInsertCapValueEntry', '', false, false)]    local procedure OnAfterInsertCapValueEntry(ItemJnlLine: Record "Item Journal Line"; var ValueEntry: Record "Value Entry")    var        ItemLedgerEntry: Record "Item Ledger Entry";    begin        if CanCreateSustValueEntry(ItemJnlLine, ValueEntry) then            PostSustainabilityValueEntry(ItemJnlLine, ValueEntry, ItemLedgerEntry);

All 176 lines