Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customers orders report wrong information #3101

Closed
MKuzma opened this Issue Jun 10, 2015 · 2 comments

Comments

Projects
None yet
3 participants
@MKuzma
Copy link

MKuzma commented Jun 10, 2015

There is a bug showing in customers orders report wrong number of orders and total amount. The SQL query is wrong and multiplies the number of orders and total amount by the previous result from a LEFT JOIN ... op ON (o.order_id = op.order_id) clause. See attached images where a registered customer and an unregistered customer have each one order. The registered customers order has 3 products and unregistered 2 products. In customers orders report for registered customers I see 3 times multiplied total and the number of orders. Correct should be one order and total $505.

ocbug2
ocbug1

mrnfrancesco added a commit to mrnfrancesco/opencart that referenced this issue Jun 12, 2015

@mrnfrancesco

This comment has been minimized.

Copy link
Contributor

mrnfrancesco commented Jun 12, 2015

Issue fixed with pull request #3105. Waiting for merge.

@danielkerr danielkerr closed this Jun 14, 2015

@danielkerr

This comment has been minimized.

Copy link
Contributor

danielkerr commented May 6, 2016

the fix you have added is completely wrong! all you have done is block the system from being able to show another order total of the same amount!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.