remove - pritns from signals v2

This commit is contained in:
2025-11-27 12:54:38 +03:30
parent 8d7d9db014
commit f7eadda01f
3 changed files with 2 additions and 4 deletions

View File

@@ -14,7 +14,7 @@
</component> </component>
<component name="NewModuleRootManager"> <component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" /> <content url="file://$MODULE_DIR$" />
<orderEntry type="jdk" jdkName="Python 3.10 (env)" jdkType="Python SDK" /> <orderEntry type="jdk" jdkName="Python 3.8" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="sourceFolder" forTests="false" />
</component> </component>
<component name="PyDocumentationSettings"> <component name="PyDocumentationSettings">

2
.idea/misc.xml generated
View File

@@ -3,5 +3,5 @@
<component name="Black"> <component name="Black">
<option name="sdkName" value="Python 3.10 (env)" /> <option name="sdkName" value="Python 3.10 (env)" />
</component> </component>
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.10 (env)" project-jdk-type="Python SDK" /> <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.8" project-jdk-type="Python SDK" />
</project> </project>

View File

@@ -47,8 +47,6 @@ def warehouse_sold_and_balance(quota_stat: OrganizationQuotaStats):
@receiver(post_save, sender=InventoryQuotaSaleItem) @receiver(post_save, sender=InventoryQuotaSaleItem)
@receiver(post_delete, sender=InventoryQuotaSaleItem) @receiver(post_delete, sender=InventoryQuotaSaleItem)
def update_distribution_warehouse_sold_and_balance(sender, instance: InventoryQuotaSaleItem, **kwargs): 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 object exists & pre sale is true
if instance.quota_stat and not instance.quota_stat.quota.pre_sale: 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 # if transaction status is success and warehouse management Done once, inventory_calculation set to true