hg merge release-2.0 (merge release2 into development)

This commit is contained in:
Carlos Ruiz 2013-11-15 10:30:35 -05:00
commit 440b94c171
10 changed files with 27 additions and 7 deletions

View File

@ -0,0 +1,7 @@
SET SQLBLANKLINES ON
SET DEFINE OFF
-- Nov 7, 2013 9:30:44 PM ICT
UPDATE AD_Field SET SeqNo=70, IsDisplayed='Y', XPosition=1,Updated=TO_DATE('2013-11-07 21:30:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=60934
;

View File

@ -0,0 +1,4 @@
-- Nov 7, 2013 9:30:44 PM ICT
UPDATE AD_Field SET SeqNo=70, IsDisplayed='Y', XPosition=1,Updated=TO_TIMESTAMP('2013-11-07 21:30:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=60934
;

View File

@ -23,6 +23,7 @@ import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.logging.Level;
import org.adempiere.exceptions.AdempiereException;
import org.compiere.model.I_C_InvoiceLine;
import org.compiere.model.MInOut;
import org.compiere.model.MInOutLine;
@ -112,7 +113,7 @@ public class InOutGenerateRMA extends SvrProcess
}
catch (Exception ex)
{
log.log(Level.SEVERE, sql, ex);
throw new AdempiereException(ex);
}
finally
{

View File

@ -23,6 +23,7 @@ import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.logging.Level;
import org.adempiere.exceptions.AdempiereException;
import org.compiere.model.MInvoice;
import org.compiere.model.MInvoiceLine;
import org.compiere.model.MRMA;
@ -107,7 +108,7 @@ public class InvoiceGenerateRMA extends SvrProcess
}
catch (Exception ex)
{
log.log(Level.SEVERE, sql, ex);
throw new AdempiereException(ex);
}
finally
{

View File

@ -24,6 +24,7 @@ import java.util.ArrayList;
import java.util.HashMap;
import java.util.logging.Level;
import org.adempiere.exceptions.AdempiereException;
import org.compiere.model.MClient;
import org.compiere.model.MInOut;
import org.compiere.model.MInOutLine;
@ -196,7 +197,7 @@ public class InOutGenerate extends SvrProcess
}
catch (Exception e)
{
log.log(Level.SEVERE, m_sql.toString(), e);
throw new AdempiereException(e);
}
return generate(pstmt);
} // doIt
@ -396,7 +397,7 @@ public class InOutGenerate extends SvrProcess
}
catch (Exception e)
{
log.log(Level.SEVERE, m_sql.toString(), e);
throw new AdempiereException(e);
}
finally
{

View File

@ -22,6 +22,7 @@ import java.sql.ResultSet;
import java.sql.Timestamp;
import java.util.logging.Level;
import org.adempiere.exceptions.AdempiereException;
import org.compiere.model.MBPartner;
import org.compiere.model.MClient;
import org.compiere.model.MCurrency;
@ -178,7 +179,7 @@ public class InvoiceGenerate extends SvrProcess
}
catch (Exception e)
{
log.log(Level.SEVERE, sql.toString(), e);
throw new AdempiereException(e);
}
return generate(pstmt);
} // doIt
@ -324,7 +325,7 @@ public class InvoiceGenerate extends SvrProcess
}
catch (Exception e)
{
log.log(Level.SEVERE, "", e);
throw new AdempiereException(e);
}
finally
{

View File

@ -47,6 +47,7 @@ public class GridTab2PackExporter implements IGridTabExporter {
String tableName = gridTab.getTableName();
PackOut packOut = new PackOut();
packOut.setCtx(Env.getCtx());
packOut.setExportDictionaryEntity(true);
Map properties = new HashMap();
properties.putAll(Env.getCtx());
List<PackoutItem> packoutItems = new ArrayList<PackoutItem>();

View File

@ -60,7 +60,7 @@ import com.mchange.v2.c3p0.ComboPooledDataSource;
/**
* PostgreSQL Database Port
*
* @author @author Jorg Janke, Victor P<EFBFBD>rez
* @author @author Jorg Janke, Victor Perez
* @version $Id: DB_PostgreSQL.java,v 1.23 2005/03/11 20:29:01 jjanke Exp $
* ---
* Modifications: removed static references to database connection and instead always
@ -1099,9 +1099,13 @@ public class DB_PostgreSQL implements AdempiereDatabase
public String getNameOfUniqueConstraintError(Exception e) {
String info = e.getMessage();
int fromIndex = info.indexOf("\"");
if (fromIndex == -1)
fromIndex = info.indexOf("\u00ab"); // quote for spanish postgresql message
if (fromIndex == -1)
return info;
int toIndex = info.indexOf("\"", fromIndex + 1);
if (toIndex == -1)
toIndex = info.indexOf("\u00bb", fromIndex + 1);
if (toIndex == -1)
return info;
return info.substring(fromIndex + 1, toIndex);