06.11.2014 09:06
akonev
 
потом ищи "-- Закоментированная возможность печати налогов и скидок сразу после товарной позиции в теле чека"

там две части кода
печать налогов:
Код:
--        if compresed_print == false then
--           local taxes = ukm.taxes(__item.receipt);
--            taxes:create(__item);
--            for i=0, taxes.itemtaxes:size()-1 do
--                local tax = taxes.itemtaxes:at(i);
--                text = text .. ukm.adjustment(" " .. tax.name .. ", " .. tax.percent, tostring(tax.amount) .. " ", width, " ") .. "\n";
--            end
--        else
--            for key, tax in pairs(__item.tax_item) do
--                text = text .. ukm.adjustment(" " .. tax.name .. ", " .. tax.percent, tostring(tax.amount) .. " ", width, " ") .. "\n";
--            end
--        end

печать скидок:
Код:
--        if compresed_print == false then
--           for i=0,__item.discounts:size()-1 do
--             local discount = __item.discounts:at(i);
--               if discount.increment:sign() ~= 0 then
--                 if discount.increment:sign() == 1 then
--                    text = text .. ukm.adjustment(" " .. discount.receiptdiscount.name, tostring(discount.increment) .. " ", width, " ") .. "\n";
--                 else
--                    text = text .. ukm.adjustment(" " .. discount.receiptdiscount.name, tostring(discount.increment*ukm.currency(-1)) .. " ", width, " ") .. "\n";
--                 end
--               end
--           end
--        else
--           for key, discount in pairs(__item.discounts) do
--                if discount.increment:sign() ~= 0 then
--                   if discount.increment:sign() == 1 then
--                      text = text .. ukm.adjustment(" " .. discount.name, tostring(discount.increment) .. " ", width, " ") .. "\n";
--                   else
--                      text = text .. ukm.adjustment(" " .. discount.name, tostring(discount.increment*ukm.currency(-1)) .. " ", width, " ") .. "\n";
--                   end
--                end
--           end
--        end

тебе, понятно, надо раскомментировать только вторую часть.