Merge branch 'master' of https://git.bukova.info/repos/git/prodejna
# Conflicts: # shop/receiptsaveform.cpp # shop/shopform.cppprint
commit
abed951e1f
@ -0,0 +1,62 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE TS>
|
||||||
|
<TS version="2.1" language="cs_CZ">
|
||||||
|
<context>
|
||||||
|
<name>AddressbookForm</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../addressbookform.ui" line="14"/>
|
||||||
|
<source>Form</source>
|
||||||
|
<translation></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../addressbookform.ui" line="20"/>
|
||||||
|
<source>Title</source>
|
||||||
|
<translation>Titul</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../addressbookform.ui" line="30"/>
|
||||||
|
<source>First Name</source>
|
||||||
|
<translation>Křestní jméno</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../addressbookform.ui" line="62"/>
|
||||||
|
<source>Last Name</source>
|
||||||
|
<translation>Příjmení</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../addressbookform.ui" line="69"/>
|
||||||
|
<source>Day of Birth</source>
|
||||||
|
<translation>Datum narození</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../addressbookform.ui" line="76"/>
|
||||||
|
<source>ID Card Number</source>
|
||||||
|
<translation>Číslo dokladu totožnosti</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../addressbookform.ui" line="83"/>
|
||||||
|
<source>City</source>
|
||||||
|
<translation>Město</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../addressbookform.ui" line="90"/>
|
||||||
|
<source>ZTP</source>
|
||||||
|
<translation>ZTP</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../addressbookform.ui" line="97"/>
|
||||||
|
<source>Street</source>
|
||||||
|
<translation>Ulice</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../addressbookform.ui" line="107"/>
|
||||||
|
<source>House Number</source>
|
||||||
|
<translation>Číslo popisné</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../addressbookform.ui" line="114"/>
|
||||||
|
<source>ZIP</source>
|
||||||
|
<translation>PSČ</translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
</TS>
|
Binary file not shown.
@ -0,0 +1,31 @@
|
|||||||
|
#include "commodityservice.h"
|
||||||
|
|
||||||
|
#include "commodity-odb.hxx"
|
||||||
|
|
||||||
|
CommodityService::CommodityService()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
QList<QSharedPointer<ShopItem> > CommodityService::shopItems()
|
||||||
|
{
|
||||||
|
QList<QSharedPointer<ShopItem> > ret;
|
||||||
|
|
||||||
|
foreach (QSharedPointer<CommodityData> data, all()) {
|
||||||
|
ret.append(qSharedPointerDynamicCast<ShopItem, CommodityData>(data));
|
||||||
|
}
|
||||||
|
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CommodityService::addedToVoucher(int itemId, int countAdded)
|
||||||
|
{
|
||||||
|
QSharedPointer<CommodityData> commodity = loadById(itemId);
|
||||||
|
|
||||||
|
if (!commodity.isNull())
|
||||||
|
{
|
||||||
|
commodity->setCount(commodity->count() - countAdded);
|
||||||
|
}
|
||||||
|
|
||||||
|
update(commodity);
|
||||||
|
}
|
@ -0,0 +1,19 @@
|
|||||||
|
#ifndef COMMODITYSERVICE_H
|
||||||
|
#define COMMODITYSERVICE_H
|
||||||
|
|
||||||
|
#include <service.h>
|
||||||
|
#include <isellableservice.h>
|
||||||
|
#include "data/commodity-data.h"
|
||||||
|
|
||||||
|
class CommodityService : public Service<CommodityData>, public ISellableService
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
CommodityService();
|
||||||
|
|
||||||
|
// ISellableService interface
|
||||||
|
public:
|
||||||
|
QList<QSharedPointer<ShopItem> > shopItems() override;
|
||||||
|
void addedToVoucher(int itemId, int countAdded) override;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // COMMODITYSERVICE_H
|
@ -0,0 +1,85 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE TS>
|
||||||
|
<TS version="2.1" language="cs_CZ">
|
||||||
|
<context>
|
||||||
|
<name>CommodityForm</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../commodityform.ui" line="14"/>
|
||||||
|
<source>Form</source>
|
||||||
|
<translation>Zboží</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../commodityform.ui" line="20"/>
|
||||||
|
<source>Name</source>
|
||||||
|
<translation>Název</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../commodityform.ui" line="30"/>
|
||||||
|
<source>Short Name</source>
|
||||||
|
<translation>Zobrazit na účtence</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../commodityform.ui" line="40"/>
|
||||||
|
<source>Code</source>
|
||||||
|
<translation>Kód</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../commodityform.ui" line="50"/>
|
||||||
|
<source>Type</source>
|
||||||
|
<translation>Druh</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../commodityform.ui" line="57"/>
|
||||||
|
<source>Price</source>
|
||||||
|
<translation>Cena</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../commodityform.ui" line="64"/>
|
||||||
|
<source>Vat</source>
|
||||||
|
<translation>DPH</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../commodityform.ui" line="71"/>
|
||||||
|
<source>Count</source>
|
||||||
|
<translation>Počet</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../commodityform.cpp" line="18"/>
|
||||||
|
<source>None</source>
|
||||||
|
<translation>Žádná</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../commodityform.cpp" line="19"/>
|
||||||
|
<source>High</source>
|
||||||
|
<translation>Vysoká</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../commodityform.cpp" line="20"/>
|
||||||
|
<source>First Lower</source>
|
||||||
|
<translation>První snížená</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../commodityform.cpp" line="21"/>
|
||||||
|
<source>Second Lower</source>
|
||||||
|
<translation>Druhá snížená</translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>CommoditySettingsForm</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../commoditysettingsform.ui" line="14"/>
|
||||||
|
<source>Form</source>
|
||||||
|
<translation></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../commoditysettingsform.ui" line="26"/>
|
||||||
|
<source>+</source>
|
||||||
|
<translation>+</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../commoditysettingsform.ui" line="37"/>
|
||||||
|
<source>-</source>
|
||||||
|
<translation>-</translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
</TS>
|
@ -0,0 +1,82 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE TS>
|
||||||
|
<TS version="2.1" language="cs_CZ">
|
||||||
|
<context>
|
||||||
|
<name>AccServiceForm</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../accserviceform.ui" line="14"/>
|
||||||
|
<source>Form</source>
|
||||||
|
<translation>Služba</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../accserviceform.ui" line="20"/>
|
||||||
|
<source>Service Name</source>
|
||||||
|
<translation>Název</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../accserviceform.ui" line="30"/>
|
||||||
|
<source>Price</source>
|
||||||
|
<translation>Cena</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../accserviceform.ui" line="37"/>
|
||||||
|
<source>Service Type</source>
|
||||||
|
<translation>Druh</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../accserviceform.ui" line="47"/>
|
||||||
|
<source>Sale Possible</source>
|
||||||
|
<translation>Umožnit slevu</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../accserviceform.ui" line="54"/>
|
||||||
|
<source>Active</source>
|
||||||
|
<translation>Aktivní</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../accserviceform.ui" line="64"/>
|
||||||
|
<source>ServiceCode</source>
|
||||||
|
<translation>Kód</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../accserviceform.ui" line="74"/>
|
||||||
|
<source>Vat Type</source>
|
||||||
|
<translation>Sazba DPH</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../accserviceform.cpp" line="18"/>
|
||||||
|
<source>Car</source>
|
||||||
|
<translation>Vozidlo</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../accserviceform.cpp" line="18"/>
|
||||||
|
<source>Tent</source>
|
||||||
|
<translation>Stan</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../accserviceform.cpp" line="18"/>
|
||||||
|
<source>OTHER</source>
|
||||||
|
<translation>Ostatní</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../accserviceform.cpp" line="21"/>
|
||||||
|
<source>None</source>
|
||||||
|
<translation>Žádná</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../accserviceform.cpp" line="22"/>
|
||||||
|
<source>High</source>
|
||||||
|
<translation>Vysoká</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../accserviceform.cpp" line="23"/>
|
||||||
|
<source>First Lower</source>
|
||||||
|
<translation>První snížená</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../accserviceform.cpp" line="24"/>
|
||||||
|
<source>Second Lower</source>
|
||||||
|
<translation>Druhá snížená</translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
</TS>
|
@ -0,0 +1,69 @@
|
|||||||
|
#include "favorititem.h"
|
||||||
|
#include <define.h>
|
||||||
|
|
||||||
|
FavoritItem::FavoritItem()
|
||||||
|
{
|
||||||
|
m_id = 0;
|
||||||
|
m_vatType = Enums::NONE;
|
||||||
|
m_unitPrice = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int FavoritItem::id()
|
||||||
|
{
|
||||||
|
return m_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
void FavoritItem::setId(int id)
|
||||||
|
{
|
||||||
|
m_id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
QString FavoritItem::name()
|
||||||
|
{
|
||||||
|
return m_name;
|
||||||
|
}
|
||||||
|
|
||||||
|
void FavoritItem::setName(const QString &name)
|
||||||
|
{
|
||||||
|
m_name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
QDecDouble FavoritItem::unitPrice()
|
||||||
|
{
|
||||||
|
return TO_DEC(m_unitPrice);
|
||||||
|
}
|
||||||
|
|
||||||
|
void FavoritItem::setUnitPrice(QDecDouble unitPrice)
|
||||||
|
{
|
||||||
|
m_unitPrice = FROM_DEC(unitPrice);
|
||||||
|
}
|
||||||
|
|
||||||
|
Enums::VatType FavoritItem::vatType()
|
||||||
|
{
|
||||||
|
return m_vatType;
|
||||||
|
}
|
||||||
|
|
||||||
|
void FavoritItem::setVatType(const Enums::VatType &vatType)
|
||||||
|
{
|
||||||
|
m_vatType = vatType;
|
||||||
|
}
|
||||||
|
|
||||||
|
QString FavoritItem::pluginId()
|
||||||
|
{
|
||||||
|
return m_pluginId;
|
||||||
|
}
|
||||||
|
|
||||||
|
void FavoritItem::setPluginId(const QString &pluginId)
|
||||||
|
{
|
||||||
|
m_pluginId = pluginId;
|
||||||
|
}
|
||||||
|
|
||||||
|
QString FavoritItem::favButtonName() const
|
||||||
|
{
|
||||||
|
return m_favButtonName;
|
||||||
|
}
|
||||||
|
|
||||||
|
void FavoritItem::setFavButtonName(const QString &favButtonName)
|
||||||
|
{
|
||||||
|
m_favButtonName = favButtonName;
|
||||||
|
}
|
@ -0,0 +1,62 @@
|
|||||||
|
#ifndef FAVORITITEM_H
|
||||||
|
#define FAVORITITEM_H
|
||||||
|
|
||||||
|
#include <QObject>
|
||||||
|
#include <QSharedPointer>
|
||||||
|
#include <QString>
|
||||||
|
#include <QDecDouble.hh>
|
||||||
|
#include <enums.h>
|
||||||
|
#include <ishopitem.h>
|
||||||
|
#include <odb/core.hxx>
|
||||||
|
|
||||||
|
class IShopItem;
|
||||||
|
|
||||||
|
#pragma db object
|
||||||
|
class FavoritItem : public QObject, public IShopItem
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
Q_PROPERTY(int id READ id WRITE setId)
|
||||||
|
Q_PROPERTY(QString name READ name WRITE setName)
|
||||||
|
Q_PROPERTY(QDecDouble unitPrice READ unitPrice WRITE setUnitPrice)
|
||||||
|
Q_PROPERTY(Enums::VatType vatType READ vatType WRITE setVatType)
|
||||||
|
Q_PROPERTY(QString pluginId READ pluginId WRITE setPluginId)
|
||||||
|
Q_PROPERTY(QString favButtonName READ favButtonName WRITE setFavButtonName)
|
||||||
|
|
||||||
|
public:
|
||||||
|
FavoritItem();
|
||||||
|
|
||||||
|
// IShopItem interface
|
||||||
|
public:
|
||||||
|
int id() override;
|
||||||
|
void setId(int id);
|
||||||
|
|
||||||
|
QString name() override;
|
||||||
|
void setName(const QString &name);
|
||||||
|
|
||||||
|
QDecDouble unitPrice() override;
|
||||||
|
void setUnitPrice(QDecDouble unitPrice);
|
||||||
|
|
||||||
|
Enums::VatType vatType() override;
|
||||||
|
void setVatType(const Enums::VatType &vatType);
|
||||||
|
|
||||||
|
QString pluginId() override;
|
||||||
|
void setPluginId(const QString &pluginId);
|
||||||
|
|
||||||
|
QString favButtonName() const;
|
||||||
|
void setFavButtonName(const QString &favButtonName);
|
||||||
|
|
||||||
|
private:
|
||||||
|
friend class odb::access;
|
||||||
|
#pragma db id auto
|
||||||
|
int m_id;
|
||||||
|
QString m_name;
|
||||||
|
int m_unitPrice;
|
||||||
|
Enums::VatType m_vatType;
|
||||||
|
QString m_pluginId;
|
||||||
|
QString m_favButtonName;
|
||||||
|
};
|
||||||
|
|
||||||
|
typedef QSharedPointer<FavoritItem> FavoritItemPtr;
|
||||||
|
|
||||||
|
#endif // FAVORITITEM_H
|
@ -0,0 +1,19 @@
|
|||||||
|
#include "eetbatchdialog.h"
|
||||||
|
#include "ui_eetbatchdialog.h"
|
||||||
|
|
||||||
|
EetBatchDialog::EetBatchDialog(QWidget *parent) :
|
||||||
|
QDialog(parent),
|
||||||
|
ui(new Ui::EetBatchDialog)
|
||||||
|
{
|
||||||
|
ui->setupUi(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
EetBatchDialog::~EetBatchDialog()
|
||||||
|
{
|
||||||
|
delete ui;
|
||||||
|
}
|
||||||
|
|
||||||
|
void EetBatchDialog::addLog(const QString &log)
|
||||||
|
{
|
||||||
|
ui->logView->setPlainText(ui->logView->toPlainText() + log);
|
||||||
|
}
|
@ -0,0 +1,23 @@
|
|||||||
|
#ifndef EETBATCHDIALOG_H
|
||||||
|
#define EETBATCHDIALOG_H
|
||||||
|
|
||||||
|
#include <QDialog>
|
||||||
|
|
||||||
|
namespace Ui {
|
||||||
|
class EetBatchDialog;
|
||||||
|
}
|
||||||
|
|
||||||
|
class EetBatchDialog : public QDialog
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
explicit EetBatchDialog(QWidget *parent = 0);
|
||||||
|
~EetBatchDialog();
|
||||||
|
void addLog(const QString &log);
|
||||||
|
|
||||||
|
private:
|
||||||
|
Ui::EetBatchDialog *ui;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // EETBATCHDIALOG_H
|
@ -0,0 +1,74 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<ui version="4.0">
|
||||||
|
<class>EetBatchDialog</class>
|
||||||
|
<widget class="QDialog" name="EetBatchDialog">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>324</width>
|
||||||
|
<height>272</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string>EET batch send</string>
|
||||||
|
</property>
|
||||||
|
<property name="modal">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
|
<item>
|
||||||
|
<widget class="QPlainTextEdit" name="logView">
|
||||||
|
<property name="readOnly">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QDialogButtonBox" name="buttonBox">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="standardButtons">
|
||||||
|
<set>QDialogButtonBox::Close</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<resources/>
|
||||||
|
<connections>
|
||||||
|
<connection>
|
||||||
|
<sender>buttonBox</sender>
|
||||||
|
<signal>accepted()</signal>
|
||||||
|
<receiver>EetBatchDialog</receiver>
|
||||||
|
<slot>accept()</slot>
|
||||||
|
<hints>
|
||||||
|
<hint type="sourcelabel">
|
||||||
|
<x>248</x>
|
||||||
|
<y>254</y>
|
||||||
|
</hint>
|
||||||
|
<hint type="destinationlabel">
|
||||||
|
<x>157</x>
|
||||||
|
<y>274</y>
|
||||||
|
</hint>
|
||||||
|
</hints>
|
||||||
|
</connection>
|
||||||
|
<connection>
|
||||||
|
<sender>buttonBox</sender>
|
||||||
|
<signal>rejected()</signal>
|
||||||
|
<receiver>EetBatchDialog</receiver>
|
||||||
|
<slot>reject()</slot>
|
||||||
|
<hints>
|
||||||
|
<hint type="sourcelabel">
|
||||||
|
<x>316</x>
|
||||||
|
<y>260</y>
|
||||||
|
</hint>
|
||||||
|
<hint type="destinationlabel">
|
||||||
|
<x>286</x>
|
||||||
|
<y>274</y>
|
||||||
|
</hint>
|
||||||
|
</hints>
|
||||||
|
</connection>
|
||||||
|
</connections>
|
||||||
|
</ui>
|
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" ?><svg clip-rule="evenodd" fill-rule="evenodd" image-rendering="optimizeQuality" shape-rendering="geometricPrecision" text-rendering="geometricPrecision" viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg"><defs><style type="text/css"><![CDATA[
|
||||||
|
.str1 {stroke:#434242;stroke-width:7.5;stroke-linejoin:round}
|
||||||
|
.str0 {stroke:#434242;stroke-width:10;stroke-linejoin:round}
|
||||||
|
.fil0 {fill:#434242}
|
||||||
|
.fil1 {fill:#DDDEDE}
|
||||||
|
.fil2 {fill:#FFFFFF}
|
||||||
|
.fil3 {fill:url(#id0)}
|
||||||
|
]]></style><linearGradient gradientUnits="userSpaceOnUse" id="id0" x1="459.999" x2="39.999" y1="378.236" y2="378.236"><stop offset="0" stop-color="#008BFF"/><stop offset="1" stop-color="#0af"/></linearGradient></defs><g id="Layer_x0020_1"><polygon class="fil0 str0" points="40,316 460,316 400,220 100,220"/><rect class="fil1 str1" height="260" rx="20" ry="20" transform="matrix(0 .846 .846 0 140.002 62.309)" width="420"/><polygon class="fil2 str1" points="140,397 140,79 275,240"/><path class="fil2 str1" d="M322 418h21c9 0 17-8 17-17v-322c0-9-8-17-17-17h-21l-93 161c-9 13-9 21 0 34l93 161z"/><path class="fil3 str0" d="M40 316h130v39c0 8 7 15 15 15h130c8 0 15-7 15-15v-39h130v99c0 14-11 25-25 25h-370c-14 0-25-11-25-25v-99z"/></g></svg>
|
After Width: | Height: | Size: 1.2 KiB |
@ -0,0 +1,5 @@
|
|||||||
|
#include "isellableservice.h"
|
||||||
|
|
||||||
|
ISellableService::ISellableService()
|
||||||
|
{
|
||||||
|
}
|
@ -0,0 +1,6 @@
|
|||||||
|
#include "favoriteservice.h"
|
||||||
|
|
||||||
|
FavoriteService::FavoriteService()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
#ifndef FAVORITESERVICE_H
|
||||||
|
#define FAVORITESERVICE_H
|
||||||
|
|
||||||
|
#include <core.h>
|
||||||
|
#include "data/favorititem.h"
|
||||||
|
|
||||||
|
class FavoriteService : public Service<FavoritItem>
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
FavoriteService();
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // FAVORITESERVICE_H
|
@ -0,0 +1,6 @@
|
|||||||
|
#include "shopitem.h"
|
||||||
|
|
||||||
|
ShopItem::ShopItem(QObject *parent) : QObject(parent)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,37 @@
|
|||||||
|
#ifndef SHOPITEM_H
|
||||||
|
#define SHOPITEM_H
|
||||||
|
|
||||||
|
#include <QObject>
|
||||||
|
|
||||||
|
#include "shop_global.h"
|
||||||
|
#include "ishopitem.h"
|
||||||
|
|
||||||
|
class SHOPSHARED_EXPORT ShopItem : public QObject, public IShopItem
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
Q_PROPERTY(QString code READ code)
|
||||||
|
Q_PROPERTY(QString name READ name)
|
||||||
|
Q_PROPERTY(QDecDouble unitPrice READ unitPrice)
|
||||||
|
Q_PROPERTY(Enums::VatType vatType READ vatType)
|
||||||
|
|
||||||
|
public:
|
||||||
|
explicit ShopItem(QObject *parent = 0);
|
||||||
|
|
||||||
|
signals:
|
||||||
|
|
||||||
|
public slots:
|
||||||
|
|
||||||
|
// IShopItem interface
|
||||||
|
public:
|
||||||
|
virtual int id() override { return 0; }
|
||||||
|
virtual QString code() { return ""; }
|
||||||
|
virtual QString name() override { return ""; }
|
||||||
|
virtual QDecDouble unitPrice() override { return QDecDouble(); }
|
||||||
|
virtual Enums::VatType vatType() override { return Enums::NONE; }
|
||||||
|
virtual QString pluginId() override { return ""; }
|
||||||
|
};
|
||||||
|
|
||||||
|
typedef QSharedPointer<ShopItem> ShopItemPtr;
|
||||||
|
|
||||||
|
#endif // SHOPITEM_H
|
@ -0,0 +1,319 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE TS>
|
||||||
|
<TS version="2.1" language="cs_CZ">
|
||||||
|
<context>
|
||||||
|
<name>DirectSaleForm</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../directsaleform.ui" line="14"/>
|
||||||
|
<source>Form</source>
|
||||||
|
<translation>Zboží</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../directsaleform.ui" line="20"/>
|
||||||
|
<source>Commodity Name</source>
|
||||||
|
<translation>Název</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../directsaleform.ui" line="30"/>
|
||||||
|
<source>Price</source>
|
||||||
|
<translation>Cena</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../directsaleform.ui" line="44"/>
|
||||||
|
<source>Count</source>
|
||||||
|
<translation>Počet</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../directsaleform.ui" line="58"/>
|
||||||
|
<source>VAT rate</source>
|
||||||
|
<translation>Sazba DPH</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../directsaleform.cpp" line="17"/>
|
||||||
|
<source>None</source>
|
||||||
|
<translation>Žádná</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../directsaleform.cpp" line="18"/>
|
||||||
|
<source>High</source>
|
||||||
|
<translation>Vysoká</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../directsaleform.cpp" line="19"/>
|
||||||
|
<source>First Lower</source>
|
||||||
|
<translation>První snížená</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../directsaleform.cpp" line="20"/>
|
||||||
|
<source>Second Lower</source>
|
||||||
|
<translation>Druhá snížená</translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>PayDialog</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../paydialog.ui" line="14"/>
|
||||||
|
<source>Recieve money</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../paydialog.ui" line="30"/>
|
||||||
|
<source>Total:</source>
|
||||||
|
<translation type="unfinished">Celkem:</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../paydialog.ui" line="44"/>
|
||||||
|
<location filename="../paydialog.ui" line="101"/>
|
||||||
|
<source>0</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../paydialog.ui" line="59"/>
|
||||||
|
<source>Recieved</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../paydialog.ui" line="89"/>
|
||||||
|
<source>Return</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>PaydVouchersDialog</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../paydvouchersdialog.ui" line="14"/>
|
||||||
|
<source>Paied vouchers</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../paydvouchersdialog.ui" line="29"/>
|
||||||
|
<source>Print receipt</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../paydvouchersdialog.ui" line="55"/>
|
||||||
|
<location filename="../paydvouchersdialog.cpp" line="51"/>
|
||||||
|
<source>Save receipt</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../paydvouchersdialog.ui" line="58"/>
|
||||||
|
<source>...</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../paydvouchersdialog.ui" line="104"/>
|
||||||
|
<source>Items</source>
|
||||||
|
<translation type="unfinished">Položky</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../paydvouchersdialog.ui" line="137"/>
|
||||||
|
<source>Total:</source>
|
||||||
|
<translation type="unfinished">Celkem:</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../paydvouchersdialog.ui" line="157"/>
|
||||||
|
<source>0</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../paydvouchersdialog.cpp" line="51"/>
|
||||||
|
<source>Text files (*.txt)</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>ReceiptLoadForm</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../receiptloadform.ui" line="14"/>
|
||||||
|
<source>Dialog</source>
|
||||||
|
<translation></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../receiptloadform.ui" line="20"/>
|
||||||
|
<source>Receipts</source>
|
||||||
|
<translation>Účtenky</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../receiptloadform.ui" line="29"/>
|
||||||
|
<source>Search</source>
|
||||||
|
<translation>Hledat</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../receiptloadform.ui" line="42"/>
|
||||||
|
<source>Items</source>
|
||||||
|
<translation>Položky</translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>ReceiptSaveForm</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../receiptsaveform.ui" line="33"/>
|
||||||
|
<source>Existing Receipts</source>
|
||||||
|
<translation>Přidat k již uložené</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../receiptsaveform.ui" line="39"/>
|
||||||
|
<source>Search</source>
|
||||||
|
<translation>Hledat</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>GroupBox</source>
|
||||||
|
<translation type="vanished">Uložit novou</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../receiptsaveform.ui" line="14"/>
|
||||||
|
<source>Save receipt</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../receiptsaveform.ui" line="23"/>
|
||||||
|
<source>Add to existing</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../receiptsaveform.ui" line="62"/>
|
||||||
|
<source>Save as new</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../receiptsaveform.ui" line="69"/>
|
||||||
|
<source>New receipt</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../receiptsaveform.ui" line="78"/>
|
||||||
|
<source>Name</source>
|
||||||
|
<translation>Název</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../receiptsaveform.ui" line="88"/>
|
||||||
|
<source>Description</source>
|
||||||
|
<translation>Popis</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../receiptsaveform.ui" line="98"/>
|
||||||
|
<source>Search Contacts</source>
|
||||||
|
<translation>Vyhledat kontakt</translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>ShopForm</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../shopform.ui" line="14"/>
|
||||||
|
<source>Form</source>
|
||||||
|
<translation></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../shopform.ui" line="50"/>
|
||||||
|
<source>Commodity</source>
|
||||||
|
<translation>Zboží</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../shopform.ui" line="73"/>
|
||||||
|
<source>Count</source>
|
||||||
|
<translation>Počet</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../shopform.ui" line="99"/>
|
||||||
|
<source>Add Item</source>
|
||||||
|
<translation>Přidat položku</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../shopform.ui" line="135"/>
|
||||||
|
<source>Direct Sale</source>
|
||||||
|
<translation>Přímý prodej</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../shopform.ui" line="148"/>
|
||||||
|
<source>Ctrl+D</source>
|
||||||
|
<translation></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../shopform.ui" line="221"/>
|
||||||
|
<source>Receipt</source>
|
||||||
|
<translation>Účtenka</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../shopform.ui" line="257"/>
|
||||||
|
<source>Total:</source>
|
||||||
|
<translation>Celkem:</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../shopform.ui" line="274"/>
|
||||||
|
<source>0</source>
|
||||||
|
<translation></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../shopform.ui" line="295"/>
|
||||||
|
<source>Temporary Save</source>
|
||||||
|
<translation>Dočasné uložení</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../shopform.ui" line="317"/>
|
||||||
|
<source>Save</source>
|
||||||
|
<translation>Uložení</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../shopform.ui" line="339"/>
|
||||||
|
<source>Load</source>
|
||||||
|
<translation>Načíst</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../shopform.ui" line="361"/>
|
||||||
|
<source>Show paied</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../shopform.ui" line="383"/>
|
||||||
|
<source>Pay</source>
|
||||||
|
<translation>Zaplatit</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../shopform.cpp" line="84"/>
|
||||||
|
<source><< empty >></source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>ShopSettingsForm</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../settings/shopsettingsform.ui" line="14"/>
|
||||||
|
<source>Form</source>
|
||||||
|
<translation type="unfinished">Zboží</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../settings/shopsettingsform.ui" line="20"/>
|
||||||
|
<source>Printer</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../settings/shopsettingsform.ui" line="26"/>
|
||||||
|
<source>Output device</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../settings/shopsettingsform.ui" line="36"/>
|
||||||
|
<source>Letters per line</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../settings/shopsettingsform.ui" line="46"/>
|
||||||
|
<source>Footer text</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>TemporaryReceiptSaveForm</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../temporaryreceiptsaveform.ui" line="14"/>
|
||||||
|
<source>Dialog</source>
|
||||||
|
<translation>Dočasné uložení</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../temporaryreceiptsaveform.ui" line="20"/>
|
||||||
|
<source>Temporary Receipt Name</source>
|
||||||
|
<translation>Název dočasně uložené účtenky</translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
</TS>
|
Loading…
Reference in New Issue