sigesp 0.9.36-20230211 → 0.9.38-20230223

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 = 0; }
8121
+ if (amountDecimals === void 0) { amountDecimals = 5; }
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 +(parseFloat(number).toFixed(amountDecimals));
8134
+ return +((+number).toFixed(amountDecimals));
8132
8135
  };
8133
8136
  CurrencyService.prototype.validateCurrency = function (e, number, decimal, decimalAmount) {
8134
8137
  if (decimal === void 0) { decimal = ','; }