Commit 47d08ee7f211e32e6ac255f0c796b013533a3d9c
1 parent
55e586763f
Exists in
master
Borrado if.
Showing
1 changed file
with
0 additions
and
17 deletions
Show diff stats
src/js/controller.js
| ... | ... | @@ -87,23 +87,6 @@ angular.module('focaCrearFactura').controller('facturaController', [ |
| 87 | 87 | ); |
| 88 | 88 | |
| 89 | 89 | $scope.inicial = angular.copy($scope.factura); |
| 90 | - if (APP === 'facturador') { | |
| 91 | - var modalInstance = $uibModal.open( | |
| 92 | - { | |
| 93 | - templateUrl: 'modal-estado-cuenta.html', | |
| 94 | - controller: 'focaModalEstadoCuentaController', | |
| 95 | - size: 'lg' | |
| 96 | - } | |
| 97 | - ); | |
| 98 | - modalInstance.result | |
| 99 | - .then(function (data) { | |
| 100 | - $scope.$broadcast('addCabecera', { | |
| 101 | - label: 'Tipo de pago: ', | |
| 102 | - valor: data | |
| 103 | - }); | |
| 104 | - }) | |
| 105 | - .catch(function (e) { console.error(e); }); | |
| 106 | - } | |
| 107 | 90 | } |
| 108 | 91 | |
| 109 | 92 | $scope.$watch('factura', function (newValue) { |