Skip to Content

Contributors

Account Asset Management - calculate amount asset remove

Hello all,

I'm not sure that we calculate the amount depreciation line wrong.

Example
Asset start date 01 Aug 2020
We will remove asset at 31 Aug 2020

Depreciation board will create a new line early removal is 30 Aug 2020 
that line should calculate depreciation 30 days but in code calculate 29 days.
is it correct? or am I missing something?

In the code
function _prepare_early_removal() in file ./account_asset_management/wizard/account_asset_remove.py

to_depreciate_amount = round(
            float(to_depreciate_days)
            / float(period_number_days)
            * first_to_depreciate_dl.amount,
            digits,
        )

to_depreciate_days = 29 (should be 30 ?)
period_number_days = 30 (should be 31 ?)

Thank you. Regards

by saranl - 05:36 - 20 Aug 2020