Household net income leaves out armed forces independence payment

Đang mở
#2,872 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

@juaristi22 đang làm issue này rồi.

Từ ngày 5/11/2026.

  • #2880 của @juaristi22 — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
65/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
backend, databases

Hướng nghiên cứu

Read household_benefits.py and its HOUSEHOLD_BENEFIT_VARIABLES definition, then find the existing tests for household_benefits and add a case showing AFIP is counted. Check whether issue #2809 has moved the list into programs.yaml; if so, add the AFIP entry beside afcs there. Before changing HBAI_HOUSEHOLD_NET_INCOME_ADDS in hbai_household_net_income.py, establish whether DWP's Households Below Average Income counts AFIP. Done when the household benefit total includes AFIP and the test passes.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

household_benefits adds afcs but not armed_forces_independence_payment, so household net and gross income leave out armed forces independence payment (AFIP). afcs adds only afcs_reported, the FRS's benefit code 8, and AFIP's documentation says "It is not part of afcs."

On main at 5c7744144:

  • HOUSEHOLD_BENEFIT_VARIABLES in household_benefits.py lists afcs and no AFIP, and household_net_income, household_net_income_ahc and household_gross_income each add household_benefits.
  • HBAI_HOUSEHOLD_NET_INCOME_ADDS in hbai_household_net_income.py lists afcs, pip and dla, and no AFIP.
  • The other readers of AFIP, such as the benefit cap exemptions and the severe disability premium, test receipt. The Childcare Offer for Wales counts the amount in its own income test, and none of them adds AFIP to household income.

policyengine-uk-data doesn't set armed_forces_independence_payment, so the gap shows in households a user enters with AFIP rather than in survey aggregates.

Fix

Add armed_forces_independence_payment beside afcs in HOUSEHOLD_BENEFIT_VARIABLES, with a test that household_benefits counts it. #2809 moves that list into programs.yaml and flags afcs there as budget: benefit. If #2809 lands first, add an AFIP entry beside it. Before adding AFIP to HBAI_HOUSEHOLD_NET_INCOME_ADDS, check whether DWP's Households Below Average Income counts it.

Ngôn ngữ chính
Python
Star
53
Fork
34
Merge trung bình
3 ngày 8 giờ
Pull request đã merge (30 ngày)
323

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của PolicyEngine/policyengine-uk

Tất cả issue của PolicyEngine/policyengine-uk

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.