<h1>{{@page_data.title}}<br>{{@line.product_title?'"'.@line.product_title.'"':''}}</h1>
<check if="{{@scales_settings['active']==1}}">
<p align="center">Положите товар на весы или укажите необходимое кол-во вручную</p>
<script type="text/javascript">
var weight_request;
get_weight({{@GET.line_id}});
</script>
</check>
<form name="receipts_change_count_form" action="/receipts/change_count" method="POST">
	<input type="hidden" name="line_id" value="{{@GET.line_id}}">
	<div class="inline">
		<input type="text" name="count" inputmode="numeric" min="0" step="0.001" class="line_count" autocomplete="off" placeholder="Кол-во" value="{{number_format(@line.count, 3, '.', '')}}" min="0">
		<div class="virtual_keyboard">
			
			<input type="button" class="virtual_key" value='7' for='line_count'>
			<input type="button" class="virtual_key" value='8' for='line_count'>
			<input type="button" class="virtual_key" value='9' for='line_count'>
			<br>
			<input type="button" class="virtual_key" value='4' for='line_count'>
			<input type="button" class="virtual_key" value='5' for='line_count'>
			<input type="button" class="virtual_key" value='6' for='line_count'>
			<br>
			<input type="button" class="virtual_key" value='1' for='line_count'>
			<input type="button" class="virtual_key" value='2' for='line_count'>
			<input type="button" class="virtual_key" value='3' for='line_count'>
			<br>
			<input type="button" class="virtual_key" value='0' for='line_count'>
			<input type="button" class="virtual_key" value='.' for='line_count'>
			<button type="button" class="virtual_key_bks" for='line_count'>
				<i class="fas fa-long-arrow-alt-left"></i>
			</button>
			<br>
			<input type="submit" value="Готово">
		</div>
	</div>
</form>
<script type="text/javascript">
$('input[name="count"]').focus();
$('input[name="count"]').select();
//$('.close_button', $("form[name='receipts_change_count_form']").closest('.popup')).hide();
</script>
