ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Table 7321 "Warehouse Shipment Line" - "CheckSourceDocLineQty" - Existing Event "OnCheckSourceDocLineQtyOnCaseSourceType" - New Parameter "QuantityBase"

Open StHillmann opened this issue 6 years ago • 2 comments

Please add the local variable "QuantityBase" as new parameter to the existing event raiser and publisher "OnCheckSourceDocLineQtyOnCaseSourceType" in procedure "CheckSourceDocLineQty" of table 7321 "Warehouse Shipment Line".

The same as your code within the case, we need this variable to decide whether to throw a Fielderror.

OLD CODE:

    else
        OnCheckSourceDocLineQtyOnCaseSourceType(Rec, WhseQtyOutstandingBase, QtyOutstandingBase);
end;

NEW CODE:

    else
        OnCheckSourceDocLineQtyOnCaseSourceType(Rec, WhseQtyOutstandingBase, QtyOutstandingBase, QuantityBase);
end;

OLD PUBLISHER:

[IntegrationEvent(false, false)]
local procedure OnCheckSourceDocLineQtyOnCaseSourceType(var WarehouseShipmentLine: Record "Warehouse Shipment Line"; WhseQtyOutstandingBase: Decimal; QtyOutstandingBase: Decimal)
begin
end;

NEW PUBLISHER:

[IntegrationEvent(false, false)]
local procedure OnCheckSourceDocLineQtyOnCaseSourceType(var WarehouseShipmentLine: Record "Warehouse Shipment Line"; WhseQtyOutstandingBase: Decimal; QtyOutstandingBase: Decimal; QuantityBase: Decimal)
begin
end;

StHillmann avatar Mar 24 '20 10:03 StHillmann

Additionally, "QtyOutstandingBase" has to be "var" in the Event publisher in order to make the following standard code work!

StHillmann avatar Mar 24 '20 10:03 StHillmann

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 Mar 26 '20 13:03 bc-ghost