mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-16 07:57:33 +08:00
code refactor
This commit is contained in:
@@ -5,11 +5,43 @@ const allTransactionTypes = {
|
||||
Transfer: 4
|
||||
};
|
||||
|
||||
const allTransactionEditScopeTypes = {
|
||||
None: {
|
||||
type: 0,
|
||||
name: 'None'
|
||||
},
|
||||
All: {
|
||||
type: 1,
|
||||
name: 'All'
|
||||
},
|
||||
TodayOrLater: {
|
||||
type: 2,
|
||||
name: 'Today or later'
|
||||
},
|
||||
Recent24HoursOrLater: {
|
||||
type: 3,
|
||||
name: 'Recent 24 hours or later'
|
||||
},
|
||||
ThisWeekOrLater: {
|
||||
type: 4,
|
||||
name: 'This week or later'
|
||||
},
|
||||
ThisMonthOrLater: {
|
||||
type: 5,
|
||||
name: 'This month or later'
|
||||
},
|
||||
ThisYearOrLater: {
|
||||
type: 6,
|
||||
name: 'This year or later'
|
||||
}
|
||||
};
|
||||
|
||||
const minAmountNumber = -99999999999; // -999999999.99
|
||||
const maxAmountNumber = 99999999999; // 999999999.99
|
||||
|
||||
export default {
|
||||
allTransactionTypes: allTransactionTypes,
|
||||
allTransactionEditScopeTypes: allTransactionEditScopeTypes,
|
||||
minAmountNumber: minAmountNumber,
|
||||
maxAmountNumber: maxAmountNumber,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user