TrogloGeek / prestashop-tggatos-module

TggAtos Module for Prestashop (1.4 to 1.7), ATOS SIPS 6xx payment gateway
61 stars 34 forks source link

[untested] code anomaly in first payment calculation when using payment in N times #20

Closed TrogloGeek closed 10 years ago

TrogloGeek commented 10 years ago

Thanks to @BraveKenny, while addressing the issue #19 I spotted another anomaly in N times payment mode. When currency have decimals, without a bugfix you should expect the first payment to be ( total / N / 100 ) instead of ( total / N ). Also, the same lack of padding with zeros to INITIAL_AMOUNT parameter.

Let's hail @BraveKenny !

TrogloGeek commented 10 years ago

/!\ warning the issue itself is untested, as well as the fix, feedbacks on N times payment is welcome