mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-05 12:12:18 +00:00
Fix #4894
This commit is contained in:
@@ -58,9 +58,9 @@ class ExpandedForm
|
||||
unset($options['currency'], $options['placeholder']);
|
||||
|
||||
// make sure value is formatted nicely:
|
||||
if (null !== $value && '' !== $value) {
|
||||
$value = round((float)$value, 8);
|
||||
}
|
||||
//if (null !== $value && '' !== $value) {
|
||||
//$value = round((float)$value, 8);
|
||||
//}
|
||||
try {
|
||||
$html = prefixView('form.amount-no-currency', compact('classes', 'name', 'label', 'value', 'options'))->render();
|
||||
} catch (Throwable $e) { // @phpstan-ignore-line
|
||||
@@ -224,6 +224,7 @@ class ExpandedForm
|
||||
}
|
||||
$selectList[$entryId] = $title;
|
||||
}
|
||||
|
||||
return $selectList;
|
||||
}
|
||||
|
||||
@@ -246,7 +247,7 @@ class ExpandedForm
|
||||
|
||||
// make sure value is formatted nicely:
|
||||
if (null !== $value && '' !== $value) {
|
||||
$value = round((float)$value, $selectedCurrency->decimal_places);
|
||||
// $value = round((float)$value, $selectedCurrency->decimal_places);
|
||||
}
|
||||
try {
|
||||
$html = prefixView('form.non-selectable-amount', compact('selectedCurrency', 'classes', 'name', 'label', 'value', 'options'))->render();
|
||||
|
Reference in New Issue
Block a user