Why do you need this change?
We need to return a custom ReturnOption quantity related to Alternate quantities/Catch weight and current event is at the correct position but lack the ability to handle the custom ReturnOption to return the value other than "Qty. (Base)" and "Gross Qty. (Base)".
Describe the request
Requested signature:
[IntegrationEvent(false, false)]
local procedure OnAfterGetSourceValue(var ReservationEntry: Record "Reservation Entry"; var SourceRecRef: RecordRef; ReturnOption: Option "Net Qty. (Base)","Gross Qty. (Base)"; var ReturnQty: Decimal)
begin
end;
local procedure GetSourceValue(ReservationEntry: Record "Reservation Entry"; var SourceRecRef: RecordRef; ReturnOption: Option "Net Qty. (Base)","Gross Qty. (Base)"): Decimal
var
ItemJournalLine: Record "Item Journal Line";
begin
ItemJournalLine.Get(ReservationEntry."Source ID", ReservationEntry."Source Batch Name", ReservationEntry."Source Ref. No.");
SourceRecRef.GetTable(ItemJournalLine);
case ReturnOption of
ReturnOption::"Net Qty. (Base)":
exit(ItemJournalLine."Quantity (Base)");
ReturnOption::"Gross Qty. (Base)":
exit(ItemJournalLine."Quantity (Base)");
end;
OnAfterGetSourceValue(ReservationEntry, SourceRecRef, ReturnOption, ReturnQty); <--- added parameter
end;
Internal work item: AB#635590
Why do you need this change?
We need to return a custom ReturnOption quantity related to Alternate quantities/Catch weight and current event is at the correct position but lack the ability to handle the custom ReturnOption to return the value other than "Qty. (Base)" and "Gross Qty. (Base)".
Describe the request
Requested signature:
Internal work item: AB#635590