Commit aeaaa1bbf1657e97caf59e5c8bf8cf450db92d64

Authored by Eric Fernandez
1 parent 5afc708dc8
Exists in master

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

Showing 2 changed files with 4 additions and 0 deletions   Show diff stats
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 },