Commit 534017d21c0281ce88450b9cd1f275dac1f46477

Authored by Eric Fernandez
Exists in master

Merge branch 'master' into 'master'

bug limpiar pantalla al dar al botón crear después de editar

See merge request modulos-npm/foca-crear-nota-pedido!4
src/js/controller.js
... ... @@ -201,6 +201,7 @@ angular.module('focaCrearNotaPedido')
201 201 $location.path('/venta-nota-pedido/abm/');
202 202 }
203 203 $scope.crearPedido = function() {
  204 + crearNotaPedidoService.clearNotaPedido();
204 205 $location.path('/venta-nota-pedido/abm/');
205 206 }
206 207 }
... ... @@ -12,6 +12,9 @@ angular.module('focaCrearNotaPedido')
12 12 setNotaPedido: function(notaPedido) {
13 13 this.notaPedido = notaPedido;
14 14 },
  15 + clearNotaPedido: function() {
  16 + this.notaPedido = undefined;
  17 + },
15 18 getNotaPedido: function() {
16 19 return this.notaPedido;
17 20 },