From 82a2159fd46256e1ee0a8b0d88922ef1d5b742f2 Mon Sep 17 00:00:00 2001 From: Jonathan Rosenbaum Date: Sun, 8 Feb 2015 07:34:47 +0000 Subject: [PATCH] Changes check_number to undefined if it doesn't exist. --- js/transaction.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/transaction.js b/js/transaction.js index 53baad7..bb2eb76 100644 --- a/js/transaction.js +++ b/js/transaction.js @@ -624,7 +624,7 @@ $(function() { if ($(this).prop("checked") === true) { payment_type = $(this).val(); if (payment_type === "credit" || payment_type === "cash") { - check_number = ""; + check_number = undefined; } else { check_number = $("#check_number").val(); }