SalesKing calculations for document and item totals