Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX Dolibarr#26017 ASSET: annual depreciation starting year
When using annual depreciation of an Asset, the depreciation table now begins with the fiscal year when the asset was put in service or acquired (whichever occurred first) instead of the fiscal year of the current (server time) moment. This allows you to regenerate the depreciation table properly if you need to modify the acquisition or in-service date. The choice of using the earliest of acquisition date or in-service date is based on the calculation of $depreciation_date_start later in the function.
- Loading branch information