Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Customers orders report wrong information #3101
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.