def addmul_number_dicts(series):
    if not series:
        return
    vtype = value_type((s[1] for s in series))
    if vtype == 1:
        return sum((weight*float(d) for weight, d in series))
    elif vtype == 3:
        keys = set(series[0][1])
        for serie in series[1:]:
            keys.intersection_update(serie[1])
        results = {}
        for key in keys:
            key_series = tuple((weight, d[key]) for weight, d in series)
            result = addmul_number_dicts(key_series)
            if result is not None:
                results[key] = result
        return results
Given an orderitem_id, this returns a confirmation form.
dataset/ETHPy150Open lsbardel/python-stdnet/stdnet/utils/jsontools.py/addmul_number_dicts--crossover with--dataset/ETHPy150Open dokterbob/satchmo/satchmo/apps/payment/views/balance.py/charge_remaining