mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-30 19:52:20 +01:00
(bug) unable to export store orders
This commit is contained in:
parent
adcb6812aa
commit
733fd9840c
@ -3,6 +3,7 @@
|
||||
- Fix a bug: unable to configure RAILS_LOCALE to fr-CA
|
||||
- Fix a bug: unable to fix availabilities for events
|
||||
- Fix a bug: unable to start Fab-manager with message: maximum must be a nonnegative Integer
|
||||
- Fix a bug: unable to export orders statistics
|
||||
|
||||
## v5.7.0 2023 February 17
|
||||
|
||||
|
@ -42,7 +42,7 @@ class StatisticsExportService
|
||||
end
|
||||
|
||||
# rubocop:disable Style/DocumentDynamicEvalDefinition
|
||||
%w[account event machine project subscription training space].each do |path|
|
||||
%w[account event machine project subscription training space order].each do |path|
|
||||
class_eval %{
|
||||
def export_#{path}(export)
|
||||
|
||||
|
@ -14,9 +14,9 @@ class StatisticsExportWorker
|
||||
service = StatisticsExportService.new
|
||||
method_name = "export_#{export.export_type}"
|
||||
|
||||
unless %w[account event machine project subscription training space global].include?(export.export_type) &&
|
||||
unless %w[account event machine project subscription training space order global].include?(export.export_type) &&
|
||||
service.respond_to?(method_name)
|
||||
return
|
||||
raise TypeError("Invalid statistics export type #{export.export_type}")
|
||||
end
|
||||
|
||||
service.public_send(method_name, export)
|
||||
@ -24,6 +24,5 @@ class StatisticsExportWorker
|
||||
NotificationCenter.call type: :notify_admin_export_complete,
|
||||
receiver: export.user,
|
||||
attached_object: export
|
||||
|
||||
end
|
||||
end
|
||||
|
@ -376,6 +376,7 @@ de:
|
||||
statistics_subscription: "der Abonnementstatistiken"
|
||||
statistics_training: "der Schulungsstatistiken"
|
||||
statistics_space: "der Raumstatistiken"
|
||||
statistics_order: "of statistics about store orders"
|
||||
users_members: "der Mitgliederliste"
|
||||
users_subscriptions: "der Abonnementliste"
|
||||
users_reservations: "der Reservierungsliste"
|
||||
|
@ -376,6 +376,7 @@ en:
|
||||
statistics_subscription: "of subscription statistics"
|
||||
statistics_training: "of statistics about trainings"
|
||||
statistics_space: "of statistics about spaces"
|
||||
statistics_order: "of statistics about store orders"
|
||||
users_members: "of the members' list"
|
||||
users_subscriptions: "of the subscriptions' list"
|
||||
users_reservations: "of the reservations' list"
|
||||
|
@ -376,6 +376,7 @@ es:
|
||||
statistics_subscription: "de estadísticas de suscripción"
|
||||
statistics_training: "de estadísticas de cursos"
|
||||
statistics_space: "de estadísticas sobre espacios"
|
||||
statistics_order: "of statistics about store orders"
|
||||
users_members: "de la lista de miembros"
|
||||
users_subscriptions: "de la lista de suscripciones"
|
||||
users_reservations: "de la lista de reservas"
|
||||
|
@ -376,6 +376,7 @@ fr:
|
||||
statistics_subscription: "des statistiques d'abonnements"
|
||||
statistics_training: "des statistiques sur les formations"
|
||||
statistics_space: "des statistiques sur les espaces"
|
||||
statistics_order: "des statistiques des commandes de la boutique"
|
||||
users_members: "de la liste des membres"
|
||||
users_subscriptions: "de la liste des abonnements"
|
||||
users_reservations: "de la liste des réservations"
|
||||
|
@ -376,6 +376,7 @@
|
||||
statistics_subscription: "for abonnementsstatistikk"
|
||||
statistics_training: "av statistikk om opplæringer"
|
||||
statistics_space: "av statistikk om plasser/rom"
|
||||
statistics_order: "of statistics about store orders"
|
||||
users_members: "fra medlemslisten"
|
||||
users_subscriptions: "fra abonnementslisten"
|
||||
users_reservations: "fra reservasjonslisten"
|
||||
|
@ -376,6 +376,7 @@ pt:
|
||||
statistics_subscription: "de estatísticas de assinatura"
|
||||
statistics_training: "de estatísticas sobre treinamentos"
|
||||
statistics_space: "as estatísticas sobre reserva de espaços"
|
||||
statistics_order: "of statistics about store orders"
|
||||
users_members: "da lista de membros"
|
||||
users_subscriptions: "da lista de assinaturas"
|
||||
users_reservations: "da lista de reservas"
|
||||
|
@ -376,6 +376,7 @@ zu:
|
||||
statistics_subscription: "crwdns3647:0crwdne3647:0"
|
||||
statistics_training: "crwdns3649:0crwdne3649:0"
|
||||
statistics_space: "crwdns3651:0crwdne3651:0"
|
||||
statistics_order: "crwdns37387:0crwdne37387:0"
|
||||
users_members: "crwdns3653:0crwdne3653:0"
|
||||
users_subscriptions: "crwdns3655:0crwdne3655:0"
|
||||
users_reservations: "crwdns3657:0crwdne3657:0"
|
||||
|
Loading…
x
Reference in New Issue
Block a user