mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 07:02:54 +00:00
[patch][serial no] for striped serial nos
This commit is contained in:
@@ -8,6 +8,6 @@ def execute():
|
||||
pi.update_raw_material_cost()
|
||||
pi.update_valuation_rate("entries")
|
||||
for item in pi.doclist.get({"parentfield": "entries"}):
|
||||
webnotes.conn.set_value("Purchase Invoice Item", item.name, "valuation_rate",
|
||||
item.valuation_rate)
|
||||
webnotes.conn.sql("""update `tabPurchase Invoice Item` set valuation_rate = %s
|
||||
where name = %s""", (item.valuation_rate, item.name))
|
||||
|
||||
@@ -5,7 +5,7 @@ def execute():
|
||||
where docstatus = 1 and ifnull(against_expense_account, '') = ''""")
|
||||
|
||||
for pi in pi_list:
|
||||
pi_obj = get_obj("Purchase Invoice", pi[0], with_children=1)
|
||||
pi_obj.set_against_expense_account()
|
||||
webnotes.conn.set_value("Purchase Invoice", pi[0],
|
||||
"against_expense_account", pi_obj.doc.against_expense_account)
|
||||
pi_obj = get_obj("Purchase Invoice", pi[0], with_children=1)
|
||||
pi_obj.set_against_expense_account()
|
||||
webnotes.conn.sql("""update `tabPurchase Invoice` set against_expense_account = %s
|
||||
where name = %s""", (pi_obj.doc.against_expense_account, pi[0]))
|
||||
Reference in New Issue
Block a user