Merge pull request #23926 from rohitwaghchaure/fixed-stock-ageing-report-not-working-pre-release

fix: stock ageing report not working
This commit is contained in:
rohitwaghchaure
2020-11-17 12:18:14 +05:30
committed by GitHub

View File

@@ -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)