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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 774b42acc07d3dae76bd17888dd5c323b3a47463cb339caa96162ea323ddf4a7
|
4
|
+
data.tar.gz: e9ee1f7769177827ad627d61e68d294a6d868ac26ec133396b8c861b221a0b2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
384
|
-
price:
|
385
|
-
tax_exempt:
|
386
|
-
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|
|