mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Remove number formatting
This commit is contained in:
parent
208ccab4c1
commit
57d2b88900
|
@ -385,8 +385,8 @@ class Asset extends Depreciable
|
|||
->where('physical', '=', '1')
|
||||
->max('asset_tag');
|
||||
|
||||
$asset_tag_digits = number_format(preg_replace('/\D/', '', $temp_asset_tag));
|
||||
$asset_tag = number_format(preg_replace('/^0*/', '', $asset_tag_digits));
|
||||
$asset_tag_digits = preg_replace('/\D/', '', $temp_asset_tag);
|
||||
$asset_tag = preg_replace('/^0*/', '', $asset_tag_digits);
|
||||
|
||||
if ($settings->zerofill_count > 0) {
|
||||
return $settings->auto_increment_prefix.Asset::zerofill(($asset_tag + 1), $settings->zerofill_count);
|
||||
|
|
Loading…
Reference in a new issue