FIX_DASH
This commit is contained in:
parent
6c1ecac7a1
commit
37159dc1c5
@ -886,3 +886,15 @@ if (!function_exists('removeNumberFormatting')) {
|
|||||||
return (float) str_replace(',', '', trim($number));
|
return (float) str_replace(',', '', trim($number));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!function_exists('formatKey')) {
|
||||||
|
function formatKey($key, $len = 3)
|
||||||
|
{
|
||||||
|
$words = explode('_', $key);
|
||||||
|
$formatted = array_map(function ($word) use ($len) {
|
||||||
|
return strlen($word) < $len ? strtoupper($word) : ucfirst(strtolower($word));
|
||||||
|
}, $words);
|
||||||
|
return implode(' ', $formatted);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@ -27,7 +27,7 @@ class InsurerBranchModel extends Model
|
|||||||
|
|
||||||
public function getInsurerBranchesWithInsurerNames()
|
public function getInsurerBranchesWithInsurerNames()
|
||||||
{
|
{
|
||||||
$query = $this->select('insurer_branch.*, I.short_name as insurer_name')
|
$query = $this->select('insurer_branch.*, I.short_name as insurer_name, I.category')
|
||||||
->join('insurers I', 'insurer_branch.insurer_id = I.id', 'left')
|
->join('insurers I', 'insurer_branch.insurer_id = I.id', 'left')
|
||||||
->find();
|
->find();
|
||||||
return $query;
|
return $query;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user