[patch] Update stopped status to close

This commit is contained in:
Nabin Hait 2016-02-25 15:16:02 +05:30
parent 7f8a5fe6d2
commit 737849a0f5
3 changed files with 10 additions and 0 deletions

View File

@ -249,3 +249,4 @@ erpnext.patches.v6_20.set_party_account_currency_in_orders
#erpnext.patches.v6_19.comment_feed_communication #erpnext.patches.v6_19.comment_feed_communication
erpnext.patches.v6_21.fix_reorder_level erpnext.patches.v6_21.fix_reorder_level
erpnext.patches.v6_21.rename_material_request_fields erpnext.patches.v6_21.rename_material_request_fields
erpnext.patches.v6_23.update_stopped_status_to_closed

View File

View File

@ -0,0 +1,9 @@
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
def execute():
for dt in ("Sales Order", "Purchase Order"):
frappe.db.sql("update `tab{0}` set status='Closed' where status='Stopped'".format(dt))