sigesp 0.9.37-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.
package/fesm2015/sigesp.js
CHANGED
|
@@ -6401,10 +6401,11 @@ class SigespService {
|
|
|
6401
6401
|
return this.http.get(`${this.URL}/dao/cfg/moneda_dao.php?tipo=${tipo}&id=${id}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((resp) => resp.data.map(element => new MMoneda(element))));
|
|
6402
6402
|
}
|
|
6403
6403
|
/**
|
|
6404
|
-
* @Description: Obtiene la tasa de cambio
|
|
6404
|
+
* @Description: Obtiene la tasa de cambio asociadas a uno o varias monedas
|
|
6405
6405
|
* @param tipo string
|
|
6406
6406
|
* @param id codigo moneda
|
|
6407
6407
|
* @returns array/null
|
|
6408
|
+
* @tipo:all->todas, (moneda->una moneda id->id de moneda)
|
|
6408
6409
|
*/
|
|
6409
6410
|
getCurrencyExchangeRate(tipo = null, id) {
|
|
6410
6411
|
return this.http.get(`${this.URL}/dao/cfg/tasa_cambio_dao.php?tipo=${tipo}&id=${id}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((resp) => resp.data.map(element => new MExchangeRate(element))));
|
|
@@ -6681,6 +6682,9 @@ class SigespService {
|
|
|
6681
6682
|
* @return Observable<IResponse>
|
|
6682
6683
|
* @author Carlos Albornoz
|
|
6683
6684
|
* @actualizado: 4-12-20222
|
|
6685
|
+
* @params id: id de la moneda,
|
|
6686
|
+
* @params tipo: todas->obtiene todas las moneda, (uno-> obtiene una moneda + id)
|
|
6687
|
+
* (mon:formato para inputCurrency + id )
|
|
6684
6688
|
*/
|
|
6685
6689
|
getCurrentCurrency(tipo = null, id) {
|
|
6686
6690
|
return this.http.get(`${this.URL}/dao/cfg/moneda_dao.php?tipo=${tipo}&id=${id}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
@@ -6695,7 +6699,6 @@ class SigespService {
|
|
|
6695
6699
|
* @return Observable<IResponse>
|
|
6696
6700
|
* @author Dimaly Crespo
|
|
6697
6701
|
* @actualizado: 5-12-20222
|
|
6698
|
-
* @tipo
|
|
6699
6702
|
*/
|
|
6700
6703
|
getEnterprise(tipo = null, id) {
|
|
6701
6704
|
return this.http.get(`${this.URL}/dao/cfg/enterprise_dao.php?`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|