sigesp 0.8.66-220126 → 0.8.67-220127

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -430,10 +430,10 @@
430
430
  _this.horaAdicional2 = 0;
431
431
  _this.estatusMPPPE = false;
432
432
  _this.montoSaldoGrado = 0;
433
- _this.salarioPersonal = 0;
434
433
  _this.apellidoPersonal = '';
435
434
  _this.denominacionEstatus = '';
436
435
  _this.nombreCompleto = '';
436
+ _this.nominaRac = 0;
437
437
  if (e) {
438
438
  _this.idEmpresa = parseInt(e.id_empresa);
439
439
  _this.idPersonalNomina = parseInt(e.id_personalnomina);
@@ -508,13 +508,18 @@
508
508
  _this.horaAdicional2 = parseFloat(e.horadi2);
509
509
  _this.estatusMPPPE = e.estmpppe == '1' ? true : false;
510
510
  _this.montoSaldoGrado = parseFloat(e.monsalgra);
511
- _this.montoSaldoGrado = parseFloat(e.monsalgra);
512
511
  _this.denominacionEstatus = e.staper == '1' ? 'ACTIVO' :
513
512
  _this.denominacionEstatus = e.staper == '2' ? 'VACACIONES' :
514
513
  _this.denominacionEstatus = e.staper == '3' ? 'EGRESADO' : 'SUSPENDIDO';
515
514
  _this.apellidoPersonal = e.apeper;
516
515
  _this.nombreCompleto = _this.nombrePersonal + ' ' + _this.apellidoPersonal;
517
- if (_this.idTabulador > 0) {
516
+ _this.nominaRac = parseInt(e.racnom);
517
+ if (_this.nominaRac == 0) {
518
+ _this.idTabulador = 0;
519
+ _this.codigoPaso = '0';
520
+ _this.codigoGrado = '0';
521
+ }
522
+ if (_this.idTabulador > 0 && _this.nominaRac == 1) {
518
523
  _this.sueldoPersonal = _this.montoSaldoGrado;
519
524
  }
520
525
  if (_this.idAgencia > 0) {
@@ -534,8 +539,13 @@
534
539
  return _this;
535
540
  }
536
541
  MPersonalNomina.prototype.dataInterface = function () {
537
- if (this.idTabulador > 0) {
538
- this.sueldoPersonal = this.salarioPersonal;
542
+ if (this.idTabulador > 0 && this.nominaRac == 1) {
543
+ this.sueldoPersonal = this.montoSaldoGrado;
544
+ }
545
+ else {
546
+ this.idTabulador = 0;
547
+ this.codigoPaso = '0';
548
+ this.codigoGrado = '0';
539
549
  }
540
550
  return {
541
551
  id_empresa: this.idEmpresa.toString(),
@@ -708,7 +718,7 @@
708
718
  this.id = parseInt(user.id_usuario);
709
719
  this.interface = user;
710
720
  this.nomina = parseInt(user.nomina);
711
- this.periodoActual = parseInt(user.periodo);
721
+ this.periodo = parseInt(user.periodo);
712
722
  }
713
723
  MUsuario.prototype.getInterface = function () {
714
724
  return this.interface;