ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Codeunit 441 - OnBeforeSetSalesPrepaymentPct

Open StephenNorfolk-DC opened this issue 5 years ago • 1 comments

New event required on Codeunit 441 "Prepayment Mgt." (PrepaymentMgt.codeunit.al) OnBeforeSetSalesPrepaymentPct with IsHandled

    procedure SetSalesPrepaymentPct(var SalesLine: Record "Sales Line"; Date: Date)
    var
        Cust: Record Customer;
        SalesPrepaymentPct: Record "Sales Prepayment %";
        //<< NEW
        IsHandled: Boolean;
        //>> NEW
    begin
        //<< NEW
        OnBeforeSetSalesPrepaymentPct(SalesLine, Date, IsHandled);
        if IsHandled then
            exit;
        //>> NEW

        with SalesPrepaymentPct do begin
            if (SalesLine.Type <> SalesLine.Type::Item) or (SalesLine."No." = '') or
               (SalesLine."Document Type" <> SalesLine."Document Type"::Order)
            then

//...................//...................//...................//...................//

    //<< NEW
    [IntegrationEvent(false, false)]
    local procedure OnBeforeSetSalesPrepaymentPct(var SalesLine: Record "Sales Line"; Date: Date; var IsHandled: Boolean)
    begin
    end;
    //>> NEW

StephenNorfolk-DC avatar Mar 11 '21 11:03 StephenNorfolk-DC

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

JesperSchulz avatar Mar 26 '21 10:03 JesperSchulz