mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 04:09:11 +00:00
refactor: use isinstance over type
(cherry picked from commit 67440c38ae)
This commit is contained in:
@@ -99,7 +99,7 @@ class AccountsReceivableSummary(ReceivablePayableReport):
|
|||||||
|
|
||||||
# Add all amount columns
|
# Add all amount columns
|
||||||
for k in list(self.party_total[d.party]):
|
for k in list(self.party_total[d.party]):
|
||||||
if type(self.party_total[d.party][k]) == float:
|
if isinstance(self.party_total[d.party][k], float):
|
||||||
self.party_total[d.party][k] += d.get(k) or 0.0
|
self.party_total[d.party][k] += d.get(k) or 0.0
|
||||||
|
|
||||||
# set territory, customer_group, sales person etc
|
# set territory, customer_group, sales person etc
|
||||||
|
|||||||
Reference in New Issue
Block a user