Commit e4c7f76670d89a54c7e5706073a71d6bff1147c8
Exists in
master
and in
1 other branch
Merge branch 'master' into 'develop'
Master(efernandez) See merge request !127
Showing
1 changed file
Show diff stats
src/js/service.js
| ... | ... | @@ -66,8 +66,11 @@ angular.module('focaCrearRemito') |
| 66 | 66 | crearEstadoParaRemito: function(estado) { |
| 67 | 67 | return $http.post(route + '/estado', {estado: estado}); |
| 68 | 68 | }, |
| 69 | - getNumeroRemito: function() { | |
| 70 | - return $http.get(route + '/remito/numero-siguiente'); | |
| 69 | + getNumeroRemito: function(tipoComprobante) { | |
| 70 | + | |
| 71 | + var tipo = tipoComprobante ? '/' + tipoComprobante : ''; | |
| 72 | + | |
| 73 | + return $http.get(route + '/remito/numero-siguiente' + tipo); | |
| 71 | 74 | }, |
| 72 | 75 | imprimirRemitoByIdRemito: function(idRemito) { |
| 73 | 76 | return $http.get(route + '/remito/comprobante/' + idRemito , { |