diff --git a/app/views/origami/payments/show.html.erb b/app/views/origami/payments/show.html.erb
index 78660997..97c4d216 100755
--- a/app/views/origami/payments/show.html.erb
+++ b/app/views/origami/payments/show.html.erb
@@ -313,8 +313,8 @@
}
payment_type = checkReceiptNoInFirstBillData(receipt_no,"payment")
- console.log(payment_type)
if ($("#server_mode").val() != "cloud") { // first bill not used in cloud
+
if (member_id && member_discount) {
if(parseInt(jQuery.inArray("Credit", payment_type)) == -1){
$("#credit_payment").hide();
@@ -457,9 +457,9 @@
var credit = $('#credit').text();
var card = $('#card').text();
- if (credit <= 0) {
- calculate_member_discount(sale_id);
- }
+ if (credit <= 0) {
+ calculate_member_discount(sale_id);
+ }
$.ajax({type: "POST",
url: "<%= origami_payment_cash_path %>",