@senior-gestao-empresarial/erpx-components 3.33.0 → 3.33.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.
@@ -1844,74 +1844,6 @@
1844
1844
  }
1845
1845
  }
1846
1846
  break;
1847
- case exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO:
1848
- {
1849
- switch (documentType) {
1850
- case exports.EnumTipoDocumento.NF_ENTRADA:
1851
- case exports.EnumTipoDocumento.NF_ENTRADA_AJUSTE:
1852
- case exports.EnumTipoDocumento.NF_ENTRADA_COMPLEMENTAR:
1853
- case exports.EnumTipoDocumento.NF_ENTRADA_CREDITO:
1854
- case exports.EnumTipoDocumento.NF_SAIDA:
1855
- case exports.EnumTipoDocumento.NF_SAIDA_AJUSTE:
1856
- case exports.EnumTipoDocumento.NF_SAIDA_COMPLEMENTAR:
1857
- case exports.EnumTipoDocumento.NF_SAIDA_DEBITO:
1858
- {
1859
- var baseTaxFormGroup = getBaseTaxItemFromGroup({ group: group }).formGroup;
1860
- var dataKey_1 = formField.find(function (field) { return field.name === 'classificacaoTributaria'; }).dataKey;
1861
- rxjs.combineLatest([
1862
- baseTaxFormGroup
1863
- .get('valor')
1864
- .valueChanges.pipe(operators.startWith(baseTaxFormGroup.get('valor').value), operators.distinctUntilChanged()),
1865
- formGroup
1866
- .get('aliquota')
1867
- .valueChanges.pipe(operators.startWith(formGroup.get('aliquota').value), operators.distinctUntilChanged()),
1868
- formGroup.get('classificacaoTributaria').valueChanges.pipe(operators.startWith(formGroup.get('classificacaoTributaria').value), operators.distinctUntilChanged(function (old, current) { return (old === null || old === void 0 ? void 0 : old[dataKey_1]) === (current === null || current === void 0 ? void 0 : current[dataKey_1]); }))
1869
- ])
1870
- .pipe(operators.skip(1), operators.map(function (_a) {
1871
- var _b = __read(_a, 3), baseTaxTaxAmount = _b[0], taxRate = _b[1], taxClassification = _b[2];
1872
- return [new BigNumber(baseTaxTaxAmount), new BigNumber(taxRate), taxClassification];
1873
- }), operators.map(function (_a) {
1874
- var _b = __read(_a, 3), baseTaxTaxAmount = _b[0], taxRate = _b[1], taxClassification = _b[2];
1875
- if (taxRate.isNaN() && !taxClassification)
1876
- return null;
1877
- return baseTaxTaxAmount.decimalPlaces(2).toNumber();
1878
- }), operators.filter(function (taxableBase) { return taxableBase !== formGroup.get('baseCalculo').value; }))
1879
- .subscribe(function (taxableBase) {
1880
- formGroup.get('baseCalculo').setValue(taxableBase);
1881
- });
1882
- }
1883
- break;
1884
- case exports.EnumTipoDocumento.PEDIDO_COMPRA:
1885
- case exports.EnumTipoDocumento.PEDIDO_VENDA:
1886
- {
1887
- var baseTaxFormGroup = getBaseTaxItemFromGroup({ group: group }).formGroup;
1888
- rxjs.combineLatest([
1889
- baseTaxFormGroup
1890
- .get('valor')
1891
- .valueChanges.pipe(operators.startWith(baseTaxFormGroup.get('valor').value), operators.distinctUntilChanged()),
1892
- formGroup
1893
- .get('aliquota')
1894
- .valueChanges.pipe(operators.startWith(formGroup.get('aliquota').value), operators.distinctUntilChanged())
1895
- ])
1896
- .pipe(operators.skip(1), operators.filter(function () { return new BigNumber(formGroup.get('baseCalculo').value).isNaN(); }), operators.map(function (_a) {
1897
- var _b = __read(_a, 2), baseTaxTaxAmount = _b[0], taxRate = _b[1];
1898
- return [new BigNumber(baseTaxTaxAmount), new BigNumber(taxRate)];
1899
- }), operators.map(function (_a) {
1900
- var _b = __read(_a, 2), baseTaxTaxAmount = _b[0], taxRate = _b[1];
1901
- if (taxRate.isNaN())
1902
- return null;
1903
- return baseTaxTaxAmount.decimalPlaces(2).toNumber();
1904
- }), operators.filter(function (taxableBase) { return taxableBase !== formGroup.get('baseCalculo').value; }))
1905
- .subscribe(function (taxableBase) {
1906
- formGroup.get('baseCalculo').setValue(taxableBase);
1907
- });
1908
- }
1909
- break;
1910
- default:
1911
- throw new Error("Regra TaxableBaseCalculationRule n\u00E3o implementada para o imposto " + taxType + ", documento " + documentType + ".");
1912
- }
1913
- }
1914
- break;
1915
1847
  case exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR:
1916
1848
  case exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR:
1917
1849
  case exports.EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR:
@@ -2101,10 +2033,6 @@
2101
2033
  }
2102
2034
  ],
2103
2035
  _b[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
2104
- {
2105
- field: exports.EnumCampoTributo.BaseCalculo,
2106
- rule: this.taxableBaseCalculationRule
2107
- },
2108
2036
  {
2109
2037
  field: exports.EnumCampoTributo.Valor,
2110
2038
  rule: this.taxAmountCalculationRule
@@ -2325,10 +2253,6 @@
2325
2253
  }
2326
2254
  ],
2327
2255
  _c[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
2328
- {
2329
- field: exports.EnumCampoTributo.BaseCalculo,
2330
- rule: this.taxableBaseCalculationRule
2331
- },
2332
2256
  {
2333
2257
  field: exports.EnumCampoTributo.Valor,
2334
2258
  rule: this.taxAmountCalculationRule
@@ -2549,10 +2473,6 @@
2549
2473
  }
2550
2474
  ],
2551
2475
  _d[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
2552
- {
2553
- field: exports.EnumCampoTributo.BaseCalculo,
2554
- rule: this.taxableBaseCalculationRule
2555
- },
2556
2476
  {
2557
2477
  field: exports.EnumCampoTributo.Valor,
2558
2478
  rule: this.taxAmountCalculationRule
@@ -2773,10 +2693,6 @@
2773
2693
  }
2774
2694
  ],
2775
2695
  _e[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
2776
- {
2777
- field: exports.EnumCampoTributo.BaseCalculo,
2778
- rule: this.taxableBaseCalculationRule
2779
- },
2780
2696
  {
2781
2697
  field: exports.EnumCampoTributo.Valor,
2782
2698
  rule: this.taxAmountCalculationRule
@@ -2997,10 +2913,6 @@
2997
2913
  }
2998
2914
  ],
2999
2915
  _f[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
3000
- {
3001
- field: exports.EnumCampoTributo.BaseCalculo,
3002
- rule: this.taxableBaseCalculationRule
3003
- },
3004
2916
  {
3005
2917
  field: exports.EnumCampoTributo.Valor,
3006
2918
  rule: this.taxAmountCalculationRule
@@ -3217,10 +3129,6 @@
3217
3129
  }
3218
3130
  ],
3219
3131
  _g[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
3220
- {
3221
- field: exports.EnumCampoTributo.BaseCalculo,
3222
- rule: this.taxableBaseCalculationRule
3223
- },
3224
3132
  {
3225
3133
  field: exports.EnumCampoTributo.Valor,
3226
3134
  rule: this.taxAmountCalculationRule
@@ -3437,10 +3345,6 @@
3437
3345
  }
3438
3346
  ],
3439
3347
  _h[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
3440
- {
3441
- field: exports.EnumCampoTributo.BaseCalculo,
3442
- rule: this.taxableBaseCalculationRule
3443
- },
3444
3348
  {
3445
3349
  field: exports.EnumCampoTributo.Valor,
3446
3350
  rule: this.taxAmountCalculationRule
@@ -3657,10 +3561,6 @@
3657
3561
  }
3658
3562
  ],
3659
3563
  _j[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
3660
- {
3661
- field: exports.EnumCampoTributo.BaseCalculo,
3662
- rule: this.taxableBaseCalculationRule
3663
- },
3664
3564
  {
3665
3565
  field: exports.EnumCampoTributo.Valor,
3666
3566
  rule: this.taxAmountCalculationRule
@@ -3873,10 +3773,6 @@
3873
3773
  }
3874
3774
  ],
3875
3775
  _k[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
3876
- {
3877
- field: exports.EnumCampoTributo.BaseCalculo,
3878
- rule: this.taxableBaseCalculationRule
3879
- },
3880
3776
  {
3881
3777
  field: exports.EnumCampoTributo.Valor,
3882
3778
  rule: this.taxAmountCalculationRule
@@ -4069,10 +3965,6 @@
4069
3965
  }
4070
3966
  ],
4071
3967
  _l[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
4072
- {
4073
- field: exports.EnumCampoTributo.BaseCalculo,
4074
- rule: this.taxableBaseCalculationRule
4075
- },
4076
3968
  {
4077
3969
  field: exports.EnumCampoTributo.Valor,
4078
3970
  rule: this.taxAmountCalculationRule