mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -08:00
Fixes #2383
This commit is contained in:
parent
0e5209e80f
commit
17d5e40e02
|
@ -358,7 +358,7 @@ class AssetsController extends Controller
|
|||
}
|
||||
|
||||
if ($request->has('purchase_cost')) {
|
||||
$asset->purchase_cost = e($request->input('purchase_cost'));
|
||||
$asset->purchase_cost = e(number_format($request->input('purchase_cost'), 2, '.', ''));
|
||||
} else {
|
||||
$asset->purchase_cost = null;
|
||||
}
|
||||
|
|
|
@ -215,7 +215,7 @@
|
|||
|
||||
|
||||
</span>
|
||||
<input class="col-md-2 form-control" type="text" name="purchase_cost" id="purchase_cost" value="{{ Input::old('purchase_cost', number_format($asset->purchase_cost,2)) }}" />
|
||||
<input class="col-md-2 form-control" type="text" name="purchase_cost" id="purchase_cost" value="{{ Input::old('purchase_cost', number_format($asset->purchase_cost,2, '.', '')) }}" />
|
||||
{!! $errors->first('purchase_cost', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') !!}
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue