This commit is contained in:
snipe 2016-08-02 09:54:31 -07:00
parent 0e5209e80f
commit 17d5e40e02
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}

View file

@ -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>