diff --git a/application/controllers/tools/Rpt_lab_result.php b/application/controllers/tools/Rpt_lab_result.php index 83ec10f6..1ff44f1d 100644 --- a/application/controllers/tools/Rpt_lab_result.php +++ b/application/controllers/tools/Rpt_lab_result.php @@ -130,7 +130,7 @@ class Rpt_lab_result extends MY_Controller private function _fetch_company_info() { $row = $this->db_onedev->query( - "SELECT S_SystemsCompanyAddress, S_SystemsCompanyPhone, S_SystemsCompanyName FROM s_systems LIMIT 1" + "SELECT S_SystemsCompanyAddress, S_SystemsCompanyCity, S_SystemsCompanyPhone, S_SystemsCompanyName FROM conf_systems LIMIT 1" )->row_array(); return $row ?: []; } @@ -154,9 +154,10 @@ class Rpt_lab_result extends MY_Controller $cw = $pw - $ml - $mr; // 190 // ── Page header ────────────────────────────────────────────────────── - $company_addr = $this->_s($co['S_SystemsCompanyAddress'] ?? 'Jl. LL. RE. Martadinata No. 135 Bandung'); - $company_phone = $this->_s($co['S_SystemsCompanyPhone'] ?? '(022)7271946'); - $addr_line = $company_addr . ' Telp. ' . $company_phone; + $company_addr = $this->_s($co['S_SystemsCompanyAddress'] ?? 'Jl. LL. RE. Martadinata No. 135'); + $company_city = $this->_s($co['S_SystemsCompanyCity'] ?? 'Bandung'); + $company_phone = $this->_s($co['S_SystemsCompanyPhone'] ?? '(022)7271946'); + $addr_line = $company_addr . ' ' . $company_city . ' Telp. ' . $company_phone; $pj_label = 'Penanggung Jawab : '; $pj_name = $this->_s($h['M_DoctorName'] ?? '');