fix: накидка по строке в «Цена продажи» не пересчитывала цену

Инпут накидки не получал data-row-key, поэтому onSaleRowMarkupInput писал
значение в saleRowMarkups[undefined], а recomputeSalePrices() читал по
настоящему ключу строки — значение никогда не применялось. Цена теперь
пересчитывается мгновенно при вводе, без перезагрузки.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Mikhail Chusavitin
2026-09-15 18:42:29 +03:00
co-authored by Claude Sonnet 5
parent 497aee1e71
commit 37def17c5c
+1 -1
View File
@@ -4785,7 +4785,7 @@ async function renderPricingTab() {
<td class="px-2 py-0.5 text-right text-xs ${borderTop}">${r.qty}</td> <td class="px-2 py-0.5 text-right text-xs ${borderTop}">${r.qty}</td>
<td class="px-2 py-0.5 text-right ${borderTop}"> <td class="px-2 py-0.5 text-right ${borderTop}">
<input type="text" inputmode="decimal" class="pricing-row-markup w-16 px-1 py-0.5 border rounded text-right text-xs" <input type="text" inputmode="decimal" class="pricing-row-markup w-16 px-1 py-0.5 border rounded text-right text-xs"
value="${formatMarkupInput(markupPct)}" value="${formatMarkupInput(markupPct)}" data-row-key="${rowKey}"
placeholder="0" oninput="onSaleRowMarkupInput(this)"> placeholder="0" oninput="onSaleRowMarkupInput(this)">
</td> </td>
<td class="px-2 py-0.5 text-right text-xs pricing-sale-price ${borderTop} ${worldCls(r.estWorld)}">—${worldMark(r.estWorld)}</td> <td class="px-2 py-0.5 text-right text-xs pricing-sale-price ${borderTop} ${worldCls(r.estWorld)}">—${worldMark(r.estWorld)}</td>