Skip to content

Commit

Permalink
avni-client#1257 - ! in cancel as well
Browse files Browse the repository at this point in the history
  • Loading branch information
petmongrels committed Dec 28, 2023
1 parent 253f851 commit 51f037a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class ProgramEncounterCancelState extends AbstractDataEntryState {
}

getNextScheduledVisits(ruleService, context) {
const nextScheduledVisits = ruleService.getNextScheduledVisits(this.getEntity(), this.getEntityType()).filter((x) => this.isAlreadyScheduled(this.programEncounter.programEnrolment, x));
const nextScheduledVisits = ruleService.getNextScheduledVisits(this.getEntity(), this.getEntityType()).filter((x) => !this.isAlreadyScheduled(this.programEncounter.programEnrolment, x));
return context.get(IndividualService).validateAndInjectOtherSubjectForScheduledVisit(this.getEntity().individual, nextScheduledVisits);
}

Expand Down

0 comments on commit 51f037a

Please sign in to comment.