Cancel existing payment entries for data integrity in test

This commit is contained in:
Charles-Henri Decultot 2018-12-27 14:43:30 +00:00
parent 641d3e0073
commit 43c7bd57e4

View File

@ -14,6 +14,9 @@ class TestSalesPaymentSummary(unittest.TestCase):
@classmethod @classmethod
def setUpClass(self): def setUpClass(self):
create_records() create_records()
pes = frappe.get_all("Payment Entry")
for pe in pes:
frappe.db.set_value("Payment Entry", pe.name, "docstatus", 2)
def test_get_mode_of_payments(self): def test_get_mode_of_payments(self):
filters = get_filters() filters = get_filters()