Add more tests to deposit handling

This commit is contained in:
Maciej Szlosarczyk 2018-08-15 20:15:17 +03:00
parent b8c082090e
commit c028c0e477
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765
3 changed files with 32 additions and 3 deletions

View file

@ -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