sigesp 0.9.13-20221217 → 0.9.15-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 +57 -23
- 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/Configuracion.js +1 -1
- package/esm2015/lib/core/interfaces/Moneda.js +1 -1
- package/esm2015/lib/core/models/CFG/TasaCambio.model.js +4 -1
- package/esm2015/lib/core/models/CFG/moneda.model.js +42 -0
- package/esm2015/lib/core/models/SOC/charge.model.js +2 -2
- package/esm2015/lib/core/models/SOC/clause.model.js +5 -2
- package/esm2015/lib/core/models/SOC/clauseModality.model.js +5 -2
- package/esm2015/lib/core/models/SOC/configuracionSOC.model.js +4 -1
- package/esm2015/lib/core/models/SOC/service.model.js +5 -2
- package/esm2015/lib/core/models/SOC/serviceCharge.model.js +2 -2
- package/esm2015/lib/core/models/SOC/serviceType.model.js +5 -2
- package/esm2015/lib/core/models/SPG/configurationSPG.model.js +2 -2
- package/esm2015/lib/sigesp.service.js +3 -3
- package/esm2015/lib/validation.service.js +1 -1
- package/esm2015/public-api.js +2 -2
- package/fesm2015/sigesp.js +53 -21
- package/fesm2015/sigesp.js.map +1 -1
- package/lib/core/interfaces/Configuracion.d.ts +1 -0
- package/lib/core/models/CFG/TasaCambio.model.d.ts +1 -0
- package/lib/core/models/{STB → CFG}/moneda.model.d.ts +4 -2
- package/lib/core/models/SPG/configurationSPG.model.d.ts +1 -1
- package/lib/sigesp.service.d.ts +1 -1
- package/lib/validation.service.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
- package/sigesp.metadata.json +1 -1
- package/esm2015/lib/core/models/STB/moneda.model.js +0 -27
package/bundles/sigesp.umd.js
CHANGED
|
@@ -1081,25 +1081,41 @@
|
|
|
1081
1081
|
}
|
|
1082
1082
|
return MMoneda;
|
|
1083
1083
|
}());
|
|
1084
|
-
var MMonedaConfig = /** @class */ (function () {
|
|
1084
|
+
var MMonedaConfig = /** @class */ (function (_super) {
|
|
1085
|
+
__extends(MMonedaConfig, _super);
|
|
1085
1086
|
function MMonedaConfig(moneda) {
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1087
|
+
var _this = _super.call(this) || this;
|
|
1088
|
+
_this.codigo = null;
|
|
1089
|
+
_this.denominacion = '';
|
|
1090
|
+
_this.codigoIso = '';
|
|
1091
|
+
_this.simbolo = '';
|
|
1092
|
+
_this.separadorDecimal = '';
|
|
1093
|
+
_this.separadorMiles = '';
|
|
1094
|
+
_this.decimales = 0;
|
|
1095
|
+
if (moneda) {
|
|
1096
|
+
_this.codigo = moneda.codmon;
|
|
1097
|
+
_this.denominacion = moneda.denmon;
|
|
1098
|
+
_this.codigoIso = moneda.codiso;
|
|
1099
|
+
_this.separadorDecimal = moneda.separadordec;
|
|
1100
|
+
_this.separadorMiles = moneda.separadormil;
|
|
1101
|
+
_this.simbolo = moneda.simmon;
|
|
1102
|
+
_this.decimales = parseInt(moneda.decimal);
|
|
1103
|
+
}
|
|
1104
|
+
return _this;
|
|
1100
1105
|
}
|
|
1106
|
+
MMonedaConfig.prototype.dataInterface = function () {
|
|
1107
|
+
return {
|
|
1108
|
+
codmon: this.codigo,
|
|
1109
|
+
denmon: this.denominacion,
|
|
1110
|
+
codiso: this.codigoIso,
|
|
1111
|
+
simmon: this.simbolo,
|
|
1112
|
+
separadordec: this.separadorDecimal,
|
|
1113
|
+
separadormil: this.separadorMiles,
|
|
1114
|
+
decimal: this.decimales.toString()
|
|
1115
|
+
};
|
|
1116
|
+
};
|
|
1101
1117
|
return MMonedaConfig;
|
|
1102
|
-
}());
|
|
1118
|
+
}(MBasicModel));
|
|
1103
1119
|
|
|
1104
1120
|
var MUnidadTributaria = /** @class */ (function () {
|
|
1105
1121
|
function MUnidadTributaria(unidad) {
|
|
@@ -2929,6 +2945,9 @@
|
|
|
2929
2945
|
_this.statusMultiAdministrativeUnit = parseInt(config.estmuluniadm) == 1;
|
|
2930
2946
|
_this.statusMultiCostCenter = parseInt(config.estmulcencos) == 1;
|
|
2931
2947
|
}
|
|
2948
|
+
else {
|
|
2949
|
+
_this.isNew = true;
|
|
2950
|
+
}
|
|
2932
2951
|
return _this;
|
|
2933
2952
|
}
|
|
2934
2953
|
MConfigSOC.prototype.dataAsInterface = function () {
|
|
@@ -2983,7 +3002,7 @@
|
|
|
2983
3002
|
_this.error = false;
|
|
2984
3003
|
_this.idEmpresa = 0;
|
|
2985
3004
|
_this.idEnterprise = 0;
|
|
2986
|
-
_this.id =
|
|
3005
|
+
_this.id = -1;
|
|
2987
3006
|
_this.codigo = "";
|
|
2988
3007
|
_this.denominacion = "";
|
|
2989
3008
|
_this.codigoEstructuraEgreso = "";
|
|
@@ -3230,7 +3249,7 @@
|
|
|
3230
3249
|
var _this = _super.call(this) || this;
|
|
3231
3250
|
_this.companyId = 0;
|
|
3232
3251
|
_this.idEnterprise = 0;
|
|
3233
|
-
_this.id =
|
|
3252
|
+
_this.id = -1;
|
|
3234
3253
|
_this.serviceId = 0;
|
|
3235
3254
|
_this.denomination = '';
|
|
3236
3255
|
_this.code = '';
|
|
@@ -5932,7 +5951,9 @@
|
|
|
5932
5951
|
_this.fechaHasta = '1900-01-01';
|
|
5933
5952
|
_this.montoTasa = 0;
|
|
5934
5953
|
_this.denominacionMoneda = '';
|
|
5954
|
+
_this.idTasaCambio = 0;
|
|
5935
5955
|
if (e) {
|
|
5956
|
+
_this.idTasaCambio = +e.id_tascam;
|
|
5936
5957
|
_this.codigoMoneda = +e.codmon;
|
|
5937
5958
|
_this.fechaDesde = e.fectasdes;
|
|
5938
5959
|
_this.horaCambioTasa = e.horcamtas;
|
|
@@ -5947,6 +5968,7 @@
|
|
|
5947
5968
|
}
|
|
5948
5969
|
MExchangeRate.prototype.dataInterface = function () {
|
|
5949
5970
|
return {
|
|
5971
|
+
id_tascam: this.idTasaCambio.toString(),
|
|
5950
5972
|
codmon: this.codigoMoneda.toString(),
|
|
5951
5973
|
fectasdes: this.fechaDesde,
|
|
5952
5974
|
horcamtas: this.horaCambioTasa,
|
|
@@ -6848,7 +6870,7 @@
|
|
|
6848
6870
|
* @returns
|
|
6849
6871
|
*/
|
|
6850
6872
|
SigespService.prototype.getMonedas = function (tipo, id) {
|
|
6851
|
-
return this.http.get(this.URL + "/dao/cfg/
|
|
6873
|
+
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.map(function (element) { return new MMoneda(element); }); }));
|
|
6852
6874
|
};
|
|
6853
6875
|
/**
|
|
6854
6876
|
* @Description: Obtiene la tasa de cambio
|
|
@@ -8408,7 +8430,7 @@
|
|
|
8408
8430
|
function MServiceType(type) {
|
|
8409
8431
|
if (type === void 0) { type = null; }
|
|
8410
8432
|
var _this = _super.call(this) || this;
|
|
8411
|
-
_this.id =
|
|
8433
|
+
_this.id = -1;
|
|
8412
8434
|
_this.idEmpresa = 0;
|
|
8413
8435
|
_this.idEnterprise = 0;
|
|
8414
8436
|
_this.denomination = null;
|
|
@@ -8420,6 +8442,9 @@
|
|
|
8420
8442
|
_this.denomination = type.dentipser;
|
|
8421
8443
|
_this.observation = type.obstipser;
|
|
8422
8444
|
}
|
|
8445
|
+
else {
|
|
8446
|
+
_this.isNew = true;
|
|
8447
|
+
}
|
|
8423
8448
|
return _this;
|
|
8424
8449
|
}
|
|
8425
8450
|
MServiceType.prototype.dataAsInterface = function () {
|
|
@@ -8439,7 +8464,7 @@
|
|
|
8439
8464
|
function MService(service) {
|
|
8440
8465
|
if (service === void 0) { service = null; }
|
|
8441
8466
|
var _this = _super.call(this) || this;
|
|
8442
|
-
_this.id =
|
|
8467
|
+
_this.id = -1;
|
|
8443
8468
|
_this.idEnterprise = 0;
|
|
8444
8469
|
_this.code = '';
|
|
8445
8470
|
_this.companyId = 0;
|
|
@@ -8461,6 +8486,9 @@
|
|
|
8461
8486
|
_this.charges = service.cargos.map(function (e) { return new MServiceCharge(e); });
|
|
8462
8487
|
}
|
|
8463
8488
|
}
|
|
8489
|
+
else {
|
|
8490
|
+
_this.isNew = true;
|
|
8491
|
+
}
|
|
8464
8492
|
return _this;
|
|
8465
8493
|
}
|
|
8466
8494
|
MService.prototype.dataAsInterface = function () {
|
|
@@ -8484,7 +8512,7 @@
|
|
|
8484
8512
|
function MClause(clause) {
|
|
8485
8513
|
if (clause === void 0) { clause = null; }
|
|
8486
8514
|
var _this = _super.call(this) || this;
|
|
8487
|
-
_this.id =
|
|
8515
|
+
_this.id = -1;
|
|
8488
8516
|
_this.companyId = 0;
|
|
8489
8517
|
_this.idEnterprise = 0;
|
|
8490
8518
|
_this.clause = '';
|
|
@@ -8496,6 +8524,9 @@
|
|
|
8496
8524
|
_this.denomination = clause.dencla;
|
|
8497
8525
|
_this.id = parseInt(clause.id_clausula);
|
|
8498
8526
|
}
|
|
8527
|
+
else {
|
|
8528
|
+
_this.isNew = true;
|
|
8529
|
+
}
|
|
8499
8530
|
return _this;
|
|
8500
8531
|
}
|
|
8501
8532
|
MClause.prototype.dataAsInterface = function () {
|
|
@@ -8515,7 +8546,7 @@
|
|
|
8515
8546
|
function MClauseModality(mod) {
|
|
8516
8547
|
if (mod === void 0) { mod = null; }
|
|
8517
8548
|
var _this = _super.call(this) || this;
|
|
8518
|
-
_this.id =
|
|
8549
|
+
_this.id = -1;
|
|
8519
8550
|
_this.companyId = 0;
|
|
8520
8551
|
_this.idEnterprise = 0;
|
|
8521
8552
|
_this.code = '';
|
|
@@ -8529,6 +8560,9 @@
|
|
|
8529
8560
|
_this.denomination = mod.denmodcla;
|
|
8530
8561
|
_this.clauses = mod.clausulas.map(function (e) { return new MClause(e); });
|
|
8531
8562
|
}
|
|
8563
|
+
else {
|
|
8564
|
+
_this.isNew = true;
|
|
8565
|
+
}
|
|
8532
8566
|
return _this;
|
|
8533
8567
|
}
|
|
8534
8568
|
MClauseModality.prototype.dataAsInterface = function () {
|