viafintech / camt_parser

A basic parser for camt.052, camt.053 and camt.054 files
MIT License
20 stars 24 forks source link

fix CamtParser::Misc.to_amount_in_cents for integer values #41

Closed danielpuglisi closed 2 years ago

danielpuglisi commented 2 years ago

Hey there. First of all, thanks for open sourcing this gem :)

I stumbled upon an issue where camt transactions do not return the correct cent values for CamtParser::Transaction#amount_in_cents when the transaction amount is an "Integer" (e.g. <Amt Ccy="CHF">1</Amt>).

This PR adds support for "Integer" values to CamtParser::MIsc.to_amount_in_cents.

tobischo commented 2 years ago

Hi @danielpuglisi

Thank you for the contribution 😄 Merged and released as 2.10.1