[Event Request] Codeunit 99000838 "Prod. Order Comp.-Reserve" - OnBeforeGetSourceValue
Please could we have the following event to allow us to get the correct prod order component line qty when allowing Inventory Put-aways for Component lines.
local procedure GetSourceValue(ReservEntry: Record "Reservation Entry"; var SourceRecRef: RecordRef; ReturnOption: Option "Net Qty. (Base)","Gross Qty. (Base)"): Decimal var ProdOrderComp: Record "Prod. Order Component"; IsHandled: Boolean; ReturnValue: Decimal begin OnBeforeGetSourceValue(ReservEntry,SourceRecRef,ReturnOption,ReturnValue,IsHandled); if IsHandled then exit(ReturnValue);
ProdOrderComp.Get(ReservEntry."Source Subtype", ReservEntry."Source ID", ReservEntry."Source Prod. Order Line", ReservEntry."Source Ref. No.");
SourceRecRef.GetTable(ProdOrderComp);
case ReturnOption of
ReturnOption::"Net Qty. (Base)":
exit(ProdOrderComp."Remaining Qty. (Base)");
ReturnOption::"Gross Qty. (Base)":
exit(ProdOrderComp."Expected Qty. (Base)");
end;
end;
[IntegrationEvent(false, false)]
local procedure OnBeforeGetSourceValue(ReservEntry: Record "Reservation Entry"; var SourceRecRef: RecordRef; ReturnOption: Option "Net Qty. (Base)","Gross Qty. (Base)";var ReturnValue: Decimal;var IsHandled: Boolean)
begin
end;
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.
Build ID: