1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-17 06:52:27 +01:00

[bug] no notifications for refunds generated on wallet credit

This commit is contained in:
Sylvain 2021-02-08 13:50:49 +01:00
parent 76ebb3ccb4
commit 38ac55c35f
4 changed files with 7 additions and 1 deletions

View File

@ -10,6 +10,7 @@
- Fix a bug: warning message overflow in credit wallet modal - Fix a bug: warning message overflow in credit wallet modal
- Fix a bug: when using a cash coupon, the amount shown in the statistics is invalid - Fix a bug: when using a cash coupon, the amount shown in the statistics is invalid
- Fix a bug: unable to create a coupon on stripe - Fix a bug: unable to create a coupon on stripe
- Fix a bug: no notifications for refunds generated on wallet credit
- [TODO DEPLOY] `rails fablab:maintenance:rebuild_stylesheet` - [TODO DEPLOY] `rails fablab:maintenance:rebuild_stylesheet`
- [TODO DEPLOY] `rails fablab:stripe:set_product_id` - [TODO DEPLOY] `rails fablab:stripe:set_product_id`
- [TODO DEPLOY] `rails fablab:setup:add_schedule_reference` - [TODO DEPLOY] `rails fablab:setup:add_schedule_reference`

View File

@ -3,6 +3,9 @@
<p><%= t('.body.refund_created', <p><%= t('.body.refund_created',
AMOUNT: number_to_currency(@attached_object.total / 100.00), AMOUNT: number_to_currency(@attached_object.total / 100.00),
INVOICE: @attached_object.invoice.reference, INVOICE: @attached_object.invoice.reference,
USER: @attached_object.invoicing_profile&.full_name) %> 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),
USER: @attached_object.invoicing_profile&.full_name) if @attached_object.invoiced_type === WalletTransaction.name %>
</p> </p>
<p><a href="<%= "#{root_url}api/invoices/#{@attached_object.id}/download" %>" target="_blank"><%= t('.body.download') %></a></p> <p><a href="<%= "#{root_url}api/invoices/#{@attached_object.id}/download" %>" target="_blank"><%= t('.body.download') %></a></p>

View File

@ -272,6 +272,7 @@ en:
subject: "A refund has been generated" subject: "A refund has been generated"
body: body:
refund_created: "A refund of %{AMOUNT} has been generated on invoice %{INVOICE} of user %{USER}" refund_created: "A refund of %{AMOUNT} has been generated on invoice %{INVOICE} of user %{USER}"
wallet_refund_created: "A refund of %{AMOUNT} has been generated for the credit of the wallet of user %{USER}"
download: "Click here to download this refund invoice" download: "Click here to download this refund invoice"
notify_admins_role_update: notify_admins_role_update:
subject: "The role of a user has changed" subject: "The role of a user has changed"

View File

@ -272,6 +272,7 @@ fr:
subject: "Un avoir a été généré" subject: "Un avoir a été généré"
body: body:
refund_created: "Un avoir de %{AMOUNT} a été généré sur la facture %{INVOICE} de l'utilisateur %{USER}" refund_created: "Un avoir de %{AMOUNT} a été généré sur la facture %{INVOICE} de l'utilisateur %{USER}"
wallet_refund_created: "Un avoir de %{AMOUNT} a été généré pour le crédit du porte-monnaie de l'utilisateur %{USER}"
download: "Cliquez ici pour télécharger cet avoir" download: "Cliquez ici pour télécharger cet avoir"
notify_admins_role_update: notify_admins_role_update:
subject: "Le rôle d'un utilisateur a changé" subject: "Le rôle d'un utilisateur a changé"