Can you please add event OnAfterAppliedPaymentEntryFilterGetNoOfAppliedEntries in procedure GetNoOfAppliedEntries
Event Publisher would be
[IntegrationEvent(false, false)] local procedure OnAfterAppliedPaymentEntryFiltersGetNoOfAppliedEntries(var AppliedPaymentEntry: Record "Applied Payment Entry"; AppliedPaymentEntryRec: Record "Applied Payment Entry") begin end;
The procedure would look like:
` local procedure GetNoOfAppliedEntries(IsDelete: Boolean): Decimal
var
AppliedPaymentEntry: Record "Applied Payment Entry";
begin
AppliedPaymentEntry.SetRange("Statement Type", "Statement Type");
AppliedPaymentEntry.SetRange("Statement No.", "Statement No.");
AppliedPaymentEntry.SetRange("Statement Line No.", "Statement Line No.");
AppliedPaymentEntry.SetRange("Bank Account No.", "Bank Account No.");
AppliedPaymentEntry.SetRange("Account Type", "Account Type");
AppliedPaymentEntry.SetRange("Account No.", "Account No.");
AppliedPaymentEntry.SetFilter("Applies-to Entry No.", '<>%1', "Applies-to Entry No.");
OnAfterAppliedPaymentEntryFiltersGetNoOfAppliedEntries(AppliedPaymentEntry, Rec);
if IsDelete then
exit(AppliedPaymentEntry.Count);
exit(AppliedPaymentEntry.Count + 1);
end;`
Additional context
We want to be able to apply additional filters to the record
Internal work item: AB#542665
Describe the request
Can you please add event OnAfterAppliedPaymentEntryFilterGetNoOfAppliedEntries in procedure GetNoOfAppliedEntries
Event Publisher would be
[IntegrationEvent(false, false)] local procedure OnAfterAppliedPaymentEntryFiltersGetNoOfAppliedEntries(var AppliedPaymentEntry: Record "Applied Payment Entry"; AppliedPaymentEntryRec: Record "Applied Payment Entry") begin end;
The procedure would look like:
` local procedure GetNoOfAppliedEntries(IsDelete: Boolean): Decimal var AppliedPaymentEntry: Record "Applied Payment Entry"; begin AppliedPaymentEntry.SetRange("Statement Type", "Statement Type"); AppliedPaymentEntry.SetRange("Statement No.", "Statement No."); AppliedPaymentEntry.SetRange("Statement Line No.", "Statement Line No."); AppliedPaymentEntry.SetRange("Bank Account No.", "Bank Account No."); AppliedPaymentEntry.SetRange("Account Type", "Account Type"); AppliedPaymentEntry.SetRange("Account No.", "Account No."); AppliedPaymentEntry.SetFilter("Applies-to Entry No.", '<>%1', "Applies-to Entry No."); OnAfterAppliedPaymentEntryFiltersGetNoOfAppliedEntries(AppliedPaymentEntry, Rec);
Additional context
We want to be able to apply additional filters to the record Internal work item: AB#542665