From e077e94538ce70e09a0e3beaca5d1cd84160053b Mon Sep 17 00:00:00 2001 From: Chika Date: Fri, 2 Sep 2022 12:17:06 +0300 Subject: [PATCH] =?UTF-8?q?=D0=95=D1=81=D0=BB=D0=B8=20=D0=B2=20=D0=BF?= =?UTF-8?q?=D0=BE=D0=BB=D0=B5=20=D0=BA=D0=B0=D0=BB=D1=8C=D0=BA=D1=83=D0=BB?= =?UTF-8?q?=D1=8F=D1=82=D0=BE=D1=80=D0=B0=20=C2=AB=D0=A2=D0=B8=D0=BF=20?= =?UTF-8?q?=D0=BF=D1=80=D0=B5=D0=B4=D0=BC=D0=B5=D1=82=D0=B0=20=D0=BB=D0=B8?= =?UTF-8?q?=D0=B7=D0=B8=D0=BD=D0=B3=D0=B0=C2=BB=20=D0=B2=D1=8B=D0=B1=D0=B8?= =?UTF-8?q?=D1=80=D0=B0=D1=8E=D1=82=20=3D=20=D0=A2=D1=8F=D0=B3=D0=B0=D1=87?= =?UTF-8?q?,=20=D0=A2=D0=9E=20=D0=BF=D0=BE=D0=BB=D0=B5=20=C2=AB=D0=A2?= =?UTF-8?q?=D0=A1=20=D1=81=20=D0=BF=D1=80=D0=B8=D1=86=D0=B5=D0=BF=D0=BE?= =?UTF-8?q?=D0=BC=C2=BB=20=D0=B7=D0=B0=D0=BF=D0=BE=D0=BB=D0=BD=D1=8F=D1=82?= =?UTF-8?q?=D1=8C=20=3D=20=D0=94=D0=90.=20=D0=95=D1=81=D0=BB=D0=B8=20?= =?UTF-8?q?=D0=BF=D0=BE=D0=BB=D0=B5=20=C2=AB=D0=A2=D0=B8=D0=BF=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B5=D0=B4=D0=BC=D0=B5=D1=82=D0=B0=20=D0=BB=D0=B8=D0=B7?= =?UTF-8?q?=D0=B8=D0=BD=D0=B3=D0=B0=C2=BB=20=D0=BC=D0=B5=D0=BD=D1=8F=D1=8E?= =?UTF-8?q?=D1=82=20=D1=81=20=D0=A2=D1=8F=D0=B3=D0=B0=D1=87=20=D0=BD=D0=B0?= =?UTF-8?q?=20=D0=B4=D1=80=D1=83=D0=B3=D0=BE=D0=B5,=20=D0=A2=D0=9E=20?= =?UTF-8?q?=D0=BF=D0=BE=D0=BB=D0=B5=20=C2=AB=D0=A2=D0=A1=20=D1=81=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B8=D1=86=D0=B5=D0=BF=D0=BE=D0=BC=C2=BB=20=D1=81=D0=B4?= =?UTF-8?q?=D0=B5=D0=BB=D0=B0=D1=82=D1=8C=20=3D=20=D0=9D=D0=95=D0=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Effects/reactions/otherReactions.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/client/stores/CalculationStore/Effects/reactions/otherReactions.ts b/src/client/stores/CalculationStore/Effects/reactions/otherReactions.ts index b6538a8..5e1d7d9 100644 --- a/src/client/stores/CalculationStore/Effects/reactions/otherReactions.ts +++ b/src/client/stores/CalculationStore/Effects/reactions/otherReactions.ts @@ -1445,6 +1445,17 @@ const reactionEffects: IReactionEffect[] = [ calculationStore.setValue('rate', rates[0].evo_id); }, }), + + calculationStore => ({ + expression: () => calculationStore.getOption('selectLeaseObjectType'), + effect: leaseObjectType => { + if (leaseObjectType.evo_id === '7') { + calculationStore.setValue('withTrailer', true); + } else { + calculationStore.setValue('withTrailer', false); + } + }, + }), ]; export default reactionEffects;