softdinlibreriajs 12.0.37 → 12.0.39

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "softdinlibreriajs",
3
- "version": "12.0.37",
3
+ "version": "12.0.39",
4
4
  "description": "Libreria Softdin",
5
5
  "main": "src/",
6
6
  "scripts": {
@@ -1,6 +1,10 @@
1
1
  class EnumModulos {
2
2
  static CONTRATACION = 1;
3
- static PRESTAMO = 2;
3
+ static LIQ_NOMINA = 2;
4
+ static LIQ_VACACIONES = 3;
5
+ static LIQ_PRESTSOCIALES = 4;
6
+ static LIQ_CONTRATO = 5;
7
+ static LIQ_PRESTAMO = 6;
4
8
  // static SaldosIniciales = 14;
5
9
 
6
10
  static descriptions = [
@@ -9,7 +13,31 @@ class EnumModulos {
9
13
  code: "CONTRATACION",
10
14
  description: "Contratación",
11
15
  },
12
- { id: EnumModulos.PRESTAMO, code: "PRESTAMO", description: "Prestamo" },
16
+ {
17
+ id: EnumModulos.LIQ_NOMINA,
18
+ code: "LIQ_NOMINA",
19
+ description: "Liquidación de Nómina",
20
+ },
21
+ {
22
+ id: EnumModulos.LIQ_VACACIONES,
23
+ code: "LIQ_VACACIONES",
24
+ description: "Liquidación de Vacaciones",
25
+ },
26
+ {
27
+ id: EnumModulos.LIQ_PRESTSOCIALES,
28
+ code: "LIQ_PRESTSOCIALES",
29
+ description: "Liquidación de Prestaciones Sociales",
30
+ },
31
+ {
32
+ id: EnumModulos.LIQ_CONTRATO,
33
+ code: "LIQ_CONTRATO",
34
+ description: "Liquidación de Contrato",
35
+ },
36
+ {
37
+ id: EnumModulos.LIQ_PRESTAMO,
38
+ code: "PRESTAMO",
39
+ description: "Préstamo",
40
+ }
13
41
  ];
14
42
 
15
43
  static getById(id) {
@@ -1,26 +1,41 @@
1
1
  class EnumTipoCentroCosto {
2
- static UNICO = 1;
3
- static TIEMPO = 2;
4
- static PORCENTAJE = 3;
2
+ static UNICO = 1;
3
+ static TIEMPO = 2;
4
+ static PORCENTAJE = 3;
5
+ static PORCENTAJE_TIEMPO = 4;
5
6
 
6
- static descriptions = [
7
- { id: EnumTipoCentroCosto.UNICO, code: 'UNICO', description: 'Unico' },
8
- { id: EnumTipoCentroCosto.TIEMPO, code: 'TIEMPO', description: 'Tiempo' },
9
- { id: EnumTipoCentroCosto.PORCENTAJE, code: 'PORCENTAJE', description: 'Porcentaje' },
10
- ];
7
+ static descriptions = [
8
+ { id: EnumTipoCentroCosto.UNICO, code: "UNICO", description: "Unico" },
9
+ { id: EnumTipoCentroCosto.TIEMPO, code: "TIEMPO", description: "Tiempo" },
10
+ {
11
+ id: EnumTipoCentroCosto.PORCENTAJE,
12
+ code: "PORCENTAJE",
13
+ description: "Porcentaje",
14
+ },
15
+ {
16
+ id: EnumTipoCentroCosto.PORCENTAJE_TIEMPO,
17
+ code: "PORCENTAJE TIEMPO",
18
+ description: "Porcentaje y Tiempo",
19
+ },
20
+ ];
11
21
 
12
- static getById(id) {
13
- return EnumTipoCentroCosto.descriptions.find(item => item.id === id) || null;
14
- }
22
+ static getById(id) {
23
+ return (
24
+ EnumTipoCentroCosto.descriptions.find((item) => item.id === id) || null
25
+ );
26
+ }
15
27
 
16
- static getAll() {
17
- return EnumTipoCentroCosto.descriptions;
18
- }
28
+ static getAll() {
29
+ return EnumTipoCentroCosto.descriptions;
30
+ }
19
31
 
20
- static getByDescription(description) {
21
- return EnumTipoCentroCosto.descriptions.find(item => item.description === description) || null;
22
- }
32
+ static getByDescription(description) {
33
+ return (
34
+ EnumTipoCentroCosto.descriptions.find(
35
+ (item) => item.description === description
36
+ ) || null
37
+ );
38
+ }
23
39
  }
24
40
 
25
41
  module.exports = EnumTipoCentroCosto;
26
-