ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[EventRequest] - Table 39 "Purchase Line" in Function GetOverheadRateFCY - OnAfterGetQtyPerUOM

Open SPinkow opened this issue 6 years ago • 1 comments

Hi, could you please add a publisher OnAfterGetQtyPerUOM in Table39 in function GetOverheadRateFCY(). The code should look like the following after adding the publisher:

    local procedure GetOverheadRateFCY(): Decimal
    var
        Item: Record Item;
        QtyPerUOM: Decimal;
    begin
        if "Prod. Order No." = '' then
            QtyPerUOM := "Qty. per Unit of Measure"
        else begin
            GetItem(Item);
            QtyPerUOM := UOMMgt.GetQtyPerUnitOfMeasure(Item, "Unit of Measure Code");
        end;

        OnAfterGetQtyPerUOM(Rec, QtyPerUOM);

        exit(
          CurrExchRate.ExchangeAmtLCYToFCY(
            GetDate, "Currency Code", "Overhead Rate" * QtyPerUOM, PurchHeader."Currency Factor"));
    end;

    [IntegrationEvent(false, false)]
    local procedure OnAfterGetQtyPerUOM(PurchLine: Record "Purchase Line"; var QtyPerUom: Decimal)
    begin
    end;

Thanks for a consideration in the next CU.

SPinkow avatar Jul 06 '20 12:07 SPinkow

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 Jul 08 '20 06:07 bc-ghost