mirror of
https://github.com/rickbarrette/redmine_qbo_calendar.git
synced 2026-11-17 21:50:37 -05:00
Appointment statuses in the plugin settings; call-outs as their own entry
Statuses (name, colour, counts toward hours, order) are set up on the plugin's settings page instead of being hard-coded. Appointments keep a fixed key, so renaming is safe; removing a status in use asks which status to move its appointments to (done on save by a SettingsController hook). Colours come from the settings everywhere statuses show, which also fixes Cancelled never being coloured (cancelled/canceled mismatch). Call-outs (an employee off work) are their own kind of entry (event_type 'call_out') with an employee, date, days and notes, added from a button on each calendar day. They sit at the top of the day in red stripes and never count toward hours. Migration 004 converts Call_Out appointments. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f2a16b1821
commit
31356ac3fb
23 files changed
+536
-252
No files matched your search
@@ -19,8 +19,10 @@ Redmine::Plugin.register :redmine_qbo_calendar do
|
||||
author_url 'https://barrettefabrication.com'
|
||||
requires_redmine version_or_higher: '7.0.0'
|
||||
|
||||
# No settings of its own: labor products/services and the issues-from-estimates defaults are set in
|
||||
# redmine_qbo's plugin settings
|
||||
# Appointment statuses. Labor products/services and the issues-from-estimates defaults are set in
|
||||
# redmine_qbo's plugin settings.
|
||||
# No saved statuses means the defaults (RedmineQboCalendar::AppointmentStatus::DEFAULTS)
|
||||
settings default: {}, partial: 'settings/qbo_calendar'
|
||||
|
||||
# Add Holidays index to the Redmine Administration Menu
|
||||
menu :admin_menu, :holidays, { controller: 'holidays', action: 'index' }, caption: :label_holiday_plural, html: { class: 'icon icon-list' }
|
||||
|
||||
Reference in new issue
Block a user