copy uom in pur inv from po, pr
This commit is contained in:
parent
d491fc7a31
commit
59c7670713
4
erpnext/patches/june_2012/copy_uom_for_pur_inv_item.py
Normal file
4
erpnext/patches/june_2012/copy_uom_for_pur_inv_item.py
Normal 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")
|
@ -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'
|
||||
},
|
||||
]
|
Loading…
x
Reference in New Issue
Block a user