Browse Source
* Update status on submission if per_billed = 100 * Add patch to update existing recordsdevelop
Shreya Shah
6 years ago
committed by
Nabin Hait
3 changed files with 10 additions and 0 deletions
@ -0,0 +1,7 @@ |
|||
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 |
|||
''') |
Loading…
Reference in new issue