When buying large packages, a foodcoop may want to subdivide it. Currently, that can be done by adjusting the unit, then manually recomputing the unit_quantity and price. This could be much easier when there would be a unit_divide field, indicating in what units members can order.
When buying large packages, a foodcoop may want to subdivide it. Currently, that can be done by adjusting the unit, then manually recomputing the unit_quantity and price. This could be much easier when there would be a unit_divide field, indicating in what units members can order.
This is work in progress on branch uicleanup-new-grouporder-subdivide.
ruby-units
for unit computations + configure unitsunit_divide
(see also foodcoops#120) @tg-xwould be nice / need to do in the future:
ruby-units
inArticle#convert_units