Commit fa1f1b516797b331b0c8b4f287a387aa5165cf8d
Exists in
master
Merge branch 'master' into 'develop'
Master(efernandez) See merge request !114
Showing
2 changed files
Show diff stats
src/js/controller.js
... | ... | @@ -201,11 +201,13 @@ angular.module('focaCrearRemito').controller('remitoController', |
201 | 201 | |
202 | 202 | function valorPrecioCondicion() { |
203 | 203 | if (parseInt(notaPedido.idListaPrecio) > 0) { |
204 | - crearRemitoService.getListaPrecioById(parseInt(notaPedido.idListaPrecio)) | |
204 | + crearRemitoService | |
205 | + .getListaPrecioById(parseInt(notaPedido.idListaPrecio)) | |
205 | 206 | .then(function (res) { |
206 | 207 | $scope.cabeceras.push({ |
207 | 208 | label: 'Precios y Condiciones:', |
208 | - valor: parseInt(res.data[0].ID) + ' - ' + res.data[0].DES + ' ' + | |
209 | + valor: parseInt(res.data[0].ID) + ' - ' + | |
210 | + res.data[0].DES + ' ' + | |
209 | 211 | remitoBusinessService |
210 | 212 | .plazoToString(notaPedido.notaPedidoPlazo) |
211 | 213 | }); |
src/js/service.js
... | ... | @@ -131,7 +131,7 @@ angular.module('focaCrearRemito') |
131 | 131 | ]; |
132 | 132 | }, |
133 | 133 | eliminarRemito: function (remito) { |
134 | - return $http.post(API_ENDPOINT.URL + '/remito/update', {remito: remito}); | |
134 | + return $http.delete(API_ENDPOINT.URL + '/remito/anular/' + remito.id); | |
135 | 135 | } |
136 | 136 | }; |
137 | 137 | }]); |