sigesp 0.9.97-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 +16 -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 +17 -13
- package/fesm2015/sigesp.js +16 -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 +4 -2
- package/package.json +1 -1
package/bundles/sigesp.umd.js
CHANGED
|
@@ -3996,24 +3996,28 @@
|
|
|
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 = '';
|
|
4006
|
+
_this.codigoUnidadCentral = '';
|
|
4007
|
+
_this.denominacionCentroCosto = '';
|
|
4006
4008
|
_this.estructuras = [];
|
|
4007
4009
|
if (unidad) {
|
|
4008
|
-
_this.idEmpresa = unidad.id_empresa;
|
|
4009
|
-
_this.idEnterprise = unidad.id_enterprise;
|
|
4010
|
-
_this.id = unidad.id_uniadm;
|
|
4010
|
+
_this.idEmpresa = +unidad.id_empresa;
|
|
4011
|
+
_this.idEnterprise = +unidad.id_enterprise;
|
|
4012
|
+
_this.id = +unidad.id_uniadm;
|
|
4011
4013
|
_this.codigo = unidad.coduniadm;
|
|
4012
4014
|
_this.denominacion = unidad.denuniadm;
|
|
4013
|
-
_this.unidadCentral = unidad.coduac;
|
|
4014
|
-
_this.emiteRequisicion = unidad.estemireq;
|
|
4015
|
+
_this.unidadCentral = +unidad.coduac;
|
|
4016
|
+
_this.emiteRequisicion = unidad.estemireq == '1' ? true : false;
|
|
4015
4017
|
_this.centroCosto = unidad.codcencos;
|
|
4016
4018
|
_this.denominacionUnidadCentral = unidad.denuac;
|
|
4019
|
+
_this.codigoUnidadCentral = unidad.codigouac;
|
|
4020
|
+
_this.denominacionCentroCosto = unidad.denenominacion;
|
|
4017
4021
|
if (unidad.estructuras) {
|
|
4018
4022
|
_this.estructuras = unidad.estructuras.map(function (e) { return new MEstructuras(e); });
|
|
4019
4023
|
}
|
|
@@ -4025,14 +4029,14 @@
|
|
|
4025
4029
|
}
|
|
4026
4030
|
MAdministrativeUnit.prototype.dataInterface = function () {
|
|
4027
4031
|
return {
|
|
4028
|
-
id_empresa: this.idEmpresa,
|
|
4029
|
-
id_enterprise: this.idEnterprise,
|
|
4032
|
+
id_empresa: this.idEmpresa.toString(),
|
|
4033
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
4030
4034
|
coduniadm: this.codigo,
|
|
4031
|
-
coduac: this.unidadCentral,
|
|
4035
|
+
coduac: this.unidadCentral.toString(),
|
|
4032
4036
|
denuniadm: this.denominacion,
|
|
4033
|
-
estemireq: this.emiteRequisicion,
|
|
4037
|
+
estemireq: this.emiteRequisicion ? '1' : '0',
|
|
4034
4038
|
codcencos: this.centroCosto,
|
|
4035
|
-
id_uniadm: this.id,
|
|
4039
|
+
id_uniadm: this.id.toString(),
|
|
4036
4040
|
estructuras: this.estructuras.map(function (e) { return e.dataInterface(); }),
|
|
4037
4041
|
};
|
|
4038
4042
|
};
|