IDEMPIERE-723 java.util.Date cannot be cast to java.sql.Timestamp in Info Product

This commit is contained in:
Juliana Corredor 2013-03-15 09:57:20 -05:00
parent 596393e625
commit dca7c443e2
1 changed files with 2 additions and 2 deletions

View File

@ -536,9 +536,9 @@ public class InfoPAttributePanel extends Window implements EventListener<Event>
}
// 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)