From a9f9f108994f7ae804fb0a641a867d6dd1645819 Mon Sep 17 00:00:00 2001 From: Yan Date: Wed, 5 Jul 2017 11:16:16 +0630 Subject: [PATCH] cash click prevent --- app/views/origami/payments/show.html.erb | 3 +++ 1 file changed, 3 insertions(+) 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"