From dca7c443e2650c6fc7642912a551fa361fefc6f8 Mon Sep 17 00:00:00 2001 From: Juliana Corredor Date: Fri, 15 Mar 2013 09:57:20 -0500 Subject: [PATCH] IDEMPIERE-723 java.util.Date cannot be cast to java.sql.Timestamp in Info Product --- .../src/org/adempiere/webui/panel/InfoPAttributePanel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPAttributePanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPAttributePanel.java index 61d76d62db..0e4610e59f 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPAttributePanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPAttributePanel.java @@ -536,9 +536,9 @@ public class InfoPAttributePanel extends Window implements EventListener } // Guarantee Date - Timestamp ts = (Timestamp)guaranteeDateField.getValue(); - if (ts != null) + if (guaranteeDateField.getValue() != null) { + Timestamp ts = new Timestamp(guaranteeDateField.getValue().getTime()); sb.append(" AND TRUNC(asi.GuaranteeDate)"); int index = guaranteeDateSelection.getSelectedIndex(); // < = > if (index == 0)