Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0021622Openbravo ERP07. Sales managementpublic2012-09-12 12:342012-09-26 17:19
jonalegriaesarte 
jonalegriaesarte 
normalminorhave not tried
closedfixed 
5
pi 
3.0MP16 
ioritzCia
Core
No
0021622: When loading seconday unit combo in order line callout, the code is different to english and the rest
When loading seconday unit combo in order line callout, the code is different to english and the rest
Code is different:

if (vars.getLanguage().equals("en_US")) {
FieldProvider[] tld = null;
try {
ComboTableData comboTableData = new ComboTableData(vars, this, "TABLE", "",
"M_Product_UOM", "", Utility.getContext(this, vars, "#AccessibleOrgTree",
"SLOrderProduct"),
Utility.getContext(this, vars, "#User_Client", "SLOrderProduct"), 0);
Utility.fillSQLParameters(this, vars, null, comboTableData, "SLOrderProduct", "");
tld = comboTableData.select(false);
comboTableData = null;
} catch (Exception ex) {
throw new ServletException(ex);
}

if (tld != null && tld.length > 0) {
resultado.append("new Array(");
for (int i = 0; i < tld.length; i++) {
resultado.append("new Array(\"" + tld[i].getField("id") + "\", \""
+ FormatUtilities.replaceJS(tld[i].getField("name")) + "\", \"" + ("false") + "\")");
if (i < tld.length - 1) {
resultado.append(",\n");
}
}
resultado.append("\n)");
} else {
resultado.append("null");
}
resultado.append("\n),");
} else {
FieldProvider[] tld = null;
try {
ComboTableData comboTableData = new ComboTableData(vars, this, "TABLE", "",
"M_Product_UOM", "", Utility.getContext(this, vars, "#AccessibleOrgTree",
"SLOrderProduct"),
Utility.getContext(this, vars, "#User_Client", "SLOrderProduct"), 0);
Utility.fillSQLParameters(this, vars, null, comboTableData, "SLOrderProduct", "");
tld = comboTableData.select(false);
comboTableData = null;
} catch (Exception ex) {
throw new ServletException(ex);
}

if (tld != null && tld.length > 0) {
resultado.append("new Array(");
for (int i = 0; i < tld.length; i++) {
resultado.append("new Array(\"" + tld[i].getField("id") + "\", \""
+ FormatUtilities.replaceJS(tld[i].getField("name")) + "\", \""
+ (i == 0 ? "true" : "false") + "\")");
if (i < tld.length - 1) {
resultado.append(",\n");
}
}
resultado.append("\n)");
} else {
resultado.append("null");
}
resultado.append("\n),");
}
No tags attached.
Issue History
2012-09-12 12:34jonalegriaesarteNew Issue
2012-09-12 12:34jonalegriaesarteAssigned To => jonalegriaesarte
2012-09-12 12:34jonalegriaesarteModules => Core
2012-09-12 12:55hgbotCheckin
2012-09-12 12:55hgbotNote Added: 0052015
2012-09-12 12:55hgbotStatusnew => resolved
2012-09-12 12:55hgbotResolutionopen => fixed
2012-09-12 12:55hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/671346f6a4206abf0c86b0fde09b51fef890205a [^]
2012-09-12 13:15jonalegriaesarteClosed by => ioritzCia
2012-09-24 18:32ioritzCiaNote Added: 0052370
2012-09-24 18:32ioritzCiaStatusresolved => closed
2012-09-26 17:19hudsonbotCheckin
2012-09-26 17:19hudsonbotNote Added: 0052733

Notes
(0052015)
hgbot   
2012-09-12 12:55   
Repository: erp/devel/pi
Changeset: 671346f6a4206abf0c86b0fde09b51fef890205a
Author: Jon Alegría <jon.alegria <at> openbravo.com>
Date: Wed Sep 12 12:55:04 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/671346f6a4206abf0c86b0fde09b51fef890205a [^]

Fixes issue 0021622: When loading seconday unit combo in order line callout,
the code is different to english and the rest

---
M src/org/openbravo/erpCommon/ad_callouts/SL_Order_Product.java
---
(0052370)
ioritzCia   
2012-09-24 18:32   
Verified
(0052733)
hudsonbot   
2012-09-26 17:19   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/b780e90c6452 [^]

Maturity status: Test