Various small fixes.

This commit is contained in:
James Cole
2016-12-22 18:19:50 +01:00
parent 284db7f90b
commit e76075e29f
3 changed files with 11 additions and 4 deletions

View File

@@ -503,6 +503,13 @@ class ExpandedForm
$currencies = Amt::getAllCurrencies();
unset($options['currency']);
unset($options['placeholder']);
// make sure value is formatted nicely:
if (!is_null($value) && $value !== '') {
$value = round($value, 2);
}
$html = view('form.' . $view, compact('defaultCurrency', 'currencies', 'classes', 'name', 'label', 'value', 'options'))->render();
return $html;