sigesp 0.9.22-20221229 → 0.9.24-20230111
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 +39 -23
- package/bundles/sigesp.umd.js.map +1 -1
- package/bundles/sigesp.umd.min.js +2 -2
- package/bundles/sigesp.umd.min.js.map +1 -1
- package/esm2015/lib/core/interfaces/Configuracion.js +1 -1
- package/esm2015/lib/core/interfaces/Presupuesto.js +1 -1
- package/esm2015/lib/core/models/CFG/Enterprise.model.js +5 -2
- package/esm2015/lib/core/models/SPG/administrativeUnit.model.js +35 -14
- package/esm2015/lib/sigesp.service.js +2 -10
- package/fesm2015/sigesp.js +39 -23
- package/fesm2015/sigesp.js.map +1 -1
- package/lib/core/interfaces/Configuracion.d.ts +1 -0
- package/lib/core/interfaces/Presupuesto.d.ts +3 -2
- package/lib/core/models/CFG/Enterprise.model.d.ts +1 -0
- package/lib/core/models/SPG/administrativeUnit.model.d.ts +8 -5
- package/lib/sigesp.service.d.ts +2 -2
- package/package.json +1 -1
- package/sigesp.metadata.json +1 -1
package/bundles/sigesp.umd.js
CHANGED
|
@@ -460,6 +460,7 @@
|
|
|
460
460
|
_this.cuentaPasivoDiferido = '';
|
|
461
461
|
_this.cuentAnterior = '';
|
|
462
462
|
_this.cuentSobrante = '';
|
|
463
|
+
_this.diaFechaVencimiento = 0;
|
|
463
464
|
if (e) {
|
|
464
465
|
_this.idEmpresa = +e.id_empresa;
|
|
465
466
|
_this.idEnterprise = +e.id_enterprise;
|
|
@@ -478,6 +479,7 @@
|
|
|
478
479
|
_this.cuentaPasivoDiferido = e.sc_cuenta_pasivo_diferido;
|
|
479
480
|
_this.cuentAnterior = e.sc_cuenta_ant;
|
|
480
481
|
_this.cuentSobrante = e.spi_cuenta_sobrante;
|
|
482
|
+
_this.diaFechaVencimiento = +e.diafecven;
|
|
481
483
|
}
|
|
482
484
|
else {
|
|
483
485
|
_this.isNew = true;
|
|
@@ -502,7 +504,8 @@
|
|
|
502
504
|
sc_cuenta_perdida: this.cuentaPerdida,
|
|
503
505
|
sc_cuenta_pasivo_diferido: this.cuentaPasivoDiferido,
|
|
504
506
|
sc_cuenta_ant: this.cuentAnterior,
|
|
505
|
-
spi_cuenta_sobrante: this.cuentSobrante
|
|
507
|
+
spi_cuenta_sobrante: this.cuentSobrante,
|
|
508
|
+
diafecven: this.diaFechaVencimiento.toString(),
|
|
506
509
|
};
|
|
507
510
|
};
|
|
508
511
|
return MEnterprise;
|
|
@@ -3222,22 +3225,43 @@
|
|
|
3222
3225
|
__extends(MAdministrativeUnit, _super);
|
|
3223
3226
|
function MAdministrativeUnit(unidad) {
|
|
3224
3227
|
var _this = _super.call(this) || this;
|
|
3225
|
-
_this.
|
|
3226
|
-
_this.
|
|
3228
|
+
_this.idEmpresa = 0;
|
|
3229
|
+
_this.idEnterprise = 0;
|
|
3230
|
+
_this.codigo = 0;
|
|
3227
3231
|
_this.denominacion = '';
|
|
3228
|
-
_this.
|
|
3229
|
-
_this.
|
|
3230
|
-
_this.
|
|
3231
|
-
_this.id =
|
|
3232
|
-
_this.
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3232
|
+
_this.unidadCentral = 0;
|
|
3233
|
+
_this.emiteRequisicion = 0;
|
|
3234
|
+
_this.centroCosto = '';
|
|
3235
|
+
_this.id = 0;
|
|
3236
|
+
_this.denominacionUnidadCentral = '';
|
|
3237
|
+
if (unidad) {
|
|
3238
|
+
_this.idEmpresa = unidad.id_empresa;
|
|
3239
|
+
_this.idEnterprise = unidad.id_enterprise;
|
|
3240
|
+
_this.codigo = unidad.coduniadm;
|
|
3241
|
+
_this.denominacion = unidad.denuniadm;
|
|
3242
|
+
_this.unidadCentral = unidad.coduac;
|
|
3243
|
+
_this.emiteRequisicion = unidad.estemireq;
|
|
3244
|
+
_this.centroCosto = unidad.codcencos;
|
|
3245
|
+
_this.id = unidad.id_uniadm;
|
|
3246
|
+
_this.denominacionUnidadCentral = unidad.denuac;
|
|
3247
|
+
}
|
|
3248
|
+
else {
|
|
3249
|
+
_this.isNew = true;
|
|
3250
|
+
}
|
|
3239
3251
|
return _this;
|
|
3240
3252
|
}
|
|
3253
|
+
MAdministrativeUnit.prototype.dataInterface = function () {
|
|
3254
|
+
return {
|
|
3255
|
+
id_empresa: this.idEmpresa,
|
|
3256
|
+
id_enterprise: this.idEnterprise,
|
|
3257
|
+
coduniadm: this.codigo,
|
|
3258
|
+
coduac: this.unidadCentral,
|
|
3259
|
+
denuniadm: this.denominacion,
|
|
3260
|
+
estemireq: this.emiteRequisicion,
|
|
3261
|
+
codcencos: this.centroCosto,
|
|
3262
|
+
id_uniadm: this.id,
|
|
3263
|
+
};
|
|
3264
|
+
};
|
|
3241
3265
|
return MAdministrativeUnit;
|
|
3242
3266
|
}(MBasicModel));
|
|
3243
3267
|
|
|
@@ -6521,15 +6545,7 @@
|
|
|
6521
6545
|
*/
|
|
6522
6546
|
SigespService.prototype.getCentroCosto = function (tipo, id) {
|
|
6523
6547
|
if (tipo === void 0) { tipo = null; }
|
|
6524
|
-
return this.http.get(this.URL + "/dao/scg/centro_costo_dao.php?tipo=" + tipo + "&id=" + id, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (resp) {
|
|
6525
|
-
if (tipo == 'all') {
|
|
6526
|
-
resp = resp.data.map(function (element) { return new MCentroCosto(element); });
|
|
6527
|
-
}
|
|
6528
|
-
else {
|
|
6529
|
-
resp.data.map(function (element) { return new MCentroCosto(element); });
|
|
6530
|
-
}
|
|
6531
|
-
return resp;
|
|
6532
|
-
}));
|
|
6548
|
+
return this.http.get(this.URL + "/dao/scg/centro_costo_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 MCentroCosto(element); }); }));
|
|
6533
6549
|
};
|
|
6534
6550
|
/**
|
|
6535
6551
|
* @description Obtiene los centros de costo
|