Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0020828
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 09. Financial managementmajoralways2012-06-21 16:392012-07-30 23:35
ReporterngarciaView Statuspublic 
Assigned ToioritzCia 
PriorityurgentResolutionfixedFixed in Version3.0MP14
StatusclosedFix in branchFixed in SCM revision3705932614c0
ProjectionnoneETAnoneTarget Version3.0MP14
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0020828: The amortization of an asset cannot be recalculated in some cases

DescriptionThe 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).
Steps To ReproduceAs 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

      
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0021656 closedjecharri The reamortization of an asset cannot be calculated 

-  Notes
(0050285)
jonalegriaesarte (reporter)
2012-06-29 13:33

Moved to MP14 due to other priorities
(0050800)
hgbot (developer)
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 (developer)
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 (developer)
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 (developer)
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 (developer)
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

- Issue History
Date Modified Username Field Change
2012-06-21 16:39 ngarcia New Issue
2012-06-21 16:39 ngarcia Assigned To => mirurita
2012-06-21 16:39 ngarcia Modules => Core
2012-06-21 16:39 ngarcia Resolution time => 1342994400
2012-06-21 16:39 ngarcia Issue Monitored: networkb
2012-06-21 16:45 mirurita Assigned To mirurita => jonalegriaesarte
2012-06-25 13:20 jonalegriaesarte Assigned To jonalegriaesarte => ioritzCia
2012-06-29 09:51 jecharri Assigned To ioritzCia => jecharri
2012-06-29 13:33 jonalegriaesarte Note Added: 0050285
2012-06-29 13:33 jonalegriaesarte Target Version 3.0MP13 => 3.0MP14
2012-07-12 10:04 jecharri Assigned To jecharri => ioritzCia
2012-07-24 09:20 hgbot Checkin
2012-07-24 09:20 hgbot Note Added: 0050800
2012-07-24 09:20 hgbot Status new => resolved
2012-07-24 09:20 hgbot Resolution open => fixed
2012-07-24 09:20 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/3705932614c014d360e0ef6585314225acf4dc24 [^]
2012-07-24 13:27 ioritzCia Note Added: 0050806
2012-07-26 02:42 hudsonbot Checkin
2012-07-26 02:42 hudsonbot Note Added: 0050872
2012-07-30 12:30 hgbot Checkin
2012-07-30 12:30 hgbot Note Added: 0050981
2012-07-30 14:03 ngarcia Status resolved => closed
2012-07-30 14:03 ngarcia Fixed in Version => 3.0MP14
2012-07-30 23:35 hudsonbot Checkin
2012-07-30 23:35 hudsonbot Note Added: 0051020
2012-09-14 13:53 ngarcia Relationship added related to 0021656
2012-09-18 18:07 jecharri Relationship added related to 0021682
2012-09-18 18:07 jecharri Relationship deleted related to 0021682


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker