Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0013310 | Openbravo ERP | 09. Financial management | public | 2010-05-13 10:51 | 2010-06-30 12:17 |
|
Reporter | networkb | |
Assigned To | sathiyan | |
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 20 | OS Version | Community Appliance |
Product Version | 2.40MP12 | |
Target Version | 2.40MP13 | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | OBPS |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0013310: the sum of amounts of amortization line is higher than amortization amount |
Description | when the amounts to amortization is low, and the number of months is high, the sum of amounts of amortization line is higher than amortization amount.
This problem has been reproducible in 2.50mp14 and 2.40 mp12.6 |
Steps To Reproduce | . Financial Management || Assets || Assets || Assets >> Asset Amortization
. Depreciate checked
. Depreciation Type: linear
. Calculate Type: time
. Amortize: monthly
. Usable Life - Months : 318
. Depreciation Start Date: 01/01/2009
. Asset Value: 21.04
. Residual Asset Value: 0
. Depreciation Amt: 21.04
. Previously Depreciated Amt: 3.3
. run "create amortization"
.Financial Management || Assets || Assets || Assets >> Asset Amortization
. 317 lines have been created, and the amounts of each of them is 0.06
the amount to amortization is 21.04 - 3.3 = 17.74
the sum of value of lines is 317*0.06 = 19.02
|
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | has duplicate | backport | 0013316 | 2.40MP13 | closed | dalsasua | the sum of amounts of amortization line is higher than amortization amount |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2010-05-13 10:51 | networkb | New Issue | |
2010-05-13 10:51 | networkb | Assigned To | => dalsasua |
2010-05-13 10:51 | networkb | OBNetwork customer | => Yes |
2010-05-13 16:29 | networkb | Target Version | => 2.40MP13 |
2010-05-13 16:31 | adrianromero | Status | new => scheduled |
2010-05-13 16:31 | adrianromero | fix_in_branch | => pi |
2010-05-13 16:31 | adrianromero | Issue cloned | 0013316 |
2010-05-13 16:33 | adrianromero | Relationship added | depends on 0013316 |
2010-06-11 10:45 | sathiyan | Assigned To | dalsasua => sathiyan |
2010-06-14 05:07 | sathiyan | Note Added: 0028334 | |
2010-06-15 06:46 | sathiyan | Note Added: 0028413 | |
2010-06-15 06:46 | sathiyan | Assigned To | sathiyan => networkb |
2010-06-15 06:46 | sathiyan | Status | scheduled => feedback |
2010-06-16 19:11 | networkb | Note Added: 0028528 | |
2010-06-16 19:12 | networkb | Status | feedback => new |
2010-06-16 19:12 | networkb | fix_in_branch | pi => |
2010-06-16 19:19 | networkb | Assigned To | networkb => sathiyan |
2010-06-17 07:41 | sathiyan | Note Added: 0028535 | |
2010-06-17 12:47 | adrianromero | Status | new => scheduled |
2010-06-17 12:47 | adrianromero | fix_in_branch | => pi |
2010-06-21 12:38 | networkb | Severity | major => minor |
2010-06-21 12:38 | networkb | fix_in_branch | pi => |
2010-06-21 18:13 | dalsasua | Note Added: 0028634 | |
2010-06-21 18:15 | hgbot | Checkin | |
2010-06-21 18:15 | hgbot | Note Added: 0028635 | |
2010-06-21 18:15 | hgbot | Status | scheduled => resolved |
2010-06-21 18:15 | hgbot | Resolution | open => fixed |
2010-06-21 18:15 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/3e46e3bc3c893cc61c1da981ce215958826fc3f1 [^] |
2010-06-22 17:17 | hgbot | Checkin | |
2010-06-22 17:17 | hgbot | Note Added: 0028682 | |
2010-06-22 17:17 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/3e46e3bc3c893cc61c1da981ce215958826fc3f1 [^] => http://code.openbravo.com/erp/devel/pi/rev/aa32a90dfb165fab41c97ed4e7b6c668c84847e5 [^] |
2010-06-23 00:17 | dalsasua | Relationship replaced | has duplicate 0013316 |
2010-06-23 00:20 | hgbot | Checkin | |
2010-06-23 00:20 | hgbot | Note Added: 0028688 | |
2010-06-23 00:20 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/aa32a90dfb165fab41c97ed4e7b6c668c84847e5 [^] => http://code.openbravo.com/erp/devel/pi/rev/c12224b72fbbb49b010bbf1c43fa0b5277fe9f0f [^] |
2010-06-24 07:38 | sureshbabu | Note Added: 0028718 | |
2010-06-24 07:38 | sureshbabu | Status | resolved => closed |
2010-06-25 00:00 | anonymous | sf_bug_id | 0 => 3021055 |
2010-06-30 12:16 | hudsonbot | Checkin | |
2010-06-30 12:16 | hudsonbot | Note Added: 0028887 | |
2010-06-30 12:17 | hudsonbot | Checkin | |
2010-06-30 12:17 | hudsonbot | Note Added: 0028893 | |
2010-06-30 12:17 | hudsonbot | Checkin | |
2010-06-30 12:17 | hudsonbot | Note Added: 0028896 | |
Notes |
|
|
Total Amount is higher for 0.06. Total amount is lower for 0.05. How we can help for this case, since client has two digit precision as rounding. It is not technically feasible. This test case scenario is not practical in real time business. who will go for huge number of months for amartization plan for small amount. We can have asset group for very low value assets as an long term solution. |
|
|
|
Please see my note section |
|
|
|
yes, when the amount is low and the number of months is high, this problem is generated, but the aplication should work fine in this cases. |
|
|
|
I can talk to David(he is my lead) regarding this. We have to come up with some break even point in the number of month(if exceed in beyond certain number of months, it will give problem(either higher or lower in amount), it is called break even point of months). If end user gives that beyond the number of months, we have to give error messages.
For example scenario(say our case):
317*0.06 = 19.02
317*0.05 = 15.85
However the amount should be 17.74. There is no choice of choosing the amount between 0.05 and 0.06, since only two digit of precision allowed. So we have other choice of forcing to reduce the number of month. for example if it is 296 months,
296*0.06 = 17.76 (we can go for rounding with floor or Ceil for last months about .02 make sense)
Is that fine solution for you?
Regards
Sathiyan. |
|
|
|
In order to fix this bug several changes have been made:
Currently in the last amortization, an adjustment is done in the last amortization, so rounding differences are fixed. Problem reported in this issue is that if the amount is too big and/or the amount of time is very big, then this rounding differences are quite big, compared with asset value, and even bigger than the amortization amount of the last amortization. If this was the case, last amortization was not created, as negative amounts are not allowed.
What I have done is:
- Detect this rounding issue, and throw an exception.
- Detect as well if, finished the process, the amount to amortize is different from the asset value, and throw an error
- Detect that the percentage to amortize is not different to 100 |
|
|
(0028635)
|
hgbot
|
2010-06-21 18:15
|
|
Repository: erp/devel/pi
Changeset: 3e46e3bc3c893cc61c1da981ce215958826fc3f1
Author: David Alsasua <david.alsasua <at> openbravo.com>
Date: Mon Jun 21 18:15:00 2010 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/3e46e3bc3c893cc61c1da981ce215958826fc3f1 [^]
Fixes issue 13310
Rounding issues are detected
At the end of the process it's ensured that amortized percentage is 100%
and amortized amount = asset value
---
M src-db/database/model/functions/A_ASSET_POST.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
---
|
|
|
(0028682)
|
hgbot
|
2010-06-22 17:17
|
|
|
|
(0028688)
|
hgbot
|
2010-06-23 00:20
|
|
|
|
|
Right now system throws below error message, if the amount is too low or the periods are too big.
Error:An amortization plan cannot be created for so low amount and / or so big amount of time |
|
|
|
|
|
|
|
|
|
|