From 13357e529f999d15e4104c921638d93e7ef6e3bb Mon Sep 17 00:00:00 2001 From: phyusin Date: Tue, 5 Jun 2018 11:52:32 +0630 Subject: [PATCH] =?UTF-8?q?check=20customer=20contact=20no=E1=80=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/crm/customers_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/crm/customers_controller.rb b/app/controllers/crm/customers_controller.rb index 00a6ee16..18e87308 100644 --- a/app/controllers/crm/customers_controller.rb +++ b/app/controllers/crm/customers_controller.rb @@ -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