Invoice list with VAT breakdown and PDF download #72

Merged
uz1mani merged 2 commits from staging into main 2026-03-28 15:40:01 +00:00
uz1mani commented 2026-03-28 15:38:45 +00:00 (Migrated from github.com)

Summary

  • Updated billing tab to show real invoices from backend instead of Mollie payments
  • Invoice number, date, total with VAT breakdown, status badge, and PDF download button

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

  • Invoice list shows in billing tab with correct data
  • PDF download button triggers file download
  • Empty state handled when no invoices exist
Summary - Updated billing tab to show real invoices from backend instead of Mollie payments - Invoice number, date, total with VAT breakdown, status badge, and PDF download button 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 - Invoice list shows in billing tab with correct data - PDF download button triggers file download - Empty state handled when no invoices exist
Sign in to join this conversation.
No description provided.