Compare commits
11 Commits
5b77337b3f
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
| e3a5e44c33 | |||
| 12dd6ddba0 | |||
| de2bab90de | |||
| 285fc8e80f | |||
| 93eb98c10a | |||
| e958c86eb7 | |||
| 8b132c6c51 | |||
| 46b2098ffc | |||
| 7082648122 | |||
| e02595ba0e | |||
| 2597f79d2d |
@@ -14,6 +14,7 @@ find_package(Qt6 COMPONENTS
|
|||||||
Core
|
Core
|
||||||
Gui
|
Gui
|
||||||
Widgets
|
Widgets
|
||||||
|
Qml
|
||||||
REQUIRED)
|
REQUIRED)
|
||||||
|
|
||||||
add_library(addressbook SHARED
|
add_library(addressbook SHARED
|
||||||
@@ -42,6 +43,7 @@ target_link_libraries(addressbook
|
|||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
Qt::Widgets
|
Qt::Widgets
|
||||||
|
Qt::Qml
|
||||||
qdecimal
|
qdecimal
|
||||||
decnumber
|
decnumber
|
||||||
QxOrm
|
QxOrm
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ find_package(Qt6 COMPONENTS
|
|||||||
Gui
|
Gui
|
||||||
Widgets
|
Widgets
|
||||||
Sql
|
Sql
|
||||||
|
Qml
|
||||||
REQUIRED)
|
REQUIRED)
|
||||||
|
|
||||||
include_directories(../core)
|
include_directories(../core)
|
||||||
@@ -27,12 +28,20 @@ add_executable(prodejna
|
|||||||
logindialog.ui
|
logindialog.ui
|
||||||
mainwindow.cpp
|
mainwindow.cpp
|
||||||
mainwindow.h
|
mainwindow.h
|
||||||
mainwindow.ui)
|
mainwindow.ui
|
||||||
|
shop.rc
|
||||||
|
)
|
||||||
|
|
||||||
target_link_libraries(prodejna
|
target_link_libraries(prodejna
|
||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
Qt::Widgets
|
Qt::Widgets
|
||||||
Qt::Sql
|
Qt::Sql
|
||||||
|
Qt::Qml
|
||||||
core
|
core
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
if(CMAKE_BUILD_TYPE STREQUAL "Release")
|
||||||
|
set_property(TARGET prodejna PROPERTY WIN32_EXECUTABLE true)
|
||||||
|
endif()
|
||||||
|
|||||||
@@ -256,5 +256,5 @@ void MainWindow::on_actionAbout_Qt_triggered()
|
|||||||
|
|
||||||
void MainWindow::on_actionAbout_triggered()
|
void MainWindow::on_actionAbout_triggered()
|
||||||
{
|
{
|
||||||
QMessageBox::about(this, tr("About prodejna"), tr("Modular cash register software under GPL license.\n(C) 2015 - 2017 Josef Rokos, Zdenek Jonák"));
|
QMessageBox::about(this, tr("About prodejna"), tr("Modular cash register software under GPL license.\n(C) 2015 - 2023 Josef Rokos, Zdenek Jonák"));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -117,9 +117,9 @@
|
|||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0">
|
<item row="2" column="0">
|
||||||
<widget class="QLabel" name="label_2">
|
<widget class="QLabel" name="labelVersion">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Prodejna 2.0</string>
|
<string>Prodejna 3.0</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="alignment">
|
<property name="alignment">
|
||||||
<set>Qt::AlignCenter</set>
|
<set>Qt::AlignCenter</set>
|
||||||
@@ -137,7 +137,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>1000</width>
|
<width>1000</width>
|
||||||
<height>42</height>
|
<height>21</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QMenu" name="menuFile">
|
<widget class="QMenu" name="menuFile">
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ find_package(Qt6 COMPONENTS
|
|||||||
Core
|
Core
|
||||||
Gui
|
Gui
|
||||||
Widgets
|
Widgets
|
||||||
|
Qml
|
||||||
REQUIRED)
|
REQUIRED)
|
||||||
|
|
||||||
add_library(camp SHARED
|
add_library(camp SHARED
|
||||||
@@ -70,6 +71,7 @@ target_link_libraries(camp
|
|||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
Qt::Widgets
|
Qt::Widgets
|
||||||
|
Qt::Qml
|
||||||
qdecimal
|
qdecimal
|
||||||
decnumber
|
decnumber
|
||||||
QxOrm
|
QxOrm
|
||||||
|
|||||||
@@ -6,10 +6,6 @@
|
|||||||
#include "campseller.h"
|
#include "campseller.h"
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
|
||||||
#ifdef _WIN32
|
|
||||||
double round(double value) { return value < 0 ? -std::floor(0.5 - value) : std::floor(0.5 + value); }
|
|
||||||
#endif
|
|
||||||
|
|
||||||
CampService::CampService()
|
CampService::CampService()
|
||||||
{
|
{
|
||||||
m_pluginId = "CAMP";
|
m_pluginId = "CAMP";
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ find_package(Qt6 COMPONENTS
|
|||||||
Core
|
Core
|
||||||
Gui
|
Gui
|
||||||
Widgets
|
Widgets
|
||||||
|
Qml
|
||||||
REQUIRED)
|
REQUIRED)
|
||||||
|
|
||||||
add_library(commodity SHARED
|
add_library(commodity SHARED
|
||||||
@@ -51,6 +52,7 @@ target_link_libraries(commodity
|
|||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
Qt::Widgets
|
Qt::Widgets
|
||||||
|
Qt::Qml
|
||||||
qdecimal
|
qdecimal
|
||||||
decnumber
|
decnumber
|
||||||
QxOrm
|
QxOrm
|
||||||
|
|||||||
@@ -11,7 +11,6 @@
|
|||||||
|
|
||||||
#include "../commodity_global.h"
|
#include "../commodity_global.h"
|
||||||
|
|
||||||
#pragma db object
|
|
||||||
class CommodityData : public IShopItem
|
class CommodityData : public IShopItem
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|||||||
@@ -95,6 +95,10 @@ void Role::clearPermissions()
|
|||||||
m_listPermissions.clear();
|
m_listPermissions.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QStringList Role::eagerLoad() {
|
||||||
|
return {"object_id_fk", "value_fk"};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -46,6 +46,8 @@ public:
|
|||||||
void addPermission(QSharedPointer<Permission> perm);
|
void addPermission(QSharedPointer<Permission> perm);
|
||||||
void clearPermissions();
|
void clearPermissions();
|
||||||
|
|
||||||
|
Q_INVOKABLE QStringList eagerLoad();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
long m_id;
|
long m_id;
|
||||||
QString m_name;
|
QString m_name;
|
||||||
|
|||||||
@@ -112,6 +112,10 @@ void User::setIsAdmin(bool isAdmin)
|
|||||||
m_isAdmin = isAdmin;
|
m_isAdmin = isAdmin;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QStringList User::eagerLoad() {
|
||||||
|
return {"object_id_fk"};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ public:
|
|||||||
|
|
||||||
void clearRoles();
|
void clearRoles();
|
||||||
|
|
||||||
|
Q_INVOKABLE QStringList eagerLoad();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
long m_id;
|
long m_id;
|
||||||
|
|||||||
+10
-2
@@ -15,7 +15,11 @@
|
|||||||
|
|
||||||
#ifndef PLUGIN_ROOT
|
#ifndef PLUGIN_ROOT
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#define PLUGIN_ROOT "/../../plugins"
|
#ifdef QT_NO_DEBUG
|
||||||
|
#define PLUGIN_ROOT "/plugins"
|
||||||
|
#else
|
||||||
|
#define PLUGIN_ROOT "/../../plugins"
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#define PLUGIN_ROOT "/../plugins"
|
#define PLUGIN_ROOT "/../plugins"
|
||||||
#endif
|
#endif
|
||||||
@@ -23,7 +27,11 @@
|
|||||||
|
|
||||||
#ifndef REPORT_ROOT
|
#ifndef REPORT_ROOT
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#define REPORT_ROOT "/../../reports"
|
#ifdef QT_NO_DEBUG
|
||||||
|
#define REPORT_ROOT "/reports"
|
||||||
|
#else
|
||||||
|
#define REPORT_ROOT "/../../reports"
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#define REPORT_ROOT "/../reports"
|
#define REPORT_ROOT "/../reports"
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1,21 +1,5 @@
|
|||||||
#include "exprevaluator.h"
|
#include "exprevaluator.h"
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
ExprEvaluator::ExprEvaluator()
|
|
||||||
{
|
|
||||||
m_operations["=="] = [](QVariant left, QVariant right) { return left == right; };
|
|
||||||
m_operations["!="] = [](QVariant left, QVariant right) { return left != right; };
|
|
||||||
m_operations["<"] = [](QVariant left, QVariant right) { return left < right; };
|
|
||||||
m_operations["<="] = [](QVariant left, QVariant right) { return left <= right; };
|
|
||||||
m_operations[">"] = [](QVariant left, QVariant right) { return left > right; };
|
|
||||||
m_operations[">="] = [](QVariant left, QVariant right) { return left >= right; };
|
|
||||||
m_operations["%"] = [](QVariant left, QVariant right) { return left.toString().contains(right.toString()); };
|
|
||||||
|
|
||||||
m_operations["||"] = [](QVariant left, QVariant right) { return left.toBool() || right.toBool(); };
|
|
||||||
m_operations["&&"] = [](QVariant left, QVariant right) { return left.toBool() && right.toBool(); };
|
|
||||||
m_caseSensitive = false;
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
const QMap<QString, std::function<bool(QVariant, QVariant)> > ExprEvaluator::m_operations = {
|
const QMap<QString, std::function<bool(QVariant, QVariant)> > ExprEvaluator::m_operations = {
|
||||||
{ "==", [](QVariant left, QVariant right) { return left == right; }},
|
{ "==", [](QVariant left, QVariant right) { return left == right; }},
|
||||||
{ "!=", [](QVariant left, QVariant right) { return left != right; }},
|
{ "!=", [](QVariant left, QVariant right) { return left != right; }},
|
||||||
@@ -35,13 +19,6 @@ const QMap<QString, std::function<bool(QVariant, QVariant)> > ExprEvaluator::m_o
|
|||||||
{ "&&", [](QVariant left, QVariant right) { return left.toBool() && right.toBool(); }}
|
{ "&&", [](QVariant left, QVariant right) { return left.toBool() && right.toBool(); }}
|
||||||
};
|
};
|
||||||
|
|
||||||
ExprEvaluator::ExprEvaluator()
|
|
||||||
{
|
|
||||||
m_caseSensitive = false;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
bool ExprEvaluator::evaluate(QObject *object, const QString &exp)
|
bool ExprEvaluator::evaluate(QObject *object, const QString &exp)
|
||||||
{
|
{
|
||||||
if (exp.contains("&&") && exp.contains("||"))
|
if (exp.contains("&&") && exp.contains("||"))
|
||||||
|
|||||||
@@ -11,19 +11,15 @@
|
|||||||
class CORESHARED_EXPORT ExprEvaluator
|
class CORESHARED_EXPORT ExprEvaluator
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ExprEvaluator();
|
ExprEvaluator() = default;
|
||||||
|
|
||||||
bool evaluate(QObject *object, const QString &exp);
|
bool evaluate(QObject *object, const QString &exp);
|
||||||
void setCaseSensitive(bool caseSensitive);
|
void setCaseSensitive(bool caseSensitive);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
#ifdef _MSC_VER
|
|
||||||
QMap<QString, std::function<bool(QVariant, QVariant)> > m_operations;
|
|
||||||
#else
|
|
||||||
static const QMap<QString, std::function<bool(QVariant, QVariant)> > m_operations;
|
static const QMap<QString, std::function<bool(QVariant, QVariant)> > m_operations;
|
||||||
#endif
|
|
||||||
|
|
||||||
bool m_caseSensitive;
|
bool m_caseSensitive{false};
|
||||||
|
|
||||||
bool subEval(const QString &oper, const QString &expresion, QObject *object);
|
bool subEval(const QString &oper, const QString &expresion, QObject *object);
|
||||||
void parseExpr(const QString &exp, QVariant &value, QString &oper, QVariant &condition, QObject *object);
|
void parseExpr(const QString &exp, QVariant &value, QString &oper, QVariant &condition, QObject *object);
|
||||||
|
|||||||
+1
-1
@@ -95,7 +95,7 @@ protected:
|
|||||||
m_translator = new QTranslator();
|
m_translator = new QTranslator();
|
||||||
|
|
||||||
if (!m_translator->load(fileName + QLocale::system().name())) {
|
if (!m_translator->load(fileName + QLocale::system().name())) {
|
||||||
qDebug() << "Cannot load translation";
|
qDebug() << "Cannot load translation " << QLocale::system().name();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,14 @@
|
|||||||
#include "iservice.h"
|
#include "iservice.h"
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
QX_REGISTER_CPP_CORE(IService)
|
||||||
|
|
||||||
|
namespace qx {
|
||||||
|
template<> void register_class(QxClass<IService>&) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
IService::IService(QObject *parent) : QObject(parent)
|
IService::IService(QObject *parent) : QObject(parent)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,4 +33,8 @@ protected:
|
|||||||
QString m_pluginId;
|
QString m_pluginId;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
QX_REGISTER_HPP_CORE(IService, QObject, 0)
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // ISERVICE_H
|
#endif // ISERVICE_H
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#include "permissionservice.h"
|
#include "permissionservice.h"
|
||||||
|
#include "service.h"
|
||||||
#include <QCryptographicHash>
|
#include <QCryptographicHash>
|
||||||
|
|
||||||
QList<QSharedPointer<Permission> > PermissionService::forPlugin(const QString &pluginId)
|
QList<QSharedPointer<Permission> > PermissionService::forPlugin(const QString &pluginId)
|
||||||
@@ -54,6 +55,10 @@ QSharedPointer<User> PermissionService::loadUser(const QString &login)
|
|||||||
auto admin = srvUser.all("login = '" + login + "'");
|
auto admin = srvUser.all("login = '" + login + "'");
|
||||||
|
|
||||||
if (admin.count() == 1) {
|
if (admin.count() == 1) {
|
||||||
|
Service<Role> srvRole;
|
||||||
|
for (auto& role : admin[0]->listRoles()) {
|
||||||
|
srvRole.load(role);
|
||||||
|
}
|
||||||
return admin[0];
|
return admin[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,12 +3,13 @@
|
|||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include "report.h"
|
#include "report.h"
|
||||||
|
#include "../core_global.h"
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
class ReportDialog;
|
class ReportDialog;
|
||||||
}
|
}
|
||||||
|
|
||||||
class ReportDialog : public QDialog
|
class CORESHARED_EXPORT ReportDialog : public QDialog
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -156,7 +156,7 @@ public:
|
|||||||
pSession = ptrSession.data();
|
pSession = ptrSession.data();
|
||||||
}
|
}
|
||||||
|
|
||||||
*pSession += qx::dao::delete_by_id(entity);
|
*pSession += qx::dao::delete_by_id(entity, pSession->database());
|
||||||
|
|
||||||
if (!pSession->isValid()) {
|
if (!pSession->isValid()) {
|
||||||
qDebug() << pSession->firstError().text();
|
qDebug() << pSession->firstError().text();
|
||||||
|
|||||||
Binary file not shown.
@@ -129,83 +129,83 @@
|
|||||||
<translation>Hlavní nastavení</translation>
|
<translation>Hlavní nastavení</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.ui" line="104"/>
|
<location filename="../settings/globalsettingsform.ui" line="107"/>
|
||||||
<source>Web</source>
|
<source>Web</source>
|
||||||
<translation>Web</translation>
|
<translation>Web</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.ui" line="111"/>
|
<location filename="../settings/globalsettingsform.ui" line="114"/>
|
||||||
<source>E-mail</source>
|
<source>E-mail</source>
|
||||||
<translation>E-mail</translation>
|
<translation>E-mail</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.ui" line="118"/>
|
<location filename="../settings/globalsettingsform.ui" line="121"/>
|
||||||
<source>Phone</source>
|
<source>Phone</source>
|
||||||
<translation>Telefon</translation>
|
<translation>Telefon</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.ui" line="166"/>
|
<location filename="../settings/globalsettingsform.ui" line="169"/>
|
||||||
<source>Company info</source>
|
<source>Company info</source>
|
||||||
<translation>Informace o společnosti</translation>
|
<translation>Informace o společnosti</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.ui" line="175"/>
|
<location filename="../settings/globalsettingsform.ui" line="178"/>
|
||||||
<source>IC</source>
|
<source>IC</source>
|
||||||
<translation>IČO</translation>
|
<translation>IČO</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.ui" line="185"/>
|
<location filename="../settings/globalsettingsform.ui" line="188"/>
|
||||||
<source>VAT number</source>
|
<source>VAT number</source>
|
||||||
<translation>DIČ</translation>
|
<translation>DIČ</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.ui" line="195"/>
|
<location filename="../settings/globalsettingsform.ui" line="198"/>
|
||||||
<source>VAT payer</source>
|
<source>VAT payer</source>
|
||||||
<translation>Plátce DPH</translation>
|
<translation>Plátce DPH</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.ui" line="208"/>
|
<location filename="../settings/globalsettingsform.ui" line="211"/>
|
||||||
<source>VAT rates</source>
|
<source>VAT rates</source>
|
||||||
<translation>Sazby DPH</translation>
|
<translation>Sazby DPH</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.ui" line="214"/>
|
<location filename="../settings/globalsettingsform.ui" line="217"/>
|
||||||
<source>High</source>
|
<source>High</source>
|
||||||
<translation>Vysoká</translation>
|
<translation>Vysoká</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.ui" line="228"/>
|
<location filename="../settings/globalsettingsform.ui" line="231"/>
|
||||||
<source>First lower</source>
|
<source>First lower</source>
|
||||||
<translation>První snížená</translation>
|
<translation>První snížená</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.ui" line="242"/>
|
<location filename="../settings/globalsettingsform.ui" line="245"/>
|
||||||
<source>Second lower</source>
|
<source>Second lower</source>
|
||||||
<translation>Druhá snížená</translation>
|
<translation>Druhá snížená</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.ui" line="259"/>
|
<location filename="../settings/globalsettingsform.ui" line="262"/>
|
||||||
<source>Prices with VAT</source>
|
<source>Prices with VAT</source>
|
||||||
<translation>Ceny s DPH</translation>
|
<translation>Ceny s DPH</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.ui" line="270"/>
|
<location filename="../settings/globalsettingsform.ui" line="273"/>
|
||||||
<location filename="../settings/globalsettingsform.ui" line="331"/>
|
<location filename="../settings/globalsettingsform.ui" line="334"/>
|
||||||
<source>Number series</source>
|
<source>Number series</source>
|
||||||
<translation>Číselné řady</translation>
|
<translation>Číselné řady</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.ui" line="299"/>
|
<location filename="../settings/globalsettingsform.ui" line="302"/>
|
||||||
<source>Edit name</source>
|
<source>Edit name</source>
|
||||||
<translation>Upravit název</translation>
|
<translation>Upravit název</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.ui" line="310"/>
|
<location filename="../settings/globalsettingsform.ui" line="313"/>
|
||||||
<source>Season</source>
|
<source>Season</source>
|
||||||
<translation>Sezóna</translation>
|
<translation>Sezóna</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.ui" line="317"/>
|
<location filename="../settings/globalsettingsform.ui" line="320"/>
|
||||||
<source>Create new</source>
|
<source>Create new</source>
|
||||||
<translation>Vytvořit novou</translation>
|
<translation>Vytvořit novou</translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -215,67 +215,75 @@
|
|||||||
<translation>Kontaktní údaje</translation>
|
<translation>Kontaktní údaje</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.ui" line="45"/>
|
<location filename="../settings/globalsettingsform.ui" line="48"/>
|
||||||
<source>Firm Name</source>
|
<source>Firm Name</source>
|
||||||
<translation>Název společnosti</translation>
|
<translation>Název společnosti</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.ui" line="55"/>
|
<location filename="../settings/globalsettingsform.ui" line="58"/>
|
||||||
<source>Street</source>
|
<source>Street</source>
|
||||||
<translation>Ulice</translation>
|
<translation>Ulice</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.ui" line="65"/>
|
<location filename="../settings/globalsettingsform.ui" line="68"/>
|
||||||
<source>House Number</source>
|
<source>House Number</source>
|
||||||
<translation>Číslo popisné</translation>
|
<translation>Číslo popisné</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.ui" line="75"/>
|
<location filename="../settings/globalsettingsform.ui" line="78"/>
|
||||||
<source>City</source>
|
<source>City</source>
|
||||||
<translation>Město</translation>
|
<translation>Město</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.ui" line="85"/>
|
<location filename="../settings/globalsettingsform.ui" line="88"/>
|
||||||
<source>ZIP code</source>
|
<source>ZIP code</source>
|
||||||
<translation>PSČ</translation>
|
<translation>PSČ</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.ui" line="128"/>
|
<location filename="../settings/globalsettingsform.ui" line="131"/>
|
||||||
<source>Logo</source>
|
<source>Logo</source>
|
||||||
<translation>Logo</translation>
|
<translation>Logo</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.ui" line="156"/>
|
<location filename="../settings/globalsettingsform.ui" line="159"/>
|
||||||
<source>Select file</source>
|
<source>Select file</source>
|
||||||
<translation>Vyber soubor</translation>
|
<translation>Vyber soubor</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.cpp" line="82"/>
|
<location filename="../settings/globalsettingsform.cpp" line="95"/>
|
||||||
<source>Switch season</source>
|
<source>Switch season</source>
|
||||||
<translation>Změna sezóny</translation>
|
<translation>Změna sezóny</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.cpp" line="82"/>
|
|
||||||
<source>Realy switch active season?</source>
|
<source>Realy switch active season?</source>
|
||||||
<translation>Opravdu si přejete změnit aktivní sezónu?</translation>
|
<translation type="vanished">Opravdu si přejete změnit aktivní sezónu?</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.cpp" line="150"/>
|
<location filename="../settings/globalsettingsform.cpp" line="155"/>
|
||||||
<source>New season</source>
|
<source>New season</source>
|
||||||
<translation>Nová sezóna</translation>
|
<translation>Nová sezóna</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.cpp" line="150"/>
|
|
||||||
<source>Realy create new season and switch to it?</source>
|
<source>Realy create new season and switch to it?</source>
|
||||||
|
<translation type="vanished">Opravdu si přejete vytvořit novou sezónu a přepnout na ni?</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../settings/globalsettingsform.cpp" line="95"/>
|
||||||
|
<source>Really switch active season?</source>
|
||||||
|
<translation>Opravdu si přejete změnit aktivní sezónu?</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../settings/globalsettingsform.cpp" line="155"/>
|
||||||
|
<source>Really create new season and switch to it?</source>
|
||||||
<translation>Opravdu si přejete vytvořit novou sezónu a přepnout na ni?</translation>
|
<translation>Opravdu si přejete vytvořit novou sezónu a přepnout na ni?</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.cpp" line="173"/>
|
<location filename="../settings/globalsettingsform.cpp" line="178"/>
|
||||||
<source>Select logo</source>
|
<source>Select logo</source>
|
||||||
<translation>Vybrat logo</translation>
|
<translation>Vybrat logo</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/globalsettingsform.cpp" line="173"/>
|
<location filename="../settings/globalsettingsform.cpp" line="178"/>
|
||||||
<source>Images (*.png *.xpm *.jpg)</source>
|
<source>Images (*.png *.xpm *.jpg)</source>
|
||||||
<translation>Obrázky (*.png *.xpm *.jpg)</translation>
|
<translation>Obrázky (*.png *.xpm *.jpg)</translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -359,17 +367,17 @@
|
|||||||
<translation>Import dat</translation>
|
<translation>Import dat</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../importdialog.ui" line="20"/>
|
<location filename="../importdialog.ui" line="23"/>
|
||||||
<source>File</source>
|
<source>File</source>
|
||||||
<translation>Soubor</translation>
|
<translation>Soubor</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../importdialog.ui" line="27"/>
|
<location filename="../importdialog.ui" line="30"/>
|
||||||
<source>Separator</source>
|
<source>Separator</source>
|
||||||
<translation>Oddělovač</translation>
|
<translation>Oddělovač</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../importdialog.ui" line="65"/>
|
<location filename="../importdialog.ui" line="68"/>
|
||||||
<source>...</source>
|
<source>...</source>
|
||||||
<translation>...</translation>
|
<translation>...</translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -400,12 +408,12 @@
|
|||||||
<context>
|
<context>
|
||||||
<name>QObject</name>
|
<name>QObject</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../iplugin.h" line="58"/>
|
<location filename="../iplugin.h" line="52"/>
|
||||||
<source>Permission denied</source>
|
<source>Permission denied</source>
|
||||||
<translation>Nedostatečná oprávnění</translation>
|
<translation>Nedostatečná oprávnění</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../iplugin.h" line="58"/>
|
<location filename="../iplugin.h" line="52"/>
|
||||||
<source>You don't have permission to open this plugin.</source>
|
<source>You don't have permission to open this plugin.</source>
|
||||||
<translation>Nemáte oprávnění otevřít tento modul.</translation>
|
<translation>Nemáte oprávnění otevřít tento modul.</translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -590,39 +598,39 @@
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../autoform.h" line="46"/>
|
<location filename="../autoform.h" line="46"/>
|
||||||
<location filename="../gridform.h" line="250"/>
|
<location filename="../gridform.h" line="252"/>
|
||||||
<location filename="../gridform.h" line="262"/>
|
<location filename="../gridform.h" line="264"/>
|
||||||
<location filename="../gridform.h" line="274"/>
|
<location filename="../gridform.h" line="276"/>
|
||||||
<source>Permission denied</source>
|
<source>Permission denied</source>
|
||||||
<translation>Nedostatečná oprávnění</translation>
|
<translation>Nedostatečná oprávnění</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../gridform.h" line="250"/>
|
<location filename="../gridform.h" line="252"/>
|
||||||
<source>You don't have permission to add new record.</source>
|
<source>You don't have permission to add new record.</source>
|
||||||
<translation>Nemáte oprávnění přidat nový záznam.</translation>
|
<translation>Nemáte oprávnění přidat nový záznam.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../gridform.h" line="262"/>
|
<location filename="../gridform.h" line="264"/>
|
||||||
<source>You don't have permission to edit record.</source>
|
<source>You don't have permission to edit record.</source>
|
||||||
<translation>Nemáte oprávnění upravit záznam.</translation>
|
<translation>Nemáte oprávnění upravit záznam.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../gridform.h" line="274"/>
|
<location filename="../gridform.h" line="276"/>
|
||||||
<source>You don't have permission to delete record.</source>
|
<source>You don't have permission to delete record.</source>
|
||||||
<translation>Nemáte oprávnění smazat záznam.</translation>
|
<translation>Nemáte oprávnění smazat záznam.</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../gridform.h" line="231"/>
|
<location filename="../gridform.h" line="233"/>
|
||||||
<source>Delete record</source>
|
<source>Delete record</source>
|
||||||
<translation>Smazat záznam</translation>
|
<translation>Smazat záznam</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../gridform.h" line="231"/>
|
<location filename="../gridform.h" line="233"/>
|
||||||
<source>Realy delete this record?</source>
|
<source>Realy delete this record?</source>
|
||||||
<translation>Opravdu si přejete smazat tento záznam?</translation>
|
<translation>Opravdu si přejete smazat tento záznam?</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../gridform.h" line="327"/>
|
<location filename="../gridform.h" line="329"/>
|
||||||
<source>Import</source>
|
<source>Import</source>
|
||||||
<translation>Import</translation>
|
<translation>Import</translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -635,37 +643,37 @@
|
|||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../users/userform.ui" line="20"/>
|
<location filename="../users/userform.ui" line="23"/>
|
||||||
<source>Login</source>
|
<source>Login</source>
|
||||||
<translation>Uživatelské jméno</translation>
|
<translation>Uživatelské jméno</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../users/userform.ui" line="30"/>
|
<location filename="../users/userform.ui" line="33"/>
|
||||||
<source>Password</source>
|
<source>Password</source>
|
||||||
<translation>Heslo</translation>
|
<translation>Heslo</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../users/userform.ui" line="44"/>
|
<location filename="../users/userform.ui" line="47"/>
|
||||||
<source>Name</source>
|
<source>Name</source>
|
||||||
<translation>Jméno</translation>
|
<translation>Jméno</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../users/userform.ui" line="57"/>
|
<location filename="../users/userform.ui" line="60"/>
|
||||||
<source>Is Admin</source>
|
<source>Is Admin</source>
|
||||||
<translation>Admin</translation>
|
<translation>Admin</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../users/userform.ui" line="67"/>
|
<location filename="../users/userform.ui" line="70"/>
|
||||||
<source>Active</source>
|
<source>Active</source>
|
||||||
<translation>Aktivní</translation>
|
<translation>Aktivní</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../users/userform.ui" line="77"/>
|
<location filename="../users/userform.ui" line="80"/>
|
||||||
<source>Roles</source>
|
<source>Roles</source>
|
||||||
<translation>Role</translation>
|
<translation>Role</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../users/userform.ui" line="91"/>
|
<location filename="../users/userform.ui" line="94"/>
|
||||||
<source>Retype Password</source>
|
<source>Retype Password</source>
|
||||||
<translation>Zopakujte heslo</translation>
|
<translation>Zopakujte heslo</translation>
|
||||||
</message>
|
</message>
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ find_package(Qt6 COMPONENTS
|
|||||||
Core
|
Core
|
||||||
Gui
|
Gui
|
||||||
Widgets
|
Widgets
|
||||||
|
Qml
|
||||||
REQUIRED)
|
REQUIRED)
|
||||||
|
|
||||||
add_library(countryregister SHARED
|
add_library(countryregister SHARED
|
||||||
@@ -33,6 +34,7 @@ target_link_libraries(countryregister
|
|||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
Qt::Widgets
|
Qt::Widgets
|
||||||
|
Qt::Qml
|
||||||
qdecimal
|
qdecimal
|
||||||
decnumber
|
decnumber
|
||||||
QxOrm
|
QxOrm
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ find_package(Qt6 COMPONENTS
|
|||||||
Core
|
Core
|
||||||
Gui
|
Gui
|
||||||
Widgets
|
Widgets
|
||||||
|
Qml
|
||||||
REQUIRED)
|
REQUIRED)
|
||||||
|
|
||||||
add_library(postregister SHARED
|
add_library(postregister SHARED
|
||||||
@@ -33,6 +34,7 @@ target_link_libraries(postregister
|
|||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
Qt::Widgets
|
Qt::Widgets
|
||||||
|
Qt::Qml
|
||||||
qdecimal
|
qdecimal
|
||||||
decnumber
|
decnumber
|
||||||
QxOrm
|
QxOrm
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ find_package(Qt6 COMPONENTS
|
|||||||
Core
|
Core
|
||||||
Gui
|
Gui
|
||||||
Widgets
|
Widgets
|
||||||
|
Qml
|
||||||
REQUIRED)
|
REQUIRED)
|
||||||
|
|
||||||
add_library(services SHARED
|
add_library(services SHARED
|
||||||
@@ -39,6 +40,7 @@ target_link_libraries(services
|
|||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
Qt::Widgets
|
Qt::Widgets
|
||||||
|
Qt::Qml
|
||||||
qdecimal
|
qdecimal
|
||||||
decnumber
|
decnumber
|
||||||
QxOrm
|
QxOrm
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ find_package(Qt6 COMPONENTS
|
|||||||
Core
|
Core
|
||||||
Gui
|
Gui
|
||||||
Widgets
|
Widgets
|
||||||
|
Qml
|
||||||
REQUIRED)
|
REQUIRED)
|
||||||
|
|
||||||
add_library(shop SHARED
|
add_library(shop SHARED
|
||||||
@@ -85,6 +86,7 @@ target_link_libraries(shop
|
|||||||
Qt::Core
|
Qt::Core
|
||||||
Qt::Gui
|
Qt::Gui
|
||||||
Qt::Widgets
|
Qt::Widgets
|
||||||
|
Qt::Qml
|
||||||
qdecimal
|
qdecimal
|
||||||
decnumber
|
decnumber
|
||||||
QxOrm
|
QxOrm
|
||||||
|
|||||||
+17
-1
@@ -131,7 +131,13 @@ void Voucher::addItem(QSharedPointer<VoucherItem> item)
|
|||||||
|
|
||||||
void Voucher::removeItem(QSharedPointer<VoucherItem> item)
|
void Voucher::removeItem(QSharedPointer<VoucherItem> item)
|
||||||
{
|
{
|
||||||
m_items.removeOne(item);
|
if (item->id() != 0) {
|
||||||
|
m_items.removeIf([&item](const auto& it){
|
||||||
|
return item->id() == it->id();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
m_items.removeOne(item);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Voucher::clearItems()
|
void Voucher::clearItems()
|
||||||
@@ -415,3 +421,13 @@ QDecDouble VoucherSum::totalPrice() const
|
|||||||
int VoucherSum::count() const {
|
int VoucherSum::count() const {
|
||||||
return m_count;
|
return m_count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VoucherSum::VoucherSum(int count, int totalPrice) : m_count(count), m_totalPrice(totalPrice) {}
|
||||||
|
|
||||||
|
void VoucherSum::addPrice(QDecDouble price) {
|
||||||
|
m_totalPrice += FROM_DEC(price);
|
||||||
|
}
|
||||||
|
|
||||||
|
void VoucherSum::addCount(int count) {
|
||||||
|
m_count += count;
|
||||||
|
}
|
||||||
|
|||||||
@@ -210,9 +210,13 @@ class VoucherSum
|
|||||||
QX_REGISTER_FRIEND_CLASS(VoucherSum)
|
QX_REGISTER_FRIEND_CLASS(VoucherSum)
|
||||||
public:
|
public:
|
||||||
VoucherSum() = default;
|
VoucherSum() = default;
|
||||||
|
VoucherSum(int count, int totalPrice);
|
||||||
|
|
||||||
QDecDouble totalPrice() const;
|
QDecDouble totalPrice() const;
|
||||||
int count() const;
|
int count() const;
|
||||||
|
|
||||||
|
void addPrice(QDecDouble price);
|
||||||
|
void addCount(int count);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int m_count{0};
|
int m_count{0};
|
||||||
|
|||||||
@@ -47,12 +47,20 @@ PaydVouchersDialog::PaydVouchersDialog(QWidget *parent) :
|
|||||||
ui->tableItems->setColumnHidden(0, true);
|
ui->tableItems->setColumnHidden(0, true);
|
||||||
ui->tableItems->verticalScrollBar()->setStyleSheet("QScrollBar:vertical { width: 30px; }");
|
ui->tableItems->verticalScrollBar()->setStyleSheet("QScrollBar:vertical { width: 30px; }");
|
||||||
|
|
||||||
|
#ifndef EET
|
||||||
|
ui->btnEetNotSen->setVisible(false);
|
||||||
|
ui->btnSendEet->setVisible(false);
|
||||||
|
ui->label_2->setVisible(false);
|
||||||
|
ui->lblEetStatus->setVisible(false);
|
||||||
|
#endif
|
||||||
|
|
||||||
ShopService srv;
|
ShopService srv;
|
||||||
m_voucherModel->setData(srv.paiedVouchers());
|
m_voucherModel->setData(srv.paiedVouchers());
|
||||||
ui->tableVouchers->sortByColumn(0,Qt::AscendingOrder);
|
ui->tableVouchers->sortByColumn(0,Qt::AscendingOrder);
|
||||||
ui->tableVouchers->verticalScrollBar()->setStyleSheet("QScrollBar:vertical { width: 30px; }");
|
ui->tableVouchers->verticalScrollBar()->setStyleSheet("QScrollBar:vertical { width: 30px; }");
|
||||||
|
|
||||||
connect(ui->tableVouchers->selectionModel(), &QItemSelectionModel::currentRowChanged, [this, &srv](const QModelIndex ¤t, const QModelIndex &) {
|
connect(ui->tableVouchers->selectionModel(), &QItemSelectionModel::currentRowChanged, [this](const QModelIndex ¤t, const QModelIndex &) {
|
||||||
|
ShopService srv;
|
||||||
QSharedPointer<Voucher> voucher = m_voucherModel->itemFromIndex(current);
|
QSharedPointer<Voucher> voucher = m_voucherModel->itemFromIndex(current);
|
||||||
if (voucher->items().isEmpty()) {
|
if (voucher->items().isEmpty()) {
|
||||||
srv.load(voucher);
|
srv.load(voucher);
|
||||||
|
|||||||
@@ -59,11 +59,11 @@ void ReceiptGenerator::print()
|
|||||||
DWORD dwBytes;
|
DWORD dwBytes;
|
||||||
BOOL bStatus = FALSE;
|
BOOL bStatus = FALSE;
|
||||||
|
|
||||||
if (OpenPrinter((LPWSTR)printer.toStdWString().c_str(), &hPrinter, NULL))
|
if (OpenPrinter((LPWSTR)printer.toStdWString().c_str(), &hPrinter, nullptr))
|
||||||
{
|
{
|
||||||
docInfo.pDocName = L"Uctenka";
|
docInfo.pDocName = (LPWSTR)(L"Uctenka");
|
||||||
docInfo.pOutputFile = NULL;
|
docInfo.pOutputFile = nullptr;
|
||||||
docInfo.pDatatype = L"RAW";
|
docInfo.pDatatype = (LPWSTR)(L"RAW");
|
||||||
|
|
||||||
dwJob = StartDocPrinter(hPrinter, 1, (LPBYTE)&docInfo);
|
dwJob = StartDocPrinter(hPrinter, 1, (LPBYTE)&docInfo);
|
||||||
if (dwJob > 0)
|
if (dwJob > 0)
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ ShopSettingsForm::ShopSettingsForm(QWidget *parent) :
|
|||||||
registerBinding(ui->lettersPerLine);
|
registerBinding(ui->lettersPerLine);
|
||||||
registerBinding(ui->byMessage);
|
registerBinding(ui->byMessage);
|
||||||
|
|
||||||
|
#ifdef EET
|
||||||
registerBinding(ui->eetActive);
|
registerBinding(ui->eetActive);
|
||||||
registerBinding(ui->eetShopId);
|
registerBinding(ui->eetShopId);
|
||||||
registerBinding(ui->eetRegisterId);
|
registerBinding(ui->eetRegisterId);
|
||||||
@@ -26,6 +27,9 @@ ShopSettingsForm::ShopSettingsForm(QWidget *parent) :
|
|||||||
registerBinding(ui->eetKeyPassword);
|
registerBinding(ui->eetKeyPassword);
|
||||||
registerBinding(ui->eetTest);
|
registerBinding(ui->eetTest);
|
||||||
registerBinding(ui->eetPlayground);
|
registerBinding(ui->eetPlayground);
|
||||||
|
#else
|
||||||
|
ui->tabWidget->removeTab(2);
|
||||||
|
#endif
|
||||||
|
|
||||||
registerBinding(ui->favBtnCols);
|
registerBinding(ui->favBtnCols);
|
||||||
registerBinding(ui->favBtnRows);
|
registerBinding(ui->favBtnRows);
|
||||||
|
|||||||
+6
-2
@@ -515,7 +515,6 @@ void ShopForm::recalculate()
|
|||||||
{
|
{
|
||||||
ShopService srv;
|
ShopService srv;
|
||||||
srv.calculate(m_voucher);
|
srv.calculate(m_voucher);
|
||||||
this->m_itemsModel->setData(m_voucher->items());
|
|
||||||
|
|
||||||
setTotalText();
|
setTotalText();
|
||||||
ui->temporarySaveButton->setEnabled(!m_voucher->items().isEmpty());
|
ui->temporarySaveButton->setEnabled(!m_voucher->items().isEmpty());
|
||||||
@@ -530,6 +529,9 @@ void ShopForm::recalculate()
|
|||||||
{
|
{
|
||||||
srv.update(m_voucher);
|
srv.update(m_voucher);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this->m_itemsModel->setData(m_voucher->items());
|
||||||
|
connectItemSignals();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ShopForm::on_receiptCombo_currentIndexChanged(int)
|
void ShopForm::on_receiptCombo_currentIndexChanged(int)
|
||||||
@@ -654,7 +656,9 @@ void ShopForm::on_actionDelete_items_triggered()
|
|||||||
QList<VoucherItemPtr> forDelete;
|
QList<VoucherItemPtr> forDelete;
|
||||||
|
|
||||||
for (const auto& row : ui->actualReceipt->selectionModel()->selectedIndexes()) {
|
for (const auto& row : ui->actualReceipt->selectionModel()->selectedIndexes()) {
|
||||||
forDelete << m_itemsModel->itemFromIndex(row);
|
if (!forDelete.contains(m_itemsModel->itemFromIndex(row))) {
|
||||||
|
forDelete << m_itemsModel->itemFromIndex(row);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (auto& item : forDelete) {
|
for (auto& item : forDelete) {
|
||||||
|
|||||||
+13
-1
@@ -7,6 +7,11 @@ ShopOverview::ShopOverview(QWidget *parent) :
|
|||||||
ui(new Ui::ShopOverview)
|
ui(new Ui::ShopOverview)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
|
||||||
|
#ifndef EET
|
||||||
|
ui->labelUnsendEET->setVisible(false);
|
||||||
|
ui->label_6->setVisible(false);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
ShopOverview::~ShopOverview()
|
ShopOverview::~ShopOverview()
|
||||||
@@ -19,9 +24,16 @@ void ShopOverview::refresh()
|
|||||||
ShopService srv;
|
ShopService srv;
|
||||||
|
|
||||||
VoucherSum unpaid = srv.unpaidSummary();
|
VoucherSum unpaid = srv.unpaidSummary();
|
||||||
VoucherSum unsend = srv.unsendEET();
|
|
||||||
|
|
||||||
ui->labelUnapiedCount->setText(QString::number(unpaid.count()));
|
ui->labelUnapiedCount->setText(QString::number(unpaid.count()));
|
||||||
ui->labelUnpaiedAmount->setText(QString::number(unpaid.totalPrice().toDouble()));
|
ui->labelUnpaiedAmount->setText(QString::number(unpaid.totalPrice().toDouble()));
|
||||||
|
|
||||||
|
VoucherSum today = srv.salesSummary(QDate::currentDate());
|
||||||
|
ui->labelSales->setText(QString::number(today.totalPrice().toDouble()));
|
||||||
|
ui->labelNumSales->setText(QString::number(today.count()));
|
||||||
|
|
||||||
|
#ifdef EET
|
||||||
|
VoucherSum unsend = srv.unsendEET();
|
||||||
ui->labelUnsendEET->setText(QString::number(unsend.count()));
|
ui->labelUnsendEET->setText(QString::number(unsend.count()));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
+47
-3
@@ -7,7 +7,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>908</width>
|
<width>908</width>
|
||||||
<height>95</height>
|
<height>162</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@@ -83,7 +83,6 @@
|
|||||||
<widget class="QLabel" name="label_6">
|
<widget class="QLabel" name="label_6">
|
||||||
<property name="font">
|
<property name="font">
|
||||||
<font>
|
<font>
|
||||||
<weight>75</weight>
|
|
||||||
<bold>true</bold>
|
<bold>true</bold>
|
||||||
</font>
|
</font>
|
||||||
</property>
|
</property>
|
||||||
@@ -102,7 +101,6 @@
|
|||||||
</property>
|
</property>
|
||||||
<property name="font">
|
<property name="font">
|
||||||
<font>
|
<font>
|
||||||
<weight>75</weight>
|
|
||||||
<bold>true</bold>
|
<bold>true</bold>
|
||||||
</font>
|
</font>
|
||||||
</property>
|
</property>
|
||||||
@@ -114,6 +112,52 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="4" column="0">
|
||||||
|
<widget class="QLabel" name="label_3">
|
||||||
|
<property name="text">
|
||||||
|
<string>Today sales:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="4" column="1">
|
||||||
|
<widget class="QLabel" name="labelSales">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>90</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>TextLabel</string>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="0">
|
||||||
|
<widget class="QLabel" name="label_5">
|
||||||
|
<property name="text">
|
||||||
|
<string>Number of sales today:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="1">
|
||||||
|
<widget class="QLabel" name="labelNumSales">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>90</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>TextLabel</string>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|||||||
+27
-10
@@ -60,10 +60,6 @@ void ShopService::calculate(VoucherPtr voucher)
|
|||||||
|
|
||||||
loadSettings();
|
loadSettings();
|
||||||
|
|
||||||
if (voucher->items().isEmpty()) {
|
|
||||||
load(voucher);
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach (QSharedPointer<VoucherItem> item, voucher->items()) {
|
foreach (QSharedPointer<VoucherItem> item, voucher->items()) {
|
||||||
|
|
||||||
if (item->refId() == ROUNDING_ITEM)
|
if (item->refId() == ROUNDING_ITEM)
|
||||||
@@ -173,6 +169,10 @@ void ShopService::pay(VoucherPtr voucher)
|
|||||||
voucher->setPayDateTime(QDateTime::currentDateTime());
|
voucher->setPayDateTime(QDateTime::currentDateTime());
|
||||||
|
|
||||||
this->update(voucher, &session);
|
this->update(voucher, &session);
|
||||||
|
|
||||||
|
if (!session.isValid()) {
|
||||||
|
qDebug() << session.firstError().text();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ShopService::updateRelatedItem(VoucherItem* item, int countAdded)
|
void ShopService::updateRelatedItem(VoucherItem* item, int countAdded)
|
||||||
@@ -380,6 +380,9 @@ void ShopService::moveItems(QList<VoucherItemPtr> items, VoucherPtr source, Vouc
|
|||||||
it->setVoucher(target);
|
it->setVoucher(target);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
calculate(target);
|
||||||
|
update(target, &session);
|
||||||
|
|
||||||
if (source->items().isEmpty())
|
if (source->items().isEmpty())
|
||||||
{
|
{
|
||||||
erase(source, &session);
|
erase(source, &session);
|
||||||
@@ -433,9 +436,7 @@ QList<IShopItemPtr> ShopService::allSellableItems(const QString& category/* = ""
|
|||||||
|
|
||||||
VoucherSum ShopService::unpaidSummary()
|
VoucherSum ShopService::unpaidSummary()
|
||||||
{
|
{
|
||||||
VoucherSum sum; //= db->query_value<VoucherSum>("status = " + query::_ref((int)Voucher::NOT_PAID));
|
return summary("status = " + QString::number(Voucher::NOT_PAID));
|
||||||
|
|
||||||
return sum;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
VoucherSum ShopService::unsendEET()
|
VoucherSum ShopService::unsendEET()
|
||||||
@@ -526,10 +527,11 @@ void ShopService::update(VoucherPtr entity, qx::QxSession* pSession) {
|
|||||||
|
|
||||||
Service::update(entity, pSession);
|
Service::update(entity, pSession);
|
||||||
auto oldItems = entity->items();
|
auto oldItems = entity->items();
|
||||||
entity->clearItems();
|
|
||||||
load(entity);
|
|
||||||
|
|
||||||
for (auto item : entity->items()) {
|
Service<VoucherItem> srvItem;
|
||||||
|
auto items = srvItem.all("voucher = " + QString::number(entity->id()));
|
||||||
|
|
||||||
|
for (auto item : items) {
|
||||||
auto newItem = std::find_if(oldItems.begin(), oldItems.end(), [item](auto it){
|
auto newItem = std::find_if(oldItems.begin(), oldItems.end(), [item](auto it){
|
||||||
return item->id() == it->id();
|
return item->id() == it->id();
|
||||||
});
|
});
|
||||||
@@ -546,3 +548,18 @@ void ShopService::update(VoucherPtr entity, qx::QxSession* pSession) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VoucherSum ShopService::salesSummary(QDate date) {
|
||||||
|
return summary("payDateTime >= '" + date.toString("yyyy-MM-dd") + "'");
|
||||||
|
}
|
||||||
|
|
||||||
|
VoucherSum ShopService::summary(const QString& where) {
|
||||||
|
auto sums = all(where);
|
||||||
|
VoucherSum sum(sums.count(), 0);
|
||||||
|
|
||||||
|
for (const auto& item : sums) {
|
||||||
|
sum.addPrice(item->totalPrice());
|
||||||
|
}
|
||||||
|
|
||||||
|
return sum;
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -44,12 +44,14 @@ public:
|
|||||||
QList<IShopItemPtr> allSellableItems(const QString& category = "");
|
QList<IShopItemPtr> allSellableItems(const QString& category = "");
|
||||||
QMap<QString, QString> allCategories();
|
QMap<QString, QString> allCategories();
|
||||||
VoucherSum unpaidSummary();
|
VoucherSum unpaidSummary();
|
||||||
|
VoucherSum salesSummary(QDate date);
|
||||||
VoucherSum unsendEET();
|
VoucherSum unsendEET();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QDecDouble includeVat(QDecDouble price, Enums::VatType vatType);
|
QDecDouble includeVat(QDecDouble price, Enums::VatType vatType);
|
||||||
QDecDouble excludeVat(QDecDouble price, Enums::VatType vatType);
|
QDecDouble excludeVat(QDecDouble price, Enums::VatType vatType);
|
||||||
void loadSettings();
|
void loadSettings();
|
||||||
|
VoucherSum summary(const QString& where);
|
||||||
|
|
||||||
QSharedPointer<GlobalSettings> m_gs;
|
QSharedPointer<GlobalSettings> m_gs;
|
||||||
QDecDouble vatRate(Enums::VatType vatType);
|
QDecDouble vatRate(Enums::VatType vatType);
|
||||||
|
|||||||
Binary file not shown.
+179
-95
@@ -29,22 +29,22 @@
|
|||||||
<translation>Sazba DPH</translation>
|
<translation>Sazba DPH</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../directsaleform.cpp" line="17"/>
|
<location filename="../directsaleform.cpp" line="18"/>
|
||||||
<source>None</source>
|
<source>None</source>
|
||||||
<translation>Žádná</translation>
|
<translation>Žádná</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../directsaleform.cpp" line="18"/>
|
<location filename="../directsaleform.cpp" line="19"/>
|
||||||
<source>High</source>
|
<source>High</source>
|
||||||
<translation>Vysoká</translation>
|
<translation>Vysoká</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../directsaleform.cpp" line="19"/>
|
<location filename="../directsaleform.cpp" line="20"/>
|
||||||
<source>First Lower</source>
|
<source>First Lower</source>
|
||||||
<translation>První snížená</translation>
|
<translation>První snížená</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../directsaleform.cpp" line="20"/>
|
<location filename="../directsaleform.cpp" line="21"/>
|
||||||
<source>Second Lower</source>
|
<source>Second Lower</source>
|
||||||
<translation>Druhá snížená</translation>
|
<translation>Druhá snížená</translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -60,36 +60,41 @@
|
|||||||
<context>
|
<context>
|
||||||
<name>PayDialog</name>
|
<name>PayDialog</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../paydialog.ui" line="14"/>
|
<location filename="../paydialog.ui" line="20"/>
|
||||||
<source>Recieve money</source>
|
<source>Recieve money</source>
|
||||||
<translation>Platba</translation>
|
<translation>Platba</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../paydialog.ui" line="30"/>
|
<location filename="../paydialog.ui" line="36"/>
|
||||||
<source>Total:</source>
|
<source>Total:</source>
|
||||||
<translation>Celkem:</translation>
|
<translation>Celkem:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../paydialog.ui" line="44"/>
|
<location filename="../paydialog.ui" line="50"/>
|
||||||
<location filename="../paydialog.ui" line="101"/>
|
<location filename="../paydialog.ui" line="107"/>
|
||||||
<source>0</source>
|
<source>0</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../paydialog.ui" line="59"/>
|
<location filename="../paydialog.ui" line="65"/>
|
||||||
<source>Recieved</source>
|
<source>Recieved</source>
|
||||||
<translation>Obdrženo</translation>
|
<translation>Obdrženo</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../paydialog.ui" line="89"/>
|
<location filename="../paydialog.ui" line="95"/>
|
||||||
<source>Return</source>
|
<source>Return</source>
|
||||||
<translation>Vrátit</translation>
|
<translation>Vrátit</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../paydialog.ui" line="124"/>
|
<location filename="../paydialog.ui" line="117"/>
|
||||||
<source>Send to EET portal</source>
|
<source>Send to EET portal</source>
|
||||||
<translation>Odeslat na EET</translation>
|
<translation>Odeslat na EET</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../paydialog.ui" line="142"/>
|
||||||
|
<source>OK</source>
|
||||||
|
<translation>OK</translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>PaydVouchersDialog</name>
|
<name>PaydVouchersDialog</name>
|
||||||
@@ -104,65 +109,66 @@
|
|||||||
<translation>Vytisknout účtenku</translation>
|
<translation>Vytisknout účtenku</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../paydvouchersdialog.ui" line="55"/>
|
<location filename="../paydvouchersdialog.ui" line="75"/>
|
||||||
<location filename="../paydvouchersdialog.cpp" line="99"/>
|
<location filename="../paydvouchersdialog.cpp" line="110"/>
|
||||||
<source>Save receipt</source>
|
<source>Save receipt</source>
|
||||||
<translation>Uložit účtenku</translation>
|
<translation>Uložit účtenku</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../paydvouchersdialog.ui" line="58"/>
|
<location filename="../paydvouchersdialog.ui" line="52"/>
|
||||||
<location filename="../paydvouchersdialog.ui" line="78"/>
|
<location filename="../paydvouchersdialog.ui" line="78"/>
|
||||||
<location filename="../paydvouchersdialog.ui" line="101"/>
|
<location filename="../paydvouchersdialog.ui" line="98"/>
|
||||||
|
<location filename="../paydvouchersdialog.ui" line="121"/>
|
||||||
<source>...</source>
|
<source>...</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../paydvouchersdialog.ui" line="153"/>
|
<location filename="../paydvouchersdialog.ui" line="173"/>
|
||||||
<source>Items</source>
|
<source>Items</source>
|
||||||
<translation>Položky</translation>
|
<translation>Položky</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../paydvouchersdialog.ui" line="168"/>
|
<location filename="../paydvouchersdialog.ui" line="188"/>
|
||||||
<source>EET:</source>
|
<source>EET:</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../paydvouchersdialog.ui" line="219"/>
|
<location filename="../paydvouchersdialog.ui" line="239"/>
|
||||||
<source>Total:</source>
|
<source>Total:</source>
|
||||||
<translation>Celkem:</translation>
|
<translation>Celkem:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../paydvouchersdialog.ui" line="239"/>
|
<location filename="../paydvouchersdialog.ui" line="259"/>
|
||||||
<source>0</source>
|
<source>0</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../paydvouchersdialog.cpp" line="63"/>
|
<location filename="../paydvouchersdialog.cpp" line="74"/>
|
||||||
<source>not entering</source>
|
<source>not entering</source>
|
||||||
<translation>Nevstupuje</translation>
|
<translation>Nevstupuje</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../paydvouchersdialog.cpp" line="66"/>
|
<location filename="../paydvouchersdialog.cpp" line="77"/>
|
||||||
<source>for send</source>
|
<source>for send</source>
|
||||||
<translation>K odeslání</translation>
|
<translation>K odeslání</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../paydvouchersdialog.cpp" line="69"/>
|
<location filename="../paydvouchersdialog.cpp" line="80"/>
|
||||||
<source>error</source>
|
<source>error</source>
|
||||||
<translation>Chyba</translation>
|
<translation>Chyba</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../paydvouchersdialog.cpp" line="72"/>
|
<location filename="../paydvouchersdialog.cpp" line="83"/>
|
||||||
<source>sent</source>
|
<source>sent</source>
|
||||||
<translation>Odesláno</translation>
|
<translation>Odesláno</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../paydvouchersdialog.cpp" line="99"/>
|
<location filename="../paydvouchersdialog.cpp" line="110"/>
|
||||||
<source>Text files (*.txt)</source>
|
<source>Text files (*.txt)</source>
|
||||||
<translation>Textové soubory (*.txt)</translation>
|
<translation>Textové soubory (*.txt)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../paydvouchersdialog.cpp" line="139"/>
|
<location filename="../paydvouchersdialog.cpp" line="150"/>
|
||||||
<source>Error</source>
|
<source>Error</source>
|
||||||
<translation>Chyba</translation>
|
<translation>Chyba</translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -170,33 +176,33 @@
|
|||||||
<context>
|
<context>
|
||||||
<name>QObject</name>
|
<name>QObject</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../shopform.cpp" line="36"/>
|
<location filename="../shopform.cpp" line="35"/>
|
||||||
<source>EET communication error.
|
<source>EET communication error.
|
||||||
</source>
|
</source>
|
||||||
<translation>Chyba komunikace s EET</translation>
|
<translation>Chyba komunikace s EET</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../shopform.cpp" line="40"/>
|
<location filename="../shopform.cpp" line="39"/>
|
||||||
<source>Message from portal: </source>
|
<source>Message from portal: </source>
|
||||||
<translation>Zpráva z EET portálu:</translation>
|
<translation>Zpráva z EET portálu:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../shopform.cpp" line="43"/>
|
<location filename="../shopform.cpp" line="42"/>
|
||||||
<source>Switch to offline?</source>
|
<source>Switch to offline?</source>
|
||||||
<translation>Přepnout do offline?</translation>
|
<translation>Přepnout do offline?</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../shopform.cpp" line="45"/>
|
<location filename="../shopform.cpp" line="44"/>
|
||||||
<source>EET error</source>
|
<source>EET error</source>
|
||||||
<translation>Chyba EET</translation>
|
<translation>Chyba EET</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../shopform.cpp" line="51"/>
|
<location filename="../shopform.cpp" line="50"/>
|
||||||
<source><a href="#eet">Online</a></source>
|
<source><a href="#eet">Online</a></source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../shopform.cpp" line="51"/>
|
<location filename="../shopform.cpp" line="50"/>
|
||||||
<source><a href="#eet">Offline</a></source>
|
<source><a href="#eet">Offline</a></source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -223,6 +229,11 @@
|
|||||||
<source>Items</source>
|
<source>Items</source>
|
||||||
<translation>Položky</translation>
|
<translation>Položky</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../receiptloadform.ui" line="55"/>
|
||||||
|
<source>Select &all</source>
|
||||||
|
<translation>Vybrat &vše</translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>ReceiptSaveForm</name>
|
<name>ReceiptSaveForm</name>
|
||||||
@@ -284,142 +295,167 @@
|
|||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../shopform.ui" line="44"/>
|
<location filename="../shopform.ui" line="111"/>
|
||||||
<source>Commodity</source>
|
<source>Commodity</source>
|
||||||
<translation>Zboží</translation>
|
<translation>Zboží</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../shopform.ui" line="73"/>
|
<location filename="../shopform.ui" line="140"/>
|
||||||
<source>Count</source>
|
<source>Count</source>
|
||||||
<translation>Počet</translation>
|
<translation>Počet</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../shopform.ui" line="99"/>
|
<location filename="../shopform.ui" line="166"/>
|
||||||
<source>Add Item</source>
|
<source>Add Item</source>
|
||||||
<translation>Přidat položku</translation>
|
<translation>Přidat položku</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../shopform.ui" line="127"/>
|
|
||||||
<source>Direct Sale</source>
|
<source>Direct Sale</source>
|
||||||
<translation>Přímý prodej</translation>
|
<translation type="vanished">Přímý prodej</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../shopform.ui" line="140"/>
|
<location filename="../shopform.ui" line="62"/>
|
||||||
<source>Ctrl+D</source>
|
<source>Ctrl+D</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../shopform.ui" line="162"/>
|
<location filename="../shopform.ui" line="84"/>
|
||||||
|
<source>Favorities</source>
|
||||||
|
<translation>Oblíbené</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../shopform.ui" line="186"/>
|
||||||
<source>Receipt</source>
|
<source>Receipt</source>
|
||||||
<translation>Účtenka</translation>
|
<translation>Účtenka</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../shopform.ui" line="201"/>
|
<location filename="../shopform.ui" line="231"/>
|
||||||
<source>10%</source>
|
<source>10%</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../shopform.ui" line="260"/>
|
<location filename="../shopform.ui" line="289"/>
|
||||||
<source>0%</source>
|
<source>0%</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../shopform.ui" line="273"/>
|
<location filename="../shopform.ui" line="302"/>
|
||||||
<source>21%</source>
|
<source>21%</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../shopform.ui" line="312"/>
|
<location filename="../shopform.ui" line="340"/>
|
||||||
<source>15%</source>
|
<source>15%</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../shopform.ui" line="361"/>
|
<location filename="../shopform.ui" line="387"/>
|
||||||
<source>Witouth VAT</source>
|
<source>Witouth VAT</source>
|
||||||
<translation>Bez DPH</translation>
|
<translation>Bez DPH</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../shopform.ui" line="371"/>
|
<location filename="../shopform.ui" line="397"/>
|
||||||
<source>VAT</source>
|
<source>VAT</source>
|
||||||
<translation>DPH</translation>
|
<translation>DPH</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../shopform.ui" line="381"/>
|
<location filename="../shopform.ui" line="407"/>
|
||||||
<source>Total</source>
|
<source>Total</source>
|
||||||
<translation>Celkem</translation>
|
<translation>Celkem</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../shopform.ui" line="409"/>
|
<location filename="../shopform.ui" line="435"/>
|
||||||
<source>EET status:</source>
|
<source>EET status:</source>
|
||||||
<translation>EET status:</translation>
|
<translation>EET status:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../shopform.ui" line="425"/>
|
<location filename="../shopform.ui" line="450"/>
|
||||||
<source><a href="#eet">dfghdfg</a></source>
|
<source><a href="#eet">dfghdfg</a></source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../shopform.ui" line="455"/>
|
<location filename="../shopform.ui" line="479"/>
|
||||||
<source>Total:</source>
|
<source>Total:</source>
|
||||||
<translation>Celkem:</translation>
|
<translation>Celkem:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../shopform.ui" line="185"/>
|
<location filename="../shopform.ui" line="627"/>
|
||||||
<location filename="../shopform.ui" line="208"/>
|
<location filename="../shopform.cpp" line="655"/>
|
||||||
<location filename="../shopform.ui" line="218"/>
|
<source>Delete items</source>
|
||||||
<location filename="../shopform.ui" line="228"/>
|
<translation>Smazat položky</translation>
|
||||||
<location filename="../shopform.ui" line="244"/>
|
</message>
|
||||||
<location filename="../shopform.ui" line="280"/>
|
<message>
|
||||||
<location filename="../shopform.ui" line="296"/>
|
<location filename="../shopform.ui" line="630"/>
|
||||||
<location filename="../shopform.ui" line="325"/>
|
<source>Ctrl+Del</source>
|
||||||
<location filename="../shopform.ui" line="335"/>
|
<translation>Ctrl+Del</translation>
|
||||||
<location filename="../shopform.ui" line="351"/>
|
</message>
|
||||||
<location filename="../shopform.ui" line="472"/>
|
<message>
|
||||||
|
<location filename="../shopform.ui" line="215"/>
|
||||||
|
<location filename="../shopform.ui" line="238"/>
|
||||||
|
<location filename="../shopform.ui" line="248"/>
|
||||||
|
<location filename="../shopform.ui" line="258"/>
|
||||||
|
<location filename="../shopform.ui" line="273"/>
|
||||||
|
<location filename="../shopform.ui" line="309"/>
|
||||||
|
<location filename="../shopform.ui" line="324"/>
|
||||||
|
<location filename="../shopform.ui" line="352"/>
|
||||||
|
<location filename="../shopform.ui" line="362"/>
|
||||||
|
<location filename="../shopform.ui" line="377"/>
|
||||||
|
<location filename="../shopform.ui" line="495"/>
|
||||||
<source>0</source>
|
<source>0</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../shopform.ui" line="493"/>
|
<location filename="../shopform.ui" line="49"/>
|
||||||
|
<source>Direct Sell</source>
|
||||||
|
<translation>Přímý prodej</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../shopform.ui" line="516"/>
|
||||||
<source>Temporary Save</source>
|
<source>Temporary Save</source>
|
||||||
<translation>Dočasné uložení</translation>
|
<translation>Dočasné uložení</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../shopform.ui" line="515"/>
|
<location filename="../shopform.ui" line="538"/>
|
||||||
<source>Save</source>
|
<source>Save</source>
|
||||||
<translation>Uložení</translation>
|
<translation>Uložení</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../shopform.ui" line="537"/>
|
<location filename="../shopform.ui" line="560"/>
|
||||||
<source>Load</source>
|
<source>Load</source>
|
||||||
<translation>Načíst</translation>
|
<translation>Načíst</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../shopform.ui" line="559"/>
|
<location filename="../shopform.ui" line="582"/>
|
||||||
<source>Show paid</source>
|
<source>Show paid</source>
|
||||||
<translation>Zobrazit zaplacené</translation>
|
<translation>Zobrazit zaplacené</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../shopform.ui" line="581"/>
|
<location filename="../shopform.ui" line="604"/>
|
||||||
<source>Pay</source>
|
<source>Pay</source>
|
||||||
<translation>Zaplatit</translation>
|
<translation>Zaplatit</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../shopform.cpp" line="149"/>
|
<location filename="../shopform.cpp" line="157"/>
|
||||||
<location filename="../shopform.cpp" line="595"/>
|
<location filename="../shopform.cpp" line="640"/>
|
||||||
<source><a href="#eet">Online</a></source>
|
<source><a href="#eet">Online</a></source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../shopform.cpp" line="149"/>
|
<location filename="../shopform.cpp" line="157"/>
|
||||||
<location filename="../shopform.cpp" line="595"/>
|
<location filename="../shopform.cpp" line="640"/>
|
||||||
<source><a href="#eet">Offline</a></source>
|
<source><a href="#eet">Offline</a></source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../shopform.cpp" line="223"/>
|
<location filename="../shopform.cpp" line="236"/>
|
||||||
<source><< empty >></source>
|
<source><< empty >></source>
|
||||||
<translation><< nevybráno >></translation>
|
<translation><< nevybráno >></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../shopform.cpp" line="655"/>
|
||||||
|
<source>Really delete selected voucher items?</source>
|
||||||
|
<translation>Opravdu chcete smazat vybrané položky?</translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>EET communication error.
|
<source>EET communication error.
|
||||||
</source>
|
</source>
|
||||||
@@ -453,7 +489,9 @@
|
|||||||
<message>
|
<message>
|
||||||
<location filename="../shopoverview.ui" line="52"/>
|
<location filename="../shopoverview.ui" line="52"/>
|
||||||
<location filename="../shopoverview.ui" line="75"/>
|
<location filename="../shopoverview.ui" line="75"/>
|
||||||
<location filename="../shopoverview.ui" line="110"/>
|
<location filename="../shopoverview.ui" line="108"/>
|
||||||
|
<location filename="../shopoverview.ui" line="131"/>
|
||||||
|
<location filename="../shopoverview.ui" line="154"/>
|
||||||
<source>TextLabel</source>
|
<source>TextLabel</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -463,10 +501,20 @@
|
|||||||
<translation>Nezaplaceno v Kč:</translation>
|
<translation>Nezaplaceno v Kč:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../shopoverview.ui" line="91"/>
|
<location filename="../shopoverview.ui" line="90"/>
|
||||||
<source>Unsend to EET:</source>
|
<source>Unsend to EET:</source>
|
||||||
<translation>Neodesláno na EET:</translation>
|
<translation>Neodesláno na EET:</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../shopoverview.ui" line="118"/>
|
||||||
|
<source>Today sales:</source>
|
||||||
|
<translation>Dnešní tržba:</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../shopoverview.ui" line="141"/>
|
||||||
|
<source>Number of sales today:</source>
|
||||||
|
<translation>Dnešní počet prodejů:</translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>ShopSettingsForm</name>
|
<name>ShopSettingsForm</name>
|
||||||
@@ -481,127 +529,148 @@
|
|||||||
<translation>Nastavení rychlé volby</translation>
|
<translation>Nastavení rychlé volby</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/shopsettingsform.ui" line="236"/>
|
<location filename="../settings/shopsettingsform.ui" line="245"/>
|
||||||
<source>...</source>
|
<source>...</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/shopsettingsform.ui" line="126"/>
|
<location filename="../settings/shopsettingsform.ui" line="129"/>
|
||||||
<source>Printer</source>
|
<source>Printer</source>
|
||||||
<translation>Tiskárna</translation>
|
<translation>Tiskárna</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/shopsettingsform.ui" line="89"/>
|
<location filename="../settings/shopsettingsform.ui" line="92"/>
|
||||||
<source>Columns</source>
|
<source>Columns</source>
|
||||||
<translation>Sloupců</translation>
|
<translation>Sloupců</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/shopsettingsform.ui" line="99"/>
|
<location filename="../settings/shopsettingsform.ui" line="102"/>
|
||||||
<source>Rows</source>
|
<source>Rows</source>
|
||||||
<translation>Řádků</translation>
|
<translation>Řádků</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/shopsettingsform.ui" line="109"/>
|
<location filename="../settings/shopsettingsform.ui" line="112"/>
|
||||||
<source>Size</source>
|
<source>Size</source>
|
||||||
<translation>Velikost</translation>
|
<translation>Velikost</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/shopsettingsform.ui" line="132"/>
|
<location filename="../settings/shopsettingsform.ui" line="138"/>
|
||||||
<source>Output device</source>
|
<source>Output device</source>
|
||||||
<translation>Jméno tiskárny</translation>
|
<translation>Jméno tiskárny</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/shopsettingsform.ui" line="142"/>
|
<location filename="../settings/shopsettingsform.ui" line="148"/>
|
||||||
<source>Letters per line</source>
|
<source>Letters per line</source>
|
||||||
<translation>Znaků na řádek</translation>
|
<translation>Znaků na řádek</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/shopsettingsform.ui" line="152"/>
|
<location filename="../settings/shopsettingsform.ui" line="158"/>
|
||||||
<source>Footer text</source>
|
<source>Footer text</source>
|
||||||
<translation>Patička</translation>
|
<translation>Patička</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/shopsettingsform.ui" line="163"/>
|
<location filename="../settings/shopsettingsform.ui" line="169"/>
|
||||||
<source>EET</source>
|
<source>EET</source>
|
||||||
<translation>EET</translation>
|
<translation>EET</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/shopsettingsform.ui" line="169"/>
|
<location filename="../settings/shopsettingsform.ui" line="175"/>
|
||||||
<source>Activate EET</source>
|
<source>Activate EET</source>
|
||||||
<translation>Zapnout podporu EET</translation>
|
<translation>Zapnout podporu EET</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/shopsettingsform.ui" line="181"/>
|
<location filename="../settings/shopsettingsform.ui" line="190"/>
|
||||||
<source>Shop ID</source>
|
<source>Shop ID</source>
|
||||||
<translation>ID provozovny</translation>
|
<translation>ID provozovny</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/shopsettingsform.ui" line="191"/>
|
<location filename="../settings/shopsettingsform.ui" line="200"/>
|
||||||
<source>Cash register ID</source>
|
<source>Cash register ID</source>
|
||||||
<translation>ID zařízení</translation>
|
<translation>ID zařízení</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/shopsettingsform.ui" line="201"/>
|
<location filename="../settings/shopsettingsform.ui" line="210"/>
|
||||||
<source>EET mode</source>
|
<source>EET mode</source>
|
||||||
<translation>EET režim</translation>
|
<translation>EET režim</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/shopsettingsform.ui" line="211"/>
|
<location filename="../settings/shopsettingsform.ui" line="220"/>
|
||||||
<source>Certificate file</source>
|
<source>Certificate file</source>
|
||||||
<translation>Certifikát</translation>
|
<translation>Certifikát</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/shopsettingsform.ui" line="246"/>
|
<location filename="../settings/shopsettingsform.ui" line="255"/>
|
||||||
<source>Private key password</source>
|
<source>Private key password</source>
|
||||||
<translation>Heslo k certifikátu</translation>
|
<translation>Heslo k certifikátu</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/shopsettingsform.ui" line="260"/>
|
<location filename="../settings/shopsettingsform.ui" line="269"/>
|
||||||
<source>Test mode</source>
|
<source>Test mode</source>
|
||||||
<translation>Testovací režim</translation>
|
<translation>Testovací režim</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/shopsettingsform.ui" line="267"/>
|
<location filename="../settings/shopsettingsform.ui" line="276"/>
|
||||||
<source>Communication with playground </source>
|
<source>Communication with playground </source>
|
||||||
<translation>Testovací EET server </translation>
|
<translation>Testovací EET server </translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/shopsettingsform.ui" line="278"/>
|
<location filename="../settings/shopsettingsform.ui" line="287"/>
|
||||||
<source>Other</source>
|
<source>Other</source>
|
||||||
<translation>Jiné</translation>
|
<translation>Jiné</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/shopsettingsform.ui" line="284"/>
|
<location filename="../settings/shopsettingsform.ui" line="293"/>
|
||||||
<source>Rounding</source>
|
<source>Rounding</source>
|
||||||
<translation>Zaokrouhlování</translation>
|
<translation>Zaokrouhlování</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/shopsettingsform.ui" line="290"/>
|
<location filename="../settings/shopsettingsform.ui" line="302"/>
|
||||||
<source>Direction</source>
|
<source>Direction</source>
|
||||||
<translation>Typ</translation>
|
<translation>Typ</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/shopsettingsform.ui" line="300"/>
|
<location filename="../settings/shopsettingsform.ui" line="312"/>
|
||||||
<source>Decimal places</source>
|
<source>Decimal places</source>
|
||||||
<translation>Desetiných míst</translation>
|
<translation>Desetiných míst</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/shopsettingsform.ui" line="313"/>
|
<location filename="../settings/shopsettingsform.ui" line="325"/>
|
||||||
<source>Rounding item text</source>
|
<source>Rounding item text</source>
|
||||||
<translation>Název položky</translation>
|
<translation>Název položky</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/shopsettingsform.cpp" line="27"/>
|
<location filename="../settings/shopsettingsform.ui" line="335"/>
|
||||||
|
<source>Default VAT type</source>
|
||||||
|
<translation>Výchozí sazba daně</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../settings/shopsettingsform.ui" line="348"/>
|
||||||
|
<source>Doub&le print bill</source>
|
||||||
|
<translation>Z&dvojená účtenka</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../settings/shopsettingsform.ui" line="363"/>
|
||||||
|
<source>Item name</source>
|
||||||
|
<translation>Jméno položky</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../settings/shopsettingsform.ui" line="376"/>
|
||||||
|
<source>Show field for item count</source>
|
||||||
|
<translation>Zobrazit pole pro počet položek</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../settings/shopsettingsform.cpp" line="24"/>
|
||||||
<source>Simplifyed</source>
|
<source>Simplifyed</source>
|
||||||
<translation>Zjednodušený</translation>
|
<translation>Zjednodušený</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/shopsettingsform.cpp" line="27"/>
|
<location filename="../settings/shopsettingsform.cpp" line="24"/>
|
||||||
<source>Standard</source>
|
<source>Standard</source>
|
||||||
<translation>Standartní</translation>
|
<translation>Standartní</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settings/shopsettingsform.cpp" line="40"/>
|
<location filename="../settings/shopsettingsform.cpp" line="40"/>
|
||||||
|
<location filename="../settings/shopsettingsform.cpp" line="55"/>
|
||||||
<source>None</source>
|
<source>None</source>
|
||||||
<translation>Žádný</translation>
|
<translation>Žádný</translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -620,6 +689,21 @@
|
|||||||
<source>Mathematic</source>
|
<source>Mathematic</source>
|
||||||
<translation>Matematické</translation>
|
<translation>Matematické</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../settings/shopsettingsform.cpp" line="56"/>
|
||||||
|
<source>High</source>
|
||||||
|
<translation>Vysoká</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../settings/shopsettingsform.cpp" line="57"/>
|
||||||
|
<source>First lower</source>
|
||||||
|
<translation>První snížená</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../settings/shopsettingsform.cpp" line="58"/>
|
||||||
|
<source>Second lower</source>
|
||||||
|
<translation>Druhá snížená</translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>TemporaryReceiptSaveForm</name>
|
<name>TemporaryReceiptSaveForm</name>
|
||||||
|
|||||||
Reference in New Issue
Block a user