ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Codeunit 13 - OnBeforeCopyFromGenJnlAllocation

Open kwettermann opened this issue 7 years ago • 2 comments

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;

kwettermann avatar Apr 03 '19 08:04 kwettermann

Please explain why do you ask for IsHandled parameter if this is not used further?

AlexanderYakunin avatar Apr 15 '19 15:04 AlexanderYakunin

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.

kwettermann avatar Apr 16 '19 06:04 kwettermann