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.
- package/esm2020/lib/core/interfaces/CuentaEgresos.mjs +1 -1
- package/esm2020/lib/core/interfaces/Presupuesto.mjs +1 -1
- package/esm2020/lib/core/interfaces/Seguridad.mjs +1 -1
- package/esm2020/lib/core/models/SPG/administrativeUnit.model.mjs +6 -6
- package/esm2020/lib/core/models/SPG/expensiveAccount.model.mjs +15 -25
- package/esm2020/lib/core/models/SSS/userDetail.model.mjs +7 -1
- package/esm2020/lib/sigesp.service.mjs +3 -3
- package/fesm2015/sigesp.mjs +27 -31
- package/fesm2015/sigesp.mjs.map +1 -1
- package/fesm2020/sigesp.mjs +27 -31
- package/fesm2020/sigesp.mjs.map +1 -1
- package/lib/core/interfaces/CuentaEgresos.d.ts +8 -2
- package/lib/core/interfaces/Presupuesto.d.ts +5 -5
- package/lib/core/interfaces/Seguridad.d.ts +2 -0
- package/lib/core/models/SPG/expensiveAccount.model.d.ts +7 -7
- package/lib/core/models/SSS/userDetail.model.d.ts +2 -0
- package/lib/sigesp.service.d.ts +1 -1
- package/package.json +1 -1
package/fesm2020/sigesp.mjs
CHANGED
|
@@ -2031,7 +2031,7 @@ class MFuenteFinanciamiento extends MBasicModel {
|
|
|
2031
2031
|
}
|
|
2032
2032
|
|
|
2033
2033
|
class MCuentaEgresos extends MBasicModel {
|
|
2034
|
-
constructor(cuenta
|
|
2034
|
+
constructor(cuenta) {
|
|
2035
2035
|
super();
|
|
2036
2036
|
this.idEmpresa = 0;
|
|
2037
2037
|
this.idEnterprise = 0;
|
|
@@ -2040,7 +2040,6 @@ class MCuentaEgresos extends MBasicModel {
|
|
|
2040
2040
|
this.denominacion = '';
|
|
2041
2041
|
this.cuenta = '';
|
|
2042
2042
|
this.cuentaContable = '------------';
|
|
2043
|
-
this.cuentaONCOP = '------------';
|
|
2044
2043
|
this.clasificador = '------------';
|
|
2045
2044
|
this.referencia = '';
|
|
2046
2045
|
this.aumento = 0;
|
|
@@ -2067,17 +2066,18 @@ class MCuentaEgresos extends MBasicModel {
|
|
|
2067
2066
|
this.idEP3 = 0;
|
|
2068
2067
|
this.idEP4 = 0;
|
|
2069
2068
|
this.idEP5 = 0;
|
|
2070
|
-
this.
|
|
2071
|
-
this.
|
|
2072
|
-
this.
|
|
2073
|
-
this.
|
|
2074
|
-
this.
|
|
2069
|
+
this.codigoEp1 = '';
|
|
2070
|
+
this.codigoEp2 = '';
|
|
2071
|
+
this.codigoEp3 = '';
|
|
2072
|
+
this.codigoEp4 = '';
|
|
2073
|
+
this.codigoEp5 = '';
|
|
2075
2074
|
this.estructura = '';
|
|
2076
2075
|
this.selected = false;
|
|
2077
2076
|
this.isNew = false;
|
|
2078
2077
|
this.error = false;
|
|
2079
2078
|
this.status = '';
|
|
2080
2079
|
this.id = 0;
|
|
2080
|
+
this.denominacionEstructura = '';
|
|
2081
2081
|
if (cuenta) {
|
|
2082
2082
|
this.idEmpresa = parseInt(cuenta.id_empresa);
|
|
2083
2083
|
this.idEnterprise = +cuenta.id_enterprise;
|
|
@@ -2108,30 +2108,20 @@ class MCuentaEgresos extends MBasicModel {
|
|
|
2108
2108
|
this.noviembre = parseFloat(cuenta.noviembre);
|
|
2109
2109
|
this.diciembre = parseFloat(cuenta.diciembre);
|
|
2110
2110
|
this.clasificador = cuenta.codcuecla;
|
|
2111
|
-
this.cuentaONCOP = cuenta.cueoncop;
|
|
2112
2111
|
this.idEP1 = parseInt(cuenta.id_ep1);
|
|
2113
2112
|
this.idEP2 = parseInt(cuenta.id_ep2);
|
|
2114
2113
|
this.idEP3 = parseInt(cuenta.id_ep3);
|
|
2115
2114
|
this.idEP4 = parseInt(cuenta.id_ep4);
|
|
2116
2115
|
this.idEP5 = parseInt(cuenta.id_ep5);
|
|
2117
2116
|
this.id = cuenta.id_del_spgcta ? parseInt(cuenta.id_del_spgcta) : 0;
|
|
2118
|
-
this.codestpro1 = cuenta.estructura ? cuenta.estructura.codestpro1 : '';
|
|
2119
|
-
this.codestpro2 = cuenta.estructura ? cuenta.estructura.codestpro2 : '';
|
|
2120
|
-
this.codestpro3 = cuenta.estructura ? cuenta.estructura.codestpro3 : '';
|
|
2121
|
-
this.codestpro4 = cuenta.estructura ? cuenta.estructura.codestpro4 : '';
|
|
2122
|
-
this.codestpro5 = cuenta.estructura ? cuenta.estructura.codestpro5 : '';
|
|
2123
|
-
if (cuenta.estructura && level) {
|
|
2124
|
-
if (level == 3) {
|
|
2125
|
-
this.estructura = `${this.codestpro1}-${this.codestpro2}-${this.codestpro3}`;
|
|
2126
|
-
}
|
|
2127
|
-
else if (level == 4) {
|
|
2128
|
-
this.estructura = `${this.codestpro1}-${this.codestpro2}-${this.codestpro3}-${this.codestpro4}`;
|
|
2129
|
-
}
|
|
2130
|
-
else {
|
|
2131
|
-
this.estructura = `${this.codestpro1}-${this.codestpro2}-${this.codestpro3}-${this.codestpro4}-${this.codestpro5}`;
|
|
2132
|
-
}
|
|
2133
|
-
}
|
|
2134
2117
|
this.isNew = false;
|
|
2118
|
+
this.codigoEp1 = cuenta.codestpro1,
|
|
2119
|
+
this.codigoEp2 = cuenta.codestpro2,
|
|
2120
|
+
this.codigoEp3 = cuenta.codestpro3,
|
|
2121
|
+
this.codigoEp4 = cuenta.codestpro4,
|
|
2122
|
+
this.codigoEp5 = cuenta.codestpro5,
|
|
2123
|
+
this.estructura = cuenta.estructura;
|
|
2124
|
+
this.denominacionEstructura = cuenta.denestructura;
|
|
2135
2125
|
}
|
|
2136
2126
|
else {
|
|
2137
2127
|
this.isNew = true;
|
|
@@ -2394,6 +2384,8 @@ class MUserDetail extends MBasicModel {
|
|
|
2394
2384
|
this.telephone = '';
|
|
2395
2385
|
this.admin = false;
|
|
2396
2386
|
this.rights = [];
|
|
2387
|
+
this.ultcon = '';
|
|
2388
|
+
this.id_personal = 0;
|
|
2397
2389
|
if (user) {
|
|
2398
2390
|
this.idCompany = parseInt(user.id_empresa);
|
|
2399
2391
|
this.idEnterprise = parseInt(user.id_enterprise);
|
|
@@ -2413,6 +2405,8 @@ class MUserDetail extends MBasicModel {
|
|
|
2413
2405
|
this.password = user.pwdusu;
|
|
2414
2406
|
this.telephone = user.telusu;
|
|
2415
2407
|
this.admin = user.usuadm == "1";
|
|
2408
|
+
this.ultcon = user.ultcon;
|
|
2409
|
+
this.id_personal = +user.id_personal;
|
|
2416
2410
|
this.rights = user.derechos ? user.derechos.map(e => new MRights(e)) : [];
|
|
2417
2411
|
}
|
|
2418
2412
|
else {
|
|
@@ -2439,6 +2433,8 @@ class MUserDetail extends MBasicModel {
|
|
|
2439
2433
|
pwdusu: this.password,
|
|
2440
2434
|
telusu: this.telephone,
|
|
2441
2435
|
usuadm: this.admin ? '1' : '2',
|
|
2436
|
+
ultcon: this.ultcon,
|
|
2437
|
+
id_personal: this.id_personal.toString(),
|
|
2442
2438
|
derechos: this.rights.map(e => e.interface())
|
|
2443
2439
|
};
|
|
2444
2440
|
}
|
|
@@ -3869,11 +3865,11 @@ class MEstructuras extends MBasicModel {
|
|
|
3869
3865
|
this.idEp5 = parseInt(dt.id_ep5);
|
|
3870
3866
|
this.monto = parseFloat(dt.monto);
|
|
3871
3867
|
this.estatus = dt.status;
|
|
3872
|
-
this.codigoEep1 = dt.
|
|
3873
|
-
this.codigoEep2 = dt.
|
|
3874
|
-
this.codigoEep3 = dt.
|
|
3875
|
-
this.codigoEep4 = dt.
|
|
3876
|
-
this.codigoEep5 = dt.
|
|
3868
|
+
this.codigoEep1 = dt.codestpro1;
|
|
3869
|
+
this.codigoEep2 = dt.codestpro1;
|
|
3870
|
+
this.codigoEep3 = dt.codestpro1;
|
|
3871
|
+
this.codigoEep4 = dt.codestpro1;
|
|
3872
|
+
this.codigoEep5 = dt.codestpro1;
|
|
3877
3873
|
this.denominacionEstructura = dt.denestructura;
|
|
3878
3874
|
this.denominacion5 = dt.denestpro5;
|
|
3879
3875
|
this.denominacion3 = dt.denestpro3;
|
|
@@ -7317,8 +7313,8 @@ class SigespService {
|
|
|
7317
7313
|
return this.openCatalogoGenerico(["cuenta", "denominacion", "provStatus"], titulo, filteredAccounts, ["Cuenta", "Denominación", "Estado"], ancho);
|
|
7318
7314
|
}
|
|
7319
7315
|
}
|
|
7320
|
-
getExpenseAccounts(idEnterprise, periodoFiscal) {
|
|
7321
|
-
return this.http.get(`${this.URL}/dao/spg/cuentas_egresos_dao.php?e=${idEnterprise}&periodo=${periodoFiscal}`, { headers: this.getHttpHeaders() })
|
|
7316
|
+
getExpenseAccounts(idEnterprise, periodoFiscal, estatus) {
|
|
7317
|
+
return this.http.get(`${this.URL}/dao/spg/cuentas_egresos_dao.php?e=${idEnterprise}&periodo=${periodoFiscal}&est=${estatus}`, { headers: this.getHttpHeaders() })
|
|
7322
7318
|
.pipe(map((res) => res.data.map(element => new MCuentaEgresos(element))));
|
|
7323
7319
|
}
|
|
7324
7320
|
/**
|