sigesp 1.1.11-20241003 → 1.1.13-20241014
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/models/SSS/sistema.mjs +4 -2
- package/esm2020/lib/sigesp.service.mjs +15 -10
- package/fesm2015/sigesp.mjs +17 -10
- package/fesm2015/sigesp.mjs.map +1 -1
- package/fesm2020/sigesp.mjs +17 -10
- package/fesm2020/sigesp.mjs.map +1 -1
- package/lib/sigesp.service.d.ts +3 -3
- package/package.json +1 -1
package/fesm2020/sigesp.mjs
CHANGED
|
@@ -2472,7 +2472,9 @@ class MSistema extends MBasicModel {
|
|
|
2472
2472
|
this.codigo = sis.codsis;
|
|
2473
2473
|
this.estado = sis.estsis;
|
|
2474
2474
|
this.imagen = sis.imgsis;
|
|
2475
|
-
|
|
2475
|
+
if (sis.usuarios) {
|
|
2476
|
+
this.usuarios = sis.usuarios.map(e => new MUserDetail(e));
|
|
2477
|
+
}
|
|
2476
2478
|
}
|
|
2477
2479
|
else {
|
|
2478
2480
|
this.isNew = true;
|
|
@@ -6930,8 +6932,8 @@ class SigespService {
|
|
|
6930
6932
|
* @return Observable<MConfigurationSPG[]>
|
|
6931
6933
|
* @author Miguel Ramírez
|
|
6932
6934
|
*/
|
|
6933
|
-
getConfigurationSPG() {
|
|
6934
|
-
return this.http.get(`${this.URL}/dao/spg/estructura_presupuestaria_config_dao.php`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((resp) => new MConfigurationSPG(resp.data[0])));
|
|
6935
|
+
getConfigurationSPG(idEnterprise, periodoFical) {
|
|
6936
|
+
return this.http.get(`${this.URL}/dao/spg/estructura_presupuestaria_config_dao.php?e=${idEnterprise}&periodo=${periodoFical}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((resp) => new MConfigurationSPG(resp.data[0])));
|
|
6935
6937
|
}
|
|
6936
6938
|
/**
|
|
6937
6939
|
* @description Obtiene las configuraciones de los proveedores
|
|
@@ -7361,7 +7363,7 @@ class SigespService {
|
|
|
7361
7363
|
* @author Miguel Ramírez
|
|
7362
7364
|
*/
|
|
7363
7365
|
getCuentasInstitucionales(idEnterprise, periodoFical, inventory) {
|
|
7364
|
-
return this.http.get(`${this.URL}/dao/scg/cuentas_dao.php${(inventory) ? '
|
|
7366
|
+
return this.http.get(`${this.URL}/dao/scg/cuentas_dao.php?e=${idEnterprise}&periodo=${periodoFical}${(inventory) ? '&inventory=true' : ''}`, { headers: this.getHttpHeaders() }).pipe(map((resp) => resp.data.map(element => new MCuentaInstitucional(element))));
|
|
7365
7367
|
}
|
|
7366
7368
|
/**
|
|
7367
7369
|
* @description Abre el dialog de las cuentas de presupuesto (Recursos y Egresos)
|
|
@@ -7492,8 +7494,8 @@ class SigespService {
|
|
|
7492
7494
|
return this.openCatalogoGenerico(["cuenta", "denominacion", "provStatus"], titulo, filteredAccounts, ["Cuenta", "Denominación", "Estado"], ancho);
|
|
7493
7495
|
}
|
|
7494
7496
|
}
|
|
7495
|
-
getUnidadAdministrativa(tipo,
|
|
7496
|
-
return this.http.get(`${this.URL}/dao/spg/unidad_administrativa_dao.php?tipo=${tipo}&e=${
|
|
7497
|
+
getUnidadAdministrativa(tipo, idEnterprise, periodoFical) {
|
|
7498
|
+
return this.http.get(`${this.URL}/dao/spg/unidad_administrativa_dao.php?tipo=${tipo}&e=${idEnterprise}&periodo=${periodoFical}`, { headers: this.getHttpHeaders() })
|
|
7497
7499
|
.pipe(map((res) => {
|
|
7498
7500
|
if (res.success) {
|
|
7499
7501
|
res.data = res.data.map(e => new MAdministrativeUnit(e));
|
|
@@ -7603,9 +7605,14 @@ class SigespService {
|
|
|
7603
7605
|
* (mon:formato para inputCurrency + id )
|
|
7604
7606
|
*/
|
|
7605
7607
|
getCurrentCurrency(tipo = null, id) {
|
|
7606
|
-
return this.http.get(`${this.URL}/dao/cfg/moneda_dao.php?tipo=${tipo}&id=${id}`, { headers: this.getHttpHeaders() }).pipe(
|
|
7608
|
+
return this.http.get(`${this.URL}/dao/cfg/moneda_dao.php?tipo=${tipo}&id=${id}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
|
|
7607
7609
|
if (res.success) {
|
|
7608
|
-
|
|
7610
|
+
if (tipo == 'todas') {
|
|
7611
|
+
res.data = res.data.map(e => new MMonedaConfig(e));
|
|
7612
|
+
}
|
|
7613
|
+
else {
|
|
7614
|
+
res.data = new MMonedaConfig(res.data);
|
|
7615
|
+
}
|
|
7609
7616
|
}
|
|
7610
7617
|
return res;
|
|
7611
7618
|
}));
|
|
@@ -7832,8 +7839,8 @@ class SigespService {
|
|
|
7832
7839
|
* @return Observable<IResponse>
|
|
7833
7840
|
* @author Carlos Albornoz
|
|
7834
7841
|
*/
|
|
7835
|
-
getConfigSOC() {
|
|
7836
|
-
return this.http.get(`${this.URL}/dao/soc/configuracion_dao.php`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
7842
|
+
getConfigSOC(idEnterprise) {
|
|
7843
|
+
return this.http.get(`${this.URL}/dao/soc/configuracion_dao.php?e=${idEnterprise}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
7837
7844
|
if (res.success) {
|
|
7838
7845
|
res.data = new MConfigSOC(res.data);
|
|
7839
7846
|
}
|