Properly save company_name in customer form

This commit is contained in:
jekkos
2016-02-04 23:09:03 +01:00
committed by FrancescoUK
parent 8a5177f14c
commit 5f8eface28

View File

@@ -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))