diff --git a/app/views/foodcourt/payments/show.html.erb b/app/views/foodcourt/payments/show.html.erb index 818e1b3c..d844c973 100755 --- a/app/views/foodcourt/payments/show.html.erb +++ b/app/views/foodcourt/payments/show.html.erb @@ -193,12 +193,18 @@ <%= number_with_precision(@cash, precision: precision.to_i ) rescue number_with_precision(0, precision: precision.to_i ) %> + <%else%> + <%end%> <%if @credit_exist%>
Credit
<%= number_with_precision(@credit, precision: precision.to_i ) rescue number_with_precision(0, precision: precision.to_i ) %>
+ <%else%> + <%end%>
Other Payments
@@ -907,6 +913,7 @@ $(document).ready(function(){ } }); + <% if @cash_exist%> $(document).on('click', '.cashier_number', function(event){ if(event.handled !== true) { var original_value; @@ -976,7 +983,7 @@ $(document).ready(function(){ return false; } }); - +<%end%> function update_balance(){ var cash = $('#cash').text();