Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix misspell

Michal Ociepka28a99fed51a8
diff --git a/order/models.py b/order/models.py
index cd9c7b08aa..39cfcadf6c 100644
--- a/order/models.py
+++ b/order/models.py
@@ -63,7 +63,7 @@ class Order(models.Model, ItemSet):
def get_items(self):
return OrderedItem.objects.filter(delivery_group__order=self)
- def is_full_paid(self):
+ def is_fully_paid(self):
total_paid = sum([payment.total for payment in
self.payments.filter(status='confirmed')], Decimal())
total = self.get_total()
diff --git a/payment/__init__.py b/payment/__init__.py
index 87816fa9ee..efc318292d 100644
--- a/payment/__init__.py
+++ b/payment/__init__.py
@@ -5,6 +5,6 @@ from django.dispatch import receiver
@receiver(status_changed)
def order_status_change(sender, instance, **kwargs):
order = instance.order
-# if order.is_full_paid():
-# order.change_status('fully-paid')
-# instance.send_confirmation_email()
+ if order.is_fully_paid():
+ order.change_status('fully-paid')
+ instance.send_confirmation_email()