@senior-gestao-pessoas/payroll-core 9.4.0-09265079-8330-4f2f-92dd-7a1c127ae0ac → 9.4.0-0cf4358c-33d1-410a-9833-da0e4b763444

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.
@@ -10508,18 +10508,6 @@
10508
10508
  label: this.translateService.instant("hcm.payroll.historical_pix_account_label_date_change"),
10509
10509
  field: "dateChange",
10510
10510
  },
10511
- {
10512
- label: this.translateService.instant("hcm.payroll.historical_pix_account_label_pix_key_type"),
10513
- field: "pixKeyType.value",
10514
- },
10515
- {
10516
- label: this.translateService.instant("hcm.payroll.historical_pix_account_label_pix_key"),
10517
- field: "pixKey",
10518
- },
10519
- {
10520
- label: this.translateService.instant("hcm.payroll.historical_pix_account_label_percentage"),
10521
- field: "percentage",
10522
- },
10523
10511
  {
10524
10512
  label: this.translateService.instant("hcm.payroll.employees_movimentation_historical_pix_account_label_qtd_account"),
10525
10513
  field: "numberOfPixAccount",
@@ -10540,27 +10528,10 @@
10540
10528
  var _this = this;
10541
10529
  payload.forEach(function (value) {
10542
10530
  value.dateChange = moment$e(value.dateChange).format(_this.dateFormat);
10543
- value.pixKey = _this.formatPixKeyByType(value.pixKeyType, value.pixKey);
10544
- value.percentage = FormatUtilsService.getFormattedPercentage(value.percentage);
10545
10531
  });
10546
10532
  this.onGridLoad(payload);
10547
10533
  this.loading = false;
10548
10534
  };
10549
- HistoricalPixAccountListComponent.prototype.formatPixKeyByType = function (pixKeyType, pixKey) {
10550
- var keyType = pixKeyType ? pixKeyType.key.toUpperCase() : "";
10551
- if (keyType === "TELEPHONE") {
10552
- return FormatUtilsService.getFormattedTelephoneNumber(pixKey);
10553
- }
10554
- else if (keyType === "CPF") {
10555
- return FormatUtilsService.getFormattedCpf(pixKey);
10556
- }
10557
- else if (keyType === "CNPJ") {
10558
- return FormatUtilsService.getFormattedCnpj(pixKey);
10559
- }
10560
- else {
10561
- return pixKey;
10562
- }
10563
- };
10564
10535
  HistoricalPixAccountListComponent.prototype.getMenuActions = function (rowData) {
10565
10536
  var _this = this;
10566
10537
  return [
@@ -10584,6 +10555,25 @@
10584
10555
  }
10585
10556
  },
10586
10557
  },
10558
+ {
10559
+ label: this.translateService.instant("hcm.payroll.edit"),
10560
+ command: function () {
10561
+ if (_this.isAllowToEditHistorical) {
10562
+ var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
10563
+ if (_this.withSidebar) {
10564
+ _this.router.navigate(["historical-pix-account/" + dateChange], {
10565
+ relativeTo: _this.activatedRoute,
10566
+ });
10567
+ }
10568
+ else {
10569
+ _this.enableView.emit(dateChange);
10570
+ }
10571
+ }
10572
+ else {
10573
+ _this.isNotAllowMessage();
10574
+ }
10575
+ },
10576
+ },
10587
10577
  {
10588
10578
  label: this.translateService.instant("hcm.payroll.delete"),
10589
10579
  command: function () {
@@ -10668,6 +10658,13 @@
10668
10658
  enumerable: true,
10669
10659
  configurable: true
10670
10660
  });
10661
+ Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToEditHistorical", {
10662
+ get: function () {
10663
+ return (this.permission["editar"]);
10664
+ },
10665
+ enumerable: true,
10666
+ configurable: true
10667
+ });
10671
10668
  Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToDeleteHistorical", {
10672
10669
  get: function () {
10673
10670
  return (this.permission["excluir"]);