ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Codeunit 23 - Item Jnl.-Post Batch - OnAfterPostLines

Open SchoKa opened this issue 7 years ago • 0 comments

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)

SchoKa avatar Mar 11 '19 13:03 SchoKa