Browse Source

fix recurring.cpp

recurring_on
Denio 5 years ago
parent
commit
2dfede617a
  1. 16
      src/recurring.cpp

16
src/recurring.cpp

@ -90,21 +90,21 @@ QString RecurringPaymentInfo::getAmountPretty() const {
} else if (Settings::getInstance()->get_currency_name() == "BTC") {
return currency == "BTC" ? amount.toDecimalBTCString() : amount.toDecimalhushString();
} else if (Settings::getInstance()->get_currency_name() == "CNY") {
return currency == "EUR" ? amount.toDecimalCNYString() : amount.toDecimalhushString();
return currency == "CNY" ? amount.toDecimalCNYString() : amount.toDecimalhushString();
} else if (Settings::getInstance()->get_currency_name() == "RUB") {
return currency == "BTC" ? amount.toDecimalRUBString() : amount.toDecimalhushString();
return currency == "RUB" ? amount.toDecimalRUBString() : amount.toDecimalhushString();
} else if (Settings::getInstance()->get_currency_name() == "CAD") {
return currency == "EUR" ? amount.toDecimalCADString() : amount.toDecimalhushString();
return currency == "CAD" ? amount.toDecimalCADString() : amount.toDecimalhushString();
} else if (Settings::getInstance()->get_currency_name() == "SGD") {
return currency == "BTC" ? amount.toDecimalSGDString() : amount.toDecimalhushString();
return currency == "SGD" ? amount.toDecimalSGDString() : amount.toDecimalhushString();
} else if (Settings::getInstance()->get_currency_name() == "CHF") {
return currency == "EUR" ? amount.toDecimalCHFString() : amount.toDecimalhushString();
return currency == "CHF" ? amount.toDecimalCHFString() : amount.toDecimalhushString();
} else if (Settings::getInstance()->get_currency_name() == "INR") {
return currency == "BTC" ? amount.toDecimalINRString() : amount.toDecimalhushString();
return currency == "INR" ? amount.toDecimalINRString() : amount.toDecimalhushString();
} else if (Settings::getInstance()->get_currency_name() == "GBP") {
return currency == "EUR" ? amount.toDecimalGBPString() : amount.toDecimalhushString();
return currency == "GBP" ? amount.toDecimalGBPString() : amount.toDecimalhushString();
} else if (Settings::getInstance()->get_currency_name() == "AUD") {
return currency == "BTC" ? amount.toDecimalAUDString() : amount.toDecimalhushString();
return currency == "AUD" ? amount.toDecimalAUDString() : amount.toDecimalhushString();
}
}

Loading…
Cancel
Save