mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 11:16:00 +02:00
Add more tests to deposit handling
This commit is contained in:
parent
b8c082090e
commit
c028c0e477
3 changed files with 32 additions and 3 deletions
|
@ -29,7 +29,7 @@ class Deposit
|
|||
|
||||
def amount
|
||||
return BigDecimal('0.0') if @amount.blank?
|
||||
BigDecimal(@amount, 10)
|
||||
BigDecimal(@amount.to_s.gsub(/,/, '.'), 10)
|
||||
end
|
||||
|
||||
def issue_prepayment_invoice
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue