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
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
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