mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 11:19:09 +00:00
Update recurring_document.py
This commit is contained in:
@@ -38,7 +38,7 @@ def manage_recurring_documents(doctype, next_date=None, commit=True):
|
|||||||
|
|
||||||
recurring_documents = frappe.db.sql("""select name, recurring_id
|
recurring_documents = frappe.db.sql("""select name, recurring_id
|
||||||
from `tab{0}` where is_recurring=1
|
from `tab{0}` where is_recurring=1
|
||||||
and docstatus=1 and next_date=%s
|
and (docstatus=1 or docstatus=0) and next_date=%s
|
||||||
and next_date <= ifnull(end_date, '2199-12-31') {1}""".format(doctype, condition), next_date)
|
and next_date <= ifnull(end_date, '2199-12-31') {1}""".format(doctype, condition), next_date)
|
||||||
|
|
||||||
exception_list = []
|
exception_list = []
|
||||||
|
|||||||
Reference in New Issue
Block a user