mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-11-17 18:20:36 -05:00
- Three sections: QuickBooks connection, Synchronization and Billing. - Synchronization is one table of every synced type (customers, employees, estimates, invoices, payments, items, accounts) with its count, last sync and a Sync link, plus Sync changes and Full sync. The separate billing stats and management boxes are folded into it. - New payments sync (admin only). - Sync links return to the page they were clicked on instead of the home page. - Remove locale strings nothing uses any more. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
43 lines
2.4 KiB
ERB
43 lines
2.4 KiB
ERB
<div class="box tabular settings">
|
|
<p>
|
|
<label for="settings_expiration_days"><%= l(:label_estimate_expiration_days) %></label>
|
|
<%= number_field_tag 'settings[expiration_days]', @settings['expiration_days'], id: 'settings_expiration_days',
|
|
min: 0, step: 1, size: 6 %>
|
|
<em class="info"><%= l(:text_estimate_expiration_days) %></em>
|
|
</p>
|
|
<p>
|
|
<label for="settings_replaceable_item_ids"><%= l(:label_replaceable_items) %></label>
|
|
<%= hidden_field_tag 'settings[replaceable_item_ids][]', '', id: nil %>
|
|
<%= select_tag 'settings[replaceable_item_ids][]',
|
|
options_from_collection_for_select(Item.where(active: true).order(:name), :id, :name,
|
|
Array(@settings['replaceable_item_ids']).map(&:to_s)),
|
|
multiple: true, size: 8, id: 'settings_replaceable_item_ids' %>
|
|
<em class="info"><%= l(:text_replaceable_items) %></em>
|
|
</p>
|
|
</div>
|
|
|
|
<%# Issues from estimates (moved from redmine_qbo_calendar; its old values are shown until these are saved) %>
|
|
<% issue_builder = RedmineQboBilling::EstimateIssueBuilder %>
|
|
<fieldset class="box tabular">
|
|
<legend><%= l(:label_estimate_issue_settings) %></legend>
|
|
<p>
|
|
<label for="settings_issue_item_codes"><%= l(:label_estimate_item_codes) %></label>
|
|
<%= text_area_tag 'settings[issue_item_codes]', issue_builder.item_codes.join("\n"), rows: 5, cols: 30, id: 'settings_issue_item_codes' %>
|
|
<em class="info"><%= l(:text_estimate_item_codes_info) %></em>
|
|
</p>
|
|
<p>
|
|
<label for="settings_issue_default_project_id"><%= l(:label_default_project) %></label>
|
|
<%= select_tag 'settings[issue_default_project_id]',
|
|
project_tree_options_for_select(Project.active.sorted, selected: Project.find_by(id: issue_builder.default_project_id)),
|
|
include_blank: true, id: 'settings_issue_default_project_id' %>
|
|
<em class="info"><%= l(:text_default_project_info) %></em>
|
|
</p>
|
|
<p>
|
|
<label for="settings_issue_default_tracker_id"><%= l(:label_default_tracker) %></label>
|
|
<%= select_tag 'settings[issue_default_tracker_id]',
|
|
options_from_collection_for_select(Tracker.sorted, :id, :name, issue_builder.default_tracker_id),
|
|
include_blank: true, id: 'settings_issue_default_tracker_id' %>
|
|
<em class="info"><%= l(:text_default_tracker_info) %></em>
|
|
</p>
|
|
</fieldset>
|