Skip to content

Commit

Permalink
fix: stock ageing report not working (frappe#23924)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitwaghchaure authored Nov 17, 2020
1 parent fe56015 commit d3074c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/stock/report/stock_ageing/stock_ageing.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def execute(filters=None):

fifo_queue = sorted(filter(_func, item_dict["fifo_queue"]), key=_func)
details = item_dict["details"]
if not fifo_queue and (not item_dict.get("total_qty")): continue
if not fifo_queue: continue

average_age = get_average_age(fifo_queue, to_date)

Expand Down

0 comments on commit d3074c3

Please sign in to comment.