Refactor sales_total report, better performance when having many orders

Currently the sales report performs really slow when having a big number of orders (+1000). Basically because it's iterating through each order and adding each value.

This uses the SUM sql operator to boost performance.
Line is too long. [101/100]