Aggiunge pagamento con bonifico e importo concordato per società.
Il piano si attiva solo dopo la conferma admin; Stripe resta a listino se non c'è un prezzo commerciale. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<p><%= t("mailers.bank_transfer.instructions.hello") %></p>
|
||||
|
||||
<p><%= raw t("mailers.bank_transfer.instructions.intro_html",
|
||||
club: @club.billing_legal_name.presence || @club.name,
|
||||
plan: @order.plan.name,
|
||||
price: @order.price_label) %></p>
|
||||
|
||||
<p><%= t("mailers.bank_transfer.instructions.not_active_yet") %></p>
|
||||
|
||||
<p>
|
||||
<strong><%= t("mailers.bank_transfer.instructions.iban_label") %></strong> <%= @iban %><br>
|
||||
<strong><%= t("mailers.bank_transfer.instructions.holder_label") %></strong> <%= @holder %><br>
|
||||
<% if @bank_name.present? %>
|
||||
<strong><%= t("mailers.bank_transfer.instructions.bank_label") %></strong> <%= @bank_name %><br>
|
||||
<% end %>
|
||||
<% if @bic.present? %>
|
||||
<strong><%= t("mailers.bank_transfer.instructions.bic_label") %></strong> <%= @bic %><br>
|
||||
<% end %>
|
||||
<strong><%= t("mailers.bank_transfer.instructions.amount_label") %></strong> <%= @order.formatted_amount %><br>
|
||||
<strong><%= t("mailers.bank_transfer.instructions.causal_label") %></strong> <%= @order.payment_causal %>
|
||||
</p>
|
||||
|
||||
<p><%= raw t("mailers.bank_transfer.instructions.proof_html", email: @proof_email) %></p>
|
||||
|
||||
<p><%= t("mailers.bank_transfer.thanks") %><br><%= t("mailers.bank_transfer.signoff") %></p>
|
||||
@@ -0,0 +1,20 @@
|
||||
<%= t("mailers.bank_transfer.instructions.hello") %>
|
||||
|
||||
<%= t("mailers.bank_transfer.instructions.intro_text",
|
||||
club: @club.billing_legal_name.presence || @club.name,
|
||||
plan: @order.plan.name,
|
||||
price: @order.price_label) %>
|
||||
|
||||
<%= t("mailers.bank_transfer.instructions.not_active_yet") %>
|
||||
|
||||
<%= t("mailers.bank_transfer.instructions.iban_label") %> <%= @iban %>
|
||||
<%= t("mailers.bank_transfer.instructions.holder_label") %> <%= @holder %>
|
||||
<% if @bank_name.present? %><%= t("mailers.bank_transfer.instructions.bank_label") %> <%= @bank_name %>
|
||||
<% end %><% if @bic.present? %><%= t("mailers.bank_transfer.instructions.bic_label") %> <%= @bic %>
|
||||
<% end %><%= t("mailers.bank_transfer.instructions.amount_label") %> <%= @order.formatted_amount %>
|
||||
<%= t("mailers.bank_transfer.instructions.causal_label") %> <%= @order.payment_causal %>
|
||||
|
||||
<%= t("mailers.bank_transfer.instructions.proof_text", email: @proof_email) %>
|
||||
|
||||
<%= t("mailers.bank_transfer.thanks") %>
|
||||
<%= t("mailers.bank_transfer.signoff") %>
|
||||
@@ -0,0 +1,10 @@
|
||||
<p><%= t("mailers.bank_transfer.plan_activated.hello") %></p>
|
||||
|
||||
<p><%= raw t("mailers.bank_transfer.plan_activated.body_html",
|
||||
plan: @order.plan.name,
|
||||
club: @club.billing_legal_name.presence || @club.name,
|
||||
until_date: @subscription&.current_period_end ? l(@subscription.current_period_end.to_date, format: :long) : t("mailers.bank_transfer.plan_activated.period_fallback")) %></p>
|
||||
|
||||
<p><%= t("mailers.bank_transfer.plan_activated.invoice_later") %></p>
|
||||
|
||||
<p><%= t("mailers.bank_transfer.thanks") %><br><%= t("mailers.bank_transfer.signoff") %></p>
|
||||
@@ -0,0 +1,11 @@
|
||||
<%= t("mailers.bank_transfer.plan_activated.hello") %>
|
||||
|
||||
<%= t("mailers.bank_transfer.plan_activated.body_text",
|
||||
plan: @order.plan.name,
|
||||
club: @club.billing_legal_name.presence || @club.name,
|
||||
until_date: @subscription&.current_period_end ? l(@subscription.current_period_end.to_date, format: :long) : t("mailers.bank_transfer.plan_activated.period_fallback")) %>
|
||||
|
||||
<%= t("mailers.bank_transfer.plan_activated.invoice_later") %>
|
||||
|
||||
<%= t("mailers.bank_transfer.thanks") %>
|
||||
<%= t("mailers.bank_transfer.signoff") %>
|
||||
@@ -0,0 +1,12 @@
|
||||
<p><%= t("mailers.invoice_activated.hello") %></p>
|
||||
|
||||
<p><%= raw t("mailers.invoice_activated.body_html",
|
||||
plan: @invoice.club.subscription&.plan&.name || @invoice.billing_payment&.plan_slug.to_s.humanize,
|
||||
club: @club.billing_legal_name.presence || @club.name,
|
||||
until_date: @invoice.club.subscription&.current_period_end ? l(@invoice.club.subscription.current_period_end.to_date, format: :long) : t("mailers.invoice_activated.period_fallback"),
|
||||
number: @invoice.display_number,
|
||||
amount: @invoice.formatted_amount) %></p>
|
||||
|
||||
<p><%= raw t("mailers.invoice.also_html") %></p>
|
||||
|
||||
<p><%= t("mailers.invoice.thanks") %><br><%= t("mailers.invoice.signoff") %></p>
|
||||
@@ -0,0 +1,13 @@
|
||||
<%= t("mailers.invoice_activated.hello") %>
|
||||
|
||||
<%= t("mailers.invoice_activated.body_text",
|
||||
plan: @invoice.club.subscription&.plan&.name || @invoice.billing_payment&.plan_slug.to_s.humanize,
|
||||
club: @club.billing_legal_name.presence || @club.name,
|
||||
until_date: @invoice.club.subscription&.current_period_end ? l(@invoice.club.subscription.current_period_end.to_date, format: :long) : t("mailers.invoice_activated.period_fallback"),
|
||||
number: @invoice.display_number,
|
||||
amount: @invoice.formatted_amount) %>
|
||||
|
||||
<%= t("mailers.invoice.also_text") %>
|
||||
|
||||
<%= t("mailers.invoice.thanks") %>
|
||||
<%= t("mailers.invoice.signoff") %>
|
||||
Reference in New Issue
Block a user