after changing the status of a single line item to Cancelled I would like the change to be reflected in the order itself and the price on the orders index page /dashboard/orders/ .does oscar have some functions that I can call to handle that scenario
--
https://github.com/tangentlabs/django-oscar
http://django-oscar.readthedocs.org/en/latest/
https://twitter.com/django_oscar
---
You received this message because you are subscribed to the Google Groups "django-oscar" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-oscar...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-oscar.
To view this discussion on the web, visit https://groups.google.com/d/msgid/django-oscar/04141f4b-5d6e-47d5-92df-4f37950b9e66%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
can I simply cancel stock allocation, subtract the line_price_incl_tax from the total_incl_tax and then remove the record from the order_line inside that function to reflect the change? I'm worried that I might mess something up after reading this link about pricing http://django-oscar.readthedocs.org/en/latest/topics/prices_and_availability.html
--
On Wednesday, December 10, 2014 4:56:00 PM UTC-5, David Winterbottom wrote:On Wed, Dec 10, 2014 at 5:58 PM, wielliam tell <wiel...@gmail.com> wrote:after changing the status of a single line item to Cancelled I would like the change to be reflected in the order itself and the price on the orders index page /dashboard/orders/ .does oscar have some functions that I can call to handle that scenarioNot out-of-the-box but it's easy to implement. Just override set_status on your line model (https://github.com/django-oscar/django-oscar/blob/master/src/oscar/apps/order/abstract_models.py#L521-L536) and make it update the parent order if the appropriate conditions are met.--
https://github.com/tangentlabs/django-oscar
http://django-oscar.readthedocs.org/en/latest/
https://twitter.com/django_oscar
---
You received this message because you are subscribed to the Google Groups "django-oscar" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-oscar...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-oscar.
To view this discussion on the web, visit https://groups.google.com/d/msgid/django-oscar/04141f4b-5d6e-47d5-92df-4f37950b9e66%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
https://github.com/tangentlabs/django-oscar
http://django-oscar.readthedocs.org/en/latest/
https://twitter.com/django_oscar
---
You received this message because you are subscribed to the Google Groups "django-oscar" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-oscar...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-oscar.
To view this discussion on the web, visit https://groups.google.com/d/msgid/django-oscar/00035af2-2d82-4f45-a340-1b8c433b9755%40googlegroups.com.