* [ 1637912 ] Import Table with DateAcct bug

This commit is contained in:
Heng Sin Low 2007-01-18 14:00:49 +00:00
parent 051b2a0594
commit a539cc5a49
1 changed files with 10 additions and 1 deletions

View File

@ -212,6 +212,14 @@ public class TableCreateColumns extends SvrProcess
{
element = new M_Element (getCtx (), columnName, p_EntityType,
get_TrxName ());
//contribution from teo_sarca, bug [ 1637912 ]
//create column and element using the same case as the table,
//and the name & description from table
if (columnName.equalsIgnoreCase (table.getTableName() + "_ID")) {
element.setColumnName(table.getTableName() + "_ID");
element.setName(table.getName());
element.setPrintName(table.getName());
}
element.save ();
}
column.setColumnName (element.getColumnName ());
@ -229,7 +237,8 @@ public class TableCreateColumns extends SvrProcess
column.setIsUpdateable(false);
}
// Account
else if (columnName.toUpperCase ().indexOf ("ACCT") != -1
// bug [ 1637912 ]
else if (columnName.toUpperCase ().endsWith("_ACCT")
&& size == 10)
column.setAD_Reference_ID (DisplayType.Account);
// Account