Commit f668fbd3 authored by neo's avatar neo

[dev] hide menu for import data

parent d74fd13d
...@@ -900,25 +900,26 @@ ...@@ -900,25 +900,26 @@
$scope.$root.checkUserOrganizationPermissionList(menuList).success(function (data) { $scope.$root.checkUserOrganizationPermissionList(menuList).success(function (data) {
if (data) { if (data) {
if (data[constant.vatPermission.dataImport.balanceSheet.queryCode]) { // if (data[constant.vatPermission.dataImport.balanceSheet.queryCode]) {
$state.go('vat.importData.balanceSheet'); // $state.go('vat.importData.balanceSheet');
} else if (data[constant.vatPermission.dataImport.journalEntry.queryCode]) { // } else if (data[constant.vatPermission.dataImport.journalEntry.queryCode]) {
$state.go('vat.importData.journalEntry'); // $state.go('vat.importData.journalEntry');
} else if (data[constant.vatPermission.dataImport.erpImport.queryCode]) { // } else if (data[constant.vatPermission.dataImport.erpImport.queryCode]) {
$state.go('vat.importData.erpData'); // $state.go('vat.importData.erpData');
} else if (data[constant.vatPermission.dataImport.auditAdjust.queryCode]) { // } else if (data[constant.vatPermission.dataImport.auditAdjust.queryCode]) {
$state.go('vat.importData.auditAdjust'); // $state.go('vat.importData.auditAdjust');
} else if (data[constant.vatPermission.dataImport.outputInvoice.queryCode]) { // } else if (data[constant.vatPermission.dataImport.outputInvoice.queryCode]) {
$state.go('vat.importData.outputInvoice'); // $state.go('vat.importData.outputInvoice');
} else if (data[constant.vatPermission.dataImport.inputInvoice.queryCode]) { // } else if (data[constant.vatPermission.dataImport.inputInvoice.queryCode]) {
$state.go('vat.importData.inputInvoice'); // $state.go('vat.importData.inputInvoice');
} else if (data[constant.vatPermission.dataImport.customInvoice.queryCode]) { // } else if (data[constant.vatPermission.dataImport.customInvoice.queryCode]) {
$state.go('vat.importData.customInvoice'); // $state.go('vat.importData.customInvoice');
} else if (data[constant.vatPermission.dataImport.voucherMapping.queryCode]) { // } else if (data[constant.vatPermission.dataImport.voucherMapping.queryCode]) {
$state.go('vat.importData.voucherMapping'); // $state.go('vat.importData.voucherMapping');
} else if (data[constant.vatPermission.dataImport.invoiceMapping.queryCode]) { // } else if (data[constant.vatPermission.dataImport.invoiceMapping.queryCode]) {
$state.go('vat.importData.invoiceMapping'); // $state.go('vat.importData.invoiceMapping');
} else if (data[constant.vatPermission.dataPreview.balanceSheet.queryCode]) { // } else
if (data[constant.vatPermission.dataPreview.balanceSheet.queryCode]) {
$state.go('vat.previewData.balanceSheet'); $state.go('vat.previewData.balanceSheet');
} else if (data[constant.vatPermission.dataPreview.accountVoucher.queryCode]) { } else if (data[constant.vatPermission.dataPreview.accountVoucher.queryCode]) {
$state.go('vat.previewData.accountVoucher'); $state.go('vat.previewData.accountVoucher');
......
...@@ -1826,25 +1826,26 @@ frameworkModule.controller('appOverviewController', ['$rootScope', '$scope', '$t ...@@ -1826,25 +1826,26 @@ frameworkModule.controller('appOverviewController', ['$rootScope', '$scope', '$t
$scope.$root.checkUserOrganizationPermissionList(menuList).success(function (data) { $scope.$root.checkUserOrganizationPermissionList(menuList).success(function (data) {
if (data) { if (data) {
if (data[constant.vatPermission.dataImport.balanceSheet.queryCode]) { // if (data[constant.vatPermission.dataImport.balanceSheet.queryCode]) {
$state.go('vat.importData.balanceSheet'); // $state.go('vat.importData.balanceSheet');
} else if (data[constant.vatPermission.dataImport.journalEntry.queryCode]) { // } else if (data[constant.vatPermission.dataImport.journalEntry.queryCode]) {
$state.go('vat.importData.journalEntry'); // $state.go('vat.importData.journalEntry');
} else if (data[constant.vatPermission.dataImport.erpImport.queryCode]) { // } else if (data[constant.vatPermission.dataImport.erpImport.queryCode]) {
$state.go('vat.importData.erpData'); // $state.go('vat.importData.erpData');
} else if (data[constant.vatPermission.dataImport.auditAdjust.queryCode]) { // } else if (data[constant.vatPermission.dataImport.auditAdjust.queryCode]) {
$state.go('vat.importData.auditAdjust'); // $state.go('vat.importData.auditAdjust');
} else if (data[constant.vatPermission.dataImport.outputInvoice.queryCode]) { // } else if (data[constant.vatPermission.dataImport.outputInvoice.queryCode]) {
$state.go('vat.importData.outputInvoice'); // $state.go('vat.importData.outputInvoice');
} else if (data[constant.vatPermission.dataImport.inputInvoice.queryCode]) { // } else if (data[constant.vatPermission.dataImport.inputInvoice.queryCode]) {
$state.go('vat.importData.inputInvoice'); // $state.go('vat.importData.inputInvoice');
} else if (data[constant.vatPermission.dataImport.customInvoice.queryCode]) { // } else if (data[constant.vatPermission.dataImport.customInvoice.queryCode]) {
$state.go('vat.importData.customInvoice'); // $state.go('vat.importData.customInvoice');
} else if (data[constant.vatPermission.dataImport.voucherMapping.queryCode]) { // } else if (data[constant.vatPermission.dataImport.voucherMapping.queryCode]) {
$state.go('vat.importData.voucherMapping'); // $state.go('vat.importData.voucherMapping');
} else if (data[constant.vatPermission.dataImport.invoiceMapping.queryCode]) { // } else if (data[constant.vatPermission.dataImport.invoiceMapping.queryCode]) {
$state.go('vat.importData.invoiceMapping'); // $state.go('vat.importData.invoiceMapping');
} else if (data[constant.vatPermission.dataPreview.balanceSheet.queryCode]) { // } else
if (data[constant.vatPermission.dataPreview.balanceSheet.queryCode]) {
$state.go('vat.previewData.balanceSheet'); $state.go('vat.previewData.balanceSheet');
} else if (data[constant.vatPermission.dataPreview.accountVoucher.queryCode]) { } else if (data[constant.vatPermission.dataPreview.accountVoucher.queryCode]) {
$state.go('vat.previewData.accountVoucher'); $state.go('vat.previewData.accountVoucher');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment