mirror of
https://github.com/rickbarrette/redmine_qbo_vehicles.git
synced 2026-11-17 18:40:36 -05:00
Fill the vehicle into issue subjects (<VEHICLE>)
An issue subject containing the placeholder (e.g. an issue template's "Frame Evaluation // <VEHICLE>") gets the issue's vehicle when it's saved with one: on creation, or the first save after a vehicle is added (journaled like any subject change). The placeholder is a plugin setting, "Vehicle in subjects": <VEHICLE> by default (also for settings saved before it existed), blank turns it off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ff6522ad77
commit
2074ec65b9
6 files changed
+32
-1
No files matched your search
@@ -24,6 +24,7 @@ The goal of this project is to enable vehicle tracking for customer vehicles wit
|
||||
* **Estimates (redmine_qbo 2026.11.2+):** the VIN box suggests the customer's vehicles, an invoice made from an estimate without a VIN gets its work orders' vehicle, and the Create issues from estimate page has a **Vehicle** for all the issues: preselected with the appointment's vehicle, or else the customer's vehicle whose VIN is on the estimate; when none matches it says so, so the team can pick one before creating the issues.
|
||||
* **Vehicles page:** every vehicle in a Redmine list (vehicle, VIN, customer, last serviced date and mileage, last update), sortable by column and paged with Redmine's pagination and per-page choices. Search narrows it to the vehicles matching every word (e.g. "2018 jeep wrangler"; a single match opens it). A customer's vehicles (`/customers/:id/vehicles`) are the same list for that customer, with New Vehicle.
|
||||
* **Customer page:** ticking a vehicle adds it to the New issue link.
|
||||
* **Vehicle in subjects:** an issue subject containing `<VEHICLE>` (e.g. from an issue template: `Frame Evaluation // <VEHICLE>`) gets the vehicle filled in when the issue is saved with one. The placeholder text is a plugin setting; blank turns it off.
|
||||
* **Appointments (redmine_qbo_calendar):** an appointment added from an estimate gets the customer's vehicle with the estimate's VIN. On an appointment without a vehicle, **Add Vehicle** creates one for the customer, sets it on the appointment and returns to it (for users who may edit appointments).
|
||||
* **For other plugins:** creating a vehicle calls the `:controller_vehicles_new_after_save` hook (context: `params`, `vehicle`), and the new vehicle form returns to `back_url` when given, so a plugin can link to `new_vehicle_path(customer_id:, back_url:, ...)` and act on the vehicle it gets back.
|
||||
|
||||
|
||||
Reference in new issue
Block a user