AL
AL copied to clipboard
Passing decimal as parameter is not handled Culture independent and leads to wrong result
Describe the bug Using both CalcQtyFromBase functions in codeunit 5402 "Unit of Measure Management" results in a wrong calculated result due to wrong incoming value for the QtyBase parameter. Assumption The QtyBase is not handled Culture independent.
To Reproduce Steps and to reproduce the behavior: See below
NewQuantity := UnitofMeasureManagement.CalcQtyFromBase(RequisitionLine."Quantity (Base)", ItemUnitofMeasure."Qty. per Unit of Measure");
Expected behavior Calculation should be handled Culture independent.
Screenshots

5. Versions:
- AL Language: v6.1.350698
- Business Central: W1 16.2 (Platform 16.0.13440.13772 + Application 16.2.13509.13779)
We do not handle production issue in here. Looks like an application issue.
