def totaler(products):
    """Totals the total value of each product."""
    totalDict = {'base': 0, 'VAT': 0, 'total': 0};

    for h in products:
        totalDict['base'] += h['base'];
        totalDict['VAT'] += h['VAT'];
        totalDict['total'] += h['total'];

    return totalDict;