diff --git a/app/services/prepaid_pack_service.rb b/app/services/prepaid_pack_service.rb
index 44f3b2e07..29efbc1b3 100644
--- a/app/services/prepaid_pack_service.rb
+++ b/app/services/prepaid_pack_service.rb
@@ -23,7 +23,7 @@ class PrepaidPackService
.includes(:prepaid_pack)
.references(:prepaid_packs)
.where('statistic_profile_id = ?', user.statistic_profile.id)
- .where('expires_at < ?', DateTime.current)
+ .where('expires_at > ?', DateTime.current)
.where('prepaid_packs.priceable_id = ?', priceable.id)
.where('prepaid_packs.priceable_type = ?', priceable.class.name)
diff --git a/config/locales/app.admin.en.yml b/config/locales/app.admin.en.yml
index b5cfdfa33..76639b349 100644
--- a/config/locales/app.admin.en.yml
+++ b/config/locales/app.admin.en.yml
@@ -1205,6 +1205,9 @@ en:
public_agenda_module: "public agenda module"
statistics_module: "statistics module"
upcoming_events_shown: "display limit for upcoming events"
+ display_invite_to_renew_pack: "Display the invite to renew prepaid-packs"
+ packs_threshold_info_html: "You can define under how many hours the user will be invited to buy a prepaid-pack, if his stock of prepaid hours in under this threshold. You can set a number of hours (eg. 5) or a percentage of his current pack pack (eg. 0.05 means 5%)."
+ renew_pack_threshold: "threshold for packs renewal"
general:
general: "General"
title: "Title"
diff --git a/config/locales/app.admin.fr.yml b/config/locales/app.admin.fr.yml
index a47752f66..cad85b338 100644
--- a/config/locales/app.admin.fr.yml
+++ b/config/locales/app.admin.fr.yml
@@ -1170,6 +1170,9 @@ fr:
public_agenda_module: "module d'agenda public"
statistics_module: "module de statistiques"
upcoming_events_shown: "la limite d'affichage des événements à venir"
+ display_invite_to_renew_pack: "Display the invite to renew prepaid-packs"
+ packs_threshold_info_html: "You can define under how many hours the user will be invited to buy a prepaid-pack, if his stock of prepaid hours in under this threshold. You can set a number of hours (eg. 5) or a percentage of his current pack pack (eg. 0.05 means 5%)."
+ renew_pack_threshold: "Threshold for packs renewal"
general:
general: "Général"
title: "Titre"