diff --git a/application/controllers/Customers.php b/application/controllers/Customers.php index c1d155a76..201a1d3fd 100644 --- a/application/controllers/Customers.php +++ b/application/controllers/Customers.php @@ -73,7 +73,7 @@ class Customers extends Person_controller ); $customer_data=array( 'account_number'=>$this->input->post('account_number') == '' ? null : $this->input->post('account_number'), - 'company_name'=>$this->input->post('company_name') == '' ? null : $this->input->post('account_number'), + 'company_name'=>$this->input->post('company_name') == '' ? null : $this->input->post('company_name'), 'taxable'=>$this->input->post('taxable') != null ); if($this->Customer->save_customer($person_data,$customer_data,$customer_id))