Various cleanup in transaction and journal display code.

This commit is contained in:
James Cole
2017-11-04 07:10:21 +01:00
parent b4dc70244a
commit bb46d034cd
25 changed files with 885 additions and 543 deletions

View File

@@ -346,7 +346,7 @@ class ExpandedForm
$options['step'] = 'any';
unset($options['placeholder']);
$html = view('form.number', compact( 'classes', 'name', 'label', 'value', 'options'))->render();
$html = view('form.number', compact('classes', 'name', 'label', 'value', 'options'))->render();
return $html;
}
@@ -586,7 +586,7 @@ class ExpandedForm
$value = $this->fillFieldValue($name, $value);
$options['step'] = 'any';
$defaultCurrency = isset($options['currency']) ? $options['currency'] : Amt::getDefaultCurrency();
$currencies = Amt::getAllCurrencies();
$currencies = app('amount')->getAllCurrencies();
unset($options['currency']);
unset($options['placeholder']);