From 335cdeaf7d067f9f8b636f2b66bc66a333800440 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 5 Sep 2013 14:00:57 +0530 Subject: [PATCH] [fix] [minor] fixes in test cases for is_pos --- accounts/doctype/sales_invoice/test_sales_invoice.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/accounts/doctype/sales_invoice/test_sales_invoice.py b/accounts/doctype/sales_invoice/test_sales_invoice.py index 5976ce405a..5e13af626f 100644 --- a/accounts/doctype/sales_invoice/test_sales_invoice.py +++ b/accounts/doctype/sales_invoice/test_sales_invoice.py @@ -257,7 +257,9 @@ class TestSalesInvoice(unittest.TestCase): self.assertEquals(w.doc.outstanding_amount, w.doc.grand_total) def test_payment(self): + webnotes.conn.sql("""delete from `tabGL Entry`""") w = self.make() + from accounts.doctype.journal_voucher.test_journal_voucher \ import test_records as jv_test_records @@ -706,6 +708,7 @@ test_records = [ { "naming_series": "_T-Sales Invoice-", "company": "_Test Company", + "is_pos": 0, "conversion_rate": 1.0, "currency": "INR", "debit_to": "_Test Customer - _TC", @@ -769,6 +772,7 @@ test_records = [ { "naming_series": "_T-Sales Invoice-", "company": "_Test Company", + "is_pos": 0, "conversion_rate": 1.0, "currency": "INR", "debit_to": "_Test Customer - _TC", @@ -822,6 +826,7 @@ test_records = [ { "naming_series": "_T-Sales Invoice-", "company": "_Test Company", + "is_pos": 0, "conversion_rate": 1.0, "currency": "INR", "debit_to": "_Test Customer - _TC", @@ -947,6 +952,7 @@ test_records = [ { "naming_series": "_T-Sales Invoice-", "company": "_Test Company", + "is_pos": 0, "conversion_rate": 1.0, "currency": "INR", "debit_to": "_Test Customer - _TC",