ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] table 5902 "Service Line" - OnBeforeCalcInvDiscToInvoice

Open iltererdogan opened this issue 5 years ago • 1 comments

Hi,

Is it possible to add OnBeforeCalcInvDiscToInvoice publisher to service line?

    procedure InitQtyToInvoice()
    begin
        "Qty. to Invoice" := MaxQtyToInvoice;
        "Qty. to Invoice (Base)" := MaxQtyToInvoiceBase;
        "VAT Difference" := 0;
        // <<New
        OnBeforeCalcInvDiscToInvoice(Rec, CurrFieldNo);
        // >> New
        CalcInvDiscToInvoice;

        OnAfterInitQtyToInvoice(Rec, CurrFieldNo);
    end;

    // <<New
    [IntegrationEvent(false, false)]
    local procedure OnBeforeCalcInvDiscToInvoice(var ServLine: Record "Service Line"; CallingFieldNo: Integer)
    begin
    end;
    // >> New

iltererdogan avatar Nov 22 '21 14:11 iltererdogan

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.

JesperSchulz avatar Nov 29 '21 06:11 JesperSchulz