From 7394350211c81e0e888dfd4a7c92f329668ff262 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Thu, 6 Apr 2023 17:34:17 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D1=80=D0=B5=D0=B0=D0=BA=D1=86=D0=B8=D1=8E=20?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=BF=D0=BE=D0=BB=D1=8F=20=D0=9F=D0=B5=D1=80=D0=B5?= =?UTF-8?q?=D1=81=D1=87=D0=B5=D1=82=20=D0=B1=D0=B5=D0=B7=20=D0=BF=D0=B5?= =?UTF-8?q?=D1=80=D0=B5=D1=81=D0=BC=D0=BE=D1=82=D1=80=D0=B0=20cbxRecalcWit?= =?UTF-8?q?hRevision=20=D0=B8=20=D0=B7=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=BA?= =?UTF-8?q?=D1=83=20=D0=9A=D0=9F:=20=20=20=20*=20=D0=95=D0=A1=D0=9B=D0=98?= =?UTF-8?q?=20=D0=B2=20=D0=BF=D0=BE=D0=BB=D0=B5=20=D0=9F=D1=80=D0=BE=D0=B4?= =?UTF-8?q?=D1=83=D0=BA=D1=82=20selectProduct=20=20=D0=B2=D1=8B=D0=B1?= =?UTF-8?q?=D1=80=D0=B0=D0=BD=D0=B0=20=D0=B7=D0=B0=D0=BF=D0=B8=D1=81=D1=8C?= =?UTF-8?q?=20=D0=B8=20=D0=BF=D0=BE=D0=BB=D0=B5=20=D0=91=D0=A3=D0=B1=D0=B5?= =?UTF-8?q?=D0=B7=D0=9D=D0=94=D0=A1=20evo=5Fsale=5Fwithout=5Fnds=20=3D=20T?= =?UTF-8?q?rue=20=20=20=20*=20=D0=B8=20=D0=9F=D0=B5=D1=80=D0=B5=D1=81?= =?UTF-8?q?=D1=87=D0=B5=D1=82=20=D0=B1=D0=B5=D0=B7=20=D0=BF=D0=B5=D1=80?= =?UTF-8?q?=D0=B5=D1=81=D0=BC=D0=BE=D1=82=D1=80=D0=B0=20cbxRecalcWithRevis?= =?UTF-8?q?ion=20=3D=20True,=20=20=20=20*=20=20=20=20*=20=D1=82=D0=BE=20?= =?UTF-8?q?=D0=BF=D0=BE=D0=BB=D1=8F=20"=D0=9F=D0=B5=D1=80=D0=B2=D1=8B?= =?UTF-8?q?=D0=B9=20=D0=BF=D0=BB=D0=B0=D1=82=D0=B5=D0=B6,=20=D1=80=D1=83?= =?UTF-8?q?=D0=B1."=20tbxFirstPaymentRub=20=20=20=20*=20=D0=B8=20"=D0=9F?= =?UTF-8?q?=D0=B5=D1=80=D0=B2=D1=8B=D0=B9=20=D0=BF=D0=BB=D0=B0=D1=82=D0=B5?= =?UTF-8?q?=D0=B6=20%"=20tbxFirstPaymentPerc=20=D0=B7=D0=B0=D0=BA=D1=80?= =?UTF-8?q?=D1=8B=D1=82=D1=8B=20=D0=B4=D0=BB=D1=8F=20=D1=80=D0=B5=D0=B4?= =?UTF-8?q?=D0=B0=D0=BA=D1=82=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F,=20=20=20=20*=20=D0=B8=D0=BD=D0=B0=D1=87=D0=B5=20=D0=BE?= =?UTF-8?q?=D1=82=D0=BA=D1=80=D1=8B=D1=82=D1=8B=20=D0=B4=D0=BB=D1=8F=20?= =?UTF-8?q?=D1=80=D0=B5=D0=B4=D0=B0=D0=BA=D1=82=D0=B8=D1=80=D0=BE=D0=B2?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/process/used-pl/reactions.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/web/process/used-pl/reactions.ts b/apps/web/process/used-pl/reactions.ts index 3d38931..c16ced7 100644 --- a/apps/web/process/used-pl/reactions.ts +++ b/apps/web/process/used-pl/reactions.ts @@ -90,10 +90,8 @@ export function common({ store, apolloClient }: ProcessContext) { * иначе открыты для редактирования */ reaction( - () => $calculation.$values.getValues(['recalcWithRevision', 'quote']), - async ({ recalcWithRevision }) => { - const productId = $calculation.element('selectProduct').getValue(); - + () => $calculation.$values.getValues(['recalcWithRevision', 'product']), + async ({ recalcWithRevision, product: productId }) => { if (!productId) { $calculation.element('tbxFirstPaymentPerc').unblock(); $calculation.element('tbxFirstPaymentRub').unblock();