added totalling feature for vendor sales page