sigesp 1.0.9-20240524 → 1.0.10-20240526
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/SNO/MDefinicionNomina.model.mjs +4 -2
- package/esm2020/lib/sigesp.service.mjs +7 -5
- package/fesm2015/sigesp.mjs +9 -5
- package/fesm2015/sigesp.mjs.map +1 -1
- package/fesm2020/sigesp.mjs +9 -5
- package/fesm2020/sigesp.mjs.map +1 -1
- package/lib/sigesp.service.d.ts +5 -3
- package/package.json +1 -1
package/fesm2020/sigesp.mjs
CHANGED
|
@@ -4670,7 +4670,9 @@ class MDefinicionNomina extends MBasicModel {
|
|
|
4670
4670
|
this.denominacionCuentaContable = e.denctacont;
|
|
4671
4671
|
this.nombreProveedor = e.nompro;
|
|
4672
4672
|
this.estatusIncidencia = parseInt(e.estincidencia);
|
|
4673
|
-
|
|
4673
|
+
if (e.periodos) {
|
|
4674
|
+
this.periodosNomina = e.periodos.map(e => new MPeriodoNomina(e));
|
|
4675
|
+
}
|
|
4674
4676
|
this.idPeriodoNomina = parseInt(e.id_periodoactual);
|
|
4675
4677
|
this.idPeriodoRestablecerNomina = parseInt(e.id_perresnom);
|
|
4676
4678
|
this.segmentarPersonal = parseInt(e.segper);
|
|
@@ -7875,16 +7877,18 @@ class SigespService {
|
|
|
7875
7877
|
}
|
|
7876
7878
|
/**
|
|
7877
7879
|
*
|
|
7878
|
-
* @param tipo ['default', 'uno', 'cargos'] dafault:Todas las nominas, uno: una nomina,
|
|
7879
|
-
*
|
|
7880
|
+
* @param tipo ['default', 'uno', 'cargos','linea'] dafault:Todas las nominas, uno: una nomina,
|
|
7881
|
+
* 'cargos': nominas por cargos, 'linea': nominas activas por lineas
|
|
7882
|
+
* @param id : Para los tipo: uno y cargos el id es idNomina. Para linea: id es el idEnterprise
|
|
7880
7883
|
* @returns array()
|
|
7881
7884
|
* @description Obtiene las nominas registradas
|
|
7882
7885
|
* @return Observable<IResponse>
|
|
7883
7886
|
* @date 20-10-21
|
|
7887
|
+
* @actualizado 26-05-2024
|
|
7884
7888
|
*
|
|
7885
7889
|
*/
|
|
7886
|
-
getNomina(tipo, id) {
|
|
7887
|
-
return this.http.get(`${this.URL}/dao/sno/definicion_nomina_dao.php?tipo=${tipo}&id=${id}`, { headers: this.getHttpHeaders() }).pipe(
|
|
7890
|
+
getNomina(tipo, id, act) {
|
|
7891
|
+
return this.http.get(`${this.URL}/dao/sno/definicion_nomina_dao.php?tipo=${tipo}&id=${id}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
|
|
7888
7892
|
if (res.success) {
|
|
7889
7893
|
res.data = res.data.map(e => new MDefinicionNomina(e));
|
|
7890
7894
|
}
|