details:   https://code.openbravo.com/erp/devel/pi/rev/14c8d925fdc6
changeset: 20482:14c8d925fdc6
user:      Jon Alegría <jon.alegria <at> openbravo.com>
date:      Tue May 28 13:07:15 2013 +0200
summary:   Fixes issue 0023926: Date is truncated in getStockLines method

diffstat:

 src/org/openbravo/costing/CostingRuleProcess.java |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 7b20cf4da8ef -r 14c8d925fdc6 
src/org/openbravo/costing/CostingRuleProcess.java
--- a/src/org/openbravo/costing/CostingRuleProcess.java Fri May 17 12:04:47 
2013 +0200
+++ b/src/org/openbravo/costing/CostingRuleProcess.java Tue May 28 13:07:15 
2013 +0200
@@ -360,7 +360,7 @@
     Query stockLinesQry = 
OBDal.getInstance().getSession().createQuery(select.toString());
     stockLinesQry.setParameterList("orgs", childOrgs);
     if (date != null) {
-      stockLinesQry.setDate("date", date);
+      stockLinesQry.setTimestamp("date", date);
     }
     stockLinesQry.setFetchSize(1000);
     ScrollableResults stockLines = 
stockLinesQry.scroll(ScrollMode.FORWARD_ONLY);

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to