From 9467898388c2b3d368ea2b11c745edb986e2f09c Mon Sep 17 00:00:00 2001 From: Aung Myo Date: Wed, 25 Jul 2018 16:07:28 +0630 Subject: [PATCH] dining show --- app/views/origami/payments/show.html.erb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/origami/payments/show.html.erb b/app/views/origami/payments/show.html.erb index 6cb85113..195719bd 100755 --- a/app/views/origami/payments/show.html.erb +++ b/app/views/origami/payments/show.html.erb @@ -401,14 +401,14 @@ <% 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 %> <%end %> <% if @sale_payment.nil? %> Void - <% if @other_payment < 0 %> + <% if @other_payment <= 0 %> <%if @sale_data.total_discount == 0 %> Waste Spoile @@ -416,14 +416,14 @@ <% end %> <% end %> <% else %> - <% if @other_payment < 0 && @sale_payment.nil?%> + <% if @other_payment <= 0 && @sale_payment.nil?%> <%if @sale_data.total_discount == 0 %>