fix: depreciation amount on selling an asset

This commit is contained in:
Saqib Ansari 2022-01-21 11:42:09 +05:30
parent 60bfead773
commit 0bbde4819b

View File

@ -375,7 +375,9 @@ class Asset(AccountsController):
if from_date:
return from_date
return self.available_for_use_date
# since depr for available_for_use_date is not yet booked
return add_days(self.available_for_use_date, -1)
# if it returns True, depreciation_amount will not be equal for the first and last rows
def check_is_pro_rata(self, row):