ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Codeunit 32000000 "Ref. Payment Management" - CombineVendPmtOnBeforeFindRefPaymentExported

Open diveshbora opened this issue 6 years ago • 1 comments

A new Event Publisher is need in the Codeunit 32000000 "Ref. Payment Management".

Event: local procedure CombineVendPmtOnBeforeFindRefPaymentExported(var RefPmtExported: Record "Ref. Payment - Exported")

Code

procedure CombineVendPmt(PaymentType: Option Domestic,Foreign,SEPA)
    var
        RefPmtExported: Record "Ref. Payment - Exported";
        RefPmtExport1: Record "Ref. Payment - Exported";
        TempRefPmtBuffer: Record "Ref. Payment - Exported Buffer" temporary;
        Vendor: Record Vendor;
        LastLineNo: Integer;
    begin
        RefPmtExported.SetCurrentKey(Transferred, "Applied Payments");
        RefPmtExported.SetRange(Transferred, false);
        RefPmtExported.SetRange("Applied Payments", false);
        case PaymentType of
            PaymentType::Domestic:
                RefPmtExported.SetRange("Foreign Payment", false);
            PaymentType::Foreign:
                RefPmtExported.SetRange("Foreign Payment", true);
            PaymentType::SEPA:
                RefPmtExported.SetRange("SEPA Payment", true);
        end;
        CombineVendPmtOnBeforeFindRefPaymentExported(RefPmtExported);
        if RefPmtExported.FindSet then
            repeat
                RefPmtExported.TestField("Vendor No.");
                RefPmtExported.TestField("Payment Account");
                RefPmtExported.TestField("Payment Date");
                CheckCombineAllowance(RefPmtExported."Payment Account", PaymentType);
            until RefPmtExported.Next = 0;
    end

Need to apply / include additional filters to RefPmtExported record variable in the CombineVendPmt Procedure related to Combine SEPA Payments. The new event should be invoked before Finding the RefPmtExported record. Could you please add the requested Publisher?

diveshbora avatar Apr 23 '20 11:04 diveshbora

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. We will update this issue with information about availability.

bc-ghost avatar Apr 25 '20 11:04 bc-ghost