Mostra in admin anagrafica e dati fiscali delle società.

Così Ops può emettere fattura dalla scheda club senza cercare il profilo solo tra i pagamenti pending.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-10 16:17:20 +02:00
co-authored by Cursor
parent adfea01cdb
commit d7dd744c32
15 changed files with 293 additions and 8 deletions
@@ -9,6 +9,7 @@
<th><%= t("admin.clubs.index.table.club") %></th>
<th><%= t("admin.clubs.index.table.plan") %></th>
<th><%= t("admin.clubs.index.table.teams") %></th>
<th><%= t("admin.clubs.index.table.billing_profile") %></th>
<th><%= t("admin.clubs.index.table.comped") %></th>
<th><%= t("admin.clubs.index.table.stripe") %></th>
<th><%= t("admin.clubs.index.table.quote") %></th>
@@ -18,10 +19,16 @@
<tbody>
<% @clubs.each do |club| %>
<% sub = club.subscription %>
<% billing_status = club.billing_profile_admin_status %>
<tr>
<td><strong><%= club.name %></strong></td>
<td><%= sub&.plan&.name || t("admin.common.free_plan") %></td>
<td><%= club.teams.size %></td>
<td>
<span class="admin-billing-status admin-billing-status--<%= billing_status %>">
<%= t("admin.clubs.billing_status.#{billing_status}") %>
</span>
</td>
<td>
<% if sub&.admin_comped? %>
<span style="color:#ffb74d"><%= t("admin.common.yes") %></span>