sigesp 0.9.47-20230717 → 0.9.49-20230719

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.
@@ -2290,10 +2290,18 @@ class MProviderBeneficiary extends MBasicModel {
2290
2290
  this.type = proben.tippro;
2291
2291
  this.observation = proben.obspro;
2292
2292
  this.contribuiterType = proben.tipconpro;
2293
- this.stateCode = proben.codest.trim();
2294
- this.parishCode = proben.codpar.trim();
2295
- this.countryCode = proben.codpai.trim();
2296
- this.municipalityCode = proben.codmun.trim();
2293
+ if (proben.codest) {
2294
+ this.stateCode = proben.codest.trim();
2295
+ }
2296
+ if (proben.codpar) {
2297
+ this.stateCode = proben.codpar.trim();
2298
+ }
2299
+ if (proben.codpai) {
2300
+ this.countryCode = proben.codpai.trim();
2301
+ }
2302
+ if (proben.codmun) {
2303
+ this.municipalityCode = proben.codmun.trim();
2304
+ }
2297
2305
  this.currencyCode = proben.codmon;
2298
2306
  this.organizationType = parseInt(proben.id_tiporg);
2299
2307
  this.systemLogDate = proben.fecregsis;
@@ -6878,7 +6886,7 @@ class SigespService {
6878
6886
  * @account ={'S','N'} para traer las cuentas bancarias del proveedor por defecto esta en N
6879
6887
  * @modificado 17-07-2023
6880
6888
  */
6881
- getProvidersAndBeneficiaries(type = null, destination = null, account = 'N') {
6889
+ getProvidersAndBeneficiaries(type = 'default', destination = null, account = 'N') {
6882
6890
  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) => {
6883
6891
  if (res.success) {
6884
6892
  res.data = res.data.map(e => new MProviderBeneficiary(e));