Re-usable wine calculation functions and average sales per event.

The wine calculation functions - number of glasses to how many bottles
must have been used, are made re-uasble.
On total-sales when filterd to an event we can now see the average
sales per item.
Adds a total bottles of line to the total sales tables