Refactor: Add GetMonitoredInvoices to fetch pending invoices or those with pending payments (#6235)

This commit is contained in:
Nicolas Dorier
2024-09-20 18:54:36 +09:00
committed by GitHub
parent ba2301ebfe
commit f5e5174045
11 changed files with 162 additions and 77 deletions

View File

@@ -5,5 +5,5 @@ $$ LANGUAGE sql IMMUTABLE;
CREATE INDEX "IX_Invoices_Pending" ON "Invoices"((1)) WHERE is_pending("Status");
CREATE INDEX "IX_Payments_Pending" ON "Payments"((1)) WHERE is_pending("Status");
DROP TABLE "PendingInvoices";
ANALYZE "Invoices";