Skip to content

Commit

Permalink
Merge pull request #43015 from khushi8112/test-case-fix-in-asset-capi…
Browse files Browse the repository at this point in the history
…talization

chore: test case failing issue
  • Loading branch information
khushi8112 authored Sep 2, 2024
2 parents baff301 + 0bdffdf commit 07339e2
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ def setUp(self):
def test_capitalization_with_perpetual_inventory(self):
company = "_Test Company with perpetual inventory"
set_depreciation_settings_in_company(company=company)
name = frappe.db.get_value(
"Asset Category Account",
filters={"parent": "Computers", "company_name": company},
fieldname=["name"],
)
frappe.db.set_value("Asset Category Account", name, "capital_work_in_progress_account", "")

# Variables
consumed_asset_value = 100000
Expand Down Expand Up @@ -215,6 +221,12 @@ def test_capitalization_with_periodical_inventory(self):
def test_capitalization_with_wip_composite_asset(self):
company = "_Test Company with perpetual inventory"
set_depreciation_settings_in_company(company=company)
name = frappe.db.get_value(
"Asset Category Account",
filters={"parent": "Computers", "company_name": company},
fieldname=["name"],
)
frappe.db.set_value("Asset Category Account", name, "capital_work_in_progress_account", "")

stock_rate = 1000
stock_qty = 2
Expand Down

0 comments on commit 07339e2

Please sign in to comment.