в ветке DYN-4514 добавить в текущую реакцию еще 2 типа ПЛ:
Если Тип предмета лизингаselectLeaseObjectType = Спецтехника (ID=9) или Погрузчик (ID=6) или Трактор (ID=10) и значение в поле tbxMaxSpeed< 20, то insuredOSAGO = Лизингополучатель (100000000), inscostOSAGO = 0, inscompanyOSAGO = ПРОЧИЕ и закрыты для редактирования
This commit is contained in:
parent
599baf703b
commit
e9b07ed67c
@ -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('ПРОЧИЕ')
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user