spree/spree — pull request #965 by zecke (2012-01-12 10:17:13+00:00)
Title: Fix two more issues in top_grossing_products

Hi,

first my previous patch was not complete and I messed up when moving around the patch, the intention was to to get rid of the multiplication and simply use the summed price (v[1]). But even this fix is not complete and we can ask the database to sum up "quantity * price" of each line item.