Customers Add+Edit, API WP
This commit is contained in:
parent
dc63fa9fb2
commit
75a0f9a38a
120 changed files with 11894 additions and 6134 deletions
|
|
@ -37,11 +37,20 @@ class Util
|
|||
return 'd.m.Y - H:i';
|
||||
}
|
||||
|
||||
public static function formatNumber($value){
|
||||
public static function _format_number($value){
|
||||
return preg_replace("/[^0-9,]/", "", $value);
|
||||
|
||||
}
|
||||
|
||||
public static function reFormatNumber($value){
|
||||
return (float) str_replace(',', '.', self::_format_number($value));
|
||||
}
|
||||
|
||||
public static function formatNumber($value, $dec=2){
|
||||
if(\App::getLocale() === "en"){
|
||||
return number_format($value, 2, '.', ',');
|
||||
return number_format($value, $dec, '.', ',');
|
||||
}
|
||||
return number_format($value, 2, ',', '.');
|
||||
return number_format($value, $dec, ',', '.');
|
||||
}
|
||||
|
||||
public static function utf8ize( $mixed ) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue