tmTotalsAssn function

Assignment function for the 'totals' attribute