digitick / php-sepa-xml

* THIS PROJECT IS NO LONGER MAINTAINED* SEPA file generator in PHP
107 stars 63 forks source link

Shouldn't SepaFileBlock->intToCurrency() better be locale unaware? #16

Open bastianonken opened 10 years ago

bastianonken commented 10 years ago

I currently get errors in validating the XML file, because sprintf generates floating point numbers for each amount value with comma as decimal point (in my environment).

I think this: sprintf("%01.2f", ($amount / 100));

Sould be replaced with: sprintf("%01.2F", ($amount / 100));

...in SepaFileBlock.php

monofone commented 10 years ago

I think with the newer version this can be closed as the BaseDomBuilder already uses the mentioned form. Thanks for helping.