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 +4 -4
- data/app/datatables/admin/effective_applicants_datatable.rb +1 -0
- data/app/models/concerns/effective_memberships_fee_payment.rb +2 -1
- data/app/views/admin/memberships/_organizations.html.haml +7 -0
- data/app/views/admin/users/_form_fees.html.haml +7 -0
- data/lib/effective_memberships/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02521eeb4da07e9cece1d9cbd784b6ecf5fe7d042ab48f0407455bbe3f9d725c
|
4
|
+
data.tar.gz: 42255afdbdcebbf4787328d0088e6183453e79cef39a84f6b81123eb19a9be86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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))
|
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.
|
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-
|
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
|