Skip to content
Snippets Groups Projects
Commit 6fb34fff authored by Carolin Wimmer's avatar Carolin Wimmer
Browse files

[Projekt: Crowd-Development / Besuch vor Ort][TicketNr.: 1066742][[aus...

[Projekt: Crowd-Development / Besuch vor Ort][TicketNr.: 1066742][[aus Schmalz] Besuchsvorschlags-Logik unter Berücksichtigung bereits erfolgter Aktivitäten]
parent 0cbf4b2d
No related branches found
No related tags found
No related merge requests found
...@@ -192,12 +192,20 @@ if(idValues == false) ...@@ -192,12 +192,20 @@ if(idValues == false)
.from("VISITPLANENTRY") .from("VISITPLANENTRY")
.where(newWhere("VISITPLANENTRY.CONTACT_ID", tmpData[0]) .where(newWhere("VISITPLANENTRY.CONTACT_ID", tmpData[0])
.or("VISITPLANENTRY.ORGANISATION_CONTACT_ID", tmpData[0])) .or("VISITPLANENTRY.ORGANISATION_CONTACT_ID", tmpData[0]))
.and(newWhere("VISITPLANENTRY.ENTRYDATE", eMath.subInt(vars.get("$sys.today"), datetime.ONE_DAY * 7), SqlBuilder.LESS_OR_EQUAL())
.and("VISITPLANENTRY.STATUS", $KeywordRegistry.visitPlanEntryStatus$Visitreportcreated(), SqlBuilder.NOT_EQUAL()))
.cell();
if(!manualRec || visitEntry) var visitEntryExists = visitEntry.cell();
recommendationData.push(tmpData);
visitEntry = visitEntry.and(newWhere("VISITPLANENTRY.ENTRYDATE", eMath.subInt(vars.get("$sys.today"), datetime.ONE_DAY * 7), SqlBuilder.LESS_OR_EQUAL())
.and("VISITPLANENTRY.STATUS", $KeywordRegistry.visitPlanEntryStatus$Visitreportcreated(), SqlBuilder.NOT_EQUAL()))
.or("VISITPLANENTRY.STATUS", $KeywordRegistry.visitPlanEntryStatus$Visitreportcreated(), SqlBuilder.EQUAL()).cell()
if(!manualRec)
{
if(!visitEntryExists || visitEntry)
{
recommendationData.push(tmpData);
}
}
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment