@senior-gestao-empresarial/erpx-components 3.27.0 → 3.27.2
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.
- package/bundles/senior-gestao-empresarial-erpx-components.umd.js +31 -5
- package/bundles/senior-gestao-empresarial-erpx-components.umd.js.map +1 -1
- package/bundles/senior-gestao-empresarial-erpx-components.umd.min.js +2 -2
- package/bundles/senior-gestao-empresarial-erpx-components.umd.min.js.map +1 -1
- package/esm2015/components/tributos/rules/calculation/calculation-rules.registry.js +21 -1
- package/esm2015/components/tributos/rules/calculation/tax-classification-calculation-rule.js +6 -3
- package/esm2015/components/tributos/rules/calculation/tax-rate-calculation-rule.js +6 -3
- package/esm5/components/tributos/rules/calculation/calculation-rules.registry.js +21 -1
- package/esm5/components/tributos/rules/calculation/tax-classification-calculation-rule.js +6 -3
- package/esm5/components/tributos/rules/calculation/tax-rate-calculation-rule.js +8 -5
- package/fesm2015/senior-gestao-empresarial-erpx-components.js +29 -3
- package/fesm2015/senior-gestao-empresarial-erpx-components.js.map +1 -1
- package/fesm5/senior-gestao-empresarial-erpx-components.js +31 -5
- package/fesm5/senior-gestao-empresarial-erpx-components.js.map +1 -1
- package/package.json +1 -1
|
@@ -1595,8 +1595,11 @@
|
|
|
1595
1595
|
var documentType = _a.documentType, _b = _a.item, taxType = _b.name, formGroup = _b.formGroup, formField = _b.formField;
|
|
1596
1596
|
switch (taxType) {
|
|
1597
1597
|
case exports.EnumTipoTributo.CBS:
|
|
1598
|
+
case exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR:
|
|
1598
1599
|
case exports.EnumTipoTributo.IBS_ESTADUAL:
|
|
1600
|
+
case exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR:
|
|
1599
1601
|
case exports.EnumTipoTributo.IBS_MUNICIPAL:
|
|
1602
|
+
case exports.EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR:
|
|
1600
1603
|
case exports.EnumTipoTributo.IS:
|
|
1601
1604
|
{
|
|
1602
1605
|
switch (documentType) {
|
|
@@ -1609,7 +1612,7 @@
|
|
|
1609
1612
|
rxjs.combineLatest([
|
|
1610
1613
|
formGroup.get('situacaoTributaria').valueChanges.pipe(operators.startWith(formGroup.get('situacaoTributaria').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]); }))
|
|
1611
1614
|
])
|
|
1612
|
-
.pipe(operators.skip(1), operators.map(function () { return null; })
|
|
1615
|
+
.pipe(operators.skip(1), operators.map(function () { return null; }))
|
|
1613
1616
|
.subscribe(function (taxClassification) {
|
|
1614
1617
|
formGroup.get('classificacaoTributaria').setValue(taxClassification);
|
|
1615
1618
|
});
|
|
@@ -1649,16 +1652,19 @@
|
|
|
1649
1652
|
{
|
|
1650
1653
|
var baseTaxFormGroup = getBaseTaxItemFromGroup({ group: group }).formGroup;
|
|
1651
1654
|
rxjs.combineLatest([
|
|
1655
|
+
baseTaxFormGroup
|
|
1656
|
+
.get('reducaoAliquotaGovernamental')
|
|
1657
|
+
.valueChanges.pipe(operators.startWith(baseTaxFormGroup.get('reducaoAliquotaGovernamental').value), operators.distinctUntilChanged()),
|
|
1652
1658
|
baseTaxFormGroup
|
|
1653
1659
|
.get('aliquotaEfetiva')
|
|
1654
1660
|
.valueChanges.pipe(operators.startWith(baseTaxFormGroup.get('aliquotaEfetiva').value), operators.distinctUntilChanged())
|
|
1655
1661
|
])
|
|
1656
1662
|
.pipe(operators.skip(1), operators.map(function (_a) {
|
|
1657
|
-
var _b = __read(_a,
|
|
1658
|
-
return [new BigNumber(effectiveTaxRate)];
|
|
1663
|
+
var _b = __read(_a, 2), governamentalTaxRateReduction = _b[0], effectiveTaxRate = _b[1];
|
|
1664
|
+
return [new BigNumber(governamentalTaxRateReduction), new BigNumber(effectiveTaxRate)];
|
|
1659
1665
|
}), operators.map(function (_a) {
|
|
1660
|
-
var _b = __read(_a,
|
|
1661
|
-
if (
|
|
1666
|
+
var _b = __read(_a, 2), governamentalTaxRateReduction = _b[0], effectiveTaxRate = _b[1];
|
|
1667
|
+
if (governamentalTaxRateReduction.isNaN())
|
|
1662
1668
|
return null;
|
|
1663
1669
|
return effectiveTaxRate.decimalPlaces(4).toNumber();
|
|
1664
1670
|
}), operators.filter(function (taxRate) { return taxRate !== formGroup.get('aliquota').value; }))
|
|
@@ -1968,6 +1974,10 @@
|
|
|
1968
1974
|
{
|
|
1969
1975
|
field: exports.EnumCampoTributo.Valor,
|
|
1970
1976
|
rule: this.taxAmountCalculationRule
|
|
1977
|
+
},
|
|
1978
|
+
{
|
|
1979
|
+
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
1980
|
+
rule: this.taxClassificationCalculationRule
|
|
1971
1981
|
}
|
|
1972
1982
|
],
|
|
1973
1983
|
_b[exports.EnumTipoTributo.CBS_GOVERNAMENTAL] = [
|
|
@@ -2028,6 +2038,10 @@
|
|
|
2028
2038
|
{
|
|
2029
2039
|
field: exports.EnumCampoTributo.Valor,
|
|
2030
2040
|
rule: this.taxAmountCalculationRule
|
|
2041
|
+
},
|
|
2042
|
+
{
|
|
2043
|
+
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
2044
|
+
rule: this.taxClassificationCalculationRule
|
|
2031
2045
|
}
|
|
2032
2046
|
],
|
|
2033
2047
|
_b[exports.EnumTipoTributo.IBS_ESTADUAL_GOVERNAMENTAL] = [
|
|
@@ -2102,6 +2116,10 @@
|
|
|
2102
2116
|
{
|
|
2103
2117
|
field: exports.EnumCampoTributo.Valor,
|
|
2104
2118
|
rule: this.taxAmountCalculationRule
|
|
2119
|
+
},
|
|
2120
|
+
{
|
|
2121
|
+
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
2122
|
+
rule: this.taxClassificationCalculationRule
|
|
2105
2123
|
}
|
|
2106
2124
|
],
|
|
2107
2125
|
_b[exports.EnumTipoTributo.IBS_CREDITO_PRESUMIDO] = [
|
|
@@ -2180,6 +2198,10 @@
|
|
|
2180
2198
|
{
|
|
2181
2199
|
field: exports.EnumCampoTributo.Valor,
|
|
2182
2200
|
rule: this.taxAmountCalculationRule
|
|
2201
|
+
},
|
|
2202
|
+
{
|
|
2203
|
+
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
2204
|
+
rule: this.taxClassificationCalculationRule
|
|
2183
2205
|
}
|
|
2184
2206
|
],
|
|
2185
2207
|
_c[exports.EnumTipoTributo.CBS_GOVERNAMENTAL] = [
|
|
@@ -2240,6 +2262,10 @@
|
|
|
2240
2262
|
{
|
|
2241
2263
|
field: exports.EnumCampoTributo.Valor,
|
|
2242
2264
|
rule: this.taxAmountCalculationRule
|
|
2265
|
+
},
|
|
2266
|
+
{
|
|
2267
|
+
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
2268
|
+
rule: this.taxClassificationCalculationRule
|
|
2243
2269
|
}
|
|
2244
2270
|
],
|
|
2245
2271
|
_c[exports.EnumTipoTributo.IBS_ESTADUAL_GOVERNAMENTAL] = [
|