add print at receipt no report
This commit is contained in:
@@ -56,7 +56,7 @@
|
||||
<th><%= t("views.right_panel.detail.grand_total") %> +<br/>
|
||||
<%= t("views.right_panel.detail.rnd_adj_sh") %>
|
||||
</th>
|
||||
<th><%= "actions" %></th>
|
||||
<th><%= "Action" %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -168,11 +168,19 @@
|
||||
|
||||
<td><%= result.rounding_adjustment.to_f rescue '-' %></td>
|
||||
<td><%= number_with_precision(result.grand_total, precision: precision.to_i ,delimiter: delimiter) %></td>
|
||||
<td>
|
||||
<% if @lookup.value.to_i == 1 %>
|
||||
<td>
|
||||
<!-- ############### Need to Check SyncStatus ############# -->
|
||||
<%= link_to "Sync", reports_sync_data_path(:sale_id => result.sale_id), class:"btn btn-info wave-effects" %>
|
||||
<!-- ###################################################### -->
|
||||
|
||||
<%= link_to "Print", reports_receipt_reprint_path(result.sale_id), class:"btn btn-info wave-effects" %>
|
||||
</td>
|
||||
<% else %>
|
||||
<td>
|
||||
<%= link_to "Sync", reports_sync_data_path(:sale_id => result.sale_id), class:"btn btn-info wave-effects" %>
|
||||
</td>
|
||||
<% end %>
|
||||
</tr>
|
||||
<% end %>
|
||||
<tr style="border-top:4px double #666;">
|
||||
@@ -240,7 +248,7 @@
|
||||
<td><%= t("views.right_panel.detail.grand_total") %> +<br/>
|
||||
<%= t("views.right_panel.detail.rnd_adj_sh") %>
|
||||
</td>
|
||||
<td>
|
||||
<td>
|
||||
</td>
|
||||
</tr>
|
||||
<%end%>
|
||||
|
||||
Reference in New Issue
Block a user