Description
Re-raising a logical issue:
We've had a similar problem before and I thought it to be solved, but the following logical issue just occurred to me again:
Using the received form for the oranges from our current small.en.seeds (supplier_order_unit: "Piece (12 kg)", group_order_unit: kg
):
When receiving an amount of 4 kg, the stored value will be displayed as 3.996 kg. That happens as the units_received
are stored in supplier_order_unit
(to be directly and safely comparable with units_to_order
which is obviously stored in the same unit) and 4 / 12 is 0.3333333... but only 3 decimals are stored. So when trying to convert it back for re-editing/display 0.333 * 12 turns out to be 3.996.
The quick fix would be to simply increase precision (to 6 e.g.), but obviously, if ratios are to high, the problem will still occur.
This is related to, but I believe not quite the same, as #1094.
Metadata
Metadata
Assignees
Type
Projects
Status