Browse Source

fix: check if row['delay'] exists (#22889)

develop
Prssanna Desai 4 years ago
committed by GitHub
parent
commit
1dfd9fd756
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      erpnext/selling/report/sales_order_analysis/sales_order_analysis.py

2
erpnext/selling/report/sales_order_analysis/sales_order_analysis.py

@ -96,7 +96,7 @@ def prepare_data(data, filters):
# prepare data for report view
row["qty_to_bill"] = flt(row["qty"]) - flt(row["billed_qty"])
row["delay"] = 0 if row["delay"] < 0 else row["delay"]
row["delay"] = 0 if row["delay"] and row["delay"] < 0 else row["delay"]
if filters.get("group_by_so"):
so_name = row["sales_order"]

Loading…
Cancel
Save