Compute an invoice with exact decimal arithmetic. Each line is (description, quantity, unit_price, vat_rate) with prices and rates as strings (e.g. "19.99", "0.20").
Implement invoice(lines) returning a dict of Decimals:
net: sum of quantity * unit_price, each line rounded to 2 places with ROUND_HALF_UPvat: sum of each line's VAT (line net × rate), each rounded to 2 placesgross: net + vatvat_by_rate: a dict from rate string to the VAT total at that rate