sigesp 1.1.8-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/SCG/cuentaInstitucional.model.mjs +3 -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 +123 -30
- package/fesm2015/sigesp.mjs.map +1 -1
- package/fesm2020/sigesp.mjs +123 -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/fesm2015/sigesp.mjs
CHANGED
|
@@ -79,6 +79,7 @@ class MUsuarioPrefijo extends MBasicModel {
|
|
|
79
79
|
super();
|
|
80
80
|
this.idEmpresa = 0;
|
|
81
81
|
this.idEnteprise = 0;
|
|
82
|
+
this.periodoFiscal = 0;
|
|
82
83
|
this.id = 0;
|
|
83
84
|
this.idUsuario = 0;
|
|
84
85
|
this.idDtPrefijo = 0;
|
|
@@ -90,6 +91,7 @@ class MUsuarioPrefijo extends MBasicModel {
|
|
|
90
91
|
if (e) {
|
|
91
92
|
this.idEmpresa = +e.id_empresa;
|
|
92
93
|
this.idEnteprise = +e.id_enterprise;
|
|
94
|
+
this.periodoFiscal = +e.perfiscal;
|
|
93
95
|
this.id = +e.id;
|
|
94
96
|
this.idUsuario = +e.id_usuario;
|
|
95
97
|
this.idDtPrefijo = +e.id_dt_prefijo;
|
|
@@ -107,6 +109,7 @@ class MUsuarioPrefijo extends MBasicModel {
|
|
|
107
109
|
return {
|
|
108
110
|
id_empresa: this.idEmpresa.toString(),
|
|
109
111
|
id_enterprise: this.idEnteprise.toString(),
|
|
112
|
+
perfiscal: this.periodoFiscal.toString(),
|
|
110
113
|
id: this.id.toString(),
|
|
111
114
|
id_usuario: this.idUsuario.toString(),
|
|
112
115
|
id_dt_prefijo: this.idDtPrefijo.toString(),
|
|
@@ -124,6 +127,7 @@ class MPrefijo extends MBasicModel {
|
|
|
124
127
|
super();
|
|
125
128
|
this.idEmpresa = 0;
|
|
126
129
|
this.idEnterprise = 0;
|
|
130
|
+
this.periodoFiscal = 0;
|
|
127
131
|
this.id = 0;
|
|
128
132
|
this.prefijo = '';
|
|
129
133
|
this.procede = '';
|
|
@@ -140,6 +144,7 @@ class MPrefijo extends MBasicModel {
|
|
|
140
144
|
if (e) {
|
|
141
145
|
this.idEmpresa = +e.id_empresa;
|
|
142
146
|
this.idEnterprise = +e.id_enterprise;
|
|
147
|
+
this.periodoFiscal = +e.perfiscal;
|
|
143
148
|
this.id = +e.id;
|
|
144
149
|
this.prefijo = e.prefijo;
|
|
145
150
|
this.procede = e.procede;
|
|
@@ -164,6 +169,7 @@ class MPrefijo extends MBasicModel {
|
|
|
164
169
|
return {
|
|
165
170
|
id_empresa: this.idEmpresa.toString(),
|
|
166
171
|
id_enterprise: this.idEnterprise.toString(),
|
|
172
|
+
perfiscal: this.periodoFiscal.toString(),
|
|
167
173
|
id: this.id.toString(),
|
|
168
174
|
prefijo: this.prefijo,
|
|
169
175
|
procede: this.procede,
|
|
@@ -1155,6 +1161,8 @@ class MCuentaEgresos$1 extends MBasicModel {
|
|
|
1155
1161
|
constructor(cuenta, level, isNew) {
|
|
1156
1162
|
super();
|
|
1157
1163
|
this.idEmpresa = 0;
|
|
1164
|
+
this.idEnterprise = 0;
|
|
1165
|
+
this.periodoFiscal = 0;
|
|
1158
1166
|
this.nivel = 0;
|
|
1159
1167
|
this.denominacion = '';
|
|
1160
1168
|
this.cuenta = '';
|
|
@@ -1199,6 +1207,8 @@ class MCuentaEgresos$1 extends MBasicModel {
|
|
|
1199
1207
|
this.id = 0;
|
|
1200
1208
|
if (cuenta) {
|
|
1201
1209
|
this.idEmpresa = parseInt(cuenta.id_empresa);
|
|
1210
|
+
this.idEnterprise = +cuenta.id_enterprise;
|
|
1211
|
+
this.periodoFiscal = +cuenta.perfiscal;
|
|
1202
1212
|
this.nivel = parseInt(cuenta.nivel);
|
|
1203
1213
|
this.denominacion = cuenta.denspgcta;
|
|
1204
1214
|
this.cuenta = cuenta.spg_cuenta;
|
|
@@ -1288,6 +1298,8 @@ class MCuentaInstitucional extends MBasicModel {
|
|
|
1288
1298
|
this.isNew = false;
|
|
1289
1299
|
this.idDtCuenta = 0;
|
|
1290
1300
|
if (institucional) {
|
|
1301
|
+
this.idEnterprise = +institucional.id_enterprise;
|
|
1302
|
+
this.periodoFiscal = +institucional.perfiscal;
|
|
1291
1303
|
this.cuenta = institucional.sc_cuenta;
|
|
1292
1304
|
this.cueproacu = institucional.cueproacu;
|
|
1293
1305
|
this.denominacion = institucional.denominacion;
|
|
@@ -2030,12 +2042,14 @@ class MFuenteFinanciamiento extends MBasicModel {
|
|
|
2030
2042
|
this.explicacionFuenteFinanciamiento = '';
|
|
2031
2043
|
this.idEmpresa = '0';
|
|
2032
2044
|
this.idFuenteFinanciamiento = 0;
|
|
2045
|
+
this.periodofiscal = 0;
|
|
2033
2046
|
if (fuente) {
|
|
2034
2047
|
this.codigoFuenteFinanciamiento = fuente.codigoftefin;
|
|
2035
2048
|
this.denominacionFuenteFinanciamiento = fuente.denfuefin;
|
|
2036
2049
|
this.explicacionFuenteFinanciamiento = fuente.expfuefin;
|
|
2037
2050
|
this.idEmpresa = fuente.id_empresa;
|
|
2038
2051
|
this.idFuenteFinanciamiento = +fuente.id_fuefin;
|
|
2052
|
+
this.periodofiscal = +fuente.perfiscal;
|
|
2039
2053
|
}
|
|
2040
2054
|
else {
|
|
2041
2055
|
this.isNew = true;
|
|
@@ -2048,6 +2062,7 @@ class MFuenteFinanciamiento extends MBasicModel {
|
|
|
2048
2062
|
expfuefin: this.explicacionFuenteFinanciamiento,
|
|
2049
2063
|
id_empresa: this.idEmpresa,
|
|
2050
2064
|
id_fuefin: this.idFuenteFinanciamiento.toString(),
|
|
2065
|
+
perfiscal: this.periodofiscal.toString()
|
|
2051
2066
|
};
|
|
2052
2067
|
}
|
|
2053
2068
|
}
|
|
@@ -2056,6 +2071,8 @@ class MCuentaEgresos extends MBasicModel {
|
|
|
2056
2071
|
constructor(cuenta, level, isNew) {
|
|
2057
2072
|
super();
|
|
2058
2073
|
this.idEmpresa = 0;
|
|
2074
|
+
this.idEnterprise = 0;
|
|
2075
|
+
this.periodoFiscal = 0;
|
|
2059
2076
|
this.nivel = 0;
|
|
2060
2077
|
this.denominacion = '';
|
|
2061
2078
|
this.cuenta = '';
|
|
@@ -2100,6 +2117,8 @@ class MCuentaEgresos extends MBasicModel {
|
|
|
2100
2117
|
this.id = 0;
|
|
2101
2118
|
if (cuenta) {
|
|
2102
2119
|
this.idEmpresa = parseInt(cuenta.id_empresa);
|
|
2120
|
+
this.idEnterprise = +cuenta.id_enterprise;
|
|
2121
|
+
this.periodoFiscal = +cuenta.perfiscal;
|
|
2103
2122
|
this.nivel = parseInt(cuenta.nivel);
|
|
2104
2123
|
this.denominacion = cuenta.denspgcta;
|
|
2105
2124
|
this.cuenta = cuenta.spg_cuenta;
|
|
@@ -2539,27 +2558,74 @@ class MComprobantePresupuestarioEgresos {
|
|
|
2539
2558
|
constructor(comprobante) {
|
|
2540
2559
|
this.idEnterprise = 0;
|
|
2541
2560
|
this.idfuenteFinanciamiento = 0;
|
|
2542
|
-
this.
|
|
2543
|
-
this.
|
|
2544
|
-
this.
|
|
2545
|
-
this.
|
|
2546
|
-
this.
|
|
2547
|
-
this.
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2561
|
+
this.idCentroCosto = 0;
|
|
2562
|
+
this.idMoneda = 0;
|
|
2563
|
+
this.codigoMoneda = '';
|
|
2564
|
+
this.tasaCambio = 0;
|
|
2565
|
+
this.idTasaCambio = 0;
|
|
2566
|
+
this.montoComprobanteDivisa = 0;
|
|
2567
|
+
if (comprobante) {
|
|
2568
|
+
this.idEmpresa = parseInt(comprobante.id_empresa);
|
|
2569
|
+
this.periodoFiscal = +comprobante.perfiscal;
|
|
2570
|
+
this.idEnterprise = +comprobante.id_enterprise;
|
|
2571
|
+
this.idComprobante = parseInt(comprobante.id_comprobante);
|
|
2572
|
+
this.idEp1 = parseInt(comprobante.id_ep1);
|
|
2573
|
+
this.idEp2 = parseInt(comprobante.id_ep2);
|
|
2574
|
+
this.idEp3 = parseInt(comprobante.id_ep3);
|
|
2575
|
+
this.idEp4 = parseInt(comprobante.id_ep4);
|
|
2576
|
+
this.idEp5 = parseInt(comprobante.id_ep5);
|
|
2577
|
+
this.SPGCuenta = parseInt(comprobante.spg_cuenta);
|
|
2578
|
+
this.operacion = comprobante.operacion;
|
|
2579
|
+
this.idfuenteFinanciamiento = +comprobante.id_fuefin;
|
|
2580
|
+
this.codigoFuenteFinanciamiento = comprobante.codigoftefin;
|
|
2581
|
+
this.procede_DOC = comprobante.procede_doc;
|
|
2582
|
+
this.documento = comprobante.documento;
|
|
2583
|
+
this.codigoCentroCosto = comprobante.codcencos;
|
|
2584
|
+
this.fechaComprobante = comprobante.feccmp;
|
|
2585
|
+
this.decripcionComprobante = comprobante.descmp;
|
|
2586
|
+
this.montoComprobante = parseFloat(comprobante.moncmp);
|
|
2587
|
+
this.orden = comprobante.orden;
|
|
2588
|
+
this.numeroCompromiso = comprobante.numconcom;
|
|
2589
|
+
this.idDetalle = parseInt(comprobante.id_dt_spgcmp);
|
|
2590
|
+
this.periodoFiscal = +comprobante.perfiscal,
|
|
2591
|
+
this.idMoneda = +comprobante.id_moneda;
|
|
2592
|
+
this.idTasaCambio = +comprobante.id_tascam;
|
|
2593
|
+
this.codigoMoneda = comprobante.codmon;
|
|
2594
|
+
this.montoComprobanteDivisa = +comprobante.moncmpdiv;
|
|
2595
|
+
this.tasaCambio = +comprobante.tascam;
|
|
2596
|
+
}
|
|
2597
|
+
}
|
|
2598
|
+
dataInterface() {
|
|
2599
|
+
return {
|
|
2600
|
+
id_ep1: this.idEp1.toString(),
|
|
2601
|
+
id_ep2: this.idEp2.toString(),
|
|
2602
|
+
id_ep3: this.idEp3.toString(),
|
|
2603
|
+
id_ep4: this.idEp4.toString(),
|
|
2604
|
+
id_ep5: this.idEp5.toString(),
|
|
2605
|
+
spg_cuenta: this.SPGCuenta.toString(),
|
|
2606
|
+
operacion: this.operacion,
|
|
2607
|
+
id_fuefin: this.idfuenteFinanciamiento.toString(),
|
|
2608
|
+
codigoftefin: this.codigoFuenteFinanciamiento,
|
|
2609
|
+
documento: this.documento,
|
|
2610
|
+
id_cencos: this.idCentroCosto.toString(),
|
|
2611
|
+
codcencos: this.codigoCentroCosto,
|
|
2612
|
+
moncmp: this.montoComprobante.toString(),
|
|
2613
|
+
id_dt_spgcmp: this.idDetalle.toString(),
|
|
2614
|
+
id_empresa: this.idEmpresa.toString(),
|
|
2615
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
2616
|
+
id_comprobante: this.idComprobante.toString(),
|
|
2617
|
+
numconcom: this.numeroCompromiso,
|
|
2618
|
+
orden: this.orden.toString(),
|
|
2619
|
+
descmp: this.decripcionComprobante,
|
|
2620
|
+
procede_doc: this.procede_DOC,
|
|
2621
|
+
feccmp: this.fechaComprobante,
|
|
2622
|
+
perfiscal: this.periodoFiscal.toString(),
|
|
2623
|
+
id_moneda: this.idMoneda.toString(),
|
|
2624
|
+
id_tascam: this.idTasaCambio.toString(),
|
|
2625
|
+
codmon: this.codigoMoneda,
|
|
2626
|
+
moncmpdiv: this.montoComprobanteDivisa.toString(),
|
|
2627
|
+
tascam: this.tasaCambio.toString()
|
|
2628
|
+
};
|
|
2563
2629
|
}
|
|
2564
2630
|
}
|
|
2565
2631
|
class MComprobantePresupuestarioIngresos {
|
|
@@ -2678,6 +2744,8 @@ class MCuentaIngresos extends MBasicModel {
|
|
|
2678
2744
|
class MIncomeStructureAccount {
|
|
2679
2745
|
constructor(account, level) {
|
|
2680
2746
|
this.idEmpresa = null;
|
|
2747
|
+
this.idEnterprise = null;
|
|
2748
|
+
this.periodoFiscal = null;
|
|
2681
2749
|
this.idEP1 = null;
|
|
2682
2750
|
this.idEP2 = null;
|
|
2683
2751
|
this.idEP3 = null;
|
|
@@ -2712,6 +2780,8 @@ class MIncomeStructureAccount {
|
|
|
2712
2780
|
this.distribuir = -1;
|
|
2713
2781
|
this.denominacion = '';
|
|
2714
2782
|
this.idEmpresa = parseInt(account.id_empresa);
|
|
2783
|
+
this.idEnterprise = +account.id_enterprise;
|
|
2784
|
+
this.periodoFiscal = +account.perfiscal;
|
|
2715
2785
|
this.idEP1 = account.id_ep1;
|
|
2716
2786
|
this.idEP2 = account.id_ep2;
|
|
2717
2787
|
this.idEP3 = account.id_ep3;
|
|
@@ -3352,6 +3422,7 @@ class MConfigSOC extends MBasicModel {
|
|
|
3352
3422
|
super();
|
|
3353
3423
|
this.id = 0;
|
|
3354
3424
|
this.idEnterprise = 0;
|
|
3425
|
+
this.periodoFiscal = 0;
|
|
3355
3426
|
this.companyId = 0;
|
|
3356
3427
|
this.serviceOrder = 0;
|
|
3357
3428
|
this.purchaseOrder = 0;
|
|
@@ -3367,6 +3438,7 @@ class MConfigSOC extends MBasicModel {
|
|
|
3367
3438
|
if (config) {
|
|
3368
3439
|
this.id = parseInt(config.id_soc);
|
|
3369
3440
|
this.idEnterprise = +config.id_enterprise;
|
|
3441
|
+
this.periodoFiscal = +config.perfiscal;
|
|
3370
3442
|
this.companyId = parseInt(config.id_empresa);
|
|
3371
3443
|
this.serviceOrder = parseInt(config.numordser);
|
|
3372
3444
|
this.purchaseOrder = parseInt(config.numordcom);
|
|
@@ -3393,6 +3465,7 @@ class MConfigSOC extends MBasicModel {
|
|
|
3393
3465
|
id_soc: this.id.toString(),
|
|
3394
3466
|
id_empresa: this.companyId.toString(),
|
|
3395
3467
|
id_enterprise: this.idEnterprise.toString(),
|
|
3468
|
+
perfiscal: this.periodoFiscal.toString(),
|
|
3396
3469
|
soc_bienes: this.goods.join(','),
|
|
3397
3470
|
soc_servicios: this.services.join(','),
|
|
3398
3471
|
estapesoc: this.opening ? '1' : '0',
|
|
@@ -3434,6 +3507,7 @@ class MCargo extends MBasicModel {
|
|
|
3434
3507
|
this.error = false;
|
|
3435
3508
|
this.idEmpresa = 0;
|
|
3436
3509
|
this.idEnterprise = 0;
|
|
3510
|
+
this.periodoFiscal = 0;
|
|
3437
3511
|
this.id = -1;
|
|
3438
3512
|
this.codigo = "";
|
|
3439
3513
|
this.denominacion = "";
|
|
@@ -3451,6 +3525,7 @@ class MCargo extends MBasicModel {
|
|
|
3451
3525
|
if (charge) {
|
|
3452
3526
|
this.idEmpresa = parseInt(charge.id_empresa);
|
|
3453
3527
|
this.idEnterprise = +charge.id_enterprise;
|
|
3528
|
+
this.periodoFiscal = +charge.perfiscal;
|
|
3454
3529
|
this.id = parseInt(charge.id_cargo);
|
|
3455
3530
|
this.codigo = charge.codcar;
|
|
3456
3531
|
this.denominacion = charge.dencar;
|
|
@@ -3473,6 +3548,7 @@ class MCargo extends MBasicModel {
|
|
|
3473
3548
|
interface() {
|
|
3474
3549
|
return {
|
|
3475
3550
|
id_enterprise: this.idEnterprise.toString(),
|
|
3551
|
+
perfiscal: this.periodoFiscal.toString(),
|
|
3476
3552
|
codcar: this.codigo,
|
|
3477
3553
|
codestpro: this.codigoEstructuraEgreso,
|
|
3478
3554
|
codestprospi: this.codigoEstructuraIngreso,
|
|
@@ -3605,24 +3681,24 @@ class MAdministrativeUnit extends MBasicModel {
|
|
|
3605
3681
|
super();
|
|
3606
3682
|
this.idEmpresa = 0;
|
|
3607
3683
|
this.idEnterprise = 0;
|
|
3684
|
+
this.periodoFiscal = 0;
|
|
3608
3685
|
this.codigo = '';
|
|
3609
3686
|
this.denominacion = '';
|
|
3610
|
-
this.
|
|
3687
|
+
this.idUnidadCentral = 0;
|
|
3611
3688
|
this.emiteRequisicion = true;
|
|
3612
|
-
this.idcentroCosto = 0;
|
|
3613
3689
|
this.id = 0;
|
|
3614
3690
|
this.denominacionUnidadCentral = '';
|
|
3615
3691
|
this.codigoUnidadCentral = '';
|
|
3616
|
-
this.denominacionCentroCosto = '';
|
|
3617
3692
|
this.estructuras = [];
|
|
3618
3693
|
this.centroCosto = [];
|
|
3619
3694
|
if (unidad) {
|
|
3620
3695
|
this.idEmpresa = +unidad.id_empresa;
|
|
3621
3696
|
this.idEnterprise = +unidad.id_enterprise;
|
|
3697
|
+
this.periodoFiscal = +this.periodoFiscal;
|
|
3622
3698
|
this.id = +unidad.id_uniadm;
|
|
3623
3699
|
this.codigo = unidad.coduniadm;
|
|
3624
3700
|
this.denominacion = unidad.denuniadm;
|
|
3625
|
-
this.
|
|
3701
|
+
this.idUnidadCentral = +unidad.id_uac;
|
|
3626
3702
|
this.emiteRequisicion = unidad.estemireq == '1' ? true : false;
|
|
3627
3703
|
this.denominacionUnidadCentral = unidad.denuac;
|
|
3628
3704
|
this.codigoUnidadCentral = unidad.codigouac;
|
|
@@ -3641,8 +3717,9 @@ class MAdministrativeUnit extends MBasicModel {
|
|
|
3641
3717
|
return {
|
|
3642
3718
|
id_empresa: this.idEmpresa.toString(),
|
|
3643
3719
|
id_enterprise: this.idEnterprise.toString(),
|
|
3720
|
+
perfiscal: this.periodoFiscal.toString(),
|
|
3644
3721
|
coduniadm: this.codigo,
|
|
3645
|
-
|
|
3722
|
+
id_uac: this.idUnidadCentral.toString(),
|
|
3646
3723
|
denuniadm: this.denominacion,
|
|
3647
3724
|
estemireq: this.emiteRequisicion ? '1' : '0',
|
|
3648
3725
|
id_uniadm: this.id.toString(),
|
|
@@ -3769,6 +3846,7 @@ class MServiceCharge extends MBasicModel {
|
|
|
3769
3846
|
super();
|
|
3770
3847
|
this.companyId = 0;
|
|
3771
3848
|
this.idEnterprise = 0;
|
|
3849
|
+
this.periodoFiscal = 0;
|
|
3772
3850
|
this.id = -1;
|
|
3773
3851
|
this.serviceId = 0;
|
|
3774
3852
|
this.denomination = '';
|
|
@@ -3776,6 +3854,7 @@ class MServiceCharge extends MBasicModel {
|
|
|
3776
3854
|
this.status = false;
|
|
3777
3855
|
if (ser) {
|
|
3778
3856
|
this.idEnterprise = +ser.id_enterprise;
|
|
3857
|
+
this.periodoFiscal = +ser.perfiscal;
|
|
3779
3858
|
this.companyId = parseInt(ser.id_empresa);
|
|
3780
3859
|
this.id = parseInt(ser.id_cargo);
|
|
3781
3860
|
this.serviceId = parseInt(ser.id_servicio);
|
|
@@ -3790,6 +3869,7 @@ class MServiceCharge extends MBasicModel {
|
|
|
3790
3869
|
interface() {
|
|
3791
3870
|
return {
|
|
3792
3871
|
id_enterprise: this.idEnterprise.toString(),
|
|
3872
|
+
perfiscal: this.periodoFiscal.toString(),
|
|
3793
3873
|
id_empresa: this.companyId.toString(),
|
|
3794
3874
|
id_cargo: this.id.toString(),
|
|
3795
3875
|
id_servicio: this.serviceId.toString(),
|
|
@@ -6506,7 +6586,7 @@ class SigespService {
|
|
|
6506
6586
|
* @description Actualiza el moncmp de sigesp_comprobante
|
|
6507
6587
|
*/
|
|
6508
6588
|
updateComprobanteAmount(amount, idComprobante) {
|
|
6509
|
-
return this.http.put(`${this.URL}/dao/
|
|
6589
|
+
return this.http.put(`${this.URL}/dao/sig/comprobante_dao.php?monto=true`, {
|
|
6510
6590
|
moncmp: amount,
|
|
6511
6591
|
id_comprobante: idComprobante
|
|
6512
6592
|
}, {
|
|
@@ -7838,7 +7918,7 @@ class SigespService {
|
|
|
7838
7918
|
* @author Carlos Albornoz
|
|
7839
7919
|
*/
|
|
7840
7920
|
getSigecofBanks() {
|
|
7841
|
-
return this.http.get(`${this.URL}/dao/
|
|
7921
|
+
return this.http.get(`${this.URL}/dao/cfg/banco_sigecof_dao.php`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
7842
7922
|
if (res.success) {
|
|
7843
7923
|
res.data = res.data.map(e => new MSigecofBank(e));
|
|
7844
7924
|
}
|
|
@@ -9084,6 +9164,7 @@ class MUnidadAdministradoraCentral extends MBasicModel {
|
|
|
9084
9164
|
super();
|
|
9085
9165
|
this.idEmpresa = 0;
|
|
9086
9166
|
this.idEnterprise = 0;
|
|
9167
|
+
this.periodoFiscal = 0;
|
|
9087
9168
|
this.idUnidadAdministradora = 0;
|
|
9088
9169
|
this.codigoUnidadCentral = '';
|
|
9089
9170
|
this.denominacionUnidadCentral = '';
|
|
@@ -9093,9 +9174,9 @@ class MUnidadAdministradoraCentral extends MBasicModel {
|
|
|
9093
9174
|
if (e) {
|
|
9094
9175
|
this.idEmpresa = e.id_empresa;
|
|
9095
9176
|
this.idEnterprise = e.id_enterprise;
|
|
9177
|
+
this.idUnidadAdministradora = +e.id_uac;
|
|
9096
9178
|
this.codigoUnidadCentral = e.codigouac;
|
|
9097
9179
|
this.denominacionUnidadCentral = e.denuac;
|
|
9098
|
-
this.idUnidadAdministradora = +e.coduac;
|
|
9099
9180
|
this.tipoUnidad = e.tipuac == '1';
|
|
9100
9181
|
this.responsableUnidad = e.resuac;
|
|
9101
9182
|
if (e.unidad_organizativa) {
|
|
@@ -9110,7 +9191,7 @@ class MUnidadAdministradoraCentral extends MBasicModel {
|
|
|
9110
9191
|
return {
|
|
9111
9192
|
id_enterprise: this.idEnterprise,
|
|
9112
9193
|
id_empresa: this.idEmpresa,
|
|
9113
|
-
|
|
9194
|
+
id_uac: this.idUnidadAdministradora.toString(),
|
|
9114
9195
|
codigouac: this.codigoUnidadCentral,
|
|
9115
9196
|
denuac: this.denominacionUnidadCentral,
|
|
9116
9197
|
resuac: this.responsableUnidad,
|
|
@@ -9154,11 +9235,13 @@ class MServiceType extends MBasicModel {
|
|
|
9154
9235
|
this.id = -1;
|
|
9155
9236
|
this.idEmpresa = 0;
|
|
9156
9237
|
this.idEnterprise = 0;
|
|
9238
|
+
this.periodoFiscal = 0;
|
|
9157
9239
|
this.denomination = null;
|
|
9158
9240
|
this.observation = null;
|
|
9159
9241
|
if (type) {
|
|
9160
9242
|
this.idEmpresa = parseInt(type.id_empresa);
|
|
9161
9243
|
this.idEnterprise = +type.id_enterprise;
|
|
9244
|
+
this.periodoFiscal = +type.perfiscal;
|
|
9162
9245
|
this.id = parseInt(type.id_tiposervicio);
|
|
9163
9246
|
this.denomination = type.dentipser;
|
|
9164
9247
|
this.observation = type.obstipser;
|
|
@@ -9171,6 +9254,7 @@ class MServiceType extends MBasicModel {
|
|
|
9171
9254
|
return {
|
|
9172
9255
|
id_empresa: this.idEmpresa.toString(),
|
|
9173
9256
|
id_enterprise: this.idEnterprise.toString(),
|
|
9257
|
+
perfiscal: this.periodoFiscal.toString(),
|
|
9174
9258
|
dentipser: this.denomination,
|
|
9175
9259
|
id_tiposervicio: this.id.toString(),
|
|
9176
9260
|
obstipser: this.observation
|
|
@@ -9183,6 +9267,7 @@ class MService extends MBasicModel {
|
|
|
9183
9267
|
super();
|
|
9184
9268
|
this.id = -1;
|
|
9185
9269
|
this.idEnterprise = 0;
|
|
9270
|
+
this.periodoFiscal = 0;
|
|
9186
9271
|
this.code = '';
|
|
9187
9272
|
this.companyId = 0;
|
|
9188
9273
|
this.serviceTypeId = 0;
|
|
@@ -9192,6 +9277,7 @@ class MService extends MBasicModel {
|
|
|
9192
9277
|
this.charges = [];
|
|
9193
9278
|
if (service) {
|
|
9194
9279
|
this.idEnterprise = +service.id_enterprise;
|
|
9280
|
+
this.periodoFiscal = +service.perfiscal;
|
|
9195
9281
|
this.id = parseInt(service.id_servicio);
|
|
9196
9282
|
this.companyId = parseInt(service.id_empresa);
|
|
9197
9283
|
this.serviceTypeId = parseInt(service.id_tiposervicio);
|
|
@@ -9210,6 +9296,7 @@ class MService extends MBasicModel {
|
|
|
9210
9296
|
dataAsInterface() {
|
|
9211
9297
|
return {
|
|
9212
9298
|
id_enterprise: this.idEnterprise.toString(),
|
|
9299
|
+
perfiscal: this.periodoFiscal.toString(),
|
|
9213
9300
|
denser: this.denomination,
|
|
9214
9301
|
id_empresa: this.companyId.toString(),
|
|
9215
9302
|
id_servicio: this.id.toString(),
|
|
@@ -9228,11 +9315,13 @@ class MClause extends MBasicModel {
|
|
|
9228
9315
|
this.id = -1;
|
|
9229
9316
|
this.companyId = 0;
|
|
9230
9317
|
this.idEnterprise = 0;
|
|
9318
|
+
this.periodoFiscal = 0;
|
|
9231
9319
|
this.clause = '';
|
|
9232
9320
|
this.denomination = '';
|
|
9233
9321
|
if (clause) {
|
|
9234
9322
|
this.companyId = parseInt(clause.id_empresa);
|
|
9235
9323
|
this.idEnterprise = +clause.id_enterprise;
|
|
9324
|
+
this.periodoFiscal = +clause.perfiscal;
|
|
9236
9325
|
this.clause = clause.codcla;
|
|
9237
9326
|
this.denomination = clause.dencla;
|
|
9238
9327
|
this.id = parseInt(clause.id_clausula);
|
|
@@ -9245,6 +9334,7 @@ class MClause extends MBasicModel {
|
|
|
9245
9334
|
return {
|
|
9246
9335
|
codcla: this.clause,
|
|
9247
9336
|
dencla: this.denomination,
|
|
9337
|
+
perfiscal: this.periodoFiscal.toString(),
|
|
9248
9338
|
id_empresa: this.companyId ? this.companyId.toString() : null,
|
|
9249
9339
|
id_enterprise: this.idEnterprise.toString(),
|
|
9250
9340
|
id_clausula: this.id ? this.id.toString() : null
|
|
@@ -9258,11 +9348,13 @@ class MClauseModality extends MBasicModel {
|
|
|
9258
9348
|
this.id = -1;
|
|
9259
9349
|
this.companyId = 0;
|
|
9260
9350
|
this.idEnterprise = 0;
|
|
9351
|
+
this.periodoFiscal = 0;
|
|
9261
9352
|
this.code = '';
|
|
9262
9353
|
this.denomination = '';
|
|
9263
9354
|
this.clauses = [];
|
|
9264
9355
|
if (mod) {
|
|
9265
9356
|
this.idEnterprise = +mod.id_enterprise;
|
|
9357
|
+
this.periodoFiscal = +mod.perfiscal;
|
|
9266
9358
|
this.id = parseInt(mod.id_modcla);
|
|
9267
9359
|
this.companyId = parseInt(mod.id_empresa);
|
|
9268
9360
|
this.code = mod.codmodcla;
|
|
@@ -9276,6 +9368,7 @@ class MClauseModality extends MBasicModel {
|
|
|
9276
9368
|
dataAsInterface() {
|
|
9277
9369
|
return {
|
|
9278
9370
|
id_enterprise: this.idEnterprise.toString(),
|
|
9371
|
+
perfiscal: this.periodoFiscal.toString(),
|
|
9279
9372
|
clausulas: this.clauses.map((e) => e.dataAsInterface()),
|
|
9280
9373
|
codmodcla: this.code,
|
|
9281
9374
|
denmodcla: this.denomination,
|