All Values are now in fix point
This commit is contained in:
@@ -142,12 +142,12 @@ void XMLImportEngine::LoadAccount(const QXmlAttributes& attrs)
|
||||
void XMLImportEngine::LoadAccountAmount(const QXmlAttributes& attrs)
|
||||
{
|
||||
AccountAmount accountAmount;
|
||||
double amount;
|
||||
int amount;
|
||||
|
||||
accountAmount.account = attrs.value("account").toInt();
|
||||
accountAmount.month = attrs.value("month").toInt();
|
||||
accountAmount.year = attrs.value("year").toInt();
|
||||
amount = attrs.value("amount").toDouble();
|
||||
amount = attrs.value("amount").toInt();
|
||||
|
||||
_accountAmounts[accountAmount] = amount;
|
||||
}
|
||||
@@ -210,7 +210,7 @@ void XMLImportEngine::LoadOperation(const QXmlAttributes& attrs)
|
||||
op.day = attrs.value("day").toInt();
|
||||
op.month = attrs.value("month").toInt();
|
||||
op.year = attrs.value("year").toInt();
|
||||
op.amount = attrs.value("amount").toDouble();
|
||||
op.amount = attrs.value("amount").toInt();
|
||||
op.description = attrs.value("description");
|
||||
op.category = attrs.value("category").toInt();
|
||||
op.category = (attrs.value("fix_cost") == "1");
|
||||
|
||||
Reference in New Issue
Block a user