File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ public function setPurchaseDateAttribute($value)
2121 */
2222 public function setPurchaseCostAttribute ($ value )
2323 {
24- if (is_float ($ value )) {
24+ if (is_numeric ($ value )) {
2525 //value is *already* a floating-point number. Just assign it directly
2626 $ this ->attributes ['purchase_cost ' ] = $ value ;
2727 return ;
Original file line number Diff line number Diff line change @@ -1340,7 +1340,7 @@ function numberWithCommas(value) {
13401340 window .location .href = ' {{ route (' maintenances.create' , [' asset_id' => (isset ($asset )) ? $asset -> id :' ' ]) } }' ;
13411341 },
13421342 attributes: {
1343- title: ' {{ trans (' general.create ' ) } }' ,
1343+ title: ' {{ trans (' button.add_maintenance ' ) } }' ,
13441344 }
13451345 },
13461346 @endcan
You can’t perform that action at this time.
0 commit comments