IDEMPIERE-421 NPE - Payment Info
This commit is contained in:
parent
b04008451d
commit
e565badf79
|
@ -1093,6 +1093,9 @@ public abstract class InfoPanel extends Window implements EventListener, WTableM
|
|||
contentPanel.setSelectedIndex(0);
|
||||
}
|
||||
}
|
||||
else if (event.getName().equals(Events.ON_CHANGE))
|
||||
{
|
||||
}
|
||||
//default
|
||||
else
|
||||
{
|
||||
|
@ -1108,9 +1111,11 @@ public abstract class InfoPanel extends Window implements EventListener, WTableM
|
|||
progressWindow.doHighlighted();
|
||||
}
|
||||
|
||||
private void hideBusyDialog() {
|
||||
progressWindow.dispose();
|
||||
progressWindow = null;
|
||||
private void hideBusyDialog() {
|
||||
if (progressWindow != null) {
|
||||
progressWindow.dispose();
|
||||
progressWindow = null;
|
||||
}
|
||||
}
|
||||
|
||||
public void onQueryCallback()
|
||||
|
|
|
@ -311,11 +311,17 @@ public class InfoPaymentPanel extends InfoPanel implements ValueChangeListener,
|
|||
|
||||
if (fDateFrom.getValue() != null || fDateTo.getValue() != null)
|
||||
{
|
||||
Date f = fDateFrom.getValue();
|
||||
Timestamp from = new Timestamp(f.getTime());
|
||||
Timestamp from = null;
|
||||
if (fDateFrom.getValue() != null) {
|
||||
Date f = fDateFrom.getValue();
|
||||
from = new Timestamp(f.getTime());
|
||||
}
|
||||
|
||||
Date t = fDateTo.getValue();
|
||||
Timestamp to = new Timestamp(t.getTime());
|
||||
Timestamp to = null;
|
||||
if (fDateTo.getValue() != null) {
|
||||
Date t = fDateTo.getValue();
|
||||
to = new Timestamp(t.getTime());
|
||||
}
|
||||
|
||||
if (from == null && to != null)
|
||||
sql.append(" AND TRUNC(p.DateTrx) <= ?");
|
||||
|
@ -368,11 +374,17 @@ public class InfoPaymentPanel extends InfoPanel implements ValueChangeListener,
|
|||
|
||||
if (fDateFrom.getValue() != null || fDateTo.getValue() != null)
|
||||
{
|
||||
Date f = fDateFrom.getValue();
|
||||
Timestamp from = new Timestamp(f.getTime());
|
||||
Timestamp from = null;
|
||||
if (fDateFrom.getValue() != null) {
|
||||
Date f = fDateFrom.getValue();
|
||||
from = new Timestamp(f.getTime());
|
||||
}
|
||||
|
||||
Date t = fDateTo.getValue();
|
||||
Timestamp to = new Timestamp(t.getTime());
|
||||
Timestamp to = null;
|
||||
if (fDateTo.getValue() != null) {
|
||||
Date t = fDateTo.getValue();
|
||||
to = new Timestamp(t.getTime());
|
||||
}
|
||||
|
||||
log.fine("Date From=" + from + ", To=" + to);
|
||||
|
||||
|
|
Loading…
Reference in New Issue