Skip to content

Commit

Permalink
Merge pull request #36326 from frappe/mergify/bp/version-14/pr-36324
Browse files Browse the repository at this point in the history
fix: filter by cost center in trial balance (#36324)
  • Loading branch information
deepeshgarg007 authored Jul 26, 2023
2 parents c4b0790 + a20d78a commit bc2c7fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/accounts/report/trial_balance/trial_balance.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def get_opening_balance(
lft, rgt = frappe.db.get_value("Cost Center", filters.cost_center, ["lft", "rgt"])
cost_center = frappe.qb.DocType("Cost Center")
opening_balance = opening_balance.where(
closing_balance.cost_center.in_(
closing_balance.cost_center.isin(
frappe.qb.from_(cost_center)
.select("name")
.where((cost_center.lft >= lft) & (cost_center.rgt <= rgt))
Expand Down

0 comments on commit bc2c7fe

Please sign in to comment.