product report calculation fix

fix on commit from 1.5.6.1 master see
https://github.com/opencart/opencart/commit/b22942a149fba290e1379b8ce2e653717320beb1
and
https://github.com/opencart/opencart/pull/909