feat(realestate): 신혼부부 특공 혼인 기간 검증 추가 (84개월 이내)
marriage_months 미입력 시 기존대로 통과, 85개월 이상이면 신혼부부 특공 자격 제외. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -86,8 +86,10 @@ def _check_eligible_types(profile: Dict[str, Any], ann: Dict[str, Any]) -> List[
|
||||
elif is_homeless:
|
||||
eligible.append("일반2순위")
|
||||
|
||||
# 특별공급 — 신혼부부 (소득 160% 이하)
|
||||
if profile.get("is_newlywed") and is_homeless:
|
||||
# 특별공급 — 신혼부부 (소득 160% 이하, 혼인 84개월 이내)
|
||||
marriage_months = profile.get("marriage_months")
|
||||
newlywed_ok = (marriage_months is None) or (marriage_months <= 84)
|
||||
if profile.get("is_newlywed") and is_homeless and newlywed_ok:
|
||||
if income_pct is None or income_pct <= 160:
|
||||
eligible.append("특별-신혼부부")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user