Fixed #2943 Correct subquery aggregation approach
Fixed subquery aggregation in discounts, locations and shipping reports