Set qty as per stock_uom while mapping Material request to Purchase order

This commit is contained in:
Nabin Hait 2015-03-20 16:25:53 +05:30
parent 2ed71bac20
commit 63e00dcfd2

View File

@ -185,6 +185,7 @@ def set_missing_values(source, target_doc):
def update_item(obj, target, source_parent):
target.conversion_factor = 1
target.qty = flt(obj.qty) - flt(obj.ordered_qty)
target.stock_qty = target.qty
@frappe.whitelist()
def make_purchase_order(source_name, target_doc=None):