@senior-gestao-pessoas/payroll-core 9.2.0-2878782e-f402-4a82-a001-6491bdb0f359 → 9.2.0-9f30ae11-c2bd-4f8e-8979-920e6996032d

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.
@@ -10410,7 +10410,7 @@
10410
10410
  this.messageService = messageService;
10411
10411
  this.historicalPixAccountListService = historicalPixAccountListService;
10412
10412
  this.endPoint = "hcm/payroll/queries/historicalEmployeePixQuery";
10413
- this.keyPayload = "historicalDependentJudicialPensionPix";
10413
+ this.keyPayload = "historicalEmployeePix";
10414
10414
  this.withSidebar = true;
10415
10415
  this.enableView = new core.EventEmitter();
10416
10416
  this.ngUnsubscribe = new rxjs.Subject();
@@ -10432,6 +10432,10 @@
10432
10432
  label: this.translateService.instant("hcm.payroll.historical_pix_account_label_percentage"),
10433
10433
  field: "percentage",
10434
10434
  },
10435
+ {
10436
+ label: this.translateService.instant("hcm.payroll.employees_movimentation_historical_pix_account_label_qtd_account"),
10437
+ field: "numberOfPixAccount",
10438
+ },
10435
10439
  ];
10436
10440
  }
10437
10441
  HistoricalPixAccountListComponent.prototype.ngOnInit = function () {
@@ -10448,10 +10452,27 @@
10448
10452
  var _this = this;
10449
10453
  payload.forEach(function (value) {
10450
10454
  value.dateChange = moment$e(value.dateChange).format(_this.dateFormat);
10455
+ value.pixKey = _this.formatPixKeyByType(value.pixKeyType, value.pixKey);
10456
+ value.percentage = FormatUtilsService.getFormattedPercentage(value.percentage);
10451
10457
  });
10452
10458
  this.onGridLoad(payload);
10453
10459
  this.loading = false;
10454
10460
  };
10461
+ HistoricalPixAccountListComponent.prototype.formatPixKeyByType = function (pixKeyType, pixKey) {
10462
+ var keyType = pixKeyType ? pixKeyType.key.toUpperCase() : "";
10463
+ if (keyType === "TELEPHONE") {
10464
+ return FormatUtilsService.getFormattedTelephoneNumber(pixKey);
10465
+ }
10466
+ else if (keyType === "CPF") {
10467
+ return FormatUtilsService.getFormattedCpf(pixKey);
10468
+ }
10469
+ else if (keyType === "CNPJ") {
10470
+ return FormatUtilsService.getFormattedCnpj(pixKey);
10471
+ }
10472
+ else {
10473
+ return pixKey;
10474
+ }
10475
+ };
10455
10476
  HistoricalPixAccountListComponent.prototype.getMenuActions = function (rowData) {
10456
10477
  var _this = this;
10457
10478
  return [