sigesp 1.1.62-20250814 → 1.1.64-202508145

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.
@@ -192,6 +192,7 @@ class MEnterprise extends MBasicModel {
192
192
  super();
193
193
  this.idEmpresa = 0;
194
194
  this.idEnterprise = 0;
195
+ this.idProveedor = 0;
195
196
  this.codigo = '';
196
197
  this.razonSocial = '';
197
198
  this.titulo = '';
@@ -208,6 +209,7 @@ class MEnterprise extends MBasicModel {
208
209
  this.cuentAnterior = '';
209
210
  this.cuentSobrante = '';
210
211
  this.diaFechaVencimiento = 0;
212
+ this.cuentaContableProveedor = '';
211
213
  if (e) {
212
214
  this.idEmpresa = +e.id_empresa;
213
215
  this.idEnterprise = +e.id_enterprise;
@@ -227,6 +229,8 @@ class MEnterprise extends MBasicModel {
227
229
  this.cuentAnterior = e.sc_cuenta_ant;
228
230
  this.cuentSobrante = e.spi_cuenta_sobrante;
229
231
  this.diaFechaVencimiento = +e.diafecven;
232
+ this.idProveedor = +e.id_proveedor;
233
+ this.cuentaContableProveedor = e.sc_cuenta;
230
234
  }
231
235
  else {
232
236
  this.isNew = true;
@@ -236,6 +240,7 @@ class MEnterprise extends MBasicModel {
236
240
  return {
237
241
  id_empresa: this.idEmpresa.toString(),
238
242
  id_enterprise: this.idEnterprise.toString(),
243
+ id_proveedor: this.idProveedor.toString(),
239
244
  codigo: this.codigo,
240
245
  denominacion: this.razonSocial,
241
246
  titulo: this.titulo,
@@ -252,6 +257,7 @@ class MEnterprise extends MBasicModel {
252
257
  sc_cuenta_ant: this.cuentAnterior,
253
258
  spi_cuenta_sobrante: this.cuentSobrante,
254
259
  diafecven: this.diaFechaVencimiento.toString(),
260
+ sc_cuenta: this.cuentaContableProveedor
255
261
  };
256
262
  }
257
263
  }
@@ -4060,6 +4066,7 @@ class MEmpresa extends MBasicModel {
4060
4066
  constructor(e) {
4061
4067
  super();
4062
4068
  this.idEmpresa = 0;
4069
+ this.idProveedor = 0;
4063
4070
  this.rif = '';
4064
4071
  this.nit = '';
4065
4072
  this.nombre = '';
@@ -4125,6 +4132,7 @@ class MEmpresa extends MBasicModel {
4125
4132
  this.descripcionMunicipio = e.desmun;
4126
4133
  this.descripcionParroquia = e.despar;
4127
4134
  this.descripcionComunidad = e.descom;
4135
+ this.idProveedor = +e.id_proveedor;
4128
4136
  this.tipoEmpresa = +e.tipoempresa;
4129
4137
  }
4130
4138
  else {
@@ -4166,6 +4174,7 @@ class MEmpresa extends MBasicModel {
4166
4174
  nroivss: this.numeroSeguroSocial,
4167
4175
  presupuesto: this.estatusPresupuesto ? '1' : '0',
4168
4176
  tipoempresa: this.tipoEmpresa.toString(),
4177
+ id_proveedor: this.idProveedor.toString(),
4169
4178
  };
4170
4179
  }
4171
4180
  }
@@ -7786,7 +7795,7 @@ class SigespService {
7786
7795
  * @modificado 17-07-2023
7787
7796
  */
7788
7797
  getProvidersAndBeneficiaries(type = 'default', idEnterprise, destination = null, account = 'N') {
7789
- return this.http.get(`${this.URL}/dao/rpc/proveedor_beneficiario_dao.php${type ? `?provider_type=${type}` : ''}&e=${idEnterprise}&destination=${destination}&account=${account}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
7798
+ return this.http.get(`${this.URL}/dao/rpc/proveedor_beneficiario_dao.php?provider_type=${type}&e=${idEnterprise}&destination=${destination}&account=${account}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
7790
7799
  if (res.success) {
7791
7800
  res.data = res.data.map(e => new MProviderBeneficiary(e));
7792
7801
  }