Print just first letter of Employee family name to protect privacy (#1027)

This commit is contained in:
FrancescoUK committed 2016-12-05 19:22:38 +00:00
1 parent d9649edc3e
commit 3a2dd7134f
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
Version 3.0.2
-----------
+
+
+ Protect Employee privacy printing just the first letter of family name
+ Updates to language translations
+2 -2
View File
@@ -366,7 +366,7 @@ class Sales extends Secure_Controller
$data['amount_due'] = $this->sale_lib->get_amount_due();
$employee_id = $this->Employee->get_logged_in_employee_info()->person_id;
$employee_info = $this->Employee->get_info($employee_id);
$data['employee'] = $employee_info->first_name . ' ' . $employee_info->last_name;
$data['employee'] = $employee_info->first_name . ' ' . $employee_info->last_name[0];
$data['company_info'] = implode("\n", array(
$this->config->item('address'),
$this->config->item('phone'),
@@ -608,7 +608,7 @@ class Sales extends Secure_Controller
$data['amount_change'] = $this->sale_lib->get_amount_due() * -1;
$data['amount_due'] = $this->sale_lib->get_amount_due();
$employee_info = $this->Employee->get_info($this->sale_lib->get_employee());
$data['employee'] = $employee_info->first_name . ' ' . $employee_info->last_name;
$data['employee'] = $employee_info->first_name . ' ' . $employee_info->last_name[0];
$this->_load_customer_data($this->sale_lib->get_customer(), $data);
$data['sale_id_num'] = $sale_id;