sigesp 0.9.90-20231129 → 0.9.92-20240123

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.
@@ -1435,7 +1435,116 @@
1435
1435
  this.tipo = cuentaPresupuesto.tipcta;
1436
1436
  }
1437
1437
  return MCuentaPresupuesto;
1438
- }());
1438
+ }());
1439
+ var MCuentaEgresos$1 = /** @class */ (function (_super) {
1440
+ __extends(MCuentaEgresos, _super);
1441
+ function MCuentaEgresos(cuenta, level, isNew) {
1442
+ var _this = _super.call(this) || this;
1443
+ _this.idEmpresa = 0;
1444
+ _this.nivel = 0;
1445
+ _this.denominacion = '';
1446
+ _this.cuenta = '';
1447
+ _this.cuentaContable = '------------';
1448
+ _this.cuentaONCOP = '------------';
1449
+ _this.clasificador = '------------';
1450
+ _this.referencia = '';
1451
+ _this.aumento = 0;
1452
+ _this.asignado = 0;
1453
+ _this.causado = 0;
1454
+ _this.disminucion = 0;
1455
+ _this.distribuir = 0;
1456
+ _this.precomprometido = 0;
1457
+ _this.pagado = 0;
1458
+ _this.enero = 0;
1459
+ _this.febrero = 0;
1460
+ _this.marzo = 0;
1461
+ _this.abril = 0;
1462
+ _this.mayo = 0;
1463
+ _this.junio = 0;
1464
+ _this.julio = 0;
1465
+ _this.agosto = 0;
1466
+ _this.septiembre = 0;
1467
+ _this.octubre = 0;
1468
+ _this.noviembre = 0;
1469
+ _this.diciembre = 0;
1470
+ _this.idEP1 = 0;
1471
+ _this.idEP2 = 0;
1472
+ _this.idEP3 = 0;
1473
+ _this.idEP4 = 0;
1474
+ _this.idEP5 = 0;
1475
+ _this.codestpro1 = '';
1476
+ _this.codestpro2 = '';
1477
+ _this.codestpro3 = '';
1478
+ _this.codestpro4 = '';
1479
+ _this.codestpro5 = '';
1480
+ _this.estructura = '';
1481
+ _this.selected = false;
1482
+ _this.isNew = false;
1483
+ _this.error = false;
1484
+ _this.status = '';
1485
+ _this.id = 0;
1486
+ _this.codfuefin = 0;
1487
+ if (cuenta) {
1488
+ _this.idEmpresa = parseInt(cuenta.id_empresa);
1489
+ _this.nivel = parseInt(cuenta.nivel);
1490
+ _this.denominacion = cuenta.denspgcta;
1491
+ _this.cuenta = cuenta.spg_cuenta;
1492
+ _this.cuentaContable = cuenta.sc_cuenta;
1493
+ _this.status = cuenta.status;
1494
+ _this.referencia = cuenta.referencia;
1495
+ _this.aumento = parseInt(cuenta.aumento);
1496
+ _this.asignado = parseInt(cuenta.asignado);
1497
+ _this.causado = parseInt(cuenta.causado);
1498
+ _this.pagado = parseInt(cuenta.pagado);
1499
+ _this.distribuir = parseInt(cuenta.distribuir);
1500
+ _this.disminucion = parseInt(cuenta.disminiucion);
1501
+ _this.precomprometido = parseInt(cuenta.precomprometido);
1502
+ _this.enero = parseInt(cuenta.enero);
1503
+ _this.febrero = parseInt(cuenta.febrero);
1504
+ _this.marzo = parseInt(cuenta.marzo);
1505
+ _this.abril = parseInt(cuenta.abril);
1506
+ _this.mayo = parseInt(cuenta.mayo);
1507
+ _this.junio = parseInt(cuenta.junio);
1508
+ _this.julio = parseInt(cuenta.julio);
1509
+ _this.agosto = parseInt(cuenta.agosto);
1510
+ _this.septiembre = parseInt(cuenta.septiembre);
1511
+ _this.octubre = parseInt(cuenta.octubre);
1512
+ _this.noviembre = parseInt(cuenta.noviembre);
1513
+ _this.diciembre = parseInt(cuenta.diciembre);
1514
+ _this.clasificador = cuenta.codcuecla;
1515
+ _this.cuentaONCOP = cuenta.cueoncop;
1516
+ _this.idEP1 = parseInt(cuenta.id_ep1);
1517
+ _this.idEP2 = parseInt(cuenta.id_ep2);
1518
+ _this.idEP3 = parseInt(cuenta.id_ep3);
1519
+ _this.idEP4 = parseInt(cuenta.id_ep4);
1520
+ _this.idEP5 = parseInt(cuenta.id_ep5);
1521
+ _this.codfuefin = parseInt(cuenta.codfuefin);
1522
+ _this.id = cuenta.id_del_spgcta ? parseInt(cuenta.id_del_spgcta) : 0;
1523
+ _this.codestpro1 = cuenta.estructura ? cuenta.estructura.codestpro1 : '';
1524
+ _this.codestpro2 = cuenta.estructura ? cuenta.estructura.codestpro2 : '';
1525
+ _this.codestpro3 = cuenta.estructura ? cuenta.estructura.codestpro3 : '';
1526
+ _this.codestpro4 = cuenta.estructura ? cuenta.estructura.codestpro4 : '';
1527
+ _this.codestpro5 = cuenta.estructura ? cuenta.estructura.codestpro5 : '';
1528
+ if (cuenta.estructura && level) {
1529
+ if (level == 3) {
1530
+ _this.estructura = _this.codestpro1 + "-" + _this.codestpro2 + "-" + _this.codestpro3;
1531
+ }
1532
+ else if (level == 4) {
1533
+ _this.estructura = _this.codestpro1 + "-" + _this.codestpro2 + "-" + _this.codestpro3 + "-" + _this.codestpro4;
1534
+ }
1535
+ else {
1536
+ _this.estructura = _this.codestpro1 + "-" + _this.codestpro2 + "-" + _this.codestpro3 + "-" + _this.codestpro4 + "-" + _this.codestpro5;
1537
+ }
1538
+ }
1539
+ _this.isNew = false;
1540
+ }
1541
+ else {
1542
+ _this.isNew = true;
1543
+ }
1544
+ return _this;
1545
+ }
1546
+ return MCuentaEgresos;
1547
+ }(MBasicModel));
1439
1548
 
1440
1549
  var MCuentaInstitucional = /** @class */ (function (_super) {
1441
1550
  __extends(MCuentaInstitucional, _super);
@@ -2262,46 +2371,115 @@
2262
2371
  return MFuenteFinanciamiento;
2263
2372
  }(MBasicModel));
2264
2373
 
2265
- var MCuentaEgresos = /** @class */ (function () {
2266
- function MCuentaEgresos(cuenta) {
2267
- this.estructura = "";
2268
- this.idEmpresa = parseInt(cuenta.id_empresa);
2269
- this.nivel = parseInt(cuenta.nivel);
2270
- this.denominacion = cuenta.denspgcta;
2271
- this.cuenta = parseInt(cuenta.spg_cuenta);
2272
- this.cuentaContable = parseInt(cuenta.sc_cuenta);
2273
- this.referencia = parseInt(cuenta.referencia);
2274
- this.aumento = parseFloat(cuenta.aumento);
2275
- this.asignado = parseFloat(cuenta.asignado);
2276
- this.causado = parseFloat(cuenta.causado);
2277
- this.pagado = parseFloat(cuenta.pagado);
2278
- this.distribuir = parseFloat(cuenta.distribuir);
2279
- this.disminucion = parseFloat(cuenta.disminiucion);
2280
- this.precomprometido = parseFloat(cuenta.precomprometido);
2281
- this.enero = parseFloat(cuenta.enero);
2282
- this.febrero = parseFloat(cuenta.febrero);
2283
- this.marzo = parseFloat(cuenta.marzo);
2284
- this.abril = parseFloat(cuenta.abril);
2285
- this.mayo = parseFloat(cuenta.mayo);
2286
- this.junio = parseFloat(cuenta.junio);
2287
- this.julio = parseFloat(cuenta.julio);
2288
- this.agosto = parseFloat(cuenta.agosto);
2289
- this.septiembre = parseFloat(cuenta.septiembre);
2290
- this.octubre = parseFloat(cuenta.octubre);
2291
- this.noviembre = parseFloat(cuenta.noviembre);
2292
- this.diciembre = parseFloat(cuenta.diciembre);
2293
- this.clasificador = parseInt(cuenta.codcuecla);
2294
- this.cuentaONCOP = parseInt(cuenta.cueoncop);
2295
- this.idEP1 = parseInt(cuenta.id_ep1);
2296
- this.idEP2 = parseInt(cuenta.id_ep2);
2297
- this.idEP3 = parseInt(cuenta.id_ep3);
2298
- this.idEP4 = parseInt(cuenta.id_ep4);
2299
- this.idEP5 = parseInt(cuenta.id_ep5);
2300
- this.status = cuenta.status;
2301
- this.estructura = cuenta.estructura ? cuenta.estructura : "";
2374
+ var MCuentaEgresos = /** @class */ (function (_super) {
2375
+ __extends(MCuentaEgresos, _super);
2376
+ function MCuentaEgresos(cuenta, level, isNew) {
2377
+ var _this = _super.call(this) || this;
2378
+ _this.idEmpresa = 0;
2379
+ _this.nivel = 0;
2380
+ _this.denominacion = '';
2381
+ _this.cuenta = '';
2382
+ _this.cuentaContable = '------------';
2383
+ _this.cuentaONCOP = '------------';
2384
+ _this.clasificador = '------------';
2385
+ _this.referencia = '';
2386
+ _this.aumento = 0;
2387
+ _this.asignado = 0;
2388
+ _this.causado = 0;
2389
+ _this.disminucion = 0;
2390
+ _this.distribuir = 0;
2391
+ _this.precomprometido = 0;
2392
+ _this.pagado = 0;
2393
+ _this.enero = 0;
2394
+ _this.febrero = 0;
2395
+ _this.marzo = 0;
2396
+ _this.abril = 0;
2397
+ _this.mayo = 0;
2398
+ _this.junio = 0;
2399
+ _this.julio = 0;
2400
+ _this.agosto = 0;
2401
+ _this.septiembre = 0;
2402
+ _this.octubre = 0;
2403
+ _this.noviembre = 0;
2404
+ _this.diciembre = 0;
2405
+ _this.idEP1 = 0;
2406
+ _this.idEP2 = 0;
2407
+ _this.idEP3 = 0;
2408
+ _this.idEP4 = 0;
2409
+ _this.idEP5 = 0;
2410
+ _this.codestpro1 = '';
2411
+ _this.codestpro2 = '';
2412
+ _this.codestpro3 = '';
2413
+ _this.codestpro4 = '';
2414
+ _this.codestpro5 = '';
2415
+ _this.estructura = '';
2416
+ _this.selected = false;
2417
+ _this.isNew = false;
2418
+ _this.error = false;
2419
+ _this.status = '';
2420
+ _this.id = 0;
2421
+ _this.codfuefin = 0;
2422
+ if (cuenta) {
2423
+ _this.idEmpresa = parseInt(cuenta.id_empresa);
2424
+ _this.nivel = parseInt(cuenta.nivel);
2425
+ _this.denominacion = cuenta.denspgcta;
2426
+ _this.cuenta = cuenta.spg_cuenta;
2427
+ _this.cuentaContable = cuenta.sc_cuenta;
2428
+ _this.status = cuenta.status;
2429
+ _this.referencia = cuenta.referencia;
2430
+ _this.aumento = parseInt(cuenta.aumento);
2431
+ _this.asignado = parseInt(cuenta.asignado);
2432
+ _this.causado = parseInt(cuenta.causado);
2433
+ _this.pagado = parseInt(cuenta.pagado);
2434
+ _this.distribuir = parseInt(cuenta.distribuir);
2435
+ _this.disminucion = parseInt(cuenta.disminiucion);
2436
+ _this.precomprometido = parseInt(cuenta.precomprometido);
2437
+ _this.enero = parseInt(cuenta.enero);
2438
+ _this.febrero = parseInt(cuenta.febrero);
2439
+ _this.marzo = parseInt(cuenta.marzo);
2440
+ _this.abril = parseInt(cuenta.abril);
2441
+ _this.mayo = parseInt(cuenta.mayo);
2442
+ _this.junio = parseInt(cuenta.junio);
2443
+ _this.julio = parseInt(cuenta.julio);
2444
+ _this.agosto = parseInt(cuenta.agosto);
2445
+ _this.septiembre = parseInt(cuenta.septiembre);
2446
+ _this.octubre = parseInt(cuenta.octubre);
2447
+ _this.noviembre = parseInt(cuenta.noviembre);
2448
+ _this.diciembre = parseInt(cuenta.diciembre);
2449
+ _this.clasificador = cuenta.codcuecla;
2450
+ _this.cuentaONCOP = cuenta.cueoncop;
2451
+ _this.idEP1 = parseInt(cuenta.id_ep1);
2452
+ _this.idEP2 = parseInt(cuenta.id_ep2);
2453
+ _this.idEP3 = parseInt(cuenta.id_ep3);
2454
+ _this.idEP4 = parseInt(cuenta.id_ep4);
2455
+ _this.idEP5 = parseInt(cuenta.id_ep5);
2456
+ _this.codfuefin = parseInt(cuenta.codfuefin);
2457
+ _this.id = cuenta.id_del_spgcta ? parseInt(cuenta.id_del_spgcta) : 0;
2458
+ _this.codestpro1 = cuenta.estructura ? cuenta.estructura.codestpro1 : '';
2459
+ _this.codestpro2 = cuenta.estructura ? cuenta.estructura.codestpro2 : '';
2460
+ _this.codestpro3 = cuenta.estructura ? cuenta.estructura.codestpro3 : '';
2461
+ _this.codestpro4 = cuenta.estructura ? cuenta.estructura.codestpro4 : '';
2462
+ _this.codestpro5 = cuenta.estructura ? cuenta.estructura.codestpro5 : '';
2463
+ if (cuenta.estructura && level) {
2464
+ if (level == 3) {
2465
+ _this.estructura = _this.codestpro1 + "-" + _this.codestpro2 + "-" + _this.codestpro3;
2466
+ }
2467
+ else if (level == 4) {
2468
+ _this.estructura = _this.codestpro1 + "-" + _this.codestpro2 + "-" + _this.codestpro3 + "-" + _this.codestpro4;
2469
+ }
2470
+ else {
2471
+ _this.estructura = _this.codestpro1 + "-" + _this.codestpro2 + "-" + _this.codestpro3 + "-" + _this.codestpro4 + "-" + _this.codestpro5;
2472
+ }
2473
+ }
2474
+ _this.isNew = false;
2475
+ }
2476
+ else {
2477
+ _this.isNew = true;
2478
+ }
2479
+ return _this;
2302
2480
  }
2303
2481
  return MCuentaEgresos;
2304
- }());
2482
+ }(MBasicModel));
2305
2483
 
2306
2484
  var CatalogoEstructurasComponent = /** @class */ (function () {
2307
2485
  function CatalogoEstructurasComponent(dialogRef, dialogData) {
@@ -7614,7 +7792,7 @@
7614
7792
  title: 'Catálogo de plan de cuenta institucional',
7615
7793
  dataSource: accounts
7616
7794
  },
7617
- width: '450px',
7795
+ width: '800px',
7618
7796
  maxHeight: '90vh'
7619
7797
  });
7620
7798
  return [2 /*return*/, dialogRef.afterClosed().toPromise()];
@@ -7664,7 +7842,7 @@
7664
7842
  * @author Miguel Ramírez
7665
7843
  */
7666
7844
  SigespService.prototype.getCuentasPresupuesto = function () {
7667
- return this.http.get(this.URL + "/dao/scg/plan_unico_cuentas_dao.php", { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) { return res.data.map(function (element) { return new MCuentaPresupuesto(element); }); }));
7845
+ return this.http.get(this.URL + "/dao/scg/plan_unico_cuentas_dao.php", { headers: this.getHttpHeaders() }).pipe(operators.map(function (res) { return res.data.map(function (element) { return new MCuentaPresupuesto(element); }); }));
7668
7846
  };
7669
7847
  /**
7670
7848
  * @description Abre el cátalogo de cuentas de la tabla "scg_plan_unico_re"
@@ -7934,7 +8112,7 @@
7934
8112
  */
7935
8113
  SigespService.prototype.getEnterprise = function (tipo, id) {
7936
8114
  if (tipo === void 0) { tipo = null; }
7937
- return this.http.get(this.URL + "/dao/cfg/enterprise_dao.php?", { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
8115
+ return this.http.get(this.URL + "/dao/cfg/enterprise_dao.php?tipo=" + tipo, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
7938
8116
  if (res.success) {
7939
8117
  res.data = res.data.map(function (e) { return new MEnterprise(e); });
7940
8118
  }
@@ -8934,6 +9112,9 @@
8934
9112
  CurrencyService.prototype.checkCurrency = function (e, number, currency) {
8935
9113
  return this.validateCurrency(e, number, currency.separadorDecimal, currency.decimales);
8936
9114
  };
9115
+ CurrencyService.prototype.checkCurrencyAlt = function (e, number, currency) {
9116
+ return this.validateCurrency(e, number, currency.separadorDecimal, currency.decimalesAlternos);
9117
+ };
8937
9118
  return CurrencyService;
8938
9119
  }());
8939
9120
  CurrencyService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CurrencyService_Factory() { return new CurrencyService(); }, token: CurrencyService, providedIn: "root" });