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.
@@ -61,6 +61,72 @@ class MBasicModel {
61
61
  }
62
62
  }
63
63
 
64
+ class MEnterprise extends MBasicModel {
65
+ constructor(e) {
66
+ super();
67
+ this.idEmpresa = 0;
68
+ this.idEnterprise = 0;
69
+ this.codigo = '';
70
+ this.razonSocial = '';
71
+ this.titulo = '';
72
+ this.logo = '';
73
+ this.rif = '';
74
+ this.direccion = '';
75
+ this.cuentaIngreso = '';
76
+ this.CuentaPorCobrar = '';
77
+ this.CuentaIva = '';
78
+ this.cuentaInventario = '';
79
+ this.cuentaUtilidad = '';
80
+ this.cuentaPerdida = '';
81
+ this.cuentaPasivoDiferido = '';
82
+ this.cuentAnterior = '';
83
+ this.cuentSobrante = '';
84
+ if (e) {
85
+ this.idEmpresa = +e.id_empresa;
86
+ this.idEnterprise = +e.id_enterprise;
87
+ this.codigo = e.codigo;
88
+ this.razonSocial = e.denominacion;
89
+ this.titulo = e.titulo;
90
+ this.logo = e.logo;
91
+ this.rif = e.rif;
92
+ this.direccion = e.direccion;
93
+ this.cuentaIngreso = e.spi_cuenta;
94
+ this.CuentaPorCobrar = e.sc_cuenta_cxc;
95
+ this.CuentaIva = e.sc_cuenta_iva;
96
+ this.cuentaInventario = e.sc_cuenta_inventario;
97
+ this.cuentaUtilidad = e.sc_cuenta_utilidad;
98
+ this.cuentaPerdida = e.sc_cuenta_perdida;
99
+ this.cuentaPasivoDiferido = e.sc_cuenta_pasivo_diferido;
100
+ this.cuentAnterior = e.sc_cuenta_ant;
101
+ this.cuentSobrante = e.spi_cuenta_sobrante;
102
+ }
103
+ else {
104
+ this.isNew = true;
105
+ }
106
+ }
107
+ dataInterface() {
108
+ return {
109
+ id_empresa: this.idEmpresa.toString(),
110
+ id_enterprise: this.idEnterprise.toString(),
111
+ codigo: this.codigo,
112
+ denominacion: this.razonSocial,
113
+ titulo: this.titulo,
114
+ logo: this.logo,
115
+ rif: this.rif,
116
+ direccion: this.direccion,
117
+ spi_cuenta: this.cuentaIngreso,
118
+ sc_cuenta_cxc: this.CuentaPorCobrar,
119
+ sc_cuenta_iva: this.CuentaIva,
120
+ sc_cuenta_inventario: this.cuentaInventario,
121
+ sc_cuenta_utilidad: this.cuentaUtilidad,
122
+ sc_cuenta_perdida: this.cuentaPerdida,
123
+ sc_cuenta_pasivo_diferido: this.cuentaPasivoDiferido,
124
+ sc_cuenta_ant: this.cuentAnterior,
125
+ spi_cuenta_sobrante: this.cuentSobrante
126
+ };
127
+ }
128
+ }
129
+
64
130
  class MPersonalNomina extends MBasicModel {
65
131
  constructor(e = null) {
66
132
  super();
@@ -6220,7 +6286,7 @@ class SigespService {
6220
6286
  * @actualizado: 4-12-20222
6221
6287
  */
6222
6288
  getCurrentCurrency() {
6223
- return this.http.get(`${this.URL}/dao/cfg/moneda_dao.php?tipo={'actual'}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
6289
+ return this.http.get(`${this.URL}/dao/cfg/moneda_dao.php?tipo=${'actual'}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
6224
6290
  if (res.success) {
6225
6291
  res.data = new MMonedaConfig(res.data);
6226
6292
  }
@@ -6228,6 +6294,21 @@ class SigespService {
6228
6294
  }));
6229
6295
  }
6230
6296
  /**
6297
+ * @description Obtiene la linea empresa
6298
+ * @return Observable<IResponse>
6299
+ * @author Dimaly Crespo
6300
+ * @actualizado: 5-12-20222
6301
+ * @tipo
6302
+ */
6303
+ getEnterprise(tipo = null, id) {
6304
+ return this.http.get(`${this.URL}/dao/cfg/enterprise_dao.php?`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
6305
+ if (res.success) {
6306
+ res.data = new MEnterprise(res.data);
6307
+ }
6308
+ return res;
6309
+ }));
6310
+ }
6311
+ /**
6231
6312
  * @description Obtiene los tipos de organizacion
6232
6313
  * @return Observable<IResponse>
6233
6314
  * @author Carlos Albornoz
@@ -7316,72 +7397,6 @@ AppModule.decorators = [
7316
7397
  },] }
7317
7398
  ];
7318
7399
 
7319
- class MEnterprise extends MBasicModel {
7320
- constructor(e) {
7321
- super();
7322
- this.idEmpresa = 0;
7323
- this.idEnterprise = 0;
7324
- this.codigo = '';
7325
- this.razonSocial = '';
7326
- this.titulo = '';
7327
- this.logo = '';
7328
- this.rif = '';
7329
- this.direccion = '';
7330
- this.cuentaIngreso = '';
7331
- this.CuentaPorCobrar = '';
7332
- this.CuentaIva = '';
7333
- this.cuentaInventario = '';
7334
- this.cuentaUtilidad = '';
7335
- this.cuentaPerdida = '';
7336
- this.cuentaPasivoDiferido = '';
7337
- this.cuentAnterior = '';
7338
- this.cuentSobrante = '';
7339
- if (e) {
7340
- this.idEmpresa = +e.id_empresa;
7341
- this.idEnterprise = +e.id_enterprise;
7342
- this.codigo = e.codigo;
7343
- this.razonSocial = e.denominacion;
7344
- this.titulo = e.titulo;
7345
- this.logo = e.logo;
7346
- this.rif = e.rif;
7347
- this.direccion = e.direccion;
7348
- this.cuentaIngreso = e.spi_cuenta;
7349
- this.CuentaPorCobrar = e.sc_cuenta_cxc;
7350
- this.CuentaIva = e.sc_cuenta_iva;
7351
- this.cuentaInventario = e.sc_cuenta_inventario;
7352
- this.cuentaUtilidad = e.sc_cuenta_utilidad;
7353
- this.cuentaPerdida = e.sc_cuenta_perdida;
7354
- this.cuentaPasivoDiferido = e.sc_cuenta_pasivo_diferido;
7355
- this.cuentAnterior = e.sc_cuenta_ant;
7356
- this.cuentSobrante = e.spi_cuenta_sobrante;
7357
- }
7358
- else {
7359
- this.isNew = true;
7360
- }
7361
- }
7362
- dataInterface() {
7363
- return {
7364
- id_empresa: this.idEmpresa.toString(),
7365
- id_enterprise: this.idEnterprise.toString(),
7366
- codigo: this.codigo,
7367
- denominacion: this.razonSocial,
7368
- titulo: this.titulo,
7369
- logo: this.logo,
7370
- rif: this.rif,
7371
- direccion: this.direccion,
7372
- spi_cuenta: this.cuentaIngreso,
7373
- sc_cuenta_cxc: this.CuentaPorCobrar,
7374
- sc_cuenta_iva: this.CuentaIva,
7375
- sc_cuenta_inventario: this.cuentaInventario,
7376
- sc_cuenta_utilidad: this.cuentaUtilidad,
7377
- sc_cuenta_perdida: this.cuentaPerdida,
7378
- sc_cuenta_pasivo_diferido: this.cuentaPasivoDiferido,
7379
- sc_cuenta_ant: this.cuentAnterior,
7380
- spi_cuenta_sobrante: this.cuentSobrante
7381
- };
7382
- }
7383
- }
7384
-
7385
7400
  class MAccountMarriage {
7386
7401
  constructor(marriage) {
7387
7402
  this.idEmpresa = null;