softdinlibreriajs 1.0.13 → 12.0.21
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 +1 -1
- package/src/EnumModulosNovedades.js +50 -0
package/package.json
CHANGED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
class EnumModulosNovedades {
|
|
2
|
+
static APORTE_VOLUNTARIO_SEGURIDAD_SOCIAL = 1;
|
|
3
|
+
static BENEFICIO_PERSONAL = 2;
|
|
4
|
+
static EMBARGOS = 3;
|
|
5
|
+
static FONDOS_AHORRO_PAGO = 4;
|
|
6
|
+
static FONDOS_AHORRO_REGISTROS = 5;
|
|
7
|
+
static HORAS_EXTRAS = 6;
|
|
8
|
+
static INGRESOS_DESCUENTOS_CONSECUTIVOS = 7;
|
|
9
|
+
static NOVEDADES_CARGOS = 8;
|
|
10
|
+
static NOVEDADES_RETE_FUENTE = 9;
|
|
11
|
+
static NOVEDADES_SEGURIDAD_SOCIAL = 10;
|
|
12
|
+
static OTROS_INGRESOS_DESCUENTOS = 11;
|
|
13
|
+
static PAGOS_EXTERNOS = 12;
|
|
14
|
+
static PAGO_LABOR = 13;
|
|
15
|
+
static PAGO_PRODUCCION = 14;
|
|
16
|
+
static PRESTAMOS = 15;
|
|
17
|
+
|
|
18
|
+
static descriptions = [
|
|
19
|
+
{ id: EnumModulosNovedades.APORTE_VOLUNTARIO_SEGURIDAD_SOCIAL, code: 'APORTE_VOLUNTARIO_SEGURIDAD_SOCIAL', description: 'Aporte Voluntario Seguridad Social' },
|
|
20
|
+
{ id: EnumModulosNovedades.BENEFICIO_PERSONAL, code: 'BENEFICIO_PERSONAL', description: 'Beneficio Personal' },
|
|
21
|
+
{ id: EnumModulosNovedades.EMBARGOS, code: 'EMBARGOS', description: 'Embargos' },
|
|
22
|
+
{ id: EnumModulosNovedades.FONDOS_AHORRO_PAGO, code: 'FONDOS_AHORRO_PAGO', description: 'Fondos Ahorro Pago' },
|
|
23
|
+
{ id: EnumModulosNovedades.FONDOS_AHORRO_REGISTROS, code: 'FONDOS_AHORRO_REGISTROS', description: 'Fondos Ahorro Registros' },
|
|
24
|
+
{ id: EnumModulosNovedades.HORAS_EXTRAS, code: 'HORAS_EXTRAS', description: 'Horas Extras' },
|
|
25
|
+
{ id: EnumModulosNovedades.INGRESOS_DESCUENTOS_CONSECUTIVOS, code: 'INGRESOS_DESCUENTOS_CONSECUTIVOS', description: 'Ingresos Descuentos Consecutivos' },
|
|
26
|
+
{ id: EnumModulosNovedades.NOVEDADES_CARGOS, code: 'NOVEDADES_CARGOS', description: 'Novedades Cargos' },
|
|
27
|
+
{ id: EnumModulosNovedades.NOVEDADES_RETE_FUENTE, code: 'NOVEDADES_RETE_FUENTE', description: 'Novedades Rete Fuente' },
|
|
28
|
+
{ id: EnumModulosNovedades.NOVEDADES_SEGURIDAD_SOCIAL, code: 'NOVEDADES_SEGURIDAD_SOCIAL', description: 'Novedades Seguridad Social' },
|
|
29
|
+
{ id: EnumModulosNovedades.OTROS_INGRESOS_DESCUENTOS, code: 'OTROS_INGRESOS_DESCUENTOS', description: 'Otros Ingresos Descuentos' },
|
|
30
|
+
{ id: EnumModulosNovedades.PAGOS_EXTERNOS, code: 'PAGOS_EXTERNOS', description: 'Pagos Externos' },
|
|
31
|
+
{ id: EnumModulosNovedades.PAGO_LABOR, code: 'PAGO_LABOR', description: 'Pago Labor' },
|
|
32
|
+
{ id: EnumModulosNovedades.PAGO_PRODUCCION, code: 'PAGO_PRODUCCION', description: 'Pago Producción' },
|
|
33
|
+
{ id: EnumModulosNovedades.PRESTAMOS, code: 'PRESTAMOS', description: 'Préstamos' }
|
|
34
|
+
];
|
|
35
|
+
|
|
36
|
+
static getById(id) {
|
|
37
|
+
return EnumModulosNovedades.descriptions.find(item => item.id === id) || null;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
static getAll() {
|
|
41
|
+
return EnumModulosNovedades.descriptions;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
static getByDescription(description) {
|
|
45
|
+
return EnumModulosNovedades.descriptions.find(item => item.description === description) || null;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
module.exports = EnumModulosNovedades;
|
|
50
|
+
|