From de665f9659dc858456e93e45223734a7c3b69be1 Mon Sep 17 00:00:00 2001 From: Zdenek Jonak Date: Wed, 29 Mar 2017 20:20:17 +0200 Subject: [PATCH] EET mandatory fields added to bill. closes #291 --- shop/receiptgenerator.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/shop/receiptgenerator.cpp b/shop/receiptgenerator.cpp index 8bab43b..abb6153 100644 --- a/shop/receiptgenerator.cpp +++ b/shop/receiptgenerator.cpp @@ -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()));