fix: check if row['delay'] exists (#22889)
This commit is contained in:
parent
2f2de2264d
commit
1dfd9fd756
@ -96,7 +96,7 @@ def prepare_data(data, filters):
|
|||||||
# prepare data for report view
|
# prepare data for report view
|
||||||
row["qty_to_bill"] = flt(row["qty"]) - flt(row["billed_qty"])
|
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"):
|
if filters.get("group_by_so"):
|
||||||
so_name = row["sales_order"]
|
so_name = row["sales_order"]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user