From 85c6a0f00290dfe0b2894375647ace4c79f77368 Mon Sep 17 00:00:00 2001 From: Aditya Hase Date: Mon, 7 Jan 2019 22:54:18 +0530 Subject: [PATCH] fix(test): Do not rely on order by name --- erpnext/accounts/doctype/sales_invoice/test_sales_invoice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/accounts/doctype/sales_invoice/test_sales_invoice.py b/erpnext/accounts/doctype/sales_invoice/test_sales_invoice.py index f9364e2d847..a1b93f8d94b 100644 --- a/erpnext/accounts/doctype/sales_invoice/test_sales_invoice.py +++ b/erpnext/accounts/doctype/sales_invoice/test_sales_invoice.py @@ -729,7 +729,7 @@ class TestSalesInvoice(unittest.TestCase): # check gl entries gl_entries = frappe.db.sql("""select account, debit, credit from `tabGL Entry` where voucher_type='Sales Invoice' and voucher_no=%s - order by account asc, debit asc""", si.name, as_dict=1) + order by account asc, debit asc, credit asc""", si.name, as_dict=1) self.assertTrue(gl_entries) stock_in_hand = get_inventory_account('_Test Company') @@ -762,7 +762,7 @@ class TestSalesInvoice(unittest.TestCase): set_perpetual_inventory(0) frappe.db.sql("delete from `tabPOS Profile`") - + def test_pos_si_without_payment(self): set_perpetual_inventory() make_pos_profile()