softdinlibreriajs 1.0.6 → 1.0.8
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 +2 -2
- package/src/EnumModuloNovedades +48 -0
- package/src/EnumRespuestaSINO.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "softdinlibreriajs",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "Libreria Softdin",
|
|
5
5
|
"main": "src/",
|
|
6
6
|
"scripts": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"homepage": "https://github.com/SoftdinNomina/libreriaSoftdinJS#readme",
|
|
22
22
|
|
|
23
|
-
"_comments": "comando para ejecutar las veriosnes despues
|
|
23
|
+
"_comments": "comando para ejecutar las veriosnes despues debe cambiar la VERSION 1.0.5 por la que sigue despues ejecutar este comando npm publish"
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
class EnumModulosNovedades {
|
|
2
|
+
static AporteVoluntarioSeguridadSocial = 1;
|
|
3
|
+
static Embargos = 2;
|
|
4
|
+
static HorasExtras = 3;
|
|
5
|
+
static FondosAhorroRegistros = 4;
|
|
6
|
+
static FondosAhorroPago = 5;
|
|
7
|
+
static IngresosDescuentosConsecutivos = 6;
|
|
8
|
+
static NovedadesCargos = 7;
|
|
9
|
+
static BeneficioPersonal = 8;
|
|
10
|
+
static NovedadesSeguridadSocial = 9;
|
|
11
|
+
static NovedadesReteFuente = 10;
|
|
12
|
+
static OtrosIngresosDescuentos = 11;
|
|
13
|
+
static Pagos_Externos = 12;
|
|
14
|
+
static Prestamos = 13;
|
|
15
|
+
// static SaldosIniciales = 14;
|
|
16
|
+
|
|
17
|
+
static descriptions = [
|
|
18
|
+
{ id: EnumModulosNovedades.AporteVoluntarioSeguridadSocial, code: 'AVSS', description: 'Aporte Voluntario Seguridad Social' },
|
|
19
|
+
{ id: EnumModulosNovedades.Embargos, code: 'EMB', description: 'Embargos' },
|
|
20
|
+
{ id: EnumModulosNovedades.HorasExtras, code: 'HE', description: 'Horas Extras' },
|
|
21
|
+
{ id: EnumModulosNovedades.FondosAhorroRegistros, code: 'FAR', description: 'Fondos Ahorro Registros' },
|
|
22
|
+
{ id: EnumModulosNovedades.FondosAhorroPago, code: 'FAP', description: 'Fondos Ahorro Pago' },
|
|
23
|
+
{ id: EnumModulosNovedades.IncapacidadValorizada, code: 'IV', description: 'Incapacidad Valorizada' },
|
|
24
|
+
{ id: EnumModulosNovedades.IngresosDescuentosConsecutivos, code: 'IDC', description: 'Ingresos Descuentos Consecutivos' },
|
|
25
|
+
{ id: EnumModulosNovedades.NovedadesCargos, code: 'NC', description: 'Novedades Cargos' },
|
|
26
|
+
{ id: EnumModulosNovedades.BeneficioPersonal, code: 'BP', description: 'Beneficio Personal' },
|
|
27
|
+
{ id: EnumModulosNovedades.NovedadesSeguridadSocial, code: 'NSS', description: 'Novedades Seguridad Social' },
|
|
28
|
+
{ id: EnumModulosNovedades.NovedadesReteFuente, code: 'NRF', description: 'Novedades Rete Fuente' },
|
|
29
|
+
{ id: EnumModulosNovedades.OtrosIngresosDescuentos, code: 'OID', description: 'Otros Ingresos Descuentos' },
|
|
30
|
+
{ id: EnumModulosNovedades.Pagos_Externos, code: 'PE', description: 'Pagos Externos' },
|
|
31
|
+
{ id: EnumModulosNovedades.Prestamos, code: 'PRE', description: 'Prestamos' },
|
|
32
|
+
// { id: EnumModulosNovedades.SaldosIniciales, code: 'SI', description: 'Saldos Iniciales' },
|
|
33
|
+
];
|
|
34
|
+
|
|
35
|
+
static getById(id) {
|
|
36
|
+
return EnumModulosNovedades.descriptions.find(item => item.id === id) || null;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
static getAll() {
|
|
40
|
+
return EnumModulosNovedades.descriptions;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
static getByDescription(description) {
|
|
44
|
+
return EnumModulosNovedades.descriptions.find(item => item.description === description) || null;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
module.exports = EnumModulosNovedades;
|
package/src/EnumRespuestaSINO.js
CHANGED
|
@@ -3,8 +3,8 @@ class EnumRespuestaSINO {
|
|
|
3
3
|
static NO = 0;
|
|
4
4
|
|
|
5
5
|
static descriptions = [
|
|
6
|
-
{ id: EnumRespuestaSINO.SI, code: 'SI', description: 'Sí' },
|
|
7
|
-
{ id: EnumRespuestaSINO.NO, code: 'NO', description: 'No' },
|
|
6
|
+
{ id: EnumRespuestaSINO.SI, code: 'SI', description: 'Sí', description2: true },
|
|
7
|
+
{ id: EnumRespuestaSINO.NO, code: 'NO', description: 'No', description2: false },
|
|
8
8
|
];
|
|
9
9
|
|
|
10
10
|
static getById(id) {
|