Fixes for discount amount

This commit is contained in:
Nabin Hait
2015-02-22 23:03:07 +05:30
parent ce24512ed7
commit 2b019ed430
6 changed files with 34 additions and 38 deletions

View File

@@ -8,11 +8,8 @@ import unittest
class TestCompany(unittest.TestCase):
def atest_coa(self):
for country, chart_name in frappe.db.sql("""select country, chart_name
for country, chart_name in frappe.db.sql("""select country, chart_name
from `tabChart of Accounts` where name = 'Deutscher Kontenplan SKR03'""", as_list=1):
print "Country: ", country
print "Chart Name: ", chart_name
company_doc = frappe.get_doc({
"doctype": "Company",
"company_name": "_Test Company 2",
@@ -23,10 +20,10 @@ class TestCompany(unittest.TestCase):
})
company_doc.insert()
self.assertTrue(frappe.db.sql("""select count(*) from tabAccount
self.assertTrue(frappe.db.sql("""select count(*) from tabAccount
where company='_Test Company 2'""")[0][0] > 10)
frappe.delete_doc("Company", "_Test Company 2")
test_records = frappe.get_test_records('Company')
frappe.delete_doc("Company", "_Test Company 2")
test_records = frappe.get_test_records('Company')