Fix the customer change issue.

This commit is contained in:
Steve Ireland
2017-04-20 23:34:56 -04:00
parent b057d1c3c0
commit c95c56ade7
2 changed files with 12 additions and 3 deletions

View File

@@ -118,10 +118,19 @@ class Customers extends Persons
'company_name' => $this->input->post('company_name') == '' ? NULL : $this->input->post('company_name'),
'discount_percent' => $this->input->post('discount_percent') == '' ? 0.00 : $this->input->post('discount_percent'),
'package_id' => $this->input->post('package_id') == '' ? NULL : $this->input->post('package_id'),
'taxable' => $this->input->post('taxable') != NULL,
'sales_tax_code' => $this->input->post('sales_tax_code')
'taxable' => $this->input->post('taxable') != NULL
);
$x = $this->input->post('sales_tax_code');
if(!isset($x))
{
$customer_data['sales_tax_code'] = '';
}
else
{
$customer_data['sales_tax_code'] = $this->input->post('sales_tax_code');
}
if($this->Customer->save_customer($person_data, $customer_data, $customer_id))
{
$person_data = $this->xss_clean($person_data);

View File

@@ -141,7 +141,7 @@ class Taxes extends Secure_Controller
{
$entered_tax_code = $this->xss_clean($this->input->post('tax_code'));
$tax_code_data = array(
'tax_code' => $this->input->post('tax_code'),
'tax_code' => strtoupper($this->input->post('tax_code')),
'tax_code_name' => $this->input->post('tax_code_name'),
'tax_code_type' => $this->input->post('tax_code_type'),
'city' => $this->input->post('city'),