--- ./old_khomeview_p.h 2022-07-30 11:40:15.000000000 +0300 +++ ./khomeview_p.h 2024-02-03 14:49:07.303025200 +0300 @@ -169,6 +169,8 @@ /** * Print an account and its balance and limit + * + * value, valueToMinBal - in currency of acc, not in base currency */ void showAccountEntry(const MyMoneyAccount& acc, const MyMoneyMoney& value, const MyMoneyMoney& valueToMinBal, const bool showMinBal) { @@ -181,6 +183,17 @@ //format amounts amount = MyMoneyUtils::formatMoney(value, acc, currency); amount.replace(QChar(' '), " "); + + if (acc.currencyId() != file->baseCurrency().id()) { + const auto curPrice = file->price(acc.tradingCurrencyId(), file->baseCurrency().id(), QDate::currentDate()); + const auto curRate = curPrice.rate(file->baseCurrency().id()); + auto baseValue = value * curRate; + baseValue = baseValue.convert(file->baseCurrency().smallestAccountFraction()); + QString amountBaseCurrency = MyMoneyUtils::formatMoney(baseValue, file->baseCurrency()); + amountBaseCurrency.replace(QChar(' '), " "); + amount = amount + " (" + amountBaseCurrency + ")"; + } + if (showMinBal) { amountToMinBal = MyMoneyUtils::formatMoney(valueToMinBal, acc, currency); amountToMinBal.replace(QChar(' '), " ");