Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020828Openbravo ERP09. Financial managementpublic2012-06-21 16:392012-07-30 23:35
ngarcia 
ioritzCia 
urgentmajoralways
closedfixed 
5
pi 
3.0MP143.0MP14 
Core
No
0020828: The amortization of an asset cannot be recalculated in some cases
The amortization of an asset cannot be recalculated in some cases

There is a condition at the end of the a_asset_post function which raises an exception if the inserted lines plus the depreciated ones are not the same as the Usable Life of the product (one more if the depreciation start date is different from the 1st of the month for Monthly depreciation. Something similar for years).
As a group admin role:
   Go to the Asset Group window and create a new record
   Go to the Asset window and create a new record
      Choose the group created before as an Asset Category
      Select the Depreciate checkbox
      Choose Time in the Calculate Type dropdown list
      Choose Montlhy in the Amortize dropdown list
      Insert 24 as Usable Life
      Select the 19 of the actual month for both the Purchase Date and Depreciation Start Date
      Insert 1500 as the Asset Value
      Click the Create Amortization button
   Navigate through the link to the Amortization of the first line
   Process it
   Go back to the Asset window and delete the rest of lines
   Click the Recalculate Amortization button
   Notice that the following error raises:
An amortization plan cannot be created for so low amount and / or so big amount of time
   Insert 21 as Usable Life and click the Recalculate Amortization button
   Notice that now it is created succesfully

      
No tags attached.
related to defect 0021656 closed jecharri The reamortization of an asset cannot be calculated 
Issue History
2012-06-21 16:39ngarciaNew Issue
2012-06-21 16:39ngarciaAssigned To => mirurita
2012-06-21 16:39ngarciaModules => Core
2012-06-21 16:39ngarciaResolution time => 1342994400
2012-06-21 16:39ngarciaIssue Monitored: networkb
2012-06-21 16:45miruritaAssigned Tomirurita => jonalegriaesarte
2012-06-25 13:20jonalegriaesarteAssigned Tojonalegriaesarte => ioritzCia
2012-06-29 09:51jecharriAssigned ToioritzCia => jecharri
2012-06-29 13:33jonalegriaesarteNote Added: 0050285
2012-06-29 13:33jonalegriaesarteTarget Version3.0MP13 => 3.0MP14
2012-07-12 10:04jecharriAssigned Tojecharri => ioritzCia
2012-07-24 09:20hgbotCheckin
2012-07-24 09:20hgbotNote Added: 0050800
2012-07-24 09:20hgbotStatusnew => resolved
2012-07-24 09:20hgbotResolutionopen => fixed
2012-07-24 09:20hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/3705932614c014d360e0ef6585314225acf4dc24 [^]
2012-07-24 13:27ioritzCiaNote Added: 0050806
2012-07-26 02:42hudsonbotCheckin
2012-07-26 02:42hudsonbotNote Added: 0050872
2012-07-30 12:30hgbotCheckin
2012-07-30 12:30hgbotNote Added: 0050981
2012-07-30 14:03ngarciaStatusresolved => closed
2012-07-30 14:03ngarciaFixed in Version => 3.0MP14
2012-07-30 23:35hudsonbotCheckin
2012-07-30 23:35hudsonbotNote Added: 0051020
2012-09-14 13:53ngarciaRelationship addedrelated to 0021656
2012-09-18 18:07jecharriRelationship addedrelated to 0021682
2012-09-18 18:07jecharriRelationship deletedrelated to 0021682

Notes
(0050285)
jonalegriaesarte   
2012-06-29 13:33   
Moved to MP14 due to other priorities
(0050800)
hgbot   
2012-07-24 09:20   
Repository: erp/devel/pi
Changeset: 3705932614c014d360e0ef6585314225acf4dc24
Author: Ioritz Cia <ioritz.cia <at> openbravo.com>
Date: Mon Jul 23 12:50:41 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/3705932614c014d360e0ef6585314225acf4dc24 [^]

Fixes issue 20828: The amortization of an asset cannot be recalculated in some cases.

---
M src-db/database/model/functions/A_ASSET_POST.xml
---
(0050806)
ioritzCia   
2012-07-24 13:27   
Testing Plan:

Follow the steps to reproduce.
It is not needed to process the amortization line you are not going to remove.
Try it with Yearly amortization type too, as the error was happening here to.
Try it with start dates in the middle of the month and with the first day of the month, as it behaves differently.
(0050872)
hudsonbot   
2012-07-26 02:42   
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/5edf203d5780 [^]

Maturity status: Test
(0050981)
hgbot   
2012-07-30 12:30   
Repository: erp/devel/pi
Changeset: 5f9d5073728d4b8c14122da755b63381a4fb51a6
Author: Ioritz Cia <ioritz.cia <at> openbravo.com>
Date: Fri Jul 27 14:27:55 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/5f9d5073728d4b8c14122da755b63381a4fb51a6 [^]

Related to issue 20828: Depreciated lines discounted from the inserted ones.

---
M src-db/database/model/functions/A_ASSET_POST.xml
---
(0051020)
hudsonbot   
2012-07-30 23:35   
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/1555c04652b7 [^]

Maturity status: Test