brotherton-erpnext/erpnext/patches/v8_7/fix_purchase_receipt_status.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
308 B
Python
Raw Normal View History

from __future__ import unicode_literals
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'""")