Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow to order fractional units #101

Open
6 of 17 tasks
wvengen opened this issue Dec 17, 2013 · 2 comments
Open
6 of 17 tasks

allow to order fractional units #101

wvengen opened this issue Dec 17, 2013 · 2 comments
Assignees

Comments

@wvengen
Copy link
Member

wvengen commented Dec 17, 2013

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.

  • support non-integer amounts in data model
  • include ruby-units for unit computations + configure units
  • add subdivision to article edit screen
  • reintroduce edit boxes in member order screen
  • support fractional units in member order screen
  • check negative entry in member order @wvengen
  • show price/kg when sensible in member order and admin order screen (using helper) @wvengen
  • unit tests for the use of unit_divide (see also Get full test coverage (using Travis CI) foodcoops/foodsoft#120) @tg-x
  • fix any close order and distribute issues
  • integration test(s) for subdivided order @tg-x
  • make balancing screen work (might work already)
  • test that everything (still) really works ok

would be nice / need to do in the future:

@wvengen
Copy link
Member Author

wvengen commented Dec 17, 2013

this is mostly done, what remains is finishing unit and integration tests

@wvengen
Copy link
Member Author

wvengen commented May 14, 2014

This is stuck, by the way. May need a data-model redesign (see mails 1 and 2).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants