diff --git a/front/module-import.js b/front/module-import.js index 1d093eaf2..fa656d221 100755 --- a/front/module-import.js +++ b/front/module-import.js @@ -15,7 +15,7 @@ export default function moduleImport(moduleName) { case 'agency' : return import('agency/front'); case 'travel' : return import('travel/front'); case 'worker' : return import('worker/front'); - case 'invoice' : return import('invoice/front'); + case 'invoiceOut' : return import('invoiceOut/front'); case 'route' : return import('route/front'); } } diff --git a/front/salix/locale/es.yml b/front/salix/locale/es.yml index b809a72db..2056210e4 100644 --- a/front/salix/locale/es.yml +++ b/front/salix/locale/es.yml @@ -43,7 +43,7 @@ Travels: EnvĂ­os Workers: Trabajadores Routes: Rutas Locator: Localizador -Invoices: Facturas +Invoices out: Facturas emitidas # Common diff --git a/modules/invoice/front/module.js b/modules/invoice/front/module.js deleted file mode 100644 index 2a4377f91..000000000 --- a/modules/invoice/front/module.js +++ /dev/null @@ -1,3 +0,0 @@ -import {ng} from 'core/vendor'; - -export default ng.module('invoice', ['vnCore']); diff --git a/modules/invoice/front/routes.json b/modules/invoice/front/routes.json deleted file mode 100644 index 8d7fe56f3..000000000 --- a/modules/invoice/front/routes.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "module": "invoice", - "name": "Invoices", - "icon": "icon-invoices1", - "validations" : true, - "dependencies": ["client"], - "routes": [ - { - "url": "/invoice", - "state": "invoice", - "abstract": true, - "component": "ui-view", - "description": "Invoices", - "acl": ["employee"] - }, - { - "url": "/index?q", - "state": "invoice.index", - "component": "vn-invoice-index", - "description": "Invoices" - } - ] -} \ No newline at end of file diff --git a/modules/invoice/front/index.js b/modules/invoiceOut/front/index.js similarity index 100% rename from modules/invoice/front/index.js rename to modules/invoiceOut/front/index.js diff --git a/modules/invoice/front/index/index.html b/modules/invoiceOut/front/index/index.html similarity index 100% rename from modules/invoice/front/index/index.html rename to modules/invoiceOut/front/index/index.html diff --git a/modules/invoice/front/index/index.js b/modules/invoiceOut/front/index/index.js similarity index 97% rename from modules/invoice/front/index/index.js rename to modules/invoiceOut/front/index/index.js index 6affa4b65..901c68cb9 100644 --- a/modules/invoice/front/index/index.js +++ b/modules/invoiceOut/front/index/index.js @@ -70,7 +70,7 @@ export default class Controller { Controller.$inject = ['$scope', 'vnToken']; -ngModule.component('vnInvoiceIndex', { +ngModule.component('vnInvoiceOutIndex', { template: require('./index.html'), controller: Controller }); diff --git a/modules/invoice/front/index/locale/es.yml b/modules/invoiceOut/front/index/locale/es.yml similarity index 100% rename from modules/invoice/front/index/locale/es.yml rename to modules/invoiceOut/front/index/locale/es.yml diff --git a/modules/invoiceOut/front/module.js b/modules/invoiceOut/front/module.js new file mode 100644 index 000000000..59d8e1e4a --- /dev/null +++ b/modules/invoiceOut/front/module.js @@ -0,0 +1,3 @@ +import {ng} from 'core/vendor'; + +export default ng.module('invoiceOut', ['vnCore']); diff --git a/modules/invoiceOut/front/routes.json b/modules/invoiceOut/front/routes.json new file mode 100644 index 000000000..d8337ed26 --- /dev/null +++ b/modules/invoiceOut/front/routes.json @@ -0,0 +1,23 @@ +{ + "module": "invoiceOut", + "name": "Invoices out", + "icon": "icon-invoices1", + "validations" : true, + "dependencies": ["client"], + "routes": [ + { + "url": "/invoiceOut", + "state": "invoiceOut", + "abstract": true, + "component": "ui-view", + "description": "InvoiceOut", + "acl": ["employee"] + }, + { + "url": "/index?q", + "state": "invoiceOut.index", + "component": "vn-invoice-out-index", + "description": "Invoices out" + } + ] +} \ No newline at end of file diff --git a/modules/invoice/front/search-panel/index.html b/modules/invoiceOut/front/search-panel/index.html similarity index 100% rename from modules/invoice/front/search-panel/index.html rename to modules/invoiceOut/front/search-panel/index.html diff --git a/modules/invoice/front/search-panel/index.js b/modules/invoiceOut/front/search-panel/index.js similarity index 100% rename from modules/invoice/front/search-panel/index.js rename to modules/invoiceOut/front/search-panel/index.js