Commit d55dfb3f3b04cfa7822fda98da1992fdd2e1796b
1 parent
5b9d7a11ac
Exists in
master
fix idLista precio, numero remito sucursal remito
Showing
2 changed files
with
7 additions
and
7 deletions
Show diff stats
src/js/controller.js
| ... | ... | @@ -63,15 +63,15 @@ angular.module('focaModalDescarga') |
| 63 | 63 | idProveedor: $scope.remito.proveedor.COD, |
| 64 | 64 | idDomicilio: 0, |
| 65 | 65 | idCotizacion: $scope.remito.cotizacion.ID, |
| 66 | - idListaPrecio: $scope.remito.cliente.mod, | |
| 66 | + idListaPrecio: parseInt($scope.remito.cliente.mod), | |
| 67 | 67 | flete: $scope.remito.flete, |
| 68 | 68 | fob: $scope.remito.fob, |
| 69 | 69 | bomba: $scope.remito.bomba, |
| 70 | 70 | kilometros: $scope.remito.kilometros, |
| 71 | 71 | domicilioStamp: $scope.remito.cliente.DOM, |
| 72 | 72 | observaciones: $scope.remito.observaciones, |
| 73 | - numeroRemito: parseInt($scope.comprobante), | |
| 74 | - sucursal: parseInt($scope.puntoVenta), | |
| 73 | + numeroRemito: parseInt($scope.nroRemito), | |
| 74 | + sucursal: parseInt($scope.nroSucursal), | |
| 75 | 75 | responsabilidadIvaCliente: $scope.remito.cliente.iva, |
| 76 | 76 | descuento: 0,//TODO, |
| 77 | 77 | importeNeto: getImporte('netoUnitario'), |
src/views/foca-modal-descarga.html
| ... | ... | @@ -43,14 +43,14 @@ |
| 43 | 43 | type="number" class="text-center form-control form-control-sm" |
| 44 | 44 | ng-focus="$event.target.select();" |
| 45 | 45 | ng-model="nroSucursal" |
| 46 | - ng-change="validateSucursalRemito(nroSucursal, remito.numeroRemito)"> | |
| 46 | + ng-change="validateSucursalRemito(nroSucursal, nroRemito)"> | |
| 47 | 47 | </div> |
| 48 | 48 | <div class="col-6 mt-1"> |
| 49 | 49 | <input |
| 50 | 50 | type="number" class="text-center form-control form-control-sm" |
| 51 | 51 | ng-focus="$event.target.select();" |
| 52 | - ng-model="remito.numeroRemito" | |
| 53 | - ng-change="validateSucursalRemito(nroSucursal, remito.numeroRemito)"> | |
| 52 | + ng-model="nroRemito" | |
| 53 | + ng-change="validateSucursalRemito(nroSucursal, nroRemito)"> | |
| 54 | 54 | </div> |
| 55 | 55 | <div |
| 56 | 56 | class="col-12 mt-1 alert alert-danger text-center" role="alert" |
| ... | ... | @@ -108,6 +108,6 @@ |
| 108 | 108 | type="button" |
| 109 | 109 | ng-click="crearRemito()" |
| 110 | 110 | ng-disabled="tieneArticulosPendientes() || |
| 111 | - idRemito === -1 || hasErrorSucursalRemito || !nroSucursal || !remito.numeroRemito" | |
| 111 | + idRemito === -1 || hasErrorSucursalRemito || !nroSucursal || !nroRemito" | |
| 112 | 112 | foca-focus="!tieneArticulosPendientes() && idRemito !== -1">Descargar</button> |
| 113 | 113 | </div> |