mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-11-17 18:20:36 -05:00
- Issue PDF: show the issue's estimate number and invoice number(s) - Create issues from estimate: optional parent task. The issues are created as its subtasks, take its customer, and start from its project, vehicle and custom field values (subtask_field_copier's rules when installed) - Issue page: shortcut to create the estimate's issues as subtasks of the issue - Create issues page: editable start and due dates, pre-filled from the appointment or the parent task - Always show plugins' fields (e.g. the vehicle) on the Create issues page Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
32 lines
1.4 KiB
ERB
32 lines
1.4 KiB
ERB
<div class="splitcontent">
|
|
<div class="splitcontentleft">
|
|
<div class="customer_id attribute">
|
|
<div class="label"><span><%=t(:field_customer)%></span>:</div>
|
|
<div class="value"><%= customer %></div>
|
|
</div>
|
|
|
|
<div class="estimate_id attribute">
|
|
<div class="label"><span><%=t(:field_estimate)%></span>:</div>
|
|
<div class="value">
|
|
<%= estimate_link %>
|
|
<%= render partial: 'qbo_estimates/estimate_actions', locals: { estimate: issue.estimate } if issue.estimate && RedmineQboBilling.writer? %>
|
|
<%# Create the estimate's remaining labor lines as subtasks of this issue %>
|
|
<% if issue.estimate && User.current.allowed_to?(:create_estimate_issues, nil, global: true) && User.current.allowed_to?(:manage_subtasks, issue.project) %>
|
|
<%= link_to sprite_icon('add', l(:button_create_estimate_subtasks)),
|
|
issues_preview_qbo_estimate_path(issue.estimate.id, parent_issue_id: issue.id),
|
|
class: 'icon-only icon-add', title: l(:button_create_estimate_subtasks) %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="invoice_id attribute">
|
|
<div class="label"><span><%=t(:field_invoice)%></span>:</div>
|
|
<div class="value"><%= invoice_link %></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="splitcontentleft">
|
|
<%= call_hook :show_issue_view_right, {issue: issue} %>
|
|
</div>
|
|
</div>
|