[EVENT REQUEST] - Table 274 Bank Acc. Reconciliation Line - Function IsTransactionPostedAndReconciled()
Describe the request
Hi together, could you please add the following:
- Changes in Function IsTransactionPostedAndReconciled
procedure IsTransactionPostedAndReconciled(): Boolean
var
PostedPaymentReconLine: Record "Posted Payment Recon. Line";
BankAccountStatementLine: Record "Bank Account Statement Line";
// Begin New Code
IsHandled: Boolean;
ReturnValue: Boolean;
// End New Code
begin
// Begin New Code
OnBeforeIsTransactionPostedAndReconciled(Rec, ReturnValue, IsHandled);
if IsHandled then begin
exit(ReturnValue);
end;
// End New Code
if "Transaction ID" <> '' then begin
PostedPaymentReconLine.SetRange("Bank Account No.", "Bank Account No.");
PostedPaymentReconLine.SetRange("Transaction ID", "Transaction ID");
PostedPaymentReconLine.SetRange(Reconciled, true);
if not PostedPaymentReconLine.IsEmpty() then
exit(true);
BankAccountStatementLine.SetRange("Bank Account No.", "Bank Account No.");
BankAccountStatementLine.SetRange("Transaction ID", "Transaction ID");
exit(not BankAccountStatementLine.IsEmpty);
end;
exit(false);
end;
- New Event
// Begin New Code
[IntegrationEvent(false, false)]
local procedure OnBeforeIsTransactionPostedAndReconciled(var Rec: Record "Bank Acc. Reconciliation Line"; var ReturnValue: Boolean; var IsHandled: Boolean)
begin
end;
// End New Code
Additional context
It is common that when importing account statements, e.g. payments to credit card companies always have the same transaction ID. In the standard version, this means that these lines are not imported and the user always has to check the imports for completeness and add missing lines manually. With the proposed event, the check can be changed so that these lines are also read in, thus eliminating the additional effort. This event is mission critical for the use of the standard! Internal work item: AB#527192
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: