forked from Yara724/api
new person registration + car body matching accident date with endDate
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user