[Removed Stop Button from SO and PO]

This commit is contained in:
patilsangram
2016-02-22 16:24:23 +05:30
parent 8fdd4e7b54
commit bf2b511988
31 changed files with 97 additions and 122 deletions

View File

@@ -34,7 +34,7 @@ def manage_recurring_documents(doctype, next_date=None, commit=True):
date_field = date_field_map[doctype]
condition = " and ifnull(status, '') != 'Stopped'" if doctype in ("Sales Order", "Purchase Order") else ""
condition = " and ifnull(status, '') != 'Closed'" if doctype in ("Sales Order", "Purchase Order") else ""
recurring_documents = frappe.db.sql("""select name, recurring_id
from `tab{0}` where is_recurring=1