sigesp 0.9.14-20221218 → 0.9.16-20221221
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 +23 -8
- 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/models/SOC/charge.model.js +2 -2
- package/esm2015/lib/core/models/SOC/clause.model.js +5 -2
- package/esm2015/lib/core/models/SOC/clauseModality.model.js +5 -2
- package/esm2015/lib/core/models/SOC/configuracionSOC.model.js +4 -1
- package/esm2015/lib/core/models/SOC/service.model.js +5 -2
- package/esm2015/lib/core/models/SOC/serviceCharge.model.js +2 -2
- package/esm2015/lib/core/models/SOC/serviceType.model.js +5 -2
- package/esm2015/lib/sigesp.service.js +3 -3
- package/fesm2015/sigesp.js +23 -8
- package/fesm2015/sigesp.js.map +1 -1
- package/package.json +1 -1
package/fesm2015/sigesp.js
CHANGED
|
@@ -2555,6 +2555,9 @@ class MConfigSOC extends MBasicModel {
|
|
|
2555
2555
|
this.statusMultiAdministrativeUnit = parseInt(config.estmuluniadm) == 1;
|
|
2556
2556
|
this.statusMultiCostCenter = parseInt(config.estmulcencos) == 1;
|
|
2557
2557
|
}
|
|
2558
|
+
else {
|
|
2559
|
+
this.isNew = true;
|
|
2560
|
+
}
|
|
2558
2561
|
}
|
|
2559
2562
|
dataAsInterface() {
|
|
2560
2563
|
return {
|
|
@@ -2602,7 +2605,7 @@ class MCargo extends MBasicModel {
|
|
|
2602
2605
|
this.error = false;
|
|
2603
2606
|
this.idEmpresa = 0;
|
|
2604
2607
|
this.idEnterprise = 0;
|
|
2605
|
-
this.id =
|
|
2608
|
+
this.id = -1;
|
|
2606
2609
|
this.codigo = "";
|
|
2607
2610
|
this.denominacion = "";
|
|
2608
2611
|
this.codigoEstructuraEgreso = "";
|
|
@@ -2830,7 +2833,7 @@ class MServiceCharge extends MBasicModel {
|
|
|
2830
2833
|
super();
|
|
2831
2834
|
this.companyId = 0;
|
|
2832
2835
|
this.idEnterprise = 0;
|
|
2833
|
-
this.id =
|
|
2836
|
+
this.id = -1;
|
|
2834
2837
|
this.serviceId = 0;
|
|
2835
2838
|
this.denomination = '';
|
|
2836
2839
|
this.code = '';
|
|
@@ -6315,7 +6318,7 @@ class SigespService {
|
|
|
6315
6318
|
* @returns
|
|
6316
6319
|
*/
|
|
6317
6320
|
getMonedas(tipo, id) {
|
|
6318
|
-
return this.http.get(`${this.URL}/dao/cfg/
|
|
6321
|
+
return this.http.get(`${this.URL}/dao/cfg/moneda_dao.php?tipo=${tipo}&id=${id}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((resp) => resp.data.map(element => new MMoneda(element))));
|
|
6319
6322
|
}
|
|
6320
6323
|
/**
|
|
6321
6324
|
* @Description: Obtiene la tasa de cambio
|
|
@@ -6324,7 +6327,7 @@ class SigespService {
|
|
|
6324
6327
|
* @returns array/null
|
|
6325
6328
|
*/
|
|
6326
6329
|
getCurrencyExchangeRate(tipo = null, id) {
|
|
6327
|
-
return this.http.get(`${this.URL}/dao/cfg/
|
|
6330
|
+
return this.http.get(`${this.URL}/dao/cfg/sigesp_tasa_cambio.php?tipo=${tipo}&id=${id}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((resp) => resp.data.map(element => new MExchangeRate(element))));
|
|
6328
6331
|
}
|
|
6329
6332
|
/**
|
|
6330
6333
|
* @description Abre el dialog de las las cuentas contables (Cuentas Institucionales)
|
|
@@ -7770,7 +7773,7 @@ class MAccountMarriage {
|
|
|
7770
7773
|
class MServiceType extends MBasicModel {
|
|
7771
7774
|
constructor(type = null) {
|
|
7772
7775
|
super();
|
|
7773
|
-
this.id =
|
|
7776
|
+
this.id = -1;
|
|
7774
7777
|
this.idEmpresa = 0;
|
|
7775
7778
|
this.idEnterprise = 0;
|
|
7776
7779
|
this.denomination = null;
|
|
@@ -7782,6 +7785,9 @@ class MServiceType extends MBasicModel {
|
|
|
7782
7785
|
this.denomination = type.dentipser;
|
|
7783
7786
|
this.observation = type.obstipser;
|
|
7784
7787
|
}
|
|
7788
|
+
else {
|
|
7789
|
+
this.isNew = true;
|
|
7790
|
+
}
|
|
7785
7791
|
}
|
|
7786
7792
|
dataAsInterface() {
|
|
7787
7793
|
return {
|
|
@@ -7797,7 +7803,7 @@ class MServiceType extends MBasicModel {
|
|
|
7797
7803
|
class MService extends MBasicModel {
|
|
7798
7804
|
constructor(service = null) {
|
|
7799
7805
|
super();
|
|
7800
|
-
this.id =
|
|
7806
|
+
this.id = -1;
|
|
7801
7807
|
this.idEnterprise = 0;
|
|
7802
7808
|
this.code = '';
|
|
7803
7809
|
this.companyId = 0;
|
|
@@ -7819,6 +7825,9 @@ class MService extends MBasicModel {
|
|
|
7819
7825
|
this.charges = service.cargos.map(e => new MServiceCharge(e));
|
|
7820
7826
|
}
|
|
7821
7827
|
}
|
|
7828
|
+
else {
|
|
7829
|
+
this.isNew = true;
|
|
7830
|
+
}
|
|
7822
7831
|
}
|
|
7823
7832
|
dataAsInterface() {
|
|
7824
7833
|
return {
|
|
@@ -7838,7 +7847,7 @@ class MService extends MBasicModel {
|
|
|
7838
7847
|
class MClause extends MBasicModel {
|
|
7839
7848
|
constructor(clause = null) {
|
|
7840
7849
|
super();
|
|
7841
|
-
this.id =
|
|
7850
|
+
this.id = -1;
|
|
7842
7851
|
this.companyId = 0;
|
|
7843
7852
|
this.idEnterprise = 0;
|
|
7844
7853
|
this.clause = '';
|
|
@@ -7850,6 +7859,9 @@ class MClause extends MBasicModel {
|
|
|
7850
7859
|
this.denomination = clause.dencla;
|
|
7851
7860
|
this.id = parseInt(clause.id_clausula);
|
|
7852
7861
|
}
|
|
7862
|
+
else {
|
|
7863
|
+
this.isNew = true;
|
|
7864
|
+
}
|
|
7853
7865
|
}
|
|
7854
7866
|
dataAsInterface() {
|
|
7855
7867
|
return {
|
|
@@ -7865,7 +7877,7 @@ class MClause extends MBasicModel {
|
|
|
7865
7877
|
class MClauseModality extends MBasicModel {
|
|
7866
7878
|
constructor(mod = null) {
|
|
7867
7879
|
super();
|
|
7868
|
-
this.id =
|
|
7880
|
+
this.id = -1;
|
|
7869
7881
|
this.companyId = 0;
|
|
7870
7882
|
this.idEnterprise = 0;
|
|
7871
7883
|
this.code = '';
|
|
@@ -7879,6 +7891,9 @@ class MClauseModality extends MBasicModel {
|
|
|
7879
7891
|
this.denomination = mod.denmodcla;
|
|
7880
7892
|
this.clauses = mod.clausulas.map((e) => new MClause(e));
|
|
7881
7893
|
}
|
|
7894
|
+
else {
|
|
7895
|
+
this.isNew = true;
|
|
7896
|
+
}
|
|
7882
7897
|
}
|
|
7883
7898
|
dataAsInterface() {
|
|
7884
7899
|
return {
|