ALAppExtensions
ALAppExtensions copied to clipboard
[EventRequest] - Table 39 "Purchase Line" in Function GetOverheadRateFCY - OnAfterGetQtyPerUOM
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.
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.