Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0012637Openbravo ERP09. Financial managementpublic2010-03-10 16:572010-07-29 10:49
networkb 
vmromanos 
urgentmajoralways
closedfixed 
5
2.50MP12 
2.50MP14 
Core
No
0012637: Major issue in 'Recalculate amortization'
We have an asset:
   - amount: 1000
   - Annual Depreciation %: 15
   If the depreciation start date is 01-01-2010, the result is:
     - 01/01/2010 - 31/12/2010 --> Amortization Percentage: 15%
     - 01/01/2011 - 31/12/2011 --> Amortization Percentage: 15%
     - 01/01/2012 - 31/12/2012 --> Amortization Percentage: 15%
     - 01/01/2013 - 31/12/2013 --> Amortization Percentage: 15%
     - 01/01/2014 - 31/12/2014 --> Amortization Percentage: 15%
     - 01/01/2015 - 31/12/2015 --> Amortization Percentage: 25% <-- wrong
-Go to Financial Management || Assets || Assets
-Create a new record:
    - Set depreciate.
    - Annual Depreciation %: 15
    - Purchase date and Depreciation Start date: 01-01-2010
    - Asset Value and Depreciation Amt. : 1000

-Click 'Recalculate Amortization'
-Go to Asset Amortization
The result should be:
    - 01/01/2010 - 31/12/2010 --> Amortization Percentage: 15%
    - 01/01/2011 - 31/12/2011 --> Amortization Percentage: 15%
    - 01/01/2012 - 31/12/2012 --> Amortization Percentage: 15%
    - 01/01/2013 - 31/12/2013 --> Amortization Percentage: 15%
    - 01/01/2014 - 31/12/2014 --> Amortization Percentage: 15%
    - 01/01/2015 - 31/12/2015 --> Amortization Percentage: 15%
    - 01/01/2016 - 31/12/2016 --> Amortization Percentage: 10%
No tags attached.
Issue History
2010-03-10 16:57networkbNew Issue
2010-03-10 16:57networkbAssigned To => dalsasua
2010-03-15 10:30vmromanosStatusnew => scheduled
2010-03-15 10:30vmromanosAssigned Todalsasua => vmromanos
2010-03-15 10:30vmromanosfix_in_branch => pi
2010-03-15 13:47hgbotCheckin
2010-03-15 13:47hgbotNote Added: 0025476
2010-03-15 13:47hgbotStatusscheduled => resolved
2010-03-15 13:47hgbotResolutionopen => fixed
2010-03-15 13:47hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/5707d6344e5f618a9fd43cdb29e79b3c8b389f2f [^]
2010-03-15 18:51hgbotCheckin
2010-03-15 18:51hgbotNote Added: 0025492
2010-03-17 09:00hudsonbotCheckin
2010-03-17 09:00hudsonbotNote Added: 0025547
2010-04-01 09:10arunkumarNote Added: 0025860
2010-04-01 09:10arunkumarStatusresolved => closed
2010-04-02 00:00anonymoussf_bug_id0 => 2980801
2010-07-29 10:49hgbotCheckin
2010-07-29 10:49hgbotNote Added: 0029661

Notes
(0025476)
hgbot   
2010-03-15 13:47   
Repository: erp/devel/pi
Changeset: 5707d6344e5f618a9fd43cdb29e79b3c8b389f2f
Author: Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
Date: Mon Mar 15 13:32:53 2010 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/5707d6344e5f618a9fd43cdb29e79b3c8b389f2f [^]

Fixed bug 12637: Major issue in Recalculate amortization

---
M src-db/database/model/functions/A_ASSET_POST.xml
---
(0025492)
hgbot   
2010-03-15 18:51   
Repository: tools/automation/main
Changeset: 07be4c843e1d1f57aaceafa448ef15ba786e5bb5
Author: Leo Arias <leo.arias <at> openbravo.com>
Date: Mon Mar 15 11:58:11 2010 -0600
URL: http://code.openbravo.com/tools/automation/main/rev/07be4c843e1d1f57aaceafa448ef15ba786e5bb5 [^]

Updated test case ASS0020 Amortize asset by percentage in complete years:
Split the last amortization in 33 and 1 because issue 12637 is solved.

---
M src-test/com/openbravo/test/integration/erp/testcases/smoke/assets/ASS0020_AmortizeAssetByPercentageInCompleteYears.java
---
(0025547)
hudsonbot   
2010-03-17 09:00   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/5707d6344e5f [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/859b8a1e96e9 [^]
Tests: http://builds.openbravo.com/view/devel-int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.16735.obx [^]
(0025860)
arunkumar   
2010-04-01 09:10   
Tested & working fine
(0029661)
hgbot   
2010-07-29 10:49   
Repository: tools/automation/int
Changeset: 17e9e7f473b7b2d5517390d28a6fb5447d158971
Author: Juan Pablo Aroztegi <juanpablo.aroztegi <at> openbravo.com>
Date: Fri Mar 26 14:57:25 2010 +0100
URL: http://code.openbravo.com/tools/automation/int/rev/17e9e7f473b7b2d5517390d28a6fb5447d158971 [^]

Apply changeset 07be4c843e1d from automation/main:

Updated test case ASS0020 Amortize asset by percentage in complete years:
Split the last amortization in 33 and 1 because issue 12637 is solved.

---
M src-test/com/openbravo/test/integration/smoke/assets/I_01_AmortizeAssetByPercentageInCompleteYears.java
---