sigesp 0.9.17-20221221 → 0.9.19-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.
- package/bundles/sigesp.umd.js +35 -9
- package/bundles/sigesp.umd.js.map +1 -1
- package/bundles/sigesp.umd.min.js +1 -1
- package/bundles/sigesp.umd.min.js.map +1 -1
- package/esm2015/lib/core/interfaces/Moneda.js +1 -1
- package/esm2015/lib/core/models/CFG/moneda.model.js +31 -7
- package/esm2015/lib/sigesp.service.js +3 -3
- package/fesm2015/sigesp.js +32 -8
- package/fesm2015/sigesp.js.map +1 -1
- package/lib/core/interfaces/Moneda.d.ts +7 -4
- package/lib/core/models/CFG/moneda.model.d.ts +6 -2
- package/package.json +1 -1
- package/sigesp.metadata.json +1 -1
package/fesm2015/sigesp.js
CHANGED
|
@@ -779,18 +779,42 @@ class MCuentaInstitucional {
|
|
|
779
779
|
}
|
|
780
780
|
}
|
|
781
781
|
|
|
782
|
-
class MMoneda {
|
|
782
|
+
class MMoneda extends MBasicModel {
|
|
783
783
|
constructor(moneda) {
|
|
784
|
-
|
|
785
|
-
this.
|
|
786
|
-
this.
|
|
787
|
-
this.
|
|
784
|
+
super();
|
|
785
|
+
this.codigo = '';
|
|
786
|
+
this.denominacion = '';
|
|
787
|
+
this.iso = '';
|
|
788
|
+
this.simbolo = '';
|
|
789
|
+
this.separadorDecimal = '';
|
|
790
|
+
this.separadorMiles = '';
|
|
791
|
+
this.decimales = 0;
|
|
792
|
+
if (moneda) {
|
|
793
|
+
this.codigo = moneda.codmon;
|
|
794
|
+
this.denominacion = moneda.denmon;
|
|
795
|
+
this.iso = moneda.codiso;
|
|
796
|
+
this.simbolo = moneda.simmon;
|
|
797
|
+
this.separadorDecimal = moneda.separadordec;
|
|
798
|
+
this.separadorMiles = moneda.separadormil;
|
|
799
|
+
this.decimales = parseInt(moneda.decimal);
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
dataInterface() {
|
|
803
|
+
return {
|
|
804
|
+
codmon: this.codigo,
|
|
805
|
+
denmon: this.denominacion,
|
|
806
|
+
codiso: this.iso,
|
|
807
|
+
simmon: this.simbolo,
|
|
808
|
+
separadordec: this.separadorDecimal,
|
|
809
|
+
separadormil: this.separadorMiles,
|
|
810
|
+
decimal: this.decimales.toString(),
|
|
811
|
+
};
|
|
788
812
|
}
|
|
789
813
|
}
|
|
790
814
|
class MMonedaConfig extends MBasicModel {
|
|
791
815
|
constructor(moneda) {
|
|
792
816
|
super();
|
|
793
|
-
this.codigo =
|
|
817
|
+
this.codigo = '';
|
|
794
818
|
this.denominacion = '';
|
|
795
819
|
this.codigoIso = '';
|
|
796
820
|
this.simbolo = '';
|
|
@@ -6297,7 +6321,7 @@ class SigespService {
|
|
|
6297
6321
|
let coins = yield this.getMonedas('todas').toPromise();
|
|
6298
6322
|
let dialogRef = this.dialog.open(CatalogoComponent, {
|
|
6299
6323
|
data: {
|
|
6300
|
-
columns: ['codigo', 'denominacion', '
|
|
6324
|
+
columns: ['codigo', 'denominacion', 'codigoIso', 'simbolo'],
|
|
6301
6325
|
title: 'Catálogo de Monedas',
|
|
6302
6326
|
columnNames: ['código', 'denominación', 'iso', 'simbolo'],
|
|
6303
6327
|
dataSource: coins
|
|
@@ -6327,7 +6351,7 @@ class SigespService {
|
|
|
6327
6351
|
* @returns array/null
|
|
6328
6352
|
*/
|
|
6329
6353
|
getCurrencyExchangeRate(tipo = null, id) {
|
|
6330
|
-
return this.http.get(`${this.URL}/dao/cfg/
|
|
6354
|
+
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))));
|
|
6331
6355
|
}
|
|
6332
6356
|
/**
|
|
6333
6357
|
* @description Abre el dialog de las las cuentas contables (Cuentas Institucionales)
|