Commit e8eab560445d74d884262c799a2b0660901ed7f5

Authored by Eric Fernandez
Exists in master

Merge branch 'master' into 'develop'

Master(efernandez)

See merge request !23
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); });