update the vehicle used , also sharh hardcoded

This commit is contained in:
2026-11-09 18:34:57 +03:30
parent f33eabeb4f
commit cc0d69dcb2
4 changed files with 217 additions and 10 deletions
+7
View File
@@ -51,6 +51,13 @@ source: fanavaran-module-docs
| Store | `claimId`, `claimNo`, `fanavaranSync.baseClaim.*`, history |
| Consumers | Damage/expertise soft-ensure; UI claim detail |
Hull base claims always GET the selected hull policy, then GET its `VehicleId`
at `VehicleVersionNo`. `AccidentVehicleUsedId` is that vehicle response's
`UsedId`. This path does not substitute a guilty-party VIN, cached use id,
expert override, tenant default, or a generic lookup row. Missing `UsedId`
produces `FANAVARAN_HULL_VEHICLE_USE_UNRESOLVED` in preview and blocks submit.
Debug preview exposes `accidentVehicleUsedId` and `accidentVehicleUsedSource`.
#### Staff source for ClaimExpertId across request flows
The flows in `docs/Yara724 flows.pdf` share the same base-claim resolver.
+1 -1
View File
@@ -57,7 +57,7 @@ Built by `buildFanavaranSubmitPayload` then `enrichCarBodyHullBaseClaimPayload`
| CulpritLicenceNo | شماره گواهینامه | string | **no** | dummy / **user** |
| CulpritLicenceIssuDate | تاریخ صدور گواهینامه | string Jalali | **no** | **system** `"1394/10/13"` |
| CulpritLicenceTypeId | نوع گواهینامه | number | sent | tenant `2` · lookup `driving-licence-types` |
| AccidentVehicleUsedId | کاربری خودرو | number | **no** | **inquiry** VIN/policy, else tenant |
| AccidentVehicleUsedId | کاربری خودرو | number | **no** | **inquiry** hull policy `VehicleId` + `VehicleVersionNo` → vehicle GET `UsedId`; no default or expert override. Unresolved inquiry warns in preview and blocks submit. |
| PoliceOfficerId | افسر | number | sent | **system** `1` |
| IsAccidentOutOfBorder | خارج از مرز | number | sent | **system** `0` |
| ArchiveNo | بایگانی | string | yes | null |