Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0033301 | Openbravo ERP | 09. Financial management | public | 2016-06-17 10:54 | 2016-06-30 19:13 |
|
Reporter | maite | |
Assigned To | Sanjota | |
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 3.0PR16Q3 | |
Merge Request Status | |
Review Assigned To | aferraz |
OBNetwork customer | OBPS |
Web browser | |
Modules | Core |
Support ticket | 42479 |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0033301: Extra "Asset Amortization" record with total amount of 0 when Asset defined as "Every Month Is 30 Day"= NO |
Description | Extra "Asset Amortization" record with total amount of 0 when Asset defined as "Every Month Is 30 Day"= NO. In case it is defined with "Every Month Is 30 Day"= YES then no extra line is created |
Steps To Reproduce | 1. Access Asset window and create record as follows:
- Depreciate= yes
- Depreciation type= linear
- Calculate type= time
- Amortize= monthly
- Usable life-months=120
- Every month is 30 days= NO
- Purchase date= 19-01-2015
- Depreciation start date= 19-01-2015
- Asset value= 33.82
2. Run Create Amortization process and realize that 121 records have been created in Asset Amortization tab (instead of 120) and that last one hast amount of 0
NOTE: if you delete "Asset Amortization" records, set Every month is 30 days= YES and run process again then 120 records are created |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | 33301.sql (90) 2016-06-30 12:42 https://issues.openbravo.com/file_download.php?file_id=9600&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2016-06-17 10:54 | maite | New Issue | |
2016-06-17 10:54 | maite | Assigned To | => Triage Finance |
2016-06-17 10:54 | maite | OBNetwork customer | => Yes |
2016-06-17 10:54 | maite | Modules | => Core |
2016-06-17 10:54 | maite | Support ticket | => 42479 |
2016-06-17 10:54 | maite | Resolution time | => 1467842400 |
2016-06-17 10:54 | maite | Triggers an Emergency Pack | => No |
2016-06-17 10:54 | maite | Issue Monitored: networkb | |
2016-06-17 14:58 | aferraz | Assigned To | Triage Finance => markmm82 |
2016-06-23 12:30 | aferraz | Assigned To | markmm82 => Sanjota |
2016-06-23 23:33 | Sanjota | File Added: 33301Script.sql | |
2016-06-23 23:37 | Sanjota | Note Added: 0087863 | |
2016-06-23 23:38 | Sanjota | Note Edited: 0087863 | bug_revision_view_page.php?bugnote_id=0087863#r12479 |
2016-06-27 12:14 | psanjuan | Note Edited: 0087863 | bug_revision_view_page.php?bugnote_id=0087863#r12519 |
2016-06-27 12:14 | psanjuan | Note Added: 0087969 | |
2016-06-30 12:41 | aferraz | File Deleted: 33301Script.sql | |
2016-06-30 12:42 | aferraz | File Added: 33301.sql | |
2016-06-30 12:43 | hgbot | Checkin | |
2016-06-30 12:43 | hgbot | Note Added: 0088091 | |
2016-06-30 12:43 | hgbot | Status | new => resolved |
2016-06-30 12:43 | hgbot | Resolution | open => fixed |
2016-06-30 12:43 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/9a7e4cc7bd8fd9e7ae4a647b0852c48905cbf47e [^] |
2016-06-30 12:43 | hgbot | Checkin | |
2016-06-30 12:43 | hgbot | Note Added: 0088092 | |
2016-06-30 12:44 | aferraz | Review Assigned To | => aferraz |
2016-06-30 12:44 | aferraz | Note Added: 0088093 | |
2016-06-30 12:44 | aferraz | Status | resolved => closed |
2016-06-30 12:44 | aferraz | Fixed in Version | => 3.0PR16Q3 |
2016-06-30 12:44 | aferraz | Note Added: 0088094 | |
2016-06-30 19:13 | hudsonbot | Checkin | |
2016-06-30 19:13 | hudsonbot | Note Added: 0088119 | |
2016-06-30 19:13 | hudsonbot | Checkin | |
2016-06-30 19:13 | hudsonbot | Note Added: 0088120 | |
Notes |
|
(0087863)
|
Sanjota
|
2016-06-23 23:37
(edited on: 2016-06-27 12:14) |
|
Test Plan:
1. Access Asset window and create record as follows:
- Depreciate= yes
- Depreciation type= linear
- Calculate type= time
- Amortize= monthly
- Usable life-months=120
- Every month is 30 days= NO
- Purchase date= 19-01-2015
- Depreciation start date= 19-01-2015
- Asset value= 33.82
2. Run Create Amortization process and Observe that 120 records have been created in Asset Amortization tab without having any line with amount=0.
3.- Set Sum function for columns "Amortization Percentage" and "Amortization Amount"
4. Check that "Amortization Percentage" = 100.00 and Amortization Amount = 33.82
NOTE: if you delete now "Asset Amortization" records, and set Every month is 30 days= YES and run process again then 121 records are created without any line with amount =0
Check that:
- monthly amortization percentage is 0.83 but first one (0.35) as depreciation start date = 19-01-2015 and last one (0.88)
- "Amortization Percentage" = 100.00
- and Amortization Amount = 33.82
Also Please find attached script "33301Script.sql", to delete already existing lines with amount=0
|
|
|
|
Test plan above verified.
Issue can be code reviewed and closed. |
|
|
(0088091)
|
hgbot
|
2016-06-30 12:43
|
|
Repository: erp/devel/pi
Changeset: 9a7e4cc7bd8fd9e7ae4a647b0852c48905cbf47e
Author: Sanjota <sanjota.nelagi <at> promantia.com>
Date: Fri Jun 24 02:49:55 2016 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/9a7e4cc7bd8fd9e7ae4a647b0852c48905cbf47e [^]
Fixes issue 33301: Extra "Asset Amortization" record with total amount of 0
Extra "Asset Amortization" record with total amount of 0 when Asset defined as "Every Month Is 30 Day"= NO.
In case it is defined with "Every Month Is 30 Day"= YES then no extra line is created
---
M src/org/openbravo/erpCommon/ad_process/assets/AssetLinearDepreciationMethodProcess.java
---
|
|
|
(0088092)
|
hgbot
|
2016-06-30 12:43
|
|
|
|
|
|
|
|
Attached script to delete wrong data. |
|
|
|
|
|
|
|