fix - quota stat none in pos sharing
This commit is contained in:
2
.idea/Rasaddam_Backend.iml
generated
2
.idea/Rasaddam_Backend.iml
generated
@@ -14,7 +14,7 @@
|
||||
</component>
|
||||
<component name="NewModuleRootManager">
|
||||
<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" />
|
||||
</component>
|
||||
<component name="PyDocumentationSettings">
|
||||
|
||||
2
.idea/misc.xml
generated
2
.idea/misc.xml
generated
@@ -3,5 +3,5 @@
|
||||
<component name="Black">
|
||||
<option name="sdkName" value="Python 3.10 (env)" />
|
||||
</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>
|
||||
@@ -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