mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-30 18:34:48 +00:00
fix: fiscal year test case issue
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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),
|
||||||
|
|||||||
Reference in New Issue
Block a user