diff --git a/client/ticket/src/locale/es.yml b/client/ticket/src/locale/es.yml index 0f4df5c748..050c371eb1 100644 --- a/client/ticket/src/locale/es.yml +++ b/client/ticket/src/locale/es.yml @@ -3,6 +3,7 @@ Address: Consignatario Agency: Agencia Amount: Importe Basic data: Datos básicos +Boxes: Cajas Checked: Comprobado Client: Cliente Company: Empresa diff --git a/client/ticket/src/volume/index.html b/client/ticket/src/volume/index.html index d562e6aa67..ebbc2a46df 100644 --- a/client/ticket/src/volume/index.html +++ b/client/ticket/src/volume/index.html @@ -1,17 +1,24 @@ + Volumes + + + + + + - - @@ -19,9 +26,7 @@ - - - + diff --git a/client/ticket/src/volume/index.js b/client/ticket/src/volume/index.js index 1783f32abe..43ef6ba0c2 100644 --- a/client/ticket/src/volume/index.js +++ b/client/ticket/src/volume/index.js @@ -1,5 +1,6 @@ import ngModule from '../module'; import FilterTicketList from '../filter-ticket-list'; +import './style.scss'; class Controller extends FilterTicketList { constructor($scope, $http, $translate, $timeout, $state) { @@ -8,7 +9,6 @@ class Controller extends FilterTicketList { this.$http = $http; this.$translate = $translate; this.onOrder('itemFk', 'ASC'); - this.ticketVolumes = []; } diff --git a/client/ticket/src/volume/style.scss b/client/ticket/src/volume/style.scss new file mode 100644 index 0000000000..2900023a10 --- /dev/null +++ b/client/ticket/src/volume/style.scss @@ -0,0 +1,6 @@ + +.totalBox { + border: 1px solid #CCC; + text-align: left; + align-self: flex-end; +} diff --git a/services/loopback/common/methods/ticket/getTotalVolume.js b/services/loopback/common/methods/ticket/getTotalVolume.js new file mode 100644 index 0000000000..117c3c62f6 --- /dev/null +++ b/services/loopback/common/methods/ticket/getTotalVolume.js @@ -0,0 +1,24 @@ +module.exports = Self => { + Self.remoteMethod('getTotalVolume', { + description: 'Returns the total volume of a ticket', + accessType: 'READ', + accepts: [{ + arg: 'id', + type: 'number', + required: true, + description: 'ticket id', + http: {source: 'path'} + }], + returns: { + root: true + }, + http: { + path: `/:id/getTotalVolume`, + verb: 'GET' + } + }); + + Self.getTotalVolume = async ticketFk => { + return (await Self.rawSql(`SELECT vn.ticketTotalVolume(?) totalVolume, vn.ticketTotalVolumeBoxes(?) totalBoxes`, [ticketFk, ticketFk]))[0]; + }; +}; diff --git a/services/loopback/common/models/ticket.js b/services/loopback/common/models/ticket.js index fb8188efee..a2897354c5 100644 --- a/services/loopback/common/models/ticket.js +++ b/services/loopback/common/models/ticket.js @@ -3,6 +3,7 @@ module.exports = Self => { require('../methods/ticket/changeWorker')(Self); require('../methods/ticket/filter')(Self); require('../methods/ticket/getVolume')(Self); + require('../methods/ticket/getTotalVolume')(Self); require('../methods/ticket/summary')(Self); require('../methods/ticket/getTotal')(Self); require('../methods/ticket/getTaxes')(Self); diff --git a/services/salix/client/version-notes.html b/services/salix/client/version-notes.html index 3e0cbb7742..27cfd4023f 100644 --- a/services/salix/client/version-notes.html +++ b/services/salix/client/version-notes.html @@ -21,138 +21,207 @@
Item Description Quantitym³ per unit m³ per quantitytotal m³
{{::sale.itemFk}} {{::sale.quantity}}{{::sale.volume.m3_uni | number:3}}{{::sale.volume.volumeTimesQuantity | number:3}}{{::sale.volume.m3_total | number:3}}{{::sale.volume.m3 | number:3}}
No results
- - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#Estado Asunto
290Componentes de ticket muestra todos los componentes existentes.
268Añadir componente de paginación a rutas con filtros
271Atajo de teclado para botones +
226Traduccion de error ticket tracking + e2e
269Test unitario de createWithInsurance.js
217Seccion Configuracion paso 3
289Cuando se modifica el crédito mostrar alerta
252No modifica visualmente el campo Facturar por consignatario al modificar el Recargo en cualquiera de sus consignatarios
284Seccion ticket.lineas icono papelera para eliminar lineas
253Actualizar los estilos para que concuerden con la paleta de colores de Vernatura
283Modificar encabezado el client.summary
277Hacer que el descriptor de ticket se actualice cuando se modifica el estado
278Refactor descriptor item
160Limpiar tablas/vistas obsoletas del esquema salix
285Optimizar tarea de tocker y añadir funciones compiladas
231Importar de vn2008 a vn toda la funcionalidad necesaria para mostrar precio
287Si en client.fiscaldata el nif empieza por B
265Añadir boton ok y estado
260Refactorización de rutas en back-end
267Preparar esqueleto para nueva entidad order
292En el descriptor de item.list no aparece toda la informacion que deberia
270Seccion Configuracion paso 2
264sumario ticket no respeta margenes
281ticket.lineas Mostrar boton editar
266Al hacer click en el ticket.lineas campo id articulo mostrar el descriptor de item
166In Progress refactorizar buscador avanzado de articulos
171In Progress Añadir revision
211In Progress Forzar a ciertos tags
213In Progress Sumario Tickets
216In Progress Seccion Configuracion paso 2
124Resolved address observations validations
199Resolved Añadir manejador de cliente que no existe
138Resolved Refactorización Popover
172Resolved E2E revision
175Resolved E2E embalajes
177Resolved Listar modelo saleChecked
182Resolved Listar volumen del ticket
196Resolved E2E listar lineas ticket
198Resolved refactorizar tag con nuevo + -
201Resolved Listar Mana del cliente
202Resolved Añadir a Sumario Cliente una seccion financia
209Resolved Contratos de credito
210Resolved item tags
212Resolved Mostrar solo las agencias con el campo isActive(tpv) en TRUE
215Resolved Seccion Configuracion paso 1
220Resolved Al crear un consignatario mirar RE
222Resolved nuevo dni españa
223Resolved Manejador de errores global
227Resolved traducciones pendientes
219FeedbackPair programming