EET mandatory fields added to bill. closes #291

master
Zdenek Jonak 8 years ago
parent b0d67cf93a
commit de665f9659

@ -128,6 +128,8 @@ QByteArray ReceiptGenerator::generate()
out.append(prepareString("ID provozovny: " + shopSettings->eetShopId()));
out.append("\x0a");
out.append(prepareString("ID pokladny: " + shopSettings->eetRegisterId()));
out.append("\x0a");
out.append(prepareString("Cislo uctenky: " + m_voucher->numSer()));
out.append("\x0a");
out.append("\x1b\x21");
@ -192,8 +194,13 @@ QByteArray ReceiptGenerator::generate()
out.append("\x1b\x21");
out.append((char)0);
out.append("\x0a");
out.append("Datum:");
out.append(prepareString(m_voucher->payDateTime().toString()));
out.append("\x0a");
if (!m_voucher->eetBkp().isEmpty())
{
out.append("Rezim EET: bezny");
out.append("\x0a");
out.append("BKP:");
out.append("\x0a");
out.append(prepareString(m_voucher->eetBkp()));

Loading…
Cancel
Save