Initial commit

This commit is contained in:
ai_ml_operations
2026-08-27 04:17:34 -07:00
commit 3a14bfb996
297 changed files with 32710 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
from core.registry import register_dashboard_collector, register_feature, register_portal_nav
def register() -> None:
register_feature("payments")
register_portal_nav(
section="payments",
label="Invoices",
url_name="payments:invoice_list",
group="Billing",
order=10,
)
register_dashboard_collector(_dashboard)
def _dashboard(request) -> dict:
from payments.models import Invoice
open_count = Invoice.objects.exclude(
status__in=[Invoice.Status.PAID, Invoice.Status.VOID]
).count()
return {"open_invoices": open_count}