From e9b07ed67c0f4752e4b3782489aaee46ff71e37e Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Thu, 5 Sep 2024 13:43:42 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B2=20=D0=B2=D0=B5=D1=82=D0=BA=D0=B5=20DYN-4?= =?UTF-8?q?514=20=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82=D1=8C=20?= =?UTF-8?q?=D0=B2=20=D1=82=D0=B5=D0=BA=D1=83=D1=89=D1=83=D1=8E=20=D1=80?= =?UTF-8?q?=D0=B5=D0=B0=D0=BA=D1=86=D0=B8=D1=8E=20=D0=B5=D1=89=D0=B5=202?= =?UTF-8?q?=20=D1=82=D0=B8=D0=BF=D0=B0=20=D0=9F=D0=9B:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Если Тип предмета лизингаselectLeaseObjectType = Спецтехника (ID=9) или Погрузчик (ID=6) или Трактор (ID=10) и значение в поле tbxMaxSpeed< 20, то insuredOSAGO = Лизингополучатель (100000000), inscostOSAGO = 0, inscompanyOSAGO = ПРОЧИЕ и закрыты для редактирования --- apps/web/process/insurance/reactions.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/web/process/insurance/reactions.ts b/apps/web/process/insurance/reactions.ts index bdda8e3..9f40499 100644 --- a/apps/web/process/insurance/reactions.ts +++ b/apps/web/process/insurance/reactions.ts @@ -330,7 +330,11 @@ export function common({ store, apolloClient }: ProcessContext) { query: CRMTypes.GetInsuranceCompaniesDocument, }); - if (evo_leasingobject_type?.evo_id === '9' && maxSpeed < 20) { + if ( + evo_leasingobject_type?.evo_id && + ['9', '6', '10'].includes(evo_leasingobject_type.evo_id) && + maxSpeed < 20 + ) { const otherInsuranceCompany = accounts?.find( (x) => x?.evo_type_ins_policy === null && x.label?.includes('ПРОЧИЕ') );