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.
Files changed (56) hide show
  1. package/esm2020/lib/core/interfaces/ComprobantePresupuestario.mjs +1 -1
  2. package/esm2020/lib/core/interfaces/Configuracion.mjs +1 -1
  3. package/esm2020/lib/core/interfaces/CuentaEgresos.mjs +1 -1
  4. package/esm2020/lib/core/interfaces/CuentaIngresoEstructura.mjs +1 -1
  5. package/esm2020/lib/core/interfaces/FuenteFinanciamiento.mjs +1 -1
  6. package/esm2020/lib/core/interfaces/Presupuesto.mjs +1 -1
  7. package/esm2020/lib/core/interfaces/Servicios.mjs +1 -1
  8. package/esm2020/lib/core/interfaces/Tributos.mjs +1 -1
  9. package/esm2020/lib/core/interfaces/UsuarioPrefijo.mjs +1 -1
  10. package/esm2020/lib/core/models/CFG/MPrefijo.model.mjs +4 -1
  11. package/esm2020/lib/core/models/CFG/userPrefix.model.mjs +4 -1
  12. package/esm2020/lib/core/models/SOC/charge.model.mjs +4 -1
  13. package/esm2020/lib/core/models/SOC/clause.model.mjs +4 -1
  14. package/esm2020/lib/core/models/SOC/clauseModality.model.mjs +4 -1
  15. package/esm2020/lib/core/models/SOC/configuracionSOC.model.mjs +4 -1
  16. package/esm2020/lib/core/models/SOC/service.model.mjs +4 -1
  17. package/esm2020/lib/core/models/SOC/serviceCharge.model.mjs +4 -1
  18. package/esm2020/lib/core/models/SOC/serviceType.model.mjs +4 -1
  19. package/esm2020/lib/core/models/SPG/UnidadAdministradoraCentral.mjs +4 -3
  20. package/esm2020/lib/core/models/SPG/administrativeUnit.model.mjs +7 -6
  21. package/esm2020/lib/core/models/SPG/comprobantePresupuestario.model.mjs +69 -22
  22. package/esm2020/lib/core/models/SPG/cuentaPresupuesto.model.mjs +5 -1
  23. package/esm2020/lib/core/models/SPG/expensiveAccount.model.mjs +5 -1
  24. package/esm2020/lib/core/models/SPG/fuenteFinanciamiento.model.mjs +4 -1
  25. package/esm2020/lib/core/models/SPG/incomeStructureAccount.model.mjs +5 -1
  26. package/esm2020/lib/sigesp.service.mjs +3 -3
  27. package/fesm2015/sigesp.mjs +121 -30
  28. package/fesm2015/sigesp.mjs.map +1 -1
  29. package/fesm2020/sigesp.mjs +121 -30
  30. package/fesm2020/sigesp.mjs.map +1 -1
  31. package/lib/core/interfaces/ComprobantePresupuestario.d.ts +7 -1
  32. package/lib/core/interfaces/Configuracion.d.ts +1 -0
  33. package/lib/core/interfaces/CuentaEgresos.d.ts +2 -0
  34. package/lib/core/interfaces/CuentaIngresoEstructura.d.ts +2 -0
  35. package/lib/core/interfaces/FuenteFinanciamiento.d.ts +1 -0
  36. package/lib/core/interfaces/Presupuesto.d.ts +6 -7
  37. package/lib/core/interfaces/Servicios.d.ts +6 -0
  38. package/lib/core/interfaces/Tributos.d.ts +1 -0
  39. package/lib/core/interfaces/UsuarioPrefijo.d.ts +1 -0
  40. package/lib/core/models/CFG/MPrefijo.model.d.ts +1 -0
  41. package/lib/core/models/CFG/userPrefix.model.d.ts +1 -0
  42. package/lib/core/models/SOC/charge.model.d.ts +1 -0
  43. package/lib/core/models/SOC/clause.model.d.ts +1 -0
  44. package/lib/core/models/SOC/clauseModality.model.d.ts +1 -0
  45. package/lib/core/models/SOC/configuracionSOC.model.d.ts +1 -0
  46. package/lib/core/models/SOC/service.model.d.ts +1 -0
  47. package/lib/core/models/SOC/serviceCharge.model.d.ts +1 -0
  48. package/lib/core/models/SOC/serviceType.model.d.ts +1 -0
  49. package/lib/core/models/SPG/UnidadAdministradoraCentral.d.ts +1 -0
  50. package/lib/core/models/SPG/administrativeUnit.model.d.ts +2 -3
  51. package/lib/core/models/SPG/comprobantePresupuestario.model.d.ts +8 -0
  52. package/lib/core/models/SPG/cuentaPresupuesto.model.d.ts +2 -0
  53. package/lib/core/models/SPG/expensiveAccount.model.d.ts +2 -0
  54. package/lib/core/models/SPG/fuenteFinanciamiento.model.d.ts +1 -0
  55. package/lib/core/models/SPG/incomeStructureAccount.model.d.ts +2 -0
  56. package/package.json +1 -1
@@ -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;
@@ -2032,12 +2042,14 @@ class MFuenteFinanciamiento extends MBasicModel {
2032
2042
  this.explicacionFuenteFinanciamiento = '';
2033
2043
  this.idEmpresa = '0';
2034
2044
  this.idFuenteFinanciamiento = 0;
2045
+ this.periodofiscal = 0;
2035
2046
  if (fuente) {
2036
2047
  this.codigoFuenteFinanciamiento = fuente.codigoftefin;
2037
2048
  this.denominacionFuenteFinanciamiento = fuente.denfuefin;
2038
2049
  this.explicacionFuenteFinanciamiento = fuente.expfuefin;
2039
2050
  this.idEmpresa = fuente.id_empresa;
2040
2051
  this.idFuenteFinanciamiento = +fuente.id_fuefin;
2052
+ this.periodofiscal = +fuente.perfiscal;
2041
2053
  }
2042
2054
  else {
2043
2055
  this.isNew = true;
@@ -2050,6 +2062,7 @@ class MFuenteFinanciamiento extends MBasicModel {
2050
2062
  expfuefin: this.explicacionFuenteFinanciamiento,
2051
2063
  id_empresa: this.idEmpresa,
2052
2064
  id_fuefin: this.idFuenteFinanciamiento.toString(),
2065
+ perfiscal: this.periodofiscal.toString()
2053
2066
  };
2054
2067
  }
2055
2068
  }
@@ -2058,6 +2071,8 @@ class MCuentaEgresos extends MBasicModel {
2058
2071
  constructor(cuenta, level, isNew) {
2059
2072
  super();
2060
2073
  this.idEmpresa = 0;
2074
+ this.idEnterprise = 0;
2075
+ this.periodoFiscal = 0;
2061
2076
  this.nivel = 0;
2062
2077
  this.denominacion = '';
2063
2078
  this.cuenta = '';
@@ -2102,6 +2117,8 @@ class MCuentaEgresos extends MBasicModel {
2102
2117
  this.id = 0;
2103
2118
  if (cuenta) {
2104
2119
  this.idEmpresa = parseInt(cuenta.id_empresa);
2120
+ this.idEnterprise = +cuenta.id_enterprise;
2121
+ this.periodoFiscal = +cuenta.perfiscal;
2105
2122
  this.nivel = parseInt(cuenta.nivel);
2106
2123
  this.denominacion = cuenta.denspgcta;
2107
2124
  this.cuenta = cuenta.spg_cuenta;
@@ -2541,27 +2558,74 @@ class MComprobantePresupuestarioEgresos {
2541
2558
  constructor(comprobante) {
2542
2559
  this.idEnterprise = 0;
2543
2560
  this.idfuenteFinanciamiento = 0;
2544
- this.idEmpresa = parseInt(comprobante.id_empresa);
2545
- this.idEnterprise = +comprobante.id_enterprise;
2546
- this.idComprobante = parseInt(comprobante.id_comprobante);
2547
- this.idEp1 = parseInt(comprobante.id_ep1);
2548
- this.idEp2 = parseInt(comprobante.id_ep2);
2549
- this.idEp3 = parseInt(comprobante.id_ep3);
2550
- this.idEp4 = parseInt(comprobante.id_ep4);
2551
- this.idEp5 = parseInt(comprobante.id_ep5);
2552
- this.SPGCuenta = parseInt(comprobante.spg_cuenta);
2553
- this.operacion = comprobante.operacion;
2554
- this.idfuenteFinanciamiento = +comprobante.id_fuefin;
2555
- this.codigoFuenteFinanciamiento = comprobante.codigoftefin;
2556
- this.procede_DOC = comprobante.procede_doc;
2557
- this.documento = comprobante.documento;
2558
- this.codigoCentroCosto = comprobante.codcencos;
2559
- this.fechaComprobante = comprobante.feccmp;
2560
- this.decripcionComprobante = comprobante.descmp;
2561
- this.montoComprobante = parseFloat(comprobante.moncmp);
2562
- this.orden = comprobante.orden;
2563
- this.numeroCompromiso = comprobante.numconcom;
2564
- this.idDetalle = parseInt(comprobante.id_dt_spgcmp);
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
+ };
2565
2629
  }
2566
2630
  }
2567
2631
  class MComprobantePresupuestarioIngresos {
@@ -2680,6 +2744,8 @@ class MCuentaIngresos extends MBasicModel {
2680
2744
  class MIncomeStructureAccount {
2681
2745
  constructor(account, level) {
2682
2746
  this.idEmpresa = null;
2747
+ this.idEnterprise = null;
2748
+ this.periodoFiscal = null;
2683
2749
  this.idEP1 = null;
2684
2750
  this.idEP2 = null;
2685
2751
  this.idEP3 = null;
@@ -2714,6 +2780,8 @@ class MIncomeStructureAccount {
2714
2780
  this.distribuir = -1;
2715
2781
  this.denominacion = '';
2716
2782
  this.idEmpresa = parseInt(account.id_empresa);
2783
+ this.idEnterprise = +account.id_enterprise;
2784
+ this.periodoFiscal = +account.perfiscal;
2717
2785
  this.idEP1 = account.id_ep1;
2718
2786
  this.idEP2 = account.id_ep2;
2719
2787
  this.idEP3 = account.id_ep3;
@@ -3354,6 +3422,7 @@ class MConfigSOC extends MBasicModel {
3354
3422
  super();
3355
3423
  this.id = 0;
3356
3424
  this.idEnterprise = 0;
3425
+ this.periodoFiscal = 0;
3357
3426
  this.companyId = 0;
3358
3427
  this.serviceOrder = 0;
3359
3428
  this.purchaseOrder = 0;
@@ -3369,6 +3438,7 @@ class MConfigSOC extends MBasicModel {
3369
3438
  if (config) {
3370
3439
  this.id = parseInt(config.id_soc);
3371
3440
  this.idEnterprise = +config.id_enterprise;
3441
+ this.periodoFiscal = +config.perfiscal;
3372
3442
  this.companyId = parseInt(config.id_empresa);
3373
3443
  this.serviceOrder = parseInt(config.numordser);
3374
3444
  this.purchaseOrder = parseInt(config.numordcom);
@@ -3395,6 +3465,7 @@ class MConfigSOC extends MBasicModel {
3395
3465
  id_soc: this.id.toString(),
3396
3466
  id_empresa: this.companyId.toString(),
3397
3467
  id_enterprise: this.idEnterprise.toString(),
3468
+ perfiscal: this.periodoFiscal.toString(),
3398
3469
  soc_bienes: this.goods.join(','),
3399
3470
  soc_servicios: this.services.join(','),
3400
3471
  estapesoc: this.opening ? '1' : '0',
@@ -3436,6 +3507,7 @@ class MCargo extends MBasicModel {
3436
3507
  this.error = false;
3437
3508
  this.idEmpresa = 0;
3438
3509
  this.idEnterprise = 0;
3510
+ this.periodoFiscal = 0;
3439
3511
  this.id = -1;
3440
3512
  this.codigo = "";
3441
3513
  this.denominacion = "";
@@ -3453,6 +3525,7 @@ class MCargo extends MBasicModel {
3453
3525
  if (charge) {
3454
3526
  this.idEmpresa = parseInt(charge.id_empresa);
3455
3527
  this.idEnterprise = +charge.id_enterprise;
3528
+ this.periodoFiscal = +charge.perfiscal;
3456
3529
  this.id = parseInt(charge.id_cargo);
3457
3530
  this.codigo = charge.codcar;
3458
3531
  this.denominacion = charge.dencar;
@@ -3475,6 +3548,7 @@ class MCargo extends MBasicModel {
3475
3548
  interface() {
3476
3549
  return {
3477
3550
  id_enterprise: this.idEnterprise.toString(),
3551
+ perfiscal: this.periodoFiscal.toString(),
3478
3552
  codcar: this.codigo,
3479
3553
  codestpro: this.codigoEstructuraEgreso,
3480
3554
  codestprospi: this.codigoEstructuraIngreso,
@@ -3607,24 +3681,24 @@ class MAdministrativeUnit extends MBasicModel {
3607
3681
  super();
3608
3682
  this.idEmpresa = 0;
3609
3683
  this.idEnterprise = 0;
3684
+ this.periodoFiscal = 0;
3610
3685
  this.codigo = '';
3611
3686
  this.denominacion = '';
3612
- this.unidadCentral = 0;
3687
+ this.idUnidadCentral = 0;
3613
3688
  this.emiteRequisicion = true;
3614
- this.idcentroCosto = 0;
3615
3689
  this.id = 0;
3616
3690
  this.denominacionUnidadCentral = '';
3617
3691
  this.codigoUnidadCentral = '';
3618
- this.denominacionCentroCosto = '';
3619
3692
  this.estructuras = [];
3620
3693
  this.centroCosto = [];
3621
3694
  if (unidad) {
3622
3695
  this.idEmpresa = +unidad.id_empresa;
3623
3696
  this.idEnterprise = +unidad.id_enterprise;
3697
+ this.periodoFiscal = +this.periodoFiscal;
3624
3698
  this.id = +unidad.id_uniadm;
3625
3699
  this.codigo = unidad.coduniadm;
3626
3700
  this.denominacion = unidad.denuniadm;
3627
- this.unidadCentral = +unidad.coduac;
3701
+ this.idUnidadCentral = +unidad.id_uac;
3628
3702
  this.emiteRequisicion = unidad.estemireq == '1' ? true : false;
3629
3703
  this.denominacionUnidadCentral = unidad.denuac;
3630
3704
  this.codigoUnidadCentral = unidad.codigouac;
@@ -3643,8 +3717,9 @@ class MAdministrativeUnit extends MBasicModel {
3643
3717
  return {
3644
3718
  id_empresa: this.idEmpresa.toString(),
3645
3719
  id_enterprise: this.idEnterprise.toString(),
3720
+ perfiscal: this.periodoFiscal.toString(),
3646
3721
  coduniadm: this.codigo,
3647
- coduac: this.unidadCentral.toString(),
3722
+ id_uac: this.idUnidadCentral.toString(),
3648
3723
  denuniadm: this.denominacion,
3649
3724
  estemireq: this.emiteRequisicion ? '1' : '0',
3650
3725
  id_uniadm: this.id.toString(),
@@ -3771,6 +3846,7 @@ class MServiceCharge extends MBasicModel {
3771
3846
  super();
3772
3847
  this.companyId = 0;
3773
3848
  this.idEnterprise = 0;
3849
+ this.periodoFiscal = 0;
3774
3850
  this.id = -1;
3775
3851
  this.serviceId = 0;
3776
3852
  this.denomination = '';
@@ -3778,6 +3854,7 @@ class MServiceCharge extends MBasicModel {
3778
3854
  this.status = false;
3779
3855
  if (ser) {
3780
3856
  this.idEnterprise = +ser.id_enterprise;
3857
+ this.periodoFiscal = +ser.perfiscal;
3781
3858
  this.companyId = parseInt(ser.id_empresa);
3782
3859
  this.id = parseInt(ser.id_cargo);
3783
3860
  this.serviceId = parseInt(ser.id_servicio);
@@ -3792,6 +3869,7 @@ class MServiceCharge extends MBasicModel {
3792
3869
  interface() {
3793
3870
  return {
3794
3871
  id_enterprise: this.idEnterprise.toString(),
3872
+ perfiscal: this.periodoFiscal.toString(),
3795
3873
  id_empresa: this.companyId.toString(),
3796
3874
  id_cargo: this.id.toString(),
3797
3875
  id_servicio: this.serviceId.toString(),
@@ -6508,7 +6586,7 @@ class SigespService {
6508
6586
  * @description Actualiza el moncmp de sigesp_comprobante
6509
6587
  */
6510
6588
  updateComprobanteAmount(amount, idComprobante) {
6511
- return this.http.put(`${this.URL}/dao/sigesp/comprobante_dao.php?monto=true`, {
6589
+ return this.http.put(`${this.URL}/dao/sig/comprobante_dao.php?monto=true`, {
6512
6590
  moncmp: amount,
6513
6591
  id_comprobante: idComprobante
6514
6592
  }, {
@@ -7840,7 +7918,7 @@ class SigespService {
7840
7918
  * @author Carlos Albornoz
7841
7919
  */
7842
7920
  getSigecofBanks() {
7843
- return this.http.get(`${this.URL}/dao/sigesp/banco_sigecof_dao.php`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
7921
+ return this.http.get(`${this.URL}/dao/cfg/banco_sigecof_dao.php`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
7844
7922
  if (res.success) {
7845
7923
  res.data = res.data.map(e => new MSigecofBank(e));
7846
7924
  }
@@ -9086,6 +9164,7 @@ class MUnidadAdministradoraCentral extends MBasicModel {
9086
9164
  super();
9087
9165
  this.idEmpresa = 0;
9088
9166
  this.idEnterprise = 0;
9167
+ this.periodoFiscal = 0;
9089
9168
  this.idUnidadAdministradora = 0;
9090
9169
  this.codigoUnidadCentral = '';
9091
9170
  this.denominacionUnidadCentral = '';
@@ -9095,9 +9174,9 @@ class MUnidadAdministradoraCentral extends MBasicModel {
9095
9174
  if (e) {
9096
9175
  this.idEmpresa = e.id_empresa;
9097
9176
  this.idEnterprise = e.id_enterprise;
9177
+ this.idUnidadAdministradora = +e.id_uac;
9098
9178
  this.codigoUnidadCentral = e.codigouac;
9099
9179
  this.denominacionUnidadCentral = e.denuac;
9100
- this.idUnidadAdministradora = +e.coduac;
9101
9180
  this.tipoUnidad = e.tipuac == '1';
9102
9181
  this.responsableUnidad = e.resuac;
9103
9182
  if (e.unidad_organizativa) {
@@ -9112,7 +9191,7 @@ class MUnidadAdministradoraCentral extends MBasicModel {
9112
9191
  return {
9113
9192
  id_enterprise: this.idEnterprise,
9114
9193
  id_empresa: this.idEmpresa,
9115
- coduac: this.idUnidadAdministradora.toString(),
9194
+ id_uac: this.idUnidadAdministradora.toString(),
9116
9195
  codigouac: this.codigoUnidadCentral,
9117
9196
  denuac: this.denominacionUnidadCentral,
9118
9197
  resuac: this.responsableUnidad,
@@ -9156,11 +9235,13 @@ class MServiceType extends MBasicModel {
9156
9235
  this.id = -1;
9157
9236
  this.idEmpresa = 0;
9158
9237
  this.idEnterprise = 0;
9238
+ this.periodoFiscal = 0;
9159
9239
  this.denomination = null;
9160
9240
  this.observation = null;
9161
9241
  if (type) {
9162
9242
  this.idEmpresa = parseInt(type.id_empresa);
9163
9243
  this.idEnterprise = +type.id_enterprise;
9244
+ this.periodoFiscal = +type.perfiscal;
9164
9245
  this.id = parseInt(type.id_tiposervicio);
9165
9246
  this.denomination = type.dentipser;
9166
9247
  this.observation = type.obstipser;
@@ -9173,6 +9254,7 @@ class MServiceType extends MBasicModel {
9173
9254
  return {
9174
9255
  id_empresa: this.idEmpresa.toString(),
9175
9256
  id_enterprise: this.idEnterprise.toString(),
9257
+ perfiscal: this.periodoFiscal.toString(),
9176
9258
  dentipser: this.denomination,
9177
9259
  id_tiposervicio: this.id.toString(),
9178
9260
  obstipser: this.observation
@@ -9185,6 +9267,7 @@ class MService extends MBasicModel {
9185
9267
  super();
9186
9268
  this.id = -1;
9187
9269
  this.idEnterprise = 0;
9270
+ this.periodoFiscal = 0;
9188
9271
  this.code = '';
9189
9272
  this.companyId = 0;
9190
9273
  this.serviceTypeId = 0;
@@ -9194,6 +9277,7 @@ class MService extends MBasicModel {
9194
9277
  this.charges = [];
9195
9278
  if (service) {
9196
9279
  this.idEnterprise = +service.id_enterprise;
9280
+ this.periodoFiscal = +service.perfiscal;
9197
9281
  this.id = parseInt(service.id_servicio);
9198
9282
  this.companyId = parseInt(service.id_empresa);
9199
9283
  this.serviceTypeId = parseInt(service.id_tiposervicio);
@@ -9212,6 +9296,7 @@ class MService extends MBasicModel {
9212
9296
  dataAsInterface() {
9213
9297
  return {
9214
9298
  id_enterprise: this.idEnterprise.toString(),
9299
+ perfiscal: this.periodoFiscal.toString(),
9215
9300
  denser: this.denomination,
9216
9301
  id_empresa: this.companyId.toString(),
9217
9302
  id_servicio: this.id.toString(),
@@ -9230,11 +9315,13 @@ class MClause extends MBasicModel {
9230
9315
  this.id = -1;
9231
9316
  this.companyId = 0;
9232
9317
  this.idEnterprise = 0;
9318
+ this.periodoFiscal = 0;
9233
9319
  this.clause = '';
9234
9320
  this.denomination = '';
9235
9321
  if (clause) {
9236
9322
  this.companyId = parseInt(clause.id_empresa);
9237
9323
  this.idEnterprise = +clause.id_enterprise;
9324
+ this.periodoFiscal = +clause.perfiscal;
9238
9325
  this.clause = clause.codcla;
9239
9326
  this.denomination = clause.dencla;
9240
9327
  this.id = parseInt(clause.id_clausula);
@@ -9247,6 +9334,7 @@ class MClause extends MBasicModel {
9247
9334
  return {
9248
9335
  codcla: this.clause,
9249
9336
  dencla: this.denomination,
9337
+ perfiscal: this.periodoFiscal.toString(),
9250
9338
  id_empresa: this.companyId ? this.companyId.toString() : null,
9251
9339
  id_enterprise: this.idEnterprise.toString(),
9252
9340
  id_clausula: this.id ? this.id.toString() : null
@@ -9260,11 +9348,13 @@ class MClauseModality extends MBasicModel {
9260
9348
  this.id = -1;
9261
9349
  this.companyId = 0;
9262
9350
  this.idEnterprise = 0;
9351
+ this.periodoFiscal = 0;
9263
9352
  this.code = '';
9264
9353
  this.denomination = '';
9265
9354
  this.clauses = [];
9266
9355
  if (mod) {
9267
9356
  this.idEnterprise = +mod.id_enterprise;
9357
+ this.periodoFiscal = +mod.perfiscal;
9268
9358
  this.id = parseInt(mod.id_modcla);
9269
9359
  this.companyId = parseInt(mod.id_empresa);
9270
9360
  this.code = mod.codmodcla;
@@ -9278,6 +9368,7 @@ class MClauseModality extends MBasicModel {
9278
9368
  dataAsInterface() {
9279
9369
  return {
9280
9370
  id_enterprise: this.idEnterprise.toString(),
9371
+ perfiscal: this.periodoFiscal.toString(),
9281
9372
  clausulas: this.clauses.map((e) => e.dataAsInterface()),
9282
9373
  codmodcla: this.code,
9283
9374
  denmodcla: this.denomination,