ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Codeunit 1012 - OnCodeOnAfterApplyItemTracking

Open NKarolak opened this issue 7 years ago • 5 comments

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;
[…]

NKarolak avatar Mar 14 '19 10:03 NKarolak

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);

AlexanderYakunin avatar Mar 20 '19 12:03 AlexanderYakunin

@cosmo-skol Can you please check Alexander's suggestion?

NKarolak avatar Mar 20 '19 12:03 NKarolak

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.

cosmo-skol avatar Mar 20 '19 12:03 cosmo-skol

OK, will be done soon

AlexanderYakunin avatar Mar 20 '19 13:03 AlexanderYakunin

Note: added as OnPostItemOnAfterApplyItemTracking

NKarolak avatar Mar 27 '19 10:03 NKarolak