From 6ee5e9f1af08871dde3c0ba3c4d3477dd235b549 Mon Sep 17 00:00:00 2001 From: Aung Myo Date: Fri, 11 May 2018 17:31:57 +0630 Subject: [PATCH] update daily sale for totaltax --- app/views/reports/dailysale/index.html.erb | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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 %>