sigesp 0.9.91-20231211 → 0.9.93-20240125
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/bundles/sigesp.umd.js +222 -44
- package/bundles/sigesp.umd.js.map +1 -1
- package/bundles/sigesp.umd.min.js +1 -1
- package/bundles/sigesp.umd.min.js.map +1 -1
- package/esm2015/lib/core/interfaces/CuentaEgresos.js +1 -1
- package/esm2015/lib/core/interfaces/Presupuesto.js +1 -1
- package/esm2015/lib/core/models/SNO/MDefinicionNomina.model.js +4 -4
- package/esm2015/lib/core/models/SPG/cuentaPresupuesto.model.js +108 -1
- package/esm2015/lib/core/models/SPG/expensiveAccount.model.js +106 -38
- package/esm2015/lib/sigesp.service.js +3 -3
- package/fesm2015/sigesp.js +215 -42
- package/fesm2015/sigesp.js.map +1 -1
- package/lib/core/interfaces/CuentaEgresos.d.ts +26 -1
- package/lib/core/interfaces/Presupuesto.d.ts +61 -0
- package/lib/core/models/SPG/cuentaPresupuesto.model.d.ts +49 -0
- package/lib/core/models/SPG/expensiveAccount.model.d.ts +19 -8
- package/lib/sigesp.service.d.ts +1 -1
- package/package.json +1 -1
- package/sigesp.metadata.json +1 -1
package/fesm2015/sigesp.js
CHANGED
|
@@ -1124,6 +1124,112 @@ class MCuentaPresupuesto {
|
|
|
1124
1124
|
this.status = cuentaPresupuesto.status;
|
|
1125
1125
|
this.tipo = cuentaPresupuesto.tipcta;
|
|
1126
1126
|
}
|
|
1127
|
+
}
|
|
1128
|
+
class MCuentaEgresos$1 extends MBasicModel {
|
|
1129
|
+
constructor(cuenta, level, isNew) {
|
|
1130
|
+
super();
|
|
1131
|
+
this.idEmpresa = 0;
|
|
1132
|
+
this.nivel = 0;
|
|
1133
|
+
this.denominacion = '';
|
|
1134
|
+
this.cuenta = '';
|
|
1135
|
+
this.cuentaContable = '------------';
|
|
1136
|
+
this.cuentaONCOP = '------------';
|
|
1137
|
+
this.clasificador = '------------';
|
|
1138
|
+
this.referencia = '';
|
|
1139
|
+
this.aumento = 0;
|
|
1140
|
+
this.asignado = 0;
|
|
1141
|
+
this.causado = 0;
|
|
1142
|
+
this.disminucion = 0;
|
|
1143
|
+
this.distribuir = 0;
|
|
1144
|
+
this.precomprometido = 0;
|
|
1145
|
+
this.pagado = 0;
|
|
1146
|
+
this.enero = 0;
|
|
1147
|
+
this.febrero = 0;
|
|
1148
|
+
this.marzo = 0;
|
|
1149
|
+
this.abril = 0;
|
|
1150
|
+
this.mayo = 0;
|
|
1151
|
+
this.junio = 0;
|
|
1152
|
+
this.julio = 0;
|
|
1153
|
+
this.agosto = 0;
|
|
1154
|
+
this.septiembre = 0;
|
|
1155
|
+
this.octubre = 0;
|
|
1156
|
+
this.noviembre = 0;
|
|
1157
|
+
this.diciembre = 0;
|
|
1158
|
+
this.idEP1 = 0;
|
|
1159
|
+
this.idEP2 = 0;
|
|
1160
|
+
this.idEP3 = 0;
|
|
1161
|
+
this.idEP4 = 0;
|
|
1162
|
+
this.idEP5 = 0;
|
|
1163
|
+
this.codestpro1 = '';
|
|
1164
|
+
this.codestpro2 = '';
|
|
1165
|
+
this.codestpro3 = '';
|
|
1166
|
+
this.codestpro4 = '';
|
|
1167
|
+
this.codestpro5 = '';
|
|
1168
|
+
this.estructura = '';
|
|
1169
|
+
this.selected = false;
|
|
1170
|
+
this.isNew = false;
|
|
1171
|
+
this.error = false;
|
|
1172
|
+
this.status = '';
|
|
1173
|
+
this.id = 0;
|
|
1174
|
+
this.codfuefin = 0;
|
|
1175
|
+
if (cuenta) {
|
|
1176
|
+
this.idEmpresa = parseInt(cuenta.id_empresa);
|
|
1177
|
+
this.nivel = parseInt(cuenta.nivel);
|
|
1178
|
+
this.denominacion = cuenta.denspgcta;
|
|
1179
|
+
this.cuenta = cuenta.spg_cuenta;
|
|
1180
|
+
this.cuentaContable = cuenta.sc_cuenta;
|
|
1181
|
+
this.status = cuenta.status;
|
|
1182
|
+
this.referencia = cuenta.referencia;
|
|
1183
|
+
this.aumento = parseInt(cuenta.aumento);
|
|
1184
|
+
this.asignado = parseInt(cuenta.asignado);
|
|
1185
|
+
this.causado = parseInt(cuenta.causado);
|
|
1186
|
+
this.pagado = parseInt(cuenta.pagado);
|
|
1187
|
+
this.distribuir = parseInt(cuenta.distribuir);
|
|
1188
|
+
this.disminucion = parseInt(cuenta.disminiucion);
|
|
1189
|
+
this.precomprometido = parseInt(cuenta.precomprometido);
|
|
1190
|
+
this.enero = parseInt(cuenta.enero);
|
|
1191
|
+
this.febrero = parseInt(cuenta.febrero);
|
|
1192
|
+
this.marzo = parseInt(cuenta.marzo);
|
|
1193
|
+
this.abril = parseInt(cuenta.abril);
|
|
1194
|
+
this.mayo = parseInt(cuenta.mayo);
|
|
1195
|
+
this.junio = parseInt(cuenta.junio);
|
|
1196
|
+
this.julio = parseInt(cuenta.julio);
|
|
1197
|
+
this.agosto = parseInt(cuenta.agosto);
|
|
1198
|
+
this.septiembre = parseInt(cuenta.septiembre);
|
|
1199
|
+
this.octubre = parseInt(cuenta.octubre);
|
|
1200
|
+
this.noviembre = parseInt(cuenta.noviembre);
|
|
1201
|
+
this.diciembre = parseInt(cuenta.diciembre);
|
|
1202
|
+
this.clasificador = cuenta.codcuecla;
|
|
1203
|
+
this.cuentaONCOP = cuenta.cueoncop;
|
|
1204
|
+
this.idEP1 = parseInt(cuenta.id_ep1);
|
|
1205
|
+
this.idEP2 = parseInt(cuenta.id_ep2);
|
|
1206
|
+
this.idEP3 = parseInt(cuenta.id_ep3);
|
|
1207
|
+
this.idEP4 = parseInt(cuenta.id_ep4);
|
|
1208
|
+
this.idEP5 = parseInt(cuenta.id_ep5);
|
|
1209
|
+
this.codfuefin = parseInt(cuenta.codfuefin);
|
|
1210
|
+
this.id = cuenta.id_del_spgcta ? parseInt(cuenta.id_del_spgcta) : 0;
|
|
1211
|
+
this.codestpro1 = cuenta.estructura ? cuenta.estructura.codestpro1 : '';
|
|
1212
|
+
this.codestpro2 = cuenta.estructura ? cuenta.estructura.codestpro2 : '';
|
|
1213
|
+
this.codestpro3 = cuenta.estructura ? cuenta.estructura.codestpro3 : '';
|
|
1214
|
+
this.codestpro4 = cuenta.estructura ? cuenta.estructura.codestpro4 : '';
|
|
1215
|
+
this.codestpro5 = cuenta.estructura ? cuenta.estructura.codestpro5 : '';
|
|
1216
|
+
if (cuenta.estructura && level) {
|
|
1217
|
+
if (level == 3) {
|
|
1218
|
+
this.estructura = `${this.codestpro1}-${this.codestpro2}-${this.codestpro3}`;
|
|
1219
|
+
}
|
|
1220
|
+
else if (level == 4) {
|
|
1221
|
+
this.estructura = `${this.codestpro1}-${this.codestpro2}-${this.codestpro3}-${this.codestpro4}`;
|
|
1222
|
+
}
|
|
1223
|
+
else {
|
|
1224
|
+
this.estructura = `${this.codestpro1}-${this.codestpro2}-${this.codestpro3}-${this.codestpro4}-${this.codestpro5}`;
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
this.isNew = false;
|
|
1228
|
+
}
|
|
1229
|
+
else {
|
|
1230
|
+
this.isNew = true;
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1127
1233
|
}
|
|
1128
1234
|
|
|
1129
1235
|
class MCuentaInstitucional extends MBasicModel {
|
|
@@ -1911,43 +2017,110 @@ class MFuenteFinanciamiento extends MBasicModel {
|
|
|
1911
2017
|
}
|
|
1912
2018
|
}
|
|
1913
2019
|
|
|
1914
|
-
class MCuentaEgresos {
|
|
1915
|
-
constructor(cuenta) {
|
|
1916
|
-
|
|
1917
|
-
this.idEmpresa =
|
|
1918
|
-
this.nivel =
|
|
1919
|
-
this.denominacion =
|
|
1920
|
-
this.cuenta =
|
|
1921
|
-
this.cuentaContable =
|
|
1922
|
-
this.
|
|
1923
|
-
this.
|
|
1924
|
-
this.
|
|
1925
|
-
this.
|
|
1926
|
-
this.
|
|
1927
|
-
this.
|
|
1928
|
-
this.disminucion =
|
|
1929
|
-
this.
|
|
1930
|
-
this.
|
|
1931
|
-
this.
|
|
1932
|
-
this.
|
|
1933
|
-
this.
|
|
1934
|
-
this.
|
|
1935
|
-
this.
|
|
1936
|
-
this.
|
|
1937
|
-
this.
|
|
1938
|
-
this.
|
|
1939
|
-
this.
|
|
1940
|
-
this.
|
|
1941
|
-
this.
|
|
1942
|
-
this.
|
|
1943
|
-
this.
|
|
1944
|
-
this.idEP1 =
|
|
1945
|
-
this.idEP2 =
|
|
1946
|
-
this.idEP3 =
|
|
1947
|
-
this.idEP4 =
|
|
1948
|
-
this.idEP5 =
|
|
1949
|
-
this.
|
|
1950
|
-
this.
|
|
2020
|
+
class MCuentaEgresos extends MBasicModel {
|
|
2021
|
+
constructor(cuenta, level, isNew) {
|
|
2022
|
+
super();
|
|
2023
|
+
this.idEmpresa = 0;
|
|
2024
|
+
this.nivel = 0;
|
|
2025
|
+
this.denominacion = '';
|
|
2026
|
+
this.cuenta = '';
|
|
2027
|
+
this.cuentaContable = '------------';
|
|
2028
|
+
this.cuentaONCOP = '------------';
|
|
2029
|
+
this.clasificador = '------------';
|
|
2030
|
+
this.referencia = '';
|
|
2031
|
+
this.aumento = 0;
|
|
2032
|
+
this.asignado = 0;
|
|
2033
|
+
this.causado = 0;
|
|
2034
|
+
this.disminucion = 0;
|
|
2035
|
+
this.distribuir = 0;
|
|
2036
|
+
this.precomprometido = 0;
|
|
2037
|
+
this.pagado = 0;
|
|
2038
|
+
this.enero = 0;
|
|
2039
|
+
this.febrero = 0;
|
|
2040
|
+
this.marzo = 0;
|
|
2041
|
+
this.abril = 0;
|
|
2042
|
+
this.mayo = 0;
|
|
2043
|
+
this.junio = 0;
|
|
2044
|
+
this.julio = 0;
|
|
2045
|
+
this.agosto = 0;
|
|
2046
|
+
this.septiembre = 0;
|
|
2047
|
+
this.octubre = 0;
|
|
2048
|
+
this.noviembre = 0;
|
|
2049
|
+
this.diciembre = 0;
|
|
2050
|
+
this.idEP1 = 0;
|
|
2051
|
+
this.idEP2 = 0;
|
|
2052
|
+
this.idEP3 = 0;
|
|
2053
|
+
this.idEP4 = 0;
|
|
2054
|
+
this.idEP5 = 0;
|
|
2055
|
+
this.codestpro1 = '';
|
|
2056
|
+
this.codestpro2 = '';
|
|
2057
|
+
this.codestpro3 = '';
|
|
2058
|
+
this.codestpro4 = '';
|
|
2059
|
+
this.codestpro5 = '';
|
|
2060
|
+
this.estructura = '';
|
|
2061
|
+
this.selected = false;
|
|
2062
|
+
this.isNew = false;
|
|
2063
|
+
this.error = false;
|
|
2064
|
+
this.status = '';
|
|
2065
|
+
this.id = 0;
|
|
2066
|
+
this.codfuefin = 0;
|
|
2067
|
+
if (cuenta) {
|
|
2068
|
+
this.idEmpresa = parseInt(cuenta.id_empresa);
|
|
2069
|
+
this.nivel = parseInt(cuenta.nivel);
|
|
2070
|
+
this.denominacion = cuenta.denspgcta;
|
|
2071
|
+
this.cuenta = cuenta.spg_cuenta;
|
|
2072
|
+
this.cuentaContable = cuenta.sc_cuenta;
|
|
2073
|
+
this.status = cuenta.status;
|
|
2074
|
+
this.referencia = cuenta.referencia;
|
|
2075
|
+
this.aumento = parseInt(cuenta.aumento);
|
|
2076
|
+
this.asignado = parseInt(cuenta.asignado);
|
|
2077
|
+
this.causado = parseInt(cuenta.causado);
|
|
2078
|
+
this.pagado = parseInt(cuenta.pagado);
|
|
2079
|
+
this.distribuir = parseInt(cuenta.distribuir);
|
|
2080
|
+
this.disminucion = parseInt(cuenta.disminiucion);
|
|
2081
|
+
this.precomprometido = parseInt(cuenta.precomprometido);
|
|
2082
|
+
this.enero = parseInt(cuenta.enero);
|
|
2083
|
+
this.febrero = parseInt(cuenta.febrero);
|
|
2084
|
+
this.marzo = parseInt(cuenta.marzo);
|
|
2085
|
+
this.abril = parseInt(cuenta.abril);
|
|
2086
|
+
this.mayo = parseInt(cuenta.mayo);
|
|
2087
|
+
this.junio = parseInt(cuenta.junio);
|
|
2088
|
+
this.julio = parseInt(cuenta.julio);
|
|
2089
|
+
this.agosto = parseInt(cuenta.agosto);
|
|
2090
|
+
this.septiembre = parseInt(cuenta.septiembre);
|
|
2091
|
+
this.octubre = parseInt(cuenta.octubre);
|
|
2092
|
+
this.noviembre = parseInt(cuenta.noviembre);
|
|
2093
|
+
this.diciembre = parseInt(cuenta.diciembre);
|
|
2094
|
+
this.clasificador = cuenta.codcuecla;
|
|
2095
|
+
this.cuentaONCOP = cuenta.cueoncop;
|
|
2096
|
+
this.idEP1 = parseInt(cuenta.id_ep1);
|
|
2097
|
+
this.idEP2 = parseInt(cuenta.id_ep2);
|
|
2098
|
+
this.idEP3 = parseInt(cuenta.id_ep3);
|
|
2099
|
+
this.idEP4 = parseInt(cuenta.id_ep4);
|
|
2100
|
+
this.idEP5 = parseInt(cuenta.id_ep5);
|
|
2101
|
+
this.codfuefin = parseInt(cuenta.codfuefin);
|
|
2102
|
+
this.id = cuenta.id_del_spgcta ? parseInt(cuenta.id_del_spgcta) : 0;
|
|
2103
|
+
this.codestpro1 = cuenta.estructura ? cuenta.estructura.codestpro1 : '';
|
|
2104
|
+
this.codestpro2 = cuenta.estructura ? cuenta.estructura.codestpro2 : '';
|
|
2105
|
+
this.codestpro3 = cuenta.estructura ? cuenta.estructura.codestpro3 : '';
|
|
2106
|
+
this.codestpro4 = cuenta.estructura ? cuenta.estructura.codestpro4 : '';
|
|
2107
|
+
this.codestpro5 = cuenta.estructura ? cuenta.estructura.codestpro5 : '';
|
|
2108
|
+
if (cuenta.estructura && level) {
|
|
2109
|
+
if (level == 3) {
|
|
2110
|
+
this.estructura = `${this.codestpro1}-${this.codestpro2}-${this.codestpro3}`;
|
|
2111
|
+
}
|
|
2112
|
+
else if (level == 4) {
|
|
2113
|
+
this.estructura = `${this.codestpro1}-${this.codestpro2}-${this.codestpro3}-${this.codestpro4}`;
|
|
2114
|
+
}
|
|
2115
|
+
else {
|
|
2116
|
+
this.estructura = `${this.codestpro1}-${this.codestpro2}-${this.codestpro3}-${this.codestpro4}-${this.codestpro5}`;
|
|
2117
|
+
}
|
|
2118
|
+
}
|
|
2119
|
+
this.isNew = false;
|
|
2120
|
+
}
|
|
2121
|
+
else {
|
|
2122
|
+
this.isNew = true;
|
|
2123
|
+
}
|
|
1951
2124
|
}
|
|
1952
2125
|
}
|
|
1953
2126
|
|
|
@@ -4301,20 +4474,20 @@ class MDefinicionNomina extends MBasicModel {
|
|
|
4301
4474
|
this.nominaCestaTicket = 0;
|
|
4302
4475
|
this.cestaTicketMetodoNomina = '';
|
|
4303
4476
|
this.codigoOrganismoCestaTicket = '';
|
|
4304
|
-
this.ContabilizacionNomina = '
|
|
4477
|
+
this.ContabilizacionNomina = 'CCP';
|
|
4305
4478
|
this.destinoComprobanteNomina = 'B';
|
|
4306
4479
|
this.idProveedor = 0;
|
|
4307
4480
|
this.cuentaContableNomina = '';
|
|
4308
4481
|
this.notaDebitoBanco = 0;
|
|
4309
4482
|
this.recepcionDocumentoNomina = 0;
|
|
4310
4483
|
this.tipoDocumentoNomina = 0;
|
|
4311
|
-
this.contabilizacionAporteNomina = '
|
|
4484
|
+
this.contabilizacionAporteNomina = 'CCP';
|
|
4312
4485
|
this.recepcionDocumentoAporte = 0;
|
|
4313
4486
|
this.tipoDocumentoAporte = 0;
|
|
4314
4487
|
this.periodoARestableceNomina = '';
|
|
4315
4488
|
this.validarContabilizacionPeriodoAnteriorNomina = 0;
|
|
4316
4489
|
this.tituloReporteNomina = '';
|
|
4317
|
-
this.contabilizacionFideicomisoNomina = '
|
|
4490
|
+
this.contabilizacionFideicomisoNomina = 'CCP';
|
|
4318
4491
|
this.recepcionDocumentoFideicomiso = 0;
|
|
4319
4492
|
this.tipoDocumentoFideicomiso = 0;
|
|
4320
4493
|
this.idBeneficiarioFideicomiso = 0;
|
|
@@ -7051,7 +7224,7 @@ class SigespService {
|
|
|
7051
7224
|
* @author Miguel Ramírez
|
|
7052
7225
|
*/
|
|
7053
7226
|
getCuentasPresupuesto() {
|
|
7054
|
-
return this.http.get(`${this.URL}/dao/scg/plan_unico_cuentas_dao.php`, { headers: this.getHttpHeaders() }).pipe(
|
|
7227
|
+
return this.http.get(`${this.URL}/dao/scg/plan_unico_cuentas_dao.php`, { headers: this.getHttpHeaders() }).pipe(map((res) => res.data.map(element => new MCuentaPresupuesto(element))));
|
|
7055
7228
|
}
|
|
7056
7229
|
/**
|
|
7057
7230
|
* @description Abre el cátalogo de cuentas de la tabla "scg_plan_unico_re"
|
|
@@ -7286,7 +7459,7 @@ class SigespService {
|
|
|
7286
7459
|
* @actualizado: 5-12-20222
|
|
7287
7460
|
*/
|
|
7288
7461
|
getEnterprise(tipo = null, id) {
|
|
7289
|
-
return this.http.get(`${this.URL}/dao/cfg/enterprise_dao.php
|
|
7462
|
+
return this.http.get(`${this.URL}/dao/cfg/enterprise_dao.php?tipo=${tipo}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
7290
7463
|
if (res.success) {
|
|
7291
7464
|
res.data = res.data.map(e => new MEnterprise(e));
|
|
7292
7465
|
}
|