update jade integration
This commit is contained in:
@@ -29,7 +29,7 @@ class Origami::CustomersController < BaseOrigamiController
|
||||
@crm_customers.date_of_birth = response["customer_data"]["DOB"]
|
||||
@crm_customers.nrc_no = response["customer_data"]["NRC"]
|
||||
@crm_customers.address = response["customer_data"]["address"]
|
||||
@crm_customers.card_no = 121212
|
||||
@crm_customers.card_no = response["customer_data"]["customer_card_no"]
|
||||
@crm_customers.paypar_account_no = filter
|
||||
@crm_customers.membership_id = response["customer_data"]["id"]
|
||||
@crm_customers.membership_type = response["customer_data"]["member_group_id"]
|
||||
|
||||
@@ -263,14 +263,20 @@
|
||||
dataType: "json",
|
||||
success: function(data) {
|
||||
if (data.status == false) {
|
||||
alert(data.message)
|
||||
$.alert({
|
||||
title: 'Alert!',
|
||||
content: data.message,
|
||||
type: 'red',
|
||||
typeAnimated: true,
|
||||
btnClass: 'btn-danger',
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
if (data.status == undefined) {
|
||||
customer_id = data[0].customer_id;
|
||||
customer_name = data[0].name;
|
||||
update_sale(customer_id, customer_name,sale_id);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
},100);
|
||||
|
||||
Reference in New Issue
Block a user