Merge branch 'development'
This commit is contained in:
commit
29cd37a389
@ -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);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user