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/bundles/sigesp.umd.js
CHANGED
|
@@ -1072,20 +1072,46 @@
|
|
|
1072
1072
|
return MCuentaInstitucional;
|
|
1073
1073
|
}());
|
|
1074
1074
|
|
|
1075
|
-
var MMoneda = /** @class */ (function () {
|
|
1075
|
+
var MMoneda = /** @class */ (function (_super) {
|
|
1076
|
+
__extends(MMoneda, _super);
|
|
1076
1077
|
function MMoneda(moneda) {
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1078
|
+
var _this = _super.call(this) || this;
|
|
1079
|
+
_this.codigo = '';
|
|
1080
|
+
_this.denominacion = '';
|
|
1081
|
+
_this.iso = '';
|
|
1082
|
+
_this.simbolo = '';
|
|
1083
|
+
_this.separadorDecimal = '';
|
|
1084
|
+
_this.separadorMiles = '';
|
|
1085
|
+
_this.decimales = 0;
|
|
1086
|
+
if (moneda) {
|
|
1087
|
+
_this.codigo = moneda.codmon;
|
|
1088
|
+
_this.denominacion = moneda.denmon;
|
|
1089
|
+
_this.iso = moneda.codiso;
|
|
1090
|
+
_this.simbolo = moneda.simmon;
|
|
1091
|
+
_this.separadorDecimal = moneda.separadordec;
|
|
1092
|
+
_this.separadorMiles = moneda.separadormil;
|
|
1093
|
+
_this.decimales = parseInt(moneda.decimal);
|
|
1094
|
+
}
|
|
1095
|
+
return _this;
|
|
1081
1096
|
}
|
|
1097
|
+
MMoneda.prototype.dataInterface = function () {
|
|
1098
|
+
return {
|
|
1099
|
+
codmon: this.codigo,
|
|
1100
|
+
denmon: this.denominacion,
|
|
1101
|
+
codiso: this.iso,
|
|
1102
|
+
simmon: this.simbolo,
|
|
1103
|
+
separadordec: this.separadorDecimal,
|
|
1104
|
+
separadormil: this.separadorMiles,
|
|
1105
|
+
decimal: this.decimales.toString(),
|
|
1106
|
+
};
|
|
1107
|
+
};
|
|
1082
1108
|
return MMoneda;
|
|
1083
|
-
}());
|
|
1109
|
+
}(MBasicModel));
|
|
1084
1110
|
var MMonedaConfig = /** @class */ (function (_super) {
|
|
1085
1111
|
__extends(MMonedaConfig, _super);
|
|
1086
1112
|
function MMonedaConfig(moneda) {
|
|
1087
1113
|
var _this = _super.call(this) || this;
|
|
1088
|
-
_this.codigo =
|
|
1114
|
+
_this.codigo = '';
|
|
1089
1115
|
_this.denominacion = '';
|
|
1090
1116
|
_this.codigoIso = '';
|
|
1091
1117
|
_this.simbolo = '';
|
|
@@ -6847,7 +6873,7 @@
|
|
|
6847
6873
|
coins = _a.sent();
|
|
6848
6874
|
dialogRef = this.dialog.open(CatalogoComponent, {
|
|
6849
6875
|
data: {
|
|
6850
|
-
columns: ['codigo', 'denominacion', '
|
|
6876
|
+
columns: ['codigo', 'denominacion', 'codigoIso', 'simbolo'],
|
|
6851
6877
|
title: 'Catálogo de Monedas',
|
|
6852
6878
|
columnNames: ['código', 'denominación', 'iso', 'simbolo'],
|
|
6853
6879
|
dataSource: coins
|
|
@@ -6880,7 +6906,7 @@
|
|
|
6880
6906
|
*/
|
|
6881
6907
|
SigespService.prototype.getCurrencyExchangeRate = function (tipo, id) {
|
|
6882
6908
|
if (tipo === void 0) { tipo = null; }
|
|
6883
|
-
return this.http.get(this.URL + "/dao/cfg/
|
|
6909
|
+
return this.http.get(this.URL + "/dao/cfg/tasa_cambio_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 MExchangeRate(element); }); }));
|
|
6884
6910
|
};
|
|
6885
6911
|
/**
|
|
6886
6912
|
* @description Abre el dialog de las las cuentas contables (Cuentas Institucionales)
|