ALAppExtensions
ALAppExtensions copied to clipboard
[Event Request] Codeunit 13 - OnBeforeCopyFromGenJnlAllocation
Please add a new integration event OnBeforeCopyFromGenJnlAllocation in Codeunit 13.
LOCAL PROCEDURE PostAllocations@5(VAR AllocateGenJnlLine@1000 : Record 81;Reversing@1001 : Boolean);
...
IF "Account Type" IN ["Account Type"::Customer,"Account Type"::Vendor] THEN BEGIN
GenJnlLine2."Bill-to/Pay-to No." := "Bill-to/Pay-to No.";
GenJnlLine2."Ship-to/Order Address Code" := "Ship-to/Order Address Code";
END;
+ OnBeforeCopyFromGenJnlAllocation(GenJnlLine2,AllocateGenJnlLine,Reversing);
REPEAT
GenJnlLine2.CopyFromGenJnlAllocation(GenJnlAlloc);
GenJnlLine2."Shortcut Dimension 1 Code" := GenJnlAlloc."Shortcut Dimension 1 Code";
...
New integration event
[Integration]
LOCAL PROCEDURE OnBeforeCopyFromGenJnlAllocation@100000000(VAR GenJnlLine2@100000000 : Record 81;VAR AllocateGenJnlLine@100000001 : Record 81;VAR Reversing@100000002 : Boolean);
BEGIN
END;
Please explain why do you ask for IsHandled parameter if this is not used further?
I have talked with my colleague. You are correct. We do not need the IsHandled (for now). I have removed the parameter in the event request.