forked from Yara724/api
update the vehicle used , also sharh hardcoded
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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 |
|
||||
|
||||
Reference in New Issue
Block a user