Подскажите что я делаю не так .
documents.lua
function banner_text(__printer)
local text = "";
local width = __printer:get_default_width();
-- text = text .. ukm.rightpad("*",width,"*") .. "\n";
-- text = text .. hw_command_cut;
text = text .. ukm.rightpad("*",width,"*") .. "\n";
-- text = text .. "*" .. ukm.center("**********", width-2," ") .. "*" .. "\n";
-- text = text .. "*" .. ukm.center("**********", width-2," ") .. "*" .. "\n";
text = text .. "*" .. ukm.kkm_serial_number() .. "*" .. "\n";
text = text .. "*" .. ukm.center(ukm.str_upper(ukm.left( ukm.shop_inn() .. " " .. ukm.shop_juristic_person(), width-2)) ,width-2," ") .. "*" .. "\n";
text = text .. "*" .. ukm.center(ukm.left( ukm.shop_address(), width-2),width-2," ") .. "*" .. "\n";
text = text .. "*" .. ukm.center("Хорошего дня", width-2," ") .. "*" .. "\n";
text = text .. ukm.rightpad("*",width,"*") .. "\n";
return text;
end
(0.37Мб)