mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 16:34:46 +00:00
Merge branch 'master' of github.com:webnotes/erpnext
This commit is contained in:
10
patches/march_2013/p03_update_buying_amount.py
Normal file
10
patches/march_2013/p03_update_buying_amount.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import webnotes
|
||||
|
||||
def execute():
|
||||
dn_list = webnotes.conn.sql("""select name from `tabDelivery Note` where docstatus < 2""")
|
||||
for dn in dn_list:
|
||||
webnotes.bean("Delivery Note", dn[0]).set_buying_amount()
|
||||
|
||||
si_list = webnotes.conn.sql("""select name from `tabSales Invoice` where docstatus < 2""")
|
||||
for si in si_list:
|
||||
webnotes.bean("Sales Invoice", si[0]).set_buying_amount()
|
||||
Reference in New Issue
Block a user