Commit f1107299d84fc63b090ecf0e186f51822e5b9c86

Authored by Eric Fernandez
Exists in master

Merge branch 'master' into 'master'

Master

See merge request modulos-npm/foca-crear-remito!20
src/js/controller.js
... ... @@ -47,7 +47,7 @@ angular.module('focaCrearRemito') .controller('remitoController',
47 47 addCabecera('Moneda:', monedaPorDefecto.DETALLE);
48 48 addCabecera('Fecha cotizacion:',
49 49 new Date(monedaPorDefecto.cotizaciones[0].FECHA).toLocaleDateString());
50   - addCabecera('Cotizacion:', monedaPorDefecto.cotizaciones[0].COTIZACION);
  50 + addCabecera('Cotizacion:', monedaPorDefecto.cotizaciones[0].VENDEDOR);
51 51 $scope.remito.moneda = monedaPorDefecto;
52 52 $scope.remito.cotizacion = monedaPorDefecto.cotizaciones[0];
53 53 });
... ... @@ -141,7 +141,7 @@ angular.module('focaCrearRemito') .controller('remitoController',
141 141 valor: valorPrecioCondicion()
142 142 }
143 143 ];
144   - //TO DO CUANDO MOSTRAR PLAZOS
  144 + //TODO: CUANDO MOSTRAR PLAZOS
145 145 function valorPrecioCondicion() {
146 146 if(notaPedido.idPrecioCondicion > 0) {
147 147 return notaPedido.precioCondicion[0].nombre;
... ... @@ -359,7 +359,7 @@ angular.module('focaCrearRemito') .controller('remitoController',
359 359 var date = new Date();
360 360 var save = {
361 361 remito: {
362   - id: 0,
  362 + id: $scope.remito.id,
363 363 fechaRemito:
364 364 new Date(date.getTime() - (date.getTimezoneOffset() * 60000))
365 365 .toISOString().slice(0, 19).replace('T', ' '),//TODO$filter
... ... @@ -392,7 +392,7 @@ angular.module('focaCrearRemito') .controller('remitoController',
392 392 idVendedor: $scope.remito.idVendedor,
393 393 idProveedor: $scope.remito.idProveedor,
394 394 idDomicilio: 0,//TODO
395   - idCotizacion: $scope.remito.idCotizacion,
  395 + idCotizacion: $scope.remito.cotizacion.ID,
396 396 idPrecioCondicion: $scope.remito.idPrecioCondicion,
397 397 flete: $scope.remito.flete,
398 398 fob: $scope.remito.fob,