From d4b0ae503feed43a133fa71d3ba1d32ec4ca3891 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Tue, 14 May 2024 10:43:03 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=9D=D0=B5=D0=BB=D1=8C=D0=B7=D1=8F=20?= =?UTF-8?q?=D1=83=D0=B2=D0=B5=D0=BB=D0=B8=D1=87=D0=B8=D0=B2=D0=B0=D1=82?= =?UTF-8?q?=D1=8C=20=D0=B1=D0=BE=D0=BD=D1=83=D1=81=20=D0=9C=D0=9F=D0=9B=20?= =?UTF-8?q?=D0=BF=D0=BE=D1=81=D0=BB=D0=B5=20=D1=80=D0=B0=D1=81=D1=81=D0=BC?= =?UTF-8?q?=D0=BE=D1=82=D1=80=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BF=D1=80=D0=B5?= =?UTF-8?q?=D0=B4=D0=BB=D0=BE=D0=B6=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BD=D0=B0?= =?UTF-8?q?=20=D0=9A=D0=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/server/routers/calculate/lib/post-validation.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/web/server/routers/calculate/lib/post-validation.ts b/apps/web/server/routers/calculate/lib/post-validation.ts index 985b5f4..9e96e3d 100644 --- a/apps/web/server/routers/calculate/lib/post-validation.ts +++ b/apps/web/server/routers/calculate/lib/post-validation.ts @@ -36,10 +36,8 @@ export async function validateResults({ }); if ( - Math.abs(npvBonusExpensesColumn.values.at(3) || 0) / (1 + preparedValues.salaryRate) - - ((accept_quote?.evo_leasing_bonus_summ || 0) + - (accept_quote?.evo_card_bonus_summ || 0) + - (accept_quote?.evo_nsib_bonus_summ || 0)) > + Math.abs(npvBonusExpensesColumn.values.at(2) || 0) / (1 + preparedValues.salaryRate) - + (accept_quote?.evo_leasing_bonus_summ || 0) > 100 ) { return {