process/create-kp: add cbxPriceWithDiscount, cbxFullPriceWithDiscount reaction
This commit is contained in:
parent
e20e8457e7
commit
971684d97e
@ -14,4 +14,22 @@ export function common({ store }: ProcessContext) {
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
reaction(
|
||||
() => $calculation.element('cbxPriceWithDiscount').getValue(),
|
||||
(priceWithDiscount) => {
|
||||
if (priceWithDiscount === true) {
|
||||
$calculation.element('cbxFullPriceWithDiscount').setValue(false);
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
reaction(
|
||||
() => $calculation.element('cbxFullPriceWithDiscount').getValue(),
|
||||
(fullPriceWithDiscount) => {
|
||||
if (fullPriceWithDiscount === true) {
|
||||
$calculation.element('cbxPriceWithDiscount').setValue(false);
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user