Merge e086d46d16d4

This commit is contained in:
Heng Sin Low 2013-04-30 17:43:35 +08:00
commit 7e2d033a5b
2 changed files with 7 additions and 4 deletions

View File

@ -241,9 +241,12 @@ public class MPackage extends X_M_Package
if (getBoxCount() > 0 && getBoxCount() - packageMPSCount > 0)
{
MPackageMPS packageMPS = new MPackageMPS(getCtx(), 0, get_TrxName());
packageMPS.setM_Package_ID(getM_Package_ID());
packageMPS.saveEx();
for (int i = 0; i < getBoxCount() - packageMPSCount; i++)
{
MPackageMPS packageMPS = new MPackageMPS(getCtx(), 0, get_TrxName());
packageMPS.setM_Package_ID(getM_Package_ID());
packageMPS.saveEx();
}
}
return success;

View File

@ -100,7 +100,7 @@ public class ADLookup {
if (isUUID(text))
{
sql.append("SELECT ").append(m_keyColumnName).append(" FROM ").append(m_tableName)
.append(" WHERE ").append(m_tableName).append("_UU=").append(DB.TO_STRING(text));
.append(" WHERE ").append(m_tableName).append("_UU=").append(DB.TO_STRING(text.toLowerCase()));
}
else if (m_columnName.equals("M_Product_ID"))
{