2
0
mirror of https://github.com/frappe/books.git synced 2024-11-15 17:57:08 +00:00
books/src/router/index.js

84 lines
1.6 KiB
JavaScript
Raw Normal View History

2018-06-27 14:36:42 +00:00
import Vue from 'vue';
import Router from 'vue-router';
2018-06-01 12:35:51 +00:00
import ListView from '../pages/ListView';
2018-10-23 12:43:36 +00:00
import FormView from '../pages/FormView/FormView';
2018-10-15 12:05:01 +00:00
import PrintView from '../pages/PrintView';
2018-06-01 12:35:51 +00:00
2019-07-22 09:56:30 +00:00
import Report from '../pages/Report';
2018-06-27 14:36:42 +00:00
import reportViewConfig from '../../reports/view';
2018-06-01 12:35:51 +00:00
2018-10-10 10:32:56 +00:00
import DataImport from '../pages/DataImport';
2018-10-22 21:29:07 +00:00
import Settings from '../pages/Settings/Settings';
Winter Sprint: Work (#79) * init() * Country-wise Chart of accounts on setup * Add a sample invoice template * Some error fixes * [fix] missing COA - move importCOA.js from models/doctype/account to models/doctype/Account * All Account initial balance zero * setup Bank Reconciliation * New chart of accounts tree component * GST taxes added. initialized gst reports. * [chore] add *.db to .gitignore * [fix] importCOA path error * fix error + bank reconciliation fields * [feat] add gst taxes * GST report initialized * GST report finalized * GST report finalized * Complete min. reconciliation * [feat] auto select tax in invoice based on states * [chore] fix merge changes * Fix date issue - Make Payment * Add invoice templates and invoice customizer panel * Restructure invoice vue components * update file with fiscal year * Fix issues in invoice designs * Add company settings. Dynamic addresses in invoice * Move invoice styles to different file and add separate components for addresses * [feat] add export-filtered-data-to-csv to reports * [feat] add Export Wizard component for customizing export * Fix invoice customizer position while scrolling. Fix address displayed as undefined in invoice if not found in db * [chore] change markup for select all chkbox * Setup config as doctype * GSTIN bug fix * Add custom google fonts * Add Send email footer * Fix DateTime * Complete Merge + Resolve * Complete Merge + Resolve * [chore] change layout of Export Wizard * [enh] optimize checkNoneSelected, style export modal footer divider * Add Tax to SideBar * Remove extra logs * [fix] db name section in sidebar showing absolute path instead of dbname in windows i.e. platform=win32 * Country-wise Chart of accounts on setup (#78) * Country-wise Chart of accounts on setup * Some error fixes * All Account initial balance zero * Update README.md - updated installation instructions with more detail * Merge #79 Winter Sprint: Work https://github.com/frappe/accounting/pull/79 * Revert "Merge #79 Winter Sprint: Work" This reverts commit 171511666817caa430af672791c8d452e3b4b680.
2019-02-18 05:42:04 +00:00
import ReportList from '../pages/ReportList';
import ChartOfAccounts from '../pages/ChartOfAccounts';
2018-10-23 12:43:36 +00:00
import Tree from 'frappejs/ui/components/Tree';
2018-06-27 14:36:42 +00:00
Vue.use(Router);
const routes = [
2018-06-27 14:36:42 +00:00
{
2018-10-22 20:32:37 +00:00
path: '/list/:listName',
name: 'ListView',
component: ListView,
props: true
2018-06-27 14:36:42 +00:00
},
{
path: '/edit/:doctype/:name',
name: 'FormView',
component: FormView,
props: true
2018-10-15 12:05:01 +00:00
},
{
path: '/print/:doctype/:name',
name: 'PrintView',
component: PrintView,
props: true
2018-10-22 18:10:22 +00:00
},
2018-06-27 14:36:42 +00:00
{
path: '/report/:reportName',
name: 'Report',
component: Report,
props: route => {
2018-06-27 14:36:42 +00:00
const { reportName } = route.params;
return {
reportName,
reportConfig: reportViewConfig[reportName] || null,
filters: route.query
2018-06-27 14:36:42 +00:00
};
2018-06-01 12:35:51 +00:00
}
2018-10-10 10:32:56 +00:00
},
{
path: '/data-import',
name: 'Data Import',
component: DataImport
2018-10-22 21:29:07 +00:00
},
{
path: '/settings',
name: 'Settings',
component: Settings
2018-10-23 12:43:36 +00:00
},
{
path: '/reportList',
name: 'Report',
component: ReportList
},
{
path: '/tree/:doctype',
name: 'Tree',
component: Tree,
props: true
},
Winter Sprint: Work (#79) * init() * Country-wise Chart of accounts on setup * Add a sample invoice template * Some error fixes * [fix] missing COA - move importCOA.js from models/doctype/account to models/doctype/Account * All Account initial balance zero * setup Bank Reconciliation * New chart of accounts tree component * GST taxes added. initialized gst reports. * [chore] add *.db to .gitignore * [fix] importCOA path error * fix error + bank reconciliation fields * [feat] add gst taxes * GST report initialized * GST report finalized * GST report finalized * Complete min. reconciliation * [feat] auto select tax in invoice based on states * [chore] fix merge changes * Fix date issue - Make Payment * Add invoice templates and invoice customizer panel * Restructure invoice vue components * update file with fiscal year * Fix issues in invoice designs * Add company settings. Dynamic addresses in invoice * Move invoice styles to different file and add separate components for addresses * [feat] add export-filtered-data-to-csv to reports * [feat] add Export Wizard component for customizing export * Fix invoice customizer position while scrolling. Fix address displayed as undefined in invoice if not found in db * [chore] change markup for select all chkbox * Setup config as doctype * GSTIN bug fix * Add custom google fonts * Add Send email footer * Fix DateTime * Complete Merge + Resolve * Complete Merge + Resolve * [chore] change layout of Export Wizard * [enh] optimize checkNoneSelected, style export modal footer divider * Add Tax to SideBar * Remove extra logs * [fix] db name section in sidebar showing absolute path instead of dbname in windows i.e. platform=win32 * Country-wise Chart of accounts on setup (#78) * Country-wise Chart of accounts on setup * Some error fixes * All Account initial balance zero * Update README.md - updated installation instructions with more detail * Merge #79 Winter Sprint: Work https://github.com/frappe/accounting/pull/79 * Revert "Merge #79 Winter Sprint: Work" This reverts commit 171511666817caa430af672791c8d452e3b4b680.
2019-02-18 05:42:04 +00:00
{
path: '/chartOfAccounts',
name: 'Chart Of Accounts',
component: ChartOfAccounts,
props: true
}
];
2018-06-27 14:36:42 +00:00
export default new Router({ routes });