Skip to content

Commit

Permalink
Merge pull request #1977 from alphagov/convert-pay-leave-for-parents-…
Browse files Browse the repository at this point in the history
…to-single-question-per-page

Convert pay-leave-for-parents to single question per page
  • Loading branch information
chrisroos committed Oct 1, 2015
2 parents edac376 + d5bd477 commit 82bb688
Show file tree
Hide file tree
Showing 26 changed files with 1,155 additions and 1,140 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@

[date: due_date]

* two_carers is 'no' => employment_single
* two_carers is 'yes' => employment_both
* otherwise => employment_status_of_mother

This file was deleted.

This file was deleted.

This file was deleted.

222 changes: 0 additions & 222 deletions lib/smartdown_flows/pay-leave-for-parents/questions/employment_2.txt

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Mother’s employment details

# Did the mother start her current or most recent job before %{continuity_start_date(due_date)}?

[choice: mother_started_working_before_continuity_start_date]
* yes: Yes
* no: No

* otherwise => employment_details_of_mother_1b
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Mother’s employment details

# Was the mother (or will she be) still working in that job on %{continuity_end_date(due_date)}?

[choice: mother_still_working_on_continuity_end_date]
* yes: Yes
* no: No

* otherwise => employment_details_of_mother_1c
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Mother’s employment details

# How much does the mother earn (or did she earn, if she’s left her job)?

[salary: mother_salary]

This is her total take-home pay before any deductions, eg tax.

* otherwise => employment_details_of_mother_1d
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Mother’s employment details

# Has the mother earned (or will she have earned) more than %{lower_earnings_amount(due_date)} per week between %{lower_earnings_start_date(due_date)} and %{lower_earnings_end_date(due_date)}?

[choice: mother_earned_more_than_lower_earnings_limit]
* yes: Yes
* no: No

* continuity(mother_started_working_before_continuity_start_date mother_still_working_on_continuity_end_date) AND lower_earnings(mother_earned_more_than_lower_earnings_limit)
* two_carers is 'no'
* employment_status_of_mother is 'employee' => outcome_mat-leave_mat-pay
* employment_status_of_mother is 'worker' => outcome_mat-pay
* two_carers is 'yes'
* employment_status_of_partner in {employee worker} => employment_details_of_partner_1a
* employment_status_of_partner in {self-employed unemployed}
* due_date >= '2015-4-5' => employment_details_of_partner_2a
* due_date < '2015-4-5'
* employment_status_of_mother is 'employee' => outcome_mat-leave_mat-pay
* employment_status_of_mother is 'worker' => outcome_mat-pay
* NOT continuity(mother_started_working_before_continuity_start_date mother_still_working_on_continuity_end_date) OR NOT lower_earnings(mother_earned_more_than_lower_earnings_limit) => employment_details_of_mother_2a
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Mother’s employment details

# Did the mother work (or will she have worked) for at least 26 weeks between %{earnings_employment_start_date(due_date)} and %{earnings_employment_end_date(due_date)}?

[choice: mother_worked_at_least_26_weeks]
* yes: Yes
* no: No

The 26 weeks don’t need to be in a row. They can be full or part weeks.

* otherwise => employment_details_of_mother_2b
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Mother’s employment details

# Did the mother earn (or will she have earned) a total of £390 or more in any 13 weeks between %{earnings_employment_start_date(due_date)} and %{earnings_employment_end_date(due_date)}?

[choice: mother_earned_at_least_390]
* yes: Yes
* no: No

The 13 weeks don’t need to be in a row.

* two_carers is 'no'
* earnings_employment(mother_earned_at_least_390 mother_worked_at_least_26_weeks) => employment_details_of_mother_3
* employment_status_of_mother is 'employee'
* mother_still_working_on_continuity_end_date is 'yes' => outcome_mat-leave
* mother_still_working_on_continuity_end_date is 'no' => outcome_single-birth-nothing
* employment_status_of_mother in {worker self-employed unemployed} => outcome_single-birth-nothing
* two_carers is 'yes'
* earnings_employment(mother_earned_at_least_390 mother_worked_at_least_26_weeks) => employment_details_of_mother_3
* employment_status_of_partner in {employee worker} => employment_details_of_partner_1a
* employment_status_of_partner in {self-employed unemployed}
* employment_status_of_mother is 'employee'
* continuity(mother_started_working_before_continuity_start_date mother_still_working_on_continuity_end_date) AND due_date >= '2015-4-5' => employment_details_of_partner_2a
* mother_still_working_on_continuity_end_date is 'yes' => outcome_mat-leave
* mother_still_working_on_continuity_end_date is 'no' => outcome_birth-nothing
* employment_status_of_mother in {worker self-employed} => outcome_birth-nothing
* employment_status_of_mother is 'unemployed'
* employment_status_of_partner is 'self-employed' => outcome_mat-allowance-14-weeks
* employment_status_of_partner is 'unemployed' => outcome_birth-nothing
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Mother’s salary details

# How much did the mother earn between %{earnings_employment_start_date(due_date)} and %{earnings_employment_end_date(due_date)}?

[salary: salary_1_66_weeks]

* two_carers is 'no'
* employment_status_of_mother is 'employee'
* mother_still_working_on_continuity_end_date is 'yes' => outcome_mat-allowance_mat-leave
* mother_still_working_on_continuity_end_date is 'no' => outcome_mat-allowance
* employment_status_of_mother in {worker self-employed unemployed} => outcome_mat-allowance
* two_carers is 'yes'
* employment_status_of_partner in {employee worker} => employment_details_of_partner_1a
* employment_status_of_partner in {self-employed unemployed}
* employment_status_of_mother is 'employee'
* continuity(mother_started_working_before_continuity_start_date mother_still_working_on_continuity_end_date) AND due_date >= '2015-4-5' => employment_details_of_partner_2a
* mother_still_working_on_continuity_end_date is 'yes' => outcome_mat-allowance_mat-leave
* mother_still_working_on_continuity_end_date is 'no' => outcome_mat-allowance
* employment_status_of_mother in {worker self-employed unemployed} => outcome_mat-allowance
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Partner’s employment details

# Did the mother’s partner start their current or most recent job before %{continuity_start_date(due_date)}?

[choice: partner_started_working_before_continuity_start_date]
* yes: Yes
* no: No

* otherwise => employment_details_of_partner_1b
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Partner’s employment details

# Was the mother’s partner (or will they be) still working in that job on %{continuity_end_date(due_date)}?

[choice: partner_still_working_on_continuity_end_date]
* yes: Yes
* no: No

* otherwise => employment_details_of_partner_1c
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Partner’s employment details

# How much does the mother’s partner earn (or did they earn, if they’ve left their job)?

[salary: partner_salary]

This is their total take-home pay before any deductions, eg tax.

* otherwise => employment_details_of_partner_1d
Loading

0 comments on commit 82bb688

Please sign in to comment.