Commit daa9c2101e1a203a2e0d7f047c61b0237b7ba5aa
1 parent
d0d0cb3ff5
Exists in
master
and in
1 other branch
forma de pago
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
src/js/controller.js
| ... | ... | @@ -151,6 +151,12 @@ angular.module('focaCrearFactura').controller('facturaController', [ |
| 151 | 151 | modalInstance.result |
| 152 | 152 | .then(function (data) { |
| 153 | 153 | |
| 154 | + if (data.tipo == 'tarjeta') { | |
| 155 | + $scope.factura.formaPago = 4; | |
| 156 | + } else { | |
| 157 | + $scope.factura.formaPago = 1; | |
| 158 | + } | |
| 159 | + | |
| 154 | 160 | $scope.crearFactura(data); |
| 155 | 161 | }) |
| 156 | 162 | .catch(function (e) { console.error(e); }); |