Picking an estimate still fills in its labor hours; ticking Partial estimate lets the hours be lowered below them. Saved with the appointment and shown next to its hours. Adds migration 006.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
- Hide Past Weeks and Show Customer Appointments Only are saved in each user's
preferences instead of the session, so they stick across logins and devices.
Show Customer Appointments Only is on by default.
- The new appointment form's New Customer button had no icon since Redmine 6's SVG
icons, so it didn't show. It has its icon and label again, for users who may add
customers.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Issues' estimated hours are spread over their working days from start to due date, instead of
counted in full on both the start and due dates
- Tooltips in the two rightmost columns open leftward again (the rule targeted the old table layout)
- Today scrolls when today is on the page (the check read calendar values that don't exist)
- "Day N of M" on calendar cards and My Page skips holidays; My Page uses the user's date
- Each appointment's working days are worked out once per page (CustomerAppointment#working_days),
and shared by placement, hours, day numbers and the end date
- The calendar toggles are kept in the session, so changing month loads the page once
- Clicking inside an open tooltip keeps it open; estimates load with the appointments
- Hours in a working day is a plugin setting (default 8)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
The Add appointment link on an estimate no longer matches the estimate's VIN to a vehicle itself; it asks
the qbo_calendar_appointment_params hook (redmine_qbo_vehicles answers with the vehicle).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
- An appointment's hours can't be less than its estimate's labor hours
(checked when the estimate or hours change, so the quick status buttons
still work on older appointments). Picking an estimate on the form, or
arriving from an estimate page, raises the hours to match.
- The appointment page lists the issues linked to its estimate.
- Creating issues from an estimate moved to redmine_qbo_billing (now
required): Create Issues from Estimate opens its page with this
appointment's dates, technician, vehicle and project (via
qbo_billing_issue_defaults). The builder, preview page, settings and rake
task are removed here; the old settings stay registered so billing can
read them until its own are saved.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
Listens for redmine_qbo_billing's view_qbo_estimate_contextual hook and adds
an Add appointment link with the customer, the estimate, and the vehicle
whose VIN matches the estimate's. The new appointment form uses the estimate
and vehicle only when they belong to the customer.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
Uses redmine_qbo's new :view_customers_show_contextual hook (replacing
customer_actions_top) and renders "Add appointment" as a Redmine-style
icon link alongside the customer's other actions. Needs the matching
redmine_qbo update.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
- New "Issue fields" section on the Create Issues from Estimate page
lists the custom fields the selected trackers use; values are entered
once and applied to every created issue whose tracker uses the field
- Required fields (the field's Required flag or a workflow rule for the
tracker and the user's role) are starred; the list updates as lines
are ticked or trackers change
- Values go through Issue#safe_attributes=, so fields that are hidden or
read-only for the user, or unused by a tracker, are ignored
- Entered values are kept when creation fails validation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
- "Create Issues from Estimate" now opens a preview listing each
matching estimate line: include checkbox, subject (from the line
description), tracker dropdown, template dropdown and estimated
hours (from the line quantity)
- Admins set which QBO item codes to look for (e.g. Labor, Alignments)
and a default tracker in the plugin settings
- Optional redmine_issue_templates support: templates supply the issue
description; titles still come from the line description
- New appointment_estimate_issues table records which issue came from
which estimate line, so a line can't be turned into an issue twice;
deleting the issue frees the line again
- Creation is all-or-nothing; errors are shown on the preview page
- Removes the old Labor-only create_issues_from_labor_lines code
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
- customer_options is now covered by the add/edit permissions, so
non-admin staff get the vehicle/estimate dropdowns
- create_issues is now a POST member route with its own permission,
checks add_issues on the target project, no longer redirects to a
missing route, and has a button on the appointment page
- "Last" week-of-month holidays (e.g. Memorial Day) now match every year
- Cancelled and Call Out appointments no longer count toward hours
- Calendar only shows appointments to users with View customer
appointments, and only loads those near the displayed month
- due_date skips weekends and holidays, matching the calendar layout
- Subjects keep their casing; only the first letter is capitalized
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
- Customer page list now shows a History link and a 'View all N past
appointments' link; it also renders when a customer has history but
nothing upcoming
- Calendar toolbar gets an Appointment History button
- Calendar tooltip gets a history icon next to the customer
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
Adds a history page listing past customer appointments with customer,
status and date-range filters and pagination, linked from the customer
page, the appointments index and each appointment.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
- Implement customer ID assignment in the appointment creation process.
- Create a new partial for customer actions to render appointment links.
- Add localization for the "Add Appointment" label.
- Introduce CustomerActionsHookListener to manage customer actions rendering.