{~@type=array(@receipt_sales=>'Продажа', @receipt_return=>'Возврат', @receipt_correct_sales=>'Коррекция/Продажа', @receipt_correct_return=>'Коррекция/Возврат', @receipt_cashin=>'Внесение', @receipt_cashout=>'Изъятие', @receipt_change_open=>'Открытие смены', @receipt_change_close=>'Закрытие смены', @receipt_chpok=>'Вскрытие тары', @receipt_keg_connection=>'Подключение кега', @receipt_writeoff=>'Списание')~}
<div class="content2 receipts_list receipts_search_result">
	<div class="reload">
		<table class="work_table big_table">
			<tr>
				<th width="100">
					Чек
				</th>
				<th>
					Номенклатура
				</th>
				<th class="receipts_search_buttons" width="50">
				</th>
			</tr>
			<repeat group="{{@receipts}}" value="{{@receipt}}">
			<tr>
				<td align="left">
					<p class="small">№ {{@receipt.id}} Смена {{@receipt.changes}}</p>
					<check if="{{@receipt.time>0}}">
					<p class="small">Создан {{date('d.m.Y H:i:s', @receipt.time)}}</p>
					</check>
					<p class="small">{{@type[@receipt.type]}}</p>
					<check if="{{@base_settings['cafe_mode']>0}}">
					<p class="small">Зал: {{@receipt.room_title}}
						<br>
						Стол: {{@receipt.table_title}}
					</p>
					</check>
					<p class="small">
						{{@receipt.short_name}}
					</p>
				</td>
				<td class="receipt_body_td">
					<div class="receipt_body">
						<check if="{{@receipt.description!=''}}">
						<p class="small">{{@receipt.description}}</p>
						</check>
						<check if="{{@receipt.receiptlines}}">
							<repeat group="{{@receipt.receiptlines}}" value="{{@line}}">
								{~@price=@line.price+(@line.price*(@line.vat/100))*max(0, @line.vat_type)~}
								{~@price=round(@price, 2)~}
								{~if(@line.loyalty==0)@d_sum=round(@price*(@line.discount/100), 2); else @d_sum=0;~}
								{~@price-=@d_sum~}
						<p class="small">{{@line.product_title}} {{numberformat(@line.count, 3, '.', '')}}X{{number_format(@price, 2, '.', '')}}&equiv;{{number_format(@price*@line.count, 2, '.', '')}}</p>
							</repeat>
						</check>
					</div>
					<div class="receipt_body_summ">{{number_format(abs(@receipt.sum), 2, '.', '')}}</div>
				</td>
				<td align="right" class="receipts_search_buttons">
					<button class="show_window" href="/messages/continue?uri={{urlencode("/receipts/remove?id=".@receipt.id."&action=clear")}}" title="Очистить">
						<i class="fas fa-receipt"></i>
						<br>
						<div class="small">Очистить</div>
					</button>
					<br>
					<button class="show_window" href="/messages/continue?uri={{urlencode("/receipts/remove?id=".@receipt.id."&action=close")}}" title="Закрыть">
						<i class="fas fa-money-bill"></i>
						<br>
						<div class="small">Закрыть</div>
					</button>
				</td>
			</tr>
			</repeat>
		</table>
	</div>
</div>