Add case identity filters and description validation

This commit is contained in:
SepehrYahyaee
2026-09-27 09:54:56 +03:30
parent 8ac185c861
commit b758346af1
15 changed files with 339 additions and 13 deletions

View File

@@ -483,6 +483,7 @@ describe("buildInsurerFileReport", () => {
nationalCode: "0012345678",
birthday: "1370/01/01",
hasDrivingLicense: true,
driverLicenseDate: "1400/01/01",
licenseNumber: "123456789",
licenseType: "BASE_2",
},

View File

@@ -732,7 +732,10 @@ function buildDriverSection(
},
{
label: PR.licenseDate,
value: licenseDate ?? asString(person.driverLicense),
value:
asString(person.driverLicenseDate) ||
licenseDate ||
asString(person.driverLicense),
},
{ label: PR.phone, value: asString(person.phoneNumber) },
{ label: PR.nationalCode, value: asString(person.nationalCodeOfDriver) },