fix - quota stat none in pos sharing
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user