Commit 40bf835974641a606c2048275a3ed2fce5a47046
Exists in
master
Merge branch 'master' into 'master'
plazos con comas, codigo correcto See merge request !3
Showing
2 changed files
Show diff stats
src/js/controller.js
| ... | ... | @@ -17,7 +17,11 @@ angular.module('focaModalPrecioCondicion') |
| 17 | 17 | for(var i = 0; i < res.data.length; i++) { |
| 18 | 18 | var plazosTemp = ''; |
| 19 | 19 | for(var j = 0; j < res.data[i].plazoPago.length; j++) { |
| 20 | - plazosTemp += res.data[i].plazoPago[j].dias + ' '; | |
| 20 | + if(j + 1 === res.data[i].plazoPago.length) { | |
| 21 | + plazosTemp += res.data[i].plazoPago[j].dias; | |
| 22 | + }else { | |
| 23 | + plazosTemp += res.data[i].plazoPago[j].dias + ', '; | |
| 24 | + } | |
| 21 | 25 | } |
| 22 | 26 | res.data[i].plazos = plazosTemp.trim(); |
| 23 | 27 | } |
src/views/modal-precio-condicion.html
| ... | ... | @@ -74,7 +74,7 @@ |
| 74 | 74 | <tr class="selectable" |
| 75 | 75 | ng-repeat="(key, precioCondicion) in currentPagePrecioCondicion" |
| 76 | 76 | ng-click="select(precioCondicion)"> |
| 77 | - <td ng-bind="precioCondicion.codigo"></td> | |
| 77 | + <td ng-bind="precioCondicion.id | rellenarDigitos: 4: 0"></td> | |
| 78 | 78 | <td ng-bind="precioCondicion.nombre"></td> |
| 79 | 79 | <td ng-bind="precioCondicion.idListaPrecio"></td> |
| 80 | 80 | <td ng-bind="precioCondicion.plazos"></td> |