[Event Request] Codeunit 1012 - OnCodeOnAfterApplyItemTracking
In codeunit 1012 Job Jnl.-Post Line, function Code, please add the following event:
[…]
ELSE BEGIN
JobJnlLine2."Serial No." := ItemLedgEntry."Serial No.";
JobJnlLine2."Lot No." := ItemLedgEntry."Lot No.";
// >> NEW
OnCodeOnAfterApplyItemTracking(VAR JobJnlLine2,ItemLedgEntry,VAR JobLedgEntry2,VAR SkipJobLedgerEntry);
// << NEW
END;
[…]
Please check what to do with SkipJobLedgerEntry? We already have this just after, would it be sifficient to add more parameters to this event intead of adding new? OnBeforeJobLedgEntryInsert(JobLedgEntry,JobJnlLine2); JobLedgEntry.INSERT(TRUE);
@cosmo-skol Can you please check Alexander's suggestion?
Hello Mr. Yakunin, we need this event, because we change the parameter "SkipJobLedgerEntry" based on the field "JobLedgEntry2. "Quantity (Base)". P.S. I really like the restructuring of the function "Code", it's so much easier to read.
OK, will be done soon
Note: added as OnPostItemOnAfterApplyItemTracking