Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0021441Openbravo ERP09. Financial managementpublic2012-08-24 08:422012-08-31 09:09
vmromanos 
vmromanos 
normalminorN/A
closedfixed 
20Debian 5.0
 
3.0MP15 
naiaramartinez
Core
No
0021441: Add project field to the Assets window
The Assets window currently doesn't have a Project field.
When creating an amortization from a asset, the system creates several amortization documents with an empty project.
It would be great to add the project field to the Assets window and to modify the calculate amortization process to automatically fill the project field into the amortization document
See desc.
1. Create a new Project field into the Assets window. It must have associated the new project selector
2. This field will only be displayed in case the project accounting dimension is set and for assets that can be deprecated (deprecated flag = Y)
3. When running a create amortization process, it must take into account the value of the project field
Coworking
Issue History
2012-08-24 08:42vmromanosNew Issue
2012-08-24 08:42vmromanosAssigned To => vmromanos
2012-08-24 08:42vmromanosModules => Core
2012-08-24 08:42vmromanosTag Attached: Coworking
2012-08-24 08:42vmromanosStatusnew => scheduled
2012-08-24 08:42vmromanosfix_in_branch => pi
2012-08-24 09:16vmromanosNote Added: 0051526
2012-08-24 09:17vmromanosNote Edited: 0051526bug_revision_view_page.php?bugnote_id=0051526#r3758
2012-08-27 08:49hgbotCheckin
2012-08-27 08:49hgbotNote Added: 0051553
2012-08-27 08:49hgbotStatusscheduled => resolved
2012-08-27 08:49hgbotResolutionopen => fixed
2012-08-27 08:49hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/f0e539b566019f1af4ae1f9bc3590d536235d35b [^]
2012-08-31 09:09naiaramartinezClosed by => naiaramartinez
2012-08-31 09:09naiaramartinezNote Added: 0051697
2012-08-31 09:09naiaramartinezStatusresolved => closed

Notes
(0051526)
vmromanos   
2012-08-24 09:16   
(edited on: 2012-08-24 09:17)
Test Plan I:
0. Go to Asset Category window and create a new record.
1. Go to Assets window.
2. Create a new record. Values:
  Name = search key = n1
  Currency = EUR
  Depreciate = Y
  Depreciation Type = Linear
  Calculate Type = Percentage
  Annual Depreciation = 20%
  Depreciation Start Date = 01-01-2013
  Asset Value = 5000
  Depreciation Amt = 5000
  Project = NULL
3. Run Calculate amortization process
4. Ensure the Asset Amortization tab contains 5 records.
5. Navigate to any of them (Amortization window) and ensure the project field is empty

Test Plan II:
1. Go to Assets window.
2. Create a new record. Values:
  Name = search key = n2
  Currency = EUR
  Depreciate = Y
  Depreciation Type = Linear
  Calculate Type = Percentage
  Annual Depreciation = 20%
  Depreciation Start Date = 01-01-2013
  Asset Value = 5000
  Depreciation Amt = 5000
  Project = <any> (create it in case your system doesn't have one)
3. Run Calculate amortization process
4. Ensure the Asset Amortization tab contains 5 records.
5. Navigate to any of them (Amortization window) and ensure the project field is set.
6. In the Amortization window check that we have two different headers per year: one with an empty project, and the other one with a project set

Test Plan III:
1. Go to Assets window.
2. Create a new record. Values:
  Name = search key = n3
  Currency = EUR
  Depreciate = Y
  Depreciation Type = Linear
  Calculate Type = Percentage
  Annual Depreciation = 20%
  Depreciation Start Date = 01-01-2013
  Asset Value = 5000
  Depreciation Amt = 5000
  Project = <project set in test plan II>
3. Run Calculate amortization process
4. Ensure the Asset Amortization tab contains 5 records.
5. Navigate to any of them (Amortization window) and ensure the project field is set.
6. Inside this amortization document, we should have two lines: for asset n2 and asset n3
7. In the Amortization window check that we have two different headers per year: one with an empty project, and the other one with a project set

(0051553)
hgbot   
2012-08-27 08:49   
Repository: erp/devel/pi
Changeset: f0e539b566019f1af4ae1f9bc3590d536235d35b
Author: Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
Date: Fri Aug 24 09:38:57 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/f0e539b566019f1af4ae1f9bc3590d536235d35b [^]

Fixed issue 21441: Add project field to the Assets window

+This field will only be displayed in case the project accounting dimension
is set and for assets that can be deprecated (depreciate flag = Y)
+ The Calculate amortization process takes into account the project field

---
M src-db/database/model/functions/A_ASSET_POST.xml
M src-db/database/model/tables/A_ASSET.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_FIELD.xml
---
(0051697)
naiaramartinez   
2012-08-31 09:09   
Code review + testing OK