brotherton-erpnext/erpnext/patches/v8_7/fix_purchase_receipt_status.py
2017-08-24 15:47:49 +05:30

12 lines
268 B
Python

import frappe
def execute():
# there is no more status called "Submitted", there was an old issue that used
# to set it as Submitted, fixed in this commit
frappe.db.sql("""
update
`tabPurchase Receipt`
set
status = 'To Bill'
where
status = 'Submitted'""")