Use redmine_qbo_calendar's configurable statuses; skip call-outs

The "statuses that get reminders" setting lists the statuses set up in redmine_qbo_calendar
(falling back to the old fixed list on older versions). Reminder runs and the appointment page's
reminder panel skip employee call-outs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rickyandClaude Opus 5.5 committed 2026-11-02 20:22:52 -05:00
1 parent acad2614c7
commit 48275a25be
4 files changed
+10 -6

No files matched your search

+2 -1
View File
@@ -37,7 +37,8 @@ module RedmineQboReminders
return result unless schedule.in_window?(now)
from, to = schedule.lookahead(now)
CustomerAppointment.where(date: from..to).includes(:customer).find_each do |appointment|
# Customer appointments only: employee call-outs (redmine_qbo_calendar) are kept in the same table
CustomerAppointment.where(date: from..to, event_type: [nil, '']).includes(:customer).find_each do |appointment|
consider(appointment, schedule)
end
log "Run finished: #{result}" if result.sent + result.failed > 0