sigesp 0.9.46-20230713 → 0.9.48-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 +24 -7
- 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 +16 -6
- package/esm2015/lib/sigesp.service.js +8 -3
- package/fesm2015/sigesp.js +22 -7
- 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
|
@@ -2679,10 +2679,18 @@
|
|
|
2679
2679
|
_this.type = proben.tippro;
|
|
2680
2680
|
_this.observation = proben.obspro;
|
|
2681
2681
|
_this.contribuiterType = proben.tipconpro;
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2682
|
+
if (proben.codest) {
|
|
2683
|
+
_this.stateCode = proben.codest.trim();
|
|
2684
|
+
}
|
|
2685
|
+
if (proben.codpar) {
|
|
2686
|
+
_this.stateCode = proben.codpar.trim();
|
|
2687
|
+
}
|
|
2688
|
+
if (proben.codpai) {
|
|
2689
|
+
_this.countryCode = proben.codpai.trim();
|
|
2690
|
+
}
|
|
2691
|
+
if (proben.codmun) {
|
|
2692
|
+
_this.municipalityCode = proben.codmun.trim();
|
|
2693
|
+
}
|
|
2686
2694
|
_this.currencyCode = proben.codmon;
|
|
2687
2695
|
_this.organizationType = parseInt(proben.id_tiporg);
|
|
2688
2696
|
_this.systemLogDate = proben.fecregsis;
|
|
@@ -2713,7 +2721,9 @@
|
|
|
2713
2721
|
_this.estpropri = proben.estpropri;
|
|
2714
2722
|
_this.sigecofCode = proben.codsigcof;
|
|
2715
2723
|
_this.passport = proben.pasaporte;
|
|
2716
|
-
|
|
2724
|
+
if (proben.cuentas) {
|
|
2725
|
+
_this.accounts = proben.cuentas.map(function (e) { return new MProviderBankAccount(e); });
|
|
2726
|
+
}
|
|
2717
2727
|
_this.personType = proben.tipperpro;
|
|
2718
2728
|
_this.webAddress = proben.webpro;
|
|
2719
2729
|
_this.typeDesignation = _this.type == 'P' ? 'PROVEEDOR' : _this.type == 'B' ? 'BENEFICIARIO' : _this.type == 'C' ? 'CONTRATISTA' : _this.type == 'N' ? 'NINGUNO' : 'PROVEEDOR-CONTRATISTA';
|
|
@@ -7504,12 +7514,19 @@
|
|
|
7504
7514
|
};
|
|
7505
7515
|
/**
|
|
7506
7516
|
* @description Obtiene los proveedores y beneficiarios
|
|
7517
|
+
* @Note Si quiere solo los datos basicos use los parametros ('S','P','N')
|
|
7507
7518
|
* @return Observable<IResponse>
|
|
7508
7519
|
* @author Carlos Albornoz
|
|
7520
|
+
* @type ={'P','B','S'}
|
|
7521
|
+
* @destination ={'P','B','C','A','N'}≈{Proveedor,Beneficiario,Contatista,Ambos,Ninguno}
|
|
7522
|
+
* @account ={'S','N'} para traer las cuentas bancarias del proveedor por defecto esta en N
|
|
7523
|
+
* @modificado 17-07-2023
|
|
7509
7524
|
*/
|
|
7510
|
-
SigespService.prototype.getProvidersAndBeneficiaries = function (type) {
|
|
7525
|
+
SigespService.prototype.getProvidersAndBeneficiaries = function (type, destination, account) {
|
|
7511
7526
|
if (type === void 0) { type = null; }
|
|
7512
|
-
|
|
7527
|
+
if (destination === void 0) { destination = null; }
|
|
7528
|
+
if (account === void 0) { account = 'N'; }
|
|
7529
|
+
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
7530
|
if (res.success) {
|
|
7514
7531
|
res.data = res.data.map(function (e) { return new MProviderBeneficiary(e); });
|
|
7515
7532
|
}
|