Compare View
Commits (6)
-
Master See merge request !111
-
Master See merge request !112
-
Master(mpuebla) See merge request !113
-
Master See merge request !115
Showing
2 changed files
Show diff stats
src/js/controller.js
... | ... | @@ -260,7 +260,6 @@ angular.module('focaCrearNotaPedido').controller('notaPedidoCtrl', |
260 | 260 | }; |
261 | 261 | |
262 | 262 | $scope.seleccionarProductos = function () { |
263 | - | |
264 | 263 | if ($scope.notaPedido.idListaPrecio === undefined) { |
265 | 264 | focaModalService.alert('Primero seleccione una lista de precio y condición'); |
266 | 265 | return; |
... | ... | @@ -685,10 +684,13 @@ angular.module('focaCrearNotaPedido').controller('notaPedidoCtrl', |
685 | 684 | cabecera = 'Ingreso manual ' + plazosConcat.trim(); |
686 | 685 | } |
687 | 686 | |
688 | - $filter('filter')($scope.cabeceras, | |
689 | - { label: 'Precios y Condiciones' })[0].valor = cabecera; | |
690 | - | |
691 | - $scope.notaPedido.precioCondicion = precioCondicion; | |
687 | + $scope.cabeceras.push({ | |
688 | + label: 'Precios y Condiciones:', | |
689 | + valor: parseInt(precioCondicion.listaPrecio.ID) + | |
690 | + ' - ' + precioCondicion.listaPrecio.DES + ' ' + | |
691 | + notaPedidoBusinessService.plazoToString(precioCondicion.plazoPago) | |
692 | + }); | |
693 | + $scope.notaPedido.idListaPrecio = parseInt(precioCondicion.listaPrecio.ID); | |
692 | 694 | |
693 | 695 | $filter('filter')($scope.botonera, |
694 | 696 | { label: 'Precios y Condiciones' })[0].checked = true; |
src/views/nota-pedido.html
... | ... | @@ -64,7 +64,7 @@ |
64 | 64 | ></td> |
65 | 65 | <td |
66 | 66 | class="col-4" |
67 | - ng-bind="articulo.nombre" | |
67 | + ng-bind="articulo.descripcion" | |
68 | 68 | ></td> |
69 | 69 | <td class="col text-right"> |
70 | 70 | <input |
... | ... | @@ -150,7 +150,7 @@ |
150 | 150 | <td class="col-4 tabla-articulo-descripcion"> |
151 | 151 | <input |
152 | 152 | class="form-control" |
153 | - ng-model="articuloACargar.nombre" | |
153 | + ng-model="articuloACargar.descripcion" | |
154 | 154 | readonly |
155 | 155 | > |
156 | 156 | </td> |
... | ... | @@ -263,7 +263,7 @@ |
263 | 263 | ></span> |
264 | 264 | </div> |
265 | 265 | <div class="col-8 px-1"> |
266 | - <span ng-bind="articulo.nombre"></span> | |
266 | + <span ng-bind="articulo.descripcion"></span> | |
267 | 267 | </div> |
268 | 268 | </div> |
269 | 269 | <div class="d-flex"> |
... | ... | @@ -330,7 +330,7 @@ |
330 | 330 | ></span> |
331 | 331 | </div> |
332 | 332 | <div class="col-8 px-1"> |
333 | - <span ng-bind="articuloACargar.nombre"></span> | |
333 | + <span ng-bind="articuloACargar.descripcion"></span> | |
334 | 334 | </div> |
335 | 335 | </div> |
336 | 336 | <div class="d-flex"> |