add print at receipt no report

This commit is contained in:
NyanLinHtut
2019-10-02 09:24:30 +06:30
parent 94a1f5b2b5
commit a61c4a1932
7 changed files with 148 additions and 14 deletions

View File

@@ -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%>