Open twothreenine opened 4 months ago
@twothreenine Good thinking. Where would you add those warnings?
It's obvious to put them in the release notes and documentation at least.
Maybe the best solution would be turning the one-click solutions (end order, send button) into one with a preview that includes the warning, if any values had to be rounded. But that would also be the solution requiring the highest effort.
from our discussion on #42:
We have to consider the use case of automatically sending the order to the supplier, either by end action or by clicking the button "send to supplier," but without taking a look at how the fax PDF looks like. Which means the order organizers might not be aware of such a problem.
I noticed the scale is limited to 3 decimals anyways:
https://github.com/foodcoopsat/foodsoft_hackathon/blob/de3eb39ae071d959d3c1776c279d1445cc7d9796/db/schema.rb#L368
Suggestions:
0.001 x g
with kg as supplier order unit, or due to conversation factor (e.g.1 x kg
with lb as supplier order unit) but I think that would be too much effort for that rare case