update daily sale for totaltax
This commit is contained in:
@@ -151,23 +151,23 @@
|
|||||||
|
|
||||||
<% total_tax = 0 %>
|
<% total_tax = 0 %>
|
||||||
<% unless @tax.empty? %>
|
<% unless @tax.empty? %>
|
||||||
<% @tax.each do |tax| %>
|
<% @tax.each do |tax| %>
|
||||||
<% total_tax += tax.tax_amount.to_f %>
|
<% total_tax += tax.tax_amount.to_f %>
|
||||||
<tr style="font-weight:600;">
|
<tr style="font-weight:600;">
|
||||||
<td colspan="17" style='text-align:right;'><%= tax.tax_name rescue '-'%></td>
|
<td colspan="17" style='text-align:right;'><%= tax.tax_name rescue '-'%></td>
|
||||||
<td style='text-align:right;'><%= number_with_precision(tax.tax_amount, precision:precision.to_i,delimiter:delimiter) rescue '-'%></td>
|
<td style='text-align:right;'><%= number_with_precision(tax.tax_amount, precision:precision.to_i,delimiter:delimiter) rescue '-'%></td>
|
||||||
<td colspan="2"> </td>
|
<td colspan="2"> </td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% net = total - total_tax %>
|
<% net = total - total_tax %>
|
||||||
<tr style="font-weight:600;">
|
<tr style="font-weight:600;">
|
||||||
<td colspan="17" style='text-align:right;'><%= t("views.right_panel.detail.net_amount") %></td>
|
<td colspan="17" style='text-align:right;'><%= t("views.right_panel.detail.net_amount") %></td>
|
||||||
<td style='text-align:right;'><%= number_with_precision(net, precision:precision.to_i,delimiter:delimiter) rescue '-'%></td>
|
<td style='text-align:right;'><%= number_with_precision(net, precision:precision.to_i,delimiter:delimiter) rescue '-'%></td>
|
||||||
<td colspan="2"> </td>
|
<td colspan="2"> </td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
</tbody>
|
||||||
</tbody>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user