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.
Files changed (57) 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/SCG/cuentaInstitucional.model.mjs +3 -1
  13. package/esm2020/lib/core/models/SOC/charge.model.mjs +4 -1
  14. package/esm2020/lib/core/models/SOC/clause.model.mjs +4 -1
  15. package/esm2020/lib/core/models/SOC/clauseModality.model.mjs +4 -1
  16. package/esm2020/lib/core/models/SOC/configuracionSOC.model.mjs +4 -1
  17. package/esm2020/lib/core/models/SOC/service.model.mjs +4 -1
  18. package/esm2020/lib/core/models/SOC/serviceCharge.model.mjs +4 -1
  19. package/esm2020/lib/core/models/SOC/serviceType.model.mjs +4 -1
  20. package/esm2020/lib/core/models/SPG/UnidadAdministradoraCentral.mjs +4 -3
  21. package/esm2020/lib/core/models/SPG/administrativeUnit.model.mjs +7 -6
  22. package/esm2020/lib/core/models/SPG/comprobantePresupuestario.model.mjs +69 -22
  23. package/esm2020/lib/core/models/SPG/cuentaPresupuesto.model.mjs +5 -1
  24. package/esm2020/lib/core/models/SPG/expensiveAccount.model.mjs +5 -1
  25. package/esm2020/lib/core/models/SPG/fuenteFinanciamiento.model.mjs +4 -1
  26. package/esm2020/lib/core/models/SPG/incomeStructureAccount.model.mjs +5 -1
  27. package/esm2020/lib/sigesp.service.mjs +3 -3
  28. package/fesm2015/sigesp.mjs +123 -30
  29. package/fesm2015/sigesp.mjs.map +1 -1
  30. package/fesm2020/sigesp.mjs +123 -30
  31. package/fesm2020/sigesp.mjs.map +1 -1
  32. package/lib/core/interfaces/ComprobantePresupuestario.d.ts +7 -1
  33. package/lib/core/interfaces/Configuracion.d.ts +1 -0
  34. package/lib/core/interfaces/CuentaEgresos.d.ts +2 -0
  35. package/lib/core/interfaces/CuentaIngresoEstructura.d.ts +2 -0
  36. package/lib/core/interfaces/FuenteFinanciamiento.d.ts +1 -0
  37. package/lib/core/interfaces/Presupuesto.d.ts +6 -7
  38. package/lib/core/interfaces/Servicios.d.ts +6 -0
  39. package/lib/core/interfaces/Tributos.d.ts +1 -0
  40. package/lib/core/interfaces/UsuarioPrefijo.d.ts +1 -0
  41. package/lib/core/models/CFG/MPrefijo.model.d.ts +1 -0
  42. package/lib/core/models/CFG/userPrefix.model.d.ts +1 -0
  43. package/lib/core/models/SOC/charge.model.d.ts +1 -0
  44. package/lib/core/models/SOC/clause.model.d.ts +1 -0
  45. package/lib/core/models/SOC/clauseModality.model.d.ts +1 -0
  46. package/lib/core/models/SOC/configuracionSOC.model.d.ts +1 -0
  47. package/lib/core/models/SOC/service.model.d.ts +1 -0
  48. package/lib/core/models/SOC/serviceCharge.model.d.ts +1 -0
  49. package/lib/core/models/SOC/serviceType.model.d.ts +1 -0
  50. package/lib/core/models/SPG/UnidadAdministradoraCentral.d.ts +1 -0
  51. package/lib/core/models/SPG/administrativeUnit.model.d.ts +2 -3
  52. package/lib/core/models/SPG/comprobantePresupuestario.model.d.ts +8 -0
  53. package/lib/core/models/SPG/cuentaPresupuesto.model.d.ts +2 -0
  54. package/lib/core/models/SPG/expensiveAccount.model.d.ts +2 -0
  55. package/lib/core/models/SPG/fuenteFinanciamiento.model.d.ts +1 -0
  56. package/lib/core/models/SPG/incomeStructureAccount.model.d.ts +2 -0
  57. package/package.json +1 -1
@@ -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;
@@ -1285,6 +1295,8 @@ class MCuentaInstitucional extends MBasicModel {
1285
1295
  this.isNew = false;
1286
1296
  this.idDtCuenta = 0;
1287
1297
  if (institucional) {
1298
+ this.idEnterprise = +institucional.id_enterprise;
1299
+ this.periodoFiscal = +institucional.perfiscal;
1288
1300
  this.cuenta = institucional.sc_cuenta;
1289
1301
  this.cueproacu = institucional.cueproacu;
1290
1302
  this.denominacion = institucional.denominacion;
@@ -2023,12 +2035,14 @@ class MFuenteFinanciamiento extends MBasicModel {
2023
2035
  this.explicacionFuenteFinanciamiento = '';
2024
2036
  this.idEmpresa = '0';
2025
2037
  this.idFuenteFinanciamiento = 0;
2038
+ this.periodofiscal = 0;
2026
2039
  if (fuente) {
2027
2040
  this.codigoFuenteFinanciamiento = fuente.codigoftefin;
2028
2041
  this.denominacionFuenteFinanciamiento = fuente.denfuefin;
2029
2042
  this.explicacionFuenteFinanciamiento = fuente.expfuefin;
2030
2043
  this.idEmpresa = fuente.id_empresa;
2031
2044
  this.idFuenteFinanciamiento = +fuente.id_fuefin;
2045
+ this.periodofiscal = +fuente.perfiscal;
2032
2046
  }
2033
2047
  else {
2034
2048
  this.isNew = true;
@@ -2041,6 +2055,7 @@ class MFuenteFinanciamiento extends MBasicModel {
2041
2055
  expfuefin: this.explicacionFuenteFinanciamiento,
2042
2056
  id_empresa: this.idEmpresa,
2043
2057
  id_fuefin: this.idFuenteFinanciamiento.toString(),
2058
+ perfiscal: this.periodofiscal.toString()
2044
2059
  };
2045
2060
  }
2046
2061
  }
@@ -2049,6 +2064,8 @@ class MCuentaEgresos extends MBasicModel {
2049
2064
  constructor(cuenta, level, isNew) {
2050
2065
  super();
2051
2066
  this.idEmpresa = 0;
2067
+ this.idEnterprise = 0;
2068
+ this.periodoFiscal = 0;
2052
2069
  this.nivel = 0;
2053
2070
  this.denominacion = '';
2054
2071
  this.cuenta = '';
@@ -2093,6 +2110,8 @@ class MCuentaEgresos extends MBasicModel {
2093
2110
  this.id = 0;
2094
2111
  if (cuenta) {
2095
2112
  this.idEmpresa = parseInt(cuenta.id_empresa);
2113
+ this.idEnterprise = +cuenta.id_enterprise;
2114
+ this.periodoFiscal = +cuenta.perfiscal;
2096
2115
  this.nivel = parseInt(cuenta.nivel);
2097
2116
  this.denominacion = cuenta.denspgcta;
2098
2117
  this.cuenta = cuenta.spg_cuenta;
@@ -2528,27 +2547,74 @@ class MComprobantePresupuestarioEgresos {
2528
2547
  constructor(comprobante) {
2529
2548
  this.idEnterprise = 0;
2530
2549
  this.idfuenteFinanciamiento = 0;
2531
- this.idEmpresa = parseInt(comprobante.id_empresa);
2532
- this.idEnterprise = +comprobante.id_enterprise;
2533
- this.idComprobante = parseInt(comprobante.id_comprobante);
2534
- this.idEp1 = parseInt(comprobante.id_ep1);
2535
- this.idEp2 = parseInt(comprobante.id_ep2);
2536
- this.idEp3 = parseInt(comprobante.id_ep3);
2537
- this.idEp4 = parseInt(comprobante.id_ep4);
2538
- this.idEp5 = parseInt(comprobante.id_ep5);
2539
- this.SPGCuenta = parseInt(comprobante.spg_cuenta);
2540
- this.operacion = comprobante.operacion;
2541
- this.idfuenteFinanciamiento = +comprobante.id_fuefin;
2542
- this.codigoFuenteFinanciamiento = comprobante.codigoftefin;
2543
- this.procede_DOC = comprobante.procede_doc;
2544
- this.documento = comprobante.documento;
2545
- this.codigoCentroCosto = comprobante.codcencos;
2546
- this.fechaComprobante = comprobante.feccmp;
2547
- this.decripcionComprobante = comprobante.descmp;
2548
- this.montoComprobante = parseFloat(comprobante.moncmp);
2549
- this.orden = comprobante.orden;
2550
- this.numeroCompromiso = comprobante.numconcom;
2551
- this.idDetalle = parseInt(comprobante.id_dt_spgcmp);
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
+ };
2552
2618
  }
2553
2619
  }
2554
2620
  class MComprobantePresupuestarioIngresos {
@@ -2667,6 +2733,8 @@ class MCuentaIngresos extends MBasicModel {
2667
2733
  class MIncomeStructureAccount {
2668
2734
  constructor(account, level) {
2669
2735
  this.idEmpresa = null;
2736
+ this.idEnterprise = null;
2737
+ this.periodoFiscal = null;
2670
2738
  this.idEP1 = null;
2671
2739
  this.idEP2 = null;
2672
2740
  this.idEP3 = null;
@@ -2701,6 +2769,8 @@ class MIncomeStructureAccount {
2701
2769
  this.distribuir = -1;
2702
2770
  this.denominacion = '';
2703
2771
  this.idEmpresa = parseInt(account.id_empresa);
2772
+ this.idEnterprise = +account.id_enterprise;
2773
+ this.periodoFiscal = +account.perfiscal;
2704
2774
  this.idEP1 = account.id_ep1;
2705
2775
  this.idEP2 = account.id_ep2;
2706
2776
  this.idEP3 = account.id_ep3;
@@ -3341,6 +3411,7 @@ class MConfigSOC extends MBasicModel {
3341
3411
  super();
3342
3412
  this.id = 0;
3343
3413
  this.idEnterprise = 0;
3414
+ this.periodoFiscal = 0;
3344
3415
  this.companyId = 0;
3345
3416
  this.serviceOrder = 0;
3346
3417
  this.purchaseOrder = 0;
@@ -3356,6 +3427,7 @@ class MConfigSOC extends MBasicModel {
3356
3427
  if (config) {
3357
3428
  this.id = parseInt(config.id_soc);
3358
3429
  this.idEnterprise = +config.id_enterprise;
3430
+ this.periodoFiscal = +config.perfiscal;
3359
3431
  this.companyId = parseInt(config.id_empresa);
3360
3432
  this.serviceOrder = parseInt(config.numordser);
3361
3433
  this.purchaseOrder = parseInt(config.numordcom);
@@ -3382,6 +3454,7 @@ class MConfigSOC extends MBasicModel {
3382
3454
  id_soc: this.id.toString(),
3383
3455
  id_empresa: this.companyId.toString(),
3384
3456
  id_enterprise: this.idEnterprise.toString(),
3457
+ perfiscal: this.periodoFiscal.toString(),
3385
3458
  soc_bienes: this.goods.join(','),
3386
3459
  soc_servicios: this.services.join(','),
3387
3460
  estapesoc: this.opening ? '1' : '0',
@@ -3423,6 +3496,7 @@ class MCargo extends MBasicModel {
3423
3496
  this.error = false;
3424
3497
  this.idEmpresa = 0;
3425
3498
  this.idEnterprise = 0;
3499
+ this.periodoFiscal = 0;
3426
3500
  this.id = -1;
3427
3501
  this.codigo = "";
3428
3502
  this.denominacion = "";
@@ -3440,6 +3514,7 @@ class MCargo extends MBasicModel {
3440
3514
  if (charge) {
3441
3515
  this.idEmpresa = parseInt(charge.id_empresa);
3442
3516
  this.idEnterprise = +charge.id_enterprise;
3517
+ this.periodoFiscal = +charge.perfiscal;
3443
3518
  this.id = parseInt(charge.id_cargo);
3444
3519
  this.codigo = charge.codcar;
3445
3520
  this.denominacion = charge.dencar;
@@ -3462,6 +3537,7 @@ class MCargo extends MBasicModel {
3462
3537
  interface() {
3463
3538
  return {
3464
3539
  id_enterprise: this.idEnterprise.toString(),
3540
+ perfiscal: this.periodoFiscal.toString(),
3465
3541
  codcar: this.codigo,
3466
3542
  codestpro: this.codigoEstructuraEgreso,
3467
3543
  codestprospi: this.codigoEstructuraIngreso,
@@ -3594,24 +3670,24 @@ class MAdministrativeUnit extends MBasicModel {
3594
3670
  super();
3595
3671
  this.idEmpresa = 0;
3596
3672
  this.idEnterprise = 0;
3673
+ this.periodoFiscal = 0;
3597
3674
  this.codigo = '';
3598
3675
  this.denominacion = '';
3599
- this.unidadCentral = 0;
3676
+ this.idUnidadCentral = 0;
3600
3677
  this.emiteRequisicion = true;
3601
- this.idcentroCosto = 0;
3602
3678
  this.id = 0;
3603
3679
  this.denominacionUnidadCentral = '';
3604
3680
  this.codigoUnidadCentral = '';
3605
- this.denominacionCentroCosto = '';
3606
3681
  this.estructuras = [];
3607
3682
  this.centroCosto = [];
3608
3683
  if (unidad) {
3609
3684
  this.idEmpresa = +unidad.id_empresa;
3610
3685
  this.idEnterprise = +unidad.id_enterprise;
3686
+ this.periodoFiscal = +this.periodoFiscal;
3611
3687
  this.id = +unidad.id_uniadm;
3612
3688
  this.codigo = unidad.coduniadm;
3613
3689
  this.denominacion = unidad.denuniadm;
3614
- this.unidadCentral = +unidad.coduac;
3690
+ this.idUnidadCentral = +unidad.id_uac;
3615
3691
  this.emiteRequisicion = unidad.estemireq == '1' ? true : false;
3616
3692
  this.denominacionUnidadCentral = unidad.denuac;
3617
3693
  this.codigoUnidadCentral = unidad.codigouac;
@@ -3630,8 +3706,9 @@ class MAdministrativeUnit extends MBasicModel {
3630
3706
  return {
3631
3707
  id_empresa: this.idEmpresa.toString(),
3632
3708
  id_enterprise: this.idEnterprise.toString(),
3709
+ perfiscal: this.periodoFiscal.toString(),
3633
3710
  coduniadm: this.codigo,
3634
- coduac: this.unidadCentral.toString(),
3711
+ id_uac: this.idUnidadCentral.toString(),
3635
3712
  denuniadm: this.denominacion,
3636
3713
  estemireq: this.emiteRequisicion ? '1' : '0',
3637
3714
  id_uniadm: this.id.toString(),
@@ -3758,6 +3835,7 @@ class MServiceCharge extends MBasicModel {
3758
3835
  super();
3759
3836
  this.companyId = 0;
3760
3837
  this.idEnterprise = 0;
3838
+ this.periodoFiscal = 0;
3761
3839
  this.id = -1;
3762
3840
  this.serviceId = 0;
3763
3841
  this.denomination = '';
@@ -3765,6 +3843,7 @@ class MServiceCharge extends MBasicModel {
3765
3843
  this.status = false;
3766
3844
  if (ser) {
3767
3845
  this.idEnterprise = +ser.id_enterprise;
3846
+ this.periodoFiscal = +ser.perfiscal;
3768
3847
  this.companyId = parseInt(ser.id_empresa);
3769
3848
  this.id = parseInt(ser.id_cargo);
3770
3849
  this.serviceId = parseInt(ser.id_servicio);
@@ -3779,6 +3858,7 @@ class MServiceCharge extends MBasicModel {
3779
3858
  interface() {
3780
3859
  return {
3781
3860
  id_enterprise: this.idEnterprise.toString(),
3861
+ perfiscal: this.periodoFiscal.toString(),
3782
3862
  id_empresa: this.companyId.toString(),
3783
3863
  id_cargo: this.id.toString(),
3784
3864
  id_servicio: this.serviceId.toString(),
@@ -6495,7 +6575,7 @@ class SigespService {
6495
6575
  * @description Actualiza el moncmp de sigesp_comprobante
6496
6576
  */
6497
6577
  updateComprobanteAmount(amount, idComprobante) {
6498
- return this.http.put(`${this.URL}/dao/sigesp/comprobante_dao.php?monto=true`, {
6578
+ return this.http.put(`${this.URL}/dao/sig/comprobante_dao.php?monto=true`, {
6499
6579
  moncmp: amount,
6500
6580
  id_comprobante: idComprobante
6501
6581
  }, {
@@ -7801,7 +7881,7 @@ class SigespService {
7801
7881
  * @author Carlos Albornoz
7802
7882
  */
7803
7883
  getSigecofBanks() {
7804
- return this.http.get(`${this.URL}/dao/sigesp/banco_sigecof_dao.php`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
7884
+ return this.http.get(`${this.URL}/dao/cfg/banco_sigecof_dao.php`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
7805
7885
  if (res.success) {
7806
7886
  res.data = res.data.map(e => new MSigecofBank(e));
7807
7887
  }
@@ -9043,6 +9123,7 @@ class MUnidadAdministradoraCentral extends MBasicModel {
9043
9123
  super();
9044
9124
  this.idEmpresa = 0;
9045
9125
  this.idEnterprise = 0;
9126
+ this.periodoFiscal = 0;
9046
9127
  this.idUnidadAdministradora = 0;
9047
9128
  this.codigoUnidadCentral = '';
9048
9129
  this.denominacionUnidadCentral = '';
@@ -9052,9 +9133,9 @@ class MUnidadAdministradoraCentral extends MBasicModel {
9052
9133
  if (e) {
9053
9134
  this.idEmpresa = e.id_empresa;
9054
9135
  this.idEnterprise = e.id_enterprise;
9136
+ this.idUnidadAdministradora = +e.id_uac;
9055
9137
  this.codigoUnidadCentral = e.codigouac;
9056
9138
  this.denominacionUnidadCentral = e.denuac;
9057
- this.idUnidadAdministradora = +e.coduac;
9058
9139
  this.tipoUnidad = e.tipuac == '1';
9059
9140
  this.responsableUnidad = e.resuac;
9060
9141
  if (e.unidad_organizativa) {
@@ -9069,7 +9150,7 @@ class MUnidadAdministradoraCentral extends MBasicModel {
9069
9150
  return {
9070
9151
  id_enterprise: this.idEnterprise,
9071
9152
  id_empresa: this.idEmpresa,
9072
- coduac: this.idUnidadAdministradora.toString(),
9153
+ id_uac: this.idUnidadAdministradora.toString(),
9073
9154
  codigouac: this.codigoUnidadCentral,
9074
9155
  denuac: this.denominacionUnidadCentral,
9075
9156
  resuac: this.responsableUnidad,
@@ -9113,11 +9194,13 @@ class MServiceType extends MBasicModel {
9113
9194
  this.id = -1;
9114
9195
  this.idEmpresa = 0;
9115
9196
  this.idEnterprise = 0;
9197
+ this.periodoFiscal = 0;
9116
9198
  this.denomination = null;
9117
9199
  this.observation = null;
9118
9200
  if (type) {
9119
9201
  this.idEmpresa = parseInt(type.id_empresa);
9120
9202
  this.idEnterprise = +type.id_enterprise;
9203
+ this.periodoFiscal = +type.perfiscal;
9121
9204
  this.id = parseInt(type.id_tiposervicio);
9122
9205
  this.denomination = type.dentipser;
9123
9206
  this.observation = type.obstipser;
@@ -9130,6 +9213,7 @@ class MServiceType extends MBasicModel {
9130
9213
  return {
9131
9214
  id_empresa: this.idEmpresa.toString(),
9132
9215
  id_enterprise: this.idEnterprise.toString(),
9216
+ perfiscal: this.periodoFiscal.toString(),
9133
9217
  dentipser: this.denomination,
9134
9218
  id_tiposervicio: this.id.toString(),
9135
9219
  obstipser: this.observation
@@ -9142,6 +9226,7 @@ class MService extends MBasicModel {
9142
9226
  super();
9143
9227
  this.id = -1;
9144
9228
  this.idEnterprise = 0;
9229
+ this.periodoFiscal = 0;
9145
9230
  this.code = '';
9146
9231
  this.companyId = 0;
9147
9232
  this.serviceTypeId = 0;
@@ -9151,6 +9236,7 @@ class MService extends MBasicModel {
9151
9236
  this.charges = [];
9152
9237
  if (service) {
9153
9238
  this.idEnterprise = +service.id_enterprise;
9239
+ this.periodoFiscal = +service.perfiscal;
9154
9240
  this.id = parseInt(service.id_servicio);
9155
9241
  this.companyId = parseInt(service.id_empresa);
9156
9242
  this.serviceTypeId = parseInt(service.id_tiposervicio);
@@ -9169,6 +9255,7 @@ class MService extends MBasicModel {
9169
9255
  dataAsInterface() {
9170
9256
  return {
9171
9257
  id_enterprise: this.idEnterprise.toString(),
9258
+ perfiscal: this.periodoFiscal.toString(),
9172
9259
  denser: this.denomination,
9173
9260
  id_empresa: this.companyId.toString(),
9174
9261
  id_servicio: this.id.toString(),
@@ -9187,11 +9274,13 @@ class MClause extends MBasicModel {
9187
9274
  this.id = -1;
9188
9275
  this.companyId = 0;
9189
9276
  this.idEnterprise = 0;
9277
+ this.periodoFiscal = 0;
9190
9278
  this.clause = '';
9191
9279
  this.denomination = '';
9192
9280
  if (clause) {
9193
9281
  this.companyId = parseInt(clause.id_empresa);
9194
9282
  this.idEnterprise = +clause.id_enterprise;
9283
+ this.periodoFiscal = +clause.perfiscal;
9195
9284
  this.clause = clause.codcla;
9196
9285
  this.denomination = clause.dencla;
9197
9286
  this.id = parseInt(clause.id_clausula);
@@ -9204,6 +9293,7 @@ class MClause extends MBasicModel {
9204
9293
  return {
9205
9294
  codcla: this.clause,
9206
9295
  dencla: this.denomination,
9296
+ perfiscal: this.periodoFiscal.toString(),
9207
9297
  id_empresa: this.companyId ? this.companyId.toString() : null,
9208
9298
  id_enterprise: this.idEnterprise.toString(),
9209
9299
  id_clausula: this.id ? this.id.toString() : null
@@ -9217,11 +9307,13 @@ class MClauseModality extends MBasicModel {
9217
9307
  this.id = -1;
9218
9308
  this.companyId = 0;
9219
9309
  this.idEnterprise = 0;
9310
+ this.periodoFiscal = 0;
9220
9311
  this.code = '';
9221
9312
  this.denomination = '';
9222
9313
  this.clauses = [];
9223
9314
  if (mod) {
9224
9315
  this.idEnterprise = +mod.id_enterprise;
9316
+ this.periodoFiscal = +mod.perfiscal;
9225
9317
  this.id = parseInt(mod.id_modcla);
9226
9318
  this.companyId = parseInt(mod.id_empresa);
9227
9319
  this.code = mod.codmodcla;
@@ -9235,6 +9327,7 @@ class MClauseModality extends MBasicModel {
9235
9327
  dataAsInterface() {
9236
9328
  return {
9237
9329
  id_enterprise: this.idEnterprise.toString(),
9330
+ perfiscal: this.periodoFiscal.toString(),
9238
9331
  clausulas: this.clauses.map((e) => e.dataAsInterface()),
9239
9332
  codmodcla: this.code,
9240
9333
  denmodcla: this.denomination,