fix: fiscal year test case issue
diff --git a/erpnext/accounts/report/tax_detail/test_tax_detail.json b/erpnext/accounts/report/tax_detail/test_tax_detail.json
index 977920a..3a4b175 100644
--- a/erpnext/accounts/report/tax_detail/test_tax_detail.json
+++ b/erpnext/accounts/report/tax_detail/test_tax_detail.json
@@ -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,
diff --git a/erpnext/accounts/report/tax_detail/test_tax_detail.py b/erpnext/accounts/report/tax_detail/test_tax_detail.py
index 21732b9..dcf0e79 100644
--- a/erpnext/accounts/report/tax_detail/test_tax_detail.py
+++ b/erpnext/accounts/report/tax_detail/test_tax_detail.py
@@ -19,6 +19,19 @@
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),