X-Git-Url: https://www.nos-oignons.net/gitweb/gestion-adh.git/blobdiff_plain/6f0407b6532f52cb0726b2b7fe0070e1709dd5dc..62dfc06362143c4fd95b86b4d511c3ade7346f4e:/lib/nos_oignons.rb diff --git a/lib/nos_oignons.rb b/lib/nos_oignons.rb index 74a34c1..72cea22 100644 --- a/lib/nos_oignons.rb +++ b/lib/nos_oignons.rb @@ -27,6 +27,7 @@ module NosOignons ADVISORS_EMAIL = 'deontologie@nos-oignons.net' MEMBER_MAILING_LIST = 'ag' CONTACT_INFO = <<-EOT.gsub(/^ /, '') + Identifiant SIREN 842 479 313 https://nos-oignons.net/ contact@nos-oignons.net Téléphone : +33 9 72 42 96 04 @@ -70,6 +71,7 @@ module NosOignons def send_membership_reminders! today = Time.now.to_date NosOignons::Member.all.select(&:up_to_date?).each do |member| + next if member.membership_fee_paid_on.year == today.year reminders = NosOignons::Reminder.all.sort_by(&:days) anniversary = Time.new(today.year, member.joined_on.month, member.joined_on.day).to_date