addUselessZeros error

Created on 5 July 2018, over 6 years ago
Updated 22 March 2023, over 1 year ago

About the function addUselessZeros, there is an error with the return value.

For an amount 131.20€ :
The function returns "013119" instead of "013120".

So, the bank receive a paiement request with an amount at 131.19€.

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇫🇷France Ilyna

    Hi, I have always this error :

    Argument #1 ($string) must be of type string, float given in str_pad

    I create a new patch for this module version.

  • @ilyna-0 opened merge request.
Production build 0.71.5 2024