Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0023947Openbravo ERP09. Financial managementpublic2013-05-30 17:052013-06-20 02:07
mirurita 
pramakrishnan 
highminoralways
closedfixed 
20Community Appliance
pi 
 
Sandrahuguet
Core
No
0023947: Recalculate amortization process: when searching for existing amortization lines starting date should be ignored
Recalculate amortization process: when searching for existing amortization lines starting date should be ignored

The amortization period is taking based only in the ending date.
Do the same for amortization line search.
1) Create a new asset
Monthly - 5 months - Every Month is 30 days
Start date: 01-10-2013
Amount: 100

2) Calculate amortization
At this point the amortization of December 2013 contains one line.

3) Create a new asset
Percentage - 50%
Start date: 01-01-2013
Amount: 500

4) Calculate amortization

5) Remove the amortization line of 2014 year

6) Click on recalculate amortization button
Realize that the amortization line for 2013 year is created again.

When checking if the amortization line of 2013 exists it does not find because it is using the starting date as filtering criteria.
The start date for this period (it is yearly) is 01-01-2013 but the already existing amortization period (created in step 2) the starting date is 01-12-2013.
Only take in account the ending date when searching an existing amortization line.
(see attached diff)
No tags attached.
diff issue23947_proposedsolution.diff (1,762) 2013-05-30 17:08
https://issues.openbravo.com/file_download.php?file_id=6165&type=bug
Issue History
2013-05-30 17:05miruritaNew Issue
2013-05-30 17:05miruritaAssigned To => dmiguelez
2013-05-30 17:05miruritaModules => Core
2013-05-30 17:05miruritaTriggers an Emergency Pack => No
2013-05-30 17:08miruritaFile Added: issue23947_proposedsolution.diff
2013-05-30 17:08miruritaProposed Solution updated
2013-06-03 07:30pramakrishnanAssigned Todmiguelez => pramakrishnan
2013-06-03 07:34pramakrishnanStatusnew => scheduled
2013-06-03 07:34pramakrishnanfix_in_branch => pi
2013-06-05 15:16pramakrishnanNote Added: 0059187
2013-06-07 08:50hgbotCheckin
2013-06-07 08:50hgbotNote Added: 0059257
2013-06-07 08:50hgbotStatusscheduled => resolved
2013-06-07 08:50hgbotResolutionopen => fixed
2013-06-07 08:50hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/3d39d5fbf84618f038deb2f81aa6092700e631be [^]
2013-06-07 08:55SandrahuguetReview Assigned To => Sandrahuguet
2013-06-07 08:55SandrahuguetNote Added: 0059262
2013-06-07 08:55SandrahuguetStatusresolved => closed
2013-06-20 02:07hudsonbotCheckin
2013-06-20 02:07hudsonbotNote Added: 0059552

Notes
(0059187)
pramakrishnan   
2013-06-05 15:16   
Test Plan:
1) Create a new asset
Percentage - 50%
Start date: 01-01-2013
Amount: 500
2) Calculate amortization
3) Remove the amortization line of 2014 year
4) Click on recalculate amortization button
Realize that the amortization line for 2013 year is not created again
(0059257)
hgbot   
2013-06-07 08:50   
Repository: erp/devel/pi
Changeset: 3d39d5fbf84618f038deb2f81aa6092700e631be
Author: Pandeeswari Ramakrishnan <pandeeswari.ramakrishnan <at> openbravo.com>
Date: Mon Jun 03 11:01:15 2013 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/3d39d5fbf84618f038deb2f81aa6092700e631be [^]

Fixes Issue 23947: Recalculate amortization process
When searching for existing amortization lines starting date should be ignored

---
M src/org/openbravo/erpCommon/ad_process/assets/AssetLinearDepreciationMethodProcess.java
---
(0059262)
Sandrahuguet   
2013-06-07 08:55   
Code review + testing OK
(0059552)
hudsonbot   
2013-06-20 02:07   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/5caf871044ad [^]

Maturity status: Test