mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 15:09:20 +00:00
sync purchase invoice item, purchase_receipt_item and purchase order item before patch
This commit is contained in:
@@ -1,7 +1,11 @@
|
|||||||
def execute():
|
def execute():
|
||||||
import webnotes
|
import webnotes
|
||||||
|
|
||||||
|
# perform sync
|
||||||
import webnotes.model.sync
|
import webnotes.model.sync
|
||||||
webnotes.model.sync.sync('buying', 'purchase_order_item')
|
webnotes.model.sync.sync('buying', 'purchase_order_item')
|
||||||
webnotes.model.sync.sync('accounts', 'purchase_invoice_item')
|
webnotes.model.sync.sync('accounts', 'purchase_invoice_item')
|
||||||
|
webnotes.model.sync.sync('stock', 'purchase_receipt_item')
|
||||||
|
|
||||||
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 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")
|
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")
|
||||||
Reference in New Issue
Block a user