Commit 313e64b260aed6f64b6b8158fa308ecd6cc8b397

Authored by Eric Fernandez
Exists in master

Merge branch 'master' into 'master'

limpio pantalla despues de crear nota pedido

See merge request modulos-npm/foca-crear-nota-pedido!14
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 + delete articulosNotaPedido[i].edit;
89 90 crearNotaPedidoService
90 91 .crearArticulosParaNotaPedido(articulosNotaPedido[i]).then(
91 92 function() {
... ... @@ -93,7 +94,17 @@ 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 = '';
  107 + $scope.notaPedido.flete = 0;
97 108 };
98 109 $scope.siguienteTab = function() {
99 110 $scope.active = 1;