From 7b0aa09020dfe7161df97f0c414011fa2868e6fa Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Wed, 29 Nov 2023 16:52:02 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D0=BD=D0=B5=D1=81=D1=82=D0=B8=20=D0=B8?= =?UTF-8?q?=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B2=20?= =?UTF-8?q?=D1=80=D0=B5=D0=B0=D0=BA=D1=86=D0=B8=D1=8E=20=D0=BD=D0=B0=20?= =?UTF-8?q?=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BF?= =?UTF-8?q?=D0=BE=D0=BB=D1=8F=20=D0=9F=D1=80=D0=BE=D0=B4=D1=83=D0=BA=D1=82?= =?UTF-8?q?=20selectProduct,=20=D0=BA=D0=BE=D1=82=D1=80=D0=BE=D0=B5=20?= =?UTF-8?q?=D0=B2=D0=BB=D0=B8=D1=8F=D0=B5=D1=82=20=D0=BD=D0=B0=20=D0=BF?= =?UTF-8?q?=D0=BE=D0=BB=D0=B5=20=D0=9F=D0=9B=20=D0=91=D0=A3=20cbxLeaseObje?= =?UTF-8?q?ctUsed:=20=D0=95=D1=81=D0=BB=D0=B8=20=D0=B2=20=D0=9F=D1=80?= =?UTF-8?q?=D0=BE=D0=B4=D1=83=D0=BA=D1=82=20selectProduct=20=D1=83=D0=BA?= =?UTF-8?q?=D0=B0=D0=B7=D1=8B=D0=B2=D0=B0=D0=B5=D1=82=D1=81=D1=8F=20=D0=B7?= =?UTF-8?q?=D0=B0=D0=BF=D0=B8=D1=81=D1=8C,=20=D1=83=20=D0=BA=D0=BE=D1=82?= =?UTF-8?q?=D0=BE=D1=80=D0=BE=D0=B9=20=D0=9F=D1=80=D0=BE=D0=B4=D0=B0=D0=B6?= =?UTF-8?q?=D0=B0=20=D0=B1=D0=B5=D0=B7=20=D0=9D=D0=94=D0=A1=20evo=5Fsale?= =?UTF-8?q?=5Fwithout=5Fnds=20=3D=20True,=20=D0=98=20=D0=9F=D0=B5=D1=80?= =?UTF-8?q?=D0=B5=D1=81=D1=87=D0=B5=D1=82=20=D0=B1=D0=B5=D0=B7=20=D0=BF?= =?UTF-8?q?=D0=B5=D1=80=D0=B5=D1=81=D0=BC=D0=BE=D1=82=D1=80=D0=B0=20recalc?= =?UTF-8?q?WthtRevision=20=3D=20False,?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit то ПЛ БУ cbxLeaseObjectUsed = true иначе ПЛ БУ cbxLeaseObjectUsed не меняется --- apps/web/process/used-pl/reactions.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/web/process/used-pl/reactions.ts b/apps/web/process/used-pl/reactions.ts index 71bd82d..f64427e 100644 --- a/apps/web/process/used-pl/reactions.ts +++ b/apps/web/process/used-pl/reactions.ts @@ -103,11 +103,17 @@ export function common({ store, apolloClient }: ProcessContext) { }); if (evo_baseproduct?.evo_sale_without_nds) { - $calculation.element('cbxLeaseObjectUsed').setValue(true); $calculation.element('tbxSupplierDiscountRub').resetValue(); $calculation.element('tbxSupplierDiscountPerc').resetValue(); $calculation.element('selectImportProgram').resetValue(); } + + if ( + evo_baseproduct?.evo_sale_without_nds && + $calculation.element('cbxRecalcWithRevision').getValue() === false + ) { + $calculation.element('cbxLeaseObjectUsed').setValue(true); + } } );