Skip to content

Commit

Permalink
fix: Use account_type == 'Stock' to filter stock accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
marination committed Apr 26, 2022
1 parent 44331f4 commit e2a163d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/stock/doctype/warehouse/warehouse.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def get_accounts_where_value_is_booked(name):
.on(ac.name == gle.account)
.select(gle.account)
.distinct()
.where((sle.warehouse == name) & (ac.root_type == "Asset"))
.where((sle.warehouse == name) & (ac.account_type == "Stock"))
.orderby(sle.creation)
.run(as_dict=True)
)
Expand Down

0 comments on commit e2a163d

Please sign in to comment.