mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-17 06:52:27 +01:00
[bug] unable to export subscriptions
This commit is contained in:
parent
807481db98
commit
190e815f73
@ -4,6 +4,7 @@
|
|||||||
- Keep the history of footprints data for verification purposes
|
- Keep the history of footprints data for verification purposes
|
||||||
- Enhanced rake task to create fixtures for test cases
|
- Enhanced rake task to create fixtures for test cases
|
||||||
- Fix a bug: unable to export reservations
|
- Fix a bug: unable to export reservations
|
||||||
|
- Fix a bug: unable to export subscriptions
|
||||||
- Fix a bug: unable to receive mails in development
|
- Fix a bug: unable to receive mails in development
|
||||||
- [TODO DEPLOY] `rails fablab:maintenance:save_footprint_data`
|
- [TODO DEPLOY] `rails fablab:maintenance:save_footprint_data`
|
||||||
|
|
||||||
|
@ -15,9 +15,9 @@ wb.add_worksheet(name: t('export_subscriptions.subscriptions')) do |sheet|
|
|||||||
# data rows
|
# data rows
|
||||||
@subscriptions.each do |sub|
|
@subscriptions.each do |sub|
|
||||||
data = [
|
data = [
|
||||||
sub.user.id,
|
sub.user&.id,
|
||||||
sub.user.profile.full_name,
|
sub.user&.profile&.full_name || t('export_subscriptions.deleted_user'),
|
||||||
sub.user.email,
|
sub.user&.email,
|
||||||
sub.plan.human_readable_name(group: true),
|
sub.plan.human_readable_name(group: true),
|
||||||
t("duration.#{sub.plan.interval}", count: sub.plan.interval_count),
|
t("duration.#{sub.plan.interval}", count: sub.plan.interval_count),
|
||||||
sub.created_at.to_date,
|
sub.created_at.to_date,
|
||||||
|
@ -203,6 +203,7 @@ en:
|
|||||||
payment_method: "Payment method"
|
payment_method: "Payment method"
|
||||||
local_payment: "Payment at the reception"
|
local_payment: "Payment at the reception"
|
||||||
online_payment: "Online payment"
|
online_payment: "Online payment"
|
||||||
|
deleted_user: "Deleted user"
|
||||||
#reservation slots export, by type, to EXCEL format
|
#reservation slots export, by type, to EXCEL format
|
||||||
export_availabilities:
|
export_availabilities:
|
||||||
machines: "Machines"
|
machines: "Machines"
|
||||||
|
@ -203,6 +203,7 @@ fr:
|
|||||||
payment_method: "Méthode de paiement"
|
payment_method: "Méthode de paiement"
|
||||||
local_payment: "Paiement à l'accueil"
|
local_payment: "Paiement à l'accueil"
|
||||||
online_payment: "Paiement en ligne"
|
online_payment: "Paiement en ligne"
|
||||||
|
deleted_user: "Utilisateur supprimé"
|
||||||
#reservation slots export, by type, to EXCEL format
|
#reservation slots export, by type, to EXCEL format
|
||||||
export_availabilities:
|
export_availabilities:
|
||||||
machines: "Machines"
|
machines: "Machines"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user