diff --git a/application/controllers/customers.php b/application/controllers/customers.php index 833f012ca..68b431ed1 100644 --- a/application/controllers/customers.php +++ b/application/controllers/customers.php @@ -75,7 +75,7 @@ class Customers extends Person_controller 'company_name'=>$this->input->post('company_name')=='' ? null:$this->input->post('company_name'), 'taxable'=>$this->input->post('taxable')=='' ? 0:1, ); - if($this->Customer->save($person_data,$customer_data,$customer_id)) + if($this->Customer->save_customer($person_data,$customer_data,$customer_id)) { //New customer if($customer_id==-1) @@ -179,7 +179,7 @@ class Customers extends Person_controller $invalidated = $this->Customer->account_number_exists($account_number); } - if($invalidated || !$this->Customer->save($person_data,$customer_data)) + if($invalidated || !$this->Customer->save_customer($person_data,$customer_data)) { $failCodes[] = $i; } diff --git a/application/controllers/employees.php b/application/controllers/employees.php index d9da8e255..0c8bb6be0 100644 --- a/application/controllers/employees.php +++ b/application/controllers/employees.php @@ -87,7 +87,7 @@ class Employees extends Person_controller $employee_data=array('username'=>$this->input->post('username')); } - if($this->Employee->save($person_data,$employee_data,$grants_data,$employee_id)) + if($this->Employee->save_employee($person_data,$employee_data,$grants_data,$employee_id)) { //New employee if($employee_id==-1) diff --git a/application/controllers/suppliers.php b/application/controllers/suppliers.php index f3346008e..a6803634d 100644 --- a/application/controllers/suppliers.php +++ b/application/controllers/suppliers.php @@ -76,7 +76,7 @@ class Suppliers extends Person_controller 'agency_name'=>$this->input->post('agency_name'), 'account_number'=>$this->input->post('account_number')=='' ? null:$this->input->post('account_number'), ); - if($this->Supplier->save($person_data,$supplier_data,$supplier_id)) + if($this->Supplier->save_supplier($person_data,$supplier_data,$supplier_id)) { //New supplier if($supplier_id==-1) diff --git a/application/models/customer.php b/application/models/customer.php index 1422c4508..2c6b2e9ef 100644 --- a/application/models/customer.php +++ b/application/models/customer.php @@ -95,7 +95,7 @@ class Customer extends Person /* Inserts or updates a customer */ - function save(&$person_data, &$customer_data,$customer_id=false) + function save_customer(&$person_data, &$customer_data,$customer_id=false) { $success=false; //Run these queries as a transaction, we want to make sure we do all or nothing diff --git a/application/models/employee.php b/application/models/employee.php index 6429c8069..6b49c0ac4 100644 --- a/application/models/employee.php +++ b/application/models/employee.php @@ -81,7 +81,7 @@ class Employee extends Person /* Inserts or updates an employee */ - function save(&$person_data, &$employee_data,&$grants_data,$employee_id=false) + function save_employee(&$person_data, &$employee_data,&$grants_data,$employee_id=false) { $success=false; diff --git a/application/models/supplier.php b/application/models/supplier.php index ea5894237..aaefeb416 100644 --- a/application/models/supplier.php +++ b/application/models/supplier.php @@ -90,7 +90,7 @@ class Supplier extends Person /* Inserts or updates a suppliers */ - function save(&$person_data, &$supplier_data,$supplier_id=false) + function save_supplier(&$person_data, &$supplier_data,$supplier_id=false) { $success=false; //Run these queries as a transaction, we want to make sure we do all or nothing