Skip to content

Commit

Permalink
fix: don't map item row having 0 qty
Browse files Browse the repository at this point in the history
  • Loading branch information
s-aga-r committed Mar 3, 2023
1 parent f399378 commit fc1088d
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -82,6 +82,7 @@ def update_item(source, target, source_parent):
"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,
},
},
)
Expand Down

0 comments on commit fc1088d

Please sign in to comment.