microsoft / ALAppExtensions

Repository for collaboration on Microsoft AL application add-on and localization extensions for Microsoft Dynamics 365 Business Central.
MIT License
768 stars 610 forks source link

[EventRequest] Table 1294 "Applied Payment Entry" - OnAfterAppliedPaymentEntryFilterGetTotalAppliedAmountInclPmtDisc #26905

Closed vladsandortnp closed 1 month ago

vladsandortnp commented 1 month ago

Describe the request

Can you please add event OnAfterAppliedPaymentEntryFilterGetTotalAppliedAmountInclPmtDisc in procedure GetTotalAppliedAmountInclPmtDisc

Event Publisher would be:

[IntegrationEvent(false, false)] local procedure OnAfterAppliedPaymentEntryFilterGetTotalAppliedAmountInclPmtDisc(var AppliedPaymentEntry: Record "Applied Payment Entry"; AppliedPaymentEntryRec: Record "Applied Payment Entry") begin end;

The procedure would look like:

` procedure GetTotalAppliedAmountInclPmtDisc(IsDelete: Boolean): Decimal var AppliedPaymentEntry: Record "Applied Payment Entry"; TotalAmountIncludingPmtDisc: Decimal; 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."); OnAfterAppliedPaymentEntryFilterGetTotalAppliedAmountInclPmtDisc(AppliedPaymentEntry, Rec);

    if IsDelete then
        TotalAmountIncludingPmtDisc := 0
    else
        TotalAmountIncludingPmtDisc := "Applied Amount" - "Applied Pmt. Discount";
    ....
    ....

end;`

Additional context

We want to be able to apply additional filters to the record Internal work item: AB#542663

azure-boards[bot] commented 1 month ago

✅ Successfully linked to Azure Boards work item(s):

JesperSchulz commented 1 month ago

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: 22786.