Commit f668fbd3 authored by neo's avatar neo

[dev] hide menu for import data

parent d74fd13d
......@@ -900,25 +900,26 @@
$scope.$root.checkUserOrganizationPermissionList(menuList).success(function (data) {
if (data) {
if (data[constant.vatPermission.dataImport.balanceSheet.queryCode]) {
$state.go('vat.importData.balanceSheet');
} else if (data[constant.vatPermission.dataImport.journalEntry.queryCode]) {
$state.go('vat.importData.journalEntry');
} else if (data[constant.vatPermission.dataImport.erpImport.queryCode]) {
$state.go('vat.importData.erpData');
} else if (data[constant.vatPermission.dataImport.auditAdjust.queryCode]) {
$state.go('vat.importData.auditAdjust');
} else if (data[constant.vatPermission.dataImport.outputInvoice.queryCode]) {
$state.go('vat.importData.outputInvoice');
} else if (data[constant.vatPermission.dataImport.inputInvoice.queryCode]) {
$state.go('vat.importData.inputInvoice');
} else if (data[constant.vatPermission.dataImport.customInvoice.queryCode]) {
$state.go('vat.importData.customInvoice');
} else if (data[constant.vatPermission.dataImport.voucherMapping.queryCode]) {
$state.go('vat.importData.voucherMapping');
} else if (data[constant.vatPermission.dataImport.invoiceMapping.queryCode]) {
$state.go('vat.importData.invoiceMapping');
} else if (data[constant.vatPermission.dataPreview.balanceSheet.queryCode]) {
// if (data[constant.vatPermission.dataImport.balanceSheet.queryCode]) {
// $state.go('vat.importData.balanceSheet');
// } else if (data[constant.vatPermission.dataImport.journalEntry.queryCode]) {
// $state.go('vat.importData.journalEntry');
// } else if (data[constant.vatPermission.dataImport.erpImport.queryCode]) {
// $state.go('vat.importData.erpData');
// } else if (data[constant.vatPermission.dataImport.auditAdjust.queryCode]) {
// $state.go('vat.importData.auditAdjust');
// } else if (data[constant.vatPermission.dataImport.outputInvoice.queryCode]) {
// $state.go('vat.importData.outputInvoice');
// } else if (data[constant.vatPermission.dataImport.inputInvoice.queryCode]) {
// $state.go('vat.importData.inputInvoice');
// } else if (data[constant.vatPermission.dataImport.customInvoice.queryCode]) {
// $state.go('vat.importData.customInvoice');
// } else if (data[constant.vatPermission.dataImport.voucherMapping.queryCode]) {
// $state.go('vat.importData.voucherMapping');
// } else if (data[constant.vatPermission.dataImport.invoiceMapping.queryCode]) {
// $state.go('vat.importData.invoiceMapping');
// } else
if (data[constant.vatPermission.dataPreview.balanceSheet.queryCode]) {
$state.go('vat.previewData.balanceSheet');
} else if (data[constant.vatPermission.dataPreview.accountVoucher.queryCode]) {
$state.go('vat.previewData.accountVoucher');
......
......@@ -1826,25 +1826,26 @@ frameworkModule.controller('appOverviewController', ['$rootScope', '$scope', '$t
$scope.$root.checkUserOrganizationPermissionList(menuList).success(function (data) {
if (data) {
if (data[constant.vatPermission.dataImport.balanceSheet.queryCode]) {
$state.go('vat.importData.balanceSheet');
} else if (data[constant.vatPermission.dataImport.journalEntry.queryCode]) {
$state.go('vat.importData.journalEntry');
} else if (data[constant.vatPermission.dataImport.erpImport.queryCode]) {
$state.go('vat.importData.erpData');
} else if (data[constant.vatPermission.dataImport.auditAdjust.queryCode]) {
$state.go('vat.importData.auditAdjust');
} else if (data[constant.vatPermission.dataImport.outputInvoice.queryCode]) {
$state.go('vat.importData.outputInvoice');
} else if (data[constant.vatPermission.dataImport.inputInvoice.queryCode]) {
$state.go('vat.importData.inputInvoice');
} else if (data[constant.vatPermission.dataImport.customInvoice.queryCode]) {
$state.go('vat.importData.customInvoice');
} else if (data[constant.vatPermission.dataImport.voucherMapping.queryCode]) {
$state.go('vat.importData.voucherMapping');
} else if (data[constant.vatPermission.dataImport.invoiceMapping.queryCode]) {
$state.go('vat.importData.invoiceMapping');
} else if (data[constant.vatPermission.dataPreview.balanceSheet.queryCode]) {
// if (data[constant.vatPermission.dataImport.balanceSheet.queryCode]) {
// $state.go('vat.importData.balanceSheet');
// } else if (data[constant.vatPermission.dataImport.journalEntry.queryCode]) {
// $state.go('vat.importData.journalEntry');
// } else if (data[constant.vatPermission.dataImport.erpImport.queryCode]) {
// $state.go('vat.importData.erpData');
// } else if (data[constant.vatPermission.dataImport.auditAdjust.queryCode]) {
// $state.go('vat.importData.auditAdjust');
// } else if (data[constant.vatPermission.dataImport.outputInvoice.queryCode]) {
// $state.go('vat.importData.outputInvoice');
// } else if (data[constant.vatPermission.dataImport.inputInvoice.queryCode]) {
// $state.go('vat.importData.inputInvoice');
// } else if (data[constant.vatPermission.dataImport.customInvoice.queryCode]) {
// $state.go('vat.importData.customInvoice');
// } else if (data[constant.vatPermission.dataImport.voucherMapping.queryCode]) {
// $state.go('vat.importData.voucherMapping');
// } else if (data[constant.vatPermission.dataImport.invoiceMapping.queryCode]) {
// $state.go('vat.importData.invoiceMapping');
// } else
if (data[constant.vatPermission.dataPreview.balanceSheet.queryCode]) {
$state.go('vat.previewData.balanceSheet');
} else if (data[constant.vatPermission.dataPreview.accountVoucher.queryCode]) {
$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