Bug in the fct_say_rate function of A2Billing class.
i-Tom opened this issue · 0 comments
i-Tom commented
Hello,
When the fractional part of the variable '$credit_cur' is multiple of 10 (ex. $credit_cur = 0.80000), the number of cents from rate is said erroneously as being 10 times smaller (rate is said as 8 cents).
Changing the line 2199 to:
list($units, $cents) = preg_split('/[.]/', sprintf('%f',$credit_cur));
fix the problem.