Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lang/master/tpl/contractadmin/orders.mtt
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,18 @@
<span style="color:#AAA">::_("Canceled")::</span>
::else::
::if(o.product.multiWeight && o.product.variablePrice)::
::set effectiveQt = o.productQt::
::if effectiveQt == null::::set effectiveQt = 1::::end::
<div class="orderQtInput hidden">
<input type="text" id="::o.id::_qt" value="::formatNum(o.quantity * o.productQt)::"
<input type="text" id="::o.id::_qt" value="::formatNum(o.quantity * effectiveQt)::"
title="::unit(o.productUnit,o.quantity>0):: ::o.productName:: ::basket._user.getName()::"
style="width:70%;"
onchange="this.style.color = 'initial'"
onblur="_Camap.updateUserOrderQuantity(::basket.userId::,::multiDistribId::,::distribution._catalog.id::,::o.id::,::basket.num::,::o.productQt::,this.value,qt_::o.id::_lastVal);qt_::o.id::_lastVal = this.value;"
/>&nbsp;::unit(o.productUnit,o.quantity>0)::
</div>
<script>
let qt_::o.id::_lastVal = '::formatNum(o.quantity * o.productQt)::';
let qt_::o.id::_lastVal = '::formatNum(o.quantity * effectiveQt)::';
document.getElementById("::o.id::_qt").addEventListener("keydown", blurOnEnter);
</script>
::end::
Expand Down
Loading