ALAppExtensions
ALAppExtensions copied to clipboard
[Event Request] table 1294 "Applied Payment Entry"
Please add events OnAfterDiscInfo, OnAfterGetAcceptedPmtTolerance, OnAfterIsAcceptedPmtDiscTolerance in Table Applied Payment Entry :
OnAfterDiscInfo
procedure GetDiscInfo(var PmtDiscDueDate: Date; var PmtDiscToleranceDate: Date; var RemPmtDiscPossible: Decimal)
begin
PmtDiscDueDate := 0D;
RemPmtDiscPossible := 0;
if "Account No." = '' then
exit;
if "Applies-to Entry No." = 0 then
exit;
case "Account Type" of
"Account Type"::Customer:
GetCustLedgEntryDiscInfo(PmtDiscDueDate, PmtDiscToleranceDate, RemPmtDiscPossible);
"Account Type"::Vendor:
GetVendLedgEntryDiscInfo(PmtDiscDueDate, PmtDiscToleranceDate, RemPmtDiscPossible);
end;
OnAfterDiscInfo(Rec, PmtDiscDueDate, PmtDiscToleranceDate, RemPmtDiscPossible);
end;
[IntegrationEvent(false, false)]
local procedure OnAfterDiscInfo(var AppliedPaymentEntry: Record "Applied Payment Entry"; var PmtDiscDueDate: Date; var PmtDiscToleranceDate: Date; var RemPmtDiscPossible: Decimal)
begin
end;
OnAfterGetAcceptedPmtTolerance
local procedure GetAcceptedPmtTolerance() Result: Decimal
begin
if ("Account No." = '') or ("Applies-to Entry No." = 0) then
exit(0);
case "Account Type" of
"Account Type"::Customer:
exit(GetCustLedgEntryPmtTolAmt);
"Account Type"::Vendor:
exit(GetVendLedgEntryPmtTolAmt);
end;
OnAfterGetAcceptedPmtTolerance(Rec, Result);
end;
[IntegrationEvent(false, false)]
local procedure OnAfterGetAcceptedPmtTolerance(AppliedPaymentEntry: Record "Applied Payment Entry"; var Result: Decimal)
begin
end;
OnAfterIsAcceptedPmtDiscTolerance
local procedure IsAcceptedPmtDiscTolerance() Result: Boolean
begin
if ("Account No." = '') or ("Applies-to Entry No." = 0) then
exit(false);
case "Account Type" of
"Account Type"::Customer:
exit(IsCustLedgEntryPmtDiscTol);
"Account Type"::Vendor:
exit(IsVendLedgEntryPmtDiscTol);
end;
OnAfterIsAcceptedPmtDiscTolerance(rec, Result);
end;
[IntegrationEvent(false, false)]
local procedure OnAfterIsAcceptedPmtDiscTolerance(AppliedPaymentEntry: Record "Applied Payment Entry"; var Result: Boolean)
begin
end;
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.