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,
"accounts": [],
"companies": [],
@ -297,7 +290,7 @@
"discount_amount": 0.0,
"docstatus": 0,
"doctype": "Purchase Invoice",
"due_date": "2021-04-30",
"due_date": null,
"from_date": null,
"grand_total": 511.68,
"group_same_items": 0,
@ -521,7 +514,7 @@
"discount_amount": 0.0,
"docstatus": 0,
"doctype": "Sales Invoice",
"due_date": "2021-03-31",
"due_date": null,
"from_date": null,
"grand_total": 868.25,
"group_same_items": 0,

View File

@ -19,6 +19,19 @@ class TestTaxDetail(unittest.TestCase):
self.to_date = get_last_day(now)
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",
"year": "_Test Fiscal",
"year_end_date": get_year_ending(now),