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/fesm2015/sigesp.mjs
CHANGED
|
@@ -4681,7 +4681,9 @@ class MDefinicionNomina extends MBasicModel {
|
|
|
4681
4681
|
this.denominacionCuentaContable = e.denctacont;
|
|
4682
4682
|
this.nombreProveedor = e.nompro;
|
|
4683
4683
|
this.estatusIncidencia = parseInt(e.estincidencia);
|
|
4684
|
-
|
|
4684
|
+
if (e.periodos) {
|
|
4685
|
+
this.periodosNomina = e.periodos.map(e => new MPeriodoNomina(e));
|
|
4686
|
+
}
|
|
4685
4687
|
this.idPeriodoNomina = parseInt(e.id_periodoactual);
|
|
4686
4688
|
this.idPeriodoRestablecerNomina = parseInt(e.id_perresnom);
|
|
4687
4689
|
this.segmentarPersonal = parseInt(e.segper);
|
|
@@ -7912,16 +7914,18 @@ class SigespService {
|
|
|
7912
7914
|
}
|
|
7913
7915
|
/**
|
|
7914
7916
|
*
|
|
7915
|
-
* @param tipo ['default', 'uno', 'cargos'] dafault:Todas las nominas, uno: una nomina,
|
|
7916
|
-
*
|
|
7917
|
+
* @param tipo ['default', 'uno', 'cargos','linea'] dafault:Todas las nominas, uno: una nomina,
|
|
7918
|
+
* 'cargos': nominas por cargos, 'linea': nominas activas por lineas
|
|
7919
|
+
* @param id : Para los tipo: uno y cargos el id es idNomina. Para linea: id es el idEnterprise
|
|
7917
7920
|
* @returns array()
|
|
7918
7921
|
* @description Obtiene las nominas registradas
|
|
7919
7922
|
* @return Observable<IResponse>
|
|
7920
7923
|
* @date 20-10-21
|
|
7924
|
+
* @actualizado 26-05-2024
|
|
7921
7925
|
*
|
|
7922
7926
|
*/
|
|
7923
|
-
getNomina(tipo, id) {
|
|
7924
|
-
return this.http.get(`${this.URL}/dao/sno/definicion_nomina_dao.php?tipo=${tipo}&id=${id}`, { headers: this.getHttpHeaders() }).pipe(
|
|
7927
|
+
getNomina(tipo, id, act) {
|
|
7928
|
+
return this.http.get(`${this.URL}/dao/sno/definicion_nomina_dao.php?tipo=${tipo}&id=${id}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
|
|
7925
7929
|
if (res.success) {
|
|
7926
7930
|
res.data = res.data.map(e => new MDefinicionNomina(e));
|
|
7927
7931
|
}
|