From 292c8ff5638d017912cad3e5921b4300e2dd0384 Mon Sep 17 00:00:00 2001 From: Aung Myo Date: Sun, 9 Jul 2017 11:02:32 +0630 Subject: [PATCH] update view --- app/views/reports/dailysale/index.html.erb | 4 +--- app/views/reports/receipt_no/index.html.erb | 9 ++------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/app/views/reports/dailysale/index.html.erb b/app/views/reports/dailysale/index.html.erb index d01463b7..996393ac 100644 --- a/app/views/reports/dailysale/index.html.erb +++ b/app/views/reports/dailysale/index.html.erb @@ -24,11 +24,9 @@
- <% if params[:from]%> - + - <% end %> diff --git a/app/views/reports/receipt_no/index.html.erb b/app/views/reports/receipt_no/index.html.erb index aa117624..cf04c5aa 100644 --- a/app/views/reports/receipt_no/index.html.erb +++ b/app/views/reports/receipt_no/index.html.erb @@ -61,9 +61,7 @@ <% total_nett = 0 %> <% rounding_adj = 0%> <% gov_tax = 0 %> <% service_charge = 0 %> - <% - if @sale_data!=nil - @sale_data.each do |result| %> + <% @sale_data.each do |result| %> <% grand_total = grand_total.to_f + result.grand_total.to_f %> <% total_tax += result.total_tax.to_f %> @@ -85,10 +83,7 @@ - <% - end - end - %> + <% end %>
Sale (<%= params[:from] rescue '-' %> - <%= params[:to] rescue '-'%>) Sale (<%= from rescue '-' %> - <%= to rescue '-'%>)
Sr.no Date<%= result.grand_total_after_rounding() rescue '-'%>
  <%= total_sum rescue '-'%>