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:
@@ -41,4 +41,15 @@ RSpec.describe ClubBillingProfile do
|
||||
club.billing_fiscal_code = "RSSMRA80A01H501U"
|
||||
expect(club.billing_profile_complete?).to be true
|
||||
end
|
||||
|
||||
it "classifies admin billing status" do
|
||||
expect(club.billing_profile_admin_status).to eq(:complete)
|
||||
|
||||
club.billing_recipient_code = nil
|
||||
club.billing_pec = nil
|
||||
expect(club.billing_profile_admin_status).to eq(:incomplete)
|
||||
|
||||
empty = Club.create!(name: "Empty", sport: "volleyball", primary_color: "#e53935", secondary_color: "#ffffff")
|
||||
expect(empty.billing_profile_admin_status).to eq(:absent)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user