sigesp 0.9.8-20221205 → 0.9.9-20221205

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.
@@ -348,6 +348,75 @@
348
348
  return MBasicModel;
349
349
  }());
350
350
 
351
+ var MEnterprise = /** @class */ (function (_super) {
352
+ __extends(MEnterprise, _super);
353
+ function MEnterprise(e) {
354
+ var _this = _super.call(this) || this;
355
+ _this.idEmpresa = 0;
356
+ _this.idEnterprise = 0;
357
+ _this.codigo = '';
358
+ _this.razonSocial = '';
359
+ _this.titulo = '';
360
+ _this.logo = '';
361
+ _this.rif = '';
362
+ _this.direccion = '';
363
+ _this.cuentaIngreso = '';
364
+ _this.CuentaPorCobrar = '';
365
+ _this.CuentaIva = '';
366
+ _this.cuentaInventario = '';
367
+ _this.cuentaUtilidad = '';
368
+ _this.cuentaPerdida = '';
369
+ _this.cuentaPasivoDiferido = '';
370
+ _this.cuentAnterior = '';
371
+ _this.cuentSobrante = '';
372
+ if (e) {
373
+ _this.idEmpresa = +e.id_empresa;
374
+ _this.idEnterprise = +e.id_enterprise;
375
+ _this.codigo = e.codigo;
376
+ _this.razonSocial = e.denominacion;
377
+ _this.titulo = e.titulo;
378
+ _this.logo = e.logo;
379
+ _this.rif = e.rif;
380
+ _this.direccion = e.direccion;
381
+ _this.cuentaIngreso = e.spi_cuenta;
382
+ _this.CuentaPorCobrar = e.sc_cuenta_cxc;
383
+ _this.CuentaIva = e.sc_cuenta_iva;
384
+ _this.cuentaInventario = e.sc_cuenta_inventario;
385
+ _this.cuentaUtilidad = e.sc_cuenta_utilidad;
386
+ _this.cuentaPerdida = e.sc_cuenta_perdida;
387
+ _this.cuentaPasivoDiferido = e.sc_cuenta_pasivo_diferido;
388
+ _this.cuentAnterior = e.sc_cuenta_ant;
389
+ _this.cuentSobrante = e.spi_cuenta_sobrante;
390
+ }
391
+ else {
392
+ _this.isNew = true;
393
+ }
394
+ return _this;
395
+ }
396
+ MEnterprise.prototype.dataInterface = function () {
397
+ return {
398
+ id_empresa: this.idEmpresa.toString(),
399
+ id_enterprise: this.idEnterprise.toString(),
400
+ codigo: this.codigo,
401
+ denominacion: this.razonSocial,
402
+ titulo: this.titulo,
403
+ logo: this.logo,
404
+ rif: this.rif,
405
+ direccion: this.direccion,
406
+ spi_cuenta: this.cuentaIngreso,
407
+ sc_cuenta_cxc: this.CuentaPorCobrar,
408
+ sc_cuenta_iva: this.CuentaIva,
409
+ sc_cuenta_inventario: this.cuentaInventario,
410
+ sc_cuenta_utilidad: this.cuentaUtilidad,
411
+ sc_cuenta_perdida: this.cuentaPerdida,
412
+ sc_cuenta_pasivo_diferido: this.cuentaPasivoDiferido,
413
+ sc_cuenta_ant: this.cuentAnterior,
414
+ spi_cuenta_sobrante: this.cuentSobrante
415
+ };
416
+ };
417
+ return MEnterprise;
418
+ }(MBasicModel));
419
+
351
420
  var MPersonalNomina = /** @class */ (function (_super) {
352
421
  __extends(MPersonalNomina, _super);
353
422
  function MPersonalNomina(e) {
@@ -6822,7 +6891,7 @@
6822
6891
  * @actualizado: 4-12-20222
6823
6892
  */
6824
6893
  SigespService.prototype.getCurrentCurrency = function () {
6825
- return this.http.get(this.URL + "/dao/cfg/moneda_dao.php?tipo={'actual'}", { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
6894
+ return this.http.get(this.URL + "/dao/cfg/moneda_dao.php?tipo=" + 'actual', { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
6826
6895
  if (res.success) {
6827
6896
  res.data = new MMonedaConfig(res.data);
6828
6897
  }
@@ -6830,6 +6899,22 @@
6830
6899
  }));
6831
6900
  };
6832
6901
  /**
6902
+ * @description Obtiene la linea empresa
6903
+ * @return Observable<IResponse>
6904
+ * @author Dimaly Crespo
6905
+ * @actualizado: 5-12-20222
6906
+ * @tipo
6907
+ */
6908
+ SigespService.prototype.getEnterprise = function (tipo, id) {
6909
+ if (tipo === void 0) { tipo = null; }
6910
+ return this.http.get(this.URL + "/dao/cfg/enterprise_dao.php?", { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
6911
+ if (res.success) {
6912
+ res.data = new MEnterprise(res.data);
6913
+ }
6914
+ return res;
6915
+ }));
6916
+ };
6917
+ /**
6833
6918
  * @description Obtiene los tipos de organizacion
6834
6919
  * @return Observable<IResponse>
6835
6920
  * @author Carlos Albornoz
@@ -7966,75 +8051,6 @@
7966
8051
  },] }
7967
8052
  ];
7968
8053
 
7969
- var MEnterprise = /** @class */ (function (_super) {
7970
- __extends(MEnterprise, _super);
7971
- function MEnterprise(e) {
7972
- var _this = _super.call(this) || this;
7973
- _this.idEmpresa = 0;
7974
- _this.idEnterprise = 0;
7975
- _this.codigo = '';
7976
- _this.razonSocial = '';
7977
- _this.titulo = '';
7978
- _this.logo = '';
7979
- _this.rif = '';
7980
- _this.direccion = '';
7981
- _this.cuentaIngreso = '';
7982
- _this.CuentaPorCobrar = '';
7983
- _this.CuentaIva = '';
7984
- _this.cuentaInventario = '';
7985
- _this.cuentaUtilidad = '';
7986
- _this.cuentaPerdida = '';
7987
- _this.cuentaPasivoDiferido = '';
7988
- _this.cuentAnterior = '';
7989
- _this.cuentSobrante = '';
7990
- if (e) {
7991
- _this.idEmpresa = +e.id_empresa;
7992
- _this.idEnterprise = +e.id_enterprise;
7993
- _this.codigo = e.codigo;
7994
- _this.razonSocial = e.denominacion;
7995
- _this.titulo = e.titulo;
7996
- _this.logo = e.logo;
7997
- _this.rif = e.rif;
7998
- _this.direccion = e.direccion;
7999
- _this.cuentaIngreso = e.spi_cuenta;
8000
- _this.CuentaPorCobrar = e.sc_cuenta_cxc;
8001
- _this.CuentaIva = e.sc_cuenta_iva;
8002
- _this.cuentaInventario = e.sc_cuenta_inventario;
8003
- _this.cuentaUtilidad = e.sc_cuenta_utilidad;
8004
- _this.cuentaPerdida = e.sc_cuenta_perdida;
8005
- _this.cuentaPasivoDiferido = e.sc_cuenta_pasivo_diferido;
8006
- _this.cuentAnterior = e.sc_cuenta_ant;
8007
- _this.cuentSobrante = e.spi_cuenta_sobrante;
8008
- }
8009
- else {
8010
- _this.isNew = true;
8011
- }
8012
- return _this;
8013
- }
8014
- MEnterprise.prototype.dataInterface = function () {
8015
- return {
8016
- id_empresa: this.idEmpresa.toString(),
8017
- id_enterprise: this.idEnterprise.toString(),
8018
- codigo: this.codigo,
8019
- denominacion: this.razonSocial,
8020
- titulo: this.titulo,
8021
- logo: this.logo,
8022
- rif: this.rif,
8023
- direccion: this.direccion,
8024
- spi_cuenta: this.cuentaIngreso,
8025
- sc_cuenta_cxc: this.CuentaPorCobrar,
8026
- sc_cuenta_iva: this.CuentaIva,
8027
- sc_cuenta_inventario: this.cuentaInventario,
8028
- sc_cuenta_utilidad: this.cuentaUtilidad,
8029
- sc_cuenta_perdida: this.cuentaPerdida,
8030
- sc_cuenta_pasivo_diferido: this.cuentaPasivoDiferido,
8031
- sc_cuenta_ant: this.cuentAnterior,
8032
- spi_cuenta_sobrante: this.cuentSobrante
8033
- };
8034
- };
8035
- return MEnterprise;
8036
- }(MBasicModel));
8037
-
8038
8054
  var MAccountMarriage = /** @class */ (function () {
8039
8055
  function MAccountMarriage(marriage) {
8040
8056
  this.idEmpresa = null;