mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-16 07:57:33 +08:00
sort currencies in exchange rates page
This commit is contained in:
+27
-1
@@ -1250,6 +1250,29 @@ const defaultCurrency = allCurrencies.USD.code;
|
||||
const defaultCurrencyDisplayType = allCurrencyDisplayType.SymbolBeforeAmount;
|
||||
const defaultCurrencyDisplayTypeValue = 0;
|
||||
|
||||
const allCurrencySortingTypes = {
|
||||
Name: {
|
||||
type: 0,
|
||||
name: 'Currency Name'
|
||||
},
|
||||
CurrencyCode: {
|
||||
type: 1,
|
||||
name: 'Currency Code'
|
||||
},
|
||||
ExchangeRate: {
|
||||
type: 2,
|
||||
name: 'Exchange Rate'
|
||||
}
|
||||
};
|
||||
|
||||
const allCurrencySortingTypesArray = [
|
||||
allCurrencySortingTypes.Name,
|
||||
allCurrencySortingTypes.CurrencyCode,
|
||||
allCurrencySortingTypes.ExchangeRate
|
||||
]
|
||||
|
||||
const defaultCurrencySortingType = allCurrencySortingTypes.Name.type;
|
||||
|
||||
export default {
|
||||
parentAccountCurrencyPlaceholder: parentAccountCurrencyPlaceholder,
|
||||
defaultCurrencySymbol: defaultCurrencySymbol,
|
||||
@@ -1261,5 +1284,8 @@ export default {
|
||||
allCurrencyDisplayTypeArray: allCurrencyDisplayTypeArray,
|
||||
allCurrencyDisplayTypeMap: allCurrencyDisplayTypeMap,
|
||||
defaultCurrencyDisplayType: defaultCurrencyDisplayType,
|
||||
defaultCurrencyDisplayTypeValue: defaultCurrencyDisplayTypeValue
|
||||
defaultCurrencyDisplayTypeValue: defaultCurrencyDisplayTypeValue,
|
||||
allCurrencySortingTypes: allCurrencySortingTypes,
|
||||
allCurrencySortingTypesArray: allCurrencySortingTypesArray,
|
||||
defaultCurrencySortingType: defaultCurrencySortingType
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user