{~@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.slip|raw}}
КАССОВЫЙ ЧЕК
{{@type[@receipt.type]}}
Тип коррекции | {{@receipt.correct_type==0?'Самостоятельно':'По предписанию'}} | ||||
Осн. коррекции | {{@receipt.osn_number}} от {{date('d.m.Y', strtotime(@receipt.osn_date))}} | ||||
Дата перв-го рассчета | {{date('d.m.Y', strtotime(@receipt.osn_date))}} | ||||
{{@line.product_title}} | {{numberformat(@line.count, 3, '.', '')}} | X | {~if(@line.loyalty) @line.discount=0~} {~@price=@line.price+(@line.price*(@line.vat/100))*max(0, @line.vat_type)~} {~@price=round(@price, 2)~} {~@d_sum=@price*(@line.discount/100)~} {~@price-=@d_sum~} {~if(@line.line_discount):~} {~@price0=@line.price0+(@line.price0*(@line.vat/100))*max(0, @line.vat_type)~} {~@d_sum=@price0*(@line.line_discount/100)~} {~endif~} {{number_format(@price, 2, '.', '')}} {~@discount_sum+=@d_sum*@line.count~} | ≡ | {~@total=@price*@line.count~} {{number_format(@total, 2, '.', '')}} |
НДС | {{number_format(@line.vat, 2, '.', '')}}% | ≡ | {~@vp=((@line.price/(100+@line.vat*abs(min(0, @line.vat_type))))*@line.vat)*@line.count~} {~@vp=round(@vp, 2)~} {{number_format(@vp, 2, '.', '')}} {~@vat[@line.vat]+=@vp~} | ||
Всего | ≡ | {{number_format(abs(@receipt.sum), 2, '.', '')}} | |||
ИТОГ | ≡ | {{number_format(abs(@receipt.sum), 2, '.', '')}} |
ОПЛАТА
{~@cash=0~}
{{@paymentmethods[@method.method]['title']}}
- {{@epays[@receipt.epay]['title']}} |
≡ | {{number_format(abs(@method.sum), 2, '.', '')}} {~@cash+=abs(@method.sum)~} |
ПОЛУЧЕНО | ≡ | {~@cash=round(@cash, 2)~} {{number_format(@cash, 2, '.', '')}} |
СДАЧА | ≡ | {~@receipt.sum=round(@receipt.sum, 2)~} {{number_format(@cash-abs(@receipt.sum), 2, '.', '')}} |
СНО | {~@sno=array('01'=>'ОСН','02'=>'УСН','04'=>'УСН','08'=>'ЕНВД','10'=>'ЕСХН ','20'=>'Патент')~} {{@sno[@fr['sno']]}} |
НДС |
|
Кассир {{@receipt.short_name}}
Смена {{@receipt.changes}}
{{mb_strpos(@receipt.client, '@')>0?'Адрес':'Телефон'}} покупателя | {{@receipt.client}} |
Позиций | {{is_array(@receipt.receiptlines)?count(@receipt.receiptlines):0}} |
Скидка | {{number_format(@discount_sum, 2, '.', '')}} |
Оплата баллами | {{number_format(@receipt.bonus_pay, 2, '.', '')}} |
Зачисленно баллов | {{number_format(@receipt.bonus_add, 2, '.', '')}} |
Чек № | {{@receipt.id}} |
{{date('d-m-Y H:i', @receipt.time)}}