Closed twothreenine closed 6 months ago
@twothreenine It's true, there were some bugs in that, which I now fixed.
However a small deviation from your suggestion: I use group_order_granularity
instead of the hardcoded value of 1
as a threshold to determine, whether the background turns red or yellow. (After all the +/- buttons also use that.)
I use group_order_granularity instead of the hardcoded value of 1 as a threshold to determine, whether the background turns red or yellow. (After all the +/- buttons also use that.)
Hmm, so if the external order unit is 25 kg and the internal one is 0.001 kg, then it turns yellow only at 24.999 ?
However, if the external order unit is package (0.75 kg) and the internal order unit is 0.05 kg, then it would make more sense to let it turn yellow at 0.70 kg than having it always yellow. 🤔
I'd expect the following behavior: (= current behavior on upstream)
missing > 1
, the row is highlighted red0 < missing <= 1
, the row is highlighted yellowmissing = 0
andgroup order amount > 0
, the row is highlighted greenmissing = 0
andgroup order amount = 0
, the row is not highlightedAlternatively, you could also expect: (my suggestion)
group order amount = 0
, the row is not highlightedgroup order amount > 0
missing > 1
, the row is highlighted red0 < missing <= 1
, the row is highlighted yellowmissing = 0
, the row is highlighted greenBehavior in FS one:
Bread:
+
once (so that 0.5 is missing) it stays without highlighting, but should turn yellow.Bread rolls:
Beer:
Oyster mushrooms:
0.7 + 0
(should be0 + 0.7
). When I then increase it to 0.8, missing is 0.4 and it's highlighted red, but the amount says0.7 + 0.1
(should be0 + 0.8
)