[W1][Table][274][Bank Acc. Reconciliation Line] OnAppliedPmtEntryLoopGetAppliedPmtData event
Why do you need this change?
Dear Microsoft Team, I would like to request a new event, OnAppliedPmtEntryLoopGetAppliedPmtData, in table 274 'Bank Acc. Reconciliation Line'. This event will allow adding custom logic:
- In our solution, both of the tables 'Bank Acc. Reconciliation Line' and 'Applied Payment Entry' have custom fields that contain some client data.
- I need to populate the value of a custom field from one of these records to another on the application.
Describe the request
I would like to request the addition of the OnAppliedPmtEntryLoopGetAppliedPmtData event in the GetAppliedPmtData procedure of the table 274 'Bank Acc. Reconciliation Line'. This event is required to populate custom fields in the 'Bank Acc. Reconciliation Line' record, which are important for the client on the application. The values for these custom fields will be derived from the 'Applied Payment Entry' record.
This change is needed in BC25.
Proposed Event Code:
[W1][Table][274][Bank Acc. Reconciliation Line]
trigger OnAppliedPmtEntryLoopGetAppliedPmtData()
___
This event is needed to populate 'Bank Acc. Reconciliation Line' record's custom fields, which are important for the client on the application.
___
[IntegrationEvent(false, false)]
local procedure OnAppliedPmtEntryLoopGetAppliedPmtData(var Rec: "Bank Acc. Reconciliation Line"; AppliedPmtEntry: Record "Applied Payment Entry")
begin
end;
Proposed Event Placement:
procedure GetAppliedPmtData(var AppliedPmtEntry: Record "Applied Payment Entry"; var RemainingAmountAfterPosting: Decimal; var DifferenceStatementAmtToApplEntryAmount: Decimal; PmtAppliedToTxt: Text)
var
CurrRemAmtAfterPosting: Decimal;
begin
...
DifferenceStatementAmtToApplEntryAmount -= CurrRemAmtAfterPosting - AppliedPmtEntry."Applied Pmt. Discount";
OnAppliedPmtEntryLoopGetAppliedPmtData(Rec, AppliedPmtEntry);
until AppliedPmtEntry.Next() = 0;
...
end;
Internal work item: AB#597591
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.
Build ID: 38747.