sigesp 1.1.25-20241118 → 1.1.26-20241119
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/sigesp.service.mjs +19 -19
- package/fesm2015/sigesp.mjs +18 -18
- package/fesm2015/sigesp.mjs.map +1 -1
- package/fesm2020/sigesp.mjs +18 -18
- package/fesm2020/sigesp.mjs.map +1 -1
- package/lib/sigesp.service.d.ts +9 -9
- package/package.json +1 -1
package/fesm2020/sigesp.mjs
CHANGED
|
@@ -7757,16 +7757,16 @@ class SigespService {
|
|
|
7757
7757
|
return res;
|
|
7758
7758
|
}));
|
|
7759
7759
|
}
|
|
7760
|
-
getCharges() {
|
|
7761
|
-
return this.http.get(`${this.URL}/dao/stb/cargos_dao.php`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
|
|
7760
|
+
getCharges(idEnterprise) {
|
|
7761
|
+
return this.http.get(`${this.URL}/dao/stb/cargos_dao.php?linea=${idEnterprise}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
|
|
7762
7762
|
if (res.success) {
|
|
7763
7763
|
res.data = res.data.map(e => new MCargo(e));
|
|
7764
7764
|
}
|
|
7765
7765
|
return res;
|
|
7766
7766
|
}));
|
|
7767
7767
|
}
|
|
7768
|
-
getDeductions() {
|
|
7769
|
-
return this.http.get(`${this.URL}/dao/stb/deducciones_dao.php`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
|
|
7768
|
+
getDeductions(idEnterprise) {
|
|
7769
|
+
return this.http.get(`${this.URL}/dao/stb/deducciones_dao.php?linea=${idEnterprise}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
|
|
7770
7770
|
if (res.success) {
|
|
7771
7771
|
res.data = res.data.map(e => new MDeduction(e));
|
|
7772
7772
|
}
|
|
@@ -7793,8 +7793,8 @@ class SigespService {
|
|
|
7793
7793
|
* @author Dimaly Crespo
|
|
7794
7794
|
* @date 20-07-2021
|
|
7795
7795
|
*/
|
|
7796
|
-
getTiposDocumetos() {
|
|
7797
|
-
return this.http.get(`${this.URL}/dao/cxp/tipo_documento_dao.php?operacion=${'buscar'}&
|
|
7796
|
+
getTiposDocumetos(idEnterprise) {
|
|
7797
|
+
return this.http.get(`${this.URL}/dao/cxp/tipo_documento_dao.php?operacion=${'buscar'}&i=${idEnterprise}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
7798
7798
|
if (res.success) {
|
|
7799
7799
|
res.data = res.data.map(e => new MTipoDocumentoCXP(e));
|
|
7800
7800
|
}
|
|
@@ -7827,8 +7827,8 @@ class SigespService {
|
|
|
7827
7827
|
* @author Dimaly Crespo
|
|
7828
7828
|
* @date 20-07-2021
|
|
7829
7829
|
*/
|
|
7830
|
-
getConceptosCxP() {
|
|
7831
|
-
return this.http.get(`${this.URL}/dao/cxp/concepto_dao.php?operacion=${'buscar'}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
7830
|
+
getConceptosCxP(idEnterprise) {
|
|
7831
|
+
return this.http.get(`${this.URL}/dao/cxp/concepto_dao.php?operacion=${'buscar'}&i=${idEnterprise}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
7832
7832
|
if (res.success) {
|
|
7833
7833
|
res.data = res.data.map(e => new MConceptosCXP(e));
|
|
7834
7834
|
}
|
|
@@ -7841,8 +7841,8 @@ class SigespService {
|
|
|
7841
7841
|
* @author Dimaly Crespo
|
|
7842
7842
|
* @date 26-07-2021
|
|
7843
7843
|
*/
|
|
7844
|
-
getConceptosRetencion() {
|
|
7845
|
-
return this.http.get(`${this.URL}/dao/stb/deducciones_dao.php?code=${
|
|
7844
|
+
getConceptosRetencion(tipo, idTipoDeduccion) {
|
|
7845
|
+
return this.http.get(`${this.URL}/dao/stb/deducciones_dao.php?tipo=${tipo}&code=${idTipoDeduccion}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
7846
7846
|
if (res.success) {
|
|
7847
7847
|
res.data = res.data.map(e => new MConceptoRetencion(e));
|
|
7848
7848
|
}
|
|
@@ -7854,8 +7854,8 @@ class SigespService {
|
|
|
7854
7854
|
* @return Observable<IResponse>
|
|
7855
7855
|
* @author Dimaly Crespo
|
|
7856
7856
|
*/
|
|
7857
|
-
obtenerConfiguracionSNO() {
|
|
7858
|
-
return this.http.get(`${this.URL}/dao/sno/configuracion_dao.php?tipo=${'configuracion'}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
7857
|
+
obtenerConfiguracionSNO(idEnterprise) {
|
|
7858
|
+
return this.http.get(`${this.URL}/dao/sno/configuracion_dao.php?tipo=${'configuracion'}e=${idEnterprise}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
7859
7859
|
if (res.success) {
|
|
7860
7860
|
if (res.data.length > 0) {
|
|
7861
7861
|
res.data = res.data.map(e => new MConfiguracionSNO(e));
|
|
@@ -7876,8 +7876,8 @@ class SigespService {
|
|
|
7876
7876
|
* @actualizado 26-05-2024
|
|
7877
7877
|
*
|
|
7878
7878
|
*/
|
|
7879
|
-
getNomina(tipo, id, act) {
|
|
7880
|
-
return this.http.get(`${this.URL}/dao/sno/definicion_nomina_dao.php?tipo=${tipo}&id=${id}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
|
|
7879
|
+
getNomina(tipo, idEnterprise, id, act) {
|
|
7880
|
+
return this.http.get(`${this.URL}/dao/sno/definicion_nomina_dao.php?tipo=${tipo}&id=${id}&e=${idEnterprise}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
|
|
7881
7881
|
if (res.success) {
|
|
7882
7882
|
res.data = res.data.map(e => new MDefinicionNomina(e));
|
|
7883
7883
|
}
|
|
@@ -7903,8 +7903,8 @@ class SigespService {
|
|
|
7903
7903
|
* @return Observable<IResponse>
|
|
7904
7904
|
* @author Dimaly Crespo
|
|
7905
7905
|
*/
|
|
7906
|
-
getPersonalSRH(tipo, id) {
|
|
7907
|
-
return this.http.get(`${this.URL}/dao/sno/personal_dao.php?tipo=${tipo}&id=${id}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
7906
|
+
getPersonalSRH(tipo, idEnterprise, id) {
|
|
7907
|
+
return this.http.get(`${this.URL}/dao/sno/personal_dao.php?tipo=${tipo}&id=${id}&e=${idEnterprise}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
7908
7908
|
if (res.success) {
|
|
7909
7909
|
res.data = res.data.map(e => new MPersonal(e));
|
|
7910
7910
|
}
|
|
@@ -7916,8 +7916,8 @@ class SigespService {
|
|
|
7916
7916
|
* @return Observable<IResponse>
|
|
7917
7917
|
* @author Dimaly Crespo
|
|
7918
7918
|
*/
|
|
7919
|
-
getAgenciaBanco(tipo, id) {
|
|
7920
|
-
return this.http.get(`${this.URL}/dao/scb/agencia_dao.php?code=${tipo}&id=${id}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
7919
|
+
getAgenciaBanco(tipo, idEnterprise, id) {
|
|
7920
|
+
return this.http.get(`${this.URL}/dao/scb/agencia_dao.php?code=${tipo}&id=${id}e=${idEnterprise}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
7921
7921
|
if (res.success) {
|
|
7922
7922
|
res.data = res.data.map(e => new MAgenciaBanco(e));
|
|
7923
7923
|
}
|