AL icon indicating copy to clipboard operation
AL copied to clipboard

Passing decimal as parameter is not handled Culture independent and leads to wrong result

Open StijnBt opened this issue 6 years ago • 1 comments

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 image image image

5. Versions:

  • AL Language: v6.1.350698
  • Business Central: W1 16.2 (Platform 16.0.13440.13772 + Application 16.2.13509.13779)

StijnBt avatar Oct 14 '20 15:10 StijnBt

We do not handle production issue in here. Looks like an application issue. image

kalberes avatar Oct 14 '20 15:10 kalberes