Commit b9d8b314493dd86aa820ea9505cb7621a8955007
1 parent
c982de1e60
Exists in
master
and in
1 other branch
agrego función concatenar plazos
Showing
1 changed file
with
7 additions
and
0 deletions
Show diff stats
src/js/businessService.js
| ... | ... | @@ -27,6 +27,13 @@ angular.module('focaCrearNotaPedido') |
| 27 | 27 | for(var i = 0; i < articulos.length; i++) { |
| 28 | 28 | articulos[i].precio = articulos[i].precio / cotizacion; |
| 29 | 29 | } |
| 30 | + }, | |
| 31 | + plazoToString: function (plazos) { | |
| 32 | + var result = ''; | |
| 33 | + for(var i = 0; i < plazos.length; i++) { | |
| 34 | + result += plazos[i].dias + ' '; | |
| 35 | + } | |
| 36 | + return result.trim(); | |
| 30 | 37 | } |
| 31 | 38 | }; |
| 32 | 39 | }]); |