Commit 7c0585b502c185490e2c5578ef40883778e75661

Authored by Eric Fernandez
1 parent 1720fd1224
Exists in master and in 1 other branch develop

servicio obtener próximo número de comprobante

Showing 1 changed file with 5 additions and 2 deletions   Show diff stats
... ... @@ -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 , {