copy uom in pur inv from po, pr
diff --git a/erpnext/patches/june_2012/copy_uom_for_pur_inv_item.py b/erpnext/patches/june_2012/copy_uom_for_pur_inv_item.py
new file mode 100644
index 0000000..d312717
--- /dev/null
+++ b/erpnext/patches/june_2012/copy_uom_for_pur_inv_item.py
@@ -0,0 +1,4 @@
+def execute():
+	import webnotes
+	webnotes.conn.sql("update `tabPurchase Invoice Item` t1, `tabPurchase Order Item` t2 set t1.uom = t2.uom where ifnull(t1.po_detail, '') != '' and t1.po_detail = t2.name")
+	webnotes.conn.sql("update `tabPurchase Invoice Item` t1, `tabPurchase Receipt Item` t2 set t1.uom = t2.uom where ifnull(t1.pr_detail, '') != '' and t1.pr_detail = t2.name")
\ No newline at end of file
diff --git a/erpnext/patches/patch_list.py b/erpnext/patches/patch_list.py
index 86f35d3..96bf161 100644
--- a/erpnext/patches/patch_list.py
+++ b/erpnext/patches/patch_list.py
@@ -417,4 +417,9 @@
 		'patch_file': 'barcode_in_feature_setup',
 		'description': 'Track item by barcode'
 	},
+	{
+		'patch_module': 'patches.june_2012',
+		'patch_file': 'copy_uom_for_pur_inv_item',
+		'description': 'Copy uom for pur inv item from PO and PR item table'
+	},
 ]
\ No newline at end of file