details:   /erp/erp/devel/pi/rev/7fab4d187a7c
changeset: 4670:7fab4d187a7c
user:      Martin Taal <martin.taal <at> openbravo.com>
date:      Thu Aug 20 15:58:26 2009 +0200
summary:   fixes issue 10330: Unable to Generate and Post Invoices in mass 
invoicing

diffstat:

 src/org/openbravo/service/db/DalConnectionProvider.java |  10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diffs (20 lines):

diff -r d82e2aade14f -r 7fab4d187a7c 
src/org/openbravo/service/db/DalConnectionProvider.java
--- a/src/org/openbravo/service/db/DalConnectionProvider.java   Thu Aug 20 
15:37:23 2009 +0200
+++ b/src/org/openbravo/service/db/DalConnectionProvider.java   Thu Aug 20 
15:58:26 2009 +0200
@@ -56,6 +56,16 @@
   public Connection getConnection() throws NoConnectionAvailableException {
     if (connection == null) {
       connection = OBDal.getInstance().getConnection();
+
+      // set the date formatting
+      try {
+        final String dbSessionConfig = 
getProperties().getProperty("bbdd.sessionConfig");
+        PreparedStatement pstmt = connection.prepareStatement(dbSessionConfig);
+        pstmt.executeQuery();
+      } catch (Exception e) {
+        throw new IllegalStateException(e);
+      }
+
     }
     return connection;
   }

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to