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.
- package/esm2020/lib/core/interfaces/Configuracion.mjs +1 -1
- package/esm2020/lib/core/models/CFG/Empresa.model.mjs +4 -1
- package/esm2020/lib/core/models/CFG/Enterprise.model.mjs +7 -1
- package/esm2020/lib/sigesp.service.mjs +2 -2
- package/fesm2015/sigesp.mjs +10 -1
- package/fesm2015/sigesp.mjs.map +1 -1
- package/fesm2020/sigesp.mjs +10 -1
- package/fesm2020/sigesp.mjs.map +1 -1
- package/lib/core/interfaces/Configuracion.d.ts +3 -0
- package/lib/core/models/CFG/Empresa.model.d.ts +1 -0
- package/lib/core/models/CFG/Enterprise.model.d.ts +2 -0
- package/package.json +1 -1
package/fesm2020/sigesp.mjs
CHANGED
|
@@ -191,6 +191,7 @@ class MEnterprise extends MBasicModel {
|
|
|
191
191
|
super();
|
|
192
192
|
this.idEmpresa = 0;
|
|
193
193
|
this.idEnterprise = 0;
|
|
194
|
+
this.idProveedor = 0;
|
|
194
195
|
this.codigo = '';
|
|
195
196
|
this.razonSocial = '';
|
|
196
197
|
this.titulo = '';
|
|
@@ -207,6 +208,7 @@ class MEnterprise extends MBasicModel {
|
|
|
207
208
|
this.cuentAnterior = '';
|
|
208
209
|
this.cuentSobrante = '';
|
|
209
210
|
this.diaFechaVencimiento = 0;
|
|
211
|
+
this.cuentaContableProveedor = '';
|
|
210
212
|
if (e) {
|
|
211
213
|
this.idEmpresa = +e.id_empresa;
|
|
212
214
|
this.idEnterprise = +e.id_enterprise;
|
|
@@ -226,6 +228,8 @@ class MEnterprise extends MBasicModel {
|
|
|
226
228
|
this.cuentAnterior = e.sc_cuenta_ant;
|
|
227
229
|
this.cuentSobrante = e.spi_cuenta_sobrante;
|
|
228
230
|
this.diaFechaVencimiento = +e.diafecven;
|
|
231
|
+
this.idProveedor = +e.id_proveedor;
|
|
232
|
+
this.cuentaContableProveedor = e.sc_cuenta;
|
|
229
233
|
}
|
|
230
234
|
else {
|
|
231
235
|
this.isNew = true;
|
|
@@ -235,6 +239,7 @@ class MEnterprise extends MBasicModel {
|
|
|
235
239
|
return {
|
|
236
240
|
id_empresa: this.idEmpresa.toString(),
|
|
237
241
|
id_enterprise: this.idEnterprise.toString(),
|
|
242
|
+
id_proveedor: this.idProveedor.toString(),
|
|
238
243
|
codigo: this.codigo,
|
|
239
244
|
denominacion: this.razonSocial,
|
|
240
245
|
titulo: this.titulo,
|
|
@@ -251,6 +256,7 @@ class MEnterprise extends MBasicModel {
|
|
|
251
256
|
sc_cuenta_ant: this.cuentAnterior,
|
|
252
257
|
spi_cuenta_sobrante: this.cuentSobrante,
|
|
253
258
|
diafecven: this.diaFechaVencimiento.toString(),
|
|
259
|
+
sc_cuenta: this.cuentaContableProveedor
|
|
254
260
|
};
|
|
255
261
|
}
|
|
256
262
|
}
|
|
@@ -4049,6 +4055,7 @@ class MEmpresa extends MBasicModel {
|
|
|
4049
4055
|
constructor(e) {
|
|
4050
4056
|
super();
|
|
4051
4057
|
this.idEmpresa = 0;
|
|
4058
|
+
this.idProveedor = 0;
|
|
4052
4059
|
this.rif = '';
|
|
4053
4060
|
this.nit = '';
|
|
4054
4061
|
this.nombre = '';
|
|
@@ -4114,6 +4121,7 @@ class MEmpresa extends MBasicModel {
|
|
|
4114
4121
|
this.descripcionMunicipio = e.desmun;
|
|
4115
4122
|
this.descripcionParroquia = e.despar;
|
|
4116
4123
|
this.descripcionComunidad = e.descom;
|
|
4124
|
+
this.idProveedor = +e.id_proveedor;
|
|
4117
4125
|
this.tipoEmpresa = +e.tipoempresa;
|
|
4118
4126
|
}
|
|
4119
4127
|
else {
|
|
@@ -4155,6 +4163,7 @@ class MEmpresa extends MBasicModel {
|
|
|
4155
4163
|
nroivss: this.numeroSeguroSocial,
|
|
4156
4164
|
presupuesto: this.estatusPresupuesto ? '1' : '0',
|
|
4157
4165
|
tipoempresa: this.tipoEmpresa.toString(),
|
|
4166
|
+
id_proveedor: this.idProveedor.toString(),
|
|
4158
4167
|
};
|
|
4159
4168
|
}
|
|
4160
4169
|
}
|
|
@@ -7753,7 +7762,7 @@ class SigespService {
|
|
|
7753
7762
|
* @modificado 17-07-2023
|
|
7754
7763
|
*/
|
|
7755
7764
|
getProvidersAndBeneficiaries(type = 'default', idEnterprise, destination = null, account = 'N') {
|
|
7756
|
-
return this.http.get(`${this.URL}/dao/rpc/proveedor_beneficiario_dao.php
|
|
7765
|
+
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) => {
|
|
7757
7766
|
if (res.success) {
|
|
7758
7767
|
res.data = res.data.map(e => new MProviderBeneficiary(e));
|
|
7759
7768
|
}
|