Skip to content

Commit

Permalink
Fixes #733
Browse files Browse the repository at this point in the history
  • Loading branch information
JC5 committed Aug 7, 2017
1 parent 1bca1b9 commit 4c0396a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions app/Support/ExpandedForm.php
Expand Up @@ -40,8 +40,6 @@ class ExpandedForm
*/
public function amount(string $name, $value = null, array $options = []): string
{
$options['min'] = '0.01';

return $this->currencyField($name, 'amount', $value, $options);
}

Expand All @@ -54,8 +52,6 @@ public function amount(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);
}

Expand Down Expand Up @@ -279,7 +275,6 @@ public function nonSelectableAmount(string $name, $value = null, array $options
$classes = $this->getHolderClasses($name);
$value = $this->fillFieldValue($name, $value);
$options['step'] = 'any';
$options['min'] = '0.01';
$selectedCurrency = isset($options['currency']) ? $options['currency'] : Amt::getDefaultCurrency();
unset($options['currency']);
unset($options['placeholder']);
Expand Down
4 changes: 2 additions & 2 deletions resources/views/transactions/split/edit.twig
Expand Up @@ -247,7 +247,7 @@
<div class="input-group">
<div class="input-group-addon">{{ transaction.transaction_currency_symbol }}</div>
<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>
<input type="hidden" name="transactions[{{ loop.index0 }}][transaction_currency_id]"
value="{{ transaction.transaction_currency_id }}">
Expand All @@ -259,7 +259,7 @@
<div class="input-group">
<div class="input-group-addon">{{ transaction.foreign_currency_symbol }}</div>
<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>
<input type="hidden"
name="transactions[{{ loop.index0 }}][foreign_currency_id]"
Expand Down

0 comments on commit 4c0396a

Please sign in to comment.