fix problems from tests
This commit is contained in:
@@ -84,7 +84,7 @@ QDecDouble CommodityData::price() const
|
||||
|
||||
void CommodityData::setPrice(const QDecDouble &price)
|
||||
{
|
||||
m_price = price.toDouble() * DEC_MULTIPLE;
|
||||
m_price = qRound(price.toDouble() * DEC_MULTIPLE);
|
||||
}
|
||||
Enums::VatType CommodityData::vat() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user