From ed71e6cea6ad16c66b31e19d335a15780797ade6 Mon Sep 17 00:00:00 2001 From: ShashaQin Date: Thu, 25 Feb 2016 15:47:25 +0800 Subject: [PATCH] Update test_recurring_document.py --- erpnext/controllers/tests/test_recurring_document.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/controllers/tests/test_recurring_document.py b/erpnext/controllers/tests/test_recurring_document.py index 77823e75bed..0723f3d14a8 100644 --- a/erpnext/controllers/tests/test_recurring_document.py +++ b/erpnext/controllers/tests/test_recurring_document.py @@ -112,7 +112,7 @@ def _test_recurring_document(obj, base_doc, date_field, first_and_last_day): def _test(i): 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]) next_date = get_next_date(base_doc.get(date_field), no_of_months,