check customer contact noဓ

This commit is contained in:
phyusin
2018-06-05 11:52:32 +06:30
parent d28d62a937
commit 13357e529f

View File

@@ -241,7 +241,7 @@ class Crm::CustomersController < BaseCrmController
if @existed_contact.nil?
@checked_contact = Customer.find_by_contact_no(customer_params[:contact_no])
end
if !@existed_contact.nil? && @checked_contact.nil?
if !@existed_contact.nil? || @checked_contact.nil?
respond_to do |format|
if @crm_customer.update(customer_params)
# update tax profile