fix validation

This commit is contained in:
Chika 2021-05-26 14:23:45 +03:00
parent 9505f29712
commit 0fb3b4be5a

View File

@ -32,7 +32,7 @@ const CUSTOM_CONDITIONS: TElements<
const vehicleTaxInYear = calculationStore.getValue('vehicleTaxInYear');
return CONDITIONS.LESS_OR_EQUALS_ZERO(vehicleTaxInYear);
}
return true;
return false;
},
radioTypePTS: calculationStore => {
const objectRegistration = calculationStore.getValue('objectRegistration');
@ -40,7 +40,7 @@ const CUSTOM_CONDITIONS: TElements<
const typePTS = calculationStore.getValue('typePTS');
return CONDITIONS.IS_NULL(typePTS);
}
return true;
return false;
},
selectObjectRegionRegistration: calculationStore => {
const objectRegistration = calculationStore.getValue('objectRegistration');
@ -50,7 +50,7 @@ const CUSTOM_CONDITIONS: TElements<
);
return CONDITIONS.IS_NULL(objectRegionRegistration);
}
return true;
return false;
},
};