<div id="error_page">
	<h1>{{@page_data.title}}</h1>
	<check if="{{@error_type=='fr'}}">
	<p align="ceter" class="false">Ошибка ФН</p>	
	</check>
	<check if="{{@error_type=='chz'}}">
	<p align="ceter" class="false">Ошибка Честного Знака</p>	
	</check>
	<p align="ceter" class="false">{{@txt|raw}}</p>
	<check if="{{@base_settings.check_mark==1}}">
		<true>
	<form name="add_line_form" action="/receipts/add_line" method="POST">
		<check if="{{@POST.combo_id}}">
		<input type="hidden" name="combo_id" value="{{@POST.combo_id}}">
		<input type="hidden" name="combo_step" value="{{@POST.combo_step}}">
			<repeat group="{{@POST.item}}" key="{{@step}}" value="{{@item}}">
		<input type="hidden" name="item[{{@step}}][product_id]" value="{{@item['product_id']}}">
		<input type="hidden" name="item[{{@step}}][price]" value="{{@item['price']}}">
				<repeat group="{{@item.mark_data}}" key="{{@key}}" value="{{@mark_data}}">
		<input type="hidden" name="item[{{@step}}][mark_data][{{@key}}]" value="{{@mark_data}}">
				</repeat>
			</repeat>
		</check>
		<input type="hidden" name="product_id" value="{{@REQUEST.product_id}}">
		<input type="hidden" name="count" value="{{@REQUEST.count}}">
		<input type="hidden" name="mark[]" value="{{@mark_code}}">
		<input type="hidden" name="not_check_mark" value="1">
		<input type="hidden" name="not_check_current_volume" value="{{@REQUEST.not_check_current_volume}}">
		<input type="hidden" name="not_check_expiration_date" value="{{@REQUEST.not_check_expiration_date}}">
		<input type="hidden" name="not_check_requered_amount" value="{{@REQUEST.not_check_requered_amount}}">
		<input type="hidden" name="mark_reqId" value="{{@mark_res['reqId']??''}}">
		<input type="hidden" name="reqTimestamp" value="{{@mark_res['reqTimestamp']??0}}">
		<input type="hidden" name="smp" value="{{@mark_res['result']['smp']??0}}">
		<input type="hidden" name="mrp" value="{{@mark_res['result']['mrp']??0}}">
		<input type="hidden" name="set_price" value="{{@mark_res['result']['set_price']??0}}">
		<p align="center">
			<input type="button" class="close" value="Отменить">
			<input type="submit" value="Пропустить">
		</p>
	</form>
		</true>
		<false>
	<p align="center">
		<input type="button" class="close" value="Отменить">
	</p>
		</false>
	</check>
</div>
<script type="text/javascript">
$('form[name="add_marking_form"] .marking_input').val('');
</script>
<script type="text/javascript">
false_alarm();
</script>
<check if="{{@chz_error}}">
<script>
show_window('error', '{{@chz_error|raw}}');
</script>
</check>