Linear Method: wrong calculation of first year

Bug #876463 reported by Els Van Vossel (Foxy)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
OpenERP R&D Addons Team 3

Bug Description

6.1-trunk
server revno 3765
addons revno 5374

1) Create an asset with a gross value of 30,000.00, purchase date 17/10/2011
2) Select Time Method Number of depreciations, set 5 as number of depreciations, use period length 12, computation method Linear, leave prorata temporis to False.
3) Go to Depreciation board tab and click Compute

The result is shown in the enclosed screenshot.

Expected result: have a depreciation of 6000 in the first year.

Regards,

Els

Related branches

Revision history for this message
Els Van Vossel (Foxy) (els-vanvossel) wrote :
Revision history for this message
qdp (OpenERP) (qdp) wrote :

i confirm, when prorata temporis is not thicked then we should consider the 1st of January for the computation

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Bharat Devnani (Open ERP) (bde-openerp) wrote :

Hello Els Van Vossel,

Thanks for your time, I have tried to reproduce your specified scenario which is as follows :

Gross Value : 30000.00
Time Method : Number of Depreciations
Number of Depreciation : 5
Period Length : 12

 for the obtained results i have attached the screen shots i.e (Depreciation_Lines.png).

And i have also checked your attached results and i found that these results are reproduced when the inputs are :

Gross Value : 30000.00
Time Method : Number of Depreciations
Number of Depreciation : 60
Period Length : 1

Hope this will help, and if any query you can revert back. And as per # 2 by qdp, the functionality of prorata temporis is working as expected.

Thanks & Regards,
Devnani Bharat R.

Revision history for this message
qdp (OpenERP) (qdp) wrote :

oops, Els wrongly posted her use case. Here is what you should test:

1) Create an asset with a gross value of 30,000.00, purchase date 17/10/2011
2) Select Time Method Number of depreciations, set 60 as number of depreciations, use period length 1, computation method Linear, leave prorata temporis to False.
3) Go to Depreciation board tab and click Compute
=> it gives you depreciation lines as Els posted on comment #1

The bug is: when you sum all the depreciation lines for year 2011, you should have a total of 6000, but here she only got 1500. That's because openerp consider the purchase_date instead of the 1st of January, althought the prorata temporis is not thicked (that's what i wanted to say in my comment #2)

Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Purnendu Singh (OpenERP) (purnendu-singh) wrote :

Hello Els Van Vossel,

This issue has been fixed in lp:~openerp-dev/openobject-addons/trunk-bug-876463-psi and it will be merge in main addons very soon.

Revision No: 5546
Revision ID: <email address hidden>

Thanks and regads,
Purnendu Singh

Changed in openobject-addons:
status: In Progress → Fix Committed
Changed in openobject-addons:
status: Fix Committed → Fix Released
milestone: none → 6.1
Revision history for this message
Purnendu Singh (OpenERP) (purnendu-singh) wrote :

merged with addons at revision 5566

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.