diff --git a/app/views/reports/dailysale/index.html.erb b/app/views/reports/dailysale/index.html.erb index 4e902da1..f40c2d5d 100755 --- a/app/views/reports/dailysale/index.html.erb +++ b/app/views/reports/dailysale/index.html.erb @@ -151,23 +151,23 @@ <% total_tax = 0 %> <% unless @tax.empty? %> - <% @tax.each do |tax| %> - <% total_tax += tax.tax_amount.to_f %> - - <%= tax.tax_name rescue '-'%> - <%= number_with_precision(tax.tax_amount, precision:precision.to_i,delimiter:delimiter) rescue '-'%> -   - - + <% @tax.each do |tax| %> + <% total_tax += tax.tax_amount.to_f %> + + <%= tax.tax_name rescue '-'%> + <%= number_with_precision(tax.tax_amount, precision:precision.to_i,delimiter:delimiter) rescue '-'%> +   + + <% end %> <% end %> + <% net = total - total_tax %> <%= t("views.right_panel.detail.net_amount") %> <%= number_with_precision(net, precision:precision.to_i,delimiter:delimiter) rescue '-'%>   - <% end %> - + <% end %>