Customers Add+Edit, API WP
This commit is contained in:
parent
dc63fa9fb2
commit
75a0f9a38a
120 changed files with 11894 additions and 6134 deletions
|
|
@ -41,4 +41,31 @@ if (! function_exists('set_user_attr')) {
|
|||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (! function_exists('get_active_badge')) {
|
||||
function get_active_badge($active, $tooltip = false, $pos = "top")
|
||||
{
|
||||
if($tooltip){
|
||||
$tooltip = 'data-toggle="tooltip" data-placement="top" data-original-title="'.$tooltip.'"';
|
||||
}
|
||||
return $active ? '<span class="badge badge-pill badge-success" '.$tooltip.'><i class="fa fa-check"></i></span>' : '<span class="badge badge-pill badge-danger" '.$tooltip.'><i class="fa fa-times"></i></span>';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (! function_exists('formatNumber')) {
|
||||
function formatNumber($number, $dec=2)
|
||||
{
|
||||
return !$number ? $number : Util::formatNumber($number, $dec);
|
||||
}
|
||||
}
|
||||
|
||||
if (! function_exists('reFormatNumber')) {
|
||||
function reFormatNumber($number)
|
||||
{
|
||||
return !$number ? $number : Util::reFormatNumber($number);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue