Added comma support #2785

This commit is contained in:
Priit Tark 2015-08-10 20:04:20 +03:00
parent f5311301c9
commit e9cf3d2fbe
15 changed files with 80 additions and 21 deletions

View file

@ -23,6 +23,10 @@ class Deposit
false
end
def amount
BigDecimal.new(@amount.to_s.sub(/,/, '.'))
end
def issue_prepayment_invoice
valid? && registrar.issue_prepayment_invoice(amount, description)
end