vehicle hull accessories debug , either success or clear YARA error

This commit is contained in:
2026-11-12 13:01:32 +03:30
parent 3fe897031a
commit af9bed3b0d
6 changed files with 140 additions and 42 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ Not ثالث GEN.08: no `DmgCaseId`, `InspectionPlaceId`, `RepairWage` on the ro
| DmgSections[].WasteValue | داغی ردیف | number | **no** | **user** |
| DmgSections[].AccessoryKindId | نوع قطعه کاتالوگ | number | preferred | **user** `partId` · lookup `car-components` |
| DmgSections[].DmgKindId | نوع آسیب بدنه | number | **no** | Current `vehicle-hull-dmg-kind` API row caption تخریب; no numeric fallback |
| DmgSections[].VehicleHullAccessoryId | شناسه لوازم بدنه | number | **no** | Current policy `dmg-accessories`: match `AccessoryKindId`, else that policy's factory bundle; warn and block submission if unresolved |
| DmgSections[].VehicleHullAccessoryId | شناسه لوازم بدنه | number | **no** | Current policy `dmg-accessories` only: exact `AccessoryKindId` or caption match on the same row; **never** invent a factory-bundle Id. Block submit if unresolved |
| DmgSections[].DmgSectionCosts[].Caption | عنوان هزینه | string | **no** | **user** label |
| DmgSections[].DmgSectionCosts[].Amount | مبلغ (قطعه+اجرت) | number | **no** | **user** |
| DmgSections[].DmgSectionCosts[].DmgCostKindId | نوع هزینه | number | **no** | Current `vehicle-hull-dmg-cost-kinds` API row caption مجموع لوازم; no numeric fallback |
+5 -5
View File
@@ -155,7 +155,7 @@ The returned attachment Id is saved as fileId; it is not FileTypeId.
| Request field | Lookup/source | Current handling |
|---|---|---|
| DmgSections[].AccessoryKindId | car-components | Selected part ID, live checked |
| DmgSections[].VehicleHullAccessoryId | Current hull policy dmg-accessories | Exact matching accessory or that policy's factory bundle; live checked; never a shared fixed record ID |
| DmgSections[].VehicleHullAccessoryId | Current hull policy dmg-accessories | Exact `AccessoryKindId` (or caption) match on one policy row; Id+kind must stay coherent; no factory-bundle guess; block submit if missing |
| DmgSections[].DmgKindId | vehicle-hull-dmg-kind | Response row caption تخریب; live checked, no numeric fallback |
| DmgSections[].DmgSectionCosts[].DmgCostKindId | vehicle-hull-dmg-cost-kinds | Response row caption مجموع لوازم; live checked, no numeric fallback |
| ColorId | Policy vehicle GET ColorId | Inquiry-derived; not independently checked against a colour lookup |
@@ -170,10 +170,10 @@ Get the policy accessory rows using:
Upstream source:
`GET /car/vehicle-hull-policies/{policyId}/dmg-accessories`
Use the row's Id for VehicleHullAccessoryId. Its PolicyId must be the claim's hull
PolicyId. A factory bundle may legitimately serve several different selected
car-components parts. Its bundle AccessoryKindId is not automatically the part ID
to send for every damaged part.
Use the row's Id for VehicleHullAccessoryId and that same row's AccessoryKindId.
Fanavaran rule `CarDamageBdAsibdideSectionLookupFilterRule` rejects pairing a
local car-components part id with an unrelated policy accessory Id (including
factory-bundle rows). If the policy list has no matching row, refuse submit.
Hull has no damage-case POST. DmgCaseId, InspectionPlaceId and DropAmountStatus
are not hull expertise fields. AccidentPercent is a percentage, not a lookup ID.