fanavaran driver and owner id (GEN..44 defauts) - culprit type id dynamic

This commit is contained in:
2026-09-28 16:13:32 +03:30
parent a74e20b25f
commit 165afe56ae
7 changed files with 303 additions and 36 deletions
@@ -49,6 +49,29 @@ describe("fanavaran other people (GEN.44)", () => {
});
});
it("defaults CityId=9131 and PersonKindId=46 when lookups miss", () => {
const payload = buildFanavaranOtherPeoplePayload({
nationalCode: "2002166323",
birthday: { year: 1353, month: 2, day: 15 },
name: "محمدعلي",
lastName: "موسوي",
fatherName: "حسن",
identityNo: "1205",
genderId: 26,
});
expect(payload).toMatchObject({
NationalCode: "2002166323",
CityId: 9131,
PersonKindId: 46,
GenderId: 26,
Name: "محمدعلي",
LastName: "موسوي",
FatherName: "حسن",
IdentityNo: "1205",
});
});
it("returns null when national code or birthday is missing", () => {
expect(
buildFanavaranOtherPeoplePayload({