@senior-gestao-empresarial/erpx-components 4.16.0 → 4.17.1-develop-5b4a01dc
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 +2223 -498
- 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/components/tributos/erp-tributos.component.d.ts +1 -0
- package/components/tributos/erp-tributos.types.d.ts +3 -0
- package/components/tributos/rules/calculation/rules/taxable-base-calculation-rule.d.ts +1 -1
- package/components/tributos/rules/status/registries/incoming-invoice-status-rules.registry.d.ts +5 -1
- package/components/tributos/rules/status/registries/purchase-order-status-rules.registry.d.ts +5 -1
- package/components/tributos/rules/status/rules/tax-rate-status-rule.d.ts +5 -0
- package/components/tributos/rules/status/rules/taxable-base-status-rule.d.ts +5 -0
- package/components/tributos/rules/types/schemas/incoming-invoice.schema.d.ts +30 -0
- package/components/tributos/rules/types/schemas/purchase-order.schema.d.ts +3 -0
- package/esm2015/components/tributos/erp-tributos.component.js +53 -5
- package/esm2015/components/tributos/erp-tributos.types.js +4 -1
- package/esm2015/components/tributos/rules/calculation/registries/calculation-rules-registries/incoming-invoice-calculation-rules.registry.js +421 -1
- package/esm2015/components/tributos/rules/calculation/registries/calculation-rules-registries/purchase-order-calculation-rules.registry.js +43 -1
- package/esm2015/components/tributos/rules/calculation/rules/tax-amount-calculation-rule.js +4 -1
- package/esm2015/components/tributos/rules/calculation/rules/tax-rate-calculation-rule.js +37 -1
- package/esm2015/components/tributos/rules/calculation/rules/taxable-base-calculation-rule.js +39 -2
- package/esm2015/components/tributos/rules/status/registries/incoming-invoice-status-rules.registry.js +312 -4
- package/esm2015/components/tributos/rules/status/registries/purchase-order-status-rules.registry.js +48 -4
- package/esm2015/components/tributos/rules/status/rules/tax-rate-status-rule.js +61 -0
- package/esm2015/components/tributos/rules/status/rules/taxable-base-status-rule.js +65 -0
- package/esm2015/components/tributos/rules/types/schemas/incoming-invoice.schema.js +211 -1
- package/esm2015/components/tributos/rules/types/schemas/purchase-order.schema.js +22 -1
- package/esm2015/components/tributos/rules/validation/registries/incoming-invoice-validation-rules.registry.js +421 -1
- package/esm2015/components/tributos/rules/validation/registries/purchase-order-validation-rules.registry.js +43 -1
- package/esm2015/components/tributos/rules/validation/rules/required/tax-amount-required-validation-rule.js +70 -14
- package/esm2015/components/tributos/rules/validation/rules/required/tax-rate-required-validation-rule.js +64 -2
- package/esm2015/components/tributos/rules/validation/rules/required/taxable-base-required-validation-rule.js +61 -1
- package/esm2015/components/tributos/tax-reform-utilities.js +4 -1
- package/esm2015/senior-gestao-empresarial-erpx-components.js +45 -43
- package/esm5/components/tributos/erp-tributos.component.js +202 -155
- package/esm5/components/tributos/erp-tributos.types.js +4 -1
- package/esm5/components/tributos/rules/calculation/registries/calculation-rules-registries/incoming-invoice-calculation-rules.registry.js +421 -1
- package/esm5/components/tributos/rules/calculation/registries/calculation-rules-registries/purchase-order-calculation-rules.registry.js +43 -1
- package/esm5/components/tributos/rules/calculation/rules/tax-amount-calculation-rule.js +4 -1
- package/esm5/components/tributos/rules/calculation/rules/tax-rate-calculation-rule.js +45 -1
- package/esm5/components/tributos/rules/calculation/rules/taxable-base-calculation-rule.js +45 -2
- package/esm5/components/tributos/rules/status/registries/incoming-invoice-status-rules.registry.js +312 -4
- package/esm5/components/tributos/rules/status/registries/purchase-order-status-rules.registry.js +49 -4
- package/esm5/components/tributos/rules/status/rules/tax-rate-status-rule.js +68 -0
- package/esm5/components/tributos/rules/status/rules/taxable-base-status-rule.js +72 -0
- package/esm5/components/tributos/rules/types/schemas/incoming-invoice.schema.js +211 -1
- package/esm5/components/tributos/rules/types/schemas/purchase-order.schema.js +22 -1
- package/esm5/components/tributos/rules/validation/registries/incoming-invoice-validation-rules.registry.js +421 -1
- package/esm5/components/tributos/rules/validation/registries/purchase-order-validation-rules.registry.js +43 -1
- package/esm5/components/tributos/rules/validation/rules/required/tax-amount-required-validation-rule.js +74 -14
- package/esm5/components/tributos/rules/validation/rules/required/tax-rate-required-validation-rule.js +68 -2
- package/esm5/components/tributos/rules/validation/rules/required/taxable-base-required-validation-rule.js +65 -1
- package/esm5/components/tributos/tax-reform-utilities.js +4 -1
- package/esm5/senior-gestao-empresarial-erpx-components.js +45 -43
- package/fesm2015/senior-gestao-empresarial-erpx-components.js +1898 -215
- package/fesm2015/senior-gestao-empresarial-erpx-components.js.map +1 -1
- package/fesm5/senior-gestao-empresarial-erpx-components.js +2180 -457
- package/fesm5/senior-gestao-empresarial-erpx-components.js.map +1 -1
- package/package.json +1 -1
- package/senior-gestao-empresarial-erpx-components.d.ts +44 -42
- package/senior-gestao-empresarial-erpx-components.metadata.json +1 -1
|
@@ -619,6 +619,7 @@ var EnumGrupoTributo;
|
|
|
619
619
|
var EnumTipoTributo;
|
|
620
620
|
(function (EnumTipoTributo) {
|
|
621
621
|
EnumTipoTributo["CBS"] = "CBS";
|
|
622
|
+
EnumTipoTributo["CBS_A_APROPRIAR"] = "CBS_A_APROPRIAR";
|
|
622
623
|
EnumTipoTributo["CBS_DIFERIDO"] = "CBS_DIFERIDO";
|
|
623
624
|
EnumTipoTributo["CBS_CREDITO_PRESUMIDO"] = "CBS_CREDITO_PRESUMIDO";
|
|
624
625
|
EnumTipoTributo["CBS_TRIBUTACAO_REGULAR"] = "CBS_TRIBUTACAO_REGULAR";
|
|
@@ -626,10 +627,12 @@ var EnumTipoTributo;
|
|
|
626
627
|
EnumTipoTributo["CBS_ESTORNO_CREDITO"] = "CBS_ESTORNO_CREDITO";
|
|
627
628
|
EnumTipoTributo["CBS_AJUSTE"] = "CBS_AJUSTE";
|
|
628
629
|
EnumTipoTributo["IBS_ESTADUAL"] = "IBS_ESTADUAL";
|
|
630
|
+
EnumTipoTributo["IBS_ESTADUAL_A_APROPRIAR"] = "IBS_ESTADUAL_A_APROPRIAR";
|
|
629
631
|
EnumTipoTributo["IBS_ESTADUAL_DIFERIDO"] = "IBS_ESTADUAL_DIFERIDO";
|
|
630
632
|
EnumTipoTributo["IBS_ESTADUAL_TRIBUTACAO_REGULAR"] = "IBS_ESTADUAL_TRIBUTACAO_REGULAR";
|
|
631
633
|
EnumTipoTributo["IBS_ESTADUAL_GOVERNAMENTAL"] = "IBS_ESTADUAL_GOVERNAMENTAL";
|
|
632
634
|
EnumTipoTributo["IBS_MUNICIPAL"] = "IBS_MUNICIPAL";
|
|
635
|
+
EnumTipoTributo["IBS_MUNICIPAL_A_APROPRIAR"] = "IBS_MUNICIPAL_A_APROPRIAR";
|
|
633
636
|
EnumTipoTributo["IBS_MUNICIPAL_DIFERIDO"] = "IBS_MUNICIPAL_DIFERIDO";
|
|
634
637
|
EnumTipoTributo["IBS_MUNICIPAL_TRIBUTACAO_REGULAR"] = "IBS_MUNICIPAL_TRIBUTACAO_REGULAR";
|
|
635
638
|
EnumTipoTributo["IBS_MUNICIPAL_GOVERNAMENTAL"] = "IBS_MUNICIPAL_GOVERNAMENTAL";
|
|
@@ -847,15 +850,18 @@ var mapEnumTipoTributoToEnumTipImpCst = function (taxType) {
|
|
|
847
850
|
var isTaxFromTaxReform = function (tax) {
|
|
848
851
|
return (tax === EnumTipoTributo.IS ||
|
|
849
852
|
tax === EnumTipoTributo.CBS ||
|
|
853
|
+
tax === EnumTipoTributo.CBS_A_APROPRIAR ||
|
|
850
854
|
tax === EnumTipoTributo.CBS_CREDITO_PRESUMIDO ||
|
|
851
855
|
tax === EnumTipoTributo.CBS_DIFERIDO ||
|
|
852
856
|
tax === EnumTipoTributo.CBS_TRIBUTACAO_REGULAR ||
|
|
853
857
|
tax === EnumTipoTributo.CBS_GOVERNAMENTAL ||
|
|
854
858
|
tax === EnumTipoTributo.IBS_ESTADUAL ||
|
|
859
|
+
tax === EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR ||
|
|
855
860
|
tax === EnumTipoTributo.IBS_ESTADUAL_DIFERIDO ||
|
|
856
861
|
tax === EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR ||
|
|
857
862
|
tax === EnumTipoTributo.IBS_ESTADUAL_GOVERNAMENTAL ||
|
|
858
863
|
tax === EnumTipoTributo.IBS_MUNICIPAL ||
|
|
864
|
+
tax === EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR ||
|
|
859
865
|
tax === EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO ||
|
|
860
866
|
tax === EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR ||
|
|
861
867
|
tax === EnumTipoTributo.IBS_MUNICIPAL_GOVERNAMENTAL ||
|
|
@@ -1490,6 +1496,9 @@ var TaxAmountCalculationRule = /** @class */ (function () {
|
|
|
1490
1496
|
}
|
|
1491
1497
|
}
|
|
1492
1498
|
break;
|
|
1499
|
+
case EnumTipoTributo.CBS_A_APROPRIAR:
|
|
1500
|
+
case EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR:
|
|
1501
|
+
case EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR:
|
|
1493
1502
|
case EnumTipoTributo.CBS_DIFERIDO:
|
|
1494
1503
|
case EnumTipoTributo.IBS_ESTADUAL_DIFERIDO:
|
|
1495
1504
|
case EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO:
|
|
@@ -2000,6 +2009,50 @@ var TaxRateCalculationRule = /** @class */ (function () {
|
|
|
2000
2009
|
TaxRateCalculationRule.prototype.apply = function (_a) {
|
|
2001
2010
|
var document = _a.context.document, group = _a.group, _b = _a.item, taxType = _b.name, formGroup = _b.formGroup;
|
|
2002
2011
|
switch (taxType) {
|
|
2012
|
+
case EnumTipoTributo.CBS_A_APROPRIAR:
|
|
2013
|
+
case EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR:
|
|
2014
|
+
case EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR:
|
|
2015
|
+
{
|
|
2016
|
+
switch (document) {
|
|
2017
|
+
case 'Incoming Invoice':
|
|
2018
|
+
case 'Purchase Order':
|
|
2019
|
+
{
|
|
2020
|
+
var baseTaxFormGroup = getBaseTaxItemFromGroup({ group: group }).formGroup;
|
|
2021
|
+
combineLatest([
|
|
2022
|
+
baseTaxFormGroup
|
|
2023
|
+
.get('aliquotaEfetiva')
|
|
2024
|
+
.valueChanges.pipe(startWith(baseTaxFormGroup.get('aliquotaEfetiva').value), distinctUntilChanged()),
|
|
2025
|
+
baseTaxFormGroup
|
|
2026
|
+
.get('aliquota')
|
|
2027
|
+
.valueChanges.pipe(startWith(baseTaxFormGroup.get('aliquota').value), distinctUntilChanged())
|
|
2028
|
+
])
|
|
2029
|
+
.pipe(skip(1), map(function (_a) {
|
|
2030
|
+
var _b = __read(_a, 2), effectiveTaxRate = _b[0], taxRate = _b[1];
|
|
2031
|
+
return [
|
|
2032
|
+
new BigNumber(effectiveTaxRate),
|
|
2033
|
+
new BigNumber(taxRate)
|
|
2034
|
+
];
|
|
2035
|
+
}), map(function (_a) {
|
|
2036
|
+
var _b = __read(_a, 2), effectiveTaxRate = _b[0], taxRate = _b[1];
|
|
2037
|
+
return effectiveTaxRate.isNaN()
|
|
2038
|
+
? taxRate
|
|
2039
|
+
: effectiveTaxRate;
|
|
2040
|
+
}), filter(function (taxRate) {
|
|
2041
|
+
return taxRate !==
|
|
2042
|
+
formGroup.get('aliquota').value;
|
|
2043
|
+
}))
|
|
2044
|
+
.subscribe(function (taxRate) {
|
|
2045
|
+
formGroup
|
|
2046
|
+
.get('aliquota')
|
|
2047
|
+
.setValue(taxRate);
|
|
2048
|
+
});
|
|
2049
|
+
}
|
|
2050
|
+
break;
|
|
2051
|
+
default:
|
|
2052
|
+
throw new Error("Regra TaxRateCalculationRule n\u00E3o implementada para o imposto " + taxType + ", documento " + document + ".");
|
|
2053
|
+
}
|
|
2054
|
+
}
|
|
2055
|
+
break;
|
|
2003
2056
|
case EnumTipoTributo.CBS_GOVERNAMENTAL:
|
|
2004
2057
|
case EnumTipoTributo.IBS_ESTADUAL_GOVERNAMENTAL:
|
|
2005
2058
|
case EnumTipoTributo.IBS_MUNICIPAL_GOVERNAMENTAL:
|
|
@@ -2065,7 +2118,7 @@ var TaxableBaseCalculationRule = /** @class */ (function () {
|
|
|
2065
2118
|
}
|
|
2066
2119
|
TaxableBaseCalculationRule.prototype.apply = function (_a) {
|
|
2067
2120
|
var _this = this;
|
|
2068
|
-
var document = _a.context.document, groups = _a.groups, group = _a.group, _b = _a.item, taxType = _b.name, formGroup = _b.formGroup
|
|
2121
|
+
var document = _a.context.document, groups = _a.groups, group = _a.group, _b = _a.item, taxType = _b.name, formGroup = _b.formGroup;
|
|
2069
2122
|
switch (taxType) {
|
|
2070
2123
|
case EnumTipoTributo.CBS_DIFERIDO:
|
|
2071
2124
|
case EnumTipoTributo.IBS_ESTADUAL_DIFERIDO:
|
|
@@ -2180,6 +2233,49 @@ var TaxableBaseCalculationRule = /** @class */ (function () {
|
|
|
2180
2233
|
}
|
|
2181
2234
|
}
|
|
2182
2235
|
break;
|
|
2236
|
+
case EnumTipoTributo.CBS_A_APROPRIAR:
|
|
2237
|
+
case EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR:
|
|
2238
|
+
case EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR:
|
|
2239
|
+
{
|
|
2240
|
+
switch (document) {
|
|
2241
|
+
case 'Incoming Invoice':
|
|
2242
|
+
case 'Purchase Order':
|
|
2243
|
+
{
|
|
2244
|
+
var baseTaxFormGroup = getBaseTaxItemFromGroup({ group: group }).formGroup;
|
|
2245
|
+
combineLatest([
|
|
2246
|
+
baseTaxFormGroup
|
|
2247
|
+
.get('baseCalculo')
|
|
2248
|
+
.valueChanges.pipe(startWith(baseTaxFormGroup.get('baseCalculo').value), distinctUntilChanged())
|
|
2249
|
+
])
|
|
2250
|
+
.pipe(skip(1), map(function (_a) {
|
|
2251
|
+
var _b = __read(_a, 1), baseTaxTaxableBase = _b[0];
|
|
2252
|
+
return [
|
|
2253
|
+
new BigNumber(baseTaxTaxableBase)
|
|
2254
|
+
];
|
|
2255
|
+
}), map(function (_a) {
|
|
2256
|
+
var _b = __read(_a, 1), baseTaxTaxableBase = _b[0];
|
|
2257
|
+
if (baseTaxTaxableBase.isNaN())
|
|
2258
|
+
return null;
|
|
2259
|
+
return baseTaxTaxableBase
|
|
2260
|
+
.decimalPlaces(2)
|
|
2261
|
+
.toNumber();
|
|
2262
|
+
}), filter(function (taxableBase) {
|
|
2263
|
+
return taxableBase !==
|
|
2264
|
+
formGroup.get('baseCalculo')
|
|
2265
|
+
.value;
|
|
2266
|
+
}))
|
|
2267
|
+
.subscribe(function (taxableBase) {
|
|
2268
|
+
formGroup
|
|
2269
|
+
.get('baseCalculo')
|
|
2270
|
+
.setValue(taxableBase);
|
|
2271
|
+
});
|
|
2272
|
+
}
|
|
2273
|
+
break;
|
|
2274
|
+
default:
|
|
2275
|
+
throw new Error("Regra TaxableBaseCalculationRule n\u00E3o implementada para o imposto " + taxType + ", documento " + document + ".");
|
|
2276
|
+
}
|
|
2277
|
+
}
|
|
2278
|
+
break;
|
|
2183
2279
|
case EnumTipoTributo.CBS_GOVERNAMENTAL:
|
|
2184
2280
|
case EnumTipoTributo.IBS_ESTADUAL_GOVERNAMENTAL:
|
|
2185
2281
|
case EnumTipoTributo.IBS_MUNICIPAL_GOVERNAMENTAL:
|
|
@@ -2533,6 +2629,20 @@ var IncomingInvoiceCalculationRulesRegistry = /** @class */ (function () {
|
|
|
2533
2629
|
rule: this.manualTaxCalculationRule
|
|
2534
2630
|
}
|
|
2535
2631
|
],
|
|
2632
|
+
_a[EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
2633
|
+
{
|
|
2634
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
2635
|
+
rule: this.taxableBaseCalculationRule
|
|
2636
|
+
},
|
|
2637
|
+
{
|
|
2638
|
+
field: EnumCampoTributo.Aliquota,
|
|
2639
|
+
rule: this.taxRateCalculationRule
|
|
2640
|
+
},
|
|
2641
|
+
{
|
|
2642
|
+
field: EnumCampoTributo.Valor,
|
|
2643
|
+
rule: this.taxAmountCalculationRule
|
|
2644
|
+
}
|
|
2645
|
+
],
|
|
2536
2646
|
_a[EnumTipoTributo.CBS_DIFERIDO] = [
|
|
2537
2647
|
{
|
|
2538
2648
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -2603,6 +2713,20 @@ var IncomingInvoiceCalculationRulesRegistry = /** @class */ (function () {
|
|
|
2603
2713
|
rule: this.manualTaxCalculationRule
|
|
2604
2714
|
}
|
|
2605
2715
|
],
|
|
2716
|
+
_a[EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
2717
|
+
{
|
|
2718
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
2719
|
+
rule: this.taxableBaseCalculationRule
|
|
2720
|
+
},
|
|
2721
|
+
{
|
|
2722
|
+
field: EnumCampoTributo.Aliquota,
|
|
2723
|
+
rule: this.taxRateCalculationRule
|
|
2724
|
+
},
|
|
2725
|
+
{
|
|
2726
|
+
field: EnumCampoTributo.Valor,
|
|
2727
|
+
rule: this.taxAmountCalculationRule
|
|
2728
|
+
}
|
|
2729
|
+
],
|
|
2606
2730
|
_a[EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
2607
2731
|
{
|
|
2608
2732
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -2667,6 +2791,20 @@ var IncomingInvoiceCalculationRulesRegistry = /** @class */ (function () {
|
|
|
2667
2791
|
rule: this.manualTaxCalculationRule
|
|
2668
2792
|
}
|
|
2669
2793
|
],
|
|
2794
|
+
_a[EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
2795
|
+
{
|
|
2796
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
2797
|
+
rule: this.taxableBaseCalculationRule
|
|
2798
|
+
},
|
|
2799
|
+
{
|
|
2800
|
+
field: EnumCampoTributo.Aliquota,
|
|
2801
|
+
rule: this.taxRateCalculationRule
|
|
2802
|
+
},
|
|
2803
|
+
{
|
|
2804
|
+
field: EnumCampoTributo.Valor,
|
|
2805
|
+
rule: this.taxAmountCalculationRule
|
|
2806
|
+
}
|
|
2807
|
+
],
|
|
2670
2808
|
_a[EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
2671
2809
|
{
|
|
2672
2810
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -2785,6 +2923,20 @@ var IncomingInvoiceCalculationRulesRegistry = /** @class */ (function () {
|
|
|
2785
2923
|
rule: this.manualTaxCalculationRule
|
|
2786
2924
|
}
|
|
2787
2925
|
],
|
|
2926
|
+
_b[EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
2927
|
+
{
|
|
2928
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
2929
|
+
rule: this.taxableBaseCalculationRule
|
|
2930
|
+
},
|
|
2931
|
+
{
|
|
2932
|
+
field: EnumCampoTributo.Aliquota,
|
|
2933
|
+
rule: this.taxRateCalculationRule
|
|
2934
|
+
},
|
|
2935
|
+
{
|
|
2936
|
+
field: EnumCampoTributo.Valor,
|
|
2937
|
+
rule: this.taxAmountCalculationRule
|
|
2938
|
+
}
|
|
2939
|
+
],
|
|
2788
2940
|
_b[EnumTipoTributo.CBS_DIFERIDO] = [
|
|
2789
2941
|
{
|
|
2790
2942
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -2855,6 +3007,20 @@ var IncomingInvoiceCalculationRulesRegistry = /** @class */ (function () {
|
|
|
2855
3007
|
rule: this.manualTaxCalculationRule
|
|
2856
3008
|
}
|
|
2857
3009
|
],
|
|
3010
|
+
_b[EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
3011
|
+
{
|
|
3012
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
3013
|
+
rule: this.taxableBaseCalculationRule
|
|
3014
|
+
},
|
|
3015
|
+
{
|
|
3016
|
+
field: EnumCampoTributo.Aliquota,
|
|
3017
|
+
rule: this.taxRateCalculationRule
|
|
3018
|
+
},
|
|
3019
|
+
{
|
|
3020
|
+
field: EnumCampoTributo.Valor,
|
|
3021
|
+
rule: this.taxAmountCalculationRule
|
|
3022
|
+
}
|
|
3023
|
+
],
|
|
2858
3024
|
_b[EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
2859
3025
|
{
|
|
2860
3026
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -2919,6 +3085,20 @@ var IncomingInvoiceCalculationRulesRegistry = /** @class */ (function () {
|
|
|
2919
3085
|
rule: this.manualTaxCalculationRule
|
|
2920
3086
|
}
|
|
2921
3087
|
],
|
|
3088
|
+
_b[EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
3089
|
+
{
|
|
3090
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
3091
|
+
rule: this.taxableBaseCalculationRule
|
|
3092
|
+
},
|
|
3093
|
+
{
|
|
3094
|
+
field: EnumCampoTributo.Aliquota,
|
|
3095
|
+
rule: this.taxRateCalculationRule
|
|
3096
|
+
},
|
|
3097
|
+
{
|
|
3098
|
+
field: EnumCampoTributo.Valor,
|
|
3099
|
+
rule: this.taxAmountCalculationRule
|
|
3100
|
+
}
|
|
3101
|
+
],
|
|
2922
3102
|
_b[EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
2923
3103
|
{
|
|
2924
3104
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -3037,6 +3217,20 @@ var IncomingInvoiceCalculationRulesRegistry = /** @class */ (function () {
|
|
|
3037
3217
|
rule: this.manualTaxCalculationRule
|
|
3038
3218
|
}
|
|
3039
3219
|
],
|
|
3220
|
+
_c[EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
3221
|
+
{
|
|
3222
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
3223
|
+
rule: this.taxableBaseCalculationRule
|
|
3224
|
+
},
|
|
3225
|
+
{
|
|
3226
|
+
field: EnumCampoTributo.Aliquota,
|
|
3227
|
+
rule: this.taxRateCalculationRule
|
|
3228
|
+
},
|
|
3229
|
+
{
|
|
3230
|
+
field: EnumCampoTributo.Valor,
|
|
3231
|
+
rule: this.taxAmountCalculationRule
|
|
3232
|
+
}
|
|
3233
|
+
],
|
|
3040
3234
|
_c[EnumTipoTributo.CBS_DIFERIDO] = [
|
|
3041
3235
|
{
|
|
3042
3236
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -3107,6 +3301,20 @@ var IncomingInvoiceCalculationRulesRegistry = /** @class */ (function () {
|
|
|
3107
3301
|
rule: this.manualTaxCalculationRule
|
|
3108
3302
|
}
|
|
3109
3303
|
],
|
|
3304
|
+
_c[EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
3305
|
+
{
|
|
3306
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
3307
|
+
rule: this.taxableBaseCalculationRule
|
|
3308
|
+
},
|
|
3309
|
+
{
|
|
3310
|
+
field: EnumCampoTributo.Aliquota,
|
|
3311
|
+
rule: this.taxRateCalculationRule
|
|
3312
|
+
},
|
|
3313
|
+
{
|
|
3314
|
+
field: EnumCampoTributo.Valor,
|
|
3315
|
+
rule: this.taxAmountCalculationRule
|
|
3316
|
+
}
|
|
3317
|
+
],
|
|
3110
3318
|
_c[EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
3111
3319
|
{
|
|
3112
3320
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -3171,6 +3379,20 @@ var IncomingInvoiceCalculationRulesRegistry = /** @class */ (function () {
|
|
|
3171
3379
|
rule: this.manualTaxCalculationRule
|
|
3172
3380
|
}
|
|
3173
3381
|
],
|
|
3382
|
+
_c[EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
3383
|
+
{
|
|
3384
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
3385
|
+
rule: this.taxableBaseCalculationRule
|
|
3386
|
+
},
|
|
3387
|
+
{
|
|
3388
|
+
field: EnumCampoTributo.Aliquota,
|
|
3389
|
+
rule: this.taxRateCalculationRule
|
|
3390
|
+
},
|
|
3391
|
+
{
|
|
3392
|
+
field: EnumCampoTributo.Valor,
|
|
3393
|
+
rule: this.taxAmountCalculationRule
|
|
3394
|
+
}
|
|
3395
|
+
],
|
|
3174
3396
|
_c[EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
3175
3397
|
{
|
|
3176
3398
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -3289,6 +3511,20 @@ var IncomingInvoiceCalculationRulesRegistry = /** @class */ (function () {
|
|
|
3289
3511
|
rule: this.manualTaxCalculationRule
|
|
3290
3512
|
}
|
|
3291
3513
|
],
|
|
3514
|
+
_d[EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
3515
|
+
{
|
|
3516
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
3517
|
+
rule: this.taxableBaseCalculationRule
|
|
3518
|
+
},
|
|
3519
|
+
{
|
|
3520
|
+
field: EnumCampoTributo.Aliquota,
|
|
3521
|
+
rule: this.taxRateCalculationRule
|
|
3522
|
+
},
|
|
3523
|
+
{
|
|
3524
|
+
field: EnumCampoTributo.Valor,
|
|
3525
|
+
rule: this.taxAmountCalculationRule
|
|
3526
|
+
}
|
|
3527
|
+
],
|
|
3292
3528
|
_d[EnumTipoTributo.CBS_DIFERIDO] = [
|
|
3293
3529
|
{
|
|
3294
3530
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -3359,6 +3595,20 @@ var IncomingInvoiceCalculationRulesRegistry = /** @class */ (function () {
|
|
|
3359
3595
|
rule: this.manualTaxCalculationRule
|
|
3360
3596
|
}
|
|
3361
3597
|
],
|
|
3598
|
+
_d[EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
3599
|
+
{
|
|
3600
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
3601
|
+
rule: this.taxableBaseCalculationRule
|
|
3602
|
+
},
|
|
3603
|
+
{
|
|
3604
|
+
field: EnumCampoTributo.Aliquota,
|
|
3605
|
+
rule: this.taxRateCalculationRule
|
|
3606
|
+
},
|
|
3607
|
+
{
|
|
3608
|
+
field: EnumCampoTributo.Valor,
|
|
3609
|
+
rule: this.taxAmountCalculationRule
|
|
3610
|
+
}
|
|
3611
|
+
],
|
|
3362
3612
|
_d[EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
3363
3613
|
{
|
|
3364
3614
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -3423,6 +3673,20 @@ var IncomingInvoiceCalculationRulesRegistry = /** @class */ (function () {
|
|
|
3423
3673
|
rule: this.manualTaxCalculationRule
|
|
3424
3674
|
}
|
|
3425
3675
|
],
|
|
3676
|
+
_d[EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
3677
|
+
{
|
|
3678
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
3679
|
+
rule: this.taxableBaseCalculationRule
|
|
3680
|
+
},
|
|
3681
|
+
{
|
|
3682
|
+
field: EnumCampoTributo.Aliquota,
|
|
3683
|
+
rule: this.taxRateCalculationRule
|
|
3684
|
+
},
|
|
3685
|
+
{
|
|
3686
|
+
field: EnumCampoTributo.Valor,
|
|
3687
|
+
rule: this.taxAmountCalculationRule
|
|
3688
|
+
}
|
|
3689
|
+
],
|
|
3426
3690
|
_d[EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
3427
3691
|
{
|
|
3428
3692
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -3541,6 +3805,20 @@ var IncomingInvoiceCalculationRulesRegistry = /** @class */ (function () {
|
|
|
3541
3805
|
rule: this.manualTaxCalculationRule
|
|
3542
3806
|
}
|
|
3543
3807
|
],
|
|
3808
|
+
_e[EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
3809
|
+
{
|
|
3810
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
3811
|
+
rule: this.taxableBaseCalculationRule
|
|
3812
|
+
},
|
|
3813
|
+
{
|
|
3814
|
+
field: EnumCampoTributo.Aliquota,
|
|
3815
|
+
rule: this.taxRateCalculationRule
|
|
3816
|
+
},
|
|
3817
|
+
{
|
|
3818
|
+
field: EnumCampoTributo.Valor,
|
|
3819
|
+
rule: this.taxAmountCalculationRule
|
|
3820
|
+
}
|
|
3821
|
+
],
|
|
3544
3822
|
_e[EnumTipoTributo.CBS_DIFERIDO] = [
|
|
3545
3823
|
{
|
|
3546
3824
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -3611,6 +3889,20 @@ var IncomingInvoiceCalculationRulesRegistry = /** @class */ (function () {
|
|
|
3611
3889
|
rule: this.manualTaxCalculationRule
|
|
3612
3890
|
}
|
|
3613
3891
|
],
|
|
3892
|
+
_e[EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
3893
|
+
{
|
|
3894
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
3895
|
+
rule: this.taxableBaseCalculationRule
|
|
3896
|
+
},
|
|
3897
|
+
{
|
|
3898
|
+
field: EnumCampoTributo.Aliquota,
|
|
3899
|
+
rule: this.taxRateCalculationRule
|
|
3900
|
+
},
|
|
3901
|
+
{
|
|
3902
|
+
field: EnumCampoTributo.Valor,
|
|
3903
|
+
rule: this.taxAmountCalculationRule
|
|
3904
|
+
}
|
|
3905
|
+
],
|
|
3614
3906
|
_e[EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
3615
3907
|
{
|
|
3616
3908
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -3675,6 +3967,20 @@ var IncomingInvoiceCalculationRulesRegistry = /** @class */ (function () {
|
|
|
3675
3967
|
rule: this.manualTaxCalculationRule
|
|
3676
3968
|
}
|
|
3677
3969
|
],
|
|
3970
|
+
_e[EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
3971
|
+
{
|
|
3972
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
3973
|
+
rule: this.taxableBaseCalculationRule
|
|
3974
|
+
},
|
|
3975
|
+
{
|
|
3976
|
+
field: EnumCampoTributo.Aliquota,
|
|
3977
|
+
rule: this.taxRateCalculationRule
|
|
3978
|
+
},
|
|
3979
|
+
{
|
|
3980
|
+
field: EnumCampoTributo.Valor,
|
|
3981
|
+
rule: this.taxAmountCalculationRule
|
|
3982
|
+
}
|
|
3983
|
+
],
|
|
3678
3984
|
_e[EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
3679
3985
|
{
|
|
3680
3986
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -3793,6 +4099,20 @@ var IncomingInvoiceCalculationRulesRegistry = /** @class */ (function () {
|
|
|
3793
4099
|
rule: this.manualTaxCalculationRule
|
|
3794
4100
|
}
|
|
3795
4101
|
],
|
|
4102
|
+
_f[EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
4103
|
+
{
|
|
4104
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
4105
|
+
rule: this.taxableBaseCalculationRule
|
|
4106
|
+
},
|
|
4107
|
+
{
|
|
4108
|
+
field: EnumCampoTributo.Aliquota,
|
|
4109
|
+
rule: this.taxRateCalculationRule
|
|
4110
|
+
},
|
|
4111
|
+
{
|
|
4112
|
+
field: EnumCampoTributo.Valor,
|
|
4113
|
+
rule: this.taxAmountCalculationRule
|
|
4114
|
+
}
|
|
4115
|
+
],
|
|
3796
4116
|
_f[EnumTipoTributo.CBS_DIFERIDO] = [
|
|
3797
4117
|
{
|
|
3798
4118
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -3863,6 +4183,20 @@ var IncomingInvoiceCalculationRulesRegistry = /** @class */ (function () {
|
|
|
3863
4183
|
rule: this.manualTaxCalculationRule
|
|
3864
4184
|
}
|
|
3865
4185
|
],
|
|
4186
|
+
_f[EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
4187
|
+
{
|
|
4188
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
4189
|
+
rule: this.taxableBaseCalculationRule
|
|
4190
|
+
},
|
|
4191
|
+
{
|
|
4192
|
+
field: EnumCampoTributo.Aliquota,
|
|
4193
|
+
rule: this.taxRateCalculationRule
|
|
4194
|
+
},
|
|
4195
|
+
{
|
|
4196
|
+
field: EnumCampoTributo.Valor,
|
|
4197
|
+
rule: this.taxAmountCalculationRule
|
|
4198
|
+
}
|
|
4199
|
+
],
|
|
3866
4200
|
_f[EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
3867
4201
|
{
|
|
3868
4202
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -3927,6 +4261,20 @@ var IncomingInvoiceCalculationRulesRegistry = /** @class */ (function () {
|
|
|
3927
4261
|
rule: this.manualTaxCalculationRule
|
|
3928
4262
|
}
|
|
3929
4263
|
],
|
|
4264
|
+
_f[EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
4265
|
+
{
|
|
4266
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
4267
|
+
rule: this.taxableBaseCalculationRule
|
|
4268
|
+
},
|
|
4269
|
+
{
|
|
4270
|
+
field: EnumCampoTributo.Aliquota,
|
|
4271
|
+
rule: this.taxRateCalculationRule
|
|
4272
|
+
},
|
|
4273
|
+
{
|
|
4274
|
+
field: EnumCampoTributo.Valor,
|
|
4275
|
+
rule: this.taxAmountCalculationRule
|
|
4276
|
+
}
|
|
4277
|
+
],
|
|
3930
4278
|
_f[EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
3931
4279
|
{
|
|
3932
4280
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -4045,6 +4393,20 @@ var IncomingInvoiceCalculationRulesRegistry = /** @class */ (function () {
|
|
|
4045
4393
|
rule: this.manualTaxCalculationRule
|
|
4046
4394
|
}
|
|
4047
4395
|
],
|
|
4396
|
+
_g[EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
4397
|
+
{
|
|
4398
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
4399
|
+
rule: this.taxableBaseCalculationRule
|
|
4400
|
+
},
|
|
4401
|
+
{
|
|
4402
|
+
field: EnumCampoTributo.Aliquota,
|
|
4403
|
+
rule: this.taxRateCalculationRule
|
|
4404
|
+
},
|
|
4405
|
+
{
|
|
4406
|
+
field: EnumCampoTributo.Valor,
|
|
4407
|
+
rule: this.taxAmountCalculationRule
|
|
4408
|
+
}
|
|
4409
|
+
],
|
|
4048
4410
|
_g[EnumTipoTributo.CBS_DIFERIDO] = [
|
|
4049
4411
|
{
|
|
4050
4412
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -4115,6 +4477,20 @@ var IncomingInvoiceCalculationRulesRegistry = /** @class */ (function () {
|
|
|
4115
4477
|
rule: this.manualTaxCalculationRule
|
|
4116
4478
|
}
|
|
4117
4479
|
],
|
|
4480
|
+
_g[EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
4481
|
+
{
|
|
4482
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
4483
|
+
rule: this.taxableBaseCalculationRule
|
|
4484
|
+
},
|
|
4485
|
+
{
|
|
4486
|
+
field: EnumCampoTributo.Aliquota,
|
|
4487
|
+
rule: this.taxRateCalculationRule
|
|
4488
|
+
},
|
|
4489
|
+
{
|
|
4490
|
+
field: EnumCampoTributo.Valor,
|
|
4491
|
+
rule: this.taxAmountCalculationRule
|
|
4492
|
+
}
|
|
4493
|
+
],
|
|
4118
4494
|
_g[EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
4119
4495
|
{
|
|
4120
4496
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -4179,6 +4555,20 @@ var IncomingInvoiceCalculationRulesRegistry = /** @class */ (function () {
|
|
|
4179
4555
|
rule: this.manualTaxCalculationRule
|
|
4180
4556
|
}
|
|
4181
4557
|
],
|
|
4558
|
+
_g[EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
4559
|
+
{
|
|
4560
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
4561
|
+
rule: this.taxableBaseCalculationRule
|
|
4562
|
+
},
|
|
4563
|
+
{
|
|
4564
|
+
field: EnumCampoTributo.Aliquota,
|
|
4565
|
+
rule: this.taxRateCalculationRule
|
|
4566
|
+
},
|
|
4567
|
+
{
|
|
4568
|
+
field: EnumCampoTributo.Valor,
|
|
4569
|
+
rule: this.taxAmountCalculationRule
|
|
4570
|
+
}
|
|
4571
|
+
],
|
|
4182
4572
|
_g[EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
4183
4573
|
{
|
|
4184
4574
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -4297,37 +4687,7 @@ var IncomingInvoiceCalculationRulesRegistry = /** @class */ (function () {
|
|
|
4297
4687
|
rule: this.manualTaxCalculationRule
|
|
4298
4688
|
}
|
|
4299
4689
|
],
|
|
4300
|
-
_h[EnumTipoTributo.
|
|
4301
|
-
{
|
|
4302
|
-
field: EnumCampoTributo.BaseCalculo,
|
|
4303
|
-
rule: this.taxableBaseCalculationRule
|
|
4304
|
-
},
|
|
4305
|
-
{
|
|
4306
|
-
field: EnumCampoTributo.Valor,
|
|
4307
|
-
rule: this.taxAmountCalculationRule
|
|
4308
|
-
}
|
|
4309
|
-
],
|
|
4310
|
-
_h[EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
|
|
4311
|
-
{
|
|
4312
|
-
field: EnumCampoTributo.Valor,
|
|
4313
|
-
rule: this.taxAmountCalculationRule
|
|
4314
|
-
}
|
|
4315
|
-
],
|
|
4316
|
-
_h[EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
4317
|
-
{
|
|
4318
|
-
field: EnumCampoTributo.BaseCalculo,
|
|
4319
|
-
rule: this.taxableBaseCalculationRule
|
|
4320
|
-
},
|
|
4321
|
-
{
|
|
4322
|
-
field: EnumCampoTributo.Valor,
|
|
4323
|
-
rule: this.taxAmountCalculationRule
|
|
4324
|
-
},
|
|
4325
|
-
{
|
|
4326
|
-
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
4327
|
-
rule: this.taxClassificationCalculationRule
|
|
4328
|
-
}
|
|
4329
|
-
],
|
|
4330
|
-
_h[EnumTipoTributo.CBS_GOVERNAMENTAL] = [
|
|
4690
|
+
_h[EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
4331
4691
|
{
|
|
4332
4692
|
field: EnumCampoTributo.BaseCalculo,
|
|
4333
4693
|
rule: this.taxableBaseCalculationRule
|
|
@@ -4341,33 +4701,7 @@ var IncomingInvoiceCalculationRulesRegistry = /** @class */ (function () {
|
|
|
4341
4701
|
rule: this.taxAmountCalculationRule
|
|
4342
4702
|
}
|
|
4343
4703
|
],
|
|
4344
|
-
_h[EnumTipoTributo.
|
|
4345
|
-
{
|
|
4346
|
-
field: EnumCampoTributo.AliquotaEfetiva,
|
|
4347
|
-
rule: this.effectiveTaxRateCalculationRule
|
|
4348
|
-
},
|
|
4349
|
-
{
|
|
4350
|
-
field: EnumCampoTributo.ValorBruto,
|
|
4351
|
-
rule: this.grossAmountCalculationRule
|
|
4352
|
-
},
|
|
4353
|
-
{
|
|
4354
|
-
field: EnumCampoTributo.Valor,
|
|
4355
|
-
rule: this.taxAmountCalculationRule
|
|
4356
|
-
},
|
|
4357
|
-
{
|
|
4358
|
-
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
4359
|
-
rule: this.taxClassificationCalculationRule
|
|
4360
|
-
},
|
|
4361
|
-
{
|
|
4362
|
-
field: EnumCampoTributo.TipoCalculoImposto,
|
|
4363
|
-
rule: this.taxCalculationTypeCalculationRule
|
|
4364
|
-
},
|
|
4365
|
-
{
|
|
4366
|
-
field: EnumCampoTributo.ImpostoManual,
|
|
4367
|
-
rule: this.manualTaxCalculationRule
|
|
4368
|
-
}
|
|
4369
|
-
],
|
|
4370
|
-
_h[EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
4704
|
+
_h[EnumTipoTributo.CBS_DIFERIDO] = [
|
|
4371
4705
|
{
|
|
4372
4706
|
field: EnumCampoTributo.BaseCalculo,
|
|
4373
4707
|
rule: this.taxableBaseCalculationRule
|
|
@@ -4377,43 +4711,17 @@ var IncomingInvoiceCalculationRulesRegistry = /** @class */ (function () {
|
|
|
4377
4711
|
rule: this.taxAmountCalculationRule
|
|
4378
4712
|
}
|
|
4379
4713
|
],
|
|
4380
|
-
_h[EnumTipoTributo.
|
|
4381
|
-
{
|
|
4382
|
-
field: EnumCampoTributo.BaseCalculo,
|
|
4383
|
-
rule: this.taxableBaseCalculationRule
|
|
4384
|
-
},
|
|
4714
|
+
_h[EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
|
|
4385
4715
|
{
|
|
4386
4716
|
field: EnumCampoTributo.Valor,
|
|
4387
4717
|
rule: this.taxAmountCalculationRule
|
|
4388
|
-
},
|
|
4389
|
-
{
|
|
4390
|
-
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
4391
|
-
rule: this.taxClassificationCalculationRule
|
|
4392
4718
|
}
|
|
4393
4719
|
],
|
|
4394
|
-
_h[EnumTipoTributo.
|
|
4720
|
+
_h[EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
4395
4721
|
{
|
|
4396
4722
|
field: EnumCampoTributo.BaseCalculo,
|
|
4397
4723
|
rule: this.taxableBaseCalculationRule
|
|
4398
4724
|
},
|
|
4399
|
-
{
|
|
4400
|
-
field: EnumCampoTributo.Aliquota,
|
|
4401
|
-
rule: this.taxRateCalculationRule
|
|
4402
|
-
},
|
|
4403
|
-
{
|
|
4404
|
-
field: EnumCampoTributo.Valor,
|
|
4405
|
-
rule: this.taxAmountCalculationRule
|
|
4406
|
-
}
|
|
4407
|
-
],
|
|
4408
|
-
_h[EnumTipoTributo.IBS_MUNICIPAL] = [
|
|
4409
|
-
{
|
|
4410
|
-
field: EnumCampoTributo.AliquotaEfetiva,
|
|
4411
|
-
rule: this.effectiveTaxRateCalculationRule
|
|
4412
|
-
},
|
|
4413
|
-
{
|
|
4414
|
-
field: EnumCampoTributo.ValorBruto,
|
|
4415
|
-
rule: this.grossAmountCalculationRule
|
|
4416
|
-
},
|
|
4417
4725
|
{
|
|
4418
4726
|
field: EnumCampoTributo.Valor,
|
|
4419
4727
|
rule: this.taxAmountCalculationRule
|
|
@@ -4421,27 +4729,9 @@ var IncomingInvoiceCalculationRulesRegistry = /** @class */ (function () {
|
|
|
4421
4729
|
{
|
|
4422
4730
|
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
4423
4731
|
rule: this.taxClassificationCalculationRule
|
|
4424
|
-
},
|
|
4425
|
-
{
|
|
4426
|
-
field: EnumCampoTributo.TipoCalculoImposto,
|
|
4427
|
-
rule: this.taxCalculationTypeCalculationRule
|
|
4428
|
-
},
|
|
4429
|
-
{
|
|
4430
|
-
field: EnumCampoTributo.ImpostoManual,
|
|
4431
|
-
rule: this.manualTaxCalculationRule
|
|
4432
|
-
}
|
|
4433
|
-
],
|
|
4434
|
-
_h[EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
4435
|
-
{
|
|
4436
|
-
field: EnumCampoTributo.BaseCalculo,
|
|
4437
|
-
rule: this.taxableBaseCalculationRule
|
|
4438
|
-
},
|
|
4439
|
-
{
|
|
4440
|
-
field: EnumCampoTributo.Valor,
|
|
4441
|
-
rule: this.taxAmountCalculationRule
|
|
4442
4732
|
}
|
|
4443
4733
|
],
|
|
4444
|
-
_h[EnumTipoTributo.
|
|
4734
|
+
_h[EnumTipoTributo.CBS_GOVERNAMENTAL] = [
|
|
4445
4735
|
{
|
|
4446
4736
|
field: EnumCampoTributo.BaseCalculo,
|
|
4447
4737
|
rule: this.taxableBaseCalculationRule
|
|
@@ -4455,75 +4745,7 @@ var IncomingInvoiceCalculationRulesRegistry = /** @class */ (function () {
|
|
|
4455
4745
|
rule: this.taxAmountCalculationRule
|
|
4456
4746
|
}
|
|
4457
4747
|
],
|
|
4458
|
-
_h[EnumTipoTributo.
|
|
4459
|
-
{
|
|
4460
|
-
field: EnumCampoTributo.BaseCalculo,
|
|
4461
|
-
rule: this.taxableBaseCalculationRule
|
|
4462
|
-
},
|
|
4463
|
-
{
|
|
4464
|
-
field: EnumCampoTributo.Valor,
|
|
4465
|
-
rule: this.taxAmountCalculationRule
|
|
4466
|
-
},
|
|
4467
|
-
{
|
|
4468
|
-
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
4469
|
-
rule: this.taxClassificationCalculationRule
|
|
4470
|
-
}
|
|
4471
|
-
],
|
|
4472
|
-
_h[EnumTipoTributo.IBS_CREDITO_PRESUMIDO] = [
|
|
4473
|
-
{
|
|
4474
|
-
field: EnumCampoTributo.BaseCalculo,
|
|
4475
|
-
rule: this.taxableBaseCalculationRule
|
|
4476
|
-
},
|
|
4477
|
-
{
|
|
4478
|
-
field: EnumCampoTributo.Valor,
|
|
4479
|
-
rule: this.taxAmountCalculationRule
|
|
4480
|
-
},
|
|
4481
|
-
{
|
|
4482
|
-
field: EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
4483
|
-
rule: this.applyNetValueToDocumentCalculationRule
|
|
4484
|
-
}
|
|
4485
|
-
],
|
|
4486
|
-
_h[EnumTipoTributo.IS] = [
|
|
4487
|
-
{
|
|
4488
|
-
field: EnumCampoTributo.Valor,
|
|
4489
|
-
rule: this.taxAmountCalculationRule
|
|
4490
|
-
},
|
|
4491
|
-
{
|
|
4492
|
-
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
4493
|
-
rule: this.taxClassificationCalculationRule
|
|
4494
|
-
}
|
|
4495
|
-
],
|
|
4496
|
-
_h[EnumTipoTributo.CBS_ESTORNO_CREDITO] = [
|
|
4497
|
-
{
|
|
4498
|
-
field: EnumCampoTributo.SituacaoTributaria,
|
|
4499
|
-
rule: this.taxSituationCalculationRule
|
|
4500
|
-
},
|
|
4501
|
-
{
|
|
4502
|
-
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
4503
|
-
rule: this.taxClassificationCalculationRule
|
|
4504
|
-
},
|
|
4505
|
-
{
|
|
4506
|
-
field: EnumCampoTributo.Valor,
|
|
4507
|
-
rule: this.taxAmountCalculationRule
|
|
4508
|
-
}
|
|
4509
|
-
],
|
|
4510
|
-
_h[EnumTipoTributo.IBS_ESTORNO_CREDITO] = [
|
|
4511
|
-
{
|
|
4512
|
-
field: EnumCampoTributo.SituacaoTributaria,
|
|
4513
|
-
rule: this.taxSituationCalculationRule
|
|
4514
|
-
},
|
|
4515
|
-
{
|
|
4516
|
-
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
4517
|
-
rule: this.taxClassificationCalculationRule
|
|
4518
|
-
},
|
|
4519
|
-
{
|
|
4520
|
-
field: EnumCampoTributo.Valor,
|
|
4521
|
-
rule: this.taxAmountCalculationRule
|
|
4522
|
-
}
|
|
4523
|
-
],
|
|
4524
|
-
_h),
|
|
4525
|
-
Reversal: (_j = {},
|
|
4526
|
-
_j[EnumTipoTributo.CBS] = [
|
|
4748
|
+
_h[EnumTipoTributo.IBS_ESTADUAL] = [
|
|
4527
4749
|
{
|
|
4528
4750
|
field: EnumCampoTributo.AliquotaEfetiva,
|
|
4529
4751
|
rule: this.effectiveTaxRateCalculationRule
|
|
@@ -4549,6 +4771,230 @@ var IncomingInvoiceCalculationRulesRegistry = /** @class */ (function () {
|
|
|
4549
4771
|
rule: this.manualTaxCalculationRule
|
|
4550
4772
|
}
|
|
4551
4773
|
],
|
|
4774
|
+
_h[EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
4775
|
+
{
|
|
4776
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
4777
|
+
rule: this.taxableBaseCalculationRule
|
|
4778
|
+
},
|
|
4779
|
+
{
|
|
4780
|
+
field: EnumCampoTributo.Aliquota,
|
|
4781
|
+
rule: this.taxRateCalculationRule
|
|
4782
|
+
},
|
|
4783
|
+
{
|
|
4784
|
+
field: EnumCampoTributo.Valor,
|
|
4785
|
+
rule: this.taxAmountCalculationRule
|
|
4786
|
+
}
|
|
4787
|
+
],
|
|
4788
|
+
_h[EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
4789
|
+
{
|
|
4790
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
4791
|
+
rule: this.taxableBaseCalculationRule
|
|
4792
|
+
},
|
|
4793
|
+
{
|
|
4794
|
+
field: EnumCampoTributo.Valor,
|
|
4795
|
+
rule: this.taxAmountCalculationRule
|
|
4796
|
+
}
|
|
4797
|
+
],
|
|
4798
|
+
_h[EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
|
|
4799
|
+
{
|
|
4800
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
4801
|
+
rule: this.taxableBaseCalculationRule
|
|
4802
|
+
},
|
|
4803
|
+
{
|
|
4804
|
+
field: EnumCampoTributo.Valor,
|
|
4805
|
+
rule: this.taxAmountCalculationRule
|
|
4806
|
+
},
|
|
4807
|
+
{
|
|
4808
|
+
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
4809
|
+
rule: this.taxClassificationCalculationRule
|
|
4810
|
+
}
|
|
4811
|
+
],
|
|
4812
|
+
_h[EnumTipoTributo.IBS_ESTADUAL_GOVERNAMENTAL] = [
|
|
4813
|
+
{
|
|
4814
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
4815
|
+
rule: this.taxableBaseCalculationRule
|
|
4816
|
+
},
|
|
4817
|
+
{
|
|
4818
|
+
field: EnumCampoTributo.Aliquota,
|
|
4819
|
+
rule: this.taxRateCalculationRule
|
|
4820
|
+
},
|
|
4821
|
+
{
|
|
4822
|
+
field: EnumCampoTributo.Valor,
|
|
4823
|
+
rule: this.taxAmountCalculationRule
|
|
4824
|
+
}
|
|
4825
|
+
],
|
|
4826
|
+
_h[EnumTipoTributo.IBS_MUNICIPAL] = [
|
|
4827
|
+
{
|
|
4828
|
+
field: EnumCampoTributo.AliquotaEfetiva,
|
|
4829
|
+
rule: this.effectiveTaxRateCalculationRule
|
|
4830
|
+
},
|
|
4831
|
+
{
|
|
4832
|
+
field: EnumCampoTributo.ValorBruto,
|
|
4833
|
+
rule: this.grossAmountCalculationRule
|
|
4834
|
+
},
|
|
4835
|
+
{
|
|
4836
|
+
field: EnumCampoTributo.Valor,
|
|
4837
|
+
rule: this.taxAmountCalculationRule
|
|
4838
|
+
},
|
|
4839
|
+
{
|
|
4840
|
+
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
4841
|
+
rule: this.taxClassificationCalculationRule
|
|
4842
|
+
},
|
|
4843
|
+
{
|
|
4844
|
+
field: EnumCampoTributo.TipoCalculoImposto,
|
|
4845
|
+
rule: this.taxCalculationTypeCalculationRule
|
|
4846
|
+
},
|
|
4847
|
+
{
|
|
4848
|
+
field: EnumCampoTributo.ImpostoManual,
|
|
4849
|
+
rule: this.manualTaxCalculationRule
|
|
4850
|
+
}
|
|
4851
|
+
],
|
|
4852
|
+
_h[EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
4853
|
+
{
|
|
4854
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
4855
|
+
rule: this.taxableBaseCalculationRule
|
|
4856
|
+
},
|
|
4857
|
+
{
|
|
4858
|
+
field: EnumCampoTributo.Aliquota,
|
|
4859
|
+
rule: this.taxRateCalculationRule
|
|
4860
|
+
},
|
|
4861
|
+
{
|
|
4862
|
+
field: EnumCampoTributo.Valor,
|
|
4863
|
+
rule: this.taxAmountCalculationRule
|
|
4864
|
+
}
|
|
4865
|
+
],
|
|
4866
|
+
_h[EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
4867
|
+
{
|
|
4868
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
4869
|
+
rule: this.taxableBaseCalculationRule
|
|
4870
|
+
},
|
|
4871
|
+
{
|
|
4872
|
+
field: EnumCampoTributo.Valor,
|
|
4873
|
+
rule: this.taxAmountCalculationRule
|
|
4874
|
+
}
|
|
4875
|
+
],
|
|
4876
|
+
_h[EnumTipoTributo.IBS_MUNICIPAL_GOVERNAMENTAL] = [
|
|
4877
|
+
{
|
|
4878
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
4879
|
+
rule: this.taxableBaseCalculationRule
|
|
4880
|
+
},
|
|
4881
|
+
{
|
|
4882
|
+
field: EnumCampoTributo.Aliquota,
|
|
4883
|
+
rule: this.taxRateCalculationRule
|
|
4884
|
+
},
|
|
4885
|
+
{
|
|
4886
|
+
field: EnumCampoTributo.Valor,
|
|
4887
|
+
rule: this.taxAmountCalculationRule
|
|
4888
|
+
}
|
|
4889
|
+
],
|
|
4890
|
+
_h[EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR] = [
|
|
4891
|
+
{
|
|
4892
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
4893
|
+
rule: this.taxableBaseCalculationRule
|
|
4894
|
+
},
|
|
4895
|
+
{
|
|
4896
|
+
field: EnumCampoTributo.Valor,
|
|
4897
|
+
rule: this.taxAmountCalculationRule
|
|
4898
|
+
},
|
|
4899
|
+
{
|
|
4900
|
+
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
4901
|
+
rule: this.taxClassificationCalculationRule
|
|
4902
|
+
}
|
|
4903
|
+
],
|
|
4904
|
+
_h[EnumTipoTributo.IBS_CREDITO_PRESUMIDO] = [
|
|
4905
|
+
{
|
|
4906
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
4907
|
+
rule: this.taxableBaseCalculationRule
|
|
4908
|
+
},
|
|
4909
|
+
{
|
|
4910
|
+
field: EnumCampoTributo.Valor,
|
|
4911
|
+
rule: this.taxAmountCalculationRule
|
|
4912
|
+
},
|
|
4913
|
+
{
|
|
4914
|
+
field: EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
4915
|
+
rule: this.applyNetValueToDocumentCalculationRule
|
|
4916
|
+
}
|
|
4917
|
+
],
|
|
4918
|
+
_h[EnumTipoTributo.IS] = [
|
|
4919
|
+
{
|
|
4920
|
+
field: EnumCampoTributo.Valor,
|
|
4921
|
+
rule: this.taxAmountCalculationRule
|
|
4922
|
+
},
|
|
4923
|
+
{
|
|
4924
|
+
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
4925
|
+
rule: this.taxClassificationCalculationRule
|
|
4926
|
+
}
|
|
4927
|
+
],
|
|
4928
|
+
_h[EnumTipoTributo.CBS_ESTORNO_CREDITO] = [
|
|
4929
|
+
{
|
|
4930
|
+
field: EnumCampoTributo.SituacaoTributaria,
|
|
4931
|
+
rule: this.taxSituationCalculationRule
|
|
4932
|
+
},
|
|
4933
|
+
{
|
|
4934
|
+
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
4935
|
+
rule: this.taxClassificationCalculationRule
|
|
4936
|
+
},
|
|
4937
|
+
{
|
|
4938
|
+
field: EnumCampoTributo.Valor,
|
|
4939
|
+
rule: this.taxAmountCalculationRule
|
|
4940
|
+
}
|
|
4941
|
+
],
|
|
4942
|
+
_h[EnumTipoTributo.IBS_ESTORNO_CREDITO] = [
|
|
4943
|
+
{
|
|
4944
|
+
field: EnumCampoTributo.SituacaoTributaria,
|
|
4945
|
+
rule: this.taxSituationCalculationRule
|
|
4946
|
+
},
|
|
4947
|
+
{
|
|
4948
|
+
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
4949
|
+
rule: this.taxClassificationCalculationRule
|
|
4950
|
+
},
|
|
4951
|
+
{
|
|
4952
|
+
field: EnumCampoTributo.Valor,
|
|
4953
|
+
rule: this.taxAmountCalculationRule
|
|
4954
|
+
}
|
|
4955
|
+
],
|
|
4956
|
+
_h),
|
|
4957
|
+
Reversal: (_j = {},
|
|
4958
|
+
_j[EnumTipoTributo.CBS] = [
|
|
4959
|
+
{
|
|
4960
|
+
field: EnumCampoTributo.AliquotaEfetiva,
|
|
4961
|
+
rule: this.effectiveTaxRateCalculationRule
|
|
4962
|
+
},
|
|
4963
|
+
{
|
|
4964
|
+
field: EnumCampoTributo.ValorBruto,
|
|
4965
|
+
rule: this.grossAmountCalculationRule
|
|
4966
|
+
},
|
|
4967
|
+
{
|
|
4968
|
+
field: EnumCampoTributo.Valor,
|
|
4969
|
+
rule: this.taxAmountCalculationRule
|
|
4970
|
+
},
|
|
4971
|
+
{
|
|
4972
|
+
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
4973
|
+
rule: this.taxClassificationCalculationRule
|
|
4974
|
+
},
|
|
4975
|
+
{
|
|
4976
|
+
field: EnumCampoTributo.TipoCalculoImposto,
|
|
4977
|
+
rule: this.taxCalculationTypeCalculationRule
|
|
4978
|
+
},
|
|
4979
|
+
{
|
|
4980
|
+
field: EnumCampoTributo.ImpostoManual,
|
|
4981
|
+
rule: this.manualTaxCalculationRule
|
|
4982
|
+
}
|
|
4983
|
+
],
|
|
4984
|
+
_j[EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
4985
|
+
{
|
|
4986
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
4987
|
+
rule: this.taxableBaseCalculationRule
|
|
4988
|
+
},
|
|
4989
|
+
{
|
|
4990
|
+
field: EnumCampoTributo.Aliquota,
|
|
4991
|
+
rule: this.taxRateCalculationRule
|
|
4992
|
+
},
|
|
4993
|
+
{
|
|
4994
|
+
field: EnumCampoTributo.Valor,
|
|
4995
|
+
rule: this.taxAmountCalculationRule
|
|
4996
|
+
}
|
|
4997
|
+
],
|
|
4552
4998
|
_j[EnumTipoTributo.CBS_DIFERIDO] = [
|
|
4553
4999
|
{
|
|
4554
5000
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -4619,6 +5065,20 @@ var IncomingInvoiceCalculationRulesRegistry = /** @class */ (function () {
|
|
|
4619
5065
|
rule: this.manualTaxCalculationRule
|
|
4620
5066
|
}
|
|
4621
5067
|
],
|
|
5068
|
+
_j[EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
5069
|
+
{
|
|
5070
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
5071
|
+
rule: this.taxableBaseCalculationRule
|
|
5072
|
+
},
|
|
5073
|
+
{
|
|
5074
|
+
field: EnumCampoTributo.Aliquota,
|
|
5075
|
+
rule: this.taxRateCalculationRule
|
|
5076
|
+
},
|
|
5077
|
+
{
|
|
5078
|
+
field: EnumCampoTributo.Valor,
|
|
5079
|
+
rule: this.taxAmountCalculationRule
|
|
5080
|
+
}
|
|
5081
|
+
],
|
|
4622
5082
|
_j[EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
4623
5083
|
{
|
|
4624
5084
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -4683,6 +5143,20 @@ var IncomingInvoiceCalculationRulesRegistry = /** @class */ (function () {
|
|
|
4683
5143
|
rule: this.manualTaxCalculationRule
|
|
4684
5144
|
}
|
|
4685
5145
|
],
|
|
5146
|
+
_j[EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
5147
|
+
{
|
|
5148
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
5149
|
+
rule: this.taxableBaseCalculationRule
|
|
5150
|
+
},
|
|
5151
|
+
{
|
|
5152
|
+
field: EnumCampoTributo.Aliquota,
|
|
5153
|
+
rule: this.taxRateCalculationRule
|
|
5154
|
+
},
|
|
5155
|
+
{
|
|
5156
|
+
field: EnumCampoTributo.Valor,
|
|
5157
|
+
rule: this.taxAmountCalculationRule
|
|
5158
|
+
}
|
|
5159
|
+
],
|
|
4686
5160
|
_j[EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
4687
5161
|
{
|
|
4688
5162
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -4801,6 +5275,20 @@ var IncomingInvoiceCalculationRulesRegistry = /** @class */ (function () {
|
|
|
4801
5275
|
rule: this.manualTaxCalculationRule
|
|
4802
5276
|
}
|
|
4803
5277
|
],
|
|
5278
|
+
_k[EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
5279
|
+
{
|
|
5280
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
5281
|
+
rule: this.taxableBaseCalculationRule
|
|
5282
|
+
},
|
|
5283
|
+
{
|
|
5284
|
+
field: EnumCampoTributo.Aliquota,
|
|
5285
|
+
rule: this.taxRateCalculationRule
|
|
5286
|
+
},
|
|
5287
|
+
{
|
|
5288
|
+
field: EnumCampoTributo.Valor,
|
|
5289
|
+
rule: this.taxAmountCalculationRule
|
|
5290
|
+
}
|
|
5291
|
+
],
|
|
4804
5292
|
_k[EnumTipoTributo.CBS_DIFERIDO] = [
|
|
4805
5293
|
{
|
|
4806
5294
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -4871,6 +5359,20 @@ var IncomingInvoiceCalculationRulesRegistry = /** @class */ (function () {
|
|
|
4871
5359
|
rule: this.manualTaxCalculationRule
|
|
4872
5360
|
}
|
|
4873
5361
|
],
|
|
5362
|
+
_k[EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
5363
|
+
{
|
|
5364
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
5365
|
+
rule: this.taxableBaseCalculationRule
|
|
5366
|
+
},
|
|
5367
|
+
{
|
|
5368
|
+
field: EnumCampoTributo.Aliquota,
|
|
5369
|
+
rule: this.taxRateCalculationRule
|
|
5370
|
+
},
|
|
5371
|
+
{
|
|
5372
|
+
field: EnumCampoTributo.Valor,
|
|
5373
|
+
rule: this.taxAmountCalculationRule
|
|
5374
|
+
}
|
|
5375
|
+
],
|
|
4874
5376
|
_k[EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
4875
5377
|
{
|
|
4876
5378
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -4935,6 +5437,20 @@ var IncomingInvoiceCalculationRulesRegistry = /** @class */ (function () {
|
|
|
4935
5437
|
rule: this.manualTaxCalculationRule
|
|
4936
5438
|
}
|
|
4937
5439
|
],
|
|
5440
|
+
_k[EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
5441
|
+
{
|
|
5442
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
5443
|
+
rule: this.taxableBaseCalculationRule
|
|
5444
|
+
},
|
|
5445
|
+
{
|
|
5446
|
+
field: EnumCampoTributo.Aliquota,
|
|
5447
|
+
rule: this.taxRateCalculationRule
|
|
5448
|
+
},
|
|
5449
|
+
{
|
|
5450
|
+
field: EnumCampoTributo.Valor,
|
|
5451
|
+
rule: this.taxAmountCalculationRule
|
|
5452
|
+
}
|
|
5453
|
+
],
|
|
4938
5454
|
_k[EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
4939
5455
|
{
|
|
4940
5456
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -9475,6 +9991,20 @@ var PurchaseOrderCalculationRulesRegistry = /** @class */ (function () {
|
|
|
9475
9991
|
rule: this.manualTaxCalculationRule
|
|
9476
9992
|
}
|
|
9477
9993
|
],
|
|
9994
|
+
_a[EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
9995
|
+
{
|
|
9996
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
9997
|
+
rule: this.taxableBaseCalculationRule
|
|
9998
|
+
},
|
|
9999
|
+
{
|
|
10000
|
+
field: EnumCampoTributo.Aliquota,
|
|
10001
|
+
rule: this.taxRateCalculationRule
|
|
10002
|
+
},
|
|
10003
|
+
{
|
|
10004
|
+
field: EnumCampoTributo.Valor,
|
|
10005
|
+
rule: this.taxAmountCalculationRule
|
|
10006
|
+
}
|
|
10007
|
+
],
|
|
9478
10008
|
_a[EnumTipoTributo.CBS_DIFERIDO] = [
|
|
9479
10009
|
{
|
|
9480
10010
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -9537,6 +10067,20 @@ var PurchaseOrderCalculationRulesRegistry = /** @class */ (function () {
|
|
|
9537
10067
|
rule: this.manualTaxCalculationRule
|
|
9538
10068
|
}
|
|
9539
10069
|
],
|
|
10070
|
+
_a[EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
10071
|
+
{
|
|
10072
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
10073
|
+
rule: this.taxableBaseCalculationRule
|
|
10074
|
+
},
|
|
10075
|
+
{
|
|
10076
|
+
field: EnumCampoTributo.Aliquota,
|
|
10077
|
+
rule: this.taxRateCalculationRule
|
|
10078
|
+
},
|
|
10079
|
+
{
|
|
10080
|
+
field: EnumCampoTributo.Valor,
|
|
10081
|
+
rule: this.taxAmountCalculationRule
|
|
10082
|
+
}
|
|
10083
|
+
],
|
|
9540
10084
|
_a[EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
9541
10085
|
{
|
|
9542
10086
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -9593,6 +10137,20 @@ var PurchaseOrderCalculationRulesRegistry = /** @class */ (function () {
|
|
|
9593
10137
|
rule: this.manualTaxCalculationRule
|
|
9594
10138
|
}
|
|
9595
10139
|
],
|
|
10140
|
+
_a[EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
10141
|
+
{
|
|
10142
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
10143
|
+
rule: this.taxableBaseCalculationRule
|
|
10144
|
+
},
|
|
10145
|
+
{
|
|
10146
|
+
field: EnumCampoTributo.Aliquota,
|
|
10147
|
+
rule: this.taxRateCalculationRule
|
|
10148
|
+
},
|
|
10149
|
+
{
|
|
10150
|
+
field: EnumCampoTributo.Valor,
|
|
10151
|
+
rule: this.taxAmountCalculationRule
|
|
10152
|
+
}
|
|
10153
|
+
],
|
|
9596
10154
|
_a[EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
9597
10155
|
{
|
|
9598
10156
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -11214,11 +11772,135 @@ var TaxClassificationStatusRule = /** @class */ (function () {
|
|
|
11214
11772
|
return TaxClassificationStatusRule;
|
|
11215
11773
|
}());
|
|
11216
11774
|
|
|
11775
|
+
var TaxRateStatusRule = /** @class */ (function () {
|
|
11776
|
+
function TaxRateStatusRule() {
|
|
11777
|
+
}
|
|
11778
|
+
TaxRateStatusRule.prototype.apply = function (_a) {
|
|
11779
|
+
var document = _a.context.document, group = _a.group, _b = _a.item, taxType = _b.name, formGroup = _b.formGroup;
|
|
11780
|
+
switch (taxType) {
|
|
11781
|
+
case EnumTipoTributo.CBS_A_APROPRIAR:
|
|
11782
|
+
case EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR:
|
|
11783
|
+
case EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR:
|
|
11784
|
+
{
|
|
11785
|
+
switch (document) {
|
|
11786
|
+
case 'Incoming Invoice':
|
|
11787
|
+
case 'Purchase Order':
|
|
11788
|
+
{
|
|
11789
|
+
var baseTaxFormGroup = getBaseTaxItemFromGroup({ group: group }).formGroup;
|
|
11790
|
+
combineLatest([
|
|
11791
|
+
baseTaxFormGroup
|
|
11792
|
+
.get('baseCalculo')
|
|
11793
|
+
.valueChanges.pipe(startWith(baseTaxFormGroup.get('baseCalculo').value), distinctUntilChanged()),
|
|
11794
|
+
baseTaxFormGroup
|
|
11795
|
+
.get('valor')
|
|
11796
|
+
.valueChanges.pipe(startWith(baseTaxFormGroup.get('valor')
|
|
11797
|
+
.value), distinctUntilChanged())
|
|
11798
|
+
])
|
|
11799
|
+
.pipe(map(function (_a) {
|
|
11800
|
+
var _b = __read(_a, 2), taxableBase = _b[0], taxAmount = _b[1];
|
|
11801
|
+
return !new BigNumber(taxableBase).isNaN() ||
|
|
11802
|
+
!new BigNumber(taxAmount).isNaN();
|
|
11803
|
+
}), distinctUntilChanged())
|
|
11804
|
+
.subscribe(function (isBaseTaxInformed) {
|
|
11805
|
+
if (isBaseTaxInformed) {
|
|
11806
|
+
formGroup.get('aliquota').enable({
|
|
11807
|
+
emitEvent: false
|
|
11808
|
+
});
|
|
11809
|
+
}
|
|
11810
|
+
else {
|
|
11811
|
+
formGroup.get('aliquota').disable({
|
|
11812
|
+
emitEvent: false
|
|
11813
|
+
});
|
|
11814
|
+
}
|
|
11815
|
+
});
|
|
11816
|
+
}
|
|
11817
|
+
break;
|
|
11818
|
+
default:
|
|
11819
|
+
throw new Error("Regra TaxRateStatusRule n\u00E3o implementada para o imposto " + taxType + ", documento " + document + ".");
|
|
11820
|
+
}
|
|
11821
|
+
}
|
|
11822
|
+
break;
|
|
11823
|
+
default:
|
|
11824
|
+
throw new Error("Regra TaxRateStatusRule n\u00E3o implementada para o imposto " + taxType + ", documento " + document + ".");
|
|
11825
|
+
}
|
|
11826
|
+
};
|
|
11827
|
+
TaxRateStatusRule.ɵprov = ɵɵdefineInjectable({ factory: function TaxRateStatusRule_Factory() { return new TaxRateStatusRule(); }, token: TaxRateStatusRule, providedIn: "root" });
|
|
11828
|
+
TaxRateStatusRule = __decorate([
|
|
11829
|
+
Injectable({ providedIn: 'root' })
|
|
11830
|
+
], TaxRateStatusRule);
|
|
11831
|
+
return TaxRateStatusRule;
|
|
11832
|
+
}());
|
|
11833
|
+
|
|
11834
|
+
var TaxableBaseStatusRule = /** @class */ (function () {
|
|
11835
|
+
function TaxableBaseStatusRule() {
|
|
11836
|
+
}
|
|
11837
|
+
TaxableBaseStatusRule.prototype.apply = function (_a) {
|
|
11838
|
+
var document = _a.context.document, group = _a.group, _b = _a.item, taxType = _b.name, formGroup = _b.formGroup;
|
|
11839
|
+
switch (taxType) {
|
|
11840
|
+
case EnumTipoTributo.CBS_A_APROPRIAR:
|
|
11841
|
+
case EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR:
|
|
11842
|
+
case EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR:
|
|
11843
|
+
{
|
|
11844
|
+
switch (document) {
|
|
11845
|
+
case 'Incoming Invoice':
|
|
11846
|
+
case 'Purchase Order':
|
|
11847
|
+
{
|
|
11848
|
+
var baseTaxFormGroup = getBaseTaxItemFromGroup({ group: group }).formGroup;
|
|
11849
|
+
combineLatest([
|
|
11850
|
+
baseTaxFormGroup
|
|
11851
|
+
.get('baseCalculo')
|
|
11852
|
+
.valueChanges.pipe(startWith(baseTaxFormGroup.get('baseCalculo').value), distinctUntilChanged()),
|
|
11853
|
+
baseTaxFormGroup
|
|
11854
|
+
.get('valor')
|
|
11855
|
+
.valueChanges.pipe(startWith(baseTaxFormGroup.get('valor')
|
|
11856
|
+
.value), distinctUntilChanged())
|
|
11857
|
+
])
|
|
11858
|
+
.pipe(map(function (_a) {
|
|
11859
|
+
var _b = __read(_a, 2), taxableBase = _b[0], taxAmount = _b[1];
|
|
11860
|
+
return !new BigNumber(taxableBase).isNaN() ||
|
|
11861
|
+
!new BigNumber(taxAmount).isNaN();
|
|
11862
|
+
}), distinctUntilChanged())
|
|
11863
|
+
.subscribe(function (isBaseTaxInformed) {
|
|
11864
|
+
if (isBaseTaxInformed) {
|
|
11865
|
+
formGroup
|
|
11866
|
+
.get('baseCalculo')
|
|
11867
|
+
.enable({
|
|
11868
|
+
emitEvent: false
|
|
11869
|
+
});
|
|
11870
|
+
}
|
|
11871
|
+
else {
|
|
11872
|
+
formGroup
|
|
11873
|
+
.get('baseCalculo')
|
|
11874
|
+
.disable({
|
|
11875
|
+
emitEvent: false
|
|
11876
|
+
});
|
|
11877
|
+
}
|
|
11878
|
+
});
|
|
11879
|
+
}
|
|
11880
|
+
break;
|
|
11881
|
+
default:
|
|
11882
|
+
throw new Error("Regra TaxableBaseStatusRule n\u00E3o implementada para o imposto " + taxType + ", documento " + document + ".");
|
|
11883
|
+
}
|
|
11884
|
+
}
|
|
11885
|
+
break;
|
|
11886
|
+
default:
|
|
11887
|
+
throw new Error("Regra TaxableBaseStatusRule n\u00E3o implementada para o imposto " + taxType + ", documento " + document + ".");
|
|
11888
|
+
}
|
|
11889
|
+
};
|
|
11890
|
+
TaxableBaseStatusRule.ɵprov = ɵɵdefineInjectable({ factory: function TaxableBaseStatusRule_Factory() { return new TaxableBaseStatusRule(); }, token: TaxableBaseStatusRule, providedIn: "root" });
|
|
11891
|
+
TaxableBaseStatusRule = __decorate([
|
|
11892
|
+
Injectable({ providedIn: 'root' })
|
|
11893
|
+
], TaxableBaseStatusRule);
|
|
11894
|
+
return TaxableBaseStatusRule;
|
|
11895
|
+
}());
|
|
11896
|
+
|
|
11217
11897
|
var IncomingInvoiceStatusRulesRegistry = /** @class */ (function () {
|
|
11218
|
-
function IncomingInvoiceStatusRulesRegistry(taxClassificationStatusRule, applyNetValueToDocumentStatusRule) {
|
|
11898
|
+
function IncomingInvoiceStatusRulesRegistry(taxClassificationStatusRule, applyNetValueToDocumentStatusRule, taxableBaseStatusRule, taxRateStatusRule) {
|
|
11219
11899
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
11220
11900
|
this.taxClassificationStatusRule = taxClassificationStatusRule;
|
|
11221
11901
|
this.applyNetValueToDocumentStatusRule = applyNetValueToDocumentStatusRule;
|
|
11902
|
+
this.taxableBaseStatusRule = taxableBaseStatusRule;
|
|
11903
|
+
this.taxRateStatusRule = taxRateStatusRule;
|
|
11222
11904
|
this.strategies = {
|
|
11223
11905
|
Adjustment: (_a = {},
|
|
11224
11906
|
_a[EnumTipoTributo.CBS] = [
|
|
@@ -11237,6 +11919,16 @@ var IncomingInvoiceStatusRulesRegistry = /** @class */ (function () {
|
|
|
11237
11919
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11238
11920
|
}
|
|
11239
11921
|
],
|
|
11922
|
+
_a[EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
11923
|
+
{
|
|
11924
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
11925
|
+
rule: this.taxableBaseStatusRule
|
|
11926
|
+
},
|
|
11927
|
+
{
|
|
11928
|
+
field: EnumCampoTributo.Aliquota,
|
|
11929
|
+
rule: this.taxRateStatusRule
|
|
11930
|
+
}
|
|
11931
|
+
],
|
|
11240
11932
|
_a[EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
11241
11933
|
{
|
|
11242
11934
|
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11253,6 +11945,16 @@ var IncomingInvoiceStatusRulesRegistry = /** @class */ (function () {
|
|
|
11253
11945
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11254
11946
|
}
|
|
11255
11947
|
],
|
|
11948
|
+
_a[EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
11949
|
+
{
|
|
11950
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
11951
|
+
rule: this.taxableBaseStatusRule
|
|
11952
|
+
},
|
|
11953
|
+
{
|
|
11954
|
+
field: EnumCampoTributo.Aliquota,
|
|
11955
|
+
rule: this.taxRateStatusRule
|
|
11956
|
+
}
|
|
11957
|
+
],
|
|
11256
11958
|
_a[EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
|
|
11257
11959
|
{
|
|
11258
11960
|
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11269,6 +11971,16 @@ var IncomingInvoiceStatusRulesRegistry = /** @class */ (function () {
|
|
|
11269
11971
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11270
11972
|
}
|
|
11271
11973
|
],
|
|
11974
|
+
_a[EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
11975
|
+
{
|
|
11976
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
11977
|
+
rule: this.taxableBaseStatusRule
|
|
11978
|
+
},
|
|
11979
|
+
{
|
|
11980
|
+
field: EnumCampoTributo.Aliquota,
|
|
11981
|
+
rule: this.taxRateStatusRule
|
|
11982
|
+
}
|
|
11983
|
+
],
|
|
11272
11984
|
_a[EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR] = [
|
|
11273
11985
|
{
|
|
11274
11986
|
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11312,6 +12024,16 @@ var IncomingInvoiceStatusRulesRegistry = /** @class */ (function () {
|
|
|
11312
12024
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11313
12025
|
}
|
|
11314
12026
|
],
|
|
12027
|
+
_b[EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
12028
|
+
{
|
|
12029
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
12030
|
+
rule: this.taxableBaseStatusRule
|
|
12031
|
+
},
|
|
12032
|
+
{
|
|
12033
|
+
field: EnumCampoTributo.Aliquota,
|
|
12034
|
+
rule: this.taxRateStatusRule
|
|
12035
|
+
}
|
|
12036
|
+
],
|
|
11315
12037
|
_b[EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
11316
12038
|
{
|
|
11317
12039
|
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11328,6 +12050,16 @@ var IncomingInvoiceStatusRulesRegistry = /** @class */ (function () {
|
|
|
11328
12050
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11329
12051
|
}
|
|
11330
12052
|
],
|
|
12053
|
+
_b[EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
12054
|
+
{
|
|
12055
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
12056
|
+
rule: this.taxableBaseStatusRule
|
|
12057
|
+
},
|
|
12058
|
+
{
|
|
12059
|
+
field: EnumCampoTributo.Aliquota,
|
|
12060
|
+
rule: this.taxRateStatusRule
|
|
12061
|
+
}
|
|
12062
|
+
],
|
|
11331
12063
|
_b[EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
|
|
11332
12064
|
{
|
|
11333
12065
|
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11344,6 +12076,16 @@ var IncomingInvoiceStatusRulesRegistry = /** @class */ (function () {
|
|
|
11344
12076
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11345
12077
|
}
|
|
11346
12078
|
],
|
|
12079
|
+
_b[EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
12080
|
+
{
|
|
12081
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
12082
|
+
rule: this.taxableBaseStatusRule
|
|
12083
|
+
},
|
|
12084
|
+
{
|
|
12085
|
+
field: EnumCampoTributo.Aliquota,
|
|
12086
|
+
rule: this.taxRateStatusRule
|
|
12087
|
+
}
|
|
12088
|
+
],
|
|
11347
12089
|
_b[EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR] = [
|
|
11348
12090
|
{
|
|
11349
12091
|
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11387,6 +12129,16 @@ var IncomingInvoiceStatusRulesRegistry = /** @class */ (function () {
|
|
|
11387
12129
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11388
12130
|
}
|
|
11389
12131
|
],
|
|
12132
|
+
_c[EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
12133
|
+
{
|
|
12134
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
12135
|
+
rule: this.taxableBaseStatusRule
|
|
12136
|
+
},
|
|
12137
|
+
{
|
|
12138
|
+
field: EnumCampoTributo.Aliquota,
|
|
12139
|
+
rule: this.taxRateStatusRule
|
|
12140
|
+
}
|
|
12141
|
+
],
|
|
11390
12142
|
_c[EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
11391
12143
|
{
|
|
11392
12144
|
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11403,6 +12155,16 @@ var IncomingInvoiceStatusRulesRegistry = /** @class */ (function () {
|
|
|
11403
12155
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11404
12156
|
}
|
|
11405
12157
|
],
|
|
12158
|
+
_c[EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
12159
|
+
{
|
|
12160
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
12161
|
+
rule: this.taxableBaseStatusRule
|
|
12162
|
+
},
|
|
12163
|
+
{
|
|
12164
|
+
field: EnumCampoTributo.Aliquota,
|
|
12165
|
+
rule: this.taxRateStatusRule
|
|
12166
|
+
}
|
|
12167
|
+
],
|
|
11406
12168
|
_c[EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
|
|
11407
12169
|
{
|
|
11408
12170
|
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11419,6 +12181,16 @@ var IncomingInvoiceStatusRulesRegistry = /** @class */ (function () {
|
|
|
11419
12181
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11420
12182
|
}
|
|
11421
12183
|
],
|
|
12184
|
+
_c[EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
12185
|
+
{
|
|
12186
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
12187
|
+
rule: this.taxableBaseStatusRule
|
|
12188
|
+
},
|
|
12189
|
+
{
|
|
12190
|
+
field: EnumCampoTributo.Aliquota,
|
|
12191
|
+
rule: this.taxRateStatusRule
|
|
12192
|
+
}
|
|
12193
|
+
],
|
|
11422
12194
|
_c[EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR] = [
|
|
11423
12195
|
{
|
|
11424
12196
|
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11462,6 +12234,16 @@ var IncomingInvoiceStatusRulesRegistry = /** @class */ (function () {
|
|
|
11462
12234
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11463
12235
|
}
|
|
11464
12236
|
],
|
|
12237
|
+
_d[EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
12238
|
+
{
|
|
12239
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
12240
|
+
rule: this.taxableBaseStatusRule
|
|
12241
|
+
},
|
|
12242
|
+
{
|
|
12243
|
+
field: EnumCampoTributo.Aliquota,
|
|
12244
|
+
rule: this.taxRateStatusRule
|
|
12245
|
+
}
|
|
12246
|
+
],
|
|
11465
12247
|
_d[EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
11466
12248
|
{
|
|
11467
12249
|
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11478,6 +12260,16 @@ var IncomingInvoiceStatusRulesRegistry = /** @class */ (function () {
|
|
|
11478
12260
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11479
12261
|
}
|
|
11480
12262
|
],
|
|
12263
|
+
_d[EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
12264
|
+
{
|
|
12265
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
12266
|
+
rule: this.taxableBaseStatusRule
|
|
12267
|
+
},
|
|
12268
|
+
{
|
|
12269
|
+
field: EnumCampoTributo.Aliquota,
|
|
12270
|
+
rule: this.taxRateStatusRule
|
|
12271
|
+
}
|
|
12272
|
+
],
|
|
11481
12273
|
_d[EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
|
|
11482
12274
|
{
|
|
11483
12275
|
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11494,6 +12286,16 @@ var IncomingInvoiceStatusRulesRegistry = /** @class */ (function () {
|
|
|
11494
12286
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11495
12287
|
}
|
|
11496
12288
|
],
|
|
12289
|
+
_d[EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
12290
|
+
{
|
|
12291
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
12292
|
+
rule: this.taxableBaseStatusRule
|
|
12293
|
+
},
|
|
12294
|
+
{
|
|
12295
|
+
field: EnumCampoTributo.Aliquota,
|
|
12296
|
+
rule: this.taxRateStatusRule
|
|
12297
|
+
}
|
|
12298
|
+
],
|
|
11497
12299
|
_d[EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR] = [
|
|
11498
12300
|
{
|
|
11499
12301
|
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11537,6 +12339,16 @@ var IncomingInvoiceStatusRulesRegistry = /** @class */ (function () {
|
|
|
11537
12339
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11538
12340
|
}
|
|
11539
12341
|
],
|
|
12342
|
+
_e[EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
12343
|
+
{
|
|
12344
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
12345
|
+
rule: this.taxableBaseStatusRule
|
|
12346
|
+
},
|
|
12347
|
+
{
|
|
12348
|
+
field: EnumCampoTributo.Aliquota,
|
|
12349
|
+
rule: this.taxRateStatusRule
|
|
12350
|
+
}
|
|
12351
|
+
],
|
|
11540
12352
|
_e[EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
11541
12353
|
{
|
|
11542
12354
|
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11553,6 +12365,16 @@ var IncomingInvoiceStatusRulesRegistry = /** @class */ (function () {
|
|
|
11553
12365
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11554
12366
|
}
|
|
11555
12367
|
],
|
|
12368
|
+
_e[EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
12369
|
+
{
|
|
12370
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
12371
|
+
rule: this.taxableBaseStatusRule
|
|
12372
|
+
},
|
|
12373
|
+
{
|
|
12374
|
+
field: EnumCampoTributo.Aliquota,
|
|
12375
|
+
rule: this.taxRateStatusRule
|
|
12376
|
+
}
|
|
12377
|
+
],
|
|
11556
12378
|
_e[EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
|
|
11557
12379
|
{
|
|
11558
12380
|
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11569,6 +12391,16 @@ var IncomingInvoiceStatusRulesRegistry = /** @class */ (function () {
|
|
|
11569
12391
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11570
12392
|
}
|
|
11571
12393
|
],
|
|
12394
|
+
_e[EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
12395
|
+
{
|
|
12396
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
12397
|
+
rule: this.taxableBaseStatusRule
|
|
12398
|
+
},
|
|
12399
|
+
{
|
|
12400
|
+
field: EnumCampoTributo.Aliquota,
|
|
12401
|
+
rule: this.taxRateStatusRule
|
|
12402
|
+
}
|
|
12403
|
+
],
|
|
11572
12404
|
_e[EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR] = [
|
|
11573
12405
|
{
|
|
11574
12406
|
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11612,6 +12444,16 @@ var IncomingInvoiceStatusRulesRegistry = /** @class */ (function () {
|
|
|
11612
12444
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11613
12445
|
}
|
|
11614
12446
|
],
|
|
12447
|
+
_f[EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
12448
|
+
{
|
|
12449
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
12450
|
+
rule: this.taxableBaseStatusRule
|
|
12451
|
+
},
|
|
12452
|
+
{
|
|
12453
|
+
field: EnumCampoTributo.Aliquota,
|
|
12454
|
+
rule: this.taxRateStatusRule
|
|
12455
|
+
}
|
|
12456
|
+
],
|
|
11615
12457
|
_f[EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
11616
12458
|
{
|
|
11617
12459
|
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11628,6 +12470,16 @@ var IncomingInvoiceStatusRulesRegistry = /** @class */ (function () {
|
|
|
11628
12470
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11629
12471
|
}
|
|
11630
12472
|
],
|
|
12473
|
+
_f[EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
12474
|
+
{
|
|
12475
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
12476
|
+
rule: this.taxableBaseStatusRule
|
|
12477
|
+
},
|
|
12478
|
+
{
|
|
12479
|
+
field: EnumCampoTributo.Aliquota,
|
|
12480
|
+
rule: this.taxRateStatusRule
|
|
12481
|
+
}
|
|
12482
|
+
],
|
|
11631
12483
|
_f[EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
|
|
11632
12484
|
{
|
|
11633
12485
|
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11644,6 +12496,16 @@ var IncomingInvoiceStatusRulesRegistry = /** @class */ (function () {
|
|
|
11644
12496
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11645
12497
|
}
|
|
11646
12498
|
],
|
|
12499
|
+
_f[EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
12500
|
+
{
|
|
12501
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
12502
|
+
rule: this.taxableBaseStatusRule
|
|
12503
|
+
},
|
|
12504
|
+
{
|
|
12505
|
+
field: EnumCampoTributo.Aliquota,
|
|
12506
|
+
rule: this.taxRateStatusRule
|
|
12507
|
+
}
|
|
12508
|
+
],
|
|
11647
12509
|
_f[EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR] = [
|
|
11648
12510
|
{
|
|
11649
12511
|
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11675,6 +12537,16 @@ var IncomingInvoiceStatusRulesRegistry = /** @class */ (function () {
|
|
|
11675
12537
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11676
12538
|
}
|
|
11677
12539
|
],
|
|
12540
|
+
_g[EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
12541
|
+
{
|
|
12542
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
12543
|
+
rule: this.taxableBaseStatusRule
|
|
12544
|
+
},
|
|
12545
|
+
{
|
|
12546
|
+
field: EnumCampoTributo.Aliquota,
|
|
12547
|
+
rule: this.taxRateStatusRule
|
|
12548
|
+
}
|
|
12549
|
+
],
|
|
11678
12550
|
_g[EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
11679
12551
|
{
|
|
11680
12552
|
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11691,6 +12563,16 @@ var IncomingInvoiceStatusRulesRegistry = /** @class */ (function () {
|
|
|
11691
12563
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11692
12564
|
}
|
|
11693
12565
|
],
|
|
12566
|
+
_g[EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
12567
|
+
{
|
|
12568
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
12569
|
+
rule: this.taxableBaseStatusRule
|
|
12570
|
+
},
|
|
12571
|
+
{
|
|
12572
|
+
field: EnumCampoTributo.Aliquota,
|
|
12573
|
+
rule: this.taxRateStatusRule
|
|
12574
|
+
}
|
|
12575
|
+
],
|
|
11694
12576
|
_g[EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
|
|
11695
12577
|
{
|
|
11696
12578
|
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11707,6 +12589,16 @@ var IncomingInvoiceStatusRulesRegistry = /** @class */ (function () {
|
|
|
11707
12589
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11708
12590
|
}
|
|
11709
12591
|
],
|
|
12592
|
+
_g[EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
12593
|
+
{
|
|
12594
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
12595
|
+
rule: this.taxableBaseStatusRule
|
|
12596
|
+
},
|
|
12597
|
+
{
|
|
12598
|
+
field: EnumCampoTributo.Aliquota,
|
|
12599
|
+
rule: this.taxRateStatusRule
|
|
12600
|
+
}
|
|
12601
|
+
],
|
|
11710
12602
|
_g[EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR] = [
|
|
11711
12603
|
{
|
|
11712
12604
|
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11750,6 +12642,16 @@ var IncomingInvoiceStatusRulesRegistry = /** @class */ (function () {
|
|
|
11750
12642
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11751
12643
|
}
|
|
11752
12644
|
],
|
|
12645
|
+
_h[EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
12646
|
+
{
|
|
12647
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
12648
|
+
rule: this.taxableBaseStatusRule
|
|
12649
|
+
},
|
|
12650
|
+
{
|
|
12651
|
+
field: EnumCampoTributo.Aliquota,
|
|
12652
|
+
rule: this.taxRateStatusRule
|
|
12653
|
+
}
|
|
12654
|
+
],
|
|
11753
12655
|
_h[EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
11754
12656
|
{
|
|
11755
12657
|
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11766,6 +12668,16 @@ var IncomingInvoiceStatusRulesRegistry = /** @class */ (function () {
|
|
|
11766
12668
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11767
12669
|
}
|
|
11768
12670
|
],
|
|
12671
|
+
_h[EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
12672
|
+
{
|
|
12673
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
12674
|
+
rule: this.taxableBaseStatusRule
|
|
12675
|
+
},
|
|
12676
|
+
{
|
|
12677
|
+
field: EnumCampoTributo.Aliquota,
|
|
12678
|
+
rule: this.taxRateStatusRule
|
|
12679
|
+
}
|
|
12680
|
+
],
|
|
11769
12681
|
_h[EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
|
|
11770
12682
|
{
|
|
11771
12683
|
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11782,6 +12694,16 @@ var IncomingInvoiceStatusRulesRegistry = /** @class */ (function () {
|
|
|
11782
12694
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11783
12695
|
}
|
|
11784
12696
|
],
|
|
12697
|
+
_h[EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
12698
|
+
{
|
|
12699
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
12700
|
+
rule: this.taxableBaseStatusRule
|
|
12701
|
+
},
|
|
12702
|
+
{
|
|
12703
|
+
field: EnumCampoTributo.Aliquota,
|
|
12704
|
+
rule: this.taxRateStatusRule
|
|
12705
|
+
}
|
|
12706
|
+
],
|
|
11785
12707
|
_h[EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR] = [
|
|
11786
12708
|
{
|
|
11787
12709
|
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11825,6 +12747,16 @@ var IncomingInvoiceStatusRulesRegistry = /** @class */ (function () {
|
|
|
11825
12747
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11826
12748
|
}
|
|
11827
12749
|
],
|
|
12750
|
+
_j[EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
12751
|
+
{
|
|
12752
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
12753
|
+
rule: this.taxableBaseStatusRule
|
|
12754
|
+
},
|
|
12755
|
+
{
|
|
12756
|
+
field: EnumCampoTributo.Aliquota,
|
|
12757
|
+
rule: this.taxRateStatusRule
|
|
12758
|
+
}
|
|
12759
|
+
],
|
|
11828
12760
|
_j[EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
11829
12761
|
{
|
|
11830
12762
|
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11841,6 +12773,16 @@ var IncomingInvoiceStatusRulesRegistry = /** @class */ (function () {
|
|
|
11841
12773
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11842
12774
|
}
|
|
11843
12775
|
],
|
|
12776
|
+
_j[EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
12777
|
+
{
|
|
12778
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
12779
|
+
rule: this.taxableBaseStatusRule
|
|
12780
|
+
},
|
|
12781
|
+
{
|
|
12782
|
+
field: EnumCampoTributo.Aliquota,
|
|
12783
|
+
rule: this.taxRateStatusRule
|
|
12784
|
+
}
|
|
12785
|
+
],
|
|
11844
12786
|
_j[EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
|
|
11845
12787
|
{
|
|
11846
12788
|
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11857,6 +12799,16 @@ var IncomingInvoiceStatusRulesRegistry = /** @class */ (function () {
|
|
|
11857
12799
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11858
12800
|
}
|
|
11859
12801
|
],
|
|
12802
|
+
_j[EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
12803
|
+
{
|
|
12804
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
12805
|
+
rule: this.taxableBaseStatusRule
|
|
12806
|
+
},
|
|
12807
|
+
{
|
|
12808
|
+
field: EnumCampoTributo.Aliquota,
|
|
12809
|
+
rule: this.taxRateStatusRule
|
|
12810
|
+
}
|
|
12811
|
+
],
|
|
11860
12812
|
_j[EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR] = [
|
|
11861
12813
|
{
|
|
11862
12814
|
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11900,6 +12852,16 @@ var IncomingInvoiceStatusRulesRegistry = /** @class */ (function () {
|
|
|
11900
12852
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11901
12853
|
}
|
|
11902
12854
|
],
|
|
12855
|
+
_k[EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
12856
|
+
{
|
|
12857
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
12858
|
+
rule: this.taxableBaseStatusRule
|
|
12859
|
+
},
|
|
12860
|
+
{
|
|
12861
|
+
field: EnumCampoTributo.Aliquota,
|
|
12862
|
+
rule: this.taxRateStatusRule
|
|
12863
|
+
}
|
|
12864
|
+
],
|
|
11903
12865
|
_k[EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
11904
12866
|
{
|
|
11905
12867
|
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11916,6 +12878,16 @@ var IncomingInvoiceStatusRulesRegistry = /** @class */ (function () {
|
|
|
11916
12878
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11917
12879
|
}
|
|
11918
12880
|
],
|
|
12881
|
+
_k[EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
12882
|
+
{
|
|
12883
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
12884
|
+
rule: this.taxableBaseStatusRule
|
|
12885
|
+
},
|
|
12886
|
+
{
|
|
12887
|
+
field: EnumCampoTributo.Aliquota,
|
|
12888
|
+
rule: this.taxRateStatusRule
|
|
12889
|
+
}
|
|
12890
|
+
],
|
|
11919
12891
|
_k[EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
|
|
11920
12892
|
{
|
|
11921
12893
|
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11932,6 +12904,16 @@ var IncomingInvoiceStatusRulesRegistry = /** @class */ (function () {
|
|
|
11932
12904
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11933
12905
|
}
|
|
11934
12906
|
],
|
|
12907
|
+
_k[EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
12908
|
+
{
|
|
12909
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
12910
|
+
rule: this.taxableBaseStatusRule
|
|
12911
|
+
},
|
|
12912
|
+
{
|
|
12913
|
+
field: EnumCampoTributo.Aliquota,
|
|
12914
|
+
rule: this.taxRateStatusRule
|
|
12915
|
+
}
|
|
12916
|
+
],
|
|
11935
12917
|
_k[EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR] = [
|
|
11936
12918
|
{
|
|
11937
12919
|
field: EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11966,9 +12948,11 @@ var IncomingInvoiceStatusRulesRegistry = /** @class */ (function () {
|
|
|
11966
12948
|
};
|
|
11967
12949
|
IncomingInvoiceStatusRulesRegistry.ctorParameters = function () { return [
|
|
11968
12950
|
{ type: TaxClassificationStatusRule },
|
|
11969
|
-
{ type: ApplyNetValueToDocumentStatusRule }
|
|
12951
|
+
{ type: ApplyNetValueToDocumentStatusRule },
|
|
12952
|
+
{ type: TaxableBaseStatusRule },
|
|
12953
|
+
{ type: TaxRateStatusRule }
|
|
11970
12954
|
]; };
|
|
11971
|
-
IncomingInvoiceStatusRulesRegistry.ɵprov = ɵɵdefineInjectable({ factory: function IncomingInvoiceStatusRulesRegistry_Factory() { return new IncomingInvoiceStatusRulesRegistry(ɵɵinject(TaxClassificationStatusRule), ɵɵinject(ApplyNetValueToDocumentStatusRule)); }, token: IncomingInvoiceStatusRulesRegistry, providedIn: "root" });
|
|
12955
|
+
IncomingInvoiceStatusRulesRegistry.ɵprov = ɵɵdefineInjectable({ factory: function IncomingInvoiceStatusRulesRegistry_Factory() { return new IncomingInvoiceStatusRulesRegistry(ɵɵinject(TaxClassificationStatusRule), ɵɵinject(ApplyNetValueToDocumentStatusRule), ɵɵinject(TaxableBaseStatusRule), ɵɵinject(TaxRateStatusRule)); }, token: IncomingInvoiceStatusRulesRegistry, providedIn: "root" });
|
|
11972
12956
|
IncomingInvoiceStatusRulesRegistry = __decorate([
|
|
11973
12957
|
Injectable({ providedIn: 'root' })
|
|
11974
12958
|
], IncomingInvoiceStatusRulesRegistry);
|
|
@@ -13286,14 +14270,54 @@ var OutgoingInvoiceStatusRulesRegistry = /** @class */ (function () {
|
|
|
13286
14270
|
}());
|
|
13287
14271
|
|
|
13288
14272
|
var PurchaseOrderStatusRulesRegistry = /** @class */ (function () {
|
|
13289
|
-
function PurchaseOrderStatusRulesRegistry() {
|
|
13290
|
-
|
|
14273
|
+
function PurchaseOrderStatusRulesRegistry(taxableBaseStatusRule, taxRateStatusRule) {
|
|
14274
|
+
var _a;
|
|
14275
|
+
this.taxableBaseStatusRule = taxableBaseStatusRule;
|
|
14276
|
+
this.taxRateStatusRule = taxRateStatusRule;
|
|
14277
|
+
this.strategies = {
|
|
14278
|
+
'Purchase Order': (_a = {},
|
|
14279
|
+
_a[EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
14280
|
+
{
|
|
14281
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
14282
|
+
rule: this.taxableBaseStatusRule
|
|
14283
|
+
},
|
|
14284
|
+
{
|
|
14285
|
+
field: EnumCampoTributo.Aliquota,
|
|
14286
|
+
rule: this.taxRateStatusRule
|
|
14287
|
+
}
|
|
14288
|
+
],
|
|
14289
|
+
_a[EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
14290
|
+
{
|
|
14291
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
14292
|
+
rule: this.taxableBaseStatusRule
|
|
14293
|
+
},
|
|
14294
|
+
{
|
|
14295
|
+
field: EnumCampoTributo.Aliquota,
|
|
14296
|
+
rule: this.taxRateStatusRule
|
|
14297
|
+
}
|
|
14298
|
+
],
|
|
14299
|
+
_a[EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
14300
|
+
{
|
|
14301
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
14302
|
+
rule: this.taxableBaseStatusRule
|
|
14303
|
+
},
|
|
14304
|
+
{
|
|
14305
|
+
field: EnumCampoTributo.Aliquota,
|
|
14306
|
+
rule: this.taxRateStatusRule
|
|
14307
|
+
}
|
|
14308
|
+
],
|
|
14309
|
+
_a)
|
|
14310
|
+
};
|
|
13291
14311
|
}
|
|
13292
14312
|
PurchaseOrderStatusRulesRegistry.prototype.get = function (type, taxType) {
|
|
13293
14313
|
var _a, _b;
|
|
13294
14314
|
return ((_b = (_a = this.strategies[type]) === null || _a === void 0 ? void 0 : _a[taxType]) !== null && _b !== void 0 ? _b : []);
|
|
13295
14315
|
};
|
|
13296
|
-
PurchaseOrderStatusRulesRegistry
|
|
14316
|
+
PurchaseOrderStatusRulesRegistry.ctorParameters = function () { return [
|
|
14317
|
+
{ type: TaxableBaseStatusRule },
|
|
14318
|
+
{ type: TaxRateStatusRule }
|
|
14319
|
+
]; };
|
|
14320
|
+
PurchaseOrderStatusRulesRegistry.ɵprov = ɵɵdefineInjectable({ factory: function PurchaseOrderStatusRulesRegistry_Factory() { return new PurchaseOrderStatusRulesRegistry(ɵɵinject(TaxableBaseStatusRule), ɵɵinject(TaxRateStatusRule)); }, token: PurchaseOrderStatusRulesRegistry, providedIn: "root" });
|
|
13297
14321
|
PurchaseOrderStatusRulesRegistry = __decorate([
|
|
13298
14322
|
Injectable({ providedIn: 'root' })
|
|
13299
14323
|
], PurchaseOrderStatusRulesRegistry);
|
|
@@ -13448,8 +14472,7 @@ var TaxAmountRequiredValidationRule = /** @class */ (function () {
|
|
|
13448
14472
|
.valueChanges.pipe(startWith(formGroup.get('aliquota').value), distinctUntilChanged()),
|
|
13449
14473
|
formGroup
|
|
13450
14474
|
.get('aliquotaEfetiva')
|
|
13451
|
-
.valueChanges.pipe(startWith(formGroup.get('aliquotaEfetiva')
|
|
13452
|
-
.value), distinctUntilChanged()),
|
|
14475
|
+
.valueChanges.pipe(startWith(formGroup.get('aliquotaEfetiva').value), distinctUntilChanged()),
|
|
13453
14476
|
formGroup
|
|
13454
14477
|
.get('situacaoTributaria')
|
|
13455
14478
|
.valueChanges.pipe(startWith(formGroup.get('situacaoTributaria').value), distinctUntilChanged()),
|
|
@@ -13530,8 +14553,7 @@ var TaxAmountRequiredValidationRule = /** @class */ (function () {
|
|
|
13530
14553
|
.valueChanges.pipe(startWith(formGroup.get('aliquota').value), distinctUntilChanged()),
|
|
13531
14554
|
formGroup
|
|
13532
14555
|
.get('aliquotaEfetiva')
|
|
13533
|
-
.valueChanges.pipe(startWith(formGroup.get('aliquotaEfetiva')
|
|
13534
|
-
.value), distinctUntilChanged()),
|
|
14556
|
+
.valueChanges.pipe(startWith(formGroup.get('aliquotaEfetiva').value), distinctUntilChanged()),
|
|
13535
14557
|
formGroup
|
|
13536
14558
|
.get('valor')
|
|
13537
14559
|
.valueChanges.pipe(startWith(formGroup.get('valor').value), distinctUntilChanged()),
|
|
@@ -13603,8 +14625,7 @@ var TaxAmountRequiredValidationRule = /** @class */ (function () {
|
|
|
13603
14625
|
.valueChanges.pipe(startWith(formGroup.get('aliquota').value), distinctUntilChanged()),
|
|
13604
14626
|
formGroup
|
|
13605
14627
|
.get('aliquotaEfetiva')
|
|
13606
|
-
.valueChanges.pipe(startWith(formGroup.get('aliquotaEfetiva')
|
|
13607
|
-
.value), distinctUntilChanged()),
|
|
14628
|
+
.valueChanges.pipe(startWith(formGroup.get('aliquotaEfetiva').value), distinctUntilChanged()),
|
|
13608
14629
|
formGroup
|
|
13609
14630
|
.get('situacaoTributaria')
|
|
13610
14631
|
.valueChanges.pipe(startWith(formGroup.get('situacaoTributaria').value), distinctUntilChanged()),
|
|
@@ -13680,8 +14701,7 @@ var TaxAmountRequiredValidationRule = /** @class */ (function () {
|
|
|
13680
14701
|
.valueChanges.pipe(startWith(formGroup.get('aliquota').value), distinctUntilChanged()),
|
|
13681
14702
|
formGroup
|
|
13682
14703
|
.get('aliquotaEfetiva')
|
|
13683
|
-
.valueChanges.pipe(startWith(formGroup.get('aliquotaEfetiva')
|
|
13684
|
-
.value), distinctUntilChanged()),
|
|
14704
|
+
.valueChanges.pipe(startWith(formGroup.get('aliquotaEfetiva').value), distinctUntilChanged()),
|
|
13685
14705
|
formGroup
|
|
13686
14706
|
.get('valor')
|
|
13687
14707
|
.valueChanges.pipe(startWith(formGroup.get('valor').value), distinctUntilChanged()),
|
|
@@ -13753,8 +14773,7 @@ var TaxAmountRequiredValidationRule = /** @class */ (function () {
|
|
|
13753
14773
|
.valueChanges.pipe(startWith(formGroup.get('aliquota').value), distinctUntilChanged()),
|
|
13754
14774
|
formGroup
|
|
13755
14775
|
.get('aliquotaEfetiva')
|
|
13756
|
-
.valueChanges.pipe(startWith(formGroup.get('aliquotaEfetiva')
|
|
13757
|
-
.value), distinctUntilChanged()),
|
|
14776
|
+
.valueChanges.pipe(startWith(formGroup.get('aliquotaEfetiva').value), distinctUntilChanged()),
|
|
13758
14777
|
formGroup
|
|
13759
14778
|
.get('situacaoTributaria')
|
|
13760
14779
|
.valueChanges.pipe(startWith(formGroup.get('situacaoTributaria').value), distinctUntilChanged()),
|
|
@@ -13830,8 +14849,7 @@ var TaxAmountRequiredValidationRule = /** @class */ (function () {
|
|
|
13830
14849
|
.valueChanges.pipe(startWith(formGroup.get('aliquota').value), distinctUntilChanged()),
|
|
13831
14850
|
formGroup
|
|
13832
14851
|
.get('aliquotaEfetiva')
|
|
13833
|
-
.valueChanges.pipe(startWith(formGroup.get('aliquotaEfetiva')
|
|
13834
|
-
.value), distinctUntilChanged()),
|
|
14852
|
+
.valueChanges.pipe(startWith(formGroup.get('aliquotaEfetiva').value), distinctUntilChanged()),
|
|
13835
14853
|
formGroup
|
|
13836
14854
|
.get('valor')
|
|
13837
14855
|
.valueChanges.pipe(startWith(formGroup.get('valor').value), distinctUntilChanged()),
|
|
@@ -13883,6 +14901,72 @@ var TaxAmountRequiredValidationRule = /** @class */ (function () {
|
|
|
13883
14901
|
}
|
|
13884
14902
|
}
|
|
13885
14903
|
break;
|
|
14904
|
+
case EnumTipoTributo.CBS_A_APROPRIAR:
|
|
14905
|
+
case EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR:
|
|
14906
|
+
case EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR:
|
|
14907
|
+
{
|
|
14908
|
+
switch (document) {
|
|
14909
|
+
case 'Incoming Invoice':
|
|
14910
|
+
case 'Purchase Order':
|
|
14911
|
+
{
|
|
14912
|
+
var baseTaxFormGroup = getBaseTaxItemFromGroup({ group: group }).formGroup;
|
|
14913
|
+
combineLatest([
|
|
14914
|
+
baseTaxFormGroup
|
|
14915
|
+
.get('baseCalculo')
|
|
14916
|
+
.valueChanges.pipe(startWith(baseTaxFormGroup.get('baseCalculo').value), distinctUntilChanged()),
|
|
14917
|
+
formGroup
|
|
14918
|
+
.get('baseCalculo')
|
|
14919
|
+
.valueChanges.pipe(startWith(formGroup.get('baseCalculo')
|
|
14920
|
+
.value), distinctUntilChanged()),
|
|
14921
|
+
formGroup
|
|
14922
|
+
.get('aliquota')
|
|
14923
|
+
.valueChanges.pipe(startWith(formGroup.get('aliquota').value), distinctUntilChanged()),
|
|
14924
|
+
formGroup
|
|
14925
|
+
.get('valor')
|
|
14926
|
+
.valueChanges.pipe(startWith(formGroup.get('valor').value), distinctUntilChanged())
|
|
14927
|
+
])
|
|
14928
|
+
.pipe(map(function (_a) {
|
|
14929
|
+
var _b = __read(_a, 4), baseTaxTaxableBase = _b[0], taxableBase = _b[1], taxRate = _b[2], taxAmount = _b[3];
|
|
14930
|
+
return [
|
|
14931
|
+
new BigNumber(baseTaxTaxableBase),
|
|
14932
|
+
new BigNumber(taxableBase),
|
|
14933
|
+
new BigNumber(taxRate),
|
|
14934
|
+
new BigNumber(taxAmount)
|
|
14935
|
+
];
|
|
14936
|
+
}))
|
|
14937
|
+
.subscribe(function (_a) {
|
|
14938
|
+
var _b = __read(_a, 4), baseTaxTaxableBase = _b[0], taxableBase = _b[1], taxRate = _b[2], taxAmount = _b[3];
|
|
14939
|
+
var validators = [];
|
|
14940
|
+
if (baseTaxTaxableBase.isFinite() ||
|
|
14941
|
+
taxableBase.isFinite() ||
|
|
14942
|
+
taxRate.isFinite() ||
|
|
14943
|
+
taxAmount.isFinite()) {
|
|
14944
|
+
validators = [
|
|
14945
|
+
Validators.max(9999999999999.99),
|
|
14946
|
+
Validators.required
|
|
14947
|
+
];
|
|
14948
|
+
}
|
|
14949
|
+
else {
|
|
14950
|
+
validators = [
|
|
14951
|
+
Validators.max(9999999999999.99)
|
|
14952
|
+
];
|
|
14953
|
+
}
|
|
14954
|
+
formGroup
|
|
14955
|
+
.get('valor')
|
|
14956
|
+
.setValidators(validators);
|
|
14957
|
+
formGroup
|
|
14958
|
+
.get('valor')
|
|
14959
|
+
.updateValueAndValidity({
|
|
14960
|
+
emitEvent: false
|
|
14961
|
+
});
|
|
14962
|
+
});
|
|
14963
|
+
}
|
|
14964
|
+
break;
|
|
14965
|
+
default:
|
|
14966
|
+
throw new Error("Regra TaxAmountRequiredValidationRule n\u00E3o implementada para o imposto " + taxType + ", documento " + document + ".");
|
|
14967
|
+
}
|
|
14968
|
+
}
|
|
14969
|
+
break;
|
|
13886
14970
|
case EnumTipoTributo.CBS_DIFERIDO:
|
|
13887
14971
|
case EnumTipoTributo.IBS_ESTADUAL_DIFERIDO:
|
|
13888
14972
|
case EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO:
|
|
@@ -15243,114 +16327,180 @@ var TaxRateRequiredValidationRule = /** @class */ (function () {
|
|
|
15243
16327
|
taxRate.isFinite() ||
|
|
15244
16328
|
taxClassication ||
|
|
15245
16329
|
taxSituation) {
|
|
15246
|
-
validators = [
|
|
15247
|
-
Validators.max(999.9999),
|
|
15248
|
-
Validators.required
|
|
15249
|
-
];
|
|
15250
|
-
}
|
|
15251
|
-
else {
|
|
15252
|
-
validators = [
|
|
15253
|
-
Validators.max(999.9999)
|
|
15254
|
-
];
|
|
15255
|
-
}
|
|
15256
|
-
formGroup
|
|
15257
|
-
.get('aliquota')
|
|
15258
|
-
.setValidators(validators);
|
|
15259
|
-
formGroup
|
|
15260
|
-
.get('aliquota')
|
|
15261
|
-
.updateValueAndValidity({
|
|
15262
|
-
emitEvent: false
|
|
15263
|
-
});
|
|
15264
|
-
});
|
|
15265
|
-
}
|
|
15266
|
-
break;
|
|
15267
|
-
case 'Purchase Order':
|
|
15268
|
-
case 'Sale Order':
|
|
15269
|
-
{
|
|
15270
|
-
combineLatest([
|
|
15271
|
-
formGroup
|
|
15272
|
-
.get('baseCalculo')
|
|
15273
|
-
.valueChanges.pipe(startWith(formGroup.get('baseCalculo')
|
|
15274
|
-
.value), distinctUntilChanged()),
|
|
15275
|
-
formGroup
|
|
15276
|
-
.get('aliquota')
|
|
15277
|
-
.valueChanges.pipe(startWith(formGroup.get('aliquota').value), distinctUntilChanged())
|
|
15278
|
-
])
|
|
15279
|
-
.pipe(map(function (_a) {
|
|
15280
|
-
var _b = __read(_a, 2), taxableBase = _b[0], taxRate = _b[1];
|
|
15281
|
-
return [
|
|
15282
|
-
new BigNumber(taxableBase),
|
|
15283
|
-
new BigNumber(taxRate)
|
|
15284
|
-
];
|
|
15285
|
-
}))
|
|
15286
|
-
.subscribe(function (_a) {
|
|
15287
|
-
var _b = __read(_a, 2), taxableBase = _b[0], taxRate = _b[1];
|
|
15288
|
-
var validators = [];
|
|
15289
|
-
if (taxableBase.isFinite() ||
|
|
15290
|
-
taxRate.isFinite()) {
|
|
15291
|
-
validators = [
|
|
15292
|
-
Validators.max(999.9999),
|
|
15293
|
-
Validators.required
|
|
15294
|
-
];
|
|
15295
|
-
}
|
|
15296
|
-
else {
|
|
15297
|
-
validators = [
|
|
15298
|
-
Validators.max(999.9999)
|
|
15299
|
-
];
|
|
15300
|
-
}
|
|
15301
|
-
formGroup
|
|
15302
|
-
.get('aliquota')
|
|
15303
|
-
.setValidators(validators);
|
|
15304
|
-
formGroup
|
|
15305
|
-
.get('aliquota')
|
|
15306
|
-
.updateValueAndValidity({
|
|
15307
|
-
emitEvent: false
|
|
15308
|
-
});
|
|
15309
|
-
});
|
|
15310
|
-
}
|
|
15311
|
-
break;
|
|
15312
|
-
default:
|
|
15313
|
-
throw new Error("Regra TaxRateRequiredValidationRule n\u00E3o implementada para o imposto " + taxType + ", documento " + document + ".");
|
|
15314
|
-
}
|
|
15315
|
-
}
|
|
15316
|
-
break;
|
|
15317
|
-
case EnumTipoTributo.CBS_GOVERNAMENTAL:
|
|
15318
|
-
case EnumTipoTributo.IBS_ESTADUAL_GOVERNAMENTAL:
|
|
15319
|
-
case EnumTipoTributo.IBS_MUNICIPAL_GOVERNAMENTAL:
|
|
15320
|
-
{
|
|
15321
|
-
switch (document) {
|
|
15322
|
-
case 'Incoming Invoice':
|
|
15323
|
-
case 'Outgoing Invoice':
|
|
15324
|
-
case 'Purchase Order':
|
|
15325
|
-
case 'Sale Order':
|
|
15326
|
-
{
|
|
15327
|
-
var baseTaxFormGroup = getBaseTaxItemFromGroup({ group: group }).formGroup;
|
|
15328
|
-
combineLatest([
|
|
15329
|
-
baseTaxFormGroup
|
|
15330
|
-
.get('reducaoAliquotaGovernamental')
|
|
15331
|
-
.valueChanges.pipe(startWith(baseTaxFormGroup.get('reducaoAliquotaGovernamental').value), distinctUntilChanged()),
|
|
15332
|
-
formGroup
|
|
15333
|
-
.get('baseCalculo')
|
|
15334
|
-
.valueChanges.pipe(startWith(formGroup.get('baseCalculo')
|
|
15335
|
-
.value), distinctUntilChanged()),
|
|
15336
|
-
formGroup
|
|
15337
|
-
.get('aliquota')
|
|
15338
|
-
.valueChanges.pipe(startWith(formGroup.get('aliquota').value), distinctUntilChanged())
|
|
15339
|
-
])
|
|
15340
|
-
.pipe(map(function (_a) {
|
|
15341
|
-
var _b = __read(_a, 3), governamentalTaxRateReduction = _b[0], taxableBase = _b[1], taxRate = _b[2];
|
|
15342
|
-
return [
|
|
15343
|
-
new BigNumber(governamentalTaxRateReduction),
|
|
15344
|
-
new BigNumber(taxableBase),
|
|
15345
|
-
new BigNumber(taxRate)
|
|
15346
|
-
];
|
|
15347
|
-
}))
|
|
15348
|
-
.subscribe(function (_a) {
|
|
15349
|
-
var _b = __read(_a, 3), governamentalTaxRateReduction = _b[0], taxableBase = _b[1], taxRate = _b[2];
|
|
15350
|
-
var validators = [];
|
|
15351
|
-
if (governamentalTaxRateReduction.isFinite() ||
|
|
15352
|
-
taxableBase.isFinite() ||
|
|
15353
|
-
taxRate.isFinite()) {
|
|
16330
|
+
validators = [
|
|
16331
|
+
Validators.max(999.9999),
|
|
16332
|
+
Validators.required
|
|
16333
|
+
];
|
|
16334
|
+
}
|
|
16335
|
+
else {
|
|
16336
|
+
validators = [
|
|
16337
|
+
Validators.max(999.9999)
|
|
16338
|
+
];
|
|
16339
|
+
}
|
|
16340
|
+
formGroup
|
|
16341
|
+
.get('aliquota')
|
|
16342
|
+
.setValidators(validators);
|
|
16343
|
+
formGroup
|
|
16344
|
+
.get('aliquota')
|
|
16345
|
+
.updateValueAndValidity({
|
|
16346
|
+
emitEvent: false
|
|
16347
|
+
});
|
|
16348
|
+
});
|
|
16349
|
+
}
|
|
16350
|
+
break;
|
|
16351
|
+
case 'Purchase Order':
|
|
16352
|
+
case 'Sale Order':
|
|
16353
|
+
{
|
|
16354
|
+
combineLatest([
|
|
16355
|
+
formGroup
|
|
16356
|
+
.get('baseCalculo')
|
|
16357
|
+
.valueChanges.pipe(startWith(formGroup.get('baseCalculo')
|
|
16358
|
+
.value), distinctUntilChanged()),
|
|
16359
|
+
formGroup
|
|
16360
|
+
.get('aliquota')
|
|
16361
|
+
.valueChanges.pipe(startWith(formGroup.get('aliquota').value), distinctUntilChanged())
|
|
16362
|
+
])
|
|
16363
|
+
.pipe(map(function (_a) {
|
|
16364
|
+
var _b = __read(_a, 2), taxableBase = _b[0], taxRate = _b[1];
|
|
16365
|
+
return [
|
|
16366
|
+
new BigNumber(taxableBase),
|
|
16367
|
+
new BigNumber(taxRate)
|
|
16368
|
+
];
|
|
16369
|
+
}))
|
|
16370
|
+
.subscribe(function (_a) {
|
|
16371
|
+
var _b = __read(_a, 2), taxableBase = _b[0], taxRate = _b[1];
|
|
16372
|
+
var validators = [];
|
|
16373
|
+
if (taxableBase.isFinite() ||
|
|
16374
|
+
taxRate.isFinite()) {
|
|
16375
|
+
validators = [
|
|
16376
|
+
Validators.max(999.9999),
|
|
16377
|
+
Validators.required
|
|
16378
|
+
];
|
|
16379
|
+
}
|
|
16380
|
+
else {
|
|
16381
|
+
validators = [
|
|
16382
|
+
Validators.max(999.9999)
|
|
16383
|
+
];
|
|
16384
|
+
}
|
|
16385
|
+
formGroup
|
|
16386
|
+
.get('aliquota')
|
|
16387
|
+
.setValidators(validators);
|
|
16388
|
+
formGroup
|
|
16389
|
+
.get('aliquota')
|
|
16390
|
+
.updateValueAndValidity({
|
|
16391
|
+
emitEvent: false
|
|
16392
|
+
});
|
|
16393
|
+
});
|
|
16394
|
+
}
|
|
16395
|
+
break;
|
|
16396
|
+
default:
|
|
16397
|
+
throw new Error("Regra TaxRateRequiredValidationRule n\u00E3o implementada para o imposto " + taxType + ", documento " + document + ".");
|
|
16398
|
+
}
|
|
16399
|
+
}
|
|
16400
|
+
break;
|
|
16401
|
+
case EnumTipoTributo.CBS_GOVERNAMENTAL:
|
|
16402
|
+
case EnumTipoTributo.IBS_ESTADUAL_GOVERNAMENTAL:
|
|
16403
|
+
case EnumTipoTributo.IBS_MUNICIPAL_GOVERNAMENTAL:
|
|
16404
|
+
{
|
|
16405
|
+
switch (document) {
|
|
16406
|
+
case 'Incoming Invoice':
|
|
16407
|
+
case 'Outgoing Invoice':
|
|
16408
|
+
case 'Purchase Order':
|
|
16409
|
+
case 'Sale Order':
|
|
16410
|
+
{
|
|
16411
|
+
var baseTaxFormGroup = getBaseTaxItemFromGroup({ group: group }).formGroup;
|
|
16412
|
+
combineLatest([
|
|
16413
|
+
baseTaxFormGroup
|
|
16414
|
+
.get('reducaoAliquotaGovernamental')
|
|
16415
|
+
.valueChanges.pipe(startWith(baseTaxFormGroup.get('reducaoAliquotaGovernamental').value), distinctUntilChanged()),
|
|
16416
|
+
formGroup
|
|
16417
|
+
.get('baseCalculo')
|
|
16418
|
+
.valueChanges.pipe(startWith(formGroup.get('baseCalculo')
|
|
16419
|
+
.value), distinctUntilChanged()),
|
|
16420
|
+
formGroup
|
|
16421
|
+
.get('aliquota')
|
|
16422
|
+
.valueChanges.pipe(startWith(formGroup.get('aliquota').value), distinctUntilChanged())
|
|
16423
|
+
])
|
|
16424
|
+
.pipe(map(function (_a) {
|
|
16425
|
+
var _b = __read(_a, 3), governamentalTaxRateReduction = _b[0], taxableBase = _b[1], taxRate = _b[2];
|
|
16426
|
+
return [
|
|
16427
|
+
new BigNumber(governamentalTaxRateReduction),
|
|
16428
|
+
new BigNumber(taxableBase),
|
|
16429
|
+
new BigNumber(taxRate)
|
|
16430
|
+
];
|
|
16431
|
+
}))
|
|
16432
|
+
.subscribe(function (_a) {
|
|
16433
|
+
var _b = __read(_a, 3), governamentalTaxRateReduction = _b[0], taxableBase = _b[1], taxRate = _b[2];
|
|
16434
|
+
var validators = [];
|
|
16435
|
+
if (governamentalTaxRateReduction.isFinite() ||
|
|
16436
|
+
taxableBase.isFinite() ||
|
|
16437
|
+
taxRate.isFinite()) {
|
|
16438
|
+
validators = [
|
|
16439
|
+
Validators.max(999.9999),
|
|
16440
|
+
Validators.required
|
|
16441
|
+
];
|
|
16442
|
+
}
|
|
16443
|
+
else {
|
|
16444
|
+
validators = [
|
|
16445
|
+
Validators.max(999.9999)
|
|
16446
|
+
];
|
|
16447
|
+
}
|
|
16448
|
+
formGroup
|
|
16449
|
+
.get('aliquota')
|
|
16450
|
+
.setValidators(validators);
|
|
16451
|
+
formGroup
|
|
16452
|
+
.get('aliquota')
|
|
16453
|
+
.updateValueAndValidity({
|
|
16454
|
+
emitEvent: false
|
|
16455
|
+
});
|
|
16456
|
+
});
|
|
16457
|
+
}
|
|
16458
|
+
break;
|
|
16459
|
+
default:
|
|
16460
|
+
throw new Error("Regra TaxRateRequiredValidationRule n\u00E3o implementada para o imposto " + taxType + ", documento " + document + ".");
|
|
16461
|
+
}
|
|
16462
|
+
}
|
|
16463
|
+
break;
|
|
16464
|
+
case EnumTipoTributo.CBS_A_APROPRIAR:
|
|
16465
|
+
case EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR:
|
|
16466
|
+
case EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR:
|
|
16467
|
+
{
|
|
16468
|
+
switch (document) {
|
|
16469
|
+
case 'Incoming Invoice':
|
|
16470
|
+
case 'Purchase Order':
|
|
16471
|
+
{
|
|
16472
|
+
var baseTaxFormGroup = getBaseTaxItemFromGroup({ group: group }).formGroup;
|
|
16473
|
+
combineLatest([
|
|
16474
|
+
baseTaxFormGroup
|
|
16475
|
+
.get('baseCalculo')
|
|
16476
|
+
.valueChanges.pipe(startWith(baseTaxFormGroup.get('baseCalculo').value), distinctUntilChanged()),
|
|
16477
|
+
formGroup
|
|
16478
|
+
.get('baseCalculo')
|
|
16479
|
+
.valueChanges.pipe(startWith(formGroup.get('baseCalculo')
|
|
16480
|
+
.value), distinctUntilChanged()),
|
|
16481
|
+
formGroup
|
|
16482
|
+
.get('aliquota')
|
|
16483
|
+
.valueChanges.pipe(startWith(formGroup.get('aliquota').value), distinctUntilChanged()),
|
|
16484
|
+
formGroup
|
|
16485
|
+
.get('valor')
|
|
16486
|
+
.valueChanges.pipe(startWith(formGroup.get('valor').value), distinctUntilChanged())
|
|
16487
|
+
])
|
|
16488
|
+
.pipe(map(function (_a) {
|
|
16489
|
+
var _b = __read(_a, 4), baseTaxTaxableBase = _b[0], taxableBase = _b[1], taxRate = _b[2], taxAmount = _b[3];
|
|
16490
|
+
return [
|
|
16491
|
+
new BigNumber(baseTaxTaxableBase),
|
|
16492
|
+
new BigNumber(taxableBase),
|
|
16493
|
+
new BigNumber(taxRate),
|
|
16494
|
+
new BigNumber(taxAmount)
|
|
16495
|
+
];
|
|
16496
|
+
}))
|
|
16497
|
+
.subscribe(function (_a) {
|
|
16498
|
+
var _b = __read(_a, 4), baseTaxTaxableBase = _b[0], taxableBase = _b[1], taxRate = _b[2], taxAmount = _b[3];
|
|
16499
|
+
var validators = [];
|
|
16500
|
+
if (baseTaxTaxableBase.isFinite() ||
|
|
16501
|
+
taxableBase.isFinite() ||
|
|
16502
|
+
taxRate.isFinite() ||
|
|
16503
|
+
taxAmount.isFinite()) {
|
|
15354
16504
|
validators = [
|
|
15355
16505
|
Validators.max(999.9999),
|
|
15356
16506
|
Validators.required
|
|
@@ -15435,7 +16585,7 @@ var TaxRateRequiredValidationRule = /** @class */ (function () {
|
|
|
15435
16585
|
}
|
|
15436
16586
|
break;
|
|
15437
16587
|
default:
|
|
15438
|
-
throw new Error("Regra
|
|
16588
|
+
throw new Error("Regra TaxRateRequiredValidationRule n\u00E3o implementada para o imposto " + taxType + ", documento " + document + ".");
|
|
15439
16589
|
}
|
|
15440
16590
|
}
|
|
15441
16591
|
break;
|
|
@@ -16394,6 +17544,70 @@ var TaxableBaseRequiredValidationRule = /** @class */ (function () {
|
|
|
16394
17544
|
}
|
|
16395
17545
|
}
|
|
16396
17546
|
break;
|
|
17547
|
+
case EnumTipoTributo.CBS_A_APROPRIAR:
|
|
17548
|
+
case EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR:
|
|
17549
|
+
case EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR:
|
|
17550
|
+
{
|
|
17551
|
+
switch (document) {
|
|
17552
|
+
case 'Incoming Invoice':
|
|
17553
|
+
case 'Purchase Order':
|
|
17554
|
+
{
|
|
17555
|
+
var baseTaxFormGroup = getBaseTaxItemFromGroup({ group: group }).formGroup;
|
|
17556
|
+
combineLatest([
|
|
17557
|
+
baseTaxFormGroup
|
|
17558
|
+
.get('baseCalculo')
|
|
17559
|
+
.valueChanges.pipe(startWith(baseTaxFormGroup.get('baseCalculo').value), distinctUntilChanged()),
|
|
17560
|
+
formGroup
|
|
17561
|
+
.get('baseCalculo')
|
|
17562
|
+
.valueChanges.pipe(startWith(formGroup.get('baseCalculo')
|
|
17563
|
+
.value), distinctUntilChanged()),
|
|
17564
|
+
formGroup
|
|
17565
|
+
.get('aliquota')
|
|
17566
|
+
.valueChanges.pipe(startWith(formGroup.get('aliquota').value), distinctUntilChanged()),
|
|
17567
|
+
formGroup
|
|
17568
|
+
.get('valor')
|
|
17569
|
+
.valueChanges.pipe(startWith(formGroup.get('valor').value), distinctUntilChanged())
|
|
17570
|
+
])
|
|
17571
|
+
.pipe(map(function (_a) {
|
|
17572
|
+
var _b = __read(_a, 4), baseTaxTaxableBase = _b[0], taxableBase = _b[1], taxRate = _b[2], taxAmount = _b[3];
|
|
17573
|
+
return [
|
|
17574
|
+
new BigNumber(baseTaxTaxableBase),
|
|
17575
|
+
new BigNumber(taxableBase),
|
|
17576
|
+
new BigNumber(taxRate),
|
|
17577
|
+
new BigNumber(taxAmount)
|
|
17578
|
+
];
|
|
17579
|
+
}))
|
|
17580
|
+
.subscribe(function (_a) {
|
|
17581
|
+
var _b = __read(_a, 4), baseTaxTaxableBase = _b[0], taxableBase = _b[1], taxRate = _b[2], taxAmount = _b[3];
|
|
17582
|
+
var validators = [];
|
|
17583
|
+
if (baseTaxTaxableBase.isFinite() ||
|
|
17584
|
+
taxableBase.isFinite() ||
|
|
17585
|
+
taxRate.isFinite() ||
|
|
17586
|
+
taxAmount.isFinite()) {
|
|
17587
|
+
validators = [
|
|
17588
|
+
Validators.max(9999999999999.99),
|
|
17589
|
+
Validators.required
|
|
17590
|
+
];
|
|
17591
|
+
}
|
|
17592
|
+
else {
|
|
17593
|
+
validators = [];
|
|
17594
|
+
}
|
|
17595
|
+
formGroup
|
|
17596
|
+
.get('baseCalculo')
|
|
17597
|
+
.setValidators(validators);
|
|
17598
|
+
formGroup
|
|
17599
|
+
.get('baseCalculo')
|
|
17600
|
+
.updateValueAndValidity({
|
|
17601
|
+
emitEvent: false
|
|
17602
|
+
});
|
|
17603
|
+
});
|
|
17604
|
+
}
|
|
17605
|
+
break;
|
|
17606
|
+
default:
|
|
17607
|
+
throw new Error("Regra TaxableBaseRequiredValidationRule n\u00E3o implementada para o imposto " + taxType + ", documento " + document + ".");
|
|
17608
|
+
}
|
|
17609
|
+
}
|
|
17610
|
+
break;
|
|
16397
17611
|
case EnumTipoTributo.CBS_DIFERIDO:
|
|
16398
17612
|
case EnumTipoTributo.IBS_ESTADUAL_DIFERIDO:
|
|
16399
17613
|
case EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO:
|
|
@@ -16504,6 +17718,20 @@ var IncomingInvoiceValidationRulesRegistry = /** @class */ (function () {
|
|
|
16504
17718
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
16505
17719
|
}
|
|
16506
17720
|
],
|
|
17721
|
+
_a[EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
17722
|
+
{
|
|
17723
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
17724
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
17725
|
+
},
|
|
17726
|
+
{
|
|
17727
|
+
field: EnumCampoTributo.Aliquota,
|
|
17728
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
17729
|
+
},
|
|
17730
|
+
{
|
|
17731
|
+
field: EnumCampoTributo.Valor,
|
|
17732
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
17733
|
+
}
|
|
17734
|
+
],
|
|
16507
17735
|
_a[EnumTipoTributo.CBS_DIFERIDO] = [
|
|
16508
17736
|
{
|
|
16509
17737
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -16598,6 +17826,20 @@ var IncomingInvoiceValidationRulesRegistry = /** @class */ (function () {
|
|
|
16598
17826
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
16599
17827
|
}
|
|
16600
17828
|
],
|
|
17829
|
+
_a[EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
17830
|
+
{
|
|
17831
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
17832
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
17833
|
+
},
|
|
17834
|
+
{
|
|
17835
|
+
field: EnumCampoTributo.Aliquota,
|
|
17836
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
17837
|
+
},
|
|
17838
|
+
{
|
|
17839
|
+
field: EnumCampoTributo.Valor,
|
|
17840
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
17841
|
+
}
|
|
17842
|
+
],
|
|
16601
17843
|
_a[EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
16602
17844
|
{
|
|
16603
17845
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -16666,6 +17908,20 @@ var IncomingInvoiceValidationRulesRegistry = /** @class */ (function () {
|
|
|
16666
17908
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
16667
17909
|
}
|
|
16668
17910
|
],
|
|
17911
|
+
_a[EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
17912
|
+
{
|
|
17913
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
17914
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
17915
|
+
},
|
|
17916
|
+
{
|
|
17917
|
+
field: EnumCampoTributo.Aliquota,
|
|
17918
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
17919
|
+
},
|
|
17920
|
+
{
|
|
17921
|
+
field: EnumCampoTributo.Valor,
|
|
17922
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
17923
|
+
}
|
|
17924
|
+
],
|
|
16669
17925
|
_a[EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
16670
17926
|
{
|
|
16671
17927
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -16808,6 +18064,20 @@ var IncomingInvoiceValidationRulesRegistry = /** @class */ (function () {
|
|
|
16808
18064
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
16809
18065
|
}
|
|
16810
18066
|
],
|
|
18067
|
+
_b[EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
18068
|
+
{
|
|
18069
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
18070
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
18071
|
+
},
|
|
18072
|
+
{
|
|
18073
|
+
field: EnumCampoTributo.Aliquota,
|
|
18074
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
18075
|
+
},
|
|
18076
|
+
{
|
|
18077
|
+
field: EnumCampoTributo.Valor,
|
|
18078
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
18079
|
+
}
|
|
18080
|
+
],
|
|
16811
18081
|
_b[EnumTipoTributo.CBS_DIFERIDO] = [
|
|
16812
18082
|
{
|
|
16813
18083
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -16902,6 +18172,20 @@ var IncomingInvoiceValidationRulesRegistry = /** @class */ (function () {
|
|
|
16902
18172
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
16903
18173
|
}
|
|
16904
18174
|
],
|
|
18175
|
+
_b[EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
18176
|
+
{
|
|
18177
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
18178
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
18179
|
+
},
|
|
18180
|
+
{
|
|
18181
|
+
field: EnumCampoTributo.Aliquota,
|
|
18182
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
18183
|
+
},
|
|
18184
|
+
{
|
|
18185
|
+
field: EnumCampoTributo.Valor,
|
|
18186
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
18187
|
+
}
|
|
18188
|
+
],
|
|
16905
18189
|
_b[EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
16906
18190
|
{
|
|
16907
18191
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -16970,6 +18254,20 @@ var IncomingInvoiceValidationRulesRegistry = /** @class */ (function () {
|
|
|
16970
18254
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
16971
18255
|
}
|
|
16972
18256
|
],
|
|
18257
|
+
_b[EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
18258
|
+
{
|
|
18259
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
18260
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
18261
|
+
},
|
|
18262
|
+
{
|
|
18263
|
+
field: EnumCampoTributo.Aliquota,
|
|
18264
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
18265
|
+
},
|
|
18266
|
+
{
|
|
18267
|
+
field: EnumCampoTributo.Valor,
|
|
18268
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
18269
|
+
}
|
|
18270
|
+
],
|
|
16973
18271
|
_b[EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
16974
18272
|
{
|
|
16975
18273
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -17112,6 +18410,20 @@ var IncomingInvoiceValidationRulesRegistry = /** @class */ (function () {
|
|
|
17112
18410
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
17113
18411
|
}
|
|
17114
18412
|
],
|
|
18413
|
+
_c[EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
18414
|
+
{
|
|
18415
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
18416
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
18417
|
+
},
|
|
18418
|
+
{
|
|
18419
|
+
field: EnumCampoTributo.Aliquota,
|
|
18420
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
18421
|
+
},
|
|
18422
|
+
{
|
|
18423
|
+
field: EnumCampoTributo.Valor,
|
|
18424
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
18425
|
+
}
|
|
18426
|
+
],
|
|
17115
18427
|
_c[EnumTipoTributo.CBS_DIFERIDO] = [
|
|
17116
18428
|
{
|
|
17117
18429
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -17206,6 +18518,20 @@ var IncomingInvoiceValidationRulesRegistry = /** @class */ (function () {
|
|
|
17206
18518
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
17207
18519
|
}
|
|
17208
18520
|
],
|
|
18521
|
+
_c[EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
18522
|
+
{
|
|
18523
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
18524
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
18525
|
+
},
|
|
18526
|
+
{
|
|
18527
|
+
field: EnumCampoTributo.Aliquota,
|
|
18528
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
18529
|
+
},
|
|
18530
|
+
{
|
|
18531
|
+
field: EnumCampoTributo.Valor,
|
|
18532
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
18533
|
+
}
|
|
18534
|
+
],
|
|
17209
18535
|
_c[EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
17210
18536
|
{
|
|
17211
18537
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -17274,6 +18600,20 @@ var IncomingInvoiceValidationRulesRegistry = /** @class */ (function () {
|
|
|
17274
18600
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
17275
18601
|
}
|
|
17276
18602
|
],
|
|
18603
|
+
_c[EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
18604
|
+
{
|
|
18605
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
18606
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
18607
|
+
},
|
|
18608
|
+
{
|
|
18609
|
+
field: EnumCampoTributo.Aliquota,
|
|
18610
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
18611
|
+
},
|
|
18612
|
+
{
|
|
18613
|
+
field: EnumCampoTributo.Valor,
|
|
18614
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
18615
|
+
}
|
|
18616
|
+
],
|
|
17277
18617
|
_c[EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
17278
18618
|
{
|
|
17279
18619
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -17416,6 +18756,20 @@ var IncomingInvoiceValidationRulesRegistry = /** @class */ (function () {
|
|
|
17416
18756
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
17417
18757
|
}
|
|
17418
18758
|
],
|
|
18759
|
+
_d[EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
18760
|
+
{
|
|
18761
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
18762
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
18763
|
+
},
|
|
18764
|
+
{
|
|
18765
|
+
field: EnumCampoTributo.Aliquota,
|
|
18766
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
18767
|
+
},
|
|
18768
|
+
{
|
|
18769
|
+
field: EnumCampoTributo.Valor,
|
|
18770
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
18771
|
+
}
|
|
18772
|
+
],
|
|
17419
18773
|
_d[EnumTipoTributo.CBS_DIFERIDO] = [
|
|
17420
18774
|
{
|
|
17421
18775
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -17510,6 +18864,20 @@ var IncomingInvoiceValidationRulesRegistry = /** @class */ (function () {
|
|
|
17510
18864
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
17511
18865
|
}
|
|
17512
18866
|
],
|
|
18867
|
+
_d[EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
18868
|
+
{
|
|
18869
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
18870
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
18871
|
+
},
|
|
18872
|
+
{
|
|
18873
|
+
field: EnumCampoTributo.Aliquota,
|
|
18874
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
18875
|
+
},
|
|
18876
|
+
{
|
|
18877
|
+
field: EnumCampoTributo.Valor,
|
|
18878
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
18879
|
+
}
|
|
18880
|
+
],
|
|
17513
18881
|
_d[EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
17514
18882
|
{
|
|
17515
18883
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -17578,6 +18946,20 @@ var IncomingInvoiceValidationRulesRegistry = /** @class */ (function () {
|
|
|
17578
18946
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
17579
18947
|
}
|
|
17580
18948
|
],
|
|
18949
|
+
_d[EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
18950
|
+
{
|
|
18951
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
18952
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
18953
|
+
},
|
|
18954
|
+
{
|
|
18955
|
+
field: EnumCampoTributo.Aliquota,
|
|
18956
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
18957
|
+
},
|
|
18958
|
+
{
|
|
18959
|
+
field: EnumCampoTributo.Valor,
|
|
18960
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
18961
|
+
}
|
|
18962
|
+
],
|
|
17581
18963
|
_d[EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
17582
18964
|
{
|
|
17583
18965
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -17720,6 +19102,20 @@ var IncomingInvoiceValidationRulesRegistry = /** @class */ (function () {
|
|
|
17720
19102
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
17721
19103
|
}
|
|
17722
19104
|
],
|
|
19105
|
+
_e[EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
19106
|
+
{
|
|
19107
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
19108
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
19109
|
+
},
|
|
19110
|
+
{
|
|
19111
|
+
field: EnumCampoTributo.Aliquota,
|
|
19112
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
19113
|
+
},
|
|
19114
|
+
{
|
|
19115
|
+
field: EnumCampoTributo.Valor,
|
|
19116
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
19117
|
+
}
|
|
19118
|
+
],
|
|
17723
19119
|
_e[EnumTipoTributo.CBS_DIFERIDO] = [
|
|
17724
19120
|
{
|
|
17725
19121
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -17814,6 +19210,20 @@ var IncomingInvoiceValidationRulesRegistry = /** @class */ (function () {
|
|
|
17814
19210
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
17815
19211
|
}
|
|
17816
19212
|
],
|
|
19213
|
+
_e[EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
19214
|
+
{
|
|
19215
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
19216
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
19217
|
+
},
|
|
19218
|
+
{
|
|
19219
|
+
field: EnumCampoTributo.Aliquota,
|
|
19220
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
19221
|
+
},
|
|
19222
|
+
{
|
|
19223
|
+
field: EnumCampoTributo.Valor,
|
|
19224
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
19225
|
+
}
|
|
19226
|
+
],
|
|
17817
19227
|
_e[EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
17818
19228
|
{
|
|
17819
19229
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -17882,6 +19292,20 @@ var IncomingInvoiceValidationRulesRegistry = /** @class */ (function () {
|
|
|
17882
19292
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
17883
19293
|
}
|
|
17884
19294
|
],
|
|
19295
|
+
_e[EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
19296
|
+
{
|
|
19297
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
19298
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
19299
|
+
},
|
|
19300
|
+
{
|
|
19301
|
+
field: EnumCampoTributo.Aliquota,
|
|
19302
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
19303
|
+
},
|
|
19304
|
+
{
|
|
19305
|
+
field: EnumCampoTributo.Valor,
|
|
19306
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
19307
|
+
}
|
|
19308
|
+
],
|
|
17885
19309
|
_e[EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
17886
19310
|
{
|
|
17887
19311
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -18024,6 +19448,20 @@ var IncomingInvoiceValidationRulesRegistry = /** @class */ (function () {
|
|
|
18024
19448
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
18025
19449
|
}
|
|
18026
19450
|
],
|
|
19451
|
+
_f[EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
19452
|
+
{
|
|
19453
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
19454
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
19455
|
+
},
|
|
19456
|
+
{
|
|
19457
|
+
field: EnumCampoTributo.Aliquota,
|
|
19458
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
19459
|
+
},
|
|
19460
|
+
{
|
|
19461
|
+
field: EnumCampoTributo.Valor,
|
|
19462
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
19463
|
+
}
|
|
19464
|
+
],
|
|
18027
19465
|
_f[EnumTipoTributo.CBS_DIFERIDO] = [
|
|
18028
19466
|
{
|
|
18029
19467
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -18118,6 +19556,20 @@ var IncomingInvoiceValidationRulesRegistry = /** @class */ (function () {
|
|
|
18118
19556
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
18119
19557
|
}
|
|
18120
19558
|
],
|
|
19559
|
+
_f[EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
19560
|
+
{
|
|
19561
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
19562
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
19563
|
+
},
|
|
19564
|
+
{
|
|
19565
|
+
field: EnumCampoTributo.Aliquota,
|
|
19566
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
19567
|
+
},
|
|
19568
|
+
{
|
|
19569
|
+
field: EnumCampoTributo.Valor,
|
|
19570
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
19571
|
+
}
|
|
19572
|
+
],
|
|
18121
19573
|
_f[EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
18122
19574
|
{
|
|
18123
19575
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -18186,6 +19638,20 @@ var IncomingInvoiceValidationRulesRegistry = /** @class */ (function () {
|
|
|
18186
19638
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
18187
19639
|
}
|
|
18188
19640
|
],
|
|
19641
|
+
_f[EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
19642
|
+
{
|
|
19643
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
19644
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
19645
|
+
},
|
|
19646
|
+
{
|
|
19647
|
+
field: EnumCampoTributo.Aliquota,
|
|
19648
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
19649
|
+
},
|
|
19650
|
+
{
|
|
19651
|
+
field: EnumCampoTributo.Valor,
|
|
19652
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
19653
|
+
}
|
|
19654
|
+
],
|
|
18189
19655
|
_f[EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
18190
19656
|
{
|
|
18191
19657
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -18328,6 +19794,20 @@ var IncomingInvoiceValidationRulesRegistry = /** @class */ (function () {
|
|
|
18328
19794
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
18329
19795
|
}
|
|
18330
19796
|
],
|
|
19797
|
+
_g[EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
19798
|
+
{
|
|
19799
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
19800
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
19801
|
+
},
|
|
19802
|
+
{
|
|
19803
|
+
field: EnumCampoTributo.Aliquota,
|
|
19804
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
19805
|
+
},
|
|
19806
|
+
{
|
|
19807
|
+
field: EnumCampoTributo.Valor,
|
|
19808
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
19809
|
+
}
|
|
19810
|
+
],
|
|
18331
19811
|
_g[EnumTipoTributo.CBS_DIFERIDO] = [
|
|
18332
19812
|
{
|
|
18333
19813
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -18422,6 +19902,20 @@ var IncomingInvoiceValidationRulesRegistry = /** @class */ (function () {
|
|
|
18422
19902
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
18423
19903
|
}
|
|
18424
19904
|
],
|
|
19905
|
+
_g[EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
19906
|
+
{
|
|
19907
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
19908
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
19909
|
+
},
|
|
19910
|
+
{
|
|
19911
|
+
field: EnumCampoTributo.Aliquota,
|
|
19912
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
19913
|
+
},
|
|
19914
|
+
{
|
|
19915
|
+
field: EnumCampoTributo.Valor,
|
|
19916
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
19917
|
+
}
|
|
19918
|
+
],
|
|
18425
19919
|
_g[EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
18426
19920
|
{
|
|
18427
19921
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -18490,6 +19984,20 @@ var IncomingInvoiceValidationRulesRegistry = /** @class */ (function () {
|
|
|
18490
19984
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
18491
19985
|
}
|
|
18492
19986
|
],
|
|
19987
|
+
_g[EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
19988
|
+
{
|
|
19989
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
19990
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
19991
|
+
},
|
|
19992
|
+
{
|
|
19993
|
+
field: EnumCampoTributo.Aliquota,
|
|
19994
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
19995
|
+
},
|
|
19996
|
+
{
|
|
19997
|
+
field: EnumCampoTributo.Valor,
|
|
19998
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
19999
|
+
}
|
|
20000
|
+
],
|
|
18493
20001
|
_g[EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
18494
20002
|
{
|
|
18495
20003
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -18632,6 +20140,20 @@ var IncomingInvoiceValidationRulesRegistry = /** @class */ (function () {
|
|
|
18632
20140
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
18633
20141
|
}
|
|
18634
20142
|
],
|
|
20143
|
+
_h[EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
20144
|
+
{
|
|
20145
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
20146
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
20147
|
+
},
|
|
20148
|
+
{
|
|
20149
|
+
field: EnumCampoTributo.Aliquota,
|
|
20150
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
20151
|
+
},
|
|
20152
|
+
{
|
|
20153
|
+
field: EnumCampoTributo.Valor,
|
|
20154
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
20155
|
+
}
|
|
20156
|
+
],
|
|
18635
20157
|
_h[EnumTipoTributo.CBS_DIFERIDO] = [
|
|
18636
20158
|
{
|
|
18637
20159
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -18726,6 +20248,20 @@ var IncomingInvoiceValidationRulesRegistry = /** @class */ (function () {
|
|
|
18726
20248
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
18727
20249
|
}
|
|
18728
20250
|
],
|
|
20251
|
+
_h[EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
20252
|
+
{
|
|
20253
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
20254
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
20255
|
+
},
|
|
20256
|
+
{
|
|
20257
|
+
field: EnumCampoTributo.Aliquota,
|
|
20258
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
20259
|
+
},
|
|
20260
|
+
{
|
|
20261
|
+
field: EnumCampoTributo.Valor,
|
|
20262
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
20263
|
+
}
|
|
20264
|
+
],
|
|
18729
20265
|
_h[EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
18730
20266
|
{
|
|
18731
20267
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -18794,6 +20330,20 @@ var IncomingInvoiceValidationRulesRegistry = /** @class */ (function () {
|
|
|
18794
20330
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
18795
20331
|
}
|
|
18796
20332
|
],
|
|
20333
|
+
_h[EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
20334
|
+
{
|
|
20335
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
20336
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
20337
|
+
},
|
|
20338
|
+
{
|
|
20339
|
+
field: EnumCampoTributo.Aliquota,
|
|
20340
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
20341
|
+
},
|
|
20342
|
+
{
|
|
20343
|
+
field: EnumCampoTributo.Valor,
|
|
20344
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
20345
|
+
}
|
|
20346
|
+
],
|
|
18797
20347
|
_h[EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
18798
20348
|
{
|
|
18799
20349
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -18936,6 +20486,20 @@ var IncomingInvoiceValidationRulesRegistry = /** @class */ (function () {
|
|
|
18936
20486
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
18937
20487
|
}
|
|
18938
20488
|
],
|
|
20489
|
+
_j[EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
20490
|
+
{
|
|
20491
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
20492
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
20493
|
+
},
|
|
20494
|
+
{
|
|
20495
|
+
field: EnumCampoTributo.Aliquota,
|
|
20496
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
20497
|
+
},
|
|
20498
|
+
{
|
|
20499
|
+
field: EnumCampoTributo.Valor,
|
|
20500
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
20501
|
+
}
|
|
20502
|
+
],
|
|
18939
20503
|
_j[EnumTipoTributo.CBS_DIFERIDO] = [
|
|
18940
20504
|
{
|
|
18941
20505
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -19030,6 +20594,20 @@ var IncomingInvoiceValidationRulesRegistry = /** @class */ (function () {
|
|
|
19030
20594
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
19031
20595
|
}
|
|
19032
20596
|
],
|
|
20597
|
+
_j[EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
20598
|
+
{
|
|
20599
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
20600
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
20601
|
+
},
|
|
20602
|
+
{
|
|
20603
|
+
field: EnumCampoTributo.Aliquota,
|
|
20604
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
20605
|
+
},
|
|
20606
|
+
{
|
|
20607
|
+
field: EnumCampoTributo.Valor,
|
|
20608
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
20609
|
+
}
|
|
20610
|
+
],
|
|
19033
20611
|
_j[EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
19034
20612
|
{
|
|
19035
20613
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -19098,6 +20676,20 @@ var IncomingInvoiceValidationRulesRegistry = /** @class */ (function () {
|
|
|
19098
20676
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
19099
20677
|
}
|
|
19100
20678
|
],
|
|
20679
|
+
_j[EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
20680
|
+
{
|
|
20681
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
20682
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
20683
|
+
},
|
|
20684
|
+
{
|
|
20685
|
+
field: EnumCampoTributo.Aliquota,
|
|
20686
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
20687
|
+
},
|
|
20688
|
+
{
|
|
20689
|
+
field: EnumCampoTributo.Valor,
|
|
20690
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
20691
|
+
}
|
|
20692
|
+
],
|
|
19101
20693
|
_j[EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
19102
20694
|
{
|
|
19103
20695
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -19240,6 +20832,20 @@ var IncomingInvoiceValidationRulesRegistry = /** @class */ (function () {
|
|
|
19240
20832
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
19241
20833
|
}
|
|
19242
20834
|
],
|
|
20835
|
+
_k[EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
20836
|
+
{
|
|
20837
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
20838
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
20839
|
+
},
|
|
20840
|
+
{
|
|
20841
|
+
field: EnumCampoTributo.Aliquota,
|
|
20842
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
20843
|
+
},
|
|
20844
|
+
{
|
|
20845
|
+
field: EnumCampoTributo.Valor,
|
|
20846
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
20847
|
+
}
|
|
20848
|
+
],
|
|
19243
20849
|
_k[EnumTipoTributo.CBS_DIFERIDO] = [
|
|
19244
20850
|
{
|
|
19245
20851
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -19334,6 +20940,20 @@ var IncomingInvoiceValidationRulesRegistry = /** @class */ (function () {
|
|
|
19334
20940
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
19335
20941
|
}
|
|
19336
20942
|
],
|
|
20943
|
+
_k[EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
20944
|
+
{
|
|
20945
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
20946
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
20947
|
+
},
|
|
20948
|
+
{
|
|
20949
|
+
field: EnumCampoTributo.Aliquota,
|
|
20950
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
20951
|
+
},
|
|
20952
|
+
{
|
|
20953
|
+
field: EnumCampoTributo.Valor,
|
|
20954
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
20955
|
+
}
|
|
20956
|
+
],
|
|
19337
20957
|
_k[EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
19338
20958
|
{
|
|
19339
20959
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -19402,6 +21022,20 @@ var IncomingInvoiceValidationRulesRegistry = /** @class */ (function () {
|
|
|
19402
21022
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
19403
21023
|
}
|
|
19404
21024
|
],
|
|
21025
|
+
_k[EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
21026
|
+
{
|
|
21027
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
21028
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
21029
|
+
},
|
|
21030
|
+
{
|
|
21031
|
+
field: EnumCampoTributo.Aliquota,
|
|
21032
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
21033
|
+
},
|
|
21034
|
+
{
|
|
21035
|
+
field: EnumCampoTributo.Valor,
|
|
21036
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
21037
|
+
}
|
|
21038
|
+
],
|
|
19405
21039
|
_k[EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
19406
21040
|
{
|
|
19407
21041
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -24902,6 +26536,20 @@ var PurchaseOrderValidationRulesRegistry = /** @class */ (function () {
|
|
|
24902
26536
|
rules: [this.taxAmountRequiredValidationRule]
|
|
24903
26537
|
}
|
|
24904
26538
|
],
|
|
26539
|
+
_a[EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
26540
|
+
{
|
|
26541
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
26542
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
26543
|
+
},
|
|
26544
|
+
{
|
|
26545
|
+
field: EnumCampoTributo.Aliquota,
|
|
26546
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
26547
|
+
},
|
|
26548
|
+
{
|
|
26549
|
+
field: EnumCampoTributo.Valor,
|
|
26550
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
26551
|
+
}
|
|
26552
|
+
],
|
|
24905
26553
|
_a[EnumTipoTributo.CBS_DIFERIDO] = [
|
|
24906
26554
|
{
|
|
24907
26555
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -24964,6 +26612,20 @@ var PurchaseOrderValidationRulesRegistry = /** @class */ (function () {
|
|
|
24964
26612
|
rules: [this.taxAmountRequiredValidationRule]
|
|
24965
26613
|
}
|
|
24966
26614
|
],
|
|
26615
|
+
_a[EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
26616
|
+
{
|
|
26617
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
26618
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
26619
|
+
},
|
|
26620
|
+
{
|
|
26621
|
+
field: EnumCampoTributo.Aliquota,
|
|
26622
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
26623
|
+
},
|
|
26624
|
+
{
|
|
26625
|
+
field: EnumCampoTributo.Valor,
|
|
26626
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
26627
|
+
}
|
|
26628
|
+
],
|
|
24967
26629
|
_a[EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
24968
26630
|
{
|
|
24969
26631
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -25012,6 +26674,20 @@ var PurchaseOrderValidationRulesRegistry = /** @class */ (function () {
|
|
|
25012
26674
|
rules: [this.taxAmountRequiredValidationRule]
|
|
25013
26675
|
}
|
|
25014
26676
|
],
|
|
26677
|
+
_a[EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
26678
|
+
{
|
|
26679
|
+
field: EnumCampoTributo.BaseCalculo,
|
|
26680
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
26681
|
+
},
|
|
26682
|
+
{
|
|
26683
|
+
field: EnumCampoTributo.Aliquota,
|
|
26684
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
26685
|
+
},
|
|
26686
|
+
{
|
|
26687
|
+
field: EnumCampoTributo.Valor,
|
|
26688
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
26689
|
+
}
|
|
26690
|
+
],
|
|
25015
26691
|
_a[EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
25016
26692
|
{
|
|
25017
26693
|
field: EnumCampoTributo.BaseCalculo,
|
|
@@ -26949,17 +28625,20 @@ var ErpTributosComponent = /** @class */ (function () {
|
|
|
26949
28625
|
this.tributosValue.map(function (it) {
|
|
26950
28626
|
switch (it.tipoImposto) {
|
|
26951
28627
|
case EnumTipoTributo.CBS:
|
|
28628
|
+
case EnumTipoTributo.CBS_A_APROPRIAR:
|
|
26952
28629
|
case EnumTipoTributo.CBS_DIFERIDO:
|
|
26953
28630
|
case EnumTipoTributo.CBS_CREDITO_PRESUMIDO:
|
|
26954
28631
|
case EnumTipoTributo.CBS_TRIBUTACAO_REGULAR:
|
|
26955
28632
|
_this.montaCBS();
|
|
26956
28633
|
break;
|
|
26957
28634
|
case EnumTipoTributo.IBS_ESTADUAL:
|
|
28635
|
+
case EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR:
|
|
26958
28636
|
case EnumTipoTributo.IBS_ESTADUAL_DIFERIDO:
|
|
26959
28637
|
case EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR:
|
|
26960
28638
|
_this.montaIBSEstadual();
|
|
26961
28639
|
break;
|
|
26962
28640
|
case EnumTipoTributo.IBS_MUNICIPAL:
|
|
28641
|
+
case EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR:
|
|
26963
28642
|
case EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO:
|
|
26964
28643
|
case EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR:
|
|
26965
28644
|
_this.montaIBSMunicipal();
|
|
@@ -28857,15 +30536,26 @@ var ErpTributosComponent = /** @class */ (function () {
|
|
|
28857
30536
|
campo: EnumCampoTributo.ClassificacaoTributaria
|
|
28858
30537
|
});
|
|
28859
30538
|
}
|
|
28860
|
-
item.unshift(__assign({ name: EnumTipoTributo.CBS, label: 'erpx.tributos.enum_tipo_tributo_cbs' }, this.montaCampos(campos, EnumTipoTributo.CBS)),
|
|
28861
|
-
|
|
28862
|
-
|
|
28863
|
-
|
|
28864
|
-
|
|
28865
|
-
|
|
28866
|
-
|
|
28867
|
-
|
|
28868
|
-
|
|
30539
|
+
item.unshift.apply(item, __spread([__assign({ name: EnumTipoTributo.CBS, label: 'erpx.tributos.enum_tipo_tributo_cbs' }, this.montaCampos(campos, EnumTipoTributo.CBS))], (this.isAccrualTaxDocument()
|
|
30540
|
+
? [
|
|
30541
|
+
__assign({ name: EnumTipoTributo.CBS_A_APROPRIAR, label: 'erpx.tributos.enum_tipo_tributo_cbs_a_apropriar' }, this.montaCampos([
|
|
30542
|
+
{ campo: EnumCampoTributo.BaseCalculo },
|
|
30543
|
+
{ campo: EnumCampoTributo.Aliquota },
|
|
30544
|
+
{
|
|
30545
|
+
campo: EnumCampoTributo.Valor,
|
|
30546
|
+
disabled: true
|
|
30547
|
+
}
|
|
30548
|
+
], EnumTipoTributo.CBS_A_APROPRIAR))
|
|
30549
|
+
]
|
|
30550
|
+
: []), [__assign({ name: EnumTipoTributo.CBS_DIFERIDO, label: 'erpx.tributos.enum_tipo_tributo_cbs_diferido' }, this.montaCampos([
|
|
30551
|
+
{ campo: EnumCampoTributo.BaseCalculo },
|
|
30552
|
+
{ campo: EnumCampoTributo.Aliquota },
|
|
30553
|
+
{ campo: EnumCampoTributo.Valor, disabled: true }
|
|
30554
|
+
], EnumTipoTributo.CBS_DIFERIDO)), __assign({ name: EnumTipoTributo.CBS_CREDITO_PRESUMIDO, label: 'erpx.tributos.enum_tipo_tributo_cbs_credito_presumido' }, this.montaCampos(campos_CBS_CREDITO_PRESUMIDO, EnumTipoTributo.CBS_CREDITO_PRESUMIDO)), __assign({ name: EnumTipoTributo.CBS_TRIBUTACAO_REGULAR, label: 'erpx.tributos.enum_tipo_tributo_cbs_tributacao_regular' }, this.montaCampos(campos_CBS_TRIBUTACAO_REGULAR, EnumTipoTributo.CBS_TRIBUTACAO_REGULAR)), __assign({ name: EnumTipoTributo.CBS_GOVERNAMENTAL, label: 'erpx.tributos.enum_tipo_tributo_cbs_governamental' }, this.montaCampos([
|
|
30555
|
+
{ campo: EnumCampoTributo.BaseCalculo },
|
|
30556
|
+
{ campo: EnumCampoTributo.Aliquota },
|
|
30557
|
+
{ campo: EnumCampoTributo.Valor, disabled: true }
|
|
30558
|
+
], EnumTipoTributo.CBS_GOVERNAMENTAL))]));
|
|
28869
30559
|
this.grupos.unshift({
|
|
28870
30560
|
grupo: "" + ('erpx.tributos.enum_grupo_tributo_' + EnumGrupoTributo.CBS + '_label'),
|
|
28871
30561
|
grupoTributo: EnumGrupoTributo.CBS,
|
|
@@ -28878,85 +30568,96 @@ var ErpTributosComponent = /** @class */ (function () {
|
|
|
28878
30568
|
return;
|
|
28879
30569
|
this.menuItemIBSEstadual = true;
|
|
28880
30570
|
var item = [];
|
|
28881
|
-
item.unshift(__assign({ name: EnumTipoTributo.IBS_ESTADUAL, label: 'erpx.tributos.enum_tipo_tributo_ibs_estadual' }, this.montaCampos(this.context.document === 'Sale Order' ||
|
|
28882
|
-
|
|
30571
|
+
item.unshift.apply(item, __spread([__assign({ name: EnumTipoTributo.IBS_ESTADUAL, label: 'erpx.tributos.enum_tipo_tributo_ibs_estadual' }, this.montaCampos(this.context.document === 'Sale Order' ||
|
|
30572
|
+
this.context.document === 'Purchase Order'
|
|
30573
|
+
? [
|
|
30574
|
+
{
|
|
30575
|
+
campo: EnumCampoTributo.BaseCalculo,
|
|
30576
|
+
grupo: EnumGrupoTributo.IBS_ESTADUAL
|
|
30577
|
+
},
|
|
30578
|
+
{
|
|
30579
|
+
campo: EnumCampoTributo.Aliquota,
|
|
30580
|
+
grupo: EnumGrupoTributo.IBS_ESTADUAL
|
|
30581
|
+
},
|
|
30582
|
+
{
|
|
30583
|
+
campo: EnumCampoTributo.ValorBruto,
|
|
30584
|
+
disabled: true
|
|
30585
|
+
},
|
|
30586
|
+
{ campo: EnumCampoTributo.ReducaoAliquota },
|
|
30587
|
+
{
|
|
30588
|
+
campo: EnumCampoTributo.ReducaoAliquotaGovernamental
|
|
30589
|
+
},
|
|
30590
|
+
{
|
|
30591
|
+
campo: EnumCampoTributo.AliquotaEfetiva,
|
|
30592
|
+
disabled: true
|
|
30593
|
+
},
|
|
30594
|
+
{ campo: EnumCampoTributo.Valor }
|
|
30595
|
+
]
|
|
30596
|
+
: [
|
|
30597
|
+
{
|
|
30598
|
+
campo: EnumCampoTributo.BaseCalculo,
|
|
30599
|
+
grupo: EnumGrupoTributo.IBS_ESTADUAL
|
|
30600
|
+
},
|
|
30601
|
+
{
|
|
30602
|
+
campo: EnumCampoTributo.Aliquota,
|
|
30603
|
+
grupo: EnumGrupoTributo.IBS_ESTADUAL
|
|
30604
|
+
},
|
|
30605
|
+
{
|
|
30606
|
+
campo: EnumCampoTributo.ValorBruto,
|
|
30607
|
+
disabled: true
|
|
30608
|
+
},
|
|
30609
|
+
{ campo: EnumCampoTributo.ReducaoAliquota },
|
|
30610
|
+
{
|
|
30611
|
+
campo: EnumCampoTributo.ReducaoAliquotaGovernamental
|
|
30612
|
+
},
|
|
30613
|
+
{
|
|
30614
|
+
campo: EnumCampoTributo.AliquotaEfetiva,
|
|
30615
|
+
disabled: true
|
|
30616
|
+
},
|
|
30617
|
+
{ campo: EnumCampoTributo.Valor },
|
|
30618
|
+
{ campo: EnumCampoTributo.SituacaoTributaria },
|
|
30619
|
+
{
|
|
30620
|
+
campo: EnumCampoTributo.ClassificacaoTributaria
|
|
30621
|
+
},
|
|
30622
|
+
{
|
|
30623
|
+
campo: EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
30624
|
+
grupo: EnumGrupoTributo.IBS_ESTADUAL
|
|
30625
|
+
}
|
|
30626
|
+
], EnumTipoTributo.IBS_ESTADUAL))], (this.isAccrualTaxDocument()
|
|
28883
30627
|
? [
|
|
28884
|
-
{
|
|
28885
|
-
campo: EnumCampoTributo.BaseCalculo,
|
|
28886
|
-
|
|
28887
|
-
|
|
28888
|
-
|
|
28889
|
-
|
|
28890
|
-
|
|
28891
|
-
|
|
28892
|
-
{
|
|
28893
|
-
campo: EnumCampoTributo.ValorBruto,
|
|
28894
|
-
disabled: true
|
|
28895
|
-
},
|
|
28896
|
-
{ campo: EnumCampoTributo.ReducaoAliquota },
|
|
28897
|
-
{
|
|
28898
|
-
campo: EnumCampoTributo.ReducaoAliquotaGovernamental
|
|
28899
|
-
},
|
|
28900
|
-
{
|
|
28901
|
-
campo: EnumCampoTributo.AliquotaEfetiva,
|
|
28902
|
-
disabled: true
|
|
28903
|
-
},
|
|
28904
|
-
{ campo: EnumCampoTributo.Valor }
|
|
30628
|
+
__assign({ name: EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR, label: 'erpx.tributos.enum_tipo_tributo_ibs_estadual_a_apropriar' }, this.montaCampos([
|
|
30629
|
+
{ campo: EnumCampoTributo.BaseCalculo },
|
|
30630
|
+
{ campo: EnumCampoTributo.Aliquota },
|
|
30631
|
+
{
|
|
30632
|
+
campo: EnumCampoTributo.Valor,
|
|
30633
|
+
disabled: true
|
|
30634
|
+
}
|
|
30635
|
+
], EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR))
|
|
28905
30636
|
]
|
|
28906
|
-
: [
|
|
28907
|
-
{
|
|
28908
|
-
campo: EnumCampoTributo.BaseCalculo,
|
|
28909
|
-
grupo: EnumGrupoTributo.IBS_ESTADUAL
|
|
28910
|
-
},
|
|
28911
|
-
{
|
|
28912
|
-
campo: EnumCampoTributo.Aliquota,
|
|
28913
|
-
grupo: EnumGrupoTributo.IBS_ESTADUAL
|
|
28914
|
-
},
|
|
28915
|
-
{
|
|
28916
|
-
campo: EnumCampoTributo.ValorBruto,
|
|
28917
|
-
disabled: true
|
|
28918
|
-
},
|
|
28919
|
-
{ campo: EnumCampoTributo.ReducaoAliquota },
|
|
28920
|
-
{
|
|
28921
|
-
campo: EnumCampoTributo.ReducaoAliquotaGovernamental
|
|
28922
|
-
},
|
|
28923
|
-
{
|
|
28924
|
-
campo: EnumCampoTributo.AliquotaEfetiva,
|
|
28925
|
-
disabled: true
|
|
28926
|
-
},
|
|
28927
|
-
{ campo: EnumCampoTributo.Valor },
|
|
28928
|
-
{ campo: EnumCampoTributo.SituacaoTributaria },
|
|
28929
|
-
{
|
|
28930
|
-
campo: EnumCampoTributo.ClassificacaoTributaria
|
|
28931
|
-
},
|
|
28932
|
-
{
|
|
28933
|
-
campo: EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
28934
|
-
grupo: EnumGrupoTributo.IBS_ESTADUAL
|
|
28935
|
-
}
|
|
28936
|
-
], EnumTipoTributo.IBS_ESTADUAL)), __assign({ name: EnumTipoTributo.IBS_ESTADUAL_DIFERIDO, label: 'erpx.tributos.enum_tipo_tributo_ibs_estadual_diferido' }, this.montaCampos([
|
|
28937
|
-
{ campo: EnumCampoTributo.BaseCalculo },
|
|
28938
|
-
{ campo: EnumCampoTributo.Aliquota },
|
|
28939
|
-
{ campo: EnumCampoTributo.Valor, disabled: true }
|
|
28940
|
-
], EnumTipoTributo.IBS_ESTADUAL_DIFERIDO)), __assign({ name: EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR, label: 'erpx.tributos.enum_tipo_tributo_ibs_estadual_tributacao_regular' }, this.montaCampos(this.context.document === 'Sale Order' ||
|
|
28941
|
-
this.context.document === 'Purchase Order'
|
|
28942
|
-
? [
|
|
30637
|
+
: []), [__assign({ name: EnumTipoTributo.IBS_ESTADUAL_DIFERIDO, label: 'erpx.tributos.enum_tipo_tributo_ibs_estadual_diferido' }, this.montaCampos([
|
|
28943
30638
|
{ campo: EnumCampoTributo.BaseCalculo },
|
|
28944
30639
|
{ campo: EnumCampoTributo.Aliquota },
|
|
28945
30640
|
{ campo: EnumCampoTributo.Valor, disabled: true }
|
|
28946
|
-
]
|
|
28947
|
-
|
|
30641
|
+
], EnumTipoTributo.IBS_ESTADUAL_DIFERIDO)), __assign({ name: EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR, label: 'erpx.tributos.enum_tipo_tributo_ibs_estadual_tributacao_regular' }, this.montaCampos(this.context.document === 'Sale Order' ||
|
|
30642
|
+
this.context.document === 'Purchase Order'
|
|
30643
|
+
? [
|
|
30644
|
+
{ campo: EnumCampoTributo.BaseCalculo },
|
|
30645
|
+
{ campo: EnumCampoTributo.Aliquota },
|
|
30646
|
+
{ campo: EnumCampoTributo.Valor, disabled: true }
|
|
30647
|
+
]
|
|
30648
|
+
: [
|
|
30649
|
+
{ campo: EnumCampoTributo.BaseCalculo },
|
|
30650
|
+
{ campo: EnumCampoTributo.Aliquota },
|
|
30651
|
+
{ campo: EnumCampoTributo.Valor, disabled: true },
|
|
30652
|
+
{ campo: EnumCampoTributo.SituacaoTributaria },
|
|
30653
|
+
{
|
|
30654
|
+
campo: EnumCampoTributo.ClassificacaoTributaria
|
|
30655
|
+
}
|
|
30656
|
+
], EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR)), __assign({ name: EnumTipoTributo.IBS_ESTADUAL_GOVERNAMENTAL, label: 'erpx.tributos.enum_tipo_tributo_ibs_estadual_governamental' }, this.montaCampos([
|
|
28948
30657
|
{ campo: EnumCampoTributo.BaseCalculo },
|
|
28949
30658
|
{ campo: EnumCampoTributo.Aliquota },
|
|
28950
|
-
{ campo: EnumCampoTributo.Valor, disabled: true }
|
|
28951
|
-
|
|
28952
|
-
{
|
|
28953
|
-
campo: EnumCampoTributo.ClassificacaoTributaria
|
|
28954
|
-
}
|
|
28955
|
-
], EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR)), __assign({ name: EnumTipoTributo.IBS_ESTADUAL_GOVERNAMENTAL, label: 'erpx.tributos.enum_tipo_tributo_ibs_estadual_governamental' }, this.montaCampos([
|
|
28956
|
-
{ campo: EnumCampoTributo.BaseCalculo },
|
|
28957
|
-
{ campo: EnumCampoTributo.Aliquota },
|
|
28958
|
-
{ campo: EnumCampoTributo.Valor, disabled: true }
|
|
28959
|
-
], EnumTipoTributo.IBS_ESTADUAL_GOVERNAMENTAL)));
|
|
30659
|
+
{ campo: EnumCampoTributo.Valor, disabled: true }
|
|
30660
|
+
], EnumTipoTributo.IBS_ESTADUAL_GOVERNAMENTAL))]));
|
|
28960
30661
|
this.grupos.unshift({
|
|
28961
30662
|
grupo: "" + ('erpx.tributos.enum_grupo_tributo_' + EnumGrupoTributo.IBS_ESTADUAL + '_label'),
|
|
28962
30663
|
grupoTributo: EnumGrupoTributo.IBS_ESTADUAL,
|
|
@@ -28969,85 +30670,96 @@ var ErpTributosComponent = /** @class */ (function () {
|
|
|
28969
30670
|
return;
|
|
28970
30671
|
this.menuItemIBSMunicipal = true;
|
|
28971
30672
|
var item = [];
|
|
28972
|
-
item.unshift(__assign({ name: EnumTipoTributo.IBS_MUNICIPAL, label: 'erpx.tributos.enum_tipo_tributo_ibs_municipal' }, this.montaCampos(this.context.document === 'Sale Order' ||
|
|
28973
|
-
|
|
30673
|
+
item.unshift.apply(item, __spread([__assign({ name: EnumTipoTributo.IBS_MUNICIPAL, label: 'erpx.tributos.enum_tipo_tributo_ibs_municipal' }, this.montaCampos(this.context.document === 'Sale Order' ||
|
|
30674
|
+
this.context.document === 'Purchase Order'
|
|
30675
|
+
? [
|
|
30676
|
+
{
|
|
30677
|
+
campo: EnumCampoTributo.BaseCalculo,
|
|
30678
|
+
grupo: EnumGrupoTributo.IBS_MUNICIPAL
|
|
30679
|
+
},
|
|
30680
|
+
{
|
|
30681
|
+
campo: EnumCampoTributo.Aliquota,
|
|
30682
|
+
grupo: EnumGrupoTributo.IBS_MUNICIPAL
|
|
30683
|
+
},
|
|
30684
|
+
{
|
|
30685
|
+
campo: EnumCampoTributo.ValorBruto,
|
|
30686
|
+
disabled: true
|
|
30687
|
+
},
|
|
30688
|
+
{ campo: EnumCampoTributo.ReducaoAliquota },
|
|
30689
|
+
{
|
|
30690
|
+
campo: EnumCampoTributo.ReducaoAliquotaGovernamental
|
|
30691
|
+
},
|
|
30692
|
+
{
|
|
30693
|
+
campo: EnumCampoTributo.AliquotaEfetiva,
|
|
30694
|
+
disabled: true
|
|
30695
|
+
},
|
|
30696
|
+
{ campo: EnumCampoTributo.Valor, disabled: true }
|
|
30697
|
+
]
|
|
30698
|
+
: [
|
|
30699
|
+
{
|
|
30700
|
+
campo: EnumCampoTributo.BaseCalculo,
|
|
30701
|
+
grupo: EnumGrupoTributo.IBS_MUNICIPAL
|
|
30702
|
+
},
|
|
30703
|
+
{
|
|
30704
|
+
campo: EnumCampoTributo.Aliquota,
|
|
30705
|
+
grupo: EnumGrupoTributo.IBS_MUNICIPAL
|
|
30706
|
+
},
|
|
30707
|
+
{
|
|
30708
|
+
campo: EnumCampoTributo.ValorBruto,
|
|
30709
|
+
disabled: true
|
|
30710
|
+
},
|
|
30711
|
+
{ campo: EnumCampoTributo.ReducaoAliquota },
|
|
30712
|
+
{
|
|
30713
|
+
campo: EnumCampoTributo.ReducaoAliquotaGovernamental
|
|
30714
|
+
},
|
|
30715
|
+
{
|
|
30716
|
+
campo: EnumCampoTributo.AliquotaEfetiva,
|
|
30717
|
+
disabled: true
|
|
30718
|
+
},
|
|
30719
|
+
{ campo: EnumCampoTributo.Valor },
|
|
30720
|
+
{ campo: EnumCampoTributo.SituacaoTributaria },
|
|
30721
|
+
{
|
|
30722
|
+
campo: EnumCampoTributo.ClassificacaoTributaria
|
|
30723
|
+
},
|
|
30724
|
+
{
|
|
30725
|
+
campo: EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
30726
|
+
grupo: EnumGrupoTributo.IBS_MUNICIPAL
|
|
30727
|
+
}
|
|
30728
|
+
], EnumTipoTributo.IBS_MUNICIPAL))], (this.isAccrualTaxDocument()
|
|
28974
30729
|
? [
|
|
28975
|
-
{
|
|
28976
|
-
campo: EnumCampoTributo.BaseCalculo,
|
|
28977
|
-
|
|
28978
|
-
|
|
28979
|
-
|
|
28980
|
-
|
|
28981
|
-
|
|
28982
|
-
|
|
28983
|
-
{
|
|
28984
|
-
campo: EnumCampoTributo.ValorBruto,
|
|
28985
|
-
disabled: true
|
|
28986
|
-
},
|
|
28987
|
-
{ campo: EnumCampoTributo.ReducaoAliquota },
|
|
28988
|
-
{
|
|
28989
|
-
campo: EnumCampoTributo.ReducaoAliquotaGovernamental
|
|
28990
|
-
},
|
|
28991
|
-
{
|
|
28992
|
-
campo: EnumCampoTributo.AliquotaEfetiva,
|
|
28993
|
-
disabled: true
|
|
28994
|
-
},
|
|
28995
|
-
{ campo: EnumCampoTributo.Valor, disabled: true }
|
|
30730
|
+
__assign({ name: EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR, label: 'erpx.tributos.enum_tipo_tributo_ibs_municipal_a_apropriar' }, this.montaCampos([
|
|
30731
|
+
{ campo: EnumCampoTributo.BaseCalculo },
|
|
30732
|
+
{ campo: EnumCampoTributo.Aliquota },
|
|
30733
|
+
{
|
|
30734
|
+
campo: EnumCampoTributo.Valor,
|
|
30735
|
+
disabled: true
|
|
30736
|
+
}
|
|
30737
|
+
], EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR))
|
|
28996
30738
|
]
|
|
28997
|
-
: [
|
|
28998
|
-
{
|
|
28999
|
-
campo: EnumCampoTributo.BaseCalculo,
|
|
29000
|
-
grupo: EnumGrupoTributo.IBS_MUNICIPAL
|
|
29001
|
-
},
|
|
29002
|
-
{
|
|
29003
|
-
campo: EnumCampoTributo.Aliquota,
|
|
29004
|
-
grupo: EnumGrupoTributo.IBS_MUNICIPAL
|
|
29005
|
-
},
|
|
29006
|
-
{
|
|
29007
|
-
campo: EnumCampoTributo.ValorBruto,
|
|
29008
|
-
disabled: true
|
|
29009
|
-
},
|
|
29010
|
-
{ campo: EnumCampoTributo.ReducaoAliquota },
|
|
29011
|
-
{
|
|
29012
|
-
campo: EnumCampoTributo.ReducaoAliquotaGovernamental
|
|
29013
|
-
},
|
|
29014
|
-
{
|
|
29015
|
-
campo: EnumCampoTributo.AliquotaEfetiva,
|
|
29016
|
-
disabled: true
|
|
29017
|
-
},
|
|
29018
|
-
{ campo: EnumCampoTributo.Valor },
|
|
29019
|
-
{ campo: EnumCampoTributo.SituacaoTributaria },
|
|
29020
|
-
{
|
|
29021
|
-
campo: EnumCampoTributo.ClassificacaoTributaria
|
|
29022
|
-
},
|
|
29023
|
-
{
|
|
29024
|
-
campo: EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
29025
|
-
grupo: EnumGrupoTributo.IBS_MUNICIPAL
|
|
29026
|
-
}
|
|
29027
|
-
], EnumTipoTributo.IBS_MUNICIPAL)), __assign({ name: EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO, label: 'erpx.tributos.enum_tipo_tributo_ibs_municipal_diferido' }, this.montaCampos([
|
|
29028
|
-
{ campo: EnumCampoTributo.BaseCalculo },
|
|
29029
|
-
{ campo: EnumCampoTributo.Aliquota },
|
|
29030
|
-
{ campo: EnumCampoTributo.Valor, disabled: true }
|
|
29031
|
-
], EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO)), __assign({ name: EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR, label: 'erpx.tributos.enum_tipo_tributo_ibs_municipal_tributacao_regular' }, this.montaCampos(this.context.document === 'Sale Order' ||
|
|
29032
|
-
this.context.document === 'Purchase Order'
|
|
29033
|
-
? [
|
|
30739
|
+
: []), [__assign({ name: EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO, label: 'erpx.tributos.enum_tipo_tributo_ibs_municipal_diferido' }, this.montaCampos([
|
|
29034
30740
|
{ campo: EnumCampoTributo.BaseCalculo },
|
|
29035
30741
|
{ campo: EnumCampoTributo.Aliquota },
|
|
29036
30742
|
{ campo: EnumCampoTributo.Valor, disabled: true }
|
|
29037
|
-
]
|
|
29038
|
-
|
|
30743
|
+
], EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO)), __assign({ name: EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR, label: 'erpx.tributos.enum_tipo_tributo_ibs_municipal_tributacao_regular' }, this.montaCampos(this.context.document === 'Sale Order' ||
|
|
30744
|
+
this.context.document === 'Purchase Order'
|
|
30745
|
+
? [
|
|
30746
|
+
{ campo: EnumCampoTributo.BaseCalculo },
|
|
30747
|
+
{ campo: EnumCampoTributo.Aliquota },
|
|
30748
|
+
{ campo: EnumCampoTributo.Valor, disabled: true }
|
|
30749
|
+
]
|
|
30750
|
+
: [
|
|
30751
|
+
{ campo: EnumCampoTributo.BaseCalculo },
|
|
30752
|
+
{ campo: EnumCampoTributo.Aliquota },
|
|
30753
|
+
{ campo: EnumCampoTributo.Valor, disabled: true },
|
|
30754
|
+
{ campo: EnumCampoTributo.SituacaoTributaria },
|
|
30755
|
+
{
|
|
30756
|
+
campo: EnumCampoTributo.ClassificacaoTributaria
|
|
30757
|
+
}
|
|
30758
|
+
], EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR)), __assign({ name: EnumTipoTributo.IBS_MUNICIPAL_GOVERNAMENTAL, label: 'erpx.tributos.enum_tipo_tributo_ibs_municipal_governamental' }, this.montaCampos([
|
|
29039
30759
|
{ campo: EnumCampoTributo.BaseCalculo },
|
|
29040
30760
|
{ campo: EnumCampoTributo.Aliquota },
|
|
29041
|
-
{ campo: EnumCampoTributo.Valor, disabled: true }
|
|
29042
|
-
|
|
29043
|
-
{
|
|
29044
|
-
campo: EnumCampoTributo.ClassificacaoTributaria
|
|
29045
|
-
}
|
|
29046
|
-
], EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR)), __assign({ name: EnumTipoTributo.IBS_MUNICIPAL_GOVERNAMENTAL, label: 'erpx.tributos.enum_tipo_tributo_ibs_municipal_governamental' }, this.montaCampos([
|
|
29047
|
-
{ campo: EnumCampoTributo.BaseCalculo },
|
|
29048
|
-
{ campo: EnumCampoTributo.Aliquota },
|
|
29049
|
-
{ campo: EnumCampoTributo.Valor, disabled: true }
|
|
29050
|
-
], EnumTipoTributo.IBS_MUNICIPAL_GOVERNAMENTAL)));
|
|
30761
|
+
{ campo: EnumCampoTributo.Valor, disabled: true }
|
|
30762
|
+
], EnumTipoTributo.IBS_MUNICIPAL_GOVERNAMENTAL))]));
|
|
29051
30763
|
this.grupos.unshift({
|
|
29052
30764
|
grupo: "" + ('erpx.tributos.enum_grupo_tributo_' + EnumGrupoTributo.IBS_MUNICIPAL + '_label'),
|
|
29053
30765
|
grupoTributo: EnumGrupoTributo.IBS_MUNICIPAL,
|
|
@@ -30504,7 +32216,14 @@ var ErpTributosComponent = /** @class */ (function () {
|
|
|
30504
32216
|
? EnumLogicalOperator.Eq
|
|
30505
32217
|
: EnumLogicalOperator.Ne,
|
|
30506
32218
|
values: [EnumIndicativoPadrao.EXIGE]
|
|
30507
|
-
}
|
|
32219
|
+
}
|
|
32220
|
+
]);
|
|
32221
|
+
if (tributo === EnumTipoTributo.CBS ||
|
|
32222
|
+
tributo === EnumTipoTributo.IBS_ESTADUAL ||
|
|
32223
|
+
tributo === EnumTipoTributo.IBS_MUNICIPAL ||
|
|
32224
|
+
tributo === EnumTipoTributo.CBS_AJUSTE ||
|
|
32225
|
+
tributo === EnumTipoTributo.IBS_AJUSTE)
|
|
32226
|
+
defaultFilter = __spread(defaultFilter, [
|
|
30508
32227
|
{
|
|
30509
32228
|
field: 'indGAjusteCompet',
|
|
30510
32229
|
operator: tributo === EnumTipoTributo.CBS_AJUSTE ||
|
|
@@ -31674,6 +33393,10 @@ var ErpTributosComponent = /** @class */ (function () {
|
|
|
31674
33393
|
return (this.context.document === 'Incoming Invoice' ||
|
|
31675
33394
|
this.context.document === 'Outgoing Invoice');
|
|
31676
33395
|
};
|
|
33396
|
+
ErpTributosComponent.prototype.isAccrualTaxDocument = function () {
|
|
33397
|
+
return (this.context.document === 'Incoming Invoice' ||
|
|
33398
|
+
this.context.document === 'Purchase Order');
|
|
33399
|
+
};
|
|
31677
33400
|
ErpTributosComponent.prototype.isFieldRequired = function (field, taxType) {
|
|
31678
33401
|
var _a, _b, _c;
|
|
31679
33402
|
var item = this.grupos
|
|
@@ -34933,5 +36656,5 @@ var fallback = {
|
|
|
34933
36656
|
* Generated bundle index. Do not edit.
|
|
34934
36657
|
*/
|
|
34935
36658
|
|
|
34936
|
-
export { BreadcrumbComponent, BreadcrumbModule, Breakpoints, EnumAplicarValorLiquidoDocumento, EnumCampoTributo, EnumEscriturarAliquotaISS, EnumFunruralIndicativoAquisicao, EnumGrupoTributo, EnumInvoiceOrigin, EnumModBc, EnumMotDes, EnumOriMer, EnumRegimeTributarioPisCofins, EnumSituacao, EnumTipImpCst, EnumTipOpe, EnumTipoControleProduto, EnumTipoItem, EnumTipoMovimentacao, EnumTipoTributo, ErpLoteSerieComponent, ErpLoteSerieModule, ErpRateioEditorComponent, ErpRateioEditorConverter, ErpRateioEditorModule, ErpResumoModule, ErpTributosComponent, ErpTributosModule, ExportUtils, enumTipCredRecup, fallback, isEmpty, isNotEmpty, isNullOrUndefined, nonNullish, ErpResumoComponent as ɵa, ErpResumoService as ɵb,
|
|
36659
|
+
export { BreadcrumbComponent, BreadcrumbModule, Breakpoints, EnumAplicarValorLiquidoDocumento, EnumCampoTributo, EnumEscriturarAliquotaISS, EnumFunruralIndicativoAquisicao, EnumGrupoTributo, EnumInvoiceOrigin, EnumModBc, EnumMotDes, EnumOriMer, EnumRegimeTributarioPisCofins, EnumSituacao, EnumTipImpCst, EnumTipOpe, EnumTipoControleProduto, EnumTipoItem, EnumTipoMovimentacao, EnumTipoTributo, ErpLoteSerieComponent, ErpLoteSerieModule, ErpRateioEditorComponent, ErpRateioEditorConverter, ErpRateioEditorModule, ErpResumoModule, ErpTributosComponent, ErpTributosModule, ExportUtils, enumTipCredRecup, fallback, isEmpty, isNotEmpty, isNullOrUndefined, nonNullish, ErpResumoComponent as ɵa, ErpResumoService as ɵb, CalculationRulesRegistry as ɵba, IncomingInvoiceCalculationRulesRegistry as ɵbb, TaxableBaseCalculationRule as ɵbc, TaxAmountCalculator as ɵbd, EffectiveTaxRateCalculator as ɵbe, TaxRoundingService as ɵbf, TaxStore as ɵbg, TaxRateCalculationRule as ɵbh, EffectiveTaxRateCalculationRule as ɵbi, TaxAmountCalculationRule as ɵbj, GrossAmountCalculationRule as ɵbk, GrossAmountCalculator as ɵbl, TaxSituationCalculationRule as ɵbm, TaxClassificationCalculationRule as ɵbn, TaxCalculationTypeCalculationRule as ɵbo, ApplyNetValueToDocumentCalculationRule as ɵbp, ManualTaxCalculationRule as ɵbq, OutgoingInvoiceCalculationRulesRegistry as ɵbr, AssessmentPeriodCalculationRule as ɵbs, SaleOrderCalculationRulesRegistry as ɵbt, PurchaseOrderCalculationRulesRegistry as ɵbu, FocusService as ɵbv, ErpLoteSeriesService as ɵbw, QuantidadeDisponivelDemandaService as ɵbx, EntityService as ɵby, QuantidadeDisponivelDemandaModule as ɵbz, LoadingContext as ɵc, ErpRateioEditorService as ɵca, ErpTributosService as ɵd, RulesService as ɵe, StatusRulesRegistry as ɵf, IncomingInvoiceStatusRulesRegistry as ɵg, TaxClassificationStatusRule as ɵh, ApplyNetValueToDocumentStatusRule as ɵi, TaxableBaseStatusRule as ɵj, TaxRateStatusRule as ɵk, OutgoingInvoiceStatusRulesRegistry as ɵl, SaleOrderStatusRulesRegistry as ɵm, PurchaseOrderStatusRulesRegistry as ɵn, ValidationRulesRegistry as ɵo, IncomingInvoiceValidationRulesRegistry as ɵp, TaxableBaseRequiredValidationRule as ɵq, TaxRateRequiredValidationRule as ɵr, TaxClassificationRequiredValidationRule as ɵs, TaxAmountRequiredValidationRule as ɵt, TaxSituationRequiredValidationRule as ɵu, ApplyNetValueToDocumentRequiredValidationRule as ɵv, OutgoingInvoiceValidationRulesRegistry as ɵw, AssessmentPeriodRequiredValidationRule as ɵx, SaleOrderValidationRulesRegistry as ɵy, PurchaseOrderValidationRulesRegistry as ɵz };
|
|
34937
36660
|
//# sourceMappingURL=senior-gestao-empresarial-erpx-components.js.map
|