Update test_recurring_document.py
This commit is contained in:
@@ -112,7 +112,7 @@ def _test_recurring_document(obj, base_doc, date_field, first_and_last_day):
|
|||||||
|
|
||||||
def _test(i):
|
def _test(i):
|
||||||
obj.assertEquals(i+1, frappe.db.sql("""select count(*) from `tab%s`
|
obj.assertEquals(i+1, frappe.db.sql("""select count(*) from `tab%s`
|
||||||
where recurring_id=%s and docstatus=1""" % (base_doc.doctype, '%s'),
|
where recurring_id=%s and (docstatus=1 or docstatus=0)""" % (base_doc.doctype, '%s'),
|
||||||
(base_doc.recurring_id))[0][0])
|
(base_doc.recurring_id))[0][0])
|
||||||
|
|
||||||
next_date = get_next_date(base_doc.get(date_field), no_of_months,
|
next_date = get_next_date(base_doc.get(date_field), no_of_months,
|
||||||
|
|||||||
Reference in New Issue
Block a user