fix - if company fee==0 sent empty str as sheba comapany
This commit is contained in:
@@ -46,7 +46,10 @@ class POSFreeProductSerializer(serializers.ModelSerializer):
|
|||||||
national_unique_id='1111111111'
|
national_unique_id='1111111111'
|
||||||
)
|
)
|
||||||
main_company_bank_account = main_company.bank_information.first()
|
main_company_bank_account = main_company.bank_information.first()
|
||||||
|
if instance.company_fee != 0:
|
||||||
representation['company_shaba'] = "IR" + main_company_bank_account.sheba # noqa
|
representation['company_shaba'] = "IR" + main_company_bank_account.sheba # noqa
|
||||||
|
else:
|
||||||
|
representation['company_shaba'] = "" # noqa
|
||||||
|
|
||||||
return representation
|
return representation
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user