sigesp 1.1.9-20241001 → 1.1.10-20241003
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/interfaces/ComprobantePresupuestario.mjs +1 -1
- package/esm2020/lib/core/interfaces/Configuracion.mjs +1 -1
- package/esm2020/lib/core/interfaces/CuentaEgresos.mjs +1 -1
- package/esm2020/lib/core/interfaces/CuentaIngresoEstructura.mjs +1 -1
- package/esm2020/lib/core/interfaces/FuenteFinanciamiento.mjs +1 -1
- package/esm2020/lib/core/interfaces/Presupuesto.mjs +1 -1
- package/esm2020/lib/core/interfaces/Servicios.mjs +1 -1
- package/esm2020/lib/core/interfaces/Tributos.mjs +1 -1
- package/esm2020/lib/core/interfaces/UsuarioPrefijo.mjs +1 -1
- package/esm2020/lib/core/models/CFG/MPrefijo.model.mjs +4 -1
- package/esm2020/lib/core/models/CFG/userPrefix.model.mjs +4 -1
- package/esm2020/lib/core/models/SOC/charge.model.mjs +4 -1
- package/esm2020/lib/core/models/SOC/clause.model.mjs +4 -1
- package/esm2020/lib/core/models/SOC/clauseModality.model.mjs +4 -1
- package/esm2020/lib/core/models/SOC/configuracionSOC.model.mjs +4 -1
- package/esm2020/lib/core/models/SOC/service.model.mjs +4 -1
- package/esm2020/lib/core/models/SOC/serviceCharge.model.mjs +4 -1
- package/esm2020/lib/core/models/SOC/serviceType.model.mjs +4 -1
- package/esm2020/lib/core/models/SPG/UnidadAdministradoraCentral.mjs +4 -3
- package/esm2020/lib/core/models/SPG/administrativeUnit.model.mjs +7 -6
- package/esm2020/lib/core/models/SPG/comprobantePresupuestario.model.mjs +69 -22
- package/esm2020/lib/core/models/SPG/cuentaPresupuesto.model.mjs +5 -1
- package/esm2020/lib/core/models/SPG/expensiveAccount.model.mjs +5 -1
- package/esm2020/lib/core/models/SPG/fuenteFinanciamiento.model.mjs +4 -1
- package/esm2020/lib/core/models/SPG/incomeStructureAccount.model.mjs +5 -1
- package/esm2020/lib/sigesp.service.mjs +3 -3
- package/fesm2015/sigesp.mjs +121 -30
- package/fesm2015/sigesp.mjs.map +1 -1
- package/fesm2020/sigesp.mjs +121 -30
- package/fesm2020/sigesp.mjs.map +1 -1
- package/lib/core/interfaces/ComprobantePresupuestario.d.ts +7 -1
- package/lib/core/interfaces/Configuracion.d.ts +1 -0
- package/lib/core/interfaces/CuentaEgresos.d.ts +2 -0
- package/lib/core/interfaces/CuentaIngresoEstructura.d.ts +2 -0
- package/lib/core/interfaces/FuenteFinanciamiento.d.ts +1 -0
- package/lib/core/interfaces/Presupuesto.d.ts +6 -7
- package/lib/core/interfaces/Servicios.d.ts +6 -0
- package/lib/core/interfaces/Tributos.d.ts +1 -0
- package/lib/core/interfaces/UsuarioPrefijo.d.ts +1 -0
- package/lib/core/models/CFG/MPrefijo.model.d.ts +1 -0
- package/lib/core/models/CFG/userPrefix.model.d.ts +1 -0
- package/lib/core/models/SOC/charge.model.d.ts +1 -0
- package/lib/core/models/SOC/clause.model.d.ts +1 -0
- package/lib/core/models/SOC/clauseModality.model.d.ts +1 -0
- package/lib/core/models/SOC/configuracionSOC.model.d.ts +1 -0
- package/lib/core/models/SOC/service.model.d.ts +1 -0
- package/lib/core/models/SOC/serviceCharge.model.d.ts +1 -0
- package/lib/core/models/SOC/serviceType.model.d.ts +1 -0
- package/lib/core/models/SPG/UnidadAdministradoraCentral.d.ts +1 -0
- package/lib/core/models/SPG/administrativeUnit.model.d.ts +2 -3
- package/lib/core/models/SPG/comprobantePresupuestario.model.d.ts +8 -0
- package/lib/core/models/SPG/cuentaPresupuesto.model.d.ts +2 -0
- package/lib/core/models/SPG/expensiveAccount.model.d.ts +2 -0
- package/lib/core/models/SPG/fuenteFinanciamiento.model.d.ts +1 -0
- package/lib/core/models/SPG/incomeStructureAccount.model.d.ts +2 -0
- package/package.json +1 -1
package/fesm2020/sigesp.mjs
CHANGED
|
@@ -78,6 +78,7 @@ class MUsuarioPrefijo extends MBasicModel {
|
|
|
78
78
|
super();
|
|
79
79
|
this.idEmpresa = 0;
|
|
80
80
|
this.idEnteprise = 0;
|
|
81
|
+
this.periodoFiscal = 0;
|
|
81
82
|
this.id = 0;
|
|
82
83
|
this.idUsuario = 0;
|
|
83
84
|
this.idDtPrefijo = 0;
|
|
@@ -89,6 +90,7 @@ class MUsuarioPrefijo extends MBasicModel {
|
|
|
89
90
|
if (e) {
|
|
90
91
|
this.idEmpresa = +e.id_empresa;
|
|
91
92
|
this.idEnteprise = +e.id_enterprise;
|
|
93
|
+
this.periodoFiscal = +e.perfiscal;
|
|
92
94
|
this.id = +e.id;
|
|
93
95
|
this.idUsuario = +e.id_usuario;
|
|
94
96
|
this.idDtPrefijo = +e.id_dt_prefijo;
|
|
@@ -106,6 +108,7 @@ class MUsuarioPrefijo extends MBasicModel {
|
|
|
106
108
|
return {
|
|
107
109
|
id_empresa: this.idEmpresa.toString(),
|
|
108
110
|
id_enterprise: this.idEnteprise.toString(),
|
|
111
|
+
perfiscal: this.periodoFiscal.toString(),
|
|
109
112
|
id: this.id.toString(),
|
|
110
113
|
id_usuario: this.idUsuario.toString(),
|
|
111
114
|
id_dt_prefijo: this.idDtPrefijo.toString(),
|
|
@@ -123,6 +126,7 @@ class MPrefijo extends MBasicModel {
|
|
|
123
126
|
super();
|
|
124
127
|
this.idEmpresa = 0;
|
|
125
128
|
this.idEnterprise = 0;
|
|
129
|
+
this.periodoFiscal = 0;
|
|
126
130
|
this.id = 0;
|
|
127
131
|
this.prefijo = '';
|
|
128
132
|
this.procede = '';
|
|
@@ -139,6 +143,7 @@ class MPrefijo extends MBasicModel {
|
|
|
139
143
|
if (e) {
|
|
140
144
|
this.idEmpresa = +e.id_empresa;
|
|
141
145
|
this.idEnterprise = +e.id_enterprise;
|
|
146
|
+
this.periodoFiscal = +e.perfiscal;
|
|
142
147
|
this.id = +e.id;
|
|
143
148
|
this.prefijo = e.prefijo;
|
|
144
149
|
this.procede = e.procede;
|
|
@@ -163,6 +168,7 @@ class MPrefijo extends MBasicModel {
|
|
|
163
168
|
return {
|
|
164
169
|
id_empresa: this.idEmpresa.toString(),
|
|
165
170
|
id_enterprise: this.idEnterprise.toString(),
|
|
171
|
+
perfiscal: this.periodoFiscal.toString(),
|
|
166
172
|
id: this.id.toString(),
|
|
167
173
|
prefijo: this.prefijo,
|
|
168
174
|
procede: this.procede,
|
|
@@ -1152,6 +1158,8 @@ class MCuentaEgresos$1 extends MBasicModel {
|
|
|
1152
1158
|
constructor(cuenta, level, isNew) {
|
|
1153
1159
|
super();
|
|
1154
1160
|
this.idEmpresa = 0;
|
|
1161
|
+
this.idEnterprise = 0;
|
|
1162
|
+
this.periodoFiscal = 0;
|
|
1155
1163
|
this.nivel = 0;
|
|
1156
1164
|
this.denominacion = '';
|
|
1157
1165
|
this.cuenta = '';
|
|
@@ -1196,6 +1204,8 @@ class MCuentaEgresos$1 extends MBasicModel {
|
|
|
1196
1204
|
this.id = 0;
|
|
1197
1205
|
if (cuenta) {
|
|
1198
1206
|
this.idEmpresa = parseInt(cuenta.id_empresa);
|
|
1207
|
+
this.idEnterprise = +cuenta.id_enterprise;
|
|
1208
|
+
this.periodoFiscal = +cuenta.perfiscal;
|
|
1199
1209
|
this.nivel = parseInt(cuenta.nivel);
|
|
1200
1210
|
this.denominacion = cuenta.denspgcta;
|
|
1201
1211
|
this.cuenta = cuenta.spg_cuenta;
|
|
@@ -2025,12 +2035,14 @@ class MFuenteFinanciamiento extends MBasicModel {
|
|
|
2025
2035
|
this.explicacionFuenteFinanciamiento = '';
|
|
2026
2036
|
this.idEmpresa = '0';
|
|
2027
2037
|
this.idFuenteFinanciamiento = 0;
|
|
2038
|
+
this.periodofiscal = 0;
|
|
2028
2039
|
if (fuente) {
|
|
2029
2040
|
this.codigoFuenteFinanciamiento = fuente.codigoftefin;
|
|
2030
2041
|
this.denominacionFuenteFinanciamiento = fuente.denfuefin;
|
|
2031
2042
|
this.explicacionFuenteFinanciamiento = fuente.expfuefin;
|
|
2032
2043
|
this.idEmpresa = fuente.id_empresa;
|
|
2033
2044
|
this.idFuenteFinanciamiento = +fuente.id_fuefin;
|
|
2045
|
+
this.periodofiscal = +fuente.perfiscal;
|
|
2034
2046
|
}
|
|
2035
2047
|
else {
|
|
2036
2048
|
this.isNew = true;
|
|
@@ -2043,6 +2055,7 @@ class MFuenteFinanciamiento extends MBasicModel {
|
|
|
2043
2055
|
expfuefin: this.explicacionFuenteFinanciamiento,
|
|
2044
2056
|
id_empresa: this.idEmpresa,
|
|
2045
2057
|
id_fuefin: this.idFuenteFinanciamiento.toString(),
|
|
2058
|
+
perfiscal: this.periodofiscal.toString()
|
|
2046
2059
|
};
|
|
2047
2060
|
}
|
|
2048
2061
|
}
|
|
@@ -2051,6 +2064,8 @@ class MCuentaEgresos extends MBasicModel {
|
|
|
2051
2064
|
constructor(cuenta, level, isNew) {
|
|
2052
2065
|
super();
|
|
2053
2066
|
this.idEmpresa = 0;
|
|
2067
|
+
this.idEnterprise = 0;
|
|
2068
|
+
this.periodoFiscal = 0;
|
|
2054
2069
|
this.nivel = 0;
|
|
2055
2070
|
this.denominacion = '';
|
|
2056
2071
|
this.cuenta = '';
|
|
@@ -2095,6 +2110,8 @@ class MCuentaEgresos extends MBasicModel {
|
|
|
2095
2110
|
this.id = 0;
|
|
2096
2111
|
if (cuenta) {
|
|
2097
2112
|
this.idEmpresa = parseInt(cuenta.id_empresa);
|
|
2113
|
+
this.idEnterprise = +cuenta.id_enterprise;
|
|
2114
|
+
this.periodoFiscal = +cuenta.perfiscal;
|
|
2098
2115
|
this.nivel = parseInt(cuenta.nivel);
|
|
2099
2116
|
this.denominacion = cuenta.denspgcta;
|
|
2100
2117
|
this.cuenta = cuenta.spg_cuenta;
|
|
@@ -2530,27 +2547,74 @@ class MComprobantePresupuestarioEgresos {
|
|
|
2530
2547
|
constructor(comprobante) {
|
|
2531
2548
|
this.idEnterprise = 0;
|
|
2532
2549
|
this.idfuenteFinanciamiento = 0;
|
|
2533
|
-
this.
|
|
2534
|
-
this.
|
|
2535
|
-
this.
|
|
2536
|
-
this.
|
|
2537
|
-
this.
|
|
2538
|
-
this.
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2550
|
+
this.idCentroCosto = 0;
|
|
2551
|
+
this.idMoneda = 0;
|
|
2552
|
+
this.codigoMoneda = '';
|
|
2553
|
+
this.tasaCambio = 0;
|
|
2554
|
+
this.idTasaCambio = 0;
|
|
2555
|
+
this.montoComprobanteDivisa = 0;
|
|
2556
|
+
if (comprobante) {
|
|
2557
|
+
this.idEmpresa = parseInt(comprobante.id_empresa);
|
|
2558
|
+
this.periodoFiscal = +comprobante.perfiscal;
|
|
2559
|
+
this.idEnterprise = +comprobante.id_enterprise;
|
|
2560
|
+
this.idComprobante = parseInt(comprobante.id_comprobante);
|
|
2561
|
+
this.idEp1 = parseInt(comprobante.id_ep1);
|
|
2562
|
+
this.idEp2 = parseInt(comprobante.id_ep2);
|
|
2563
|
+
this.idEp3 = parseInt(comprobante.id_ep3);
|
|
2564
|
+
this.idEp4 = parseInt(comprobante.id_ep4);
|
|
2565
|
+
this.idEp5 = parseInt(comprobante.id_ep5);
|
|
2566
|
+
this.SPGCuenta = parseInt(comprobante.spg_cuenta);
|
|
2567
|
+
this.operacion = comprobante.operacion;
|
|
2568
|
+
this.idfuenteFinanciamiento = +comprobante.id_fuefin;
|
|
2569
|
+
this.codigoFuenteFinanciamiento = comprobante.codigoftefin;
|
|
2570
|
+
this.procede_DOC = comprobante.procede_doc;
|
|
2571
|
+
this.documento = comprobante.documento;
|
|
2572
|
+
this.codigoCentroCosto = comprobante.codcencos;
|
|
2573
|
+
this.fechaComprobante = comprobante.feccmp;
|
|
2574
|
+
this.decripcionComprobante = comprobante.descmp;
|
|
2575
|
+
this.montoComprobante = parseFloat(comprobante.moncmp);
|
|
2576
|
+
this.orden = comprobante.orden;
|
|
2577
|
+
this.numeroCompromiso = comprobante.numconcom;
|
|
2578
|
+
this.idDetalle = parseInt(comprobante.id_dt_spgcmp);
|
|
2579
|
+
this.periodoFiscal = +comprobante.perfiscal,
|
|
2580
|
+
this.idMoneda = +comprobante.id_moneda;
|
|
2581
|
+
this.idTasaCambio = +comprobante.id_tascam;
|
|
2582
|
+
this.codigoMoneda = comprobante.codmon;
|
|
2583
|
+
this.montoComprobanteDivisa = +comprobante.moncmpdiv;
|
|
2584
|
+
this.tasaCambio = +comprobante.tascam;
|
|
2585
|
+
}
|
|
2586
|
+
}
|
|
2587
|
+
dataInterface() {
|
|
2588
|
+
return {
|
|
2589
|
+
id_ep1: this.idEp1.toString(),
|
|
2590
|
+
id_ep2: this.idEp2.toString(),
|
|
2591
|
+
id_ep3: this.idEp3.toString(),
|
|
2592
|
+
id_ep4: this.idEp4.toString(),
|
|
2593
|
+
id_ep5: this.idEp5.toString(),
|
|
2594
|
+
spg_cuenta: this.SPGCuenta.toString(),
|
|
2595
|
+
operacion: this.operacion,
|
|
2596
|
+
id_fuefin: this.idfuenteFinanciamiento.toString(),
|
|
2597
|
+
codigoftefin: this.codigoFuenteFinanciamiento,
|
|
2598
|
+
documento: this.documento,
|
|
2599
|
+
id_cencos: this.idCentroCosto.toString(),
|
|
2600
|
+
codcencos: this.codigoCentroCosto,
|
|
2601
|
+
moncmp: this.montoComprobante.toString(),
|
|
2602
|
+
id_dt_spgcmp: this.idDetalle.toString(),
|
|
2603
|
+
id_empresa: this.idEmpresa.toString(),
|
|
2604
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
2605
|
+
id_comprobante: this.idComprobante.toString(),
|
|
2606
|
+
numconcom: this.numeroCompromiso,
|
|
2607
|
+
orden: this.orden.toString(),
|
|
2608
|
+
descmp: this.decripcionComprobante,
|
|
2609
|
+
procede_doc: this.procede_DOC,
|
|
2610
|
+
feccmp: this.fechaComprobante,
|
|
2611
|
+
perfiscal: this.periodoFiscal.toString(),
|
|
2612
|
+
id_moneda: this.idMoneda.toString(),
|
|
2613
|
+
id_tascam: this.idTasaCambio.toString(),
|
|
2614
|
+
codmon: this.codigoMoneda,
|
|
2615
|
+
moncmpdiv: this.montoComprobanteDivisa.toString(),
|
|
2616
|
+
tascam: this.tasaCambio.toString()
|
|
2617
|
+
};
|
|
2554
2618
|
}
|
|
2555
2619
|
}
|
|
2556
2620
|
class MComprobantePresupuestarioIngresos {
|
|
@@ -2669,6 +2733,8 @@ class MCuentaIngresos extends MBasicModel {
|
|
|
2669
2733
|
class MIncomeStructureAccount {
|
|
2670
2734
|
constructor(account, level) {
|
|
2671
2735
|
this.idEmpresa = null;
|
|
2736
|
+
this.idEnterprise = null;
|
|
2737
|
+
this.periodoFiscal = null;
|
|
2672
2738
|
this.idEP1 = null;
|
|
2673
2739
|
this.idEP2 = null;
|
|
2674
2740
|
this.idEP3 = null;
|
|
@@ -2703,6 +2769,8 @@ class MIncomeStructureAccount {
|
|
|
2703
2769
|
this.distribuir = -1;
|
|
2704
2770
|
this.denominacion = '';
|
|
2705
2771
|
this.idEmpresa = parseInt(account.id_empresa);
|
|
2772
|
+
this.idEnterprise = +account.id_enterprise;
|
|
2773
|
+
this.periodoFiscal = +account.perfiscal;
|
|
2706
2774
|
this.idEP1 = account.id_ep1;
|
|
2707
2775
|
this.idEP2 = account.id_ep2;
|
|
2708
2776
|
this.idEP3 = account.id_ep3;
|
|
@@ -3343,6 +3411,7 @@ class MConfigSOC extends MBasicModel {
|
|
|
3343
3411
|
super();
|
|
3344
3412
|
this.id = 0;
|
|
3345
3413
|
this.idEnterprise = 0;
|
|
3414
|
+
this.periodoFiscal = 0;
|
|
3346
3415
|
this.companyId = 0;
|
|
3347
3416
|
this.serviceOrder = 0;
|
|
3348
3417
|
this.purchaseOrder = 0;
|
|
@@ -3358,6 +3427,7 @@ class MConfigSOC extends MBasicModel {
|
|
|
3358
3427
|
if (config) {
|
|
3359
3428
|
this.id = parseInt(config.id_soc);
|
|
3360
3429
|
this.idEnterprise = +config.id_enterprise;
|
|
3430
|
+
this.periodoFiscal = +config.perfiscal;
|
|
3361
3431
|
this.companyId = parseInt(config.id_empresa);
|
|
3362
3432
|
this.serviceOrder = parseInt(config.numordser);
|
|
3363
3433
|
this.purchaseOrder = parseInt(config.numordcom);
|
|
@@ -3384,6 +3454,7 @@ class MConfigSOC extends MBasicModel {
|
|
|
3384
3454
|
id_soc: this.id.toString(),
|
|
3385
3455
|
id_empresa: this.companyId.toString(),
|
|
3386
3456
|
id_enterprise: this.idEnterprise.toString(),
|
|
3457
|
+
perfiscal: this.periodoFiscal.toString(),
|
|
3387
3458
|
soc_bienes: this.goods.join(','),
|
|
3388
3459
|
soc_servicios: this.services.join(','),
|
|
3389
3460
|
estapesoc: this.opening ? '1' : '0',
|
|
@@ -3425,6 +3496,7 @@ class MCargo extends MBasicModel {
|
|
|
3425
3496
|
this.error = false;
|
|
3426
3497
|
this.idEmpresa = 0;
|
|
3427
3498
|
this.idEnterprise = 0;
|
|
3499
|
+
this.periodoFiscal = 0;
|
|
3428
3500
|
this.id = -1;
|
|
3429
3501
|
this.codigo = "";
|
|
3430
3502
|
this.denominacion = "";
|
|
@@ -3442,6 +3514,7 @@ class MCargo extends MBasicModel {
|
|
|
3442
3514
|
if (charge) {
|
|
3443
3515
|
this.idEmpresa = parseInt(charge.id_empresa);
|
|
3444
3516
|
this.idEnterprise = +charge.id_enterprise;
|
|
3517
|
+
this.periodoFiscal = +charge.perfiscal;
|
|
3445
3518
|
this.id = parseInt(charge.id_cargo);
|
|
3446
3519
|
this.codigo = charge.codcar;
|
|
3447
3520
|
this.denominacion = charge.dencar;
|
|
@@ -3464,6 +3537,7 @@ class MCargo extends MBasicModel {
|
|
|
3464
3537
|
interface() {
|
|
3465
3538
|
return {
|
|
3466
3539
|
id_enterprise: this.idEnterprise.toString(),
|
|
3540
|
+
perfiscal: this.periodoFiscal.toString(),
|
|
3467
3541
|
codcar: this.codigo,
|
|
3468
3542
|
codestpro: this.codigoEstructuraEgreso,
|
|
3469
3543
|
codestprospi: this.codigoEstructuraIngreso,
|
|
@@ -3596,24 +3670,24 @@ class MAdministrativeUnit extends MBasicModel {
|
|
|
3596
3670
|
super();
|
|
3597
3671
|
this.idEmpresa = 0;
|
|
3598
3672
|
this.idEnterprise = 0;
|
|
3673
|
+
this.periodoFiscal = 0;
|
|
3599
3674
|
this.codigo = '';
|
|
3600
3675
|
this.denominacion = '';
|
|
3601
|
-
this.
|
|
3676
|
+
this.idUnidadCentral = 0;
|
|
3602
3677
|
this.emiteRequisicion = true;
|
|
3603
|
-
this.idcentroCosto = 0;
|
|
3604
3678
|
this.id = 0;
|
|
3605
3679
|
this.denominacionUnidadCentral = '';
|
|
3606
3680
|
this.codigoUnidadCentral = '';
|
|
3607
|
-
this.denominacionCentroCosto = '';
|
|
3608
3681
|
this.estructuras = [];
|
|
3609
3682
|
this.centroCosto = [];
|
|
3610
3683
|
if (unidad) {
|
|
3611
3684
|
this.idEmpresa = +unidad.id_empresa;
|
|
3612
3685
|
this.idEnterprise = +unidad.id_enterprise;
|
|
3686
|
+
this.periodoFiscal = +this.periodoFiscal;
|
|
3613
3687
|
this.id = +unidad.id_uniadm;
|
|
3614
3688
|
this.codigo = unidad.coduniadm;
|
|
3615
3689
|
this.denominacion = unidad.denuniadm;
|
|
3616
|
-
this.
|
|
3690
|
+
this.idUnidadCentral = +unidad.id_uac;
|
|
3617
3691
|
this.emiteRequisicion = unidad.estemireq == '1' ? true : false;
|
|
3618
3692
|
this.denominacionUnidadCentral = unidad.denuac;
|
|
3619
3693
|
this.codigoUnidadCentral = unidad.codigouac;
|
|
@@ -3632,8 +3706,9 @@ class MAdministrativeUnit extends MBasicModel {
|
|
|
3632
3706
|
return {
|
|
3633
3707
|
id_empresa: this.idEmpresa.toString(),
|
|
3634
3708
|
id_enterprise: this.idEnterprise.toString(),
|
|
3709
|
+
perfiscal: this.periodoFiscal.toString(),
|
|
3635
3710
|
coduniadm: this.codigo,
|
|
3636
|
-
|
|
3711
|
+
id_uac: this.idUnidadCentral.toString(),
|
|
3637
3712
|
denuniadm: this.denominacion,
|
|
3638
3713
|
estemireq: this.emiteRequisicion ? '1' : '0',
|
|
3639
3714
|
id_uniadm: this.id.toString(),
|
|
@@ -3760,6 +3835,7 @@ class MServiceCharge extends MBasicModel {
|
|
|
3760
3835
|
super();
|
|
3761
3836
|
this.companyId = 0;
|
|
3762
3837
|
this.idEnterprise = 0;
|
|
3838
|
+
this.periodoFiscal = 0;
|
|
3763
3839
|
this.id = -1;
|
|
3764
3840
|
this.serviceId = 0;
|
|
3765
3841
|
this.denomination = '';
|
|
@@ -3767,6 +3843,7 @@ class MServiceCharge extends MBasicModel {
|
|
|
3767
3843
|
this.status = false;
|
|
3768
3844
|
if (ser) {
|
|
3769
3845
|
this.idEnterprise = +ser.id_enterprise;
|
|
3846
|
+
this.periodoFiscal = +ser.perfiscal;
|
|
3770
3847
|
this.companyId = parseInt(ser.id_empresa);
|
|
3771
3848
|
this.id = parseInt(ser.id_cargo);
|
|
3772
3849
|
this.serviceId = parseInt(ser.id_servicio);
|
|
@@ -3781,6 +3858,7 @@ class MServiceCharge extends MBasicModel {
|
|
|
3781
3858
|
interface() {
|
|
3782
3859
|
return {
|
|
3783
3860
|
id_enterprise: this.idEnterprise.toString(),
|
|
3861
|
+
perfiscal: this.periodoFiscal.toString(),
|
|
3784
3862
|
id_empresa: this.companyId.toString(),
|
|
3785
3863
|
id_cargo: this.id.toString(),
|
|
3786
3864
|
id_servicio: this.serviceId.toString(),
|
|
@@ -6497,7 +6575,7 @@ class SigespService {
|
|
|
6497
6575
|
* @description Actualiza el moncmp de sigesp_comprobante
|
|
6498
6576
|
*/
|
|
6499
6577
|
updateComprobanteAmount(amount, idComprobante) {
|
|
6500
|
-
return this.http.put(`${this.URL}/dao/
|
|
6578
|
+
return this.http.put(`${this.URL}/dao/sig/comprobante_dao.php?monto=true`, {
|
|
6501
6579
|
moncmp: amount,
|
|
6502
6580
|
id_comprobante: idComprobante
|
|
6503
6581
|
}, {
|
|
@@ -7803,7 +7881,7 @@ class SigespService {
|
|
|
7803
7881
|
* @author Carlos Albornoz
|
|
7804
7882
|
*/
|
|
7805
7883
|
getSigecofBanks() {
|
|
7806
|
-
return this.http.get(`${this.URL}/dao/
|
|
7884
|
+
return this.http.get(`${this.URL}/dao/cfg/banco_sigecof_dao.php`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
7807
7885
|
if (res.success) {
|
|
7808
7886
|
res.data = res.data.map(e => new MSigecofBank(e));
|
|
7809
7887
|
}
|
|
@@ -9045,6 +9123,7 @@ class MUnidadAdministradoraCentral extends MBasicModel {
|
|
|
9045
9123
|
super();
|
|
9046
9124
|
this.idEmpresa = 0;
|
|
9047
9125
|
this.idEnterprise = 0;
|
|
9126
|
+
this.periodoFiscal = 0;
|
|
9048
9127
|
this.idUnidadAdministradora = 0;
|
|
9049
9128
|
this.codigoUnidadCentral = '';
|
|
9050
9129
|
this.denominacionUnidadCentral = '';
|
|
@@ -9054,9 +9133,9 @@ class MUnidadAdministradoraCentral extends MBasicModel {
|
|
|
9054
9133
|
if (e) {
|
|
9055
9134
|
this.idEmpresa = e.id_empresa;
|
|
9056
9135
|
this.idEnterprise = e.id_enterprise;
|
|
9136
|
+
this.idUnidadAdministradora = +e.id_uac;
|
|
9057
9137
|
this.codigoUnidadCentral = e.codigouac;
|
|
9058
9138
|
this.denominacionUnidadCentral = e.denuac;
|
|
9059
|
-
this.idUnidadAdministradora = +e.coduac;
|
|
9060
9139
|
this.tipoUnidad = e.tipuac == '1';
|
|
9061
9140
|
this.responsableUnidad = e.resuac;
|
|
9062
9141
|
if (e.unidad_organizativa) {
|
|
@@ -9071,7 +9150,7 @@ class MUnidadAdministradoraCentral extends MBasicModel {
|
|
|
9071
9150
|
return {
|
|
9072
9151
|
id_enterprise: this.idEnterprise,
|
|
9073
9152
|
id_empresa: this.idEmpresa,
|
|
9074
|
-
|
|
9153
|
+
id_uac: this.idUnidadAdministradora.toString(),
|
|
9075
9154
|
codigouac: this.codigoUnidadCentral,
|
|
9076
9155
|
denuac: this.denominacionUnidadCentral,
|
|
9077
9156
|
resuac: this.responsableUnidad,
|
|
@@ -9115,11 +9194,13 @@ class MServiceType extends MBasicModel {
|
|
|
9115
9194
|
this.id = -1;
|
|
9116
9195
|
this.idEmpresa = 0;
|
|
9117
9196
|
this.idEnterprise = 0;
|
|
9197
|
+
this.periodoFiscal = 0;
|
|
9118
9198
|
this.denomination = null;
|
|
9119
9199
|
this.observation = null;
|
|
9120
9200
|
if (type) {
|
|
9121
9201
|
this.idEmpresa = parseInt(type.id_empresa);
|
|
9122
9202
|
this.idEnterprise = +type.id_enterprise;
|
|
9203
|
+
this.periodoFiscal = +type.perfiscal;
|
|
9123
9204
|
this.id = parseInt(type.id_tiposervicio);
|
|
9124
9205
|
this.denomination = type.dentipser;
|
|
9125
9206
|
this.observation = type.obstipser;
|
|
@@ -9132,6 +9213,7 @@ class MServiceType extends MBasicModel {
|
|
|
9132
9213
|
return {
|
|
9133
9214
|
id_empresa: this.idEmpresa.toString(),
|
|
9134
9215
|
id_enterprise: this.idEnterprise.toString(),
|
|
9216
|
+
perfiscal: this.periodoFiscal.toString(),
|
|
9135
9217
|
dentipser: this.denomination,
|
|
9136
9218
|
id_tiposervicio: this.id.toString(),
|
|
9137
9219
|
obstipser: this.observation
|
|
@@ -9144,6 +9226,7 @@ class MService extends MBasicModel {
|
|
|
9144
9226
|
super();
|
|
9145
9227
|
this.id = -1;
|
|
9146
9228
|
this.idEnterprise = 0;
|
|
9229
|
+
this.periodoFiscal = 0;
|
|
9147
9230
|
this.code = '';
|
|
9148
9231
|
this.companyId = 0;
|
|
9149
9232
|
this.serviceTypeId = 0;
|
|
@@ -9153,6 +9236,7 @@ class MService extends MBasicModel {
|
|
|
9153
9236
|
this.charges = [];
|
|
9154
9237
|
if (service) {
|
|
9155
9238
|
this.idEnterprise = +service.id_enterprise;
|
|
9239
|
+
this.periodoFiscal = +service.perfiscal;
|
|
9156
9240
|
this.id = parseInt(service.id_servicio);
|
|
9157
9241
|
this.companyId = parseInt(service.id_empresa);
|
|
9158
9242
|
this.serviceTypeId = parseInt(service.id_tiposervicio);
|
|
@@ -9171,6 +9255,7 @@ class MService extends MBasicModel {
|
|
|
9171
9255
|
dataAsInterface() {
|
|
9172
9256
|
return {
|
|
9173
9257
|
id_enterprise: this.idEnterprise.toString(),
|
|
9258
|
+
perfiscal: this.periodoFiscal.toString(),
|
|
9174
9259
|
denser: this.denomination,
|
|
9175
9260
|
id_empresa: this.companyId.toString(),
|
|
9176
9261
|
id_servicio: this.id.toString(),
|
|
@@ -9189,11 +9274,13 @@ class MClause extends MBasicModel {
|
|
|
9189
9274
|
this.id = -1;
|
|
9190
9275
|
this.companyId = 0;
|
|
9191
9276
|
this.idEnterprise = 0;
|
|
9277
|
+
this.periodoFiscal = 0;
|
|
9192
9278
|
this.clause = '';
|
|
9193
9279
|
this.denomination = '';
|
|
9194
9280
|
if (clause) {
|
|
9195
9281
|
this.companyId = parseInt(clause.id_empresa);
|
|
9196
9282
|
this.idEnterprise = +clause.id_enterprise;
|
|
9283
|
+
this.periodoFiscal = +clause.perfiscal;
|
|
9197
9284
|
this.clause = clause.codcla;
|
|
9198
9285
|
this.denomination = clause.dencla;
|
|
9199
9286
|
this.id = parseInt(clause.id_clausula);
|
|
@@ -9206,6 +9293,7 @@ class MClause extends MBasicModel {
|
|
|
9206
9293
|
return {
|
|
9207
9294
|
codcla: this.clause,
|
|
9208
9295
|
dencla: this.denomination,
|
|
9296
|
+
perfiscal: this.periodoFiscal.toString(),
|
|
9209
9297
|
id_empresa: this.companyId ? this.companyId.toString() : null,
|
|
9210
9298
|
id_enterprise: this.idEnterprise.toString(),
|
|
9211
9299
|
id_clausula: this.id ? this.id.toString() : null
|
|
@@ -9219,11 +9307,13 @@ class MClauseModality extends MBasicModel {
|
|
|
9219
9307
|
this.id = -1;
|
|
9220
9308
|
this.companyId = 0;
|
|
9221
9309
|
this.idEnterprise = 0;
|
|
9310
|
+
this.periodoFiscal = 0;
|
|
9222
9311
|
this.code = '';
|
|
9223
9312
|
this.denomination = '';
|
|
9224
9313
|
this.clauses = [];
|
|
9225
9314
|
if (mod) {
|
|
9226
9315
|
this.idEnterprise = +mod.id_enterprise;
|
|
9316
|
+
this.periodoFiscal = +mod.perfiscal;
|
|
9227
9317
|
this.id = parseInt(mod.id_modcla);
|
|
9228
9318
|
this.companyId = parseInt(mod.id_empresa);
|
|
9229
9319
|
this.code = mod.codmodcla;
|
|
@@ -9237,6 +9327,7 @@ class MClauseModality extends MBasicModel {
|
|
|
9237
9327
|
dataAsInterface() {
|
|
9238
9328
|
return {
|
|
9239
9329
|
id_enterprise: this.idEnterprise.toString(),
|
|
9330
|
+
perfiscal: this.periodoFiscal.toString(),
|
|
9240
9331
|
clausulas: this.clauses.map((e) => e.dataAsInterface()),
|
|
9241
9332
|
codmodcla: this.code,
|
|
9242
9333
|
denmodcla: this.denomination,
|