From 47bd4be71bc184a4531efd896732a33016e4d5c9 Mon Sep 17 00:00:00 2001 From: anandbaburajan Date: Sat, 1 Oct 2022 17:04:22 +0530 Subject: [PATCH] fix: test_scrap_asset --- erpnext/assets/doctype/asset/test_asset.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/erpnext/assets/doctype/asset/test_asset.py b/erpnext/assets/doctype/asset/test_asset.py index f72b5249a4..2e7d9db8a7 100644 --- a/erpnext/assets/doctype/asset/test_asset.py +++ b/erpnext/assets/doctype/asset/test_asset.py @@ -249,7 +249,9 @@ class TestAsset(AssetSetup): asset.gross_purchase_amount - asset.finance_books[0].value_after_depreciation, asset.precision("gross_purchase_amount"), ) - self.assertEquals(accumulated_depr_amount, 18000.0) + this_month_depr_amount = 9000.0 if get_last_day(date) == date else 0 + + self.assertEquals(accumulated_depr_amount, 18000.0 + this_month_depr_amount) def test_gle_made_by_asset_sale(self): date = nowdate()