ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Codeunit 1385 "Vendor Templ. Mgt." - OnBeforeModifyVendorApplyTemplate

Open aobsgit opened this issue 6 years ago • 1 comments

Hi

Could you please add an integration event in ApplyTemplate procedure.

OLD CODE

...
    Vendor."Block Payment Tolerance" := VendorTempl."Block Payment Tolerance";
    Vendor."Validate EU Vat Reg. No." := VendorTempl."Validate EU Vat Reg. No.";
    Vendor.Blocked := VendorTempl.Blocked;
    Vendor.Modify(true);
end;
...

NEW CODE

...
    Vendor."Block Payment Tolerance" := VendorTempl."Block Payment Tolerance";
    Vendor."Validate EU Vat Reg. No." := VendorTempl."Validate EU Vat Reg. No.";
    Vendor.Blocked := VendorTempl.Blocked;


>>>
OnBeforeModifyVendorApplyTemplate(Vendor,VendorTempl);
<<<

    Vendor.Modify(true);
end;
...

>>>
[IntegrationEvent(false, false)]
local procedure OnBeforeModifyVendorApplyTemplate(var Vendor: Record Vendor; VendorTempl: Record "Vendor 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