sigesp 0.9.87-20231113 → 0.9.89-20231124

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.
@@ -1539,6 +1539,7 @@
1539
1539
  _this.separadorDecimal = '';
1540
1540
  _this.separadorMiles = '';
1541
1541
  _this.decimales = 0;
1542
+ _this.decimalesAlternos = 0;
1542
1543
  if (moneda) {
1543
1544
  _this.codigo = moneda.codmon;
1544
1545
  _this.denominacion = moneda.denmon;
@@ -1547,6 +1548,7 @@
1547
1548
  _this.separadorDecimal = moneda.separadordec;
1548
1549
  _this.separadorMiles = moneda.separadormil;
1549
1550
  _this.decimales = parseInt(moneda.decimal);
1551
+ _this.decimalesAlternos = parseInt(moneda.decimal_alt);
1550
1552
  }
1551
1553
  return _this;
1552
1554
  }
@@ -1559,6 +1561,7 @@
1559
1561
  separadordec: this.separadorDecimal,
1560
1562
  separadormil: this.separadorMiles,
1561
1563
  decimal: this.decimales.toString(),
1564
+ decimal_alt: this.decimalesAlternos.toString(),
1562
1565
  };
1563
1566
  };
1564
1567
  return MMoneda;
@@ -1574,6 +1577,7 @@
1574
1577
  _this.separadorDecimal = '';
1575
1578
  _this.separadorMiles = '';
1576
1579
  _this.decimales = 0;
1580
+ _this.decimalesAlternos = 0;
1577
1581
  if (moneda) {
1578
1582
  _this.codigo = moneda.codmon;
1579
1583
  _this.denominacion = moneda.denmon;
@@ -1582,6 +1586,7 @@
1582
1586
  _this.separadorMiles = moneda.separadormil;
1583
1587
  _this.simbolo = moneda.simmon;
1584
1588
  _this.decimales = parseInt(moneda.decimal);
1589
+ _this.decimalesAlternos = parseInt(moneda.decimal_alt);
1585
1590
  }
1586
1591
  return _this;
1587
1592
  }
@@ -1593,7 +1598,8 @@
1593
1598
  simmon: this.simbolo,
1594
1599
  separadordec: this.separadorDecimal,
1595
1600
  separadormil: this.separadorMiles,
1596
- decimal: this.decimales.toString()
1601
+ decimal: this.decimales.toString(),
1602
+ decimal_alt: this.decimalesAlternos.toString(),
1597
1603
  };
1598
1604
  };
1599
1605
  return MMonedaConfig;
@@ -1919,6 +1925,7 @@
1919
1925
  this.nombresEstructuraPresupuestaria = [];
1920
1926
  this.moneda = null;
1921
1927
  this.codigoONAPRE = null;
1928
+ this.decimalesAlternos = 0;
1922
1929
  this.cuentasPresupuestoCedentes = configuration.ctaspgced;
1923
1930
  this.cunetasPresupuestoRecaudadores = configuration.ctaspgrec;
1924
1931
  this.estatusAnticipoPresupuestario = configuration.estantspg;
@@ -1964,7 +1971,8 @@
1964
1971
  separadordec: configuration.moneda_actual.separadordec,
1965
1972
  separadormil: configuration.moneda_actual.separadormil,
1966
1973
  simmon: configuration.moneda_actual.simmon,
1967
- decimal: configuration.moneda_actual.decimal
1974
+ decimal: configuration.moneda_actual.decimal,
1975
+ decimal_alt: this.decimalesAlternos.toString(),
1968
1976
  });
1969
1977
  }
1970
1978
  return MConfigurationSPG;
@@ -2226,16 +2234,33 @@
2226
2234
  return MUsuarioCentroCosto;
2227
2235
  }(MBasicModel));
2228
2236
 
2229
- var MFuenteFinanciamiento = /** @class */ (function () {
2237
+ var MFuenteFinanciamiento = /** @class */ (function (_super) {
2238
+ __extends(MFuenteFinanciamiento, _super);
2230
2239
  function MFuenteFinanciamiento(fuente) {
2231
- this.codigoFuenteFinanciamiento = fuente.codfuefin;
2232
- this.denominacionFuenteFinanciamiento = fuente.denfuefin;
2233
- this.explicacionFuenteFinanciamiento = fuente.expfuefin;
2234
- this.idEmpresa = fuente.id_empresa;
2235
- this.codigo = fuente.codigoftefin;
2240
+ var _this = _super.call(this) || this;
2241
+ if (fuente) {
2242
+ _this.codigoFuenteFinanciamiento = fuente.codfuefin;
2243
+ _this.denominacionFuenteFinanciamiento = fuente.denfuefin;
2244
+ _this.explicacionFuenteFinanciamiento = fuente.expfuefin;
2245
+ _this.idEmpresa = fuente.id_empresa;
2246
+ _this.codigo = fuente.codigoftefin;
2247
+ }
2248
+ else {
2249
+ _this.isNew = true;
2250
+ }
2251
+ return _this;
2236
2252
  }
2253
+ MFuenteFinanciamiento.prototype.dataInterface = function () {
2254
+ return {
2255
+ codfuefin: this.codigoFuenteFinanciamiento,
2256
+ denfuefin: this.denominacionFuenteFinanciamiento,
2257
+ expfuefin: this.explicacionFuenteFinanciamiento,
2258
+ id_empresa: this.idEmpresa,
2259
+ codigoftefin: this.codigo,
2260
+ };
2261
+ };
2237
2262
  return MFuenteFinanciamiento;
2238
- }());
2263
+ }(MBasicModel));
2239
2264
 
2240
2265
  var MCuentaEgresos = /** @class */ (function () {
2241
2266
  function MCuentaEgresos(cuenta) {
@@ -3800,6 +3825,7 @@
3800
3825
  _this.centroCosto = '';
3801
3826
  _this.id = 0;
3802
3827
  _this.denominacionUnidadCentral = '';
3828
+ _this.estructuras = [];
3803
3829
  if (unidad) {
3804
3830
  _this.idEmpresa = unidad.id_empresa;
3805
3831
  _this.idEnterprise = unidad.id_enterprise;
@@ -3810,6 +3836,7 @@
3810
3836
  _this.centroCosto = unidad.codcencos;
3811
3837
  _this.id = unidad.id_uniadm;
3812
3838
  _this.denominacionUnidadCentral = unidad.denuac;
3839
+ _this.estructuras = unidad.estructuras.map(function (e) { return new MEstructuras(e); });
3813
3840
  }
3814
3841
  else {
3815
3842
  _this.isNew = true;
@@ -3826,9 +3853,74 @@
3826
3853
  estemireq: this.emiteRequisicion,
3827
3854
  codcencos: this.centroCosto,
3828
3855
  id_uniadm: this.id,
3856
+ estructuras: this.estructuras.map(function (e) { return e.dataInterface(); }),
3829
3857
  };
3830
3858
  };
3831
3859
  return MAdministrativeUnit;
3860
+ }(MBasicModel));
3861
+ var MEstructuras = /** @class */ (function (_super) {
3862
+ __extends(MEstructuras, _super);
3863
+ function MEstructuras(dt) {
3864
+ var _this = _super.call(this) || this;
3865
+ _this.fuentes = [];
3866
+ if (dt) {
3867
+ _this.cuentaContable = dt.cuentacontable;
3868
+ _this.cuentaPresupuestaria = dt.cuentapresupuestaria;
3869
+ _this.denominacion = dt.denominacion;
3870
+ _this.estructura = dt.estructura;
3871
+ _this.fuentes = dt.fuentes.map(function (e) { return new MFuenteFinanciamiento(e); });
3872
+ _this.idEp1 = parseInt(dt.id_ep1);
3873
+ _this.idEp2 = parseInt(dt.id_ep2);
3874
+ _this.idEp3 = parseInt(dt.id_ep3);
3875
+ _this.idEp4 = parseInt(dt.id_ep4);
3876
+ _this.idEp5 = parseInt(dt.id_ep5);
3877
+ _this.monto = parseFloat(dt.monto);
3878
+ _this.estatus = dt.status;
3879
+ _this.codigoEep1 = dt.codeep1;
3880
+ _this.codigoEep2 = dt.codeep2;
3881
+ _this.codigoEep3 = dt.codeep3;
3882
+ _this.codigoEep4 = dt.codeep4;
3883
+ _this.codigoEep5 = dt.codeep5;
3884
+ _this.denominacionEstructura = dt.denestructura;
3885
+ _this.denominacion5 = dt.status;
3886
+ _this.denominacion3 = dt.status;
3887
+ _this.idDtUni = parseInt(dt.id_dt_uniadm);
3888
+ _this.idUnidadAdministrativa = parseInt(dt.id_uniadm);
3889
+ }
3890
+ return _this;
3891
+ }
3892
+ MEstructuras.prototype.dataInterface = function () {
3893
+ return {
3894
+ id_ep1: this.idEp1.toString(),
3895
+ id_ep2: this.idEp2.toString(),
3896
+ id_ep3: this.idEp3.toString(),
3897
+ id_ep4: this.idEp4.toString(),
3898
+ id_ep5: this.idEp5.toString(),
3899
+ id_dt_uniadm: this.idDtUni.toString(),
3900
+ id_uniadm: this.idUnidadAdministrativa.toString(),
3901
+ };
3902
+ };
3903
+ return MEstructuras;
3904
+ }(MBasicModel));
3905
+ var MCuentasSpSC = /** @class */ (function (_super) {
3906
+ __extends(MCuentasSpSC, _super);
3907
+ function MCuentasSpSC(dt) {
3908
+ var _this = _super.call(this) || this;
3909
+ if (dt) {
3910
+ _this.codioCentroCosto = dt.codcencos;
3911
+ _this.codigoFFMostrar = dt.codigoftefin;
3912
+ _this.codigoUnidadAdministradora = dt.coduniadm;
3913
+ _this.denominacionCuenta = dt.denominacion;
3914
+ _this.estructura = dt.estructura;
3915
+ _this.cuentaContable = dt.cuentacontable;
3916
+ _this.cuentaPresupuestaria = dt.cuentapresupuestaria;
3917
+ _this.estatusClasificacion = dt.estcla;
3918
+ _this.denominacionEstatusClasificacion = dt.denestcla;
3919
+ _this.tipo = dt.tipo;
3920
+ }
3921
+ return _this;
3922
+ }
3923
+ return MCuentasSpSC;
3832
3924
  }(MBasicModel));
3833
3925
 
3834
3926
  var MComponent = /** @class */ (function (_super) {
@@ -6265,8 +6357,8 @@
6265
6357
  _this.codigoAlmacen = e.codalm;
6266
6358
  _this.nombreAlmacen = e.nomfisalm;
6267
6359
  _this.relacion = e.relacion;
6268
- _this.existencia = parseInt(e.existencia);
6269
- _this.reservado = parseInt(e.reservado);
6360
+ _this.existencia = +e.existencia;
6361
+ _this.reservado = +e.reservado;
6270
6362
  }
6271
6363
  else {
6272
6364
  _this.isNew = true;
@@ -6355,46 +6447,66 @@
6355
6447
  return MExchangeRate;
6356
6448
  }(MBasicModel));
6357
6449
 
6358
- var MCargosAdicionales = /** @class */ (function () {
6450
+ var MCargosAdicionales = /** @class */ (function (_super) {
6451
+ __extends(MCargosAdicionales, _super);
6359
6452
  //public estadoTipoPresupuesto: string = "E"
6360
6453
  function MCargosAdicionales(charge) {
6361
- this.isNew = false;
6362
- this.error = false;
6363
- this.idEmpresa = 0;
6364
- this.id = 0;
6365
- this.codigo = "";
6366
- this.denominacion = "";
6367
- this.codigoEstruraPresupuestaria = '';
6368
- this.porcentaje = 0;
6369
- this.formula = "";
6370
- this.tipo = 0;
6371
- this.cuenta = "";
6372
- this.idEp1 = 0;
6373
- this.idEp2 = 0;
6374
- this.idEp3 = 0;
6375
- this.idEp4 = 0;
6376
- this.idEp5 = 0;
6377
- this.denominacionCuenta = '';
6454
+ var _this = _super.call(this) || this;
6455
+ _this.isNew = false;
6456
+ _this.error = false;
6457
+ _this.idEmpresa = 0;
6458
+ _this.id = 0;
6459
+ _this.codigo = "";
6460
+ _this.denominacion = "";
6461
+ _this.codigoEstruraPresupuestaria = '';
6462
+ _this.porcentaje = 0;
6463
+ _this.formula = "";
6464
+ _this.tipo = 0;
6465
+ _this.cuenta = "";
6466
+ _this.idEp1 = 0;
6467
+ _this.idEp2 = 0;
6468
+ _this.idEp3 = 0;
6469
+ _this.idEp4 = 0;
6470
+ _this.idEp5 = 0;
6471
+ _this.denominacionCuenta = '';
6472
+ _this.idUnidadOrganizativa = 0;
6473
+ _this.codigoUnidadOrganizativa = '';
6474
+ _this.denominacionUnidadOrganizativa = '';
6475
+ _this.codigoCentroCosto = '---';
6476
+ _this.denominacionCentroCosto = '';
6477
+ _this.codigoFuenteFinanciamiento = 0;
6478
+ _this.codigoFuenteFinanciamientoMostrar = '';
6479
+ _this.denominacionFuenteFinanciamiento = '';
6378
6480
  if (charge) {
6379
- this.idEmpresa = parseInt(charge.id_empresa);
6380
- this.id = parseInt(charge.id_cargoadi);
6381
- this.codigo = charge.codcar;
6382
- this.denominacion = charge.dencar;
6383
- this.codigoEstruraPresupuestaria = charge.codestpre;
6384
- this.porcentaje = parseFloat(charge.porcar);
6385
- this.formula = charge.formula;
6386
- this.tipo = parseInt(charge.tipo);
6387
- this.cuenta = charge.cuenta;
6388
- this.idEp1 = +charge.id_ep1;
6389
- this.idEp2 = +charge.id_ep2;
6390
- this.idEp3 = +charge.id_ep3;
6391
- this.idEp4 = +charge.id_ep4;
6392
- this.idEp5 = +charge.id_ep5;
6393
- this.denominacionCuenta = charge.dencuenta;
6481
+ _this.idEmpresa = parseInt(charge.id_empresa);
6482
+ _this.id = parseInt(charge.id_cargoadi);
6483
+ _this.codigo = charge.codcar;
6484
+ _this.denominacion = charge.dencar;
6485
+ _this.codigoEstruraPresupuestaria = charge.codestpre;
6486
+ _this.porcentaje = parseFloat(charge.porcar);
6487
+ _this.formula = charge.formula;
6488
+ _this.tipo = parseInt(charge.tipo);
6489
+ _this.cuenta = charge.cuenta;
6490
+ _this.idEp1 = +charge.id_ep1;
6491
+ _this.idEp2 = +charge.id_ep2;
6492
+ _this.idEp3 = +charge.id_ep3;
6493
+ _this.idEp4 = +charge.id_ep4;
6494
+ _this.idEp5 = +charge.id_ep5;
6495
+ _this.denominacionCuenta = charge.dencuenta;
6496
+ _this.denominacionCuenta = charge.dencuenta;
6497
+ _this.idUnidadOrganizativa = +charge.id_uniadm;
6498
+ _this.codigoUnidadOrganizativa = charge.coduniadm;
6499
+ _this.denominacionUnidadOrganizativa = charge.denuniadm;
6500
+ _this.codigoCentroCosto = charge.codcencos;
6501
+ _this.denominacionCentroCosto = charge.dencencos;
6502
+ _this.codigoFuenteFinanciamiento = +charge.codfuefin;
6503
+ _this.codigoFuenteFinanciamientoMostrar = charge.codigoftefin;
6504
+ _this.denominacionFuenteFinanciamiento = charge.denfuefin;
6394
6505
  }
6395
6506
  else {
6396
- this.isNew = true;
6507
+ _this.isNew = true;
6397
6508
  }
6509
+ return _this;
6398
6510
  }
6399
6511
  MCargosAdicionales.prototype.dataInterface = function () {
6400
6512
  return {
@@ -6412,11 +6524,14 @@
6412
6524
  id_ep3: this.idEp3.toString(),
6413
6525
  id_ep4: this.idEp4.toString(),
6414
6526
  id_ep5: this.idEp5.toString(),
6415
- dencuenta: this.denominacionCuenta
6527
+ dencuenta: this.denominacionCuenta,
6528
+ codfuefin: this.codigoFuenteFinanciamiento.toString(),
6529
+ id_uniadm: this.idUnidadOrganizativa.toString(),
6530
+ codcencos: this.codigoCentroCosto,
6416
6531
  };
6417
6532
  };
6418
6533
  return MCargosAdicionales;
6419
- }());
6534
+ }(MBasicModel));
6420
6535
 
6421
6536
  var MClient = /** @class */ (function () {
6422
6537
  function MClient(e) {
@@ -15033,6 +15148,7 @@
15033
15148
  exports.MCuentaIngresos = MCuentaIngresos;
15034
15149
  exports.MCuentaInstitucional = MCuentaInstitucional;
15035
15150
  exports.MCuentaPresupuesto = MCuentaPresupuesto;
15151
+ exports.MCuentasSpSC = MCuentasSpSC;
15036
15152
  exports.MDedicacion = MDedicacion;
15037
15153
  exports.MDeduction = MDeduction;
15038
15154
  exports.MDeductionType = MDeductionType;
@@ -15055,6 +15171,7 @@
15055
15171
  exports.MEstructuraPresupuestariaOne = MEstructuraPresupuestariaOne;
15056
15172
  exports.MEstructuraPresupuestariaThree = MEstructuraPresupuestariaThree;
15057
15173
  exports.MEstructuraPresupuestariaTwo = MEstructuraPresupuestariaTwo;
15174
+ exports.MEstructuras = MEstructuras;
15058
15175
  exports.MEstudiosConcursantes = MEstudiosConcursantes;
15059
15176
  exports.MEstudiosRealizados = MEstudiosRealizados;
15060
15177
  exports.MExchangeRate = MExchangeRate;