damoiser / qr-bills

Ruby Gem to generate QR-Bills for Swiss payments
BSD 3-Clause "New" or "Revised" License
21 stars 15 forks source link

Incorrect Amount Format #17

Closed solaris007 closed 2 years ago

solaris007 commented 2 years ago

The amount is formatted "...xxx.x" instead of "...xxx.xx", suggest using '%.2f' for amount outputs in the HTML layout.

solaris007 commented 2 years ago

PR: https://github.com/damoiser/qr-bills/pull/18

solaris007 commented 2 years ago

fixed via #18 and v1.0.5

solaris007 commented 2 years ago

@damoiser i think we were both a bit tired yesterday :) We forgot to format the value in the QR payload and we put the EC level on the PNG method instead of the QR constructor.

https://github.com/damoiser/qr-bills/pull/19

damoiser commented 2 years ago

yes @solaris007 :-)

thanks again for the PR and the fix, just merged and published the new version v1.0.6 to rubygems repository. I will then close this issue.