fix: красный итог на вкладке «Ценообразование» только при подстановке из world
Красный цвет суммы означает, что она частично посчитана по ценам-заглушкам из прайслиста world. Если подстановок не было, сумма показывается обычным цветом; попап с пояснением остаётся в обоих случаях. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
0cd747c4b6
commit
513faaf9a4
@@ -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)}<span class="pricing-total-tip__body">${parts.join('<br>')}</span>`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user