Added recalculating receipt on item count changed. Some UI changes.
This commit is contained in:
@@ -7,6 +7,7 @@ VoucherItem::VoucherItem(QObject *parent) : QObject(parent)
|
||||
m_unitPrice = 0;
|
||||
m_count = 0;
|
||||
m_refId = 0;
|
||||
m_vatType = Enums::HIGH;
|
||||
}
|
||||
|
||||
int VoucherItem::id() const
|
||||
@@ -37,6 +38,7 @@ int VoucherItem::count() const
|
||||
void VoucherItem::setCount(int count)
|
||||
{
|
||||
m_count = count;
|
||||
emit countChanged();
|
||||
}
|
||||
|
||||
QDecDouble VoucherItem::unitPrice() const
|
||||
|
||||
Reference in New Issue
Block a user