Compare commits

...

2 Commits
review ... dev

Author SHA1 Message Date
vchikalkin
3c25ba30d0 merge branch 'release/dyn-4885' 2024-12-10 10:11:43 +03:00
vchikalkin
ba36eb502b merge branch 'release/dyn-4872' 2024-12-03 12:09:07 +03:00
2 changed files with 13 additions and 2 deletions

View File

@ -618,7 +618,7 @@ export async function makeEltKaskoRequest(
}
}
let classification = '11635';
let classification = '11606';
switch (evo_leasingobject_type?.evo_id) {
case '7': {
@ -634,7 +634,7 @@ export async function makeEltKaskoRequest(
break;
}
default: {
classification = '11635';
classification = '11606';
break;
}
}

View File

@ -259,6 +259,8 @@ export function createValidationSchema({ apolloClient }: ValidationContext) {
}
let okved: string | null | undefined;
let evo_inn: string | null | undefined;
if (leadid) {
const {
data: { lead },
@ -268,6 +270,7 @@ export function createValidationSchema({ apolloClient }: ValidationContext) {
});
okved = lead?.accountidData?.evo_okved;
evo_inn = lead?.evo_inn;
}
if (!okved && opportunityid) {
@ -302,6 +305,14 @@ export function createValidationSchema({ apolloClient }: ValidationContext) {
path: ['eltKasko', 'eltOsago'],
});
}
if (!evo_inn) {
ctx.addIssue({
code: z.ZodIssueCode.custom,
message: 'ИНН в интересе не заполнен',
path: ['eltKasko', 'eltOsago'],
});
}
}
);
}