fix: don't map item row having 0 qty

(cherry picked from commit fc1088d9c4)
This commit is contained in:
s-aga-r
2023-03-03 10:49:25 +05:30
committed by Mergify
parent 35297f6ac1
commit 7611a49db7

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,
},
},
)