|
{~@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, '.', '')~}
|