странные изменения supplierFinancing
This commit is contained in:
parent
d5362d8275
commit
2121a4097e
@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user