ELT x insDecentral
This commit is contained in:
parent
85455b7319
commit
6272747ec6
@ -101,6 +101,18 @@ export const conditions: TElements<ValidationCondition> = {
|
||||
isValid: true,
|
||||
};
|
||||
},
|
||||
cbxInsDecentral: calculationStore => {
|
||||
const insDecentral = calculationStore.getValue('insDecentral');
|
||||
if (insDecentral) {
|
||||
return {
|
||||
isValid: false,
|
||||
message: 'Децентрализованное страхование не может быть расчитано в ЭЛТ',
|
||||
};
|
||||
}
|
||||
return {
|
||||
isValid: true,
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
export const resetFields: ElementsNames[] = [
|
||||
|
||||
@ -43,6 +43,7 @@ const conditions: TElements<ValidationCondition> = {
|
||||
export const resetFields: ElementsNames[] = [
|
||||
...requiredFields,
|
||||
...(Object.keys(conditions) as ElementsNames[]),
|
||||
...(Object.keys(kaskoConditions) as ElementsNames[]),
|
||||
'selectLegalClientTown',
|
||||
'selectLegalClientRegion',
|
||||
'radioObjectRegistration',
|
||||
|
||||
Reference in New Issue
Block a user