mirror of
https://github.com/rickbarrette/redmine_qbo_lineitems.git
synced 2026-04-02 07:01:59 -04:00
Added accounts to allow for assinging income account to items, and selecting default income account. Also added item type selection
This commit is contained in:
@@ -1,26 +1,35 @@
|
||||
<h2><%= @item.name %></h2>
|
||||
<h2 style="margin-bottom: 1em; border-bottom: 2px solid #ccc; padding-bottom: 4px;"><%= @item.name %></h2>
|
||||
|
||||
<p>
|
||||
<strong>SKU:</strong>
|
||||
<%= @item.sku %>
|
||||
</p>
|
||||
<table style="width: 100%; border-collapse: collapse; margin-bottom: 1.5em;">
|
||||
<tbody>
|
||||
<tr style="background-color: #f9f9f9;">
|
||||
<td style="padding: 8px; font-weight: bold; width: 150px;">SKU:</td>
|
||||
<td style="padding: 8px;"><%= @item.sku.presence || "-" %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 8px; font-weight: bold;">Description:</td>
|
||||
<td style="padding: 8px;"><%= @item.description.presence || "-" %></td>
|
||||
</tr>
|
||||
<tr style="background-color: #f9f9f9;">
|
||||
<td style="padding: 8px; font-weight: bold;">Unit Price:</td>
|
||||
<td style="padding: 8px;"><%= number_to_currency(@item.unit_price) %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 8px; font-weight: bold;">Type:</td>
|
||||
<td style="padding: 8px;"><%= @item.type.presence || "-" %></td>
|
||||
</tr>
|
||||
<tr style="background-color: #f9f9f9;">
|
||||
<td style="padding: 8px; font-weight: bold;">Account:</td>
|
||||
<td style="padding: 8px;"><%= @item.account&.name || "-" %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 8px; font-weight: bold;">Active:</td>
|
||||
<td style="padding: 8px;"><%= @item.active ? "Yes" : "No" %></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<p>
|
||||
<strong>Description:</strong>
|
||||
<%= @item.description %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Unit Price:</strong>
|
||||
<%= number_to_currency(@item.unit_price) %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Active:</strong>
|
||||
<%= @item.active ? "Yes" : "No" %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<%= link_to "Edit", edit_item_path(@item), class: "icon icon-edit" %>
|
||||
<%= link_to "Back", items_path %>
|
||||
</p>
|
||||
<div style="margin-top: 1em;">
|
||||
<%= link_to "Edit", edit_item_path(@item), class: "btn btn-primary", style: "margin-right: 8px;" %>
|
||||
<%= link_to "Back", items_path, class: "btn btn-secondary" %>
|
||||
</div>
|
||||
Reference in New Issue
Block a user