|
{~@discount=(@sum*(@receipt['discount']/100))~}
Строк: {{is_array(@receiptlines)?count(@receiptlines):0}}
Оплачено баллами: {{@receipt['bonus_pay']>0?number_format(@receipt['bonus_pay'], 2, '.', ''):'0.00'}}
Скидка: {{@sum_discount+@sum_discount_line>0?number_format(@sum_discount+@sum_discount_line, 2, '.', ''):'0.00'}}
Итого: {{@total_sum=number_format(@sum-@sum_discount+@sum0-@receipt['bonus_pay'], 2, '.', '')}}
|
|
|
{~@buttons=0~}
{~if(@pre_sets['active']==1 || @kkm_sets['active']==1)@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, '.', '')~}
|