Skip to content

Commit

Permalink
Merge pull request #23926 from rohitwaghchaure/fixed-stock-ageing-rep…
Browse files Browse the repository at this point in the history
…ort-not-working-pre-release

fix: stock ageing report not working
  • Loading branch information
rohitwaghchaure authored Nov 17, 2020
2 parents f202a49 + a73c662 commit 9f93a40
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 9f93a40

Please sign in to comment.