Added sell commodity feature.

This commit is contained in:
2016-07-21 16:24:07 +02:00
parent fb6b4fe027
commit 44c74a5cfe
13 changed files with 122 additions and 19 deletions
+2 -1
View File
@@ -39,8 +39,9 @@ int VoucherItem::count() const
void VoucherItem::setCount(int count)
{
int oldCount = m_count;
m_count = count;
emit countChanged();
emit countChanged(oldCount);
}
QDecDouble VoucherItem::unitPrice() const
+1 -1
View File
@@ -63,7 +63,7 @@ public:
void setVoucher(const QWeakPointer<Voucher> &voucher);
signals:
void countChanged();
void countChanged(int oldCount);
private:
friend class odb::access;