From 620f7eed328a432837a643b66d45df3e93ada274 Mon Sep 17 00:00:00 2001 From: Aung Myo Date: Wed, 25 Jul 2018 16:40:35 +0630 Subject: [PATCH] update show paent for foc and waste and spoile --- app/views/origami/payments/show.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/origami/payments/show.html.erb b/app/views/origami/payments/show.html.erb index 74baeca4..195719bd 100755 --- a/app/views/origami/payments/show.html.erb +++ b/app/views/origami/payments/show.html.erb @@ -401,7 +401,7 @@ <% if current_login_employee.role == "cashier" %> - <% if @other_payment < 0 && @sale_payment.nil? %> + <% if @other_payment <= 0 && @sale_payment.nil? %> <%if @sale_data.total_discount == 0 %> FOC <% end %> @@ -416,7 +416,7 @@ <% end %> <% end %> <% else %> - <% if @other_payment < 0 && @sale_payment.nil?%> + <% if @other_payment <= 0 && @sale_payment.nil?%> <%if @sale_data.total_discount == 0 %>