effective_memberships 0.7.4 → 0.7.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0100c4901a84ee663094b0c2875ea528d7345f68f99659e09f5d6daf973ce54c
4
- data.tar.gz: 17df43487cab37459c5ea999396724f556b74f05e7ed853eaf55bfb3f0e3b279
3
+ metadata.gz: 4cdabd18c745a7596a4d7d39fb50436a4f6464e88399c8ca4e4b77d58abaddeb
4
+ data.tar.gz: 42df553cb0e753d4259f90a3358c4c3118ca847b5a8128d387de9a2b130a49a5
5
5
  SHA512:
6
- metadata.gz: 3e06ad2ca2dc09ec15d83a7d413d6cd07663c198f16b6ea8716c0e669dd1671d6141396cf2ce0d903cf47b0c22a2bccf710764981595ee55d43a624bbc91be54
7
- data.tar.gz: c0c489c0dfc6deda6be5fdb9ebb70f8647c7afb41a10d8905d59e78b7dcf1ad03d3bc46733169b1089d28d0a767f4c46d8bbc6a26f2459602d88466c93a53426
6
+ metadata.gz: 2daa5ad4a3d3f8287b611d3482c32ef07a974bc5488c5adc08884e3f1ca58a7e44fb195ca22d31c4a1c57b8830865036238a584260f3633047f0f382caefcfe9
7
+ data.tar.gz: c904772304719fc3a34b472cb1b4b917909bf94185bc320c60ec691c2ad742bf98a78cb073516011c9669885844072b10ba2ac97ccd4b37987d46342c751e61c
@@ -385,5 +385,4 @@ module EffectiveMembershipsOwner
385
385
  end
386
386
  end
387
387
 
388
-
389
388
  end
@@ -4,16 +4,16 @@
4
4
  - outstanding_owners = current_user.memberships_owners.select { |owner| owner.outstanding_fee_payment_fees.present? }
5
5
 
6
6
  - if memberships.present?
7
- - if memberships.any? { |membership| membership.category.create_renewal_fees? }
7
+ - if memberships.any? { |membership| membership.categories.any?(&:create_renewal_fees?) }
8
8
  - date = EffectiveMemberships.Registrar.renewal_fee_date(date: Time.zone.now)
9
9
  %p Annual dues become available for purchase on #{date.strftime('%B %e')} of each year.
10
10
 
11
- - if memberships.any? { |membership| membership.category.create_late_fees? }
12
- - date = EffectiveMemberships.Registrar.late_fee_date(date: Time.zone.now)
11
+ - if memberships.any? { |membership| membership.categories.any?(&:create_late_fees?) }
12
+ - date = EffectiveMemberships.Registrar.late_fee_date(period: Time.zone.now)
13
13
  %p Late fees will be applied on #{date.strftime('%B %e')}.
14
14
 
15
- - if memberships.any? { |membership| membership.category.create_bad_standing? }
16
- - date = EffectiveMemberships.Registrar.bad_standing_date(date: Time.zone.now)
15
+ - if memberships.any? { |membership| membership.categories.any?(&:create_bad_standing?) }
16
+ - date = EffectiveMemberships.Registrar.bad_standing_date(period: Time.zone.now)
17
17
  %p Memberships with unpaid fees or dues will be marked in bad standing on #{date.strftime('%B %e')}.
18
18
 
19
19
  - if outstanding_owners.present?
@@ -1,3 +1,3 @@
1
1
  module EffectiveMemberships
2
- VERSION = '0.7.4'
2
+ VERSION = '0.7.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_memberships
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect