Fix bug [ 1670614 ] Show ############# in value

This commit is contained in:
Carlos Ruiz 2007-02-28 08:42:07 +00:00
parent 8d220124ad
commit f6f1e7530b
5 changed files with 9 additions and 9 deletions

View File

@ -180,7 +180,7 @@ public interface AdempiereDatabase
* @param displayType Display Type * @param displayType Display Type
* @param AD_Language 6 character language setting (from Env.LANG_*) * @param AD_Language 6 character language setting (from Env.LANG_*)
* *
* @return TRIM(TO_CHAR(columnName,'9G999G990D00','NLS_NUMERIC_CHARACTERS='',.''')) * @return TRIM(TO_CHAR(columnName,'999G999G999G990D00','NLS_NUMERIC_CHARACTERS='',.'''))
* or TRIM(TO_CHAR(columnName,'TM9')) depending on DisplayType and Language * or TRIM(TO_CHAR(columnName,'TM9')) depending on DisplayType and Language
* @see org.compiere.util.DisplayType * @see org.compiere.util.DisplayType
* @see org.compiere.util.Env * @see org.compiere.util.Env

View File

@ -458,7 +458,7 @@ public class DB_Fyracle implements AdempiereDatabase {
* @param AD_Language * @param AD_Language
* 6 character language setting (from Env.LANG_*) * 6 character language setting (from Env.LANG_*)
* *
* @return TRIM(TO_CHAR(columnName,'9G999G990D00','NLS_NUMERIC_CHARACTERS='',.''')) * @return TRIM(TO_CHAR(columnName,'999G999G999G990D00','NLS_NUMERIC_CHARACTERS='',.'''))
* or TRIM(TO_CHAR(columnName,'TM9')) depending on DisplayType and * or TRIM(TO_CHAR(columnName,'TM9')) depending on DisplayType and
* Language * Language
* @see org.compiere.util.DisplayType * @see org.compiere.util.DisplayType
@ -472,10 +472,10 @@ public class DB_Fyracle implements AdempiereDatabase {
// Numbers // Numbers
if (DisplayType.isNumeric(displayType)) { if (DisplayType.isNumeric(displayType)) {
if (displayType == DisplayType.Amount) if (displayType == DisplayType.Amount)
retValue.append(",'9G999G990D00'"); retValue.append(",'999G999G999G990D00'");
else else
retValue.append(",'TM9'"); retValue.append(",'TM9'");
// TO_CHAR(GrandTotal,'9G999G990D00','NLS_NUMERIC_CHARACTERS='',.''') // TO_CHAR(GrandTotal,'999G999G999G990D00','NLS_NUMERIC_CHARACTERS='',.''')
if (!Language.isDecimalPoint(AD_Language)) // reversed if (!Language.isDecimalPoint(AD_Language)) // reversed
retValue.append(",'NLS_NUMERIC_CHARACTERS='',.'''"); retValue.append(",'NLS_NUMERIC_CHARACTERS='',.'''");
} else if (DisplayType.isDate(displayType)) { } else if (DisplayType.isDate(displayType)) {

View File

@ -447,7 +447,7 @@ public class DB_Oracle implements AdempiereDatabase, OracleConnectionCacheCallba
* @param displayType Display Type * @param displayType Display Type
* @param AD_Language 6 character language setting (from Env.LANG_*) * @param AD_Language 6 character language setting (from Env.LANG_*)
* *
* @return TRIM(TO_CHAR(columnName,'9G999G990D00','NLS_NUMERIC_CHARACTERS='',.''')) * @return TRIM(TO_CHAR(columnName,'999G999G999G990D00','NLS_NUMERIC_CHARACTERS='',.'''))
* or TRIM(TO_CHAR(columnName,'TM9')) depending on DisplayType and Language * or TRIM(TO_CHAR(columnName,'TM9')) depending on DisplayType and Language
* @see org.compiere.util.DisplayType * @see org.compiere.util.DisplayType
* @see org.compiere.util.Env * @see org.compiere.util.Env
@ -462,10 +462,10 @@ public class DB_Oracle implements AdempiereDatabase, OracleConnectionCacheCallba
if (DisplayType.isNumeric(displayType)) if (DisplayType.isNumeric(displayType))
{ {
if (displayType == DisplayType.Amount) if (displayType == DisplayType.Amount)
retValue.append(",'9G999G990D00'"); retValue.append(",'999G999G999G990D00'");
else else
retValue.append(",'TM9'"); retValue.append(",'TM9'");
// TO_CHAR(GrandTotal,'9G999G990D00','NLS_NUMERIC_CHARACTERS='',.''') // TO_CHAR(GrandTotal,'999G999G999G990D00','NLS_NUMERIC_CHARACTERS='',.''')
if (!Language.isDecimalPoint(AD_Language)) // reversed if (!Language.isDecimalPoint(AD_Language)) // reversed
retValue.append(",'NLS_NUMERIC_CHARACTERS='',.'''"); retValue.append(",'NLS_NUMERIC_CHARACTERS='',.'''");
} }

View File

@ -338,7 +338,7 @@ public class DB_PostgreSQL implements AdempiereDatabase
* @param displayType Display Type * @param displayType Display Type
* @param AD_Language 6 character language setting (from Env.LANG_*) * @param AD_Language 6 character language setting (from Env.LANG_*)
* *
* @return TRIM(TO_CHAR(columnName,'9G999G990D00','NLS_NUMERIC_CHARACTERS='',.''')) * @return TRIM(TO_CHAR(columnName,'999G999G999G990D00','NLS_NUMERIC_CHARACTERS='',.'''))
* or TRIM(TO_CHAR(columnName,'TM9')) depending on DisplayType and Language * or TRIM(TO_CHAR(columnName,'TM9')) depending on DisplayType and Language
* @see org.compiere.util.DisplayType * @see org.compiere.util.DisplayType
* @see org.compiere.util.Env * @see org.compiere.util.Env

View File

@ -1862,7 +1862,7 @@ public final class DB
* @param displayType Display Type * @param displayType Display Type
* @param AD_Language 6 character language setting (from Env.LANG_*) * @param AD_Language 6 character language setting (from Env.LANG_*)
* *
* @return TRIM(TO_CHAR(columnName,'9G999G990D00','NLS_NUMERIC_CHARACTERS='',.''')) * @return TRIM(TO_CHAR(columnName,'999G999G999G990D00','NLS_NUMERIC_CHARACTERS='',.'''))
* or TRIM(TO_CHAR(columnName,'TM9')) depending on DisplayType and Language * or TRIM(TO_CHAR(columnName,'TM9')) depending on DisplayType and Language
* @see org.compiere.util.DisplayType * @see org.compiere.util.DisplayType
* @see org.compiere.util.Env * @see org.compiere.util.Env