forked from Yara724/api
Add case identity filters and description validation
This commit is contained in:
@@ -483,6 +483,7 @@ describe("buildInsurerFileReport", () => {
|
||||
nationalCode: "0012345678",
|
||||
birthday: "1370/01/01",
|
||||
hasDrivingLicense: true,
|
||||
driverLicenseDate: "1400/01/01",
|
||||
licenseNumber: "123456789",
|
||||
licenseType: "BASE_2",
|
||||
},
|
||||
|
||||
@@ -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) },
|
||||
|
||||
Reference in New Issue
Block a user