diff --git a/front/core/components/watcher/watcher.js b/front/core/components/watcher/watcher.js index d00d6d782c..84383f477e 100644 --- a/front/core/components/watcher/watcher.js +++ b/front/core/components/watcher/watcher.js @@ -13,15 +13,18 @@ import UserError from '../../lib/user-error'; * properties are provided. */ export default class Watcher extends Component { - constructor($element, $scope, $state, $transitions, $http, vnApp, $translate, $attrs, $q) { + constructor($element, $, $state, $stateParams, $transitions, $http, vnApp, $translate, $attrs, $q) { super($element); - this.$ = $scope; - this.$state = $state; - this.$http = $http; - this._ = $translate; - this.$attrs = $attrs; - this.vnApp = vnApp; - this.$q = $q; + Object.assign(this, { + $, + $state, + $stateParams, + $http, + _: $translate, + $attrs, + vnApp, + $q + }); this.state = null; this.deregisterCallback = $transitions.onStart({}, @@ -240,7 +243,7 @@ export default class Watcher extends Component { return newCopy; } } -Watcher.$inject = ['$element', '$scope', '$state', '$transitions', '$http', 'vnApp', '$translate', '$attrs', '$q']; +Watcher.$inject = ['$element', '$scope', '$state', '$stateParams', '$transitions', '$http', 'vnApp', '$translate', '$attrs', '$q']; ngModule.component('vnWatcher', { template: require('./watcher.html'), diff --git a/front/salix/locale/es.yml b/front/salix/locale/es.yml index 7929ed9f17..3e17d36c7c 100644 --- a/front/salix/locale/es.yml +++ b/front/salix/locale/es.yml @@ -1,32 +1,53 @@ Applications: Aplicaciones Language: Idioma Change language: Cambiar idioma -Client Frozen: Cliente congelado -Client has debt: Cliente con riesgo -Client inactive: Cliente inactivo -Client not checked: Cliente no comprobado -credit: Crédito -creditInsurance: Crédito Asegurado -Clients: Clientes -Claims: Reclamaciones Data saved!: ¡Datos guardados! Home: Inicio -Items: Artículos -Workers: Trabajadores -Locator: Localizador Logout: Cerrar sesión Modules access : Acceso a módulos Return to home: Volver a inicio Notifications: Notificaciones -name: Nombre -phone: Teléfono +Name: Nombre Preview: Vista previa Profile: Perfil Push on applications menu: Para abrir un módulo pulsa en el menú de aplicaciones Return to module index: Volver a la página principal del módulo -Routes: Rutas What is new: Novedades de la versión -Web Account inactive: Sin acceso Web -Orders: Cesta +Settings: Ajustes +Enter a new search: Introduce una nueva búsqueda +No results: Sin resultados + +# Actions + +Back: Volver +Save: Guardar +Create: Crear +Send: Enviar +Delete: Eliminar +Order by: Ordenar por +Order: Orden +Ascendant: Ascendente +Descendant: Descendente + +# Modules + Agencies: Agencias +Claims: Reclamaciones +Clients: Clientes +Items: Artículos +Orders: Cesta +Tickets: Tickets Travels: Envíos +Workers: Trabajadores +Routes: Rutas +Locator: Localizador + +# Common + +Summary: Vista previa +Basic data: Datos básicos +List: Listado + +# Misc + +Phone: Teléfono diff --git a/modules/agency/front/locale/es.yml b/modules/agency/front/locale/es.yml index ed2142b609..17ef3e09a4 100644 --- a/modules/agency/front/locale/es.yml +++ b/modules/agency/front/locale/es.yml @@ -1,18 +1,9 @@ -Name: Nombre Agency: Agencia Warehouse: Almacén Hour: Hora (ETD) Price: Precio -Create: Crear -Delete: Eliminar -Settings: Ajustes Locations: Localizaciones -Enter a new search: Introduce una nueva búsqueda Delete zone: Eliminar zona Are you sure you want to delete this zone?: ¿Estás seguro de querer eliminar esta zona? - Zones: Zonas -List: Listado -Summary: Vista previa -New zone: Nueva zona -Basic data: Datos básicos \ No newline at end of file +New zone: Nueva zona \ No newline at end of file diff --git a/modules/claim/front/locale/es.yml b/modules/claim/front/locale/es.yml index 5c10c79adf..d348c8ff1f 100644 --- a/modules/claim/front/locale/es.yml +++ b/modules/claim/front/locale/es.yml @@ -7,11 +7,5 @@ Responsible: Responsable Remove sale: Borrar linea Claim Id: Id reclamación Created: Creado -Enter a new search: Introduce una nueva búsqueda Pickup order: Orden de recogida Do you want to send it directly?: ¿Quieres enviarlo directamente? - -#sections -Claims: Reclamaciones -List: Listado -Summary: Vista previa \ No newline at end of file diff --git a/modules/client/front/basic-data/index.html b/modules/client/front/basic-data/index.html index 4ab264050e..189cfe2615 100644 --- a/modules/client/front/basic-data/index.html +++ b/modules/client/front/basic-data/index.html @@ -8,25 +8,40 @@
- - - + + - - + + + + - {{firstName}} {{name}} - diff --git a/modules/client/front/locale/es.yml b/modules/client/front/locale/es.yml index 64614337ed..ed38dfe0d8 100644 --- a/modules/client/front/locale/es.yml +++ b/modules/client/front/locale/es.yml @@ -2,7 +2,6 @@ Active: Activo Amount: Importe Client: Cliente Comercial Name: Comercial -Back: Volver Has to invoice: Factura Invoice by mail: Factura via e-mail Country: País @@ -10,29 +9,29 @@ Street: Domicilio fiscal City: Municipio Postcode: Código postal Province: Provincia -Save: Guardar Address: Consignatario Verified data: Datos comprobados Remove contact: Quitar contacto Client ticket list: Listado de tickets del cliente Add contact: Añadir contacto -Create: Crear Sent: Enviado Worker: Trabajador -Send: Enviar Sample: Plantilla Credit: Crédito Are you sure you want to delete this expedition?: ¿Está seguro de borrar esta expedición? Others: Otros -Enter a new search: Introduce una nueva búsqueda New order: Nuevo pedido +Client frozen: Cliente congelado +Client has debt: Cliente con riesgo +Client inactive: Cliente inactivo +Client not checked: Cliente no comprobado +Credit insurance: Crédito asegurado +Web Account inactive: Sin acceso Web # Sections + Clients: Clientes -List: Listado New client: Nuevo cliente -Summary: Vista previa -Basic data: Datos básicos Fiscal data: Datos fiscales Pay method: Forma de pago Addresses: Consignatarios diff --git a/modules/client/front/routes.json b/modules/client/front/routes.json index 1e7cf533c5..392fa344be 100644 --- a/modules/client/front/routes.json +++ b/modules/client/front/routes.json @@ -236,6 +236,7 @@ "state": "client.card.creditInsurance.index", "component": "vn-client-credit-insurance-index", "description": "Credit contracts", + "acl": ["creditInsurance"], "params": { "client": "$ctrl.client" } diff --git a/modules/item/front/locale/es.yml b/modules/item/front/locale/es.yml index 0ece4d7326..5e52960c20 100644 --- a/modules/item/front/locale/es.yml +++ b/modules/item/front/locale/es.yml @@ -34,7 +34,6 @@ Add barcode: Añadir código de barras Remove barcode: Quitar código de barras Buyer: Comprador No results: Sin resultados -Enter a new search: Introduce una nueva búsqueda Tag: Etiqueta Worker: Trabajador Available: Disponible @@ -45,11 +44,9 @@ stems: Tallos Compression: Compresión Density: Densidad -#Sections +# Sections Items: Artículos -List: Listado New item: Nuevo artículo -Summary: Vista previa Basic data: Datos básicos Tax: IVA History: Historial diff --git a/modules/item/front/ticket-descriptor/index.html b/modules/item/front/ticket-descriptor/index.html index d392559fc1..6cd41ab546 100644 --- a/modules/item/front/ticket-descriptor/index.html +++ b/modules/item/front/ticket-descriptor/index.html @@ -52,7 +52,7 @@ ng-class="{bright: $ctrl.ticket.client.isActive == false}"> diff --git a/modules/order/front/locale/es.yml b/modules/order/front/locale/es.yml index 9a56f21e64..1bc58c3677 100644 --- a/modules/order/front/locale/es.yml +++ b/modules/order/front/locale/es.yml @@ -3,8 +3,6 @@ Catalog: Catálogo from: desde results: resultados More than: Más de -No results: Sin resultados -Enter a new search: Introduce una nueva búsqueda Plant: Planta Flower: Flor Handmade: Confección @@ -12,9 +10,5 @@ Green: Verde Accessories: Complemento Category: Reino Search tag: Buscar etiqueta -Order by: Ordenar por -Order: Orden Price: Precio -Ascendant: Ascendente -Descendant: Descendente Created from: Creado desde \ No newline at end of file diff --git a/modules/travel/front/locale/es.yml b/modules/travel/front/locale/es.yml index 26506ceba0..b2eb3297c8 100644 --- a/modules/travel/front/locale/es.yml +++ b/modules/travel/front/locale/es.yml @@ -7,9 +7,6 @@ Landed: F. llegada Delivered: Enviado Received: Recibido Travel id: Id envío -Enter a new search: Introduce una nueva búsqueda -#sections -Travels: Envíos -List: Listado -Summary: Vista previa \ No newline at end of file +# Sections +Travels: Envíos \ No newline at end of file diff --git a/modules/worker/front/basic-data/index.html b/modules/worker/front/basic-data/index.html index 391628ecf9..3d874712f1 100644 --- a/modules/worker/front/basic-data/index.html +++ b/modules/worker/front/basic-data/index.html @@ -1,30 +1,34 @@ - + id-field="id" + url="api/Workers" + save="post"> - - - - - - + + + + + + + + + + + + diff --git a/modules/worker/front/basic-data/index.js b/modules/worker/front/basic-data/index.js index 3b324a17c7..28107dc12e 100644 --- a/modules/worker/front/basic-data/index.js +++ b/modules/worker/front/basic-data/index.js @@ -1,21 +1,16 @@ import ngModule from '../module'; class Controller { - constructor($, $state) { - Object.assign(this, { - $, - $state - }); + constructor($) { + Object.assign(this, {$}); } onSubmit() { - this.$.watcher.submit().then(() => { - this.card.reload(); - }); + this.$.watcher.submit() + .then(() => this.card.reload()); } } - -Controller.$inject = ['$scope', '$state']; +Controller.$inject = ['$scope']; ngModule.component('vnWorkerBasicData', { template: require('./index.html'), diff --git a/modules/worker/front/descriptor/index.html b/modules/worker/front/descriptor/index.html index 4222ca4908..315ad7c9ce 100644 --- a/modules/worker/front/descriptor/index.html +++ b/modules/worker/front/descriptor/index.html @@ -10,27 +10,27 @@
-
{{::$ctrl.worker.firstName}} {{::$ctrl.worker.name}}
+
{{$ctrl.worker.firstName}} {{$ctrl.worker.name}}
+ value="{{$ctrl.worker.id}}"> + value="{{$ctrl.worker.user.name}}"> + value="{{$ctrl.worker.user.email}}"> + value="{{$ctrl.worker.client.fi}}"> + value="{{$ctrl.worker.department.department}}"> + value="{{$ctrl.worker.phone}}"> + value="{{$ctrl.worker.sip.phone}}">