uppsaladatavetare / foobar-api

The backend of the FooBar kiosk and inventory system.
MIT License
12 stars 6 forks source link

Semi-automatic ordering of products from suppliers #30

Closed kjagiello closed 7 years ago

kjagiello commented 7 years ago

For every product one can define base stock level (the desired quantity). Then, when placing an order from a supplier, system will aid by suggesting which products should be ordered, based on the current demand. In case of Narlivs, the "aiding" process will be that the system will prefill the cart at Narlivs with the items that should be ordered.

codecov[bot] commented 7 years ago

Codecov Report

Merging #30 into develop will increase coverage by 0.75%. The diff coverage is 93.82%.

@@            Coverage Diff             @@
##           develop     #30      +/-   ##
==========================================
+ Coverage    89.34%   90.1%   +0.75%     
==========================================
  Files           73      74       +1     
  Lines         2535    2739     +204     
  Branches       137     148      +11     
==========================================
+ Hits          2265    2468     +203     
  Misses         247     247              
- Partials        23      24       +1
Impacted Files Coverage Δ
src/shop/tests/factories.py 100% <100%> (ø) :white_check_mark:
src/shop/tests/test_api.py 100% <100%> (ø) :white_check_mark:
src/shop/tests/test_narlivs.py 100% <100%> (ø) :white_check_mark:
src/shop/suppliers/base.py 100% <100%> (ø) :white_check_mark:
src/shop/enums.py 100% <100%> (ø) :white_check_mark:
src/shop/tests/test_admin.py 100% <100%> (ø)
src/shop/suppliers/narlivs.py 94.64% <100%> (+16.21%) :white_check_mark:
src/shop/admin.py 63.29% <80%> (+3.6%) :white_check_mark:
src/shop/api.py 91.45% <90.56%> (-0.7%) :x:
src/shop/models.py 84.61% <91.66%> (+0.53%) :white_check_mark:
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 7f20f80...503e311. Read the comment docs.