You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Supplier order units are always rendered in reference to the group order unit - even for exported data sent to the supplier (e.g. "order fax").
Expected behavior
Supplier order units should not be rendered in reference to the group order unit, if the rendered data is intended for external use (Group order unit is a field that's to be used inside of foodcoops only.) TODO: Unclear how to go about this. Options mentioned so far (see discussion in Display of supplier order units like "Crate [of bottles]" #66):
Always list all the ratios down to the first SI conversible unit. (Con: Leads to very long, overly verbose unit descriptions such as Pallet (100 box x 4 parcel x 10 package x 50 g))
Introduce a new user-configurable article version db field supplier reference unit that is used to determine in reference to which SI unit external exports should be done. (Con: Effort implementing it and continuous effort maintaining the fields content for foodcoop users)
Break down the supplier order unit to the first SI conversible unit. For deeply nested ratios this could lead to large numbers - e.g. Pallet (200000 g). To come by this issue one could use the user defined list of default units to find the unit with the smallest possible integer conversion and then render it as Pallet (200 kg) instead. (Con: Effort implementing; kind of unexpected that the list of default units should have an impact on how the data is exported.)
Current behavior
Expected behavior
TODO: Unclear how to go about this. Options mentioned so far (see discussion in Display of supplier order units like "Crate [of bottles]" #66):
Pallet (100 box x 4 parcel x 10 package x 50 g)
)supplier reference unit
that is used to determine in reference to which SI unit external exports should be done. (Con: Effort implementing it and continuous effort maintaining the fields content for foodcoop users)Pallet (200000 g)
. To come by this issue one could use the user defined list of default units to find the unit with the smallest possible integer conversion and then render it asPallet (200 kg)
instead. (Con: Effort implementing; kind of unexpected that the list of default units should have an impact on how the data is exported.)The text was updated successfully, but these errors were encountered: