diff --git a/src/js/controller.js b/src/js/controller.js index 6debf3d..51f1c72 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -47,7 +47,7 @@ angular.module('focaCrearRemito') .controller('remitoController', addCabecera('Moneda:', monedaPorDefecto.DETALLE); addCabecera('Fecha cotizacion:', new Date(monedaPorDefecto.cotizaciones[0].FECHA).toLocaleDateString()); - addCabecera('Cotizacion:', monedaPorDefecto.cotizaciones[0].COTIZACION); + addCabecera('Cotizacion:', monedaPorDefecto.cotizaciones[0].VENDEDOR); $scope.remito.moneda = monedaPorDefecto; $scope.remito.cotizacion = monedaPorDefecto.cotizaciones[0]; }); @@ -141,7 +141,7 @@ angular.module('focaCrearRemito') .controller('remitoController', valor: valorPrecioCondicion() } ]; - //TO DO CUANDO MOSTRAR PLAZOS + //TODO CUANDO MOSTRAR PLAZOS function valorPrecioCondicion() { if(notaPedido.idPrecioCondicion > 0) { return notaPedido.precioCondicion[0].nombre; @@ -359,7 +359,7 @@ angular.module('focaCrearRemito') .controller('remitoController', var date = new Date(); var save = { remito: { - id: 0, + id: $scope.remito.id, fechaRemito: new Date(date.getTime() - (date.getTimezoneOffset() * 60000)) .toISOString().slice(0, 19).replace('T', ' '),//TODO$filter @@ -392,7 +392,7 @@ angular.module('focaCrearRemito') .controller('remitoController', idVendedor: $scope.remito.idVendedor, idProveedor: $scope.remito.idProveedor, idDomicilio: 0,//TODO - idCotizacion: $scope.remito.idCotizacion, + idCotizacion: $scope.remito.cotizacion.ID, idPrecioCondicion: $scope.remito.idPrecioCondicion, flete: $scope.remito.flete, fob: $scope.remito.fob,