@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.
@@ -10244,7 +10244,7 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
10244
10244
  this.messageService = messageService;
10245
10245
  this.historicalPixAccountListService = historicalPixAccountListService;
10246
10246
  this.endPoint = "hcm/payroll/queries/historicalEmployeePixQuery";
10247
- this.keyPayload = "historicalDependentJudicialPensionPix";
10247
+ this.keyPayload = "historicalEmployeePix";
10248
10248
  this.withSidebar = true;
10249
10249
  this.enableView = new EventEmitter();
10250
10250
  this.ngUnsubscribe = new Subject();
@@ -10266,6 +10266,10 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
10266
10266
  label: this.translateService.instant("hcm.payroll.historical_pix_account_label_percentage"),
10267
10267
  field: "percentage",
10268
10268
  },
10269
+ {
10270
+ label: this.translateService.instant("hcm.payroll.employees_movimentation_historical_pix_account_label_qtd_account"),
10271
+ field: "numberOfPixAccount",
10272
+ },
10269
10273
  ];
10270
10274
  }
10271
10275
  HistoricalPixAccountListComponent.prototype.ngOnInit = function () {
@@ -10282,10 +10286,27 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
10282
10286
  var _this = this;
10283
10287
  payload.forEach(function (value) {
10284
10288
  value.dateChange = moment$e(value.dateChange).format(_this.dateFormat);
10289
+ value.pixKey = _this.formatPixKeyByType(value.pixKeyType, value.pixKey);
10290
+ value.percentage = FormatUtilsService.getFormattedPercentage(value.percentage);
10285
10291
  });
10286
10292
  this.onGridLoad(payload);
10287
10293
  this.loading = false;
10288
10294
  };
10295
+ HistoricalPixAccountListComponent.prototype.formatPixKeyByType = function (pixKeyType, pixKey) {
10296
+ var keyType = pixKeyType ? pixKeyType.key.toUpperCase() : "";
10297
+ if (keyType === "TELEPHONE") {
10298
+ return FormatUtilsService.getFormattedTelephoneNumber(pixKey);
10299
+ }
10300
+ else if (keyType === "CPF") {
10301
+ return FormatUtilsService.getFormattedCpf(pixKey);
10302
+ }
10303
+ else if (keyType === "CNPJ") {
10304
+ return FormatUtilsService.getFormattedCnpj(pixKey);
10305
+ }
10306
+ else {
10307
+ return pixKey;
10308
+ }
10309
+ };
10289
10310
  HistoricalPixAccountListComponent.prototype.getMenuActions = function (rowData) {
10290
10311
  var _this = this;
10291
10312
  return [