Merge branch 'development'

This commit is contained in:
vchikalkin 2023-04-17 11:42:24 +03:00
commit 29cd37a389

View File

@ -1426,23 +1426,12 @@ const reactionEffects: IReactionEffect[] = [
expression: () => {
return {
selectProduct: calculationStore.getOption('selectProduct'),
selectDealerPerson: calculationStore.getOption('selectDealerPerson'),
};
},
effect: ({ selectProduct, selectDealerPerson }) => {
if (
selectProduct?.evo_supplier_financing_accept &&
selectDealerPerson?.evo_supplier_financing_accept
) {
calculationStore.setStatus(
'cbxSupplierFinancing',
ElementStatus.Default,
);
effect: ({ selectProduct }) => {
if (selectProduct?.evo_supplier_financing_accept) {
calculationStore.setValue('supplierFinancing', true);
} else {
calculationStore.setStatus(
'cbxSupplierFinancing',
ElementStatus.Disabled,
);
calculationStore.setValue('supplierFinancing', false);
}
},