joe122joe Posted March 22, 2019 Share Posted March 22, 2019 Hello, I used this addon under PHP 5.6 without any issue, and after moving to PHP 7.2 its not working well, there is error in the log file PHP Warning: Division by zero in /home/admin/public_html/kirje1/includes/classes/sales_report2.php on line 175 and here is the line s from 167 - 175 // execute the query $cnt = 0; $itemTot = 0; $sumTot = 0; while ($resp[$cnt] = tep_db_fetch_array($rqItems)) { // to avoid rounding differences round for every quantum // multiply with the number of items afterwords. $price = $resp[$cnt]['psum'] / $resp[$cnt]['pquant']; and the issue that if there is sales and returns for some product like sold one and return one so it will be zero sales . but it show on the report as nan€ any one have same issue? Joe Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.