fix - quota stat none in pos sharing

This commit is contained in:
2025-12-04 13:24:42 +03:30
parent c2bb50d9f8
commit 05395202cb
3 changed files with 3 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ def pos_organizations_sharing_information(
"amount": quota.broker_values.filter(
broker=item.broker,
# if quota price features was edited for this organization
org_quota_stat=quota_stat if quota_stat.broker_values.exists() else None
org_quota_stat=quota_stat if quota_stat and quota_stat.broker_values.exists() else None
).first().value if quota.broker_values.filter(broker=item.broker).exists() else None,
# """
# if we will need to get agencies share amount, we can use this bellow code