Fixes issue 0023926: Date is truncated in getStockLines method
authorJon Alegría <jon.alegria@openbravo.com>
Tue, 28 May 2013 13:07:15 +0200
changeset 20483 14c8d925fdc6
parent 20482 7b20cf4da8ef
child 20484 d31e48e598fb
Fixes issue 0023926: Date is truncated in getStockLines method
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);