check customer contact noဓ
This commit is contained in:
@@ -241,7 +241,7 @@ class Crm::CustomersController < BaseCrmController
|
|||||||
if @existed_contact.nil?
|
if @existed_contact.nil?
|
||||||
@checked_contact = Customer.find_by_contact_no(customer_params[:contact_no])
|
@checked_contact = Customer.find_by_contact_no(customer_params[:contact_no])
|
||||||
end
|
end
|
||||||
if !@existed_contact.nil? && @checked_contact.nil?
|
if !@existed_contact.nil? || @checked_contact.nil?
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
if @crm_customer.update(customer_params)
|
if @crm_customer.update(customer_params)
|
||||||
# update tax profile
|
# update tax profile
|
||||||
|
|||||||
Reference in New Issue
Block a user