sigesp 0.9.98-20240222 → 0.9.99-20240222
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 +12 -12
- 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/Presupuesto.js +1 -1
- package/esm2015/lib/core/models/SPG/administrativeUnit.model.js +13 -13
- package/fesm2015/sigesp.js +12 -12
- package/fesm2015/sigesp.js.map +1 -1
- package/lib/core/interfaces/Presupuesto.d.ts +6 -6
- package/lib/core/models/SPG/administrativeUnit.model.d.ts +2 -2
- package/package.json +1 -1
package/bundles/sigesp.umd.js
CHANGED
|
@@ -3996,10 +3996,10 @@
|
|
|
3996
3996
|
var _this = _super.call(this) || this;
|
|
3997
3997
|
_this.idEmpresa = 0;
|
|
3998
3998
|
_this.idEnterprise = 0;
|
|
3999
|
-
_this.codigo =
|
|
3999
|
+
_this.codigo = '';
|
|
4000
4000
|
_this.denominacion = '';
|
|
4001
4001
|
_this.unidadCentral = 0;
|
|
4002
|
-
_this.emiteRequisicion =
|
|
4002
|
+
_this.emiteRequisicion = true;
|
|
4003
4003
|
_this.centroCosto = '';
|
|
4004
4004
|
_this.id = 0;
|
|
4005
4005
|
_this.denominacionUnidadCentral = '';
|
|
@@ -4007,13 +4007,13 @@
|
|
|
4007
4007
|
_this.denominacionCentroCosto = '';
|
|
4008
4008
|
_this.estructuras = [];
|
|
4009
4009
|
if (unidad) {
|
|
4010
|
-
_this.idEmpresa = unidad.id_empresa;
|
|
4011
|
-
_this.idEnterprise = unidad.id_enterprise;
|
|
4012
|
-
_this.id = unidad.id_uniadm;
|
|
4010
|
+
_this.idEmpresa = +unidad.id_empresa;
|
|
4011
|
+
_this.idEnterprise = +unidad.id_enterprise;
|
|
4012
|
+
_this.id = +unidad.id_uniadm;
|
|
4013
4013
|
_this.codigo = unidad.coduniadm;
|
|
4014
4014
|
_this.denominacion = unidad.denuniadm;
|
|
4015
|
-
_this.unidadCentral = unidad.coduac;
|
|
4016
|
-
_this.emiteRequisicion = unidad.estemireq;
|
|
4015
|
+
_this.unidadCentral = +unidad.coduac;
|
|
4016
|
+
_this.emiteRequisicion = unidad.estemireq == '1' ? true : false;
|
|
4017
4017
|
_this.centroCosto = unidad.codcencos;
|
|
4018
4018
|
_this.denominacionUnidadCentral = unidad.denuac;
|
|
4019
4019
|
_this.codigoUnidadCentral = unidad.codigouac;
|
|
@@ -4029,14 +4029,14 @@
|
|
|
4029
4029
|
}
|
|
4030
4030
|
MAdministrativeUnit.prototype.dataInterface = function () {
|
|
4031
4031
|
return {
|
|
4032
|
-
id_empresa: this.idEmpresa,
|
|
4033
|
-
id_enterprise: this.idEnterprise,
|
|
4032
|
+
id_empresa: this.idEmpresa.toString(),
|
|
4033
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
4034
4034
|
coduniadm: this.codigo,
|
|
4035
|
-
coduac: this.unidadCentral,
|
|
4035
|
+
coduac: this.unidadCentral.toString(),
|
|
4036
4036
|
denuniadm: this.denominacion,
|
|
4037
|
-
estemireq: this.emiteRequisicion,
|
|
4037
|
+
estemireq: this.emiteRequisicion ? '1' : '0',
|
|
4038
4038
|
codcencos: this.centroCosto,
|
|
4039
|
-
id_uniadm: this.id,
|
|
4039
|
+
id_uniadm: this.id.toString(),
|
|
4040
4040
|
estructuras: this.estructuras.map(function (e) { return e.dataInterface(); }),
|
|
4041
4041
|
};
|
|
4042
4042
|
};
|