Commit 491f30ff840771ce68cc69936a38f3798313a249
Merge branch 'develop' into 'master'
Develop See merge request !5
Showing
1 changed file
Show diff stats
src/js/controller.js
... | ... | @@ -543,6 +543,9 @@ angular.module('focaParametros') |
543 | 543 | }); |
544 | 544 | |
545 | 545 | function nombreFuncion(string) { |
546 | + | |
547 | + if(!string) return; | |
548 | + | |
546 | 549 | var texto = 'seleccionar'; |
547 | 550 | var arr = string.split(' '); |
548 | 551 | arr.forEach(function(palabra) { |
... | ... | @@ -731,6 +734,14 @@ angular.module('focaParametros') |
731 | 734 | }); |
732 | 735 | } |
733 | 736 | |
737 | + if ($scope[entidad.modulo].transportista) { | |
738 | + cabeceras.push({ | |
739 | + label: 'Transportista', | |
740 | + valor: $filter('rellenarDigitos')($scope[entidad.modulo].transportista.COD, | |
741 | + 5) + ' - ' + $scope[entidad.modulo].transportista.NOM | |
742 | + }); | |
743 | + } | |
744 | + | |
734 | 745 | addArrayCabecera(cabeceras, entidad.modulo); |
735 | 746 | |
736 | 747 | } |