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: () => { expression: () => {
return { return {
selectProduct: calculationStore.getOption('selectProduct'), selectProduct: calculationStore.getOption('selectProduct'),
selectDealerPerson: calculationStore.getOption('selectDealerPerson'),
}; };
}, },
effect: ({ selectProduct, selectDealerPerson }) => { effect: ({ selectProduct }) => {
if ( if (selectProduct?.evo_supplier_financing_accept) {
selectProduct?.evo_supplier_financing_accept && calculationStore.setValue('supplierFinancing', true);
selectDealerPerson?.evo_supplier_financing_accept
) {
calculationStore.setStatus(
'cbxSupplierFinancing',
ElementStatus.Default,
);
} else { } else {
calculationStore.setStatus(
'cbxSupplierFinancing',
ElementStatus.Disabled,
);
calculationStore.setValue('supplierFinancing', false); calculationStore.setValue('supplierFinancing', false);
} }
}, },