From f7eadda01f7761fde00f8512e62f68006edcbe26 Mon Sep 17 00:00:00 2001 From: Mojtaba-z Date: Thu, 27 Nov 2025 12:54:38 +0330 Subject: [PATCH] remove - pritns from signals v2 --- .idea/Rasaddam_Backend.iml | 2 +- .idea/misc.xml | 2 +- apps/warehouse/signals/signals_v2.py | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.idea/Rasaddam_Backend.iml b/.idea/Rasaddam_Backend.iml index 168bde0..57ec562 100644 --- a/.idea/Rasaddam_Backend.iml +++ b/.idea/Rasaddam_Backend.iml @@ -14,7 +14,7 @@ - + diff --git a/.idea/misc.xml b/.idea/misc.xml index f1b70db..bbe7f0a 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -3,5 +3,5 @@ - + \ No newline at end of file diff --git a/apps/warehouse/signals/signals_v2.py b/apps/warehouse/signals/signals_v2.py index 9bb25f0..aa77282 100644 --- a/apps/warehouse/signals/signals_v2.py +++ b/apps/warehouse/signals/signals_v2.py @@ -47,8 +47,6 @@ def warehouse_sold_and_balance(quota_stat: OrganizationQuotaStats): @receiver(post_save, sender=InventoryQuotaSaleItem) @receiver(post_delete, sender=InventoryQuotaSaleItem) def update_distribution_warehouse_sold_and_balance(sender, instance: InventoryQuotaSaleItem, **kwargs): - print(instance.quota_stat) - print(instance.quota_stat.quota) # if object exists & pre sale is true if instance.quota_stat and not instance.quota_stat.quota.pre_sale: # if transaction status is success and warehouse management Done once, inventory_calculation set to true