fix: TypeError in Closing Stock Balance

(cherry picked from commit 446253ff39)
This commit is contained in:
s-aga-r
2023-06-07 09:30:23 +05:30
committed by Mergify
parent feb5d0089b
commit 32e5bbbb46

View File

@@ -51,7 +51,7 @@ class ClosingStockBalance(Document):
for fieldname in ["warehouse", "item_code", "item_group", "warehouse_type"]:
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)