Merge pull request #31681 from rohitwaghchaure/dont-show-zero-qty-data-in-report

fix: dont show zero qty available items in stock ageing report
This commit is contained in:
rohitwaghchaure 2022-07-27 00:44:11 +05:30 committed by GitHub
commit cdec6f60de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"]