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/bundles/sigesp.umd.js
CHANGED
|
@@ -2713,7 +2713,9 @@
|
|
|
2713
2713
|
_this.estpropri = proben.estpropri;
|
|
2714
2714
|
_this.sigecofCode = proben.codsigcof;
|
|
2715
2715
|
_this.passport = proben.pasaporte;
|
|
2716
|
-
|
|
2716
|
+
if (proben.cuentas) {
|
|
2717
|
+
_this.accounts = proben.cuentas.map(function (e) { return new MProviderBankAccount(e); });
|
|
2718
|
+
}
|
|
2717
2719
|
_this.personType = proben.tipperpro;
|
|
2718
2720
|
_this.webAddress = proben.webpro;
|
|
2719
2721
|
_this.typeDesignation = _this.type == 'P' ? 'PROVEEDOR' : _this.type == 'B' ? 'BENEFICIARIO' : _this.type == 'C' ? 'CONTRATISTA' : _this.type == 'N' ? 'NINGUNO' : 'PROVEEDOR-CONTRATISTA';
|
|
@@ -7504,12 +7506,19 @@
|
|
|
7504
7506
|
};
|
|
7505
7507
|
/**
|
|
7506
7508
|
* @description Obtiene los proveedores y beneficiarios
|
|
7509
|
+
* @Note Si quiere solo los datos basicos use los parametros ('S','P','N')
|
|
7507
7510
|
* @return Observable<IResponse>
|
|
7508
7511
|
* @author Carlos Albornoz
|
|
7512
|
+
* @type ={'P','B','S'}
|
|
7513
|
+
* @destination ={'P','B','C','A','N'}≈{Proveedor,Beneficiario,Contatista,Ambos,Ninguno}
|
|
7514
|
+
* @account ={'S','N'} para traer las cuentas bancarias del proveedor por defecto esta en N
|
|
7515
|
+
* @modificado 17-07-2023
|
|
7509
7516
|
*/
|
|
7510
|
-
SigespService.prototype.getProvidersAndBeneficiaries = function (type) {
|
|
7517
|
+
SigespService.prototype.getProvidersAndBeneficiaries = function (type, destination, account) {
|
|
7511
7518
|
if (type === void 0) { type = null; }
|
|
7512
|
-
|
|
7519
|
+
if (destination === void 0) { destination = null; }
|
|
7520
|
+
if (account === void 0) { account = 'N'; }
|
|
7521
|
+
return this.http.get(this.URL + "/dao/rpc/proveedor_beneficiario_dao.php" + (type ? "?provider_type=" + type : '') + "&destination=" + destination + "&account=" + account, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
|
|
7513
7522
|
if (res.success) {
|
|
7514
7523
|
res.data = res.data.map(function (e) { return new MProviderBeneficiary(e); });
|
|
7515
7524
|
}
|