Removed second number_format
This commit is contained in:
parent
93ba0717d8
commit
a6e6991a2d
1 changed files with 3 additions and 1 deletions
|
@ -489,8 +489,10 @@ class Asset extends Depreciable
|
|||
->where('physical', '=', '1')
|
||||
->max('asset_tag');
|
||||
|
||||
$asset_tag_digits = number_format(preg_replace('/\D/', '', $temp_asset_tag));
|
||||
$asset_tag_digits = preg_replace('/\D/', '', $temp_asset_tag);
|
||||
\Log::info('New asset tag base will be:'. $asset_tag_digits;
|
||||
$asset_tag = preg_replace('/^0*/', '', $asset_tag_digits);
|
||||
\Log::info('New asset tag will be:'. $asset_tag;
|
||||
|
||||
if ($settings->zerofill_count > 0) {
|
||||
return $settings->auto_increment_prefix.Asset::zerofill(($asset_tag + 1),$settings->zerofill_count);
|
||||
|
|
Loading…
Add table
Reference in a new issue