Loading articleโฆ
Loading 4weirdโฆ
Loading articleโฆ
DocsInvoicing
Docs ยท remastery wave 1
The full B2B invoicing suite: a client directory with billing details, draft โ sent โ paid lifecycle, vector PDF export for clients, and a 30-day soft-delete trash with 1-click restore and auto-purge countdown.
Clients
Invoice clients hold name, email, address, phone, and VAT number per user. Every invoice points at one client, and line items carry description, quantity, unit rate, total, and position โ so the PDF renders exactly what the database says.
invoice INV-1042 โ draft
$100.00Safety net
Deleting an invoice sets deleted_at instead of removing the row. Trashed invoices sit in a Trash tab with an auto-purge countdown; restore clears deleted_at in one click, and after 30 days the row purges permanently. Active lists always filter deleted_at IS NULL โ the index on (user_id, deleted_at) keeps both views fast.
๐๏ธ Soft delete
deleted_at timestamps the moment; nothing is ever hard-deleted by hand.
โฉ๏ธ 1-click restore
Clear the timestamp and the invoice rejoins the active list with history intact.
โณ Auto-purge
30-day countdown, then permanent purge โ the trash cannot fill forever.
Flow