mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 00:12:11 +08:00
allow set base amount in exchange rate page
This commit is contained in:
@@ -81,13 +81,7 @@ export function getExchangedAmount(state) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const exchangeRate = parseFloat(toCurrencyExchangeRate.rate) / parseFloat(fromCurrencyExchangeRate.rate);
|
||||
|
||||
if (!utils.isNumber(exchangeRate)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return amount * exchangeRate;
|
||||
return utils.getExchangedAmount(amount, fromCurrencyExchangeRate.rate, toCurrencyExchangeRate.rate)
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user