sigesp 1.1.32-20241215 → 1.1.35-20241216

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.
@@ -719,6 +719,10 @@ class MPersonalNomina extends MBasicModel {
719
719
  this.tipoCargo = 'N';
720
720
  this.denominacionTipoCargo = '';
721
721
  this.TipoCargo = TipoCargo;
722
+ this.sueldoNormalFijo = 0;
723
+ this.sueldoNormalVariable = 0;
724
+ this.sueldoNormalBonoVacaciones = 0;
725
+ this.sueldoNormalBonoFinAnio = 0;
722
726
  if (e) {
723
727
  this.idEnterprise = +e.id_enterprise;
724
728
  this.idEmpresa = e.id_empresa;
@@ -827,6 +831,10 @@ class MPersonalNomina extends MBasicModel {
827
831
  this.codigoPermisoPersonal = e.codperper;
828
832
  this.tipoCargo = e.tipcar;
829
833
  this.denominacionTipoCargo = this.TipoCargo.find(e => e.value == this.tipoCargo).denominacion;
834
+ this.sueldoNormalFijo = +e.suenorfij;
835
+ this.sueldoNormalVariable = +e.suenorvar;
836
+ this.sueldoNormalBonoVacaciones = +e.suenorbon;
837
+ this.sueldoNormalBonoFinAnio = +e.suenorbonfin;
830
838
  }
831
839
  else {
832
840
  this.isNew = true;
@@ -920,6 +928,10 @@ class MPersonalNomina extends MBasicModel {
920
928
  id_clasificacion_docente: this.idClasificadorDocente.toString(),
921
929
  id_planhor: this.idPlanHorario.toString(),
922
930
  tipcar: this.tipoCargo,
931
+ suenorfij: this.sueldoNormalFijo.toString(),
932
+ suenorvar: this.sueldoNormalVariable.toString(),
933
+ suenorbon: this.sueldoNormalBonoVacaciones.toString(),
934
+ suenorbonfin: this.sueldoNormalBonoFinAnio.toString(),
923
935
  };
924
936
  }
925
937
  }
@@ -6777,8 +6789,8 @@ class SigespService {
6777
6789
  * @param id de la estructura el idEp3 o idEp5
6778
6790
  * @return Observable<MCuentaEgresos[]>
6779
6791
  */
6780
- planInstitucionalSPG(tipo = 'plan', idEnterprise, periodoFiscal, idEP3o5, nivel) {
6781
- return this.http.get(`${this.URL}/dao/spg/cuentas_egresos_dao.php?tipo=${tipo}&e=${idEnterprise}&periodo=${periodoFiscal}&id=${idEP3o5}&nivel=${nivel}`, { headers: this.getHttpHeaders() })
6792
+ planInstitucionalSPG(tipo = 'plan', idEnterprise, periodoFiscal, idEP3o5, nivel, estatus = '') {
6793
+ return this.http.get(`${this.URL}/dao/spg/cuentas_egresos_dao.php?tipo=${tipo}&e=${idEnterprise}&periodo=${periodoFiscal}&id=${idEP3o5}&nivel=${nivel}&est=${estatus}`, { headers: this.getHttpHeaders() })
6782
6794
  .pipe(map((res) => res.data.map(element => new MCuentaEgresos(element))));
6783
6795
  }
6784
6796
  /**
@@ -7266,8 +7278,8 @@ class SigespService {
7266
7278
  * @return Promise<MCuentaPresupuesto>
7267
7279
  * @author Miguel Ramírez
7268
7280
  */
7269
- async openDialogCuentasPresupuesto() {
7270
- let accounts = await this.getCuentasPresupuesto().toPromise();
7281
+ async openDialogCuentasPresupuesto(idEnterprise, periodoFiscal) {
7282
+ let accounts = await this.getCuentasPresupuesto(idEnterprise, periodoFiscal).toPromise();
7271
7283
  let dialogRef = this.dialog.open(CatalogoComponent, {
7272
7284
  data: {
7273
7285
  columnNames: ['cuenta', 'denominación'],
@@ -7284,9 +7296,13 @@ class SigespService {
7284
7296
  * @description Obtiene las cuentas de recursos y egresos
7285
7297
  * @return Observable<MCuentaPresupuesto>
7286
7298
  * @author Miguel Ramírez
7299
+ * @param filter {numero,sno,C,egreso,ingreso}
7300
+ * @param idEnterprise
7301
+ * @param peridoFiscal
7302
+ * @returns
7287
7303
  */
7288
- getCuentasPresupuesto(filter) {
7289
- return this.http.get(`${this.URL}/dao/spg/plan_unico_cuentas_dao.php?filter=${filter}`, { headers: this.getHttpHeaders() }).pipe(map((res) => res.data.map(element => new MCuentaPresupuesto(element))));
7304
+ getCuentasPresupuesto(idEnterprise, peridoFiscal, filter = 'default') {
7305
+ return this.http.get(`${this.URL}/dao/spg/plan_cuentas_recursos_egresos_dao.php?filter=${filter}&e=${idEnterprise}&per=${peridoFiscal}`, { headers: this.getHttpHeaders() }).pipe(map((res) => res.data.map(element => new MCuentaPresupuesto(element))));
7290
7306
  }
7291
7307
  /**
7292
7308
  * @description Abre el cátalogo de cuentas de la tabla "spg_cuentas"
@@ -7334,9 +7350,9 @@ class SigespService {
7334
7350
  * @author Carlos Albornoz
7335
7351
  * @params filtro: Indica bajo que parametros se va a filtrar el catalogo
7336
7352
  */
7337
- async openCatalogoCuentasPresuspuesto(titulo, filtro = null, ancho = '1000px') {
7353
+ async openCatalogoCuentasPresuspuesto(titulo, filtro = null, ancho = '1000px', idEnterprise, periodoFiscal) {
7338
7354
  let cuentas = [];
7339
- await this.getCuentasPresupuesto().toPromise().then((res) => {
7355
+ await this.getCuentasPresupuesto(idEnterprise, periodoFiscal).toPromise().then((res) => {
7340
7356
  cuentas = res;
7341
7357
  if (filtro) {
7342
7358
  if (filtro.estado) {
@@ -10242,6 +10258,7 @@ class MConceptosNomina extends MBasicModel {
10242
10258
  this.formulaConceptos = '';
10243
10259
  this.idCentroCosto = 0;
10244
10260
  this.codigoCentroCosto = '---';
10261
+ this.denominacionCentroCosto = '';
10245
10262
  this.conceptoGlobal = 0;
10246
10263
  this.condicionConcepto = '';
10247
10264
  this.spgCuentaConcepto = '';
@@ -10291,6 +10308,10 @@ class MConceptosNomina extends MBasicModel {
10291
10308
  this.codigoUnidadAdministrativa = '';
10292
10309
  this.denominacionUnidadAdministraiva = '';
10293
10310
  this.perteneceBeneficiario = 0;
10311
+ this.idFuenteFinanciamiento = 0;
10312
+ this.codigoFueteFinanciamiento = '';
10313
+ this.denominacionFueteFinanciamiento = '';
10314
+ this.denominacionCuentaPresupuesto = '';
10294
10315
  if (e) {
10295
10316
  this.idEnterprise = +e.id_enterprise;
10296
10317
  this.idEmpresa = +e.id_empresa;
@@ -10301,7 +10322,6 @@ class MConceptosNomina extends MBasicModel {
10301
10322
  this.tituloConcepto = e.titcon;
10302
10323
  this.signoConcepto = e.sigcon;
10303
10324
  this.formulaConceptos = e.forcon;
10304
- this.codigoCentroCosto = e.codcencos;
10305
10325
  this.conceptoGlobal = +e.glocon;
10306
10326
  this.condicionConcepto = e.concon;
10307
10327
  this.spgCuentaConcepto = e.spg_cuentacon;
@@ -10350,12 +10370,17 @@ class MConceptosNomina extends MBasicModel {
10350
10370
  this.evaluarEnPrenomina = +e.evaprenom;
10351
10371
  this.antiguedadComplementaria = +e.antigcomp;
10352
10372
  this.idUnidadAdministrativa = +e.id_uniadm;
10353
- this.codigoUnidadAdministrativa = e.coduniadm;
10354
- this.denominacionUnidadAdministraiva = e.denuniadm;
10355
10373
  this.estructuraProgramatica = e.estructura;
10356
10374
  this.perteneceBeneficiario = +e.perben;
10357
10375
  this.idConstanteUnicaConcepto = +e.id_constante;
10358
10376
  this.idCentroCosto = +e.id_cencos;
10377
+ this.denominacionCentroCosto = e.dencencos;
10378
+ this.codigoCentroCosto = e.codcencos;
10379
+ this.codigoUnidadAdministrativa = e.coduniadm;
10380
+ this.denominacionUnidadAdministraiva = e.denuniadm;
10381
+ this.idFuenteFinanciamiento = +e.id_fuefin;
10382
+ this.denominacionFueteFinanciamiento = e.denfuefin;
10383
+ this.codigoFueteFinanciamiento = e.codigoftefin;
10359
10384
  }
10360
10385
  else {
10361
10386
  this.isNew = true;
@@ -10419,6 +10444,7 @@ class MConceptosNomina extends MBasicModel {
10419
10444
  id_uniadm: this.idUnidadAdministrativa.toString(),
10420
10445
  perben: this.perteneceBeneficiario.toString(),
10421
10446
  id_cencos: this.idCentroCosto.toString(),
10447
+ id_fuefin: this.idFuenteFinanciamiento.toString()
10422
10448
  };
10423
10449
  }
10424
10450
  denominacionSigno(sig) {