sigesp 1.1.23-20241113 → 1.1.25-20241118

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.
@@ -2038,7 +2038,7 @@ class MFuenteFinanciamiento extends MBasicModel {
2038
2038
  }
2039
2039
 
2040
2040
  class MCuentaEgresos extends MBasicModel {
2041
- constructor(cuenta, level, isNew) {
2041
+ constructor(cuenta) {
2042
2042
  super();
2043
2043
  this.idEmpresa = 0;
2044
2044
  this.idEnterprise = 0;
@@ -2047,7 +2047,6 @@ class MCuentaEgresos extends MBasicModel {
2047
2047
  this.denominacion = '';
2048
2048
  this.cuenta = '';
2049
2049
  this.cuentaContable = '------------';
2050
- this.cuentaONCOP = '------------';
2051
2050
  this.clasificador = '------------';
2052
2051
  this.referencia = '';
2053
2052
  this.aumento = 0;
@@ -2074,17 +2073,18 @@ class MCuentaEgresos extends MBasicModel {
2074
2073
  this.idEP3 = 0;
2075
2074
  this.idEP4 = 0;
2076
2075
  this.idEP5 = 0;
2077
- this.codestpro1 = '';
2078
- this.codestpro2 = '';
2079
- this.codestpro3 = '';
2080
- this.codestpro4 = '';
2081
- this.codestpro5 = '';
2076
+ this.codigoEp1 = '';
2077
+ this.codigoEp2 = '';
2078
+ this.codigoEp3 = '';
2079
+ this.codigoEp4 = '';
2080
+ this.codigoEp5 = '';
2082
2081
  this.estructura = '';
2083
2082
  this.selected = false;
2084
2083
  this.isNew = false;
2085
2084
  this.error = false;
2086
2085
  this.status = '';
2087
2086
  this.id = 0;
2087
+ this.denominacionEstructura = '';
2088
2088
  if (cuenta) {
2089
2089
  this.idEmpresa = parseInt(cuenta.id_empresa);
2090
2090
  this.idEnterprise = +cuenta.id_enterprise;
@@ -2115,30 +2115,20 @@ class MCuentaEgresos extends MBasicModel {
2115
2115
  this.noviembre = parseFloat(cuenta.noviembre);
2116
2116
  this.diciembre = parseFloat(cuenta.diciembre);
2117
2117
  this.clasificador = cuenta.codcuecla;
2118
- this.cuentaONCOP = cuenta.cueoncop;
2119
2118
  this.idEP1 = parseInt(cuenta.id_ep1);
2120
2119
  this.idEP2 = parseInt(cuenta.id_ep2);
2121
2120
  this.idEP3 = parseInt(cuenta.id_ep3);
2122
2121
  this.idEP4 = parseInt(cuenta.id_ep4);
2123
2122
  this.idEP5 = parseInt(cuenta.id_ep5);
2124
2123
  this.id = cuenta.id_del_spgcta ? parseInt(cuenta.id_del_spgcta) : 0;
2125
- this.codestpro1 = cuenta.estructura ? cuenta.estructura.codestpro1 : '';
2126
- this.codestpro2 = cuenta.estructura ? cuenta.estructura.codestpro2 : '';
2127
- this.codestpro3 = cuenta.estructura ? cuenta.estructura.codestpro3 : '';
2128
- this.codestpro4 = cuenta.estructura ? cuenta.estructura.codestpro4 : '';
2129
- this.codestpro5 = cuenta.estructura ? cuenta.estructura.codestpro5 : '';
2130
- if (cuenta.estructura && level) {
2131
- if (level == 3) {
2132
- this.estructura = `${this.codestpro1}-${this.codestpro2}-${this.codestpro3}`;
2133
- }
2134
- else if (level == 4) {
2135
- this.estructura = `${this.codestpro1}-${this.codestpro2}-${this.codestpro3}-${this.codestpro4}`;
2136
- }
2137
- else {
2138
- this.estructura = `${this.codestpro1}-${this.codestpro2}-${this.codestpro3}-${this.codestpro4}-${this.codestpro5}`;
2139
- }
2140
- }
2141
2124
  this.isNew = false;
2125
+ this.codigoEp1 = cuenta.codestpro1,
2126
+ this.codigoEp2 = cuenta.codestpro2,
2127
+ this.codigoEp3 = cuenta.codestpro3,
2128
+ this.codigoEp4 = cuenta.codestpro4,
2129
+ this.codigoEp5 = cuenta.codestpro5,
2130
+ this.estructura = cuenta.estructura;
2131
+ this.denominacionEstructura = cuenta.denestructura;
2142
2132
  }
2143
2133
  else {
2144
2134
  this.isNew = true;
@@ -2405,6 +2395,8 @@ class MUserDetail extends MBasicModel {
2405
2395
  this.telephone = '';
2406
2396
  this.admin = false;
2407
2397
  this.rights = [];
2398
+ this.ultcon = '';
2399
+ this.id_personal = 0;
2408
2400
  if (user) {
2409
2401
  this.idCompany = parseInt(user.id_empresa);
2410
2402
  this.idEnterprise = parseInt(user.id_enterprise);
@@ -2424,6 +2416,8 @@ class MUserDetail extends MBasicModel {
2424
2416
  this.password = user.pwdusu;
2425
2417
  this.telephone = user.telusu;
2426
2418
  this.admin = user.usuadm == "1";
2419
+ this.ultcon = user.ultcon;
2420
+ this.id_personal = +user.id_personal;
2427
2421
  this.rights = user.derechos ? user.derechos.map(e => new MRights(e)) : [];
2428
2422
  }
2429
2423
  else {
@@ -2450,6 +2444,8 @@ class MUserDetail extends MBasicModel {
2450
2444
  pwdusu: this.password,
2451
2445
  telusu: this.telephone,
2452
2446
  usuadm: this.admin ? '1' : '2',
2447
+ ultcon: this.ultcon,
2448
+ id_personal: this.id_personal.toString(),
2453
2449
  derechos: this.rights.map(e => e.interface())
2454
2450
  };
2455
2451
  }
@@ -3880,11 +3876,11 @@ class MEstructuras extends MBasicModel {
3880
3876
  this.idEp5 = parseInt(dt.id_ep5);
3881
3877
  this.monto = parseFloat(dt.monto);
3882
3878
  this.estatus = dt.status;
3883
- this.codigoEep1 = dt.codeep1;
3884
- this.codigoEep2 = dt.codeep2;
3885
- this.codigoEep3 = dt.codeep3;
3886
- this.codigoEep4 = dt.codeep4;
3887
- this.codigoEep5 = dt.codeep5;
3879
+ this.codigoEep1 = dt.codestpro1;
3880
+ this.codigoEep2 = dt.codestpro1;
3881
+ this.codigoEep3 = dt.codestpro1;
3882
+ this.codigoEep4 = dt.codestpro1;
3883
+ this.codigoEep5 = dt.codestpro1;
3888
3884
  this.denominacionEstructura = dt.denestructura;
3889
3885
  this.denominacion5 = dt.denestpro5;
3890
3886
  this.denominacion3 = dt.denestpro3;
@@ -7344,8 +7340,8 @@ class SigespService {
7344
7340
  }
7345
7341
  });
7346
7342
  }
7347
- getExpenseAccounts(idEnterprise, periodoFiscal) {
7348
- return this.http.get(`${this.URL}/dao/spg/cuentas_egresos_dao.php?e=${idEnterprise}&periodo=${periodoFiscal}`, { headers: this.getHttpHeaders() })
7343
+ getExpenseAccounts(idEnterprise, periodoFiscal, estatus) {
7344
+ return this.http.get(`${this.URL}/dao/spg/cuentas_egresos_dao.php?e=${idEnterprise}&periodo=${periodoFiscal}&est=${estatus}`, { headers: this.getHttpHeaders() })
7349
7345
  .pipe(map((res) => res.data.map(element => new MCuentaEgresos(element))));
7350
7346
  }
7351
7347
  /**