Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0027530Openbravo ERP09. Financial managementpublic2014-09-02 17:052014-12-30 23:28
maite 
reinaldoguerra 
highminoralways
closedfixed 
5
 
3.0PR15Q1pi 
umartirena
Core
No
0027530: It is not possible to run "Create Amortization" process having 2 amortization records for same org and date in Draft status
It is not possible to run "Create Amortization" process having 2 amortization records for same org and date in Draft status
1. Access "Amortization" window, choose record with name 31-12-2014 and Process it
2. Access "Assets" window and create new record for
  Organization= España
  Depreciate= yes
  Depreciation type= linear
  Calculate type= time
  Amortize= monthly
  Usable life= 30
  Purchase Date= today
  Depreciation start date= today
  Depreciation amount= 1000
Run "Create amortization" process
3. Access "Amortization" window, search just created record with name 31-12-2014 and Unprocess it
4. Repeat step 2. Run "Create amortization" process and error will be raised
Should be possible to have several "Amortization" records in Draft status
No tags attached.
Issue History
2014-09-02 17:05maiteNew Issue
2014-09-02 17:05maiteAssigned To => dmiguelez
2014-09-02 17:05maiteModules => Core
2014-09-02 17:05maiteResolution time => 1415919600
2014-09-02 17:05maiteTriggers an Emergency Pack => No
2014-09-02 17:05maiteTarget Version => 3.0PR14Q4
2014-09-02 17:06maiteIssue Monitored: networkb
2014-09-22 16:36jonalegriaesarteTarget Version3.0PR14Q4 => 3.0PR15Q1
2014-10-31 13:09dmitry_mezentsevAssigned Todmiguelez => Sandrahuguet
2014-11-20 17:09maiteSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=7114#r7114
2014-11-22 17:07reinaldoguerraAssigned ToSandrahuguet => reinaldoguerra
2014-11-22 17:07reinaldoguerraStatusnew => scheduled
2014-12-23 00:42reinaldoguerraNote Added: 0072785
2014-12-29 10:12hgbotCheckin
2014-12-29 10:12hgbotNote Added: 0072848
2014-12-29 10:12hgbotStatusscheduled => resolved
2014-12-29 10:12hgbotResolutionopen => fixed
2014-12-29 10:12hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/73cd159d83fb9369d8d79a33675c542d3a47f775 [^]
2014-12-29 17:33umartirenaNote Added: 0072859
2014-12-29 17:33umartirenaReview Assigned To => umartirena
2014-12-29 17:33umartirenaStatusresolved => closed
2014-12-29 17:33umartirenaFixed in Version => pi
2014-12-30 23:28hudsonbotCheckin
2014-12-30 23:28hudsonbotNote Added: 0073273

Notes
(0072785)
reinaldoguerra   
2014-12-23 00:42   
Test plan used:
1- Login into Openbravo ERP
2- Access "Amortization" window, choose record with name 31-12-2014 for España S.A organization and Process it.
3- Access "Assets" window and create new record for:
  Organization= España S.A
  Depreciate= yes
  Depreciation type= linear
  Calculate type= time
  Amortize= monthly
  Usable life= 30
  Purchase Date= today
  Depreciation start date= today
  Depreciation amount= 1000
4- Run "Create amortization" process
5- Access "Amortization" window, search again the record with name 31-12-2014 (same as step 2) and Unprocess it. You can find now two amortizations for the same organization with name 31-12-2014 and in draft status.
6- Repeat step 2. Run "Create amortization" process and error will be raised with a correct message: there is no possible to create amortizations having two of them in draft status, for the same organization and dates range.
(0072848)
hgbot   
2014-12-29 10:12   
Repository: erp/devel/pi
Changeset: 73cd159d83fb9369d8d79a33675c542d3a47f775
Author: Reinaldo Guerra <reinaldo.guerra <at> peoplewalking.com>
Date: Wed Dec 24 10:19:35 2014 -0500
URL: http://code.openbravo.com/erp/devel/pi/rev/73cd159d83fb9369d8d79a33675c542d3a47f775 [^]

Fixed bug 27530: Wrong error message having 2 amortization in Draft status.

Create amortization process in class named AssetLinearDepreciationMethodProcess was changed to show correctly an error message when retrieving more than one amortization in draft status, for the same organization and range of dates.
Now when trying to create a new amortization, and exists two or more amorizations for the same organization and dates in draft status, a correct message will be shown.

---
M src/org/openbravo/erpCommon/ad_process/assets/AssetLinearDepreciationMethodProcess.java
---
(0072859)
umartirena   
2014-12-29 17:33   
Code Review and Testing OK
(0073273)
hudsonbot   
2014-12-30 23:28   
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/6525fe229e06 [^]
Maturity status: Test