update report and customer
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
json.extract! crm_customer, :id, :name, :company, :contact_no, :email, :date_of_birth, :membership_id, :membership_type, :membership_authentication_code, :created_at, :updated_at
|
||||
json.extract! crm_customer, :id, :name, :company, :contact_no, :email, :date_of_birth, :membership_id, :membership_type, :membership_authentication_code, :created_at, :updated_at,:salutation, :gender,:nrc_no,:address,:card_no
|
||||
json.url crm_customer_url(crm_customer, format: :json)
|
||||
|
||||
@@ -120,7 +120,7 @@ $(document).on('click',".customer_tr",function(){
|
||||
$('#customer_company').val(data.company);
|
||||
$('#customer_contact_no').val(data.contact_no);
|
||||
$('#customer_email').val(data.email);
|
||||
$('#customer_salution').val(data.salution);
|
||||
$('#customer_salutation').val(data.salutation);
|
||||
$('#customer_nrc_no').val(data.nrc_no);
|
||||
$('#customer_card_no').val(data.card_no);
|
||||
$('#customer_address').val(data.address);
|
||||
@@ -133,11 +133,11 @@ $(document).on('click',".customer_tr",function(){
|
||||
$('.female').prop( "checked", true )
|
||||
}
|
||||
|
||||
if(data.salution == 'Mr') {
|
||||
if(data.salutation == 'Mr') {
|
||||
$('.mr').prop( "checked", true )
|
||||
}else if(data.salution == 'Miss') {
|
||||
}else if(data.salutation == 'Miss') {
|
||||
$('.miss').prop( "checked", true )
|
||||
}else if(data.salution == 'Mrs'){
|
||||
}else if(data.salutation == 'Mrs'){
|
||||
$('.mrs').prop( "checked", true )
|
||||
}else{
|
||||
$('.mdm').prop( "checked", true )
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
json.extract! @crm_customer, :id, :name, :company, :contact_no, :email, :date_of_birth,
|
||||
:membership_id, :membership_type, :membership_authentication_code,
|
||||
:created_at, :updated_at,
|
||||
:salution, :gender,:nrc_no,:address,:card_no
|
||||
:salutation, :gender,:nrc_no,:address,:card_no
|
||||
json.url crm_customer_url(@crm_customer, format: :json)
|
||||
|
||||
Reference in New Issue
Block a user