Merge pull request #35617 from s-aga-r/FIX-CBAL-TypeError

fix: `TypeError` in Closing Stock Balance
This commit is contained in:
Sagar Sharma 2023-06-09 11:36:20 +05:30 committed by GitHub
commit 9a819103a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,7 @@ class ClosingStockBalance(Document):
for fieldname in ["warehouse", "item_code", "item_group", "warehouse_type"]: for fieldname in ["warehouse", "item_code", "item_group", "warehouse_type"]:
if self.get(fieldname): if self.get(fieldname):
query = query.where(table.get(fieldname) == self.get(fieldname)) query = query.where(table[fieldname] == self.get(fieldname))
query = query.run(as_dict=True) query = query.run(as_dict=True)