Commit fd7e00c8eb0bd61a9be36200a71da7df855a282d

Authored by Eric Fernandez
1 parent af5dab89fe
Exists in master

limpio pantalla despues de crear nota pedido

Showing 1 changed file with 13 additions and 1 deletions   Show diff stats
src/js/controller.js
... ... @@ -86,6 +86,7 @@ angular.module('focaCrearNotaPedido')
86 86 );
87 87 var articulosNotaPedido = $scope.articulosTabla;
88 88 for(var i = 0; i< articulosNotaPedido.length;i++) {
  89 + articulosNotaPedido.edit = undefined;
89 90 crearNotaPedidoService
90 91 .crearArticulosParaNotaPedido(articulosNotaPedido[i]).then(
91 92 function() {
... ... @@ -93,7 +94,18 @@ angular.module(&#39;focaCrearNotaPedido&#39;)
93 94 }
94 95 );
95 96 }
96   -
  97 + $scope.notaPedido.precioCondicion = '';
  98 + $scope.articulosTabla = [];
  99 + $scope.notaPedido.fleteNombre = '';
  100 + $scope.notaPedido.chofer = '';
  101 + $scope.notaPedido.vehiculo = '';
  102 + $scope.notaPedido.kilometros = '';
  103 + $scope.notaPedido.costoUnitarioKmFlete = '';
  104 + $scope.notaPedido.vendedor.nombre = '';
  105 + $scope.notaPedido.cliente.nombre = '';
  106 + $scope.domicilio.dom = '';
  107 + $scope.notaPedido.flete = 0;
  108 + focaModalService.alert('Nota de pedido creada');
97 109 };
98 110 $scope.siguienteTab = function() {
99 111 $scope.active = 1;