From 9fc3c7f61cba445f343f5d2fd05a97ff9791ea96 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Wed, 11 Sep 2019 13:05:10 +0200 Subject: [PATCH] [bug] Wallet credit inputs does not allow to put zeros at the end of the decimal part of the amount --- CHANGELOG.md | 1 + app/assets/templates/wallet/credit_modal.html.erb | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 844a54d6a..eec402fd8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ - Log changes in Invoices or InvoiceItems records for better handling of accounting certification issues - Upgrade dev environments from ruby 2.3.6 to 2.3.8 (#143) - Fix a bug: Users with role 'member' cannot download their invoices +- Fix a bug: Wallet credit inputs does not allow to put zeros at the end of the decimal part of the amount - [TODO DEPLOY] `rake db:migrate` - [TODO DEPLOY] -> (only dev) `rvm install ruby-2.3.8 && rvm use && bundle install` diff --git a/app/assets/templates/wallet/credit_modal.html.erb b/app/assets/templates/wallet/credit_modal.html.erb index da54b17a5..e37d24e3c 100644 --- a/app/assets/templates/wallet/credit_modal.html.erb +++ b/app/assets/templates/wallet/credit_modal.html.erb @@ -33,10 +33,10 @@ required min="1" step="any" - ng-pattern="amount.toString()"> + match="amount"> {{currencySymbol}} {{'amount_confirm_is_required'}} - {{ 'amount_confirm_does_not_match' | translate }} + {{ 'amount_confirm_does_not_match' | translate }}