Closed RichardPostborg closed 3 years ago
Please always put the full detailed signature of the requested events and the parameters passed in the call. You help us implementing the requests faster when your request contains AL code copied from VSCode instead of screenshots.
Here the code is // indicates start / end.
local procedure AddOrUpdateECLLine(EUVATEntries: Query "EU VAT Entries")
var
ECSLVATReportLine: Record "ECSL VAT Report Line";
isHandled: Boolean;
begin
// ->
OnBeforeAddUpdateECLLine(EUVATEntries, ECSLVATReportLine, isHandled);
if isHandled then
exit;
// <-
GetECLLine(ECSLVATReportLine, EUVATEntries);
ECSLVATReportLine."Total Value Of Supplies" += EUVATEntries.Base;
AddToRepLineRelation(EUVATEntries, ECSLVATReportLine);
ECSLVATReportLine.Modify(true);
end;
and the publisher itself
// ->
[IntegrationEvent(false, false)]
local procedure OnBeforeAddUpdateECLLine(EUVATEntries: Query "EU VAT Entries"; var ECSLVATReportLine: Record "ECSL VAT Report Line"; isHandled: Boolean)
begin
end;
// <-
Best regards
Richard
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. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
We would like to be able to adjust lines and this could be dione by adding a event request in the Procedure AddOrUpdateECLLine with the IsHandled trigger to exit.
and the trigger itself (NOTE that ECSLVATReportLine and IsHandled is VAR declared
Best regard
Richard