Why do you need this change?
We added some custom fields to that table and need a possibility to fill them from the reconciliation lines.
Describe the request
Hello,
can you please add a new Event OnInsertRecFromBankAccReconciliationLineOnBeforeInsert in Procedure on Table 1251 "Text-to-Account Mapping" ?
procedure InsertRecFromBankAccReconciliationLine(BankAccReconciliationLine: Record "Bank Acc. Reconciliation Line")
var
TextToAccMapping: Record "Text-to-Account Mapping";
LastLineNo: Integer;
begin
.
.
.
SetSourceTypeFromReconcLine(BankAccReconciliationLine);
case "Bal. Source Type" of
"Bal. Source Type"::Customer,
"Bal. Source Type"::Vendor:
"Bal. Source No." := BankAccReconciliationLine."Account No.";
"Bal. Source Type"::"G/L Account":
begin
"Debit Acc. No." := BankAccReconciliationLine."Account No.";
"Credit Acc. No." := BankAccReconciliationLine."Account No.";
end;
end;
OnInsertRecFromBankAccReconciliationLineOnBeforeInsert(Rec, BankAccReconciliationLine);
if "Mapping Text" <> '' then
Insert();
end;
Reset();
Commit();
end;
PAGE.RunModal(PAGE::"Text-to-Account Mapping", Rec);
end;
[IntegrationEvent(false, false)]
local procedure OnInsertRecFromBankAccReconciliationLineOnBeforeInsert(var TexttoAccountMapping: Record "Text-to-Account Mapping"; BankAccReconciliationLine: Record "Bank Acc. Reconciliation Line")
begin
end;
Internal work item: AB#608822
Why do you need this change?
We added some custom fields to that table and need a possibility to fill them from the reconciliation lines.
Describe the request
Hello,
can you please add a new Event OnInsertRecFromBankAccReconciliationLineOnBeforeInsert in Procedure on Table 1251 "Text-to-Account Mapping" ?
Internal work item: AB#608822