mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 20:21:10 -04:00
47 lines
700 B
JavaScript
47 lines
700 B
JavaScript
import mutations from './mutations'
|
|
import * as actions from './actions'
|
|
import * as getters from './getters'
|
|
|
|
const initialState = {
|
|
contacts: 0,
|
|
invoices: 0,
|
|
estimates: 0,
|
|
expenses: 0,
|
|
totalDueAmount: [],
|
|
isDataLoaded: false,
|
|
|
|
weeklyInvoices: {
|
|
days: [],
|
|
counter: []
|
|
},
|
|
|
|
chartData: {
|
|
months: [],
|
|
invoiceTotals: [],
|
|
expenseTotals: [],
|
|
netProfits: [],
|
|
receiptTotals: []
|
|
},
|
|
|
|
salesTotal: null,
|
|
totalReceipts: null,
|
|
totalExpenses: null,
|
|
netProfit: null,
|
|
|
|
dueInvoices: [],
|
|
recentEstimates: [],
|
|
newContacts: []
|
|
}
|
|
|
|
export default {
|
|
namespaced: true,
|
|
|
|
state: initialState,
|
|
|
|
getters: getters,
|
|
|
|
actions: actions,
|
|
|
|
mutations: mutations
|
|
}
|