Closed zangrandi closed 11 years ago
Thanks @zangrandi, it's a really important bug, apparently fixed in fix-commission-percentage-format
branch.
It will be released in a new gem version as soon as possible.
You can now update to 0.6.1
with this patch included.
In Moip documentation (https://labs.moip.com.br/parametro/comissoes/) the commissions with percentage values are not from 0 to 1, but from 0 to 100:
This caused an error when I went to production. This code generated a commission value of R$ 1 in an item that costs R$ 100:
I got no time right now to contribute to the project, so I fixed it locally overring the commission "to_xml" method:
It's working, including in production. The commissions are being generated ok now.