Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix misspell
Michal Ociepka28a99fed51a8
diff --git a/order/models.py b/order/models.pyindex 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 inself.payments.filter(status='confirmed')], Decimal())total = self.get_total()diff --git a/payment/__init__.py b/payment/__init__.pyindex 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()