mirror of
https://github.com/rickbarrette/redmine_qbo_calendar.git
synced 2026-11-17 21:50:37 -05:00
No-new-work weeks on the calendar
A checkbox under each week number flags the week "no new work" and circles it in red. New appointments in a flagged week (or ones moved or lengthened into it) warn on the form and are stopped on save; users with "Override no-new-work weeks" can tick "Schedule anyway". Flagging needs "Flag no-new-work weeks". Call-outs aren't affected. Adds migration 005. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
cba0057c9c
commit
9a07c16731
13 files changed
+304
-5
No files matched your search
@@ -42,6 +42,10 @@ Redmine::Plugin.register :redmine_qbo_calendar do
|
||||
permission :edit_customer_appointments, { customer_appointments: [:edit, :update, :customer_options, :estimate_hours] }, global: true
|
||||
permission :delete_customer_appointments, { customer_appointments: [:destroy] }, global: true
|
||||
# Creating issues from an appointment's estimate is redmine_qbo's "Create issues from estimates"
|
||||
# Flag a calendar week "no new work": new appointments in it warn and need the override below
|
||||
permission :manage_no_work_weeks, { no_work_weeks: [:update] }, global: true
|
||||
# Save a new appointment in a no-new-work week anyway, after being warned
|
||||
permission :override_no_work_weeks, {}, global: true
|
||||
|
||||
# Register top menu items
|
||||
menu :top_menu, :calendar, { controller: :calendars, action: :show }, caption: :label_calendar, if: Proc.new {User.current.logged?}
|
||||
|
||||
Reference in new issue
Block a user