Jump to content

Recommended Posts

Posted

sometimes we get a wrong total in the invoice edition or addition, after some investigaion we found the fallowing issue.

we have the currency format $1 234,56 with precision 2.

let create a new invoice, with two lines :

Description     - Qty    -  Unit Cost
test line 1           1             1
test line 1           1             2,33

this return a total of 5,00$ USD.

after enabling the error reporting we found the fallowing error

 A non well formed numeric value encountered on line 95 in /home/xxxxxxxxxxx/public_html/vendors/blesta/pricing/src/Type/UnitPrice.php 

the issue come from (2,33) when we put (2.33) we get the exact total $5,66 USD

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...