Skip to content

Commit

Permalink
Recalculate total after modifying quantity
Browse files Browse the repository at this point in the history
  • Loading branch information
artursmet committed Feb 16, 2016
1 parent c8658d2 commit 9e0c70a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions saleor/dashboard/order/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ def save(self):
delta = quantity - self.initial_quantity
Stock.objects.allocate_stock(stock, delta)
self.instance.change_quantity(quantity)
self.instance.delivery_group.order.recalculate()


class ShipGroupForm(forms.ModelForm):
Expand Down

0 comments on commit 9e0c70a

Please sign in to comment.