sigesp 0.9.29-20230204 → 0.9.31-23230208

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.
@@ -5668,6 +5668,15 @@ class SigespService {
5668
5668
  return res;
5669
5669
  }));
5670
5670
  }
5671
+ updateDistributionIncomeAccount2(distribution) {
5672
+ return this.http.put(`${this.URL}/dao/spi/cuentas_ingresos_dao.php`, distribution, { headers: this.getHttpHeaders() })
5673
+ .pipe(map((res) => {
5674
+ if (res.success) {
5675
+ res.data = new MCuentaIngresos(res.data);
5676
+ }
5677
+ return res;
5678
+ }));
5679
+ }
5671
5680
  /**
5672
5681
  * @Actualiza la distribución de la cuenta de Ingreso de Estructura
5673
5682
  * @param distribution
@@ -6674,8 +6683,8 @@ class SigespService {
6674
6683
  * @author Carlos Albornoz
6675
6684
  * @actualizado: 4-12-20222
6676
6685
  */
6677
- getCurrentCurrency() {
6678
- return this.http.get(`${this.URL}/dao/cfg/moneda_dao.php?tipo=${'actual'}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
6686
+ getCurrentCurrency(tipo = null, id) {
6687
+ 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) => {
6679
6688
  if (res.success) {
6680
6689
  res.data = new MMonedaConfig(res.data);
6681
6690
  }