effective_memberships 0.4.13 → 0.4.16

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: 013c543f704442649f57e61b6d381da7abd27a181b8cfb00eafcca8713eec4d0
4
- data.tar.gz: 71d84f67fad2d7f5718fd6186eed8ee3877ccc32292dcd56456fe93bd73918fe
3
+ metadata.gz: 774b42acc07d3dae76bd17888dd5c323b3a47463cb339caa96162ea323ddf4a7
4
+ data.tar.gz: e9ee1f7769177827ad627d61e68d294a6d868ac26ec133396b8c861b221a0b2f
5
5
  SHA512:
6
- metadata.gz: f6e975206c149832fc53de2db37b08405c21b22021e1fdae0f5cbd6d619747f9288b86f38f22a943fe27e69a963af44fb9b201fa43cc3bac20d90211ea8cb557
7
- data.tar.gz: 3ba98f86d83f2afc099d57463495aa7fa643a72af6b230156538eeebc0bb6b306bd2bae12726e651fc59b38cf1c2db353db881c6149049370d34aae189370657
6
+ metadata.gz: 7684254166c10f7f1c826e2e5d2a747f0d8061818355e45242303bdd8438f612a1836228298416f7f6d5bb7ee132cd92a09ecd4334fc72301755e6432d57811c
7
+ data.tar.gz: 555d6bbfd89c287031d106998548f76a0d26a5c5e560a018cabb1f82ae8344126e26bdb398a8ff3508ac7e51cca6d8dfc7137d08f0784da4bd43670065719f01
@@ -53,6 +53,7 @@ module EffectiveMembershipsApplicant
53
53
  organization: 'Organization', # Organization only. Organization fields.
54
54
  education: 'Education',
55
55
  course_amounts: 'Courses',
56
+ equivalences: 'Equivalent Memberships',
56
57
  transcripts: 'Transcripts',
57
58
  experience: 'Work Experience',
58
59
  references: 'References',
@@ -127,6 +128,7 @@ module EffectiveMembershipsApplicant
127
128
 
128
129
  effective_resource do
129
130
  applicant_type :string
131
+ stream :string
130
132
 
131
133
  # Acts as Statused
132
134
  status :string, permitted: false
@@ -359,6 +361,11 @@ module EffectiveMembershipsApplicant
359
361
  end
360
362
  end
361
363
 
364
+ def sidebar_steps
365
+ return self.class.required_wizard_steps unless category.present?
366
+ required_steps
367
+ end
368
+
362
369
  def can_visit_step?(step)
363
370
  if missing_info?
364
371
  return [:start, :select, :billing, :checkout].exclude?(step)
@@ -367,6 +374,14 @@ module EffectiveMembershipsApplicant
367
374
  can_revisit_completed_steps(step)
368
375
  end
369
376
 
377
+ def applicant_fee_category
378
+ category
379
+ end
380
+
381
+ def applicant_fee_price
382
+ category.applicant_fee
383
+ end
384
+
370
385
  # All Fees and Orders
371
386
  def submit_fees
372
387
  # Find or build submit fee
@@ -374,10 +389,10 @@ module EffectiveMembershipsApplicant
374
389
 
375
390
  unless fee.purchased?
376
391
  fee.assign_attributes(
377
- category: category,
378
- price: category.applicant_fee,
379
- tax_exempt: category.applicant_fee_tax_exempt,
380
- qb_item_name: category.applicant_fee_qb_item_name
392
+ category: applicant_fee_category(),
393
+ price: applicant_fee_price(),
394
+ tax_exempt: applicant_fee_category().applicant_fee_tax_exempt,
395
+ qb_item_name: applicant_fee_category().applicant_fee_qb_item_name
381
396
  )
382
397
  end
383
398
 
@@ -19,7 +19,7 @@
19
19
  = aef.hidden_field :endorser_type
20
20
 
21
21
  = aef.select :endorser_id, endorders_collection, required: false,
22
- ajax_url: effective_memberships.select2_ajax_endorser_applicant_endorsement_path(applicant_id: resource)
22
+ ajax_url: (effective_memberships.select2_ajax_endorser_applicant_endorsement_path(applicant_id: resource) unless Rails.env.test?)
23
23
 
24
24
  = aef.check_box :unknown_member, label: 'I cant find my endorser in the above list'
25
25
 
@@ -3,6 +3,9 @@
3
3
 
4
4
  = card do
5
5
  - if resource.min_applicant_educations > 0
6
+ %p You must include #{resource.min_applicant_educations} or more work experiences.
7
+
8
+ - if resource.min_applicant_experiences_months > 0
6
9
  %p You must include #{resource.min_applicant_experiences_months} or more months of experience.
7
10
 
8
11
  = effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
@@ -1,2 +1,2 @@
1
- = wizard_card(fee_payment)
1
+ = wizard_card(fee_payment) do
2
2
  = render 'users/demographics', parent: fee_payment, user: fee_payment.user
@@ -1,2 +1,2 @@
1
- = wizard_card(fee_payment)
1
+ = wizard_card(fee_payment) do
2
2
  = render 'organizations/demographics', parent: fee_payment, organization: fee_payment.organization
@@ -167,6 +167,7 @@ class CreateEffectiveMemberships < ActiveRecord::Migration[6.0]
167
167
  # Applicants
168
168
  create_table :applicants do |t|
169
169
  t.string :applicant_type
170
+ t.string :stream
170
171
  t.string :token
171
172
 
172
173
  t.integer :user_id
@@ -1,3 +1,3 @@
1
1
  module EffectiveMemberships
2
- VERSION = '0.4.13'
2
+ VERSION = '0.4.16'
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.4.13
4
+ version: 0.4.16
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: 2022-07-04 00:00:00.000000000 Z
11
+ date: 2022-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails