Project:
| View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||||
| ID | ||||||||||||
| 0009561 | ||||||||||||
| Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
| design defect | [Openbravo ERP] 00. Application dictionary | minor | have not tried | 2009-06-19 13:21 | 2012-09-13 10:43 | |||||||
| Reporter | FrancescoFinamore | View Status | public | |||||||||
| Assigned To | dmiguelez | |||||||||||
| Priority | high | Resolution | open | Fixed in Version | ||||||||
| Status | scheduled | Fix in branch | Fixed in SCM revision | |||||||||
| Projection | none | ETA | none | Target Version | ||||||||
| OS | Linux 32 bit | Database | PostgreSQL | Java version | 1.6.0_11 | |||||||
| OS Version | rPath Linux | Database version | 8.3.5 | Ant version | 1.7.1 | |||||||
| Product Version | 2.50MP1 | SCM revision | ||||||||||
| Merge Request Status | ||||||||||||
| Review Assigned To | ||||||||||||
| OBNetwork customer | No | |||||||||||
| Web browser | ||||||||||||
| Modules | Core | |||||||||||
| Support ticket | ||||||||||||
| Regression level | ||||||||||||
| Regression date | ||||||||||||
| Regression introduced in release | ||||||||||||
| Regression introduced by commit | ||||||||||||
| Triggers an Emergency Pack | No | |||||||||||
| Summary | 0009561: Default value of Country | |||||||||||
| Description | I have set on Table of Country the Default Country = Italy , but when i try to create a bank account for a Business Partner the Default Value is Spain. On the Tab of BP Bank Account there isn't a Default Value. (The same problem when i try to create a Location) | |||||||||||
| Steps To Reproduce | 1) Go to General Setup || Application || Preference 2) Edit record C_Counrty_ID and set 214 (Italy) SELECT NAME AS COUNTRY, C_COUNTRY_ID AS ID FROM C_COUNTRY WHERE UPPER(NAME) LIKE '%CHINA%' OR UPPER(NAME) LIKE '%ITALY%' 3) Log out and log in again. 4) Go to Master Data Management || Business Partner || Business Partner >> Bank Account and create a new record: Italy is selected by default in Country drop-down: OK 5) Go to Master Data Management || Business Partner || Business Partner >> Location/Address and create a new record: in Location selector Spain is selected by default instead of Italy: WRONG | |||||||||||
| Tags | No tags attached. | |||||||||||
| Attached Files | ||||||||||||
Relationships [ Relation Graph ]
[ Dependency Graph ]
|
|
Notes |
|
|
(0017690) psarobe (viewer) 2009-06-30 19:51 |
Hi Francesco, Please take a look into the preference window. You probably have defined Spain as default country. Waiting for your news |
|
(0018871) luciagu (viewer) 2009-08-07 07:33 |
I have the same question about default country selection. In location search window, the default country remains spain.But I have changed the default country to China. And I go to preference window, finding no definition record about Spain as default country. Can you give some advice? |
|
(0042281) psarobe (viewer) 2011-10-28 18:10 |
The default country is calculated like this: String strDefaultCountry = LocationSearchData.selectDefaultCountry(this, vars.getOrg(), Utility.getContext(this, vars, "#User_Client", strWindow)); if (strDefaultCountry.equals("")) { strDefaultCountry = "106"; And the query for LocationSearchData.selectDefaultCountry is: <SqlMethod name="selectDefaultCountry" type="preparedStatement" return="String"> <SqlMethodComment>Select Organization</SqlMethodComment> <Sql><![CDATA[ SELECT MIN(l.C_COUNTRY_ID) FROM AD_ORG o left join AD_ORGINFO oinf on oinf.AD_ORG_ID = o.AD_ORG_ID left join C_LOCATION l on oinf.C_LOCATION_ID = l.C_LOCATION_ID WHERE ? IN (o.AD_ORG_ID, '0') AND o.ISACTIVE = 'Y' AND o.AD_Client_ID IN ('1') ]]></Sql> <Parameter name="adOrgId"/> <Parameter name="adUserClient" type="replace" optional="true" after="o.AD_Client_ID IN (" text="'1'"/> </SqlMethod> </SqlClass> So it calculates the default country based on the organization info tab of the logged organization. If there is no data then it puts spain |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2009-06-19 13:21 | FrancescoFinamore | New Issue | |
| 2009-06-19 13:21 | FrancescoFinamore | Assigned To | => rafaroda |
| 2009-06-30 19:51 | psarobe | Note Added: 0017690 | |
| 2009-06-30 19:51 | psarobe | Status | new => feedback |
| 2009-08-07 07:33 | luciagu | Note Added: 0018871 | |
| 2009-08-31 11:08 | rafaroda | OBNetwork customer | => No |
| 2009-08-31 11:08 | rafaroda | Assigned To | rafaroda => jeneivemalarkodi |
| 2009-08-31 11:08 | rafaroda | Priority | normal => high |
| 2009-08-31 11:08 | rafaroda | Status | feedback => scheduled |
| 2009-08-31 11:08 | rafaroda | Proposed Solution updated | |
| 2009-08-31 11:09 | rafaroda | Proposed Solution updated | |
| 2010-03-10 11:02 | rafaroda | Assigned To | jeneivemalarkodi => adrianromero |
| 2011-06-03 11:00 | dalsasua | Assigned To | adrianromero => dalsasua |
| 2011-07-20 18:12 | dalsasua | Assigned To | dalsasua => jonalegriaesarte |
| 2011-10-28 18:10 | psarobe | Note Added: 0042281 | |
| 2011-10-28 18:11 | psarobe | Type | defect => design defect |
| 2012-09-13 10:43 | jonalegriaesarte | Assigned To | jonalegriaesarte => dmiguelez |
| Copyright © 2000 - 2009 MantisBT Group |