diff --git a/app/views/origami/payments/show.html.erb b/app/views/origami/payments/show.html.erb index 86738c22..77bda01b 100644 --- a/app/views/origami/payments/show.html.erb +++ b/app/views/origami/payments/show.html.erb @@ -320,6 +320,9 @@ $(document).on('click', '.cashier_number', function(event){ }); $( document ).ready(function() { + // Disable click event cash to prevent + $(".payment .cash-color").off('click'); + $('#credit_payment').click(function() { var sale_id = $('#sale_id').text(); window.location.href = '/origami/sale/'+ sale_id + "/payment/credit_payment"