<%= link_to "← Dashboard", admin_root_path %> · <%= link_to "Nuova fattura (senza pagamento)", new_admin_club_billing_invoice_path(@club), class: "btn btn-secondary" %>
| Data | Descrizione | Importo | Fattura | |
|---|---|---|---|---|
| <%= payment.paid_at&.to_date || payment.created_at.to_date %> | <%= payment.display_description %> | <%= payment.formatted_amount %> | <% if inv %> <%= inv.number %> — <%= inv.status %> <% if inv.pdf.attached? %> (PDF)<% end %> <% else %> — <% end %> | <% if inv %> <%= link_to "Modifica / invia PDF", edit_admin_club_billing_invoice_path(@club, inv) %> <% else %> <%= link_to "Crea fattura", new_admin_club_billing_invoice_path(@club, billing_payment_id: payment.id), class: "btn btn-primary", style: "padding:6px 10px;font-size:0.85rem" %> <% end %> |
Nessun pagamento registrato per questa società.
<% end %>| Numero | Data | Importo | Stato | Pagamento | |
|---|---|---|---|---|---|
| <%= inv.number %> | <%= inv.issued_on %> | <%= inv.formatted_amount %> | <%= inv.status %> | <%= inv.billing_payment_id.present? ? "Sì" : "No" %> | <%= link_to "Modifica", edit_admin_club_billing_invoice_path(@club, inv) %> |
Nessuna fattura.
<% end %>