sigesp 1.1.1-20240828 → 1.1.2-20240905
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/CentroCosto.mjs +1 -1
- package/esm2020/lib/core/interfaces/Configuracion.mjs +1 -1
- package/esm2020/lib/core/interfaces/Moneda.mjs +1 -1
- package/esm2020/lib/core/models/CFG/Empresa.model.mjs +9 -12
- package/esm2020/lib/core/models/CFG/TasaCambio.model.mjs +4 -7
- package/esm2020/lib/core/models/CFG/moneda.model.mjs +7 -7
- package/esm2020/lib/core/models/SCG/centroCosto.model.mjs +6 -1
- package/esm2020/lib/core/models/SNO/MPersonalNomina.model.mjs +5 -3
- package/esm2020/lib/core/models/SPG/configurationSPG.model.mjs +2 -2
- package/esm2020/lib/sigesp.service.mjs +3 -3
- package/fesm2015/sigesp.mjs +28 -28
- package/fesm2015/sigesp.mjs.map +1 -1
- package/fesm2020/sigesp.mjs +28 -28
- package/fesm2020/sigesp.mjs.map +1 -1
- package/lib/core/interfaces/CentroCosto.d.ts +3 -1
- package/lib/core/interfaces/Configuracion.d.ts +3 -5
- package/lib/core/interfaces/Moneda.d.ts +2 -2
- package/lib/core/models/CFG/Empresa.model.d.ts +3 -5
- package/lib/core/models/CFG/TasaCambio.model.d.ts +1 -2
- package/lib/core/models/CFG/moneda.model.d.ts +2 -2
- package/lib/core/models/SCG/centroCosto.model.d.ts +2 -0
- package/lib/core/models/SNO/MPersonalNomina.model.d.ts +1 -1
- package/package.json +1 -1
package/fesm2015/sigesp.mjs
CHANGED
|
@@ -716,8 +716,9 @@ class MPersonalNomina extends MBasicModel {
|
|
|
716
716
|
this.idPermisoPersonal = 0;
|
|
717
717
|
this.codigoPermisoPersonal = '';
|
|
718
718
|
this.denominacionPermisoPersonal = '';
|
|
719
|
-
this.tipoCargo = '';
|
|
719
|
+
this.tipoCargo = 'N';
|
|
720
720
|
this.denominacionTipoCargo = '';
|
|
721
|
+
this.TipoCargo = TipoCargo;
|
|
721
722
|
if (e) {
|
|
722
723
|
this.idEnterprise = +e.id_enterprise;
|
|
723
724
|
this.idEmpresa = e.id_empresa;
|
|
@@ -831,7 +832,7 @@ class MPersonalNomina extends MBasicModel {
|
|
|
831
832
|
this.denominacionPermisoPersonal = e.denperper;
|
|
832
833
|
this.codigoPermisoPersonal = e.codperper;
|
|
833
834
|
this.tipoCargo = e.tipcar;
|
|
834
|
-
this.denominacionTipoCargo = this.TipoCargo.find(e => e.value ==
|
|
835
|
+
this.denominacionTipoCargo = this.TipoCargo.find(e => e.value == this.tipoCargo).denominacion;
|
|
835
836
|
}
|
|
836
837
|
else {
|
|
837
838
|
this.isNew = true;
|
|
@@ -1365,7 +1366,7 @@ class MCuentaInstitucional extends MBasicModel {
|
|
|
1365
1366
|
class MMoneda extends MBasicModel {
|
|
1366
1367
|
constructor(moneda) {
|
|
1367
1368
|
super();
|
|
1368
|
-
this.
|
|
1369
|
+
this.codigo = '';
|
|
1369
1370
|
this.denominacion = '';
|
|
1370
1371
|
this.iso = '';
|
|
1371
1372
|
this.simbolo = '';
|
|
@@ -1374,7 +1375,7 @@ class MMoneda extends MBasicModel {
|
|
|
1374
1375
|
this.decimales = 0;
|
|
1375
1376
|
this.decimalesAlternos = 0;
|
|
1376
1377
|
if (moneda) {
|
|
1377
|
-
this.
|
|
1378
|
+
this.codigo = moneda.codmon;
|
|
1378
1379
|
this.denominacion = moneda.denmon;
|
|
1379
1380
|
this.iso = moneda.codiso;
|
|
1380
1381
|
this.simbolo = moneda.simmon;
|
|
@@ -1386,7 +1387,7 @@ class MMoneda extends MBasicModel {
|
|
|
1386
1387
|
}
|
|
1387
1388
|
dataInterface() {
|
|
1388
1389
|
return {
|
|
1389
|
-
|
|
1390
|
+
codmon: this.codigo,
|
|
1390
1391
|
denmon: this.denominacion,
|
|
1391
1392
|
codiso: this.iso,
|
|
1392
1393
|
simmon: this.simbolo,
|
|
@@ -1400,7 +1401,7 @@ class MMoneda extends MBasicModel {
|
|
|
1400
1401
|
class MMonedaConfig extends MBasicModel {
|
|
1401
1402
|
constructor(moneda) {
|
|
1402
1403
|
super();
|
|
1403
|
-
this.
|
|
1404
|
+
this.codigo = '';
|
|
1404
1405
|
this.denominacion = '';
|
|
1405
1406
|
this.codigoIso = '';
|
|
1406
1407
|
this.simbolo = '';
|
|
@@ -1409,7 +1410,7 @@ class MMonedaConfig extends MBasicModel {
|
|
|
1409
1410
|
this.decimales = 0;
|
|
1410
1411
|
this.decimalesAlternos = 0;
|
|
1411
1412
|
if (moneda) {
|
|
1412
|
-
this.
|
|
1413
|
+
this.codigo = moneda.codmon;
|
|
1413
1414
|
this.denominacion = moneda.denmon;
|
|
1414
1415
|
this.codigoIso = moneda.codiso;
|
|
1415
1416
|
this.separadorDecimal = moneda.separadordec;
|
|
@@ -1421,7 +1422,7 @@ class MMonedaConfig extends MBasicModel {
|
|
|
1421
1422
|
}
|
|
1422
1423
|
dataInterface() {
|
|
1423
1424
|
return {
|
|
1424
|
-
|
|
1425
|
+
codmon: this.codigo,
|
|
1425
1426
|
denmon: this.denominacion,
|
|
1426
1427
|
codiso: this.codigoIso,
|
|
1427
1428
|
simmon: this.simbolo,
|
|
@@ -1811,7 +1812,7 @@ class MConfigurationSPG {
|
|
|
1811
1812
|
this.codigoONAPRE = configuration.codasiona;
|
|
1812
1813
|
this.moneda = new MMonedaConfig({
|
|
1813
1814
|
codiso: configuration.moneda_actual.codiso,
|
|
1814
|
-
|
|
1815
|
+
codmon: configuration.moneda_actual.codmon,
|
|
1815
1816
|
denmon: configuration.moneda_actual.denmon,
|
|
1816
1817
|
separadordec: configuration.moneda_actual.separadordec,
|
|
1817
1818
|
separadormil: configuration.moneda_actual.separadormil,
|
|
@@ -2003,6 +2004,7 @@ class MCentroCosto extends MBasicModel {
|
|
|
2003
2004
|
super();
|
|
2004
2005
|
this.idEmpresa = 0;
|
|
2005
2006
|
this.idEnterprise = 0;
|
|
2007
|
+
this.idCentroCosto = 0;
|
|
2006
2008
|
this.usuarios = [];
|
|
2007
2009
|
if (centroCosto) {
|
|
2008
2010
|
this.idEmpresa = +centroCosto.id_empresa;
|
|
@@ -2021,6 +2023,7 @@ class MCentroCosto extends MBasicModel {
|
|
|
2021
2023
|
dataInterface() {
|
|
2022
2024
|
return {
|
|
2023
2025
|
id_empresa: this.idEmpresa.toString(),
|
|
2026
|
+
id_cencos: this.idCentroCosto.toString(),
|
|
2024
2027
|
id_enterprise: this.idEnterprise.toString(),
|
|
2025
2028
|
codcencos: this.centro,
|
|
2026
2029
|
denominacion: this.denominacion,
|
|
@@ -2033,6 +2036,7 @@ class MUsuarioCentroCosto extends MBasicModel {
|
|
|
2033
2036
|
super();
|
|
2034
2037
|
this.idEmpresa = 0;
|
|
2035
2038
|
this.idEnterprise = 0;
|
|
2039
|
+
this.idCentroCosto = 0;
|
|
2036
2040
|
this.codigoCentroCosto = '';
|
|
2037
2041
|
this.codigoUsuario = '';
|
|
2038
2042
|
this.usuario = '';
|
|
@@ -2041,6 +2045,7 @@ class MUsuarioCentroCosto extends MBasicModel {
|
|
|
2041
2045
|
if (e) {
|
|
2042
2046
|
this.idEmpresa = +e.id_empresa;
|
|
2043
2047
|
this.idEnterprise = +e.id_enterprise;
|
|
2048
|
+
this.idCentroCosto = +e.id_cencos;
|
|
2044
2049
|
this.codigoCentroCosto = e.codcencos;
|
|
2045
2050
|
this.codigoUsuario = e.codusu;
|
|
2046
2051
|
this.usuario = e.nomusu + ' ' + e.apeusu;
|
|
@@ -2054,6 +2059,7 @@ class MUsuarioCentroCosto extends MBasicModel {
|
|
|
2054
2059
|
return {
|
|
2055
2060
|
id_empresa: this.idEmpresa.toString(),
|
|
2056
2061
|
id_enterprise: this.idEnterprise.toString(),
|
|
2062
|
+
id_cencos: this.idCentroCosto.toString(),
|
|
2057
2063
|
codcencos: this.codigoCentroCosto,
|
|
2058
2064
|
codusu: this.codigoUsuario,
|
|
2059
2065
|
id_usuario: this.idUsuario.toString(),
|
|
@@ -3845,7 +3851,7 @@ class MEmpresa extends MBasicModel {
|
|
|
3845
3851
|
this.codigoMunicipio = '';
|
|
3846
3852
|
this.codigoParroquia = '';
|
|
3847
3853
|
this.codigoComunidad = '';
|
|
3848
|
-
this.
|
|
3854
|
+
this.codigoMoneda = '';
|
|
3849
3855
|
this.nombreRepresentanteLegal = '';
|
|
3850
3856
|
this.cedulaRepresentanteLegal = '';
|
|
3851
3857
|
this.telefonoRepresentanteLegal = '';
|
|
@@ -3865,16 +3871,14 @@ class MEmpresa extends MBasicModel {
|
|
|
3865
3871
|
this.idEP3 = 0;
|
|
3866
3872
|
this.idEP4 = 0;
|
|
3867
3873
|
this.idEP5 = 0;
|
|
3868
|
-
this.
|
|
3874
|
+
this.codigoFuenteFinanciaminto = 0;
|
|
3869
3875
|
this.idUnidadAdministrativa = 0;
|
|
3870
3876
|
this.denominacionUnidadAdministrativa = '';
|
|
3871
3877
|
this.codigoUnidadAdministrativa = '';
|
|
3872
|
-
this.
|
|
3873
|
-
this.idCentroCosto = 0;
|
|
3878
|
+
this.codigoFuenteFinanciamintoMostrar = '';
|
|
3874
3879
|
this.codigoCentroCosto = '';
|
|
3875
3880
|
this.estructuraPresupuestaria = '';
|
|
3876
3881
|
this.tipoEmpresa = 0;
|
|
3877
|
-
this.idMoneda = 0;
|
|
3878
3882
|
if (e) {
|
|
3879
3883
|
this.idEmpresa = +e.id_empresa;
|
|
3880
3884
|
this.rif = e.rifemp;
|
|
@@ -3894,7 +3898,7 @@ class MEmpresa extends MBasicModel {
|
|
|
3894
3898
|
this.codigoMunicipio = e.codmun;
|
|
3895
3899
|
this.codigoParroquia = e.codpar;
|
|
3896
3900
|
this.codigoComunidad = e.codmun;
|
|
3897
|
-
this.
|
|
3901
|
+
this.codigoMoneda = e.codmon;
|
|
3898
3902
|
this.nombreRepresentanteLegal = e.nomrepleg;
|
|
3899
3903
|
this.cedulaRepresentanteLegal = e.cedrepleg;
|
|
3900
3904
|
this.telefonoRepresentanteLegal = e.telrepleg;
|
|
@@ -3914,11 +3918,11 @@ class MEmpresa extends MBasicModel {
|
|
|
3914
3918
|
this.idEP3 = +e.id_ep3;
|
|
3915
3919
|
this.idEP4 = +e.id_ep4;
|
|
3916
3920
|
this.idEP5 = +e.id_ep5;
|
|
3917
|
-
this.
|
|
3921
|
+
this.codigoFuenteFinanciaminto = +e.codfuefin;
|
|
3918
3922
|
this.idUnidadAdministrativa = +e.id_uniadm;
|
|
3919
3923
|
this.denominacionUnidadAdministrativa = e.denuniadm;
|
|
3920
3924
|
this.codigoUnidadAdministrativa = e.coduniadm;
|
|
3921
|
-
this.
|
|
3925
|
+
this.codigoFuenteFinanciamintoMostrar = e.codigoftefin;
|
|
3922
3926
|
this.codigoCentroCosto = e.codcencos;
|
|
3923
3927
|
this.estructuraPresupuestaria = e.estpre;
|
|
3924
3928
|
this.tipoEmpresa = +e.tipoempresa;
|
|
@@ -3952,7 +3956,7 @@ class MEmpresa extends MBasicModel {
|
|
|
3952
3956
|
codmun: this.codigoMunicipio,
|
|
3953
3957
|
codpar: this.codigoParroquia,
|
|
3954
3958
|
codcom: this.codigoComunidad,
|
|
3955
|
-
|
|
3959
|
+
codmon: this.codigoMoneda,
|
|
3956
3960
|
nomrepleg: this.nombreRepresentanteLegal,
|
|
3957
3961
|
cedrepleg: this.cedulaRepresentanteLegal,
|
|
3958
3962
|
telrepleg: this.telefonoRepresentanteLegal,
|
|
@@ -3969,10 +3973,9 @@ class MEmpresa extends MBasicModel {
|
|
|
3969
3973
|
id_ep5: this.idEP5.toString(),
|
|
3970
3974
|
id_uniadm: this.idUnidadAdministrativa.toString(),
|
|
3971
3975
|
codcencos: this.codigoCentroCosto,
|
|
3972
|
-
|
|
3976
|
+
codfuefin: this.codigoFuenteFinanciaminto.toString(),
|
|
3973
3977
|
estpre: this.estructuraPresupuestaria,
|
|
3974
3978
|
tipoempresa: this.tipoEmpresa.toString(),
|
|
3975
|
-
id_cencos: this.idCentroCosto.toString(),
|
|
3976
3979
|
};
|
|
3977
3980
|
}
|
|
3978
3981
|
}
|
|
@@ -6264,16 +6267,14 @@ class MComunidad extends MBasicModel {
|
|
|
6264
6267
|
class MExchangeRate extends MBasicModel {
|
|
6265
6268
|
constructor(e) {
|
|
6266
6269
|
super();
|
|
6267
|
-
this.
|
|
6268
|
-
this.idMoneda = 0;
|
|
6270
|
+
this.codigoMoneda = 0;
|
|
6269
6271
|
this.fechaDesde = '1900-01-01';
|
|
6270
6272
|
this.horaCambioTasa = '';
|
|
6271
6273
|
this.fechaHasta = '1900-01-01';
|
|
6272
6274
|
this.montoTasa = 0;
|
|
6273
6275
|
this.denominacionMoneda = '';
|
|
6274
6276
|
if (e) {
|
|
6275
|
-
this.
|
|
6276
|
-
this.idMoneda = +e.id_moneda;
|
|
6277
|
+
this.codigoMoneda = +e.codmon;
|
|
6277
6278
|
this.fechaDesde = e.fectasdes;
|
|
6278
6279
|
this.horaCambioTasa = e.horcamtas;
|
|
6279
6280
|
this.fechaHasta = e.fectashas;
|
|
@@ -6286,8 +6287,7 @@ class MExchangeRate extends MBasicModel {
|
|
|
6286
6287
|
}
|
|
6287
6288
|
dataInterface() {
|
|
6288
6289
|
return {
|
|
6289
|
-
|
|
6290
|
-
id_moneda: this.idMoneda.toString(),
|
|
6290
|
+
codmon: this.codigoMoneda.toString(),
|
|
6291
6291
|
fectasdes: this.fechaDesde,
|
|
6292
6292
|
horcamtas: this.horaCambioTasa,
|
|
6293
6293
|
fectashas: this.fechaHasta,
|
|
@@ -6995,7 +6995,7 @@ class SigespService {
|
|
|
6995
6995
|
* @author Carlos Albornoz
|
|
6996
6996
|
*/
|
|
6997
6997
|
getCostCenters() {
|
|
6998
|
-
return this.http.get(`${this.URL}/dao/scg/centro_costo_dao.php`, { headers: this.getHttpHeaders() }).pipe(
|
|
6998
|
+
return this.http.get(`${this.URL}/dao/scg/centro_costo_dao.php`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
|
|
6999
6999
|
if (res.success) {
|
|
7000
7000
|
res.data = res.data.map(element => new MCentroCosto(element));
|
|
7001
7001
|
}
|
|
@@ -7003,7 +7003,7 @@ class SigespService {
|
|
|
7003
7003
|
}));
|
|
7004
7004
|
}
|
|
7005
7005
|
getUserCostCenters(codigo) {
|
|
7006
|
-
return this.http.get(`${this.URL}/dao/scg/centro_costo_usuario_dao.php?codigo=${codigo}`, { headers: this.getHttpHeaders() }).pipe(
|
|
7006
|
+
return this.http.get(`${this.URL}/dao/scg/centro_costo_usuario_dao.php?codigo=${codigo}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
|
|
7007
7007
|
if (res.success) {
|
|
7008
7008
|
res.data = res.data.map(element => new MUsuarioCentroCosto(element));
|
|
7009
7009
|
}
|