mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 00:42:04 +02:00
Added comma support #2785
This commit is contained in:
parent
f5311301c9
commit
e9cf3d2fbe
15 changed files with 80 additions and 21 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue