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/pos_device/services/services.py b/apps/pos_device/services/services.py index cf65a14..09e014a 100644 --- a/apps/pos_device/services/services.py +++ b/apps/pos_device/services/services.py @@ -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