Skip to content

Commit

Permalink
Allows for negative numbers for credit cards
Browse files Browse the repository at this point in the history
  • Loading branch information
psi-iota committed Oct 7, 2023
1 parent 3e96751 commit 6a485a9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions account_add_modal.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@
<div class="input-group-prepend">
<span class="input-group-text"><i class="fa fa-fw fa-dollar-sign"></i></span>
</div>
<input type="text" class="form-control" inputmode="numeric" pattern="[0-9]*\.?[0-9]{0,2}" name="opening_balance" placeholder="0.00" required>
</div>
<input type="text" class="form-control" inputmode="numeric" pattern="-?[0-9]*\.?[0-9]{0,2}" name="opening_balance" placeholder="0.00" required>
</div>

<div class="form-group">
Expand Down

0 comments on commit 6a485a9

Please sign in to comment.