fix: don't map item row having 0 qty

This commit is contained in:
s-aga-r 2023-03-03 10:49:25 +05:30
parent f3993783a3
commit fc1088d9c4

View File

@ -82,6 +82,7 @@ def make_order(source_name):
"doctype": doctype + " Item",
"field_map": {"rate": "blanket_order_rate", "parent": "blanket_order"},
"postprocess": update_item,
"condition": lambda item: (flt(item.qty) - flt(item.ordered_qty)) > 0,
},
},
)