mirror of
https://github.com/rickbarrette/redmine_qbo_reminders.git
synced 2026-11-17 21:00:36 -05:00
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:
1 parent
acad2614c7
commit
48275a25be
4 files changed
+10
-6
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user