[Event Request] Codeunit 23 - Item Jnl.-Post Batch - OnAfterPostLines
Hello AL-Team, we need the following publisher, to be able to post additional entries:
Function Code
… GLSetup.GET; PhysInvtCount := FALSE;
// Post lines LineCount := 0; OldEntryType := "Entry Type"; PostLines(ItemJnlLine,PhysInvtCountMgt);
// >> New OnAfterPostLines(ItemRegNo); // << New
// Copy register no. and current journal batch name to item journal IF NOT ItemReg.FINDLAST OR (ItemReg."No." <> ItemRegNo) THEN ItemRegNo := 0; IF NOT WhseReg.FINDLAST OR (WhseReg."No." <> WhseRegNo) THEN WhseRegNo := 0;
INIT;
"Line No." := ItemRegNo; IF "Line No." = 0 THEN "Line No." := WhseRegNo; …
Publisher definition currently used by us IncludeSender: false GlobaVarAccess: false LOCAL [IntegrationEvent] OnAfterPostLines(VAR ItemRegNo : Integer)