fix(test): test_depr_entry_posting_with_income_account
This commit is contained in:
parent
209750d036
commit
56df646067
@ -903,6 +903,7 @@ class TestDepreciationBasics(AssetSetup):
|
||||
depr_expense_account = frappe.get_doc("Account", "_Test Depreciations - _TC")
|
||||
depr_expense_account.root_type = "Income"
|
||||
depr_expense_account.parent_account = "Income - _TC"
|
||||
depr_expense_account.save()
|
||||
|
||||
asset = create_asset(
|
||||
item_code = "Macbook Pro",
|
||||
@ -932,6 +933,7 @@ class TestDepreciationBasics(AssetSetup):
|
||||
# resetting
|
||||
depr_expense_account.root_type = "Expense"
|
||||
depr_expense_account.parent_account = "Expenses - _TC"
|
||||
depr_expense_account.save()
|
||||
|
||||
def test_clear_depreciation_schedule(self):
|
||||
"""Tests if clear_depreciation_schedule() works as expected."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user