ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Codeunit 1381 "Customer Templ. Mgt." - OnBeforeModifyCustomerApplyTemplate

Open aobsgit opened this issue 6 years ago • 1 comments

Hi

Could you please add an integration event in ApplyTemplate procedure.

OLD CODE

    ...
    Customer."VAT Bus. Posting Group" := CustomerTempl."VAT Bus. Posting Group";
    Customer."Block Payment Tolerance" := CustomerTempl."Block Payment Tolerance";
    Customer."Validate EU Vat Reg. No." := CustomerTempl."Validate EU Vat Reg. No.";
    Customer.Blocked := CustomerTempl.Blocked;
    Customer.Modify(true);
end;
    ...

NEW CODE

    ...
    Customer."VAT Bus. Posting Group" := CustomerTempl."VAT Bus. Posting Group";
    Customer."Block Payment Tolerance" := CustomerTempl."Block Payment Tolerance";
    Customer."Validate EU Vat Reg. No." := CustomerTempl."Validate EU Vat Reg. No.";
    Customer.Blocked := CustomerTempl.Blocked;

    >>>
    OnBeforeModifyCustomerApplyTemplate(Customer,CustomerTempl);
    <<<

    Customer.Modify(true);
end;
    ...

>>>
[IntegrationEvent(false, false)]
local procedure OnBeforeModifyCustomerApplyTemplate(var Customer: Record Customer; CustomerTempl: Record "Customer Templ.")
begin
end;
<<<

aobsgit avatar Nov 17 '20 19:11 aobsgit

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.

bc-ghost avatar Nov 19 '20 07:11 bc-ghost