Allowed purchase order in different uom than in Material request
diff --git a/erpnext/buying/doctype/purchase_order/purchase_order.py b/erpnext/buying/doctype/purchase_order/purchase_order.py
index 96a3d97..6b7c9a2 100644
--- a/erpnext/buying/doctype/purchase_order/purchase_order.py
+++ b/erpnext/buying/doctype/purchase_order/purchase_order.py
@@ -26,7 +26,7 @@
'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 @@
},
"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
}
})