commit | 43c7bd57e4c4d47a398300150433b0384a830ebb | [log] [tgz] |
---|---|---|
author | Charles-Henri Decultot <chdecultot@dokos.io> | Thu Dec 27 14:43:30 2018 +0000 |
committer | Charles-Henri Decultot <chdecultot@dokos.io> | Thu Dec 27 14:43:30 2018 +0000 |
tree | 9fa54bed9b63d81ff9a60be4895d2ba9ee1c8314 | |
parent | 641d3e0073c7974309c48cc199cd35a023f5f131 [diff] |
Cancel existing payment entries for data integrity in test
diff --git a/erpnext/accounts/report/sales_payment_summary/test_sales_payment_summary.py b/erpnext/accounts/report/sales_payment_summary/test_sales_payment_summary.py index aeb618f..bf9bc5e 100644 --- a/erpnext/accounts/report/sales_payment_summary/test_sales_payment_summary.py +++ b/erpnext/accounts/report/sales_payment_summary/test_sales_payment_summary.py
@@ -14,6 +14,9 @@ @classmethod def setUpClass(self): 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): filters = get_filters()