mirror of
https://github.com/rickbarrette/redmine_qbo_calendar.git
synced 2026-11-17 21:50:37 -05:00
Add preview page for creating issues from an estimate
- "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
This commit is contained in:
15 files changed
+613
-92
No files matched your search
+16
-1
@@ -21,8 +21,11 @@ en:
|
||||
day_name_thursday: "Thursday"
|
||||
day_name_tuesday: "Tuesday"
|
||||
day_name_wednesday: "Wednesday"
|
||||
button_create_issues: "Create issues"
|
||||
button_create_issues_from_estimate: "Create Issues from Estimate"
|
||||
error_no_labor_lines_found: "No Labor lines with a description were found on the estimate"
|
||||
error_estimate_lines_already_created: "Some of these estimate lines were just turned into issues by someone else. Please review and try again."
|
||||
error_no_estimate_lines_selected: "Select at least one estimate line"
|
||||
error_no_labor_lines_found: "No lines with a description and a matching item code were found on the estimate"
|
||||
error_holiday: "Cannot be scheduled on holiday: %{name}"
|
||||
error_non_working_day: "Cannot be scheduled on a non-working day"
|
||||
field_customer_name: Customer
|
||||
@@ -37,6 +40,7 @@ en:
|
||||
label_add_appointment: Add Appointment
|
||||
label_appointment: Appointment
|
||||
label_appointment_new: "New Appointment"
|
||||
label_appointment_has_no_estimate: "This appointment has no estimate attached"
|
||||
label_appointments: Appointments
|
||||
label_appointment_history: Appointment History
|
||||
label_upcoming_customer_appointments: Upcoming Appointments
|
||||
@@ -56,7 +60,14 @@ en:
|
||||
label_edit_appointment: Edit Appointment
|
||||
label_end_date: End Date
|
||||
label_estimated_hours: Estimated Time
|
||||
label_default_tracker: "Default tracker"
|
||||
label_estimate_issue_settings: "Issues from estimates"
|
||||
label_estimate_item: "Item"
|
||||
label_estimate_item_codes: "Estimate item codes"
|
||||
label_estimate_line_already_created: "Already created"
|
||||
label_event: Event
|
||||
label_issue_template: "Template"
|
||||
label_no_issue_template: "(no template)"
|
||||
label_hide_past_weeks: "Hide Past Weeks"
|
||||
label_holiday_edit: Edit Holiday
|
||||
label_holiday_new: New Holiday
|
||||
@@ -90,4 +101,8 @@ en:
|
||||
permission_edit_customer_appointments: "Edit customer appointments"
|
||||
permission_manage_customer_appointments: Manage Customer Appointments
|
||||
permission_view_customer_appointments: "View customer appointments"
|
||||
text_default_tracker_info: "Pre-selected for each proposed issue. Leave blank to use the project's first tracker."
|
||||
text_estimate_issues_hint: "The subject comes from the estimate line's description and estimated hours from its quantity. Edit anything before creating."
|
||||
text_estimate_issues_template_hint: "The subject comes from the estimate line's description and estimated hours from its quantity. A template supplies the issue's description."
|
||||
text_estimate_item_codes_info: "QBO item names that can become issues, one per line (e.g. Labor, Alignments). Matches the full item name or any part of a Category:Item name, ignoring case."
|
||||
title_customer_appointments: Customer Appointments
|
||||
@@ -17,6 +17,7 @@ RedmineApp::Application.routes.draw do
|
||||
get :history
|
||||
end
|
||||
member do
|
||||
get :issues_preview
|
||||
post :create_issues
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user