The invoice handler calculates correctly but mixes arithmetic with persistence. Expose a pure calculate_total(items, discount_percent) and have issue_invoice(store, items, discount_percent) delegate to it before calling store.save(total).
Inputs use integer cents, positive integer quantities, and a whole percentage from 0 to 100. Round the final discounted amount half-up, once, to integer cents. Preserve the existing return value from save. Do not modify caller data. The pure function must work without a store; the handler must use that same function so future pricing changes have one entry point.
invoice.py is the module src/invoice.py of the src package, as the import in test_public.py shows.