mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fixes #733
This commit is contained in:
parent
1bca1b921b
commit
4c0396ad1c
@ -40,8 +40,6 @@ class ExpandedForm
|
|||||||
*/
|
*/
|
||||||
public function amount(string $name, $value = null, array $options = []): string
|
public function amount(string $name, $value = null, array $options = []): string
|
||||||
{
|
{
|
||||||
$options['min'] = '0.01';
|
|
||||||
|
|
||||||
return $this->currencyField($name, 'amount', $value, $options);
|
return $this->currencyField($name, 'amount', $value, $options);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -54,8 +52,6 @@ class ExpandedForm
|
|||||||
*/
|
*/
|
||||||
public function amountSmall(string $name, $value = null, array $options = []): string
|
public function amountSmall(string $name, $value = null, array $options = []): string
|
||||||
{
|
{
|
||||||
$options['min'] = '0.01';
|
|
||||||
|
|
||||||
return $this->currencyField($name, 'amount-small', $value, $options);
|
return $this->currencyField($name, 'amount-small', $value, $options);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -279,7 +275,6 @@ class ExpandedForm
|
|||||||
$classes = $this->getHolderClasses($name);
|
$classes = $this->getHolderClasses($name);
|
||||||
$value = $this->fillFieldValue($name, $value);
|
$value = $this->fillFieldValue($name, $value);
|
||||||
$options['step'] = 'any';
|
$options['step'] = 'any';
|
||||||
$options['min'] = '0.01';
|
|
||||||
$selectedCurrency = isset($options['currency']) ? $options['currency'] : Amt::getDefaultCurrency();
|
$selectedCurrency = isset($options['currency']) ? $options['currency'] : Amt::getDefaultCurrency();
|
||||||
unset($options['currency']);
|
unset($options['currency']);
|
||||||
unset($options['placeholder']);
|
unset($options['placeholder']);
|
||||||
|
@ -247,7 +247,7 @@
|
|||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<div class="input-group-addon">{{ transaction.transaction_currency_symbol }}</div>
|
<div class="input-group-addon">{{ transaction.transaction_currency_symbol }}</div>
|
||||||
<input type="number" name="transactions[{{ loop.index0 }}][amount]" value="{{ transaction.amount }}"
|
<input type="number" name="transactions[{{ loop.index0 }}][amount]" value="{{ transaction.amount }}"
|
||||||
class="form-control" autocomplete="off" step="any" min="0.01">
|
class="form-control" autocomplete="off" step="any">
|
||||||
</div>
|
</div>
|
||||||
<input type="hidden" name="transactions[{{ loop.index0 }}][transaction_currency_id]"
|
<input type="hidden" name="transactions[{{ loop.index0 }}][transaction_currency_id]"
|
||||||
value="{{ transaction.transaction_currency_id }}">
|
value="{{ transaction.transaction_currency_id }}">
|
||||||
@ -259,7 +259,7 @@
|
|||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<div class="input-group-addon">{{ transaction.foreign_currency_symbol }}</div>
|
<div class="input-group-addon">{{ transaction.foreign_currency_symbol }}</div>
|
||||||
<input type="number" name="transactions[{{ loop.index0 }}][foreign_amount]" value="{{ transaction.foreign_amount }}"
|
<input type="number" name="transactions[{{ loop.index0 }}][foreign_amount]" value="{{ transaction.foreign_amount }}"
|
||||||
class="form-control" autocomplete="off" step="any" min="0.01">
|
class="form-control" autocomplete="off" step="any">
|
||||||
</div>
|
</div>
|
||||||
<input type="hidden"
|
<input type="hidden"
|
||||||
name="transactions[{{ loop.index0 }}][foreign_currency_id]"
|
name="transactions[{{ loop.index0 }}][foreign_currency_id]"
|
||||||
|
Loading…
Reference in New Issue
Block a user