1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-15 00:24:09 +01:00
fab-manager/app/views/notifications_mailer/notify_admin_refund_created.html.erb

12 lines
699 B
Plaintext
Raw Normal View History

<%= render 'notifications_mailer/shared/hello', recipient: @recipient %>
<p><%= t('.body.refund_created',
AMOUNT: number_to_currency(@attached_object.total / 100.00),
INVOICE: @attached_object.invoice.reference,
USER: @attached_object.invoicing_profile&.full_name) if @attached_object.invoice %>
<%= t('.body.wallet_refund_created',
AMOUNT: number_to_currency(@attached_object.total / 100.00),
2021-05-27 15:58:55 +02:00
USER: @attached_object.invoicing_profile&.full_name) if @attached_object.main_item.object_type === WalletTransaction.name %>
</p>
<p><a href="<%= "#{root_url}api/invoices/#{@attached_object.id}/download" %>" target="_blank"><%= t('.body.download') %></a></p>