Invoice list with VAT breakdown and PDF download #72
Reference in New Issue
Block a user
No description provided.
Delete Branch "staging"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Changes
billing.ts: Replaced Order interface with Invoice (invoice_number, amount_cents, vat_cents, total_cents, currency, description, status). Replaced
getOrders() with getInvoices(). Added downloadInvoicePDF() using full API_URL.
WorkspaceBillingTab.tsx: Invoice list renders invoice number (mono font), formatted date, total amount, VAT breakdown, status badge (sent = Paid), and
download button with DownloadSimple icon. Removed unused formatAmount helper.
Test Plan