Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UHF-7485 family with kids payment #611

Merged
merged 4 commits into from
Mar 30, 2023
Merged

Conversation

Arkkimaagi
Copy link
Contributor

@Arkkimaagi Arkkimaagi commented Mar 30, 2023

UHF-7485

  • Adds new calculator

What was done

  • New calculator was added

How to install

  • Make sure your instance is up and running on latest dev branch.
    • git pull origin dev
    • make fresh
  • Update the HDBT theme
    • composer require drupal/hdbt:dev-UHF-7485_family_with_kids_payment
  • Run make drush-cr
  • Enable calculator module in console: drush en helfi_calculator
  • Add calculator paragraph to upper and lower content area in /admin/structure/types/manage/page/fields
  • Enable "Family with kids home service client payment"-calculator from /admin/tools/calculator-settings and add Calculator data from below:
    image
CLICK ME! Calculator data for Family with kids home service client payment

Calculator data for "Family with kids home service client payment"

{
  "income_limit": {
    "1": 598,
    "2": 1103,
    "3": 1731,
    "4": 2140,
    "5": 2591,
    "6": 2976
  },
  "monthly_usage": {
    "0": {
      "max": 119.66,
      "percent": 1
    },
    "5": {
      "max": 538.47,
      "percent": 2
    },
    "9": {
      "max": 1017.12,
      "percent": 3
    },
    "13": {
      "max": 1495.76,
      "percent": 4
    },
    "17": {
      "max": 1974.4,
      "percent": 5
    },
    "21": {
      "max": 2453.05,
      "percent": 6
    },
    "25": {
      "max": 2931.69,
      "percent": 7
    },
    "29": {
      "max": 3410.33,
      "percent": 8
    },
    "33": {
      "max": 3888.98,
      "percent": 9
    },
    "37": {
      "max": 4367.62,
      "percent": 10
    },
    "41": {
      "max": 4906.1,
      "percent": 11
    }
  }
}
* Add calculator to a page, select "Family with kids home service client payment" from dropdown.

image

How to test

  • Check that calculator checks sane values and shows receipt when values are entered
  • Check that code follows our standards

Designers review

  • This PR does not need designers review

Related PR

@Arkkimaagi Arkkimaagi changed the base branch from main to UHF-8164_calculator_translations March 30, 2023 05:53
@Arkkimaagi Arkkimaagi marked this pull request as ready for review March 30, 2023 05:57
@Arkkimaagi Arkkimaagi force-pushed the UHF-7485_family_with_kids_payment branch from f8aa9db to ffff85d Compare March 30, 2023 06:09
@juho-lehmonen juho-lehmonen self-requested a review March 30, 2023 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants