effective_memberships 0.4.15 → 0.4.16

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: 28543acc716acda559f603f4f8b1da0b608897ff9e251c04936f4cc32e186f2e
4
- data.tar.gz: d524120cc69e13abc09af94999aef3bc7a00c5866b7ec97d450c6bf88bbe68d2
3
+ metadata.gz: 774b42acc07d3dae76bd17888dd5c323b3a47463cb339caa96162ea323ddf4a7
4
+ data.tar.gz: e9ee1f7769177827ad627d61e68d294a6d868ac26ec133396b8c861b221a0b2f
5
5
  SHA512:
6
- metadata.gz: a4a4f48f38e7e504be81e7914c3612405ac82121c47774dafcadf1e46b734a58b63ae9a689de62af385bed7a249cab8bd8714a3008eacd96b86483a4ea56ee1b
7
- data.tar.gz: 1f69dbcd48f106c91b7226a3dc99bc105783b6bbdaf22db60e30f89b6ad5200b06190477599bb7fbf8ef07e804aac5d8decc619c467ce3e3597514ab2a90e62d
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',
@@ -373,6 +374,14 @@ module EffectiveMembershipsApplicant
373
374
  can_revisit_completed_steps(step)
374
375
  end
375
376
 
377
+ def applicant_fee_category
378
+ category
379
+ end
380
+
381
+ def applicant_fee_price
382
+ category.applicant_fee
383
+ end
384
+
376
385
  # All Fees and Orders
377
386
  def submit_fees
378
387
  # Find or build submit fee
@@ -380,10 +389,10 @@ module EffectiveMembershipsApplicant
380
389
 
381
390
  unless fee.purchased?
382
391
  fee.assign_attributes(
383
- category: category,
384
- price: category.applicant_fee,
385
- tax_exempt: category.applicant_fee_tax_exempt,
386
- 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
387
396
  )
388
397
  end
389
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,3 +1,3 @@
1
1
  module EffectiveMemberships
2
- VERSION = '0.4.15'
2
+ VERSION = '0.4.16'
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.4.15
4
+ version: 0.4.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect