new person registration + car body matching accident date with endDate

This commit is contained in:
2026-11-21 12:47:50 +03:30
parent 5c6e21dd14
commit ab3ae53ec0
8 changed files with 462 additions and 27 deletions
@@ -87,6 +87,13 @@ export function selectFanavaranDriverId(
});
}
/** Hull driver registration must resolve specifically to GEN.44's سایر role. */
export function selectFanavaranOtherPersonId(rows: unknown): number | null {
return selectFanavaranIdByRoles(rows, [FANAVARAN_DRIVER_ROLE_ID], {
allowFallbackToFirst: false,
});
}
/**
* OwnerId for GEN.12: same accepted roles as DriverId (161 / 166 only).
* Prefer بیمه‌گذار then سایر. RoleId 162/163/… → null → GEN.44 on submit.