Compare View

switch
from
...
to
 
Commits (5)
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 });
... ... @@ -886,6 +888,8 @@ angular.module('focaCrearRemito').controller('remitoController',
886 888 cotizacionPArgentino.moneda = moneda;
887 889  
888 890 actualizarCabeceraMoneda(cotizacionPArgentino);
  891 + $filter('filter')($scope.botonera,
  892 + { label: 'Moneda' })[0].checked = true;
889 893  
890 894 $scope.remito.cotizacion = cotizacionPArgentino;
891 895 });
... ... @@ -924,6 +928,8 @@ angular.module('focaCrearRemito').controller('remitoController',
924 928 cotizacion.moneda = moneda;
925 929 $scope.remitoIsDirty = true;
926 930 actualizarCabeceraMoneda(cotizacion);
  931 + $filter('filter')($scope.botonera,
  932 + { label: 'Moneda' })[0].checked = true;
927 933 $scope.remito.cotizacion = cotizacion;
928 934 }, function () {
929 935  
... ... @@ -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 }]);