From 995c8480e06dd334f2460410650529cbe9ec695a Mon Sep 17 00:00:00 2001 From: Aung Myo Date: Tue, 12 Jun 2018 18:02:17 +0630 Subject: [PATCH] update foc with other payment --- app/views/origami/payments/show.html.erb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/views/origami/payments/show.html.erb b/app/views/origami/payments/show.html.erb index 09fa7b94..4c3cd3a3 100755 --- a/app/views/origami/payments/show.html.erb +++ b/app/views/origami/payments/show.html.erb @@ -189,7 +189,7 @@ <% else %>
Other Payments
-
<%= number_with_precision(@other_payment, precision: precision.to_i) rescue number_with_precision(0, precision: precision.to_i) %>
+
<%= number_with_precision(@other_payment, precision: precision.to_i) rescue number_with_precision(0, precision: precision.to_i) %>
<% end %> @@ -377,12 +377,16 @@ <% if current_login_employee.role == "cashier" %> - FOC + <% if @other_payment <= 0%> + FOC + <%end %> Void Waste Spoile <% else %> + <% if @other_payment <= 0%>