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/fesm2020/sigesp.mjs
CHANGED
|
@@ -715,8 +715,9 @@ class MPersonalNomina extends MBasicModel {
|
|
|
715
715
|
this.idPermisoPersonal = 0;
|
|
716
716
|
this.codigoPermisoPersonal = '';
|
|
717
717
|
this.denominacionPermisoPersonal = '';
|
|
718
|
-
this.tipoCargo = '';
|
|
718
|
+
this.tipoCargo = 'N';
|
|
719
719
|
this.denominacionTipoCargo = '';
|
|
720
|
+
this.TipoCargo = TipoCargo;
|
|
720
721
|
if (e) {
|
|
721
722
|
this.idEnterprise = +e.id_enterprise;
|
|
722
723
|
this.idEmpresa = e.id_empresa;
|
|
@@ -830,7 +831,7 @@ class MPersonalNomina extends MBasicModel {
|
|
|
830
831
|
this.denominacionPermisoPersonal = e.denperper;
|
|
831
832
|
this.codigoPermisoPersonal = e.codperper;
|
|
832
833
|
this.tipoCargo = e.tipcar;
|
|
833
|
-
this.denominacionTipoCargo = this.TipoCargo.find(e => e.value ==
|
|
834
|
+
this.denominacionTipoCargo = this.TipoCargo.find(e => e.value == this.tipoCargo).denominacion;
|
|
834
835
|
}
|
|
835
836
|
else {
|
|
836
837
|
this.isNew = true;
|
|
@@ -1362,7 +1363,7 @@ class MCuentaInstitucional extends MBasicModel {
|
|
|
1362
1363
|
class MMoneda extends MBasicModel {
|
|
1363
1364
|
constructor(moneda) {
|
|
1364
1365
|
super();
|
|
1365
|
-
this.
|
|
1366
|
+
this.codigo = '';
|
|
1366
1367
|
this.denominacion = '';
|
|
1367
1368
|
this.iso = '';
|
|
1368
1369
|
this.simbolo = '';
|
|
@@ -1371,7 +1372,7 @@ class MMoneda extends MBasicModel {
|
|
|
1371
1372
|
this.decimales = 0;
|
|
1372
1373
|
this.decimalesAlternos = 0;
|
|
1373
1374
|
if (moneda) {
|
|
1374
|
-
this.
|
|
1375
|
+
this.codigo = moneda.codmon;
|
|
1375
1376
|
this.denominacion = moneda.denmon;
|
|
1376
1377
|
this.iso = moneda.codiso;
|
|
1377
1378
|
this.simbolo = moneda.simmon;
|
|
@@ -1383,7 +1384,7 @@ class MMoneda extends MBasicModel {
|
|
|
1383
1384
|
}
|
|
1384
1385
|
dataInterface() {
|
|
1385
1386
|
return {
|
|
1386
|
-
|
|
1387
|
+
codmon: this.codigo,
|
|
1387
1388
|
denmon: this.denominacion,
|
|
1388
1389
|
codiso: this.iso,
|
|
1389
1390
|
simmon: this.simbolo,
|
|
@@ -1397,7 +1398,7 @@ class MMoneda extends MBasicModel {
|
|
|
1397
1398
|
class MMonedaConfig extends MBasicModel {
|
|
1398
1399
|
constructor(moneda) {
|
|
1399
1400
|
super();
|
|
1400
|
-
this.
|
|
1401
|
+
this.codigo = '';
|
|
1401
1402
|
this.denominacion = '';
|
|
1402
1403
|
this.codigoIso = '';
|
|
1403
1404
|
this.simbolo = '';
|
|
@@ -1406,7 +1407,7 @@ class MMonedaConfig extends MBasicModel {
|
|
|
1406
1407
|
this.decimales = 0;
|
|
1407
1408
|
this.decimalesAlternos = 0;
|
|
1408
1409
|
if (moneda) {
|
|
1409
|
-
this.
|
|
1410
|
+
this.codigo = moneda.codmon;
|
|
1410
1411
|
this.denominacion = moneda.denmon;
|
|
1411
1412
|
this.codigoIso = moneda.codiso;
|
|
1412
1413
|
this.separadorDecimal = moneda.separadordec;
|
|
@@ -1418,7 +1419,7 @@ class MMonedaConfig extends MBasicModel {
|
|
|
1418
1419
|
}
|
|
1419
1420
|
dataInterface() {
|
|
1420
1421
|
return {
|
|
1421
|
-
|
|
1422
|
+
codmon: this.codigo,
|
|
1422
1423
|
denmon: this.denominacion,
|
|
1423
1424
|
codiso: this.codigoIso,
|
|
1424
1425
|
simmon: this.simbolo,
|
|
@@ -1804,7 +1805,7 @@ class MConfigurationSPG {
|
|
|
1804
1805
|
this.codigoONAPRE = configuration.codasiona;
|
|
1805
1806
|
this.moneda = new MMonedaConfig({
|
|
1806
1807
|
codiso: configuration.moneda_actual.codiso,
|
|
1807
|
-
|
|
1808
|
+
codmon: configuration.moneda_actual.codmon,
|
|
1808
1809
|
denmon: configuration.moneda_actual.denmon,
|
|
1809
1810
|
separadordec: configuration.moneda_actual.separadordec,
|
|
1810
1811
|
separadormil: configuration.moneda_actual.separadormil,
|
|
@@ -1996,6 +1997,7 @@ class MCentroCosto extends MBasicModel {
|
|
|
1996
1997
|
super();
|
|
1997
1998
|
this.idEmpresa = 0;
|
|
1998
1999
|
this.idEnterprise = 0;
|
|
2000
|
+
this.idCentroCosto = 0;
|
|
1999
2001
|
this.usuarios = [];
|
|
2000
2002
|
if (centroCosto) {
|
|
2001
2003
|
this.idEmpresa = +centroCosto.id_empresa;
|
|
@@ -2014,6 +2016,7 @@ class MCentroCosto extends MBasicModel {
|
|
|
2014
2016
|
dataInterface() {
|
|
2015
2017
|
return {
|
|
2016
2018
|
id_empresa: this.idEmpresa.toString(),
|
|
2019
|
+
id_cencos: this.idCentroCosto.toString(),
|
|
2017
2020
|
id_enterprise: this.idEnterprise.toString(),
|
|
2018
2021
|
codcencos: this.centro,
|
|
2019
2022
|
denominacion: this.denominacion,
|
|
@@ -2026,6 +2029,7 @@ class MUsuarioCentroCosto extends MBasicModel {
|
|
|
2026
2029
|
super();
|
|
2027
2030
|
this.idEmpresa = 0;
|
|
2028
2031
|
this.idEnterprise = 0;
|
|
2032
|
+
this.idCentroCosto = 0;
|
|
2029
2033
|
this.codigoCentroCosto = '';
|
|
2030
2034
|
this.codigoUsuario = '';
|
|
2031
2035
|
this.usuario = '';
|
|
@@ -2034,6 +2038,7 @@ class MUsuarioCentroCosto extends MBasicModel {
|
|
|
2034
2038
|
if (e) {
|
|
2035
2039
|
this.idEmpresa = +e.id_empresa;
|
|
2036
2040
|
this.idEnterprise = +e.id_enterprise;
|
|
2041
|
+
this.idCentroCosto = +e.id_cencos;
|
|
2037
2042
|
this.codigoCentroCosto = e.codcencos;
|
|
2038
2043
|
this.codigoUsuario = e.codusu;
|
|
2039
2044
|
this.usuario = e.nomusu + ' ' + e.apeusu;
|
|
@@ -2047,6 +2052,7 @@ class MUsuarioCentroCosto extends MBasicModel {
|
|
|
2047
2052
|
return {
|
|
2048
2053
|
id_empresa: this.idEmpresa.toString(),
|
|
2049
2054
|
id_enterprise: this.idEnterprise.toString(),
|
|
2055
|
+
id_cencos: this.idCentroCosto.toString(),
|
|
2050
2056
|
codcencos: this.codigoCentroCosto,
|
|
2051
2057
|
codusu: this.codigoUsuario,
|
|
2052
2058
|
id_usuario: this.idUsuario.toString(),
|
|
@@ -3834,7 +3840,7 @@ class MEmpresa extends MBasicModel {
|
|
|
3834
3840
|
this.codigoMunicipio = '';
|
|
3835
3841
|
this.codigoParroquia = '';
|
|
3836
3842
|
this.codigoComunidad = '';
|
|
3837
|
-
this.
|
|
3843
|
+
this.codigoMoneda = '';
|
|
3838
3844
|
this.nombreRepresentanteLegal = '';
|
|
3839
3845
|
this.cedulaRepresentanteLegal = '';
|
|
3840
3846
|
this.telefonoRepresentanteLegal = '';
|
|
@@ -3854,16 +3860,14 @@ class MEmpresa extends MBasicModel {
|
|
|
3854
3860
|
this.idEP3 = 0;
|
|
3855
3861
|
this.idEP4 = 0;
|
|
3856
3862
|
this.idEP5 = 0;
|
|
3857
|
-
this.
|
|
3863
|
+
this.codigoFuenteFinanciaminto = 0;
|
|
3858
3864
|
this.idUnidadAdministrativa = 0;
|
|
3859
3865
|
this.denominacionUnidadAdministrativa = '';
|
|
3860
3866
|
this.codigoUnidadAdministrativa = '';
|
|
3861
|
-
this.
|
|
3862
|
-
this.idCentroCosto = 0;
|
|
3867
|
+
this.codigoFuenteFinanciamintoMostrar = '';
|
|
3863
3868
|
this.codigoCentroCosto = '';
|
|
3864
3869
|
this.estructuraPresupuestaria = '';
|
|
3865
3870
|
this.tipoEmpresa = 0;
|
|
3866
|
-
this.idMoneda = 0;
|
|
3867
3871
|
if (e) {
|
|
3868
3872
|
this.idEmpresa = +e.id_empresa;
|
|
3869
3873
|
this.rif = e.rifemp;
|
|
@@ -3883,7 +3887,7 @@ class MEmpresa extends MBasicModel {
|
|
|
3883
3887
|
this.codigoMunicipio = e.codmun;
|
|
3884
3888
|
this.codigoParroquia = e.codpar;
|
|
3885
3889
|
this.codigoComunidad = e.codmun;
|
|
3886
|
-
this.
|
|
3890
|
+
this.codigoMoneda = e.codmon;
|
|
3887
3891
|
this.nombreRepresentanteLegal = e.nomrepleg;
|
|
3888
3892
|
this.cedulaRepresentanteLegal = e.cedrepleg;
|
|
3889
3893
|
this.telefonoRepresentanteLegal = e.telrepleg;
|
|
@@ -3903,11 +3907,11 @@ class MEmpresa extends MBasicModel {
|
|
|
3903
3907
|
this.idEP3 = +e.id_ep3;
|
|
3904
3908
|
this.idEP4 = +e.id_ep4;
|
|
3905
3909
|
this.idEP5 = +e.id_ep5;
|
|
3906
|
-
this.
|
|
3910
|
+
this.codigoFuenteFinanciaminto = +e.codfuefin;
|
|
3907
3911
|
this.idUnidadAdministrativa = +e.id_uniadm;
|
|
3908
3912
|
this.denominacionUnidadAdministrativa = e.denuniadm;
|
|
3909
3913
|
this.codigoUnidadAdministrativa = e.coduniadm;
|
|
3910
|
-
this.
|
|
3914
|
+
this.codigoFuenteFinanciamintoMostrar = e.codigoftefin;
|
|
3911
3915
|
this.codigoCentroCosto = e.codcencos;
|
|
3912
3916
|
this.estructuraPresupuestaria = e.estpre;
|
|
3913
3917
|
this.tipoEmpresa = +e.tipoempresa;
|
|
@@ -3941,7 +3945,7 @@ class MEmpresa extends MBasicModel {
|
|
|
3941
3945
|
codmun: this.codigoMunicipio,
|
|
3942
3946
|
codpar: this.codigoParroquia,
|
|
3943
3947
|
codcom: this.codigoComunidad,
|
|
3944
|
-
|
|
3948
|
+
codmon: this.codigoMoneda,
|
|
3945
3949
|
nomrepleg: this.nombreRepresentanteLegal,
|
|
3946
3950
|
cedrepleg: this.cedulaRepresentanteLegal,
|
|
3947
3951
|
telrepleg: this.telefonoRepresentanteLegal,
|
|
@@ -3958,10 +3962,9 @@ class MEmpresa extends MBasicModel {
|
|
|
3958
3962
|
id_ep5: this.idEP5.toString(),
|
|
3959
3963
|
id_uniadm: this.idUnidadAdministrativa.toString(),
|
|
3960
3964
|
codcencos: this.codigoCentroCosto,
|
|
3961
|
-
|
|
3965
|
+
codfuefin: this.codigoFuenteFinanciaminto.toString(),
|
|
3962
3966
|
estpre: this.estructuraPresupuestaria,
|
|
3963
3967
|
tipoempresa: this.tipoEmpresa.toString(),
|
|
3964
|
-
id_cencos: this.idCentroCosto.toString(),
|
|
3965
3968
|
};
|
|
3966
3969
|
}
|
|
3967
3970
|
}
|
|
@@ -6253,16 +6256,14 @@ class MComunidad extends MBasicModel {
|
|
|
6253
6256
|
class MExchangeRate extends MBasicModel {
|
|
6254
6257
|
constructor(e) {
|
|
6255
6258
|
super();
|
|
6256
|
-
this.
|
|
6257
|
-
this.idMoneda = 0;
|
|
6259
|
+
this.codigoMoneda = 0;
|
|
6258
6260
|
this.fechaDesde = '1900-01-01';
|
|
6259
6261
|
this.horaCambioTasa = '';
|
|
6260
6262
|
this.fechaHasta = '1900-01-01';
|
|
6261
6263
|
this.montoTasa = 0;
|
|
6262
6264
|
this.denominacionMoneda = '';
|
|
6263
6265
|
if (e) {
|
|
6264
|
-
this.
|
|
6265
|
-
this.idMoneda = +e.id_moneda;
|
|
6266
|
+
this.codigoMoneda = +e.codmon;
|
|
6266
6267
|
this.fechaDesde = e.fectasdes;
|
|
6267
6268
|
this.horaCambioTasa = e.horcamtas;
|
|
6268
6269
|
this.fechaHasta = e.fectashas;
|
|
@@ -6275,8 +6276,7 @@ class MExchangeRate extends MBasicModel {
|
|
|
6275
6276
|
}
|
|
6276
6277
|
dataInterface() {
|
|
6277
6278
|
return {
|
|
6278
|
-
|
|
6279
|
-
id_moneda: this.idMoneda.toString(),
|
|
6279
|
+
codmon: this.codigoMoneda.toString(),
|
|
6280
6280
|
fectasdes: this.fechaDesde,
|
|
6281
6281
|
horcamtas: this.horaCambioTasa,
|
|
6282
6282
|
fectashas: this.fechaHasta,
|
|
@@ -6982,7 +6982,7 @@ class SigespService {
|
|
|
6982
6982
|
* @author Carlos Albornoz
|
|
6983
6983
|
*/
|
|
6984
6984
|
getCostCenters() {
|
|
6985
|
-
return this.http.get(`${this.URL}/dao/scg/centro_costo_dao.php`, { headers: this.getHttpHeaders() }).pipe(
|
|
6985
|
+
return this.http.get(`${this.URL}/dao/scg/centro_costo_dao.php`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
|
|
6986
6986
|
if (res.success) {
|
|
6987
6987
|
res.data = res.data.map(element => new MCentroCosto(element));
|
|
6988
6988
|
}
|
|
@@ -6990,7 +6990,7 @@ class SigespService {
|
|
|
6990
6990
|
}));
|
|
6991
6991
|
}
|
|
6992
6992
|
getUserCostCenters(codigo) {
|
|
6993
|
-
return this.http.get(`${this.URL}/dao/scg/centro_costo_usuario_dao.php?codigo=${codigo}`, { headers: this.getHttpHeaders() }).pipe(
|
|
6993
|
+
return this.http.get(`${this.URL}/dao/scg/centro_costo_usuario_dao.php?codigo=${codigo}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
|
|
6994
6994
|
if (res.success) {
|
|
6995
6995
|
res.data = res.data.map(element => new MUsuarioCentroCosto(element));
|
|
6996
6996
|
}
|