from decimal import Decimal

def reconcile(rows):
    """Return the total per vendor for accepted rows."""
    totals = {}
    for row in rows:
        if row["status"] != "void":
            vendor = row["vendor"]
            totals[vendor] = totals.get(vendor, Decimal(0)) + Decimal(row["amount"])
    return {vendor: str(value.quantize(Decimal("0.01"))) for vendor, value in totals.items()}
