sigesp 0.9.14-20221218 → 0.9.15-20221221

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.
@@ -2945,6 +2945,9 @@
2945
2945
  _this.statusMultiAdministrativeUnit = parseInt(config.estmuluniadm) == 1;
2946
2946
  _this.statusMultiCostCenter = parseInt(config.estmulcencos) == 1;
2947
2947
  }
2948
+ else {
2949
+ _this.isNew = true;
2950
+ }
2948
2951
  return _this;
2949
2952
  }
2950
2953
  MConfigSOC.prototype.dataAsInterface = function () {
@@ -2999,7 +3002,7 @@
2999
3002
  _this.error = false;
3000
3003
  _this.idEmpresa = 0;
3001
3004
  _this.idEnterprise = 0;
3002
- _this.id = null;
3005
+ _this.id = -1;
3003
3006
  _this.codigo = "";
3004
3007
  _this.denominacion = "";
3005
3008
  _this.codigoEstructuraEgreso = "";
@@ -3246,7 +3249,7 @@
3246
3249
  var _this = _super.call(this) || this;
3247
3250
  _this.companyId = 0;
3248
3251
  _this.idEnterprise = 0;
3249
- _this.id = 0;
3252
+ _this.id = -1;
3250
3253
  _this.serviceId = 0;
3251
3254
  _this.denomination = '';
3252
3255
  _this.code = '';
@@ -6867,7 +6870,7 @@
6867
6870
  * @returns
6868
6871
  */
6869
6872
  SigespService.prototype.getMonedas = function (tipo, id) {
6870
- return this.http.get(this.URL + "/dao/cfg/monedas_dao.php?tipo=" + tipo + "&id=" + id, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (resp) { return resp.map(function (element) { return new MMoneda(element); }); }));
6873
+ return this.http.get(this.URL + "/dao/cfg/moneda_dao.php?tipo=" + tipo + "&id=" + id, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (resp) { return resp.map(function (element) { return new MMoneda(element); }); }));
6871
6874
  };
6872
6875
  /**
6873
6876
  * @Description: Obtiene la tasa de cambio
@@ -8427,7 +8430,7 @@
8427
8430
  function MServiceType(type) {
8428
8431
  if (type === void 0) { type = null; }
8429
8432
  var _this = _super.call(this) || this;
8430
- _this.id = 0;
8433
+ _this.id = -1;
8431
8434
  _this.idEmpresa = 0;
8432
8435
  _this.idEnterprise = 0;
8433
8436
  _this.denomination = null;
@@ -8439,6 +8442,9 @@
8439
8442
  _this.denomination = type.dentipser;
8440
8443
  _this.observation = type.obstipser;
8441
8444
  }
8445
+ else {
8446
+ _this.isNew = true;
8447
+ }
8442
8448
  return _this;
8443
8449
  }
8444
8450
  MServiceType.prototype.dataAsInterface = function () {
@@ -8458,7 +8464,7 @@
8458
8464
  function MService(service) {
8459
8465
  if (service === void 0) { service = null; }
8460
8466
  var _this = _super.call(this) || this;
8461
- _this.id = 0;
8467
+ _this.id = -1;
8462
8468
  _this.idEnterprise = 0;
8463
8469
  _this.code = '';
8464
8470
  _this.companyId = 0;
@@ -8480,6 +8486,9 @@
8480
8486
  _this.charges = service.cargos.map(function (e) { return new MServiceCharge(e); });
8481
8487
  }
8482
8488
  }
8489
+ else {
8490
+ _this.isNew = true;
8491
+ }
8483
8492
  return _this;
8484
8493
  }
8485
8494
  MService.prototype.dataAsInterface = function () {
@@ -8503,7 +8512,7 @@
8503
8512
  function MClause(clause) {
8504
8513
  if (clause === void 0) { clause = null; }
8505
8514
  var _this = _super.call(this) || this;
8506
- _this.id = 0;
8515
+ _this.id = -1;
8507
8516
  _this.companyId = 0;
8508
8517
  _this.idEnterprise = 0;
8509
8518
  _this.clause = '';
@@ -8515,6 +8524,9 @@
8515
8524
  _this.denomination = clause.dencla;
8516
8525
  _this.id = parseInt(clause.id_clausula);
8517
8526
  }
8527
+ else {
8528
+ _this.isNew = true;
8529
+ }
8518
8530
  return _this;
8519
8531
  }
8520
8532
  MClause.prototype.dataAsInterface = function () {
@@ -8534,7 +8546,7 @@
8534
8546
  function MClauseModality(mod) {
8535
8547
  if (mod === void 0) { mod = null; }
8536
8548
  var _this = _super.call(this) || this;
8537
- _this.id = 0;
8549
+ _this.id = -1;
8538
8550
  _this.companyId = 0;
8539
8551
  _this.idEnterprise = 0;
8540
8552
  _this.code = '';
@@ -8548,6 +8560,9 @@
8548
8560
  _this.denomination = mod.denmodcla;
8549
8561
  _this.clauses = mod.clausulas.map(function (e) { return new MClause(e); });
8550
8562
  }
8563
+ else {
8564
+ _this.isNew = true;
8565
+ }
8551
8566
  return _this;
8552
8567
  }
8553
8568
  MClauseModality.prototype.dataAsInterface = function () {