Skip to content

Commit

Permalink
fix(gp): SLEs not fetched for correct warehouse
Browse files Browse the repository at this point in the history
  • Loading branch information
rtdany10 committed Mar 30, 2024
1 parent 3231ee4 commit f958e8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/accounts/report/gross_profit/gross_profit.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ def get_buying_amount(self, row, item_code):
dn["item_row"],
dn["warehouse"],
)
my_sle = self.get_stock_ledger_entries(item_code, row.warehouse)
my_sle = self.get_stock_ledger_entries(item_code, _warehouse)
return self.calculate_buying_amount_from_sle(
row, my_sle, parenttype, parent, item_row, item_code
)
Expand Down

0 comments on commit f958e8b

Please sign in to comment.