fix: fiscal year test case issue

This commit is contained in:
casesolved-co-uk
2021-04-10 02:27:00 +00:00
parent 89fcdf3226
commit 75ebfbdaf3
2 changed files with 15 additions and 9 deletions

View File

@@ -1,12 +1,5 @@
[ [
{ {
"abbr": "_T",
"company_name": "_T",
"country": "United Kingdom",
"default_currency": "GBP",
"doctype": "Company",
"name": "_T"
},{
"account_manager": null, "account_manager": null,
"accounts": [], "accounts": [],
"companies": [], "companies": [],
@@ -297,7 +290,7 @@
"discount_amount": 0.0, "discount_amount": 0.0,
"docstatus": 0, "docstatus": 0,
"doctype": "Purchase Invoice", "doctype": "Purchase Invoice",
"due_date": "2021-04-30", "due_date": null,
"from_date": null, "from_date": null,
"grand_total": 511.68, "grand_total": 511.68,
"group_same_items": 0, "group_same_items": 0,
@@ -521,7 +514,7 @@
"discount_amount": 0.0, "discount_amount": 0.0,
"docstatus": 0, "docstatus": 0,
"doctype": "Sales Invoice", "doctype": "Sales Invoice",
"due_date": "2021-03-31", "due_date": null,
"from_date": null, "from_date": null,
"grand_total": 868.25, "grand_total": 868.25,
"group_same_items": 0, "group_same_items": 0,

View File

@@ -19,6 +19,19 @@ class TestTaxDetail(unittest.TestCase):
self.to_date = get_last_day(now) self.to_date = get_last_day(now)
docs = [{ docs = [{
"abbr": "_T",
"company_name": "_T",
"country": "United Kingdom",
"default_currency": "GBP",
"doctype": "Company",
"name": "_T"
},{
"companies": [{
"company": "_T",
"parent": "_Test Fiscal",
"parentfield": "companies",
"parenttype": "Fiscal Year"
}],
"doctype": "Fiscal Year", "doctype": "Fiscal Year",
"year": "_Test Fiscal", "year": "_Test Fiscal",
"year_end_date": get_year_ending(now), "year_end_date": get_year_ending(now),