AbcAeffchen / Sephpa

PHP class to create SEPA xml files for credit transfer and direct debit
GNU Lesser General Public License v3.0
71 stars 31 forks source link

Locale #3

Closed mweghorst closed 9 years ago

mweghorst commented 9 years ago

The output of a SephpaCreditTransfer is invalid when working with a locale that uses commas as decimal_point for floats. $amount = filter_var($amount, FILTER_VALIDATE_FLOAT, FILTER_FLAG_ALLOW_THOUSAND) in SepaUtilities replaces my dots with comma's, causing instdAmt to be invalid.

Is there a way around this, besides something like setlocale(LC_NUMERIC, 'en_US.UTF-8')?

AbcAeffchen commented 9 years ago

Thanks for reporting this.

This is a bug in SepaUtilities. It is fixed in SepaUtilities 1.1.2 I just released.