Skip to content

Commit

Permalink
fix: dont show zero qty available items in stock ageing report
Browse files Browse the repository at this point in the history
(cherry picked from commit 5da7e01)
  • Loading branch information
rohitwaghchaure authored and mergify[bot] committed Sep 15, 2022
1 parent 0e88496 commit 37dbc70
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions erpnext/stock/report/stock_ageing/stock_ageing.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ def format_report_data(filters: Filters, item_details: Dict, to_date: str) -> Li
precision = cint(frappe.db.get_single_value("System Settings", "float_precision", cache=True))

for item, item_dict in item_details.items():
if not flt(item_dict.get("total_qty"), precision):
continue

earliest_age, latest_age = 0, 0
details = item_dict["details"]

Expand Down

0 comments on commit 37dbc70

Please sign in to comment.