This commit is contained in:
salam committed 2025-10-21 07:24:54 +02:00
1 parent 551ad2369e
commit 9881d8c37b
23 files changed
+662 -236

No files matched your search

+20 -2
View File
@@ -4,10 +4,28 @@ namespace App\Actions\Generate\Utilities;
class Format
{
public static function numeric($value, $stellen)
public static function seite($value)
{
if ($value * 1 > 0) {
return $value;
} else {
return '';
}
}
public static function index($value)
{
if (is_numeric($value) && $value * 1 > 0) {
return number_format($value, $stellen, '.', '.');
return number_format($value, 2, '.', '.');
} else {
return '';
}
}
public static function dezimal($value, $stellen = 2)
{
if (is_numeric($value) && $value * 1 > 0) {
return number_format($value, $stellen, ',', '.');
} else {
return '';
}