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

Update active status on product quantity change #76

Open
Thizizmyname opened this issue Feb 23, 2018 · 0 comments
Open

Update active status on product quantity change #76

Thizizmyname opened this issue Feb 23, 2018 · 0 comments
Assignees

Comments

@Thizizmyname
Copy link
Member

If a product is inactive and it's quantity amount is changed it should be automatically set to active again so it's quantity is confirmed in the next stock-take.

This is an expansion for #75.

There are three moments a quantity is changed:

  • When a product is purchased
  • When a delivery is finalized
  • When an admin manually changes the amount of the product

A purchased object gets changed on "finalize_purchase" in
foobar_api/src/foobar/api.py

A delivery changes a product on "populate_delivery" in
foobar_api/src/shop/api.py

@kjagiello kjagiello self-assigned this Mar 1, 2018
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