Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/wizards/newaccountwizard/kloandetailspage.cpp
Context not available. | |||||
230 | // calculate the number of payments out of the other information | 230 | // calculate the number of payments out of the other information | ||
---|---|---|---|---|---|
231 | val = calc.numPayments(); | 231 | val = calc.numPayments(); | ||
232 | if (val == 0) | 232 | if (val == 0) | ||
233 | throw MYMONEYEXCEPTION("incorrect fincancial calculation"); | 233 | throw MYMONEYEXCEPTION_CSTRING("incorrect fincancial calculation"); | ||
234 | 234 | | |||
235 | // if the number of payments has a fractional part, then we | 235 | // if the number of payments has a fractional part, then we | ||
236 | // round it to the smallest integer and calculate the balloon payment | 236 | // round it to the smallest integer and calculate the balloon payment | ||
Context not available. | |||||
262 | || (moneyLend && val > 0 && qAbs(val) > qAbs(calc.payment()))) { | 262 | || (moneyLend && val > 0 && qAbs(val) > qAbs(calc.payment()))) { | ||
263 | // case a) | 263 | // case a) | ||
264 | qDebug("Future Value is %f", val); | 264 | qDebug("Future Value is %f", val); | ||
265 | throw MYMONEYEXCEPTION("incorrect fincancial calculation"); | 265 | throw MYMONEYEXCEPTION_CSTRING("incorrect fincancial calculation"); | ||
266 | 266 | | |||
267 | } else if ((moneyBorrowed && val < 0 && qAbs(val) <= qAbs(calc.payment())) | 267 | } else if ((moneyBorrowed && val < 0 && qAbs(val) <= qAbs(calc.payment())) | ||
268 | || (moneyLend && val > 0 && qAbs(val) <= qAbs(calc.payment()))) { | 268 | || (moneyLend && val > 0 && qAbs(val) <= qAbs(calc.payment()))) { | ||
Context not available. | |||||
275 | 275 | | |||
276 | if (!d->ui->m_balloonAmount->lineedit()->text().isEmpty()) { | 276 | if (!d->ui->m_balloonAmount->lineedit()->text().isEmpty()) { | ||
277 | if ((d->ui->m_balloonAmount->value().abs() - refVal.abs()).abs().toDouble() > 1) { | 277 | if ((d->ui->m_balloonAmount->value().abs() - refVal.abs()).abs().toDouble() > 1) { | ||
278 | throw MYMONEYEXCEPTION("incorrect fincancial calculation"); | 278 | throw MYMONEYEXCEPTION_CSTRING("incorrect fincancial calculation"); | ||
279 | } | 279 | } | ||
280 | result = i18n("KMyMoney has successfully verified your loan information."); | 280 | result = i18n("KMyMoney has successfully verified your loan information."); | ||
281 | } | 281 | } | ||
Context not available. |