Openbravo Issue Tracking System - Modules
View Issue Details
0028572ModulesService Contract Managementpublic2015-01-12 17:582015-02-10 10:50
VictorVillar 
vmromanos 
urgentmajoralways
closedno change required 
5
 
 
Sandrahuguet
0028572: Service Contract showing incorrect currency and storing incorrect currency in the table
It is necessary to push the commit [1] to the regular branch.

[1] https://issues.openbravo.com/view.php?id=26427 [^]

Incorrect currency is displayed on the screen and stored in the table c_project
1. Make sure multiple currencies are enabled in the system.
3. Create products
2. Define a price list with USD currency and include some product in the price list version. (e.g. Price list name = SUBSCRIPTION CURRENT COMMERCIAL)
3. Create a service contract header (lets call this a subscription header) using the price list as in step2.
4. Now save the header record. You will notice that it showing currency different than what is on the price list.
5. Refresh the subscription header by clicking on the refresh button in the green toolbar. You will notice that currency is refreshed to USD.
6. Now check the data in the database (we are using Oracle), currency is still the same as what was initially shown on the screen. Below is the query to check this

select c_project_id, b.c_currency_id, b.ISO_CODE
from tad.c_project a,tad.c_currency b
where a.value= <input_value> and a.c_currency_id=b.c_currency_id
;

Screenshot is attached for your reference.

We are expecting that screen will show the currency correctly the first time as well as store the currency in table correctly.
No tags attached.
related to defect 0026427 closed vmromanos Service Contract showing incorrect currency and storing incorrect currency in the table 
Issue History
2015-01-12 17:58VictorVillarNew Issue
2015-01-12 17:58VictorVillarAssigned To => vmromanos
2015-01-12 17:58VictorVillarIssue generated from0026427
2015-01-12 18:01VictorVillarRelationship addedrelated to 0026427
2015-01-12 18:01VictorVillarResolution time => 1423695600
2015-01-12 18:02VictorVillarIssue Monitored: networkb
2015-02-10 10:50SandrahuguetReview Assigned To => Sandrahuguet
2015-02-10 10:50SandrahuguetNote Added: 0074315
2015-02-10 10:50SandrahuguetStatusnew => closed
2015-02-10 10:50SandrahuguetResolutionopen => no change required

Notes
(0074315)
Sandrahuguet   
2015-02-10 10:50   
Transplanted to default branch:
https://code.openbravo.com/erp/pmods/org.openbravo.contract.services/rev/0d73225eb0a3 [^]

Note that the currency field is hidden (because this value is not used by contract modules).