mirror of
https://github.com/rickbarrette/redmine_qbo_calendar.git
synced 2026-11-17 21:50:37 -05:00
- "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
18 lines
795 B
ERB
18 lines
795 B
ERB
<fieldset class="box tabular">
|
|
<legend><%= l(:label_estimate_issue_settings) %></legend>
|
|
|
|
<p>
|
|
<label for="settings_item_codes"><%= l(:label_estimate_item_codes) %></label>
|
|
<%= text_area_tag 'settings[item_codes]', settings['item_codes'], rows: 5, cols: 30, id: 'settings_item_codes' %>
|
|
<em class="info"><%= l(:text_estimate_item_codes_info) %></em>
|
|
</p>
|
|
|
|
<p>
|
|
<label for="settings_default_tracker_id"><%= l(:label_default_tracker) %></label>
|
|
<%= select_tag 'settings[default_tracker_id]',
|
|
options_from_collection_for_select(Tracker.sorted, :id, :name, settings['default_tracker_id'].to_i),
|
|
include_blank: true, id: 'settings_default_tracker_id' %>
|
|
<em class="info"><%= l(:text_default_tracker_info) %></em>
|
|
</p>
|
|
</fieldset>
|