Topic: A non well formed numeric value encountered rep102.php

Sales -> Aged Customer Analysis is firing this error

line 207 of rep102.php should be:

$trans[$i] = (float)$trans[$i] * $rate;
Phuong

Re: A non well formed numeric value encountered rep102.php

This might be a specific case of the $trans[$i] being an integer and the $rate being a (float).

@joe: This can be committed.

Re: A non well formed numeric value encountered rep102.php

Thanks @notrinos,

Will commit this in a while.

Joe

Re: A non well formed numeric value encountered rep102.php

The same problem should be there in line 214 of rep202.php as well.

Re: A non well formed numeric value encountered rep102.php

@apmuthu,
But is the bug reported for line 214 when go_debug is set to 2? In php 7.2?

Not in my environment. We will only fix shown warnings/bugs, right?

This has been committed to repo. File /reporting/rep102.php can be downloaded here.

Joe

Re: A non well formed numeric value encountered rep102.php

@notrinos, kindly check rep202.php as well. I do not have the later PHP versions at the moment to test.

Re: A non well formed numeric value encountered rep102.php

yes, rep202.php line 214 need the same commit as well

Phuong

Re: A non well formed numeric value encountered rep102.php

Sorry Guys, of course you are right.

This has been committed to repo. The new /reporting/rep202.php can be downloaded here.

/Joe