effective_memberships 0.13.3 → 0.13.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 91037cf88d0f27bd2ce332fc4a3bd78b27daa044aff985e4221d47eafc330d3b
4
- data.tar.gz: 37ed2b84f0c39a04d6b2d2de94b94bde4f06368244ace03e89fae87adf8ccb84
3
+ metadata.gz: 02521eeb4da07e9cece1d9cbd784b6ecf5fe7d042ab48f0407455bbe3f9d725c
4
+ data.tar.gz: 42255afdbdcebbf4787328d0088e6183453e79cef39a84f6b81123eb19a9be86
5
5
  SHA512:
6
- metadata.gz: 4d6cf91640343f523185cbc1750fcd402cc709f10d5d285e00bffb642b36d124c6b719915f4dd2470cc9dfa1ee92103dc1cc4042ddf8470015c285271f8dbddf
7
- data.tar.gz: 4b66aa056e462818692df738ecb7b188566c3a04d56837261702a4037c96c534b62d69efe1b069855333493cb1ba918100e800c0b72c5c3206e7312b80d36f5d
6
+ metadata.gz: 7ec1e5ca1c59f678388a0d8750a768de77bb7f63bc7803fd9c0627f8370b26e8d764a313013234dbbe1d435f38e4c67ba612840607f2620ce9772d955a705345
7
+ data.tar.gz: 066b68def2279607ac729e81ef88e42cc13ed619165ab75c734a68a61d007bf26fae2dfacc59e6427efceba4130fab81009fe0c659f067a736fdbe26a1d2de20
@@ -32,6 +32,7 @@ module Admin
32
32
 
33
33
  col :applicant_type
34
34
  col :category, label: 'Applicant Category', search: { collection: EffectiveMemberships.Category.all, polymorphic: false }
35
+ col :stream
35
36
  col :from_category, search: { collection: EffectiveMemberships.Category.all, polymorphic: false }
36
37
  col :from_status, search: { collection: EffectiveMemberships.Status.all, polymorphic: false }
37
38
 
@@ -169,7 +169,8 @@ module EffectiveMembershipsFeePayment
169
169
 
170
170
  # We take over the owner's outstanding fee payment fees.
171
171
  def find_or_build_submit_fees
172
- Array(owner.outstanding_fee_payment_fees).each { |fee| fees << fee unless fees.include?(fee) }
172
+ existing = fees.to_a
173
+ Array(owner.outstanding_fee_payment_fees).each { |fee| self.fees << fee unless existing.include?(fee) }
173
174
  submit_fees
174
175
  end
175
176
 
@@ -0,0 +1,7 @@
1
+ - (owner.memberships_owners - [owner]).each do |organization|
2
+ - next unless organization.class.respond_to?(:effective_memberships_organization?)
3
+
4
+ %p
5
+ = link_to(organization, effective_memberships.edit_admin_organization_path(organization))
6
+ - if organization.try(:archived?)
7
+ %span.badge.badge-warning Archived
@@ -0,0 +1,7 @@
1
+ = card(Effective::Fee) do
2
+ %p.text-muted Fees are generated automatically when an applicant is approved. Annual dues are generated annually.
3
+ = render_inline_datatable(Admin::EffectiveFeesDatatable.new(owner: user))
4
+
5
+ = card(EffectiveMemberships.FeePayment) do
6
+ %p.text-muted A fee payment is the wizard a user completes when they pay their annual dues. It will display the purchased order and any information collected by the fee payment steps.
7
+ = render_inline_datatable(Admin::EffectiveFeePaymentsDatatable.new(user: user))
@@ -1,3 +1,3 @@
1
1
  module EffectiveMemberships
2
- VERSION = '0.13.3'
2
+ VERSION = '0.13.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_memberships
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.3
4
+ version: 0.13.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-31 00:00:00.000000000 Z
11
+ date: 2023-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -384,6 +384,7 @@ files:
384
384
  - app/views/admin/membership_histories/_validation.html.haml
385
385
  - app/views/admin/memberships/_form.html.haml
386
386
  - app/views/admin/memberships/_form_membership.html.haml
387
+ - app/views/admin/memberships/_organizations.html.haml
387
388
  - app/views/admin/memberships/_status.html.haml
388
389
  - app/views/admin/organizations/_fields.html.haml
389
390
  - app/views/admin/organizations/_form.html.haml
@@ -402,6 +403,7 @@ files:
402
403
  - app/views/admin/statuses/_form.html.haml
403
404
  - app/views/admin/statuses/_form_status.html.haml
404
405
  - app/views/admin/users/_col.html.haml
406
+ - app/views/admin/users/_form_fees.html.haml
405
407
  - app/views/effective/applicant_endorsements/_applicant_endorsement.html.haml
406
408
  - app/views/effective/applicant_endorsements/_datatable_actions.html.haml
407
409
  - app/views/effective/applicant_endorsements/_form.html.haml