From aeaaa1bbf1657e97caf59e5c8bf8cf450db92d64 Mon Sep 17 00:00:00 2001 From: Eric Fernandez Date: Tue, 9 Oct 2018 11:37:21 -0300 Subject: [PATCH] =?UTF-8?q?bug=20limpiar=20pantalla=20al=20dar=20al=20bot?= =?UTF-8?q?=C3=B3n=20crear=20despu=C3=A9s=20de=20editar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/js/controller.js | 1 + src/js/service.js | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/js/controller.js b/src/js/controller.js index 1c275ba..c69a294 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -201,6 +201,7 @@ angular.module('focaCrearNotaPedido') $location.path('/venta-nota-pedido/abm/'); } $scope.crearPedido = function() { + crearNotaPedidoService.clearNotaPedido(); $location.path('/venta-nota-pedido/abm/'); } } diff --git a/src/js/service.js b/src/js/service.js index f801ef3..d6abfd5 100644 --- a/src/js/service.js +++ b/src/js/service.js @@ -12,6 +12,9 @@ angular.module('focaCrearNotaPedido') setNotaPedido: function(notaPedido) { this.notaPedido = notaPedido; }, + clearNotaPedido: function() { + this.notaPedido = undefined; + }, getNotaPedido: function() { return this.notaPedido; }, -- 1.9.1