Commit 81fcc1d481423868ad300b0440c9d3c82ca635f4

Authored by Mauricio Cattafi
1 parent fa0fa8b7d4
Exists in ultimos_despachos

se corrige visual y acentos de últimos despachos, y la selección del mismo

src/js/controller.js
... ... @@ -516,7 +516,7 @@ angular.module('focaCrearFactura').controller('facturaController', [
516 516 });
517 517  
518 518 $scope.botonera.push({
519   - label: 'Ultimos despachos',
  519 + label: 'Últimos despachos',
520 520 image: 'ultimos-despachos.png',
521 521 imageDefault: 'productoDefault.png'
522 522 });
... ... @@ -667,7 +667,7 @@ angular.module('focaCrearFactura').controller('facturaController', [
667 667 .catch(function (err) {
668 668  
669 669 console.error(err);
670   - focaModalService.alert('El despacho esta en uso');
  670 + focaModalService.alert('El despacho está en uso');
671 671 });
672 672  
673 673 })
... ... @@ -754,7 +754,7 @@ angular.module('focaCrearFactura').controller('facturaController', [
754 754 .catch(function (err) {
755 755  
756 756 console.error(err);
757   - focaModalService.alert('El despacho esta en uso');
  757 + focaModalService.alert('El despacho está en uso');
758 758 });
759 759  
760 760 })
... ... @@ -931,7 +931,7 @@ angular.module('focaCrearFactura').controller('facturaController', [
931 931 focaModalService.alert('Los valores deben ser al menos 1');
932 932 return;
933 933 } else if (tmpCantidad === '0') {
934   - focaModalService.alert('Esta ingresando un producto con valor 0');
  934 + focaModalService.alert('Está ingresando un producto con valor 0');
935 935 return;
936 936 } else if (parseInt(tmpCantidad) < 0) {
937 937 focaModalService.alert('Los valores no pueden ser negativos');
... ... @@ -957,19 +957,19 @@ angular.module(&#39;focaCrearFactura&#39;).controller(&#39;facturaController&#39;, [
957 957  
958 958 if (cotizacion.moneda.DETALLE === 'PESOS ARGENTINOS') {
959 959 $scope.$broadcast('removeCabecera', 'Moneda:');
960   - $scope.$broadcast('removeCabecera', 'Fecha cotizacion:');
961   - $scope.$broadcast('removeCabecera', 'Cotizacion:');
  960 + $scope.$broadcast('removeCabecera', 'Fecha cotización:');
  961 + $scope.$broadcast('removeCabecera', 'Cotización:');
962 962 } else {
963 963 $scope.$broadcast('addCabecera', {
964 964 label: 'Moneda:',
965 965 valor: cotizacion.moneda.DETALLE
966 966 });
967 967 $scope.$broadcast('addCabecera', {
968   - label: 'Fecha cotizacion:',
  968 + label: 'Fecha cotización:',
969 969 valor: $filter('date')(cotizacion.FECHA, 'dd/MM/yyyy')
970 970 });
971 971 $scope.$broadcast('addCabecera', {
972   - label: 'Cotizacion:',
  972 + label: 'Cotización:',
973 973 valor: $filter('number')(cotizacion.VENDEDOR, '2')
974 974 });
975 975 }
... ... @@ -987,7 +987,7 @@ angular.module(&#39;focaCrearFactura&#39;).controller(&#39;facturaController&#39;, [
987 987 return false;
988 988 } else if (!$scope.articulosFiltro().length) {
989 989  
990   - focaModalService.alert('Seleccione al menos un Articulo');
  990 + focaModalService.alert('Seleccione al menos un Artículo');
991 991 return false;
992 992 }
993 993  
... ... @@ -1018,7 +1018,7 @@ angular.module(&#39;focaCrearFactura&#39;).controller(&#39;facturaController&#39;, [
1018 1018 $scope.comprobante = rellenar(res.data.numeroRemito, 8);
1019 1019 },
1020 1020 function (err) {
1021   - focaModalService.alert('La terminal no esta configurada correctamente');
  1021 + focaModalService.alert('La terminal no está configurada correctamente');
1022 1022 console.info(err);
1023 1023 }
1024 1024 );
src/js/controllerUltimosDespachos.js
... ... @@ -47,8 +47,10 @@ angular.module(&#39;focaCrearFactura&#39;)
47 47 });
48 48 }
49 49  
50   - $scope.aceptar = function (despacho) {
51   - $uibModalInstance.close(despacho);
  50 + $scope.aceptar = function (producto, despacho) {
  51 + producto.despachos = [];
  52 + producto.despachos.push(despacho);
  53 + $uibModalInstance.close(producto);
52 54 };
53 55  
54 56 $scope.cancel = function () {
... ... @@ -46,7 +46,7 @@ angular.module(&#39;focaCrearFactura&#39;)
46 46 image: 'cliente.png'
47 47 },
48 48 {
49   - label: 'Busqueda Productos',
  49 + label: 'Búsqueda Productos',
50 50 image: 'productos.png'
51 51 }
52 52 // {
src/views/modal-ultimos-despachos.html
... ... @@ -32,15 +32,15 @@
32 32 <table class="table table-sm table-striped" ng-show="manguera.show">
33 33 <tbody>
34 34 <tr ng-repeat="despacho in manguera.despachos">
35   - <td class="py-2 py-sm-1" ng-bind="despacho.FEC | date:'dd/MM/yyyy hh:MM:ss'"></td>
36   - <td class="py-2 py-sm-1" ng-bind="despacho.LTS"></td>
  35 + <td class="py-2 py-sm-1" ng-bind="despacho.FEC | date:'dd/MM/yyyy hh:MM'"></td>
  36 + <td class="py-2 py-sm-1" ng-bind="(despacho.LTS | number: 2) + ' Lts.'"></td>
37 37 <td class="py-2 py-sm-1" ng-bind="despacho.IMP | currency: '$'"></td>
38 38 <td class="py-2 py-sm-1">
39 39 <button
40 40 type="button"
41 41 class="btn btn-default btn-xs p-1 float-right"
42 42 title="Seleccionar"
43   - ng-click="aceptar(producto)"
  43 + ng-click="aceptar(producto, despacho)"
44 44 ><i class="fa fa-circle-thin" aria-hidden="true"></i>
45 45 </button>
46 46 </td>