fix: Sider

This commit is contained in:
marination 2021-06-11 12:47:06 +05:30
parent c5da51dd7a
commit a4ed6a3519

View File

@ -70,7 +70,7 @@ def get_data(filters):
transferred_qty = row.get("transferred_qty") or 0 transferred_qty = row.get("transferred_qty") or 0
if transferred_qty < row.get("reqd_qty", 0): if transferred_qty < row.get("reqd_qty", 0):
pending_qty = frappe.utils.flt(row.get("reqd_qty", 0) - transferred_qty) pending_qty = frappe.utils.flt(row.get("reqd_qty", 0) - transferred_qty)
row.p_qty = pending_qty if pending_qty > 0 else 0 row.p_qty = pending_qty if pending_qty > 0 else 0
data.append(row) data.append(row)
return data return data