sigesp 0.9.37-20230211 → 0.9.39-20230321

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.
@@ -6957,10 +6957,11 @@
6957
6957
  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.data.map(function (element) { return new MMoneda(element); }); }));
6958
6958
  };
6959
6959
  /**
6960
- * @Description: Obtiene la tasa de cambio
6960
+ * @Description: Obtiene la tasa de cambio asociadas a uno o varias monedas
6961
6961
  * @param tipo string
6962
6962
  * @param id codigo moneda
6963
6963
  * @returns array/null
6964
+ * @tipo:all->todas, (moneda->una moneda id->id de moneda)
6964
6965
  */
6965
6966
  SigespService.prototype.getCurrencyExchangeRate = function (tipo, id) {
6966
6967
  if (tipo === void 0) { tipo = null; }
@@ -7285,6 +7286,9 @@
7285
7286
  * @return Observable<IResponse>
7286
7287
  * @author Carlos Albornoz
7287
7288
  * @actualizado: 4-12-20222
7289
+ * @params id: id de la moneda,
7290
+ * @params tipo: todas->obtiene todas las moneda, (uno-> obtiene una moneda + id)
7291
+ * (mon:formato para inputCurrency + id )
7288
7292
  */
7289
7293
  SigespService.prototype.getCurrentCurrency = function (tipo, id) {
7290
7294
  if (tipo === void 0) { tipo = null; }
@@ -7300,7 +7304,6 @@
7300
7304
  * @return Observable<IResponse>
7301
7305
  * @author Dimaly Crespo
7302
7306
  * @actualizado: 5-12-20222
7303
- * @tipo
7304
7307
  */
7305
7308
  SigespService.prototype.getEnterprise = function (tipo, id) {
7306
7309
  if (tipo === void 0) { tipo = null; }
@@ -8115,7 +8118,7 @@
8115
8118
  CurrencyService.prototype.returnNumber = function (event, decimal, thousands, amountDecimals) {
8116
8119
  if (decimal === void 0) { decimal = ','; }
8117
8120
  if (thousands === void 0) { thousands = '.'; }
8118
- if (amountDecimals === void 0) { amountDecimals = 5; }
8121
+ if (amountDecimals === void 0) { amountDecimals = 6; }
8119
8122
  if (!decimal || decimal.trim() == '') {
8120
8123
  decimal = ',';
8121
8124
  }
@@ -8128,7 +8131,7 @@
8128
8131
  if (number.trim() == '') {
8129
8132
  number = '0';
8130
8133
  }
8131
- return +((+number).toFixed(amountDecimals));
8134
+ return +((+number));
8132
8135
  };
8133
8136
  CurrencyService.prototype.validateCurrency = function (e, number, decimal, decimalAmount) {
8134
8137
  if (decimal === void 0) { decimal = ','; }
@@ -9545,6 +9548,9 @@
9545
9548
  _this.orden = 0;
9546
9549
  _this.evaluarEnPrenomina = 0;
9547
9550
  _this.antiguedadComplementaria = 0;
9551
+ _this.idUnidadAdministrativa = 0;
9552
+ _this.codigoUnidadAdministrativa = '';
9553
+ _this.denominacionUnidadAdministraiva = '';
9548
9554
  if (e) {
9549
9555
  _this.idEnterprise = +e.id_enterprise;
9550
9556
  _this.idEmpresa = +e.id_empresa;
@@ -9620,6 +9626,9 @@
9620
9626
  else {
9621
9627
  _this.isNew = true;
9622
9628
  }
9629
+ _this.idUnidadAdministrativa = +e.id_uniadm;
9630
+ _this.codigoUnidadAdministrativa = e.coduniadm;
9631
+ _this.denominacionUnidadAdministraiva = e.denuniadm;
9623
9632
  return _this;
9624
9633
  }
9625
9634
  MConceptosNomina.prototype.dataInterface = function () {
@@ -9687,6 +9696,7 @@
9687
9696
  orden: this.orden.toString(),
9688
9697
  evaprenom: this.evaluarEnPrenomina.toString(),
9689
9698
  antigcomp: this.antiguedadComplementaria.toString(),
9699
+ id_uniadm: this.idUnidadAdministrativa.toString(),
9690
9700
  };
9691
9701
  };
9692
9702
  MConceptosNomina.prototype.denominacionSigno = function (sig) {
@@ -10992,6 +11002,9 @@
10992
11002
  _this.ubicacionRobinson = 0;
10993
11003
  _this.ubicacionZona = 0;
10994
11004
  _this.ubicacionNoAplica = 0;
11005
+ _this.idUnidadAdministrativa = 0;
11006
+ _this.codigoUnidadAdministrativa = '';
11007
+ _this.denominacionUnidadAdministraiva = '';
10995
11008
  if (e) {
10996
11009
  _this.idEnterprise = +e.id_enterprise;
10997
11010
  _this.idEmpresa = +e.id_empresa;
@@ -11026,6 +11039,9 @@
11026
11039
  _this.ubicacionRobinson = e.ubirobinson;
11027
11040
  _this.ubicacionZona = e.ubizona;
11028
11041
  _this.ubicacionNoAplica = e.ubinoaplica;
11042
+ _this.idUnidadAdministrativa = +e.id_uniadm;
11043
+ _this.codigoUnidadAdministrativa = e.coduniadm;
11044
+ _this.denominacionUnidadAdministraiva = e.denuniadm;
11029
11045
  }
11030
11046
  return _this;
11031
11047
  }
@@ -11063,7 +11079,8 @@
11063
11079
  ubiplanta: this.ubicacionPlanta,
11064
11080
  ubirobinson: this.ubicacionRobinson,
11065
11081
  ubizona: this.ubicacionZona,
11066
- ubinoaplica: this.ubicacionNoAplica
11082
+ ubinoaplica: this.ubicacionNoAplica,
11083
+ id_uniadm: this.idUnidadAdministrativa.toString(),
11067
11084
  };
11068
11085
  };
11069
11086
  return MEstructuraOrganizativa;