ae95a8aa15
* Update status on submission if per_billed = 100 * Add patch to update existing records
7 lines
210 B
Python
7 lines
210 B
Python
import frappe
|
|
|
|
def execute():
|
|
frappe.reload_doc("stock", "doctype", "purchase_receipt")
|
|
frappe.db.sql('''
|
|
UPDATE `tabPurchase Receipt` SET status = "Completed" WHERE per_billed = 100 AND docstatus = 1
|
|
''') |