copy uom in pur inv from po, pr

This commit is contained in:
Nabin Hait 2012-06-08 12:31:37 +05:30
parent d491fc7a31
commit 59c7670713
2 changed files with 9 additions and 0 deletions

View File

@ -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")

View File

@ -417,4 +417,9 @@ patch_list = [
'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'
},
]