Added support for saving receipts.
This commit is contained in:
@@ -113,7 +113,17 @@ void VoucherItem::setPriceWitouthVat(QDecDouble priceWitouthVat)
|
||||
|
||||
QDecDouble VoucherItem::vatAmount() const
|
||||
{
|
||||
return m_price - m_priceWitouthVat;
|
||||
return TO_DEC(m_price) - TO_DEC(m_priceWitouthVat);
|
||||
}
|
||||
|
||||
QWeakPointer<Voucher> VoucherItem::voucher() const
|
||||
{
|
||||
return m_voucher;
|
||||
}
|
||||
|
||||
void VoucherItem::setVoucher(const QWeakPointer<Voucher> &voucher)
|
||||
{
|
||||
m_voucher = voucher;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user