diff --git a/erpnext/buying/doctype/purchase_order/purchase_order.py b/erpnext/buying/doctype/purchase_order/purchase_order.py index 96a3d97b5ee..6b7c9a27b71 100644 --- a/erpnext/buying/doctype/purchase_order/purchase_order.py +++ b/erpnext/buying/doctype/purchase_order/purchase_order.py @@ -26,7 +26,7 @@ class PurchaseOrder(BuyingController): 'target_parent_dt': 'Material Request', 'target_parent_field': 'per_ordered', 'target_ref_field': 'qty', - 'source_field': 'qty', + 'source_field': 'stock_qty', 'percent_join_field': 'prevdoc_docname', 'overflow_type': 'order' }] @@ -61,8 +61,7 @@ class PurchaseOrder(BuyingController): }, "Supplier Quotation Item": { "ref_dn_field": "supplier_quotation_item", - "compare_fields": [["rate", "="], ["project_name", "="], ["item_code", "="], - ["uom", "="]], + "compare_fields": [["rate", "="], ["project_name", "="], ["item_code", "="]], "is_child_table": True } })