support sub account

This commit is contained in:
MaysWind
2020-11-15 01:16:17 +08:00
parent afd6996c69
commit af809a098e
10 changed files with 243 additions and 46 deletions
+6 -1
View File
@@ -35,7 +35,12 @@ const allAccountCategories = [
defaultAccountIconId: '6'
}
];
const allAccountTypes = {
SingleAccount: 1,
MultiSubAccounts: 2
};
export default {
allCategories: allAccountCategories
allCategories: allAccountCategories,
allAccountTypes: allAccountTypes,
};
+3
View File
@@ -1,3 +1,5 @@
const parentAccountCurrencyPlacehodler = '---';
// ISO 4217
const allCurrencies = [
'AED', //UAE Dirham
@@ -160,5 +162,6 @@ const allCurrencies = [
];
export default {
parentAccountCurrencyPlacehodler: parentAccountCurrencyPlacehodler,
all: allCurrencies
};
+3 -4
View File
@@ -1,7 +1,5 @@
const totalAccountIconCount = 22;
const defaultAccountIcon = {
f7Icon: 'bag'
};
const defaultAccountIconId = '1';
const allAccountIcons = {
'1': {
f7Icon: 'bag'
@@ -70,6 +68,7 @@ const allAccountIcons = {
export default {
allAccountIcons: allAccountIcons,
defaultAccountIcon: defaultAccountIcon,
defaultAccountIconId: defaultAccountIconId,
defaultAccountIcon: allAccountIcons[defaultAccountIconId],
totalAccountIconCount: totalAccountIconCount,
};