Next depreciation date doesn't estimate correctly when purchase date is different than the first date of month

Bug #1306149 reported by Carlos Vásquez (ClearCorp)
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

This bug is related with assets in OpenERP v7.0. Specifically, in button 'Compute' at Depreciation Board with option 'Prorata Temporis' in asset configuration.

In this board, the next depreciation date (estimation) is based on purchase date. But, for example, in case when purchase date is 31/12/2013, next depreciation will be 1/1/14 and then 28/2/14, but from that date, next depreciation will be 28/3/14 instead of 31/3/14. Also, it exists a problem with months composed of 30 days: For example in June depreciation would be 28/6/14 instead of 30/6/14.

The estimated of next depreciation date doesn't 'respect' or not estimate correctly the final date of each month, depending if the month has 28, 30, 31 days. When February is processed, all depreciation dates are estimated based on 28 or 29, it means that since that date, estimate date ignores purchase date as beginning and replace it with 28/2 or 29/2.

As following, we show some images with the error. Both images describe the configuration and then, the error in depreciation board.

Asset configuration
http://i.imgur.com/UODLdnO.png

Depreciation board
http://i.imgur.com/PUUQjgE.png

Tags: asset openerp

Related branches

Revision history for this message
Carlos Vásquez (ClearCorp) (cv.clearcorp) wrote :

Example of a incorrect depreciation board

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.