mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-28 14:18:24 +00:00
Fixes for discount amount
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user