From 513faaf9a4d137ea22f447a5f49c2377651cf5c0 Mon Sep 17 00:00:00 2001 From: Mikhail Chusavitin Date: Fri, 24 Jul 2026 17:11:55 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=BA=D1=80=D0=B0=D1=81=D0=BD=D1=8B?= =?UTF-8?q?=D0=B9=20=D0=B8=D1=82=D0=BE=D0=B3=20=D0=BD=D0=B0=20=D0=B2=D0=BA?= =?UTF-8?q?=D0=BB=D0=B0=D0=B4=D0=BA=D0=B5=20=C2=AB=D0=A6=D0=B5=D0=BD=D0=BE?= =?UTF-8?q?=D0=BE=D0=B1=D1=80=D0=B0=D0=B7=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=C2=BB=20=D1=82=D0=BE=D0=BB=D1=8C=D0=BA=D0=BE=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B8=20=D0=BF=D0=BE=D0=B4=D1=81=D1=82=D0=B0=D0=BD=D0=BE?= =?UTF-8?q?=D0=B2=D0=BA=D0=B5=20=D0=B8=D0=B7=20world?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Красный цвет суммы означает, что она частично посчитана по ценам-заглушкам из прайслиста world. Если подстановок не было, сумма показывается обычным цветом; попап с пояснением остаётся в обоих случаях. Co-Authored-By: Claude Opus 4.8 --- web/templates/index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/templates/index.html b/web/templates/index.html index e74288c..9da15eb 100644 --- a/web/templates/index.html +++ b/web/templates/index.html @@ -4859,7 +4859,9 @@ function _setPricingTotal(elId, has, total, worldTotal, count, totalRows) { parts.push(`Цены есть не для всех позиций: ${count} из ${totalRows}`); } - el.className = `${el.className} text-red-600 pricing-total-tip`.trim(); + // Red is reserved for a sum that actually leans on world stand-in prices. + el.className = `${el.className} ${share > 0 ? 'text-red-600' : ''} pricing-total-tip` + .replace(/\s+/g, ' ').trim(); el.innerHTML = `${formatCurrency(total)}${parts.join('
')}
`; }