sigesp 0.9.46-20230713 → 0.9.47-20230717
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 +12 -3
- package/bundles/sigesp.umd.js.map +1 -1
- package/bundles/sigesp.umd.min.js +1 -1
- package/bundles/sigesp.umd.min.js.map +1 -1
- package/esm2015/lib/core/models/RPC/providerBeneficiary.model.js +4 -2
- package/esm2015/lib/sigesp.service.js +8 -3
- package/fesm2015/sigesp.js +10 -3
- package/fesm2015/sigesp.js.map +1 -1
- package/lib/sigesp.service.d.ts +6 -1
- package/package.json +1 -1
package/fesm2015/sigesp.js
CHANGED
|
@@ -2324,7 +2324,9 @@ class MProviderBeneficiary extends MBasicModel {
|
|
|
2324
2324
|
this.estpropri = proben.estpropri;
|
|
2325
2325
|
this.sigecofCode = proben.codsigcof;
|
|
2326
2326
|
this.passport = proben.pasaporte;
|
|
2327
|
-
|
|
2327
|
+
if (proben.cuentas) {
|
|
2328
|
+
this.accounts = proben.cuentas.map(e => new MProviderBankAccount(e));
|
|
2329
|
+
}
|
|
2328
2330
|
this.personType = proben.tipperpro;
|
|
2329
2331
|
this.webAddress = proben.webpro;
|
|
2330
2332
|
this.typeDesignation = this.type == 'P' ? 'PROVEEDOR' : this.type == 'B' ? 'BENEFICIARIO' : this.type == 'C' ? 'CONTRATISTA' : this.type == 'N' ? 'NINGUNO' : 'PROVEEDOR-CONTRATISTA';
|
|
@@ -6868,11 +6870,16 @@ class SigespService {
|
|
|
6868
6870
|
}
|
|
6869
6871
|
/**
|
|
6870
6872
|
* @description Obtiene los proveedores y beneficiarios
|
|
6873
|
+
* @Note Si quiere solo los datos basicos use los parametros ('S','P','N')
|
|
6871
6874
|
* @return Observable<IResponse>
|
|
6872
6875
|
* @author Carlos Albornoz
|
|
6876
|
+
* @type ={'P','B','S'}
|
|
6877
|
+
* @destination ={'P','B','C','A','N'}≈{Proveedor,Beneficiario,Contatista,Ambos,Ninguno}
|
|
6878
|
+
* @account ={'S','N'} para traer las cuentas bancarias del proveedor por defecto esta en N
|
|
6879
|
+
* @modificado 17-07-2023
|
|
6873
6880
|
*/
|
|
6874
|
-
getProvidersAndBeneficiaries(type = null) {
|
|
6875
|
-
return this.http.get(`${this.URL}/dao/rpc/proveedor_beneficiario_dao.php${type ? `?provider_type=${type}` : ''}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
6881
|
+
getProvidersAndBeneficiaries(type = null, destination = null, account = 'N') {
|
|
6882
|
+
return this.http.get(`${this.URL}/dao/rpc/proveedor_beneficiario_dao.php${type ? `?provider_type=${type}` : ''}&destination=${destination}&account=${account}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
6876
6883
|
if (res.success) {
|
|
6877
6884
|
res.data = res.data.map(e => new MProviderBeneficiary(e));
|
|
6878
6885
|
}
|