[minor] [fix] uom conversion factor should be mapped from PO to PR to PI

This commit is contained in:
Nabin Hait
2013-08-07 17:31:47 +05:30
parent 9113f259bb
commit cf5c9a1f59
2 changed files with 0 additions and 6 deletions

View File

@@ -357,9 +357,6 @@ def make_purchase_invoice(source_name, target_doclist=None):
bean.run_method("set_missing_values")
bean.run_method("set_supplier_defaults")
def update_item(obj, target, source_parent):
target.conversion_factor = 1
doclist = get_mapped_doclist("Purchase Receipt", source_name, {
"Purchase Receipt": {
"doctype": "Purchase Invoice",
@@ -376,7 +373,6 @@ def make_purchase_invoice(source_name, target_doclist=None):
"prevdoc_docname": "purchase_order",
"purchase_rate": "rate"
},
"postprocess": update_item
},
"Purchase Taxes and Charges": {
"doctype": "Purchase Taxes and Charges",