From b46cefc8bce934003c848c8f5feb6bb9761a245f Mon Sep 17 00:00:00 2001 From: NyanLinHtut Date: Wed, 17 Jun 2020 17:15:01 +0630 Subject: [PATCH] fixed shift sales other payment --- app/views/reports/dailysale/index.html.erb | 8 ++++---- app/views/transactions/shift_sales/show.html.erb | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/views/reports/dailysale/index.html.erb b/app/views/reports/dailysale/index.html.erb index db25ce0c..12e6d236 100755 --- a/app/views/reports/dailysale/index.html.erb +++ b/app/views/reports/dailysale/index.html.erb @@ -73,11 +73,11 @@ Income Outgoing - live_help - live_help + live_help + live_help <% if @tax.blank? %> - live_help - live_help + live_help + live_help <% end %> diff --git a/app/views/transactions/shift_sales/show.html.erb b/app/views/transactions/shift_sales/show.html.erb index 587f4490..2edb7fc8 100755 --- a/app/views/transactions/shift_sales/show.html.erb +++ b/app/views/transactions/shift_sales/show.html.erb @@ -127,7 +127,7 @@ <%=@shift.credit_sales %> <% @total_amount = 0 - + @total_other_amount = 0 @other_payment.each do |other| %> @@ -138,8 +138,8 @@ <%= method %> Payment - <%=other[method.parameterize.to_sym].round(2) rescue '-' %> - <% @total_amount = @total_amount + other[method.parameterize.to_sym] rescue 0.0 %> + <%= other[method.parameterize.to_sym].round(2) rescue '-' %> + <% @total_other_amount = @total_other_amount + other[method.parameterize.to_sym] rescue 0.0 %> <% end %> @@ -153,7 +153,7 @@ Total Other Payment - <%=@shift.other_sales %> + <%= @total_other_amount %>