IDEMPIERE-4336 (#120)

#resolve
Correct operator in SQL-Query for "Over End Wait" alerts
This commit is contained in:
mbozem 2020-06-21 14:49:54 +02:00 committed by GitHub
parent f19ac52dd5
commit 5662ab6080
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ public class WorkflowProcessor extends AdempiereServer
String sql = "SELECT * "
+ "FROM AD_WF_Activity a "
+ "WHERE Processed='N' AND WFState='OS'" // suspended
+ " AND EndWaitTime > getDate()"
+ " AND EndWaitTime < getDate()"
+ " AND (DateLastAlert IS NULL";
if (m_model.getRemindDays() > 0)
sql += " OR (DateLastAlert+" + m_model.getRemindDays()