diff --git a/core/signals.py b/core/signals.py index 5fbf7b49..c58c20d6 100644 --- a/core/signals.py +++ b/core/signals.py @@ -103,6 +103,8 @@ def process_order_changes(instance, created, **_kwargs): download = DigitalAssetDownload.objects.create(order_product=order_product) order_product.download = download order_product.save() + order_product.order.user.payments_balance.amount -= order_product.buy_price + order_product.order.user.payments_balance.save() continue try: logger.debug("Trying to buy: %s", str(order_product.uuid))