Merge branch 'develop' into invalid_message_fix

This commit is contained in:
Sagar Sharma 2022-12-01 09:24:40 +05:30 committed by GitHub
commit 93f29d8f08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,6 +12,7 @@ from frappe.utils import (
get_first_day,
get_last_day,
getdate,
is_last_day_of_the_month,
nowdate,
)
@ -264,7 +265,7 @@ class TestAsset(AssetSetup):
asset.gross_purchase_amount - asset.finance_books[0].value_after_depreciation,
asset.precision("gross_purchase_amount"),
)
this_month_depr_amount = 9000.0 if get_last_day(date) == date else 0
this_month_depr_amount = 9000.0 if is_last_day_of_the_month(date) else 0
self.assertEquals(accumulated_depr_amount, 18000.0 + this_month_depr_amount)