Commit Graph

11 Commits

Author SHA1 Message Date
amianthus
f0ada2883b fix: 🐛 invoice needs to be agnostic 2026-05-07 15:09:28 +01:00
Ayush Rodrigues
4256a3d860 Store invoice amount_paid to fix refund status when credits applied
Invoice credits reduce the charged amount below the invoice total,
causing refunds to show as "Partially Refunded" even when fully refunded.
Store Stripe's amount_paid alongside total and use it for refund status
comparisons in the dashboard.

Made-with: Cursor
2026-04-16 14:45:12 +01:00
amianthus
d72f80dcf2 feat: 🎸 db cols for refudned amount 2026-04-14 11:55:49 +01:00
amianthus
950d71ee40 feat: 🎸 add incides and better CTEs for getFullCusQuery 2026-03-11 15:16:49 +00:00
Charlie Lamb
b7a6ee71cb chore: add invoice constraint 2026-02-02 16:53:16 +00:00
John Yeo
eab0e23032 created test subscription update sheet, defined possible quantity update line item function 2025-12-23 10:11:27 +00:00
John Yeo
da2693567c chore: ran biome format 2025-09-22 14:45:25 +01:00
amianthus
1d3d8f18b6 fix: 🐛 type errors from not exporting drizzle types 2025-08-11 11:58:58 +01:00
amianthus
9478d0bc4b fix: 🐛 cascade delete invoices on delete custoemr 2025-07-30 17:41:18 +01:00
John Yeo
c48e4dcff0 added set up script to auto set up env 2025-06-16 19:13:40 +01:00
John Yeo
ae2391893d rewrote all queries to drizzle 2025-05-27 17:34:12 +01:00