{~@n=2~} {{@n>=3 && @n%3==0?'
':''}} {~@n++~}

{~@price=@line.price+(@line.price*(@line.vat/100))*max(0, @line.vat_type)~} {~@price=round(@price, 2)~} {~@count+=@line.count~} {{number_format(@price, 2, '.', '').' x '.number_format(@line.count, 3, '.', '')}}
≡ {~@total=@price*@line.count~} {~@line.loyalty>0?@sum0+=@total:@sum+=@total~} {{number_format(@total, 2, '.', '')}}

{{@line.product_title}}
{{@line.description}}

{~@discount=(@sum*(@receipt['discount']/100))~} Строк: {{is_array(@receiptlines)?count(@receiptlines):0}} Оплачено баллами: {{@receipt['bonus_pay']>0?number_format(@receipt['bonus_pay'], 2, '.', ''):'0.00'}} Скидка: {{@discount>0?number_format(@discount, 2, '.', ''):'0.00'}} Итого: {{number_format(@sum-@discount+@sum0-@receipt['bonus_pay'], 2, '.', '')}}





{~@buttons=1~} {~if(@kitchen_sets['active']==1)@buttons+=1;~} {~if(@bar_sets['active']==1)@buttons+=1;~} {~@w=267~} {~if(@buttons>1)@w=number_format((@w-(5*@buttons+5))/@buttons, 2, '.', '')~}