@senior-gestao-empresarial/erpx-components 3.27.0 → 3.27.1

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.
@@ -1649,16 +1649,19 @@
1649
1649
  {
1650
1650
  var baseTaxFormGroup = getBaseTaxItemFromGroup({ group: group }).formGroup;
1651
1651
  rxjs.combineLatest([
1652
+ baseTaxFormGroup
1653
+ .get('reducaoAliquotaGovernamental')
1654
+ .valueChanges.pipe(operators.startWith(baseTaxFormGroup.get('reducaoAliquotaGovernamental').value), operators.distinctUntilChanged()),
1652
1655
  baseTaxFormGroup
1653
1656
  .get('aliquotaEfetiva')
1654
1657
  .valueChanges.pipe(operators.startWith(baseTaxFormGroup.get('aliquotaEfetiva').value), operators.distinctUntilChanged())
1655
1658
  ])
1656
1659
  .pipe(operators.skip(1), operators.map(function (_a) {
1657
- var _b = __read(_a, 1), effectiveTaxRate = _b[0];
1658
- return [new BigNumber(effectiveTaxRate)];
1660
+ var _b = __read(_a, 2), governamentalTaxRateReduction = _b[0], effectiveTaxRate = _b[1];
1661
+ return [new BigNumber(governamentalTaxRateReduction), new BigNumber(effectiveTaxRate)];
1659
1662
  }), operators.map(function (_a) {
1660
- var _b = __read(_a, 1), effectiveTaxRate = _b[0];
1661
- if (effectiveTaxRate.isNaN())
1663
+ var _b = __read(_a, 2), governamentalTaxRateReduction = _b[0], effectiveTaxRate = _b[1];
1664
+ if (governamentalTaxRateReduction.isNaN())
1662
1665
  return null;
1663
1666
  return effectiveTaxRate.decimalPlaces(4).toNumber();
1664
1667
  }), operators.filter(function (taxRate) { return taxRate !== formGroup.get('aliquota').value; }))