@senior-gestao-empresarial/erpx-components 4.16.0 → 4.17.0
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 +2188 -470
- 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 +44 -4
- 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 +194 -154
- 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 +1957 -282
- package/fesm2015/senior-gestao-empresarial-erpx-components.js.map +1 -1
- package/fesm5/senior-gestao-empresarial-erpx-components.js +2145 -429
- 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
|
@@ -819,6 +819,7 @@
|
|
|
819
819
|
|
|
820
820
|
(function (EnumTipoTributo) {
|
|
821
821
|
EnumTipoTributo["CBS"] = "CBS";
|
|
822
|
+
EnumTipoTributo["CBS_A_APROPRIAR"] = "CBS_A_APROPRIAR";
|
|
822
823
|
EnumTipoTributo["CBS_DIFERIDO"] = "CBS_DIFERIDO";
|
|
823
824
|
EnumTipoTributo["CBS_CREDITO_PRESUMIDO"] = "CBS_CREDITO_PRESUMIDO";
|
|
824
825
|
EnumTipoTributo["CBS_TRIBUTACAO_REGULAR"] = "CBS_TRIBUTACAO_REGULAR";
|
|
@@ -826,10 +827,12 @@
|
|
|
826
827
|
EnumTipoTributo["CBS_ESTORNO_CREDITO"] = "CBS_ESTORNO_CREDITO";
|
|
827
828
|
EnumTipoTributo["CBS_AJUSTE"] = "CBS_AJUSTE";
|
|
828
829
|
EnumTipoTributo["IBS_ESTADUAL"] = "IBS_ESTADUAL";
|
|
830
|
+
EnumTipoTributo["IBS_ESTADUAL_A_APROPRIAR"] = "IBS_ESTADUAL_A_APROPRIAR";
|
|
829
831
|
EnumTipoTributo["IBS_ESTADUAL_DIFERIDO"] = "IBS_ESTADUAL_DIFERIDO";
|
|
830
832
|
EnumTipoTributo["IBS_ESTADUAL_TRIBUTACAO_REGULAR"] = "IBS_ESTADUAL_TRIBUTACAO_REGULAR";
|
|
831
833
|
EnumTipoTributo["IBS_ESTADUAL_GOVERNAMENTAL"] = "IBS_ESTADUAL_GOVERNAMENTAL";
|
|
832
834
|
EnumTipoTributo["IBS_MUNICIPAL"] = "IBS_MUNICIPAL";
|
|
835
|
+
EnumTipoTributo["IBS_MUNICIPAL_A_APROPRIAR"] = "IBS_MUNICIPAL_A_APROPRIAR";
|
|
833
836
|
EnumTipoTributo["IBS_MUNICIPAL_DIFERIDO"] = "IBS_MUNICIPAL_DIFERIDO";
|
|
834
837
|
EnumTipoTributo["IBS_MUNICIPAL_TRIBUTACAO_REGULAR"] = "IBS_MUNICIPAL_TRIBUTACAO_REGULAR";
|
|
835
838
|
EnumTipoTributo["IBS_MUNICIPAL_GOVERNAMENTAL"] = "IBS_MUNICIPAL_GOVERNAMENTAL";
|
|
@@ -1047,15 +1050,18 @@
|
|
|
1047
1050
|
var isTaxFromTaxReform = function (tax) {
|
|
1048
1051
|
return (tax === exports.EnumTipoTributo.IS ||
|
|
1049
1052
|
tax === exports.EnumTipoTributo.CBS ||
|
|
1053
|
+
tax === exports.EnumTipoTributo.CBS_A_APROPRIAR ||
|
|
1050
1054
|
tax === exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO ||
|
|
1051
1055
|
tax === exports.EnumTipoTributo.CBS_DIFERIDO ||
|
|
1052
1056
|
tax === exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR ||
|
|
1053
1057
|
tax === exports.EnumTipoTributo.CBS_GOVERNAMENTAL ||
|
|
1054
1058
|
tax === exports.EnumTipoTributo.IBS_ESTADUAL ||
|
|
1059
|
+
tax === exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR ||
|
|
1055
1060
|
tax === exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO ||
|
|
1056
1061
|
tax === exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR ||
|
|
1057
1062
|
tax === exports.EnumTipoTributo.IBS_ESTADUAL_GOVERNAMENTAL ||
|
|
1058
1063
|
tax === exports.EnumTipoTributo.IBS_MUNICIPAL ||
|
|
1064
|
+
tax === exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR ||
|
|
1059
1065
|
tax === exports.EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO ||
|
|
1060
1066
|
tax === exports.EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR ||
|
|
1061
1067
|
tax === exports.EnumTipoTributo.IBS_MUNICIPAL_GOVERNAMENTAL ||
|
|
@@ -1690,6 +1696,9 @@
|
|
|
1690
1696
|
}
|
|
1691
1697
|
}
|
|
1692
1698
|
break;
|
|
1699
|
+
case exports.EnumTipoTributo.CBS_A_APROPRIAR:
|
|
1700
|
+
case exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR:
|
|
1701
|
+
case exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR:
|
|
1693
1702
|
case exports.EnumTipoTributo.CBS_DIFERIDO:
|
|
1694
1703
|
case exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO:
|
|
1695
1704
|
case exports.EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO:
|
|
@@ -2200,6 +2209,50 @@
|
|
|
2200
2209
|
TaxRateCalculationRule.prototype.apply = function (_a) {
|
|
2201
2210
|
var document = _a.context.document, group = _a.group, _b = _a.item, taxType = _b.name, formGroup = _b.formGroup;
|
|
2202
2211
|
switch (taxType) {
|
|
2212
|
+
case exports.EnumTipoTributo.CBS_A_APROPRIAR:
|
|
2213
|
+
case exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR:
|
|
2214
|
+
case exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR:
|
|
2215
|
+
{
|
|
2216
|
+
switch (document) {
|
|
2217
|
+
case 'Incoming Invoice':
|
|
2218
|
+
case 'Purchase Order':
|
|
2219
|
+
{
|
|
2220
|
+
var baseTaxFormGroup = getBaseTaxItemFromGroup({ group: group }).formGroup;
|
|
2221
|
+
rxjs.combineLatest([
|
|
2222
|
+
baseTaxFormGroup
|
|
2223
|
+
.get('aliquotaEfetiva')
|
|
2224
|
+
.valueChanges.pipe(operators.startWith(baseTaxFormGroup.get('aliquotaEfetiva').value), operators.distinctUntilChanged()),
|
|
2225
|
+
baseTaxFormGroup
|
|
2226
|
+
.get('aliquota')
|
|
2227
|
+
.valueChanges.pipe(operators.startWith(baseTaxFormGroup.get('aliquota').value), operators.distinctUntilChanged())
|
|
2228
|
+
])
|
|
2229
|
+
.pipe(operators.skip(1), operators.map(function (_a) {
|
|
2230
|
+
var _b = __read(_a, 2), effectiveTaxRate = _b[0], taxRate = _b[1];
|
|
2231
|
+
return [
|
|
2232
|
+
new BigNumber(effectiveTaxRate),
|
|
2233
|
+
new BigNumber(taxRate)
|
|
2234
|
+
];
|
|
2235
|
+
}), operators.map(function (_a) {
|
|
2236
|
+
var _b = __read(_a, 2), effectiveTaxRate = _b[0], taxRate = _b[1];
|
|
2237
|
+
return effectiveTaxRate.isNaN()
|
|
2238
|
+
? taxRate
|
|
2239
|
+
: effectiveTaxRate;
|
|
2240
|
+
}), operators.filter(function (taxRate) {
|
|
2241
|
+
return taxRate !==
|
|
2242
|
+
formGroup.get('aliquota').value;
|
|
2243
|
+
}))
|
|
2244
|
+
.subscribe(function (taxRate) {
|
|
2245
|
+
formGroup
|
|
2246
|
+
.get('aliquota')
|
|
2247
|
+
.setValue(taxRate);
|
|
2248
|
+
});
|
|
2249
|
+
}
|
|
2250
|
+
break;
|
|
2251
|
+
default:
|
|
2252
|
+
throw new Error("Regra TaxRateCalculationRule n\u00E3o implementada para o imposto " + taxType + ", documento " + document + ".");
|
|
2253
|
+
}
|
|
2254
|
+
}
|
|
2255
|
+
break;
|
|
2203
2256
|
case exports.EnumTipoTributo.CBS_GOVERNAMENTAL:
|
|
2204
2257
|
case exports.EnumTipoTributo.IBS_ESTADUAL_GOVERNAMENTAL:
|
|
2205
2258
|
case exports.EnumTipoTributo.IBS_MUNICIPAL_GOVERNAMENTAL:
|
|
@@ -2265,7 +2318,7 @@
|
|
|
2265
2318
|
}
|
|
2266
2319
|
TaxableBaseCalculationRule.prototype.apply = function (_a) {
|
|
2267
2320
|
var _this = this;
|
|
2268
|
-
var document = _a.context.document, groups = _a.groups, group = _a.group, _b = _a.item, taxType = _b.name, formGroup = _b.formGroup
|
|
2321
|
+
var document = _a.context.document, groups = _a.groups, group = _a.group, _b = _a.item, taxType = _b.name, formGroup = _b.formGroup;
|
|
2269
2322
|
switch (taxType) {
|
|
2270
2323
|
case exports.EnumTipoTributo.CBS_DIFERIDO:
|
|
2271
2324
|
case exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO:
|
|
@@ -2380,6 +2433,49 @@
|
|
|
2380
2433
|
}
|
|
2381
2434
|
}
|
|
2382
2435
|
break;
|
|
2436
|
+
case exports.EnumTipoTributo.CBS_A_APROPRIAR:
|
|
2437
|
+
case exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR:
|
|
2438
|
+
case exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR:
|
|
2439
|
+
{
|
|
2440
|
+
switch (document) {
|
|
2441
|
+
case 'Incoming Invoice':
|
|
2442
|
+
case 'Purchase Order':
|
|
2443
|
+
{
|
|
2444
|
+
var baseTaxFormGroup = getBaseTaxItemFromGroup({ group: group }).formGroup;
|
|
2445
|
+
rxjs.combineLatest([
|
|
2446
|
+
baseTaxFormGroup
|
|
2447
|
+
.get('baseCalculo')
|
|
2448
|
+
.valueChanges.pipe(operators.startWith(baseTaxFormGroup.get('baseCalculo').value), operators.distinctUntilChanged())
|
|
2449
|
+
])
|
|
2450
|
+
.pipe(operators.skip(1), operators.map(function (_a) {
|
|
2451
|
+
var _b = __read(_a, 1), baseTaxTaxableBase = _b[0];
|
|
2452
|
+
return [
|
|
2453
|
+
new BigNumber(baseTaxTaxableBase)
|
|
2454
|
+
];
|
|
2455
|
+
}), operators.map(function (_a) {
|
|
2456
|
+
var _b = __read(_a, 1), baseTaxTaxableBase = _b[0];
|
|
2457
|
+
if (baseTaxTaxableBase.isNaN())
|
|
2458
|
+
return null;
|
|
2459
|
+
return baseTaxTaxableBase
|
|
2460
|
+
.decimalPlaces(2)
|
|
2461
|
+
.toNumber();
|
|
2462
|
+
}), operators.filter(function (taxableBase) {
|
|
2463
|
+
return taxableBase !==
|
|
2464
|
+
formGroup.get('baseCalculo')
|
|
2465
|
+
.value;
|
|
2466
|
+
}))
|
|
2467
|
+
.subscribe(function (taxableBase) {
|
|
2468
|
+
formGroup
|
|
2469
|
+
.get('baseCalculo')
|
|
2470
|
+
.setValue(taxableBase);
|
|
2471
|
+
});
|
|
2472
|
+
}
|
|
2473
|
+
break;
|
|
2474
|
+
default:
|
|
2475
|
+
throw new Error("Regra TaxableBaseCalculationRule n\u00E3o implementada para o imposto " + taxType + ", documento " + document + ".");
|
|
2476
|
+
}
|
|
2477
|
+
}
|
|
2478
|
+
break;
|
|
2383
2479
|
case exports.EnumTipoTributo.CBS_GOVERNAMENTAL:
|
|
2384
2480
|
case exports.EnumTipoTributo.IBS_ESTADUAL_GOVERNAMENTAL:
|
|
2385
2481
|
case exports.EnumTipoTributo.IBS_MUNICIPAL_GOVERNAMENTAL:
|
|
@@ -2733,6 +2829,20 @@
|
|
|
2733
2829
|
rule: this.manualTaxCalculationRule
|
|
2734
2830
|
}
|
|
2735
2831
|
],
|
|
2832
|
+
_a[exports.EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
2833
|
+
{
|
|
2834
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
2835
|
+
rule: this.taxableBaseCalculationRule
|
|
2836
|
+
},
|
|
2837
|
+
{
|
|
2838
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
2839
|
+
rule: this.taxRateCalculationRule
|
|
2840
|
+
},
|
|
2841
|
+
{
|
|
2842
|
+
field: exports.EnumCampoTributo.Valor,
|
|
2843
|
+
rule: this.taxAmountCalculationRule
|
|
2844
|
+
}
|
|
2845
|
+
],
|
|
2736
2846
|
_a[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
2737
2847
|
{
|
|
2738
2848
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -2803,6 +2913,20 @@
|
|
|
2803
2913
|
rule: this.manualTaxCalculationRule
|
|
2804
2914
|
}
|
|
2805
2915
|
],
|
|
2916
|
+
_a[exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
2917
|
+
{
|
|
2918
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
2919
|
+
rule: this.taxableBaseCalculationRule
|
|
2920
|
+
},
|
|
2921
|
+
{
|
|
2922
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
2923
|
+
rule: this.taxRateCalculationRule
|
|
2924
|
+
},
|
|
2925
|
+
{
|
|
2926
|
+
field: exports.EnumCampoTributo.Valor,
|
|
2927
|
+
rule: this.taxAmountCalculationRule
|
|
2928
|
+
}
|
|
2929
|
+
],
|
|
2806
2930
|
_a[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
2807
2931
|
{
|
|
2808
2932
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -2867,6 +2991,20 @@
|
|
|
2867
2991
|
rule: this.manualTaxCalculationRule
|
|
2868
2992
|
}
|
|
2869
2993
|
],
|
|
2994
|
+
_a[exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
2995
|
+
{
|
|
2996
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
2997
|
+
rule: this.taxableBaseCalculationRule
|
|
2998
|
+
},
|
|
2999
|
+
{
|
|
3000
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
3001
|
+
rule: this.taxRateCalculationRule
|
|
3002
|
+
},
|
|
3003
|
+
{
|
|
3004
|
+
field: exports.EnumCampoTributo.Valor,
|
|
3005
|
+
rule: this.taxAmountCalculationRule
|
|
3006
|
+
}
|
|
3007
|
+
],
|
|
2870
3008
|
_a[exports.EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
2871
3009
|
{
|
|
2872
3010
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -2985,6 +3123,20 @@
|
|
|
2985
3123
|
rule: this.manualTaxCalculationRule
|
|
2986
3124
|
}
|
|
2987
3125
|
],
|
|
3126
|
+
_b[exports.EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
3127
|
+
{
|
|
3128
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
3129
|
+
rule: this.taxableBaseCalculationRule
|
|
3130
|
+
},
|
|
3131
|
+
{
|
|
3132
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
3133
|
+
rule: this.taxRateCalculationRule
|
|
3134
|
+
},
|
|
3135
|
+
{
|
|
3136
|
+
field: exports.EnumCampoTributo.Valor,
|
|
3137
|
+
rule: this.taxAmountCalculationRule
|
|
3138
|
+
}
|
|
3139
|
+
],
|
|
2988
3140
|
_b[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
2989
3141
|
{
|
|
2990
3142
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -3055,6 +3207,20 @@
|
|
|
3055
3207
|
rule: this.manualTaxCalculationRule
|
|
3056
3208
|
}
|
|
3057
3209
|
],
|
|
3210
|
+
_b[exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
3211
|
+
{
|
|
3212
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
3213
|
+
rule: this.taxableBaseCalculationRule
|
|
3214
|
+
},
|
|
3215
|
+
{
|
|
3216
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
3217
|
+
rule: this.taxRateCalculationRule
|
|
3218
|
+
},
|
|
3219
|
+
{
|
|
3220
|
+
field: exports.EnumCampoTributo.Valor,
|
|
3221
|
+
rule: this.taxAmountCalculationRule
|
|
3222
|
+
}
|
|
3223
|
+
],
|
|
3058
3224
|
_b[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
3059
3225
|
{
|
|
3060
3226
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -3119,6 +3285,20 @@
|
|
|
3119
3285
|
rule: this.manualTaxCalculationRule
|
|
3120
3286
|
}
|
|
3121
3287
|
],
|
|
3288
|
+
_b[exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
3289
|
+
{
|
|
3290
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
3291
|
+
rule: this.taxableBaseCalculationRule
|
|
3292
|
+
},
|
|
3293
|
+
{
|
|
3294
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
3295
|
+
rule: this.taxRateCalculationRule
|
|
3296
|
+
},
|
|
3297
|
+
{
|
|
3298
|
+
field: exports.EnumCampoTributo.Valor,
|
|
3299
|
+
rule: this.taxAmountCalculationRule
|
|
3300
|
+
}
|
|
3301
|
+
],
|
|
3122
3302
|
_b[exports.EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
3123
3303
|
{
|
|
3124
3304
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -3237,6 +3417,20 @@
|
|
|
3237
3417
|
rule: this.manualTaxCalculationRule
|
|
3238
3418
|
}
|
|
3239
3419
|
],
|
|
3420
|
+
_c[exports.EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
3421
|
+
{
|
|
3422
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
3423
|
+
rule: this.taxableBaseCalculationRule
|
|
3424
|
+
},
|
|
3425
|
+
{
|
|
3426
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
3427
|
+
rule: this.taxRateCalculationRule
|
|
3428
|
+
},
|
|
3429
|
+
{
|
|
3430
|
+
field: exports.EnumCampoTributo.Valor,
|
|
3431
|
+
rule: this.taxAmountCalculationRule
|
|
3432
|
+
}
|
|
3433
|
+
],
|
|
3240
3434
|
_c[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
3241
3435
|
{
|
|
3242
3436
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -3307,6 +3501,20 @@
|
|
|
3307
3501
|
rule: this.manualTaxCalculationRule
|
|
3308
3502
|
}
|
|
3309
3503
|
],
|
|
3504
|
+
_c[exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
3505
|
+
{
|
|
3506
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
3507
|
+
rule: this.taxableBaseCalculationRule
|
|
3508
|
+
},
|
|
3509
|
+
{
|
|
3510
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
3511
|
+
rule: this.taxRateCalculationRule
|
|
3512
|
+
},
|
|
3513
|
+
{
|
|
3514
|
+
field: exports.EnumCampoTributo.Valor,
|
|
3515
|
+
rule: this.taxAmountCalculationRule
|
|
3516
|
+
}
|
|
3517
|
+
],
|
|
3310
3518
|
_c[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
3311
3519
|
{
|
|
3312
3520
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -3371,6 +3579,20 @@
|
|
|
3371
3579
|
rule: this.manualTaxCalculationRule
|
|
3372
3580
|
}
|
|
3373
3581
|
],
|
|
3582
|
+
_c[exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
3583
|
+
{
|
|
3584
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
3585
|
+
rule: this.taxableBaseCalculationRule
|
|
3586
|
+
},
|
|
3587
|
+
{
|
|
3588
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
3589
|
+
rule: this.taxRateCalculationRule
|
|
3590
|
+
},
|
|
3591
|
+
{
|
|
3592
|
+
field: exports.EnumCampoTributo.Valor,
|
|
3593
|
+
rule: this.taxAmountCalculationRule
|
|
3594
|
+
}
|
|
3595
|
+
],
|
|
3374
3596
|
_c[exports.EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
3375
3597
|
{
|
|
3376
3598
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -3489,6 +3711,20 @@
|
|
|
3489
3711
|
rule: this.manualTaxCalculationRule
|
|
3490
3712
|
}
|
|
3491
3713
|
],
|
|
3714
|
+
_d[exports.EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
3715
|
+
{
|
|
3716
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
3717
|
+
rule: this.taxableBaseCalculationRule
|
|
3718
|
+
},
|
|
3719
|
+
{
|
|
3720
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
3721
|
+
rule: this.taxRateCalculationRule
|
|
3722
|
+
},
|
|
3723
|
+
{
|
|
3724
|
+
field: exports.EnumCampoTributo.Valor,
|
|
3725
|
+
rule: this.taxAmountCalculationRule
|
|
3726
|
+
}
|
|
3727
|
+
],
|
|
3492
3728
|
_d[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
3493
3729
|
{
|
|
3494
3730
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -3559,6 +3795,20 @@
|
|
|
3559
3795
|
rule: this.manualTaxCalculationRule
|
|
3560
3796
|
}
|
|
3561
3797
|
],
|
|
3798
|
+
_d[exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
3799
|
+
{
|
|
3800
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
3801
|
+
rule: this.taxableBaseCalculationRule
|
|
3802
|
+
},
|
|
3803
|
+
{
|
|
3804
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
3805
|
+
rule: this.taxRateCalculationRule
|
|
3806
|
+
},
|
|
3807
|
+
{
|
|
3808
|
+
field: exports.EnumCampoTributo.Valor,
|
|
3809
|
+
rule: this.taxAmountCalculationRule
|
|
3810
|
+
}
|
|
3811
|
+
],
|
|
3562
3812
|
_d[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
3563
3813
|
{
|
|
3564
3814
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -3623,6 +3873,20 @@
|
|
|
3623
3873
|
rule: this.manualTaxCalculationRule
|
|
3624
3874
|
}
|
|
3625
3875
|
],
|
|
3876
|
+
_d[exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
3877
|
+
{
|
|
3878
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
3879
|
+
rule: this.taxableBaseCalculationRule
|
|
3880
|
+
},
|
|
3881
|
+
{
|
|
3882
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
3883
|
+
rule: this.taxRateCalculationRule
|
|
3884
|
+
},
|
|
3885
|
+
{
|
|
3886
|
+
field: exports.EnumCampoTributo.Valor,
|
|
3887
|
+
rule: this.taxAmountCalculationRule
|
|
3888
|
+
}
|
|
3889
|
+
],
|
|
3626
3890
|
_d[exports.EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
3627
3891
|
{
|
|
3628
3892
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -3741,6 +4005,20 @@
|
|
|
3741
4005
|
rule: this.manualTaxCalculationRule
|
|
3742
4006
|
}
|
|
3743
4007
|
],
|
|
4008
|
+
_e[exports.EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
4009
|
+
{
|
|
4010
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
4011
|
+
rule: this.taxableBaseCalculationRule
|
|
4012
|
+
},
|
|
4013
|
+
{
|
|
4014
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
4015
|
+
rule: this.taxRateCalculationRule
|
|
4016
|
+
},
|
|
4017
|
+
{
|
|
4018
|
+
field: exports.EnumCampoTributo.Valor,
|
|
4019
|
+
rule: this.taxAmountCalculationRule
|
|
4020
|
+
}
|
|
4021
|
+
],
|
|
3744
4022
|
_e[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
3745
4023
|
{
|
|
3746
4024
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -3811,6 +4089,20 @@
|
|
|
3811
4089
|
rule: this.manualTaxCalculationRule
|
|
3812
4090
|
}
|
|
3813
4091
|
],
|
|
4092
|
+
_e[exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
4093
|
+
{
|
|
4094
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
4095
|
+
rule: this.taxableBaseCalculationRule
|
|
4096
|
+
},
|
|
4097
|
+
{
|
|
4098
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
4099
|
+
rule: this.taxRateCalculationRule
|
|
4100
|
+
},
|
|
4101
|
+
{
|
|
4102
|
+
field: exports.EnumCampoTributo.Valor,
|
|
4103
|
+
rule: this.taxAmountCalculationRule
|
|
4104
|
+
}
|
|
4105
|
+
],
|
|
3814
4106
|
_e[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
3815
4107
|
{
|
|
3816
4108
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -3875,6 +4167,20 @@
|
|
|
3875
4167
|
rule: this.manualTaxCalculationRule
|
|
3876
4168
|
}
|
|
3877
4169
|
],
|
|
4170
|
+
_e[exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
4171
|
+
{
|
|
4172
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
4173
|
+
rule: this.taxableBaseCalculationRule
|
|
4174
|
+
},
|
|
4175
|
+
{
|
|
4176
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
4177
|
+
rule: this.taxRateCalculationRule
|
|
4178
|
+
},
|
|
4179
|
+
{
|
|
4180
|
+
field: exports.EnumCampoTributo.Valor,
|
|
4181
|
+
rule: this.taxAmountCalculationRule
|
|
4182
|
+
}
|
|
4183
|
+
],
|
|
3878
4184
|
_e[exports.EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
3879
4185
|
{
|
|
3880
4186
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -3993,6 +4299,20 @@
|
|
|
3993
4299
|
rule: this.manualTaxCalculationRule
|
|
3994
4300
|
}
|
|
3995
4301
|
],
|
|
4302
|
+
_f[exports.EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
4303
|
+
{
|
|
4304
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
4305
|
+
rule: this.taxableBaseCalculationRule
|
|
4306
|
+
},
|
|
4307
|
+
{
|
|
4308
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
4309
|
+
rule: this.taxRateCalculationRule
|
|
4310
|
+
},
|
|
4311
|
+
{
|
|
4312
|
+
field: exports.EnumCampoTributo.Valor,
|
|
4313
|
+
rule: this.taxAmountCalculationRule
|
|
4314
|
+
}
|
|
4315
|
+
],
|
|
3996
4316
|
_f[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
3997
4317
|
{
|
|
3998
4318
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -4063,6 +4383,20 @@
|
|
|
4063
4383
|
rule: this.manualTaxCalculationRule
|
|
4064
4384
|
}
|
|
4065
4385
|
],
|
|
4386
|
+
_f[exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
4387
|
+
{
|
|
4388
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
4389
|
+
rule: this.taxableBaseCalculationRule
|
|
4390
|
+
},
|
|
4391
|
+
{
|
|
4392
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
4393
|
+
rule: this.taxRateCalculationRule
|
|
4394
|
+
},
|
|
4395
|
+
{
|
|
4396
|
+
field: exports.EnumCampoTributo.Valor,
|
|
4397
|
+
rule: this.taxAmountCalculationRule
|
|
4398
|
+
}
|
|
4399
|
+
],
|
|
4066
4400
|
_f[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
4067
4401
|
{
|
|
4068
4402
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -4127,6 +4461,20 @@
|
|
|
4127
4461
|
rule: this.manualTaxCalculationRule
|
|
4128
4462
|
}
|
|
4129
4463
|
],
|
|
4464
|
+
_f[exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
4465
|
+
{
|
|
4466
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
4467
|
+
rule: this.taxableBaseCalculationRule
|
|
4468
|
+
},
|
|
4469
|
+
{
|
|
4470
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
4471
|
+
rule: this.taxRateCalculationRule
|
|
4472
|
+
},
|
|
4473
|
+
{
|
|
4474
|
+
field: exports.EnumCampoTributo.Valor,
|
|
4475
|
+
rule: this.taxAmountCalculationRule
|
|
4476
|
+
}
|
|
4477
|
+
],
|
|
4130
4478
|
_f[exports.EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
4131
4479
|
{
|
|
4132
4480
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -4245,6 +4593,20 @@
|
|
|
4245
4593
|
rule: this.manualTaxCalculationRule
|
|
4246
4594
|
}
|
|
4247
4595
|
],
|
|
4596
|
+
_g[exports.EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
4597
|
+
{
|
|
4598
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
4599
|
+
rule: this.taxableBaseCalculationRule
|
|
4600
|
+
},
|
|
4601
|
+
{
|
|
4602
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
4603
|
+
rule: this.taxRateCalculationRule
|
|
4604
|
+
},
|
|
4605
|
+
{
|
|
4606
|
+
field: exports.EnumCampoTributo.Valor,
|
|
4607
|
+
rule: this.taxAmountCalculationRule
|
|
4608
|
+
}
|
|
4609
|
+
],
|
|
4248
4610
|
_g[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
4249
4611
|
{
|
|
4250
4612
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -4315,6 +4677,20 @@
|
|
|
4315
4677
|
rule: this.manualTaxCalculationRule
|
|
4316
4678
|
}
|
|
4317
4679
|
],
|
|
4680
|
+
_g[exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
4681
|
+
{
|
|
4682
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
4683
|
+
rule: this.taxableBaseCalculationRule
|
|
4684
|
+
},
|
|
4685
|
+
{
|
|
4686
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
4687
|
+
rule: this.taxRateCalculationRule
|
|
4688
|
+
},
|
|
4689
|
+
{
|
|
4690
|
+
field: exports.EnumCampoTributo.Valor,
|
|
4691
|
+
rule: this.taxAmountCalculationRule
|
|
4692
|
+
}
|
|
4693
|
+
],
|
|
4318
4694
|
_g[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
4319
4695
|
{
|
|
4320
4696
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -4379,6 +4755,20 @@
|
|
|
4379
4755
|
rule: this.manualTaxCalculationRule
|
|
4380
4756
|
}
|
|
4381
4757
|
],
|
|
4758
|
+
_g[exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
4759
|
+
{
|
|
4760
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
4761
|
+
rule: this.taxableBaseCalculationRule
|
|
4762
|
+
},
|
|
4763
|
+
{
|
|
4764
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
4765
|
+
rule: this.taxRateCalculationRule
|
|
4766
|
+
},
|
|
4767
|
+
{
|
|
4768
|
+
field: exports.EnumCampoTributo.Valor,
|
|
4769
|
+
rule: this.taxAmountCalculationRule
|
|
4770
|
+
}
|
|
4771
|
+
],
|
|
4382
4772
|
_g[exports.EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
4383
4773
|
{
|
|
4384
4774
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -4497,37 +4887,7 @@
|
|
|
4497
4887
|
rule: this.manualTaxCalculationRule
|
|
4498
4888
|
}
|
|
4499
4889
|
],
|
|
4500
|
-
_h[exports.EnumTipoTributo.
|
|
4501
|
-
{
|
|
4502
|
-
field: exports.EnumCampoTributo.BaseCalculo,
|
|
4503
|
-
rule: this.taxableBaseCalculationRule
|
|
4504
|
-
},
|
|
4505
|
-
{
|
|
4506
|
-
field: exports.EnumCampoTributo.Valor,
|
|
4507
|
-
rule: this.taxAmountCalculationRule
|
|
4508
|
-
}
|
|
4509
|
-
],
|
|
4510
|
-
_h[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
|
|
4511
|
-
{
|
|
4512
|
-
field: exports.EnumCampoTributo.Valor,
|
|
4513
|
-
rule: this.taxAmountCalculationRule
|
|
4514
|
-
}
|
|
4515
|
-
],
|
|
4516
|
-
_h[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
4517
|
-
{
|
|
4518
|
-
field: exports.EnumCampoTributo.BaseCalculo,
|
|
4519
|
-
rule: this.taxableBaseCalculationRule
|
|
4520
|
-
},
|
|
4521
|
-
{
|
|
4522
|
-
field: exports.EnumCampoTributo.Valor,
|
|
4523
|
-
rule: this.taxAmountCalculationRule
|
|
4524
|
-
},
|
|
4525
|
-
{
|
|
4526
|
-
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
4527
|
-
rule: this.taxClassificationCalculationRule
|
|
4528
|
-
}
|
|
4529
|
-
],
|
|
4530
|
-
_h[exports.EnumTipoTributo.CBS_GOVERNAMENTAL] = [
|
|
4890
|
+
_h[exports.EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
4531
4891
|
{
|
|
4532
4892
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
4533
4893
|
rule: this.taxableBaseCalculationRule
|
|
@@ -4541,33 +4901,7 @@
|
|
|
4541
4901
|
rule: this.taxAmountCalculationRule
|
|
4542
4902
|
}
|
|
4543
4903
|
],
|
|
4544
|
-
_h[exports.EnumTipoTributo.
|
|
4545
|
-
{
|
|
4546
|
-
field: exports.EnumCampoTributo.AliquotaEfetiva,
|
|
4547
|
-
rule: this.effectiveTaxRateCalculationRule
|
|
4548
|
-
},
|
|
4549
|
-
{
|
|
4550
|
-
field: exports.EnumCampoTributo.ValorBruto,
|
|
4551
|
-
rule: this.grossAmountCalculationRule
|
|
4552
|
-
},
|
|
4553
|
-
{
|
|
4554
|
-
field: exports.EnumCampoTributo.Valor,
|
|
4555
|
-
rule: this.taxAmountCalculationRule
|
|
4556
|
-
},
|
|
4557
|
-
{
|
|
4558
|
-
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
4559
|
-
rule: this.taxClassificationCalculationRule
|
|
4560
|
-
},
|
|
4561
|
-
{
|
|
4562
|
-
field: exports.EnumCampoTributo.TipoCalculoImposto,
|
|
4563
|
-
rule: this.taxCalculationTypeCalculationRule
|
|
4564
|
-
},
|
|
4565
|
-
{
|
|
4566
|
-
field: exports.EnumCampoTributo.ImpostoManual,
|
|
4567
|
-
rule: this.manualTaxCalculationRule
|
|
4568
|
-
}
|
|
4569
|
-
],
|
|
4570
|
-
_h[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
4904
|
+
_h[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
4571
4905
|
{
|
|
4572
4906
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
4573
4907
|
rule: this.taxableBaseCalculationRule
|
|
@@ -4577,43 +4911,17 @@
|
|
|
4577
4911
|
rule: this.taxAmountCalculationRule
|
|
4578
4912
|
}
|
|
4579
4913
|
],
|
|
4580
|
-
_h[exports.EnumTipoTributo.
|
|
4581
|
-
{
|
|
4582
|
-
field: exports.EnumCampoTributo.BaseCalculo,
|
|
4583
|
-
rule: this.taxableBaseCalculationRule
|
|
4584
|
-
},
|
|
4914
|
+
_h[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
|
|
4585
4915
|
{
|
|
4586
4916
|
field: exports.EnumCampoTributo.Valor,
|
|
4587
4917
|
rule: this.taxAmountCalculationRule
|
|
4588
|
-
},
|
|
4589
|
-
{
|
|
4590
|
-
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
4591
|
-
rule: this.taxClassificationCalculationRule
|
|
4592
4918
|
}
|
|
4593
4919
|
],
|
|
4594
|
-
_h[exports.EnumTipoTributo.
|
|
4920
|
+
_h[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
4595
4921
|
{
|
|
4596
4922
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
4597
4923
|
rule: this.taxableBaseCalculationRule
|
|
4598
4924
|
},
|
|
4599
|
-
{
|
|
4600
|
-
field: exports.EnumCampoTributo.Aliquota,
|
|
4601
|
-
rule: this.taxRateCalculationRule
|
|
4602
|
-
},
|
|
4603
|
-
{
|
|
4604
|
-
field: exports.EnumCampoTributo.Valor,
|
|
4605
|
-
rule: this.taxAmountCalculationRule
|
|
4606
|
-
}
|
|
4607
|
-
],
|
|
4608
|
-
_h[exports.EnumTipoTributo.IBS_MUNICIPAL] = [
|
|
4609
|
-
{
|
|
4610
|
-
field: exports.EnumCampoTributo.AliquotaEfetiva,
|
|
4611
|
-
rule: this.effectiveTaxRateCalculationRule
|
|
4612
|
-
},
|
|
4613
|
-
{
|
|
4614
|
-
field: exports.EnumCampoTributo.ValorBruto,
|
|
4615
|
-
rule: this.grossAmountCalculationRule
|
|
4616
|
-
},
|
|
4617
4925
|
{
|
|
4618
4926
|
field: exports.EnumCampoTributo.Valor,
|
|
4619
4927
|
rule: this.taxAmountCalculationRule
|
|
@@ -4621,27 +4929,9 @@
|
|
|
4621
4929
|
{
|
|
4622
4930
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
4623
4931
|
rule: this.taxClassificationCalculationRule
|
|
4624
|
-
},
|
|
4625
|
-
{
|
|
4626
|
-
field: exports.EnumCampoTributo.TipoCalculoImposto,
|
|
4627
|
-
rule: this.taxCalculationTypeCalculationRule
|
|
4628
|
-
},
|
|
4629
|
-
{
|
|
4630
|
-
field: exports.EnumCampoTributo.ImpostoManual,
|
|
4631
|
-
rule: this.manualTaxCalculationRule
|
|
4632
|
-
}
|
|
4633
|
-
],
|
|
4634
|
-
_h[exports.EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
4635
|
-
{
|
|
4636
|
-
field: exports.EnumCampoTributo.BaseCalculo,
|
|
4637
|
-
rule: this.taxableBaseCalculationRule
|
|
4638
|
-
},
|
|
4639
|
-
{
|
|
4640
|
-
field: exports.EnumCampoTributo.Valor,
|
|
4641
|
-
rule: this.taxAmountCalculationRule
|
|
4642
4932
|
}
|
|
4643
4933
|
],
|
|
4644
|
-
_h[exports.EnumTipoTributo.
|
|
4934
|
+
_h[exports.EnumTipoTributo.CBS_GOVERNAMENTAL] = [
|
|
4645
4935
|
{
|
|
4646
4936
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
4647
4937
|
rule: this.taxableBaseCalculationRule
|
|
@@ -4655,75 +4945,7 @@
|
|
|
4655
4945
|
rule: this.taxAmountCalculationRule
|
|
4656
4946
|
}
|
|
4657
4947
|
],
|
|
4658
|
-
_h[exports.EnumTipoTributo.
|
|
4659
|
-
{
|
|
4660
|
-
field: exports.EnumCampoTributo.BaseCalculo,
|
|
4661
|
-
rule: this.taxableBaseCalculationRule
|
|
4662
|
-
},
|
|
4663
|
-
{
|
|
4664
|
-
field: exports.EnumCampoTributo.Valor,
|
|
4665
|
-
rule: this.taxAmountCalculationRule
|
|
4666
|
-
},
|
|
4667
|
-
{
|
|
4668
|
-
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
4669
|
-
rule: this.taxClassificationCalculationRule
|
|
4670
|
-
}
|
|
4671
|
-
],
|
|
4672
|
-
_h[exports.EnumTipoTributo.IBS_CREDITO_PRESUMIDO] = [
|
|
4673
|
-
{
|
|
4674
|
-
field: exports.EnumCampoTributo.BaseCalculo,
|
|
4675
|
-
rule: this.taxableBaseCalculationRule
|
|
4676
|
-
},
|
|
4677
|
-
{
|
|
4678
|
-
field: exports.EnumCampoTributo.Valor,
|
|
4679
|
-
rule: this.taxAmountCalculationRule
|
|
4680
|
-
},
|
|
4681
|
-
{
|
|
4682
|
-
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
4683
|
-
rule: this.applyNetValueToDocumentCalculationRule
|
|
4684
|
-
}
|
|
4685
|
-
],
|
|
4686
|
-
_h[exports.EnumTipoTributo.IS] = [
|
|
4687
|
-
{
|
|
4688
|
-
field: exports.EnumCampoTributo.Valor,
|
|
4689
|
-
rule: this.taxAmountCalculationRule
|
|
4690
|
-
},
|
|
4691
|
-
{
|
|
4692
|
-
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
4693
|
-
rule: this.taxClassificationCalculationRule
|
|
4694
|
-
}
|
|
4695
|
-
],
|
|
4696
|
-
_h[exports.EnumTipoTributo.CBS_ESTORNO_CREDITO] = [
|
|
4697
|
-
{
|
|
4698
|
-
field: exports.EnumCampoTributo.SituacaoTributaria,
|
|
4699
|
-
rule: this.taxSituationCalculationRule
|
|
4700
|
-
},
|
|
4701
|
-
{
|
|
4702
|
-
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
4703
|
-
rule: this.taxClassificationCalculationRule
|
|
4704
|
-
},
|
|
4705
|
-
{
|
|
4706
|
-
field: exports.EnumCampoTributo.Valor,
|
|
4707
|
-
rule: this.taxAmountCalculationRule
|
|
4708
|
-
}
|
|
4709
|
-
],
|
|
4710
|
-
_h[exports.EnumTipoTributo.IBS_ESTORNO_CREDITO] = [
|
|
4711
|
-
{
|
|
4712
|
-
field: exports.EnumCampoTributo.SituacaoTributaria,
|
|
4713
|
-
rule: this.taxSituationCalculationRule
|
|
4714
|
-
},
|
|
4715
|
-
{
|
|
4716
|
-
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
4717
|
-
rule: this.taxClassificationCalculationRule
|
|
4718
|
-
},
|
|
4719
|
-
{
|
|
4720
|
-
field: exports.EnumCampoTributo.Valor,
|
|
4721
|
-
rule: this.taxAmountCalculationRule
|
|
4722
|
-
}
|
|
4723
|
-
],
|
|
4724
|
-
_h),
|
|
4725
|
-
Reversal: (_j = {},
|
|
4726
|
-
_j[exports.EnumTipoTributo.CBS] = [
|
|
4948
|
+
_h[exports.EnumTipoTributo.IBS_ESTADUAL] = [
|
|
4727
4949
|
{
|
|
4728
4950
|
field: exports.EnumCampoTributo.AliquotaEfetiva,
|
|
4729
4951
|
rule: this.effectiveTaxRateCalculationRule
|
|
@@ -4749,6 +4971,230 @@
|
|
|
4749
4971
|
rule: this.manualTaxCalculationRule
|
|
4750
4972
|
}
|
|
4751
4973
|
],
|
|
4974
|
+
_h[exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
4975
|
+
{
|
|
4976
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
4977
|
+
rule: this.taxableBaseCalculationRule
|
|
4978
|
+
},
|
|
4979
|
+
{
|
|
4980
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
4981
|
+
rule: this.taxRateCalculationRule
|
|
4982
|
+
},
|
|
4983
|
+
{
|
|
4984
|
+
field: exports.EnumCampoTributo.Valor,
|
|
4985
|
+
rule: this.taxAmountCalculationRule
|
|
4986
|
+
}
|
|
4987
|
+
],
|
|
4988
|
+
_h[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
4989
|
+
{
|
|
4990
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
4991
|
+
rule: this.taxableBaseCalculationRule
|
|
4992
|
+
},
|
|
4993
|
+
{
|
|
4994
|
+
field: exports.EnumCampoTributo.Valor,
|
|
4995
|
+
rule: this.taxAmountCalculationRule
|
|
4996
|
+
}
|
|
4997
|
+
],
|
|
4998
|
+
_h[exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
|
|
4999
|
+
{
|
|
5000
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
5001
|
+
rule: this.taxableBaseCalculationRule
|
|
5002
|
+
},
|
|
5003
|
+
{
|
|
5004
|
+
field: exports.EnumCampoTributo.Valor,
|
|
5005
|
+
rule: this.taxAmountCalculationRule
|
|
5006
|
+
},
|
|
5007
|
+
{
|
|
5008
|
+
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
5009
|
+
rule: this.taxClassificationCalculationRule
|
|
5010
|
+
}
|
|
5011
|
+
],
|
|
5012
|
+
_h[exports.EnumTipoTributo.IBS_ESTADUAL_GOVERNAMENTAL] = [
|
|
5013
|
+
{
|
|
5014
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
5015
|
+
rule: this.taxableBaseCalculationRule
|
|
5016
|
+
},
|
|
5017
|
+
{
|
|
5018
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
5019
|
+
rule: this.taxRateCalculationRule
|
|
5020
|
+
},
|
|
5021
|
+
{
|
|
5022
|
+
field: exports.EnumCampoTributo.Valor,
|
|
5023
|
+
rule: this.taxAmountCalculationRule
|
|
5024
|
+
}
|
|
5025
|
+
],
|
|
5026
|
+
_h[exports.EnumTipoTributo.IBS_MUNICIPAL] = [
|
|
5027
|
+
{
|
|
5028
|
+
field: exports.EnumCampoTributo.AliquotaEfetiva,
|
|
5029
|
+
rule: this.effectiveTaxRateCalculationRule
|
|
5030
|
+
},
|
|
5031
|
+
{
|
|
5032
|
+
field: exports.EnumCampoTributo.ValorBruto,
|
|
5033
|
+
rule: this.grossAmountCalculationRule
|
|
5034
|
+
},
|
|
5035
|
+
{
|
|
5036
|
+
field: exports.EnumCampoTributo.Valor,
|
|
5037
|
+
rule: this.taxAmountCalculationRule
|
|
5038
|
+
},
|
|
5039
|
+
{
|
|
5040
|
+
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
5041
|
+
rule: this.taxClassificationCalculationRule
|
|
5042
|
+
},
|
|
5043
|
+
{
|
|
5044
|
+
field: exports.EnumCampoTributo.TipoCalculoImposto,
|
|
5045
|
+
rule: this.taxCalculationTypeCalculationRule
|
|
5046
|
+
},
|
|
5047
|
+
{
|
|
5048
|
+
field: exports.EnumCampoTributo.ImpostoManual,
|
|
5049
|
+
rule: this.manualTaxCalculationRule
|
|
5050
|
+
}
|
|
5051
|
+
],
|
|
5052
|
+
_h[exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
5053
|
+
{
|
|
5054
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
5055
|
+
rule: this.taxableBaseCalculationRule
|
|
5056
|
+
},
|
|
5057
|
+
{
|
|
5058
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
5059
|
+
rule: this.taxRateCalculationRule
|
|
5060
|
+
},
|
|
5061
|
+
{
|
|
5062
|
+
field: exports.EnumCampoTributo.Valor,
|
|
5063
|
+
rule: this.taxAmountCalculationRule
|
|
5064
|
+
}
|
|
5065
|
+
],
|
|
5066
|
+
_h[exports.EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
5067
|
+
{
|
|
5068
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
5069
|
+
rule: this.taxableBaseCalculationRule
|
|
5070
|
+
},
|
|
5071
|
+
{
|
|
5072
|
+
field: exports.EnumCampoTributo.Valor,
|
|
5073
|
+
rule: this.taxAmountCalculationRule
|
|
5074
|
+
}
|
|
5075
|
+
],
|
|
5076
|
+
_h[exports.EnumTipoTributo.IBS_MUNICIPAL_GOVERNAMENTAL] = [
|
|
5077
|
+
{
|
|
5078
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
5079
|
+
rule: this.taxableBaseCalculationRule
|
|
5080
|
+
},
|
|
5081
|
+
{
|
|
5082
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
5083
|
+
rule: this.taxRateCalculationRule
|
|
5084
|
+
},
|
|
5085
|
+
{
|
|
5086
|
+
field: exports.EnumCampoTributo.Valor,
|
|
5087
|
+
rule: this.taxAmountCalculationRule
|
|
5088
|
+
}
|
|
5089
|
+
],
|
|
5090
|
+
_h[exports.EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR] = [
|
|
5091
|
+
{
|
|
5092
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
5093
|
+
rule: this.taxableBaseCalculationRule
|
|
5094
|
+
},
|
|
5095
|
+
{
|
|
5096
|
+
field: exports.EnumCampoTributo.Valor,
|
|
5097
|
+
rule: this.taxAmountCalculationRule
|
|
5098
|
+
},
|
|
5099
|
+
{
|
|
5100
|
+
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
5101
|
+
rule: this.taxClassificationCalculationRule
|
|
5102
|
+
}
|
|
5103
|
+
],
|
|
5104
|
+
_h[exports.EnumTipoTributo.IBS_CREDITO_PRESUMIDO] = [
|
|
5105
|
+
{
|
|
5106
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
5107
|
+
rule: this.taxableBaseCalculationRule
|
|
5108
|
+
},
|
|
5109
|
+
{
|
|
5110
|
+
field: exports.EnumCampoTributo.Valor,
|
|
5111
|
+
rule: this.taxAmountCalculationRule
|
|
5112
|
+
},
|
|
5113
|
+
{
|
|
5114
|
+
field: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
5115
|
+
rule: this.applyNetValueToDocumentCalculationRule
|
|
5116
|
+
}
|
|
5117
|
+
],
|
|
5118
|
+
_h[exports.EnumTipoTributo.IS] = [
|
|
5119
|
+
{
|
|
5120
|
+
field: exports.EnumCampoTributo.Valor,
|
|
5121
|
+
rule: this.taxAmountCalculationRule
|
|
5122
|
+
},
|
|
5123
|
+
{
|
|
5124
|
+
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
5125
|
+
rule: this.taxClassificationCalculationRule
|
|
5126
|
+
}
|
|
5127
|
+
],
|
|
5128
|
+
_h[exports.EnumTipoTributo.CBS_ESTORNO_CREDITO] = [
|
|
5129
|
+
{
|
|
5130
|
+
field: exports.EnumCampoTributo.SituacaoTributaria,
|
|
5131
|
+
rule: this.taxSituationCalculationRule
|
|
5132
|
+
},
|
|
5133
|
+
{
|
|
5134
|
+
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
5135
|
+
rule: this.taxClassificationCalculationRule
|
|
5136
|
+
},
|
|
5137
|
+
{
|
|
5138
|
+
field: exports.EnumCampoTributo.Valor,
|
|
5139
|
+
rule: this.taxAmountCalculationRule
|
|
5140
|
+
}
|
|
5141
|
+
],
|
|
5142
|
+
_h[exports.EnumTipoTributo.IBS_ESTORNO_CREDITO] = [
|
|
5143
|
+
{
|
|
5144
|
+
field: exports.EnumCampoTributo.SituacaoTributaria,
|
|
5145
|
+
rule: this.taxSituationCalculationRule
|
|
5146
|
+
},
|
|
5147
|
+
{
|
|
5148
|
+
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
5149
|
+
rule: this.taxClassificationCalculationRule
|
|
5150
|
+
},
|
|
5151
|
+
{
|
|
5152
|
+
field: exports.EnumCampoTributo.Valor,
|
|
5153
|
+
rule: this.taxAmountCalculationRule
|
|
5154
|
+
}
|
|
5155
|
+
],
|
|
5156
|
+
_h),
|
|
5157
|
+
Reversal: (_j = {},
|
|
5158
|
+
_j[exports.EnumTipoTributo.CBS] = [
|
|
5159
|
+
{
|
|
5160
|
+
field: exports.EnumCampoTributo.AliquotaEfetiva,
|
|
5161
|
+
rule: this.effectiveTaxRateCalculationRule
|
|
5162
|
+
},
|
|
5163
|
+
{
|
|
5164
|
+
field: exports.EnumCampoTributo.ValorBruto,
|
|
5165
|
+
rule: this.grossAmountCalculationRule
|
|
5166
|
+
},
|
|
5167
|
+
{
|
|
5168
|
+
field: exports.EnumCampoTributo.Valor,
|
|
5169
|
+
rule: this.taxAmountCalculationRule
|
|
5170
|
+
},
|
|
5171
|
+
{
|
|
5172
|
+
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
5173
|
+
rule: this.taxClassificationCalculationRule
|
|
5174
|
+
},
|
|
5175
|
+
{
|
|
5176
|
+
field: exports.EnumCampoTributo.TipoCalculoImposto,
|
|
5177
|
+
rule: this.taxCalculationTypeCalculationRule
|
|
5178
|
+
},
|
|
5179
|
+
{
|
|
5180
|
+
field: exports.EnumCampoTributo.ImpostoManual,
|
|
5181
|
+
rule: this.manualTaxCalculationRule
|
|
5182
|
+
}
|
|
5183
|
+
],
|
|
5184
|
+
_j[exports.EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
5185
|
+
{
|
|
5186
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
5187
|
+
rule: this.taxableBaseCalculationRule
|
|
5188
|
+
},
|
|
5189
|
+
{
|
|
5190
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
5191
|
+
rule: this.taxRateCalculationRule
|
|
5192
|
+
},
|
|
5193
|
+
{
|
|
5194
|
+
field: exports.EnumCampoTributo.Valor,
|
|
5195
|
+
rule: this.taxAmountCalculationRule
|
|
5196
|
+
}
|
|
5197
|
+
],
|
|
4752
5198
|
_j[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
4753
5199
|
{
|
|
4754
5200
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -4819,6 +5265,20 @@
|
|
|
4819
5265
|
rule: this.manualTaxCalculationRule
|
|
4820
5266
|
}
|
|
4821
5267
|
],
|
|
5268
|
+
_j[exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
5269
|
+
{
|
|
5270
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
5271
|
+
rule: this.taxableBaseCalculationRule
|
|
5272
|
+
},
|
|
5273
|
+
{
|
|
5274
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
5275
|
+
rule: this.taxRateCalculationRule
|
|
5276
|
+
},
|
|
5277
|
+
{
|
|
5278
|
+
field: exports.EnumCampoTributo.Valor,
|
|
5279
|
+
rule: this.taxAmountCalculationRule
|
|
5280
|
+
}
|
|
5281
|
+
],
|
|
4822
5282
|
_j[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
4823
5283
|
{
|
|
4824
5284
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -4883,6 +5343,20 @@
|
|
|
4883
5343
|
rule: this.manualTaxCalculationRule
|
|
4884
5344
|
}
|
|
4885
5345
|
],
|
|
5346
|
+
_j[exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
5347
|
+
{
|
|
5348
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
5349
|
+
rule: this.taxableBaseCalculationRule
|
|
5350
|
+
},
|
|
5351
|
+
{
|
|
5352
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
5353
|
+
rule: this.taxRateCalculationRule
|
|
5354
|
+
},
|
|
5355
|
+
{
|
|
5356
|
+
field: exports.EnumCampoTributo.Valor,
|
|
5357
|
+
rule: this.taxAmountCalculationRule
|
|
5358
|
+
}
|
|
5359
|
+
],
|
|
4886
5360
|
_j[exports.EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
4887
5361
|
{
|
|
4888
5362
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -5001,6 +5475,20 @@
|
|
|
5001
5475
|
rule: this.manualTaxCalculationRule
|
|
5002
5476
|
}
|
|
5003
5477
|
],
|
|
5478
|
+
_k[exports.EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
5479
|
+
{
|
|
5480
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
5481
|
+
rule: this.taxableBaseCalculationRule
|
|
5482
|
+
},
|
|
5483
|
+
{
|
|
5484
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
5485
|
+
rule: this.taxRateCalculationRule
|
|
5486
|
+
},
|
|
5487
|
+
{
|
|
5488
|
+
field: exports.EnumCampoTributo.Valor,
|
|
5489
|
+
rule: this.taxAmountCalculationRule
|
|
5490
|
+
}
|
|
5491
|
+
],
|
|
5004
5492
|
_k[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
5005
5493
|
{
|
|
5006
5494
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -5071,6 +5559,20 @@
|
|
|
5071
5559
|
rule: this.manualTaxCalculationRule
|
|
5072
5560
|
}
|
|
5073
5561
|
],
|
|
5562
|
+
_k[exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
5563
|
+
{
|
|
5564
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
5565
|
+
rule: this.taxableBaseCalculationRule
|
|
5566
|
+
},
|
|
5567
|
+
{
|
|
5568
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
5569
|
+
rule: this.taxRateCalculationRule
|
|
5570
|
+
},
|
|
5571
|
+
{
|
|
5572
|
+
field: exports.EnumCampoTributo.Valor,
|
|
5573
|
+
rule: this.taxAmountCalculationRule
|
|
5574
|
+
}
|
|
5575
|
+
],
|
|
5074
5576
|
_k[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
5075
5577
|
{
|
|
5076
5578
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -5135,6 +5637,20 @@
|
|
|
5135
5637
|
rule: this.manualTaxCalculationRule
|
|
5136
5638
|
}
|
|
5137
5639
|
],
|
|
5640
|
+
_k[exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
5641
|
+
{
|
|
5642
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
5643
|
+
rule: this.taxableBaseCalculationRule
|
|
5644
|
+
},
|
|
5645
|
+
{
|
|
5646
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
5647
|
+
rule: this.taxRateCalculationRule
|
|
5648
|
+
},
|
|
5649
|
+
{
|
|
5650
|
+
field: exports.EnumCampoTributo.Valor,
|
|
5651
|
+
rule: this.taxAmountCalculationRule
|
|
5652
|
+
}
|
|
5653
|
+
],
|
|
5138
5654
|
_k[exports.EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
5139
5655
|
{
|
|
5140
5656
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -9675,6 +10191,20 @@
|
|
|
9675
10191
|
rule: this.manualTaxCalculationRule
|
|
9676
10192
|
}
|
|
9677
10193
|
],
|
|
10194
|
+
_a[exports.EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
10195
|
+
{
|
|
10196
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
10197
|
+
rule: this.taxableBaseCalculationRule
|
|
10198
|
+
},
|
|
10199
|
+
{
|
|
10200
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
10201
|
+
rule: this.taxRateCalculationRule
|
|
10202
|
+
},
|
|
10203
|
+
{
|
|
10204
|
+
field: exports.EnumCampoTributo.Valor,
|
|
10205
|
+
rule: this.taxAmountCalculationRule
|
|
10206
|
+
}
|
|
10207
|
+
],
|
|
9678
10208
|
_a[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
9679
10209
|
{
|
|
9680
10210
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -9737,6 +10267,20 @@
|
|
|
9737
10267
|
rule: this.manualTaxCalculationRule
|
|
9738
10268
|
}
|
|
9739
10269
|
],
|
|
10270
|
+
_a[exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
10271
|
+
{
|
|
10272
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
10273
|
+
rule: this.taxableBaseCalculationRule
|
|
10274
|
+
},
|
|
10275
|
+
{
|
|
10276
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
10277
|
+
rule: this.taxRateCalculationRule
|
|
10278
|
+
},
|
|
10279
|
+
{
|
|
10280
|
+
field: exports.EnumCampoTributo.Valor,
|
|
10281
|
+
rule: this.taxAmountCalculationRule
|
|
10282
|
+
}
|
|
10283
|
+
],
|
|
9740
10284
|
_a[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
9741
10285
|
{
|
|
9742
10286
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -9793,6 +10337,20 @@
|
|
|
9793
10337
|
rule: this.manualTaxCalculationRule
|
|
9794
10338
|
}
|
|
9795
10339
|
],
|
|
10340
|
+
_a[exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
10341
|
+
{
|
|
10342
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
10343
|
+
rule: this.taxableBaseCalculationRule
|
|
10344
|
+
},
|
|
10345
|
+
{
|
|
10346
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
10347
|
+
rule: this.taxRateCalculationRule
|
|
10348
|
+
},
|
|
10349
|
+
{
|
|
10350
|
+
field: exports.EnumCampoTributo.Valor,
|
|
10351
|
+
rule: this.taxAmountCalculationRule
|
|
10352
|
+
}
|
|
10353
|
+
],
|
|
9796
10354
|
_a[exports.EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
9797
10355
|
{
|
|
9798
10356
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -11414,11 +11972,135 @@
|
|
|
11414
11972
|
return TaxClassificationStatusRule;
|
|
11415
11973
|
}());
|
|
11416
11974
|
|
|
11975
|
+
var TaxRateStatusRule = /** @class */ (function () {
|
|
11976
|
+
function TaxRateStatusRule() {
|
|
11977
|
+
}
|
|
11978
|
+
TaxRateStatusRule.prototype.apply = function (_a) {
|
|
11979
|
+
var document = _a.context.document, group = _a.group, _b = _a.item, taxType = _b.name, formGroup = _b.formGroup;
|
|
11980
|
+
switch (taxType) {
|
|
11981
|
+
case exports.EnumTipoTributo.CBS_A_APROPRIAR:
|
|
11982
|
+
case exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR:
|
|
11983
|
+
case exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR:
|
|
11984
|
+
{
|
|
11985
|
+
switch (document) {
|
|
11986
|
+
case 'Incoming Invoice':
|
|
11987
|
+
case 'Purchase Order':
|
|
11988
|
+
{
|
|
11989
|
+
var baseTaxFormGroup = getBaseTaxItemFromGroup({ group: group }).formGroup;
|
|
11990
|
+
rxjs.combineLatest([
|
|
11991
|
+
baseTaxFormGroup
|
|
11992
|
+
.get('baseCalculo')
|
|
11993
|
+
.valueChanges.pipe(operators.startWith(baseTaxFormGroup.get('baseCalculo').value), operators.distinctUntilChanged()),
|
|
11994
|
+
baseTaxFormGroup
|
|
11995
|
+
.get('valor')
|
|
11996
|
+
.valueChanges.pipe(operators.startWith(baseTaxFormGroup.get('valor')
|
|
11997
|
+
.value), operators.distinctUntilChanged())
|
|
11998
|
+
])
|
|
11999
|
+
.pipe(operators.map(function (_a) {
|
|
12000
|
+
var _b = __read(_a, 2), taxableBase = _b[0], taxAmount = _b[1];
|
|
12001
|
+
return !new BigNumber(taxableBase).isNaN() ||
|
|
12002
|
+
!new BigNumber(taxAmount).isNaN();
|
|
12003
|
+
}), operators.distinctUntilChanged())
|
|
12004
|
+
.subscribe(function (isBaseTaxInformed) {
|
|
12005
|
+
if (isBaseTaxInformed) {
|
|
12006
|
+
formGroup.get('aliquota').enable({
|
|
12007
|
+
emitEvent: false
|
|
12008
|
+
});
|
|
12009
|
+
}
|
|
12010
|
+
else {
|
|
12011
|
+
formGroup.get('aliquota').disable({
|
|
12012
|
+
emitEvent: false
|
|
12013
|
+
});
|
|
12014
|
+
}
|
|
12015
|
+
});
|
|
12016
|
+
}
|
|
12017
|
+
break;
|
|
12018
|
+
default:
|
|
12019
|
+
throw new Error("Regra TaxRateStatusRule n\u00E3o implementada para o imposto " + taxType + ", documento " + document + ".");
|
|
12020
|
+
}
|
|
12021
|
+
}
|
|
12022
|
+
break;
|
|
12023
|
+
default:
|
|
12024
|
+
throw new Error("Regra TaxRateStatusRule n\u00E3o implementada para o imposto " + taxType + ", documento " + document + ".");
|
|
12025
|
+
}
|
|
12026
|
+
};
|
|
12027
|
+
TaxRateStatusRule.ɵprov = core.ɵɵdefineInjectable({ factory: function TaxRateStatusRule_Factory() { return new TaxRateStatusRule(); }, token: TaxRateStatusRule, providedIn: "root" });
|
|
12028
|
+
TaxRateStatusRule = __decorate([
|
|
12029
|
+
core.Injectable({ providedIn: 'root' })
|
|
12030
|
+
], TaxRateStatusRule);
|
|
12031
|
+
return TaxRateStatusRule;
|
|
12032
|
+
}());
|
|
12033
|
+
|
|
12034
|
+
var TaxableBaseStatusRule = /** @class */ (function () {
|
|
12035
|
+
function TaxableBaseStatusRule() {
|
|
12036
|
+
}
|
|
12037
|
+
TaxableBaseStatusRule.prototype.apply = function (_a) {
|
|
12038
|
+
var document = _a.context.document, group = _a.group, _b = _a.item, taxType = _b.name, formGroup = _b.formGroup;
|
|
12039
|
+
switch (taxType) {
|
|
12040
|
+
case exports.EnumTipoTributo.CBS_A_APROPRIAR:
|
|
12041
|
+
case exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR:
|
|
12042
|
+
case exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR:
|
|
12043
|
+
{
|
|
12044
|
+
switch (document) {
|
|
12045
|
+
case 'Incoming Invoice':
|
|
12046
|
+
case 'Purchase Order':
|
|
12047
|
+
{
|
|
12048
|
+
var baseTaxFormGroup = getBaseTaxItemFromGroup({ group: group }).formGroup;
|
|
12049
|
+
rxjs.combineLatest([
|
|
12050
|
+
baseTaxFormGroup
|
|
12051
|
+
.get('baseCalculo')
|
|
12052
|
+
.valueChanges.pipe(operators.startWith(baseTaxFormGroup.get('baseCalculo').value), operators.distinctUntilChanged()),
|
|
12053
|
+
baseTaxFormGroup
|
|
12054
|
+
.get('valor')
|
|
12055
|
+
.valueChanges.pipe(operators.startWith(baseTaxFormGroup.get('valor')
|
|
12056
|
+
.value), operators.distinctUntilChanged())
|
|
12057
|
+
])
|
|
12058
|
+
.pipe(operators.map(function (_a) {
|
|
12059
|
+
var _b = __read(_a, 2), taxableBase = _b[0], taxAmount = _b[1];
|
|
12060
|
+
return !new BigNumber(taxableBase).isNaN() ||
|
|
12061
|
+
!new BigNumber(taxAmount).isNaN();
|
|
12062
|
+
}), operators.distinctUntilChanged())
|
|
12063
|
+
.subscribe(function (isBaseTaxInformed) {
|
|
12064
|
+
if (isBaseTaxInformed) {
|
|
12065
|
+
formGroup
|
|
12066
|
+
.get('baseCalculo')
|
|
12067
|
+
.enable({
|
|
12068
|
+
emitEvent: false
|
|
12069
|
+
});
|
|
12070
|
+
}
|
|
12071
|
+
else {
|
|
12072
|
+
formGroup
|
|
12073
|
+
.get('baseCalculo')
|
|
12074
|
+
.disable({
|
|
12075
|
+
emitEvent: false
|
|
12076
|
+
});
|
|
12077
|
+
}
|
|
12078
|
+
});
|
|
12079
|
+
}
|
|
12080
|
+
break;
|
|
12081
|
+
default:
|
|
12082
|
+
throw new Error("Regra TaxableBaseStatusRule n\u00E3o implementada para o imposto " + taxType + ", documento " + document + ".");
|
|
12083
|
+
}
|
|
12084
|
+
}
|
|
12085
|
+
break;
|
|
12086
|
+
default:
|
|
12087
|
+
throw new Error("Regra TaxableBaseStatusRule n\u00E3o implementada para o imposto " + taxType + ", documento " + document + ".");
|
|
12088
|
+
}
|
|
12089
|
+
};
|
|
12090
|
+
TaxableBaseStatusRule.ɵprov = core.ɵɵdefineInjectable({ factory: function TaxableBaseStatusRule_Factory() { return new TaxableBaseStatusRule(); }, token: TaxableBaseStatusRule, providedIn: "root" });
|
|
12091
|
+
TaxableBaseStatusRule = __decorate([
|
|
12092
|
+
core.Injectable({ providedIn: 'root' })
|
|
12093
|
+
], TaxableBaseStatusRule);
|
|
12094
|
+
return TaxableBaseStatusRule;
|
|
12095
|
+
}());
|
|
12096
|
+
|
|
11417
12097
|
var IncomingInvoiceStatusRulesRegistry = /** @class */ (function () {
|
|
11418
|
-
function IncomingInvoiceStatusRulesRegistry(taxClassificationStatusRule, applyNetValueToDocumentStatusRule) {
|
|
12098
|
+
function IncomingInvoiceStatusRulesRegistry(taxClassificationStatusRule, applyNetValueToDocumentStatusRule, taxableBaseStatusRule, taxRateStatusRule) {
|
|
11419
12099
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
11420
12100
|
this.taxClassificationStatusRule = taxClassificationStatusRule;
|
|
11421
12101
|
this.applyNetValueToDocumentStatusRule = applyNetValueToDocumentStatusRule;
|
|
12102
|
+
this.taxableBaseStatusRule = taxableBaseStatusRule;
|
|
12103
|
+
this.taxRateStatusRule = taxRateStatusRule;
|
|
11422
12104
|
this.strategies = {
|
|
11423
12105
|
Adjustment: (_a = {},
|
|
11424
12106
|
_a[exports.EnumTipoTributo.CBS] = [
|
|
@@ -11437,6 +12119,16 @@
|
|
|
11437
12119
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11438
12120
|
}
|
|
11439
12121
|
],
|
|
12122
|
+
_a[exports.EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
12123
|
+
{
|
|
12124
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
12125
|
+
rule: this.taxableBaseStatusRule
|
|
12126
|
+
},
|
|
12127
|
+
{
|
|
12128
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
12129
|
+
rule: this.taxRateStatusRule
|
|
12130
|
+
}
|
|
12131
|
+
],
|
|
11440
12132
|
_a[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
11441
12133
|
{
|
|
11442
12134
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11453,6 +12145,16 @@
|
|
|
11453
12145
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11454
12146
|
}
|
|
11455
12147
|
],
|
|
12148
|
+
_a[exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
12149
|
+
{
|
|
12150
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
12151
|
+
rule: this.taxableBaseStatusRule
|
|
12152
|
+
},
|
|
12153
|
+
{
|
|
12154
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
12155
|
+
rule: this.taxRateStatusRule
|
|
12156
|
+
}
|
|
12157
|
+
],
|
|
11456
12158
|
_a[exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
|
|
11457
12159
|
{
|
|
11458
12160
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11469,6 +12171,16 @@
|
|
|
11469
12171
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11470
12172
|
}
|
|
11471
12173
|
],
|
|
12174
|
+
_a[exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
12175
|
+
{
|
|
12176
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
12177
|
+
rule: this.taxableBaseStatusRule
|
|
12178
|
+
},
|
|
12179
|
+
{
|
|
12180
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
12181
|
+
rule: this.taxRateStatusRule
|
|
12182
|
+
}
|
|
12183
|
+
],
|
|
11472
12184
|
_a[exports.EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR] = [
|
|
11473
12185
|
{
|
|
11474
12186
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11512,6 +12224,16 @@
|
|
|
11512
12224
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11513
12225
|
}
|
|
11514
12226
|
],
|
|
12227
|
+
_b[exports.EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
12228
|
+
{
|
|
12229
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
12230
|
+
rule: this.taxableBaseStatusRule
|
|
12231
|
+
},
|
|
12232
|
+
{
|
|
12233
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
12234
|
+
rule: this.taxRateStatusRule
|
|
12235
|
+
}
|
|
12236
|
+
],
|
|
11515
12237
|
_b[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
11516
12238
|
{
|
|
11517
12239
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11528,6 +12250,16 @@
|
|
|
11528
12250
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11529
12251
|
}
|
|
11530
12252
|
],
|
|
12253
|
+
_b[exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
12254
|
+
{
|
|
12255
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
12256
|
+
rule: this.taxableBaseStatusRule
|
|
12257
|
+
},
|
|
12258
|
+
{
|
|
12259
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
12260
|
+
rule: this.taxRateStatusRule
|
|
12261
|
+
}
|
|
12262
|
+
],
|
|
11531
12263
|
_b[exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
|
|
11532
12264
|
{
|
|
11533
12265
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11544,6 +12276,16 @@
|
|
|
11544
12276
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11545
12277
|
}
|
|
11546
12278
|
],
|
|
12279
|
+
_b[exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
12280
|
+
{
|
|
12281
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
12282
|
+
rule: this.taxableBaseStatusRule
|
|
12283
|
+
},
|
|
12284
|
+
{
|
|
12285
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
12286
|
+
rule: this.taxRateStatusRule
|
|
12287
|
+
}
|
|
12288
|
+
],
|
|
11547
12289
|
_b[exports.EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR] = [
|
|
11548
12290
|
{
|
|
11549
12291
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11587,6 +12329,16 @@
|
|
|
11587
12329
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11588
12330
|
}
|
|
11589
12331
|
],
|
|
12332
|
+
_c[exports.EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
12333
|
+
{
|
|
12334
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
12335
|
+
rule: this.taxableBaseStatusRule
|
|
12336
|
+
},
|
|
12337
|
+
{
|
|
12338
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
12339
|
+
rule: this.taxRateStatusRule
|
|
12340
|
+
}
|
|
12341
|
+
],
|
|
11590
12342
|
_c[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
11591
12343
|
{
|
|
11592
12344
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11603,6 +12355,16 @@
|
|
|
11603
12355
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11604
12356
|
}
|
|
11605
12357
|
],
|
|
12358
|
+
_c[exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
12359
|
+
{
|
|
12360
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
12361
|
+
rule: this.taxableBaseStatusRule
|
|
12362
|
+
},
|
|
12363
|
+
{
|
|
12364
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
12365
|
+
rule: this.taxRateStatusRule
|
|
12366
|
+
}
|
|
12367
|
+
],
|
|
11606
12368
|
_c[exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
|
|
11607
12369
|
{
|
|
11608
12370
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11619,6 +12381,16 @@
|
|
|
11619
12381
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11620
12382
|
}
|
|
11621
12383
|
],
|
|
12384
|
+
_c[exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
12385
|
+
{
|
|
12386
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
12387
|
+
rule: this.taxableBaseStatusRule
|
|
12388
|
+
},
|
|
12389
|
+
{
|
|
12390
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
12391
|
+
rule: this.taxRateStatusRule
|
|
12392
|
+
}
|
|
12393
|
+
],
|
|
11622
12394
|
_c[exports.EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR] = [
|
|
11623
12395
|
{
|
|
11624
12396
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11662,6 +12434,16 @@
|
|
|
11662
12434
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11663
12435
|
}
|
|
11664
12436
|
],
|
|
12437
|
+
_d[exports.EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
12438
|
+
{
|
|
12439
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
12440
|
+
rule: this.taxableBaseStatusRule
|
|
12441
|
+
},
|
|
12442
|
+
{
|
|
12443
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
12444
|
+
rule: this.taxRateStatusRule
|
|
12445
|
+
}
|
|
12446
|
+
],
|
|
11665
12447
|
_d[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
11666
12448
|
{
|
|
11667
12449
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11678,6 +12460,16 @@
|
|
|
11678
12460
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11679
12461
|
}
|
|
11680
12462
|
],
|
|
12463
|
+
_d[exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
12464
|
+
{
|
|
12465
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
12466
|
+
rule: this.taxableBaseStatusRule
|
|
12467
|
+
},
|
|
12468
|
+
{
|
|
12469
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
12470
|
+
rule: this.taxRateStatusRule
|
|
12471
|
+
}
|
|
12472
|
+
],
|
|
11681
12473
|
_d[exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
|
|
11682
12474
|
{
|
|
11683
12475
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11694,6 +12486,16 @@
|
|
|
11694
12486
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11695
12487
|
}
|
|
11696
12488
|
],
|
|
12489
|
+
_d[exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
12490
|
+
{
|
|
12491
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
12492
|
+
rule: this.taxableBaseStatusRule
|
|
12493
|
+
},
|
|
12494
|
+
{
|
|
12495
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
12496
|
+
rule: this.taxRateStatusRule
|
|
12497
|
+
}
|
|
12498
|
+
],
|
|
11697
12499
|
_d[exports.EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR] = [
|
|
11698
12500
|
{
|
|
11699
12501
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11737,6 +12539,16 @@
|
|
|
11737
12539
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11738
12540
|
}
|
|
11739
12541
|
],
|
|
12542
|
+
_e[exports.EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
12543
|
+
{
|
|
12544
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
12545
|
+
rule: this.taxableBaseStatusRule
|
|
12546
|
+
},
|
|
12547
|
+
{
|
|
12548
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
12549
|
+
rule: this.taxRateStatusRule
|
|
12550
|
+
}
|
|
12551
|
+
],
|
|
11740
12552
|
_e[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
11741
12553
|
{
|
|
11742
12554
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11753,6 +12565,16 @@
|
|
|
11753
12565
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11754
12566
|
}
|
|
11755
12567
|
],
|
|
12568
|
+
_e[exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
12569
|
+
{
|
|
12570
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
12571
|
+
rule: this.taxableBaseStatusRule
|
|
12572
|
+
},
|
|
12573
|
+
{
|
|
12574
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
12575
|
+
rule: this.taxRateStatusRule
|
|
12576
|
+
}
|
|
12577
|
+
],
|
|
11756
12578
|
_e[exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
|
|
11757
12579
|
{
|
|
11758
12580
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11769,6 +12591,16 @@
|
|
|
11769
12591
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11770
12592
|
}
|
|
11771
12593
|
],
|
|
12594
|
+
_e[exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
12595
|
+
{
|
|
12596
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
12597
|
+
rule: this.taxableBaseStatusRule
|
|
12598
|
+
},
|
|
12599
|
+
{
|
|
12600
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
12601
|
+
rule: this.taxRateStatusRule
|
|
12602
|
+
}
|
|
12603
|
+
],
|
|
11772
12604
|
_e[exports.EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR] = [
|
|
11773
12605
|
{
|
|
11774
12606
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11812,6 +12644,16 @@
|
|
|
11812
12644
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11813
12645
|
}
|
|
11814
12646
|
],
|
|
12647
|
+
_f[exports.EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
12648
|
+
{
|
|
12649
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
12650
|
+
rule: this.taxableBaseStatusRule
|
|
12651
|
+
},
|
|
12652
|
+
{
|
|
12653
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
12654
|
+
rule: this.taxRateStatusRule
|
|
12655
|
+
}
|
|
12656
|
+
],
|
|
11815
12657
|
_f[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
11816
12658
|
{
|
|
11817
12659
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11828,6 +12670,16 @@
|
|
|
11828
12670
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11829
12671
|
}
|
|
11830
12672
|
],
|
|
12673
|
+
_f[exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
12674
|
+
{
|
|
12675
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
12676
|
+
rule: this.taxableBaseStatusRule
|
|
12677
|
+
},
|
|
12678
|
+
{
|
|
12679
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
12680
|
+
rule: this.taxRateStatusRule
|
|
12681
|
+
}
|
|
12682
|
+
],
|
|
11831
12683
|
_f[exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
|
|
11832
12684
|
{
|
|
11833
12685
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11844,6 +12696,16 @@
|
|
|
11844
12696
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11845
12697
|
}
|
|
11846
12698
|
],
|
|
12699
|
+
_f[exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
12700
|
+
{
|
|
12701
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
12702
|
+
rule: this.taxableBaseStatusRule
|
|
12703
|
+
},
|
|
12704
|
+
{
|
|
12705
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
12706
|
+
rule: this.taxRateStatusRule
|
|
12707
|
+
}
|
|
12708
|
+
],
|
|
11847
12709
|
_f[exports.EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR] = [
|
|
11848
12710
|
{
|
|
11849
12711
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11875,6 +12737,16 @@
|
|
|
11875
12737
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11876
12738
|
}
|
|
11877
12739
|
],
|
|
12740
|
+
_g[exports.EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
12741
|
+
{
|
|
12742
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
12743
|
+
rule: this.taxableBaseStatusRule
|
|
12744
|
+
},
|
|
12745
|
+
{
|
|
12746
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
12747
|
+
rule: this.taxRateStatusRule
|
|
12748
|
+
}
|
|
12749
|
+
],
|
|
11878
12750
|
_g[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
11879
12751
|
{
|
|
11880
12752
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11891,6 +12763,16 @@
|
|
|
11891
12763
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11892
12764
|
}
|
|
11893
12765
|
],
|
|
12766
|
+
_g[exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
12767
|
+
{
|
|
12768
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
12769
|
+
rule: this.taxableBaseStatusRule
|
|
12770
|
+
},
|
|
12771
|
+
{
|
|
12772
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
12773
|
+
rule: this.taxRateStatusRule
|
|
12774
|
+
}
|
|
12775
|
+
],
|
|
11894
12776
|
_g[exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
|
|
11895
12777
|
{
|
|
11896
12778
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11907,6 +12789,16 @@
|
|
|
11907
12789
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11908
12790
|
}
|
|
11909
12791
|
],
|
|
12792
|
+
_g[exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
12793
|
+
{
|
|
12794
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
12795
|
+
rule: this.taxableBaseStatusRule
|
|
12796
|
+
},
|
|
12797
|
+
{
|
|
12798
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
12799
|
+
rule: this.taxRateStatusRule
|
|
12800
|
+
}
|
|
12801
|
+
],
|
|
11910
12802
|
_g[exports.EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR] = [
|
|
11911
12803
|
{
|
|
11912
12804
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11950,6 +12842,16 @@
|
|
|
11950
12842
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11951
12843
|
}
|
|
11952
12844
|
],
|
|
12845
|
+
_h[exports.EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
12846
|
+
{
|
|
12847
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
12848
|
+
rule: this.taxableBaseStatusRule
|
|
12849
|
+
},
|
|
12850
|
+
{
|
|
12851
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
12852
|
+
rule: this.taxRateStatusRule
|
|
12853
|
+
}
|
|
12854
|
+
],
|
|
11953
12855
|
_h[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
11954
12856
|
{
|
|
11955
12857
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11966,6 +12868,16 @@
|
|
|
11966
12868
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11967
12869
|
}
|
|
11968
12870
|
],
|
|
12871
|
+
_h[exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
12872
|
+
{
|
|
12873
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
12874
|
+
rule: this.taxableBaseStatusRule
|
|
12875
|
+
},
|
|
12876
|
+
{
|
|
12877
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
12878
|
+
rule: this.taxRateStatusRule
|
|
12879
|
+
}
|
|
12880
|
+
],
|
|
11969
12881
|
_h[exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
|
|
11970
12882
|
{
|
|
11971
12883
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -11982,6 +12894,16 @@
|
|
|
11982
12894
|
rule: this.applyNetValueToDocumentStatusRule
|
|
11983
12895
|
}
|
|
11984
12896
|
],
|
|
12897
|
+
_h[exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
12898
|
+
{
|
|
12899
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
12900
|
+
rule: this.taxableBaseStatusRule
|
|
12901
|
+
},
|
|
12902
|
+
{
|
|
12903
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
12904
|
+
rule: this.taxRateStatusRule
|
|
12905
|
+
}
|
|
12906
|
+
],
|
|
11985
12907
|
_h[exports.EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR] = [
|
|
11986
12908
|
{
|
|
11987
12909
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -12025,6 +12947,16 @@
|
|
|
12025
12947
|
rule: this.applyNetValueToDocumentStatusRule
|
|
12026
12948
|
}
|
|
12027
12949
|
],
|
|
12950
|
+
_j[exports.EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
12951
|
+
{
|
|
12952
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
12953
|
+
rule: this.taxableBaseStatusRule
|
|
12954
|
+
},
|
|
12955
|
+
{
|
|
12956
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
12957
|
+
rule: this.taxRateStatusRule
|
|
12958
|
+
}
|
|
12959
|
+
],
|
|
12028
12960
|
_j[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
12029
12961
|
{
|
|
12030
12962
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -12041,6 +12973,16 @@
|
|
|
12041
12973
|
rule: this.applyNetValueToDocumentStatusRule
|
|
12042
12974
|
}
|
|
12043
12975
|
],
|
|
12976
|
+
_j[exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
12977
|
+
{
|
|
12978
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
12979
|
+
rule: this.taxableBaseStatusRule
|
|
12980
|
+
},
|
|
12981
|
+
{
|
|
12982
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
12983
|
+
rule: this.taxRateStatusRule
|
|
12984
|
+
}
|
|
12985
|
+
],
|
|
12044
12986
|
_j[exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
|
|
12045
12987
|
{
|
|
12046
12988
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -12057,6 +12999,16 @@
|
|
|
12057
12999
|
rule: this.applyNetValueToDocumentStatusRule
|
|
12058
13000
|
}
|
|
12059
13001
|
],
|
|
13002
|
+
_j[exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
13003
|
+
{
|
|
13004
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
13005
|
+
rule: this.taxableBaseStatusRule
|
|
13006
|
+
},
|
|
13007
|
+
{
|
|
13008
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
13009
|
+
rule: this.taxRateStatusRule
|
|
13010
|
+
}
|
|
13011
|
+
],
|
|
12060
13012
|
_j[exports.EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR] = [
|
|
12061
13013
|
{
|
|
12062
13014
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -12100,6 +13052,16 @@
|
|
|
12100
13052
|
rule: this.applyNetValueToDocumentStatusRule
|
|
12101
13053
|
}
|
|
12102
13054
|
],
|
|
13055
|
+
_k[exports.EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
13056
|
+
{
|
|
13057
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
13058
|
+
rule: this.taxableBaseStatusRule
|
|
13059
|
+
},
|
|
13060
|
+
{
|
|
13061
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
13062
|
+
rule: this.taxRateStatusRule
|
|
13063
|
+
}
|
|
13064
|
+
],
|
|
12103
13065
|
_k[exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR] = [
|
|
12104
13066
|
{
|
|
12105
13067
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -12116,6 +13078,16 @@
|
|
|
12116
13078
|
rule: this.applyNetValueToDocumentStatusRule
|
|
12117
13079
|
}
|
|
12118
13080
|
],
|
|
13081
|
+
_k[exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
13082
|
+
{
|
|
13083
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
13084
|
+
rule: this.taxableBaseStatusRule
|
|
13085
|
+
},
|
|
13086
|
+
{
|
|
13087
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
13088
|
+
rule: this.taxRateStatusRule
|
|
13089
|
+
}
|
|
13090
|
+
],
|
|
12119
13091
|
_k[exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR] = [
|
|
12120
13092
|
{
|
|
12121
13093
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -12132,6 +13104,16 @@
|
|
|
12132
13104
|
rule: this.applyNetValueToDocumentStatusRule
|
|
12133
13105
|
}
|
|
12134
13106
|
],
|
|
13107
|
+
_k[exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
13108
|
+
{
|
|
13109
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
13110
|
+
rule: this.taxableBaseStatusRule
|
|
13111
|
+
},
|
|
13112
|
+
{
|
|
13113
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
13114
|
+
rule: this.taxRateStatusRule
|
|
13115
|
+
}
|
|
13116
|
+
],
|
|
12135
13117
|
_k[exports.EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR] = [
|
|
12136
13118
|
{
|
|
12137
13119
|
field: exports.EnumCampoTributo.ClassificacaoTributaria,
|
|
@@ -12166,9 +13148,11 @@
|
|
|
12166
13148
|
};
|
|
12167
13149
|
IncomingInvoiceStatusRulesRegistry.ctorParameters = function () { return [
|
|
12168
13150
|
{ type: TaxClassificationStatusRule },
|
|
12169
|
-
{ type: ApplyNetValueToDocumentStatusRule }
|
|
13151
|
+
{ type: ApplyNetValueToDocumentStatusRule },
|
|
13152
|
+
{ type: TaxableBaseStatusRule },
|
|
13153
|
+
{ type: TaxRateStatusRule }
|
|
12170
13154
|
]; };
|
|
12171
|
-
IncomingInvoiceStatusRulesRegistry.ɵprov = core.ɵɵdefineInjectable({ factory: function IncomingInvoiceStatusRulesRegistry_Factory() { return new IncomingInvoiceStatusRulesRegistry(core.ɵɵinject(TaxClassificationStatusRule), core.ɵɵinject(ApplyNetValueToDocumentStatusRule)); }, token: IncomingInvoiceStatusRulesRegistry, providedIn: "root" });
|
|
13155
|
+
IncomingInvoiceStatusRulesRegistry.ɵprov = core.ɵɵdefineInjectable({ factory: function IncomingInvoiceStatusRulesRegistry_Factory() { return new IncomingInvoiceStatusRulesRegistry(core.ɵɵinject(TaxClassificationStatusRule), core.ɵɵinject(ApplyNetValueToDocumentStatusRule), core.ɵɵinject(TaxableBaseStatusRule), core.ɵɵinject(TaxRateStatusRule)); }, token: IncomingInvoiceStatusRulesRegistry, providedIn: "root" });
|
|
12172
13156
|
IncomingInvoiceStatusRulesRegistry = __decorate([
|
|
12173
13157
|
core.Injectable({ providedIn: 'root' })
|
|
12174
13158
|
], IncomingInvoiceStatusRulesRegistry);
|
|
@@ -13486,14 +14470,54 @@
|
|
|
13486
14470
|
}());
|
|
13487
14471
|
|
|
13488
14472
|
var PurchaseOrderStatusRulesRegistry = /** @class */ (function () {
|
|
13489
|
-
function PurchaseOrderStatusRulesRegistry() {
|
|
13490
|
-
|
|
14473
|
+
function PurchaseOrderStatusRulesRegistry(taxableBaseStatusRule, taxRateStatusRule) {
|
|
14474
|
+
var _a;
|
|
14475
|
+
this.taxableBaseStatusRule = taxableBaseStatusRule;
|
|
14476
|
+
this.taxRateStatusRule = taxRateStatusRule;
|
|
14477
|
+
this.strategies = {
|
|
14478
|
+
'Purchase Order': (_a = {},
|
|
14479
|
+
_a[exports.EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
14480
|
+
{
|
|
14481
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
14482
|
+
rule: this.taxableBaseStatusRule
|
|
14483
|
+
},
|
|
14484
|
+
{
|
|
14485
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
14486
|
+
rule: this.taxRateStatusRule
|
|
14487
|
+
}
|
|
14488
|
+
],
|
|
14489
|
+
_a[exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
14490
|
+
{
|
|
14491
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
14492
|
+
rule: this.taxableBaseStatusRule
|
|
14493
|
+
},
|
|
14494
|
+
{
|
|
14495
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
14496
|
+
rule: this.taxRateStatusRule
|
|
14497
|
+
}
|
|
14498
|
+
],
|
|
14499
|
+
_a[exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
14500
|
+
{
|
|
14501
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
14502
|
+
rule: this.taxableBaseStatusRule
|
|
14503
|
+
},
|
|
14504
|
+
{
|
|
14505
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
14506
|
+
rule: this.taxRateStatusRule
|
|
14507
|
+
}
|
|
14508
|
+
],
|
|
14509
|
+
_a)
|
|
14510
|
+
};
|
|
13491
14511
|
}
|
|
13492
14512
|
PurchaseOrderStatusRulesRegistry.prototype.get = function (type, taxType) {
|
|
13493
14513
|
var _a, _b;
|
|
13494
14514
|
return ((_b = (_a = this.strategies[type]) === null || _a === void 0 ? void 0 : _a[taxType]) !== null && _b !== void 0 ? _b : []);
|
|
13495
14515
|
};
|
|
13496
|
-
PurchaseOrderStatusRulesRegistry
|
|
14516
|
+
PurchaseOrderStatusRulesRegistry.ctorParameters = function () { return [
|
|
14517
|
+
{ type: TaxableBaseStatusRule },
|
|
14518
|
+
{ type: TaxRateStatusRule }
|
|
14519
|
+
]; };
|
|
14520
|
+
PurchaseOrderStatusRulesRegistry.ɵprov = core.ɵɵdefineInjectable({ factory: function PurchaseOrderStatusRulesRegistry_Factory() { return new PurchaseOrderStatusRulesRegistry(core.ɵɵinject(TaxableBaseStatusRule), core.ɵɵinject(TaxRateStatusRule)); }, token: PurchaseOrderStatusRulesRegistry, providedIn: "root" });
|
|
13497
14521
|
PurchaseOrderStatusRulesRegistry = __decorate([
|
|
13498
14522
|
core.Injectable({ providedIn: 'root' })
|
|
13499
14523
|
], PurchaseOrderStatusRulesRegistry);
|
|
@@ -13648,8 +14672,7 @@
|
|
|
13648
14672
|
.valueChanges.pipe(operators.startWith(formGroup.get('aliquota').value), operators.distinctUntilChanged()),
|
|
13649
14673
|
formGroup
|
|
13650
14674
|
.get('aliquotaEfetiva')
|
|
13651
|
-
.valueChanges.pipe(operators.startWith(formGroup.get('aliquotaEfetiva')
|
|
13652
|
-
.value), operators.distinctUntilChanged()),
|
|
14675
|
+
.valueChanges.pipe(operators.startWith(formGroup.get('aliquotaEfetiva').value), operators.distinctUntilChanged()),
|
|
13653
14676
|
formGroup
|
|
13654
14677
|
.get('situacaoTributaria')
|
|
13655
14678
|
.valueChanges.pipe(operators.startWith(formGroup.get('situacaoTributaria').value), operators.distinctUntilChanged()),
|
|
@@ -13730,8 +14753,7 @@
|
|
|
13730
14753
|
.valueChanges.pipe(operators.startWith(formGroup.get('aliquota').value), operators.distinctUntilChanged()),
|
|
13731
14754
|
formGroup
|
|
13732
14755
|
.get('aliquotaEfetiva')
|
|
13733
|
-
.valueChanges.pipe(operators.startWith(formGroup.get('aliquotaEfetiva')
|
|
13734
|
-
.value), operators.distinctUntilChanged()),
|
|
14756
|
+
.valueChanges.pipe(operators.startWith(formGroup.get('aliquotaEfetiva').value), operators.distinctUntilChanged()),
|
|
13735
14757
|
formGroup
|
|
13736
14758
|
.get('valor')
|
|
13737
14759
|
.valueChanges.pipe(operators.startWith(formGroup.get('valor').value), operators.distinctUntilChanged()),
|
|
@@ -13803,8 +14825,7 @@
|
|
|
13803
14825
|
.valueChanges.pipe(operators.startWith(formGroup.get('aliquota').value), operators.distinctUntilChanged()),
|
|
13804
14826
|
formGroup
|
|
13805
14827
|
.get('aliquotaEfetiva')
|
|
13806
|
-
.valueChanges.pipe(operators.startWith(formGroup.get('aliquotaEfetiva')
|
|
13807
|
-
.value), operators.distinctUntilChanged()),
|
|
14828
|
+
.valueChanges.pipe(operators.startWith(formGroup.get('aliquotaEfetiva').value), operators.distinctUntilChanged()),
|
|
13808
14829
|
formGroup
|
|
13809
14830
|
.get('situacaoTributaria')
|
|
13810
14831
|
.valueChanges.pipe(operators.startWith(formGroup.get('situacaoTributaria').value), operators.distinctUntilChanged()),
|
|
@@ -13880,8 +14901,7 @@
|
|
|
13880
14901
|
.valueChanges.pipe(operators.startWith(formGroup.get('aliquota').value), operators.distinctUntilChanged()),
|
|
13881
14902
|
formGroup
|
|
13882
14903
|
.get('aliquotaEfetiva')
|
|
13883
|
-
.valueChanges.pipe(operators.startWith(formGroup.get('aliquotaEfetiva')
|
|
13884
|
-
.value), operators.distinctUntilChanged()),
|
|
14904
|
+
.valueChanges.pipe(operators.startWith(formGroup.get('aliquotaEfetiva').value), operators.distinctUntilChanged()),
|
|
13885
14905
|
formGroup
|
|
13886
14906
|
.get('valor')
|
|
13887
14907
|
.valueChanges.pipe(operators.startWith(formGroup.get('valor').value), operators.distinctUntilChanged()),
|
|
@@ -13953,8 +14973,7 @@
|
|
|
13953
14973
|
.valueChanges.pipe(operators.startWith(formGroup.get('aliquota').value), operators.distinctUntilChanged()),
|
|
13954
14974
|
formGroup
|
|
13955
14975
|
.get('aliquotaEfetiva')
|
|
13956
|
-
.valueChanges.pipe(operators.startWith(formGroup.get('aliquotaEfetiva')
|
|
13957
|
-
.value), operators.distinctUntilChanged()),
|
|
14976
|
+
.valueChanges.pipe(operators.startWith(formGroup.get('aliquotaEfetiva').value), operators.distinctUntilChanged()),
|
|
13958
14977
|
formGroup
|
|
13959
14978
|
.get('situacaoTributaria')
|
|
13960
14979
|
.valueChanges.pipe(operators.startWith(formGroup.get('situacaoTributaria').value), operators.distinctUntilChanged()),
|
|
@@ -14030,8 +15049,7 @@
|
|
|
14030
15049
|
.valueChanges.pipe(operators.startWith(formGroup.get('aliquota').value), operators.distinctUntilChanged()),
|
|
14031
15050
|
formGroup
|
|
14032
15051
|
.get('aliquotaEfetiva')
|
|
14033
|
-
.valueChanges.pipe(operators.startWith(formGroup.get('aliquotaEfetiva')
|
|
14034
|
-
.value), operators.distinctUntilChanged()),
|
|
15052
|
+
.valueChanges.pipe(operators.startWith(formGroup.get('aliquotaEfetiva').value), operators.distinctUntilChanged()),
|
|
14035
15053
|
formGroup
|
|
14036
15054
|
.get('valor')
|
|
14037
15055
|
.valueChanges.pipe(operators.startWith(formGroup.get('valor').value), operators.distinctUntilChanged()),
|
|
@@ -14083,6 +15101,72 @@
|
|
|
14083
15101
|
}
|
|
14084
15102
|
}
|
|
14085
15103
|
break;
|
|
15104
|
+
case exports.EnumTipoTributo.CBS_A_APROPRIAR:
|
|
15105
|
+
case exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR:
|
|
15106
|
+
case exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR:
|
|
15107
|
+
{
|
|
15108
|
+
switch (document) {
|
|
15109
|
+
case 'Incoming Invoice':
|
|
15110
|
+
case 'Purchase Order':
|
|
15111
|
+
{
|
|
15112
|
+
var baseTaxFormGroup = getBaseTaxItemFromGroup({ group: group }).formGroup;
|
|
15113
|
+
rxjs.combineLatest([
|
|
15114
|
+
baseTaxFormGroup
|
|
15115
|
+
.get('baseCalculo')
|
|
15116
|
+
.valueChanges.pipe(operators.startWith(baseTaxFormGroup.get('baseCalculo').value), operators.distinctUntilChanged()),
|
|
15117
|
+
formGroup
|
|
15118
|
+
.get('baseCalculo')
|
|
15119
|
+
.valueChanges.pipe(operators.startWith(formGroup.get('baseCalculo')
|
|
15120
|
+
.value), operators.distinctUntilChanged()),
|
|
15121
|
+
formGroup
|
|
15122
|
+
.get('aliquota')
|
|
15123
|
+
.valueChanges.pipe(operators.startWith(formGroup.get('aliquota').value), operators.distinctUntilChanged()),
|
|
15124
|
+
formGroup
|
|
15125
|
+
.get('valor')
|
|
15126
|
+
.valueChanges.pipe(operators.startWith(formGroup.get('valor').value), operators.distinctUntilChanged())
|
|
15127
|
+
])
|
|
15128
|
+
.pipe(operators.map(function (_a) {
|
|
15129
|
+
var _b = __read(_a, 4), baseTaxTaxableBase = _b[0], taxableBase = _b[1], taxRate = _b[2], taxAmount = _b[3];
|
|
15130
|
+
return [
|
|
15131
|
+
new BigNumber(baseTaxTaxableBase),
|
|
15132
|
+
new BigNumber(taxableBase),
|
|
15133
|
+
new BigNumber(taxRate),
|
|
15134
|
+
new BigNumber(taxAmount)
|
|
15135
|
+
];
|
|
15136
|
+
}))
|
|
15137
|
+
.subscribe(function (_a) {
|
|
15138
|
+
var _b = __read(_a, 4), baseTaxTaxableBase = _b[0], taxableBase = _b[1], taxRate = _b[2], taxAmount = _b[3];
|
|
15139
|
+
var validators = [];
|
|
15140
|
+
if (baseTaxTaxableBase.isFinite() ||
|
|
15141
|
+
taxableBase.isFinite() ||
|
|
15142
|
+
taxRate.isFinite() ||
|
|
15143
|
+
taxAmount.isFinite()) {
|
|
15144
|
+
validators = [
|
|
15145
|
+
forms.Validators.max(9999999999999.99),
|
|
15146
|
+
forms.Validators.required
|
|
15147
|
+
];
|
|
15148
|
+
}
|
|
15149
|
+
else {
|
|
15150
|
+
validators = [
|
|
15151
|
+
forms.Validators.max(9999999999999.99)
|
|
15152
|
+
];
|
|
15153
|
+
}
|
|
15154
|
+
formGroup
|
|
15155
|
+
.get('valor')
|
|
15156
|
+
.setValidators(validators);
|
|
15157
|
+
formGroup
|
|
15158
|
+
.get('valor')
|
|
15159
|
+
.updateValueAndValidity({
|
|
15160
|
+
emitEvent: false
|
|
15161
|
+
});
|
|
15162
|
+
});
|
|
15163
|
+
}
|
|
15164
|
+
break;
|
|
15165
|
+
default:
|
|
15166
|
+
throw new Error("Regra TaxAmountRequiredValidationRule n\u00E3o implementada para o imposto " + taxType + ", documento " + document + ".");
|
|
15167
|
+
}
|
|
15168
|
+
}
|
|
15169
|
+
break;
|
|
14086
15170
|
case exports.EnumTipoTributo.CBS_DIFERIDO:
|
|
14087
15171
|
case exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO:
|
|
14088
15172
|
case exports.EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO:
|
|
@@ -15198,7 +16282,110 @@
|
|
|
15198
16282
|
}
|
|
15199
16283
|
}
|
|
15200
16284
|
break;
|
|
15201
|
-
case exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO:
|
|
16285
|
+
case exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO:
|
|
16286
|
+
{
|
|
16287
|
+
switch (document) {
|
|
16288
|
+
case 'Incoming Invoice':
|
|
16289
|
+
case 'Outgoing Invoice':
|
|
16290
|
+
{
|
|
16291
|
+
rxjs.combineLatest([
|
|
16292
|
+
formGroup
|
|
16293
|
+
.get('baseCalculo')
|
|
16294
|
+
.valueChanges.pipe(operators.startWith(formGroup.get('baseCalculo')
|
|
16295
|
+
.value), operators.distinctUntilChanged()),
|
|
16296
|
+
formGroup
|
|
16297
|
+
.get('aliquota')
|
|
16298
|
+
.valueChanges.pipe(operators.startWith(formGroup.get('aliquota').value), operators.distinctUntilChanged()),
|
|
16299
|
+
formGroup
|
|
16300
|
+
.get('classificacaoTributaria')
|
|
16301
|
+
.valueChanges.pipe(operators.startWith(formGroup.get('classificacaoTributaria').value), operators.distinctUntilChanged())
|
|
16302
|
+
])
|
|
16303
|
+
.pipe(operators.map(function (_a) {
|
|
16304
|
+
var _b = __read(_a, 3), taxableBase = _b[0], taxRate = _b[1], taxClassication = _b[2];
|
|
16305
|
+
return [
|
|
16306
|
+
new BigNumber(taxableBase),
|
|
16307
|
+
new BigNumber(taxRate),
|
|
16308
|
+
taxClassication
|
|
16309
|
+
];
|
|
16310
|
+
}))
|
|
16311
|
+
.subscribe(function (_a) {
|
|
16312
|
+
var _b = __read(_a, 3), taxableBase = _b[0], taxRate = _b[1], taxClassication = _b[2];
|
|
16313
|
+
var validators = [];
|
|
16314
|
+
if (taxableBase.isFinite() ||
|
|
16315
|
+
taxRate.isFinite() ||
|
|
16316
|
+
taxClassication) {
|
|
16317
|
+
validators = [
|
|
16318
|
+
forms.Validators.max(999.9999),
|
|
16319
|
+
forms.Validators.required
|
|
16320
|
+
];
|
|
16321
|
+
}
|
|
16322
|
+
else {
|
|
16323
|
+
validators = [
|
|
16324
|
+
forms.Validators.max(999.9999)
|
|
16325
|
+
];
|
|
16326
|
+
}
|
|
16327
|
+
formGroup
|
|
16328
|
+
.get('aliquota')
|
|
16329
|
+
.setValidators(validators);
|
|
16330
|
+
formGroup
|
|
16331
|
+
.get('aliquota')
|
|
16332
|
+
.updateValueAndValidity({
|
|
16333
|
+
emitEvent: false
|
|
16334
|
+
});
|
|
16335
|
+
});
|
|
16336
|
+
}
|
|
16337
|
+
break;
|
|
16338
|
+
case 'Purchase Order':
|
|
16339
|
+
case 'Sale Order':
|
|
16340
|
+
{
|
|
16341
|
+
rxjs.combineLatest([
|
|
16342
|
+
formGroup
|
|
16343
|
+
.get('baseCalculo')
|
|
16344
|
+
.valueChanges.pipe(operators.startWith(formGroup.get('baseCalculo')
|
|
16345
|
+
.value), operators.distinctUntilChanged()),
|
|
16346
|
+
formGroup
|
|
16347
|
+
.get('aliquota')
|
|
16348
|
+
.valueChanges.pipe(operators.startWith(formGroup.get('aliquota').value), operators.distinctUntilChanged())
|
|
16349
|
+
])
|
|
16350
|
+
.pipe(operators.map(function (_a) {
|
|
16351
|
+
var _b = __read(_a, 2), taxableBase = _b[0], taxRate = _b[1];
|
|
16352
|
+
return [
|
|
16353
|
+
new BigNumber(taxableBase),
|
|
16354
|
+
new BigNumber(taxRate)
|
|
16355
|
+
];
|
|
16356
|
+
}), operators.distinctUntilChanged())
|
|
16357
|
+
.subscribe(function (_a) {
|
|
16358
|
+
var _b = __read(_a, 2), taxableBase = _b[0], taxRate = _b[1];
|
|
16359
|
+
var validators = [];
|
|
16360
|
+
if (taxableBase.isFinite() ||
|
|
16361
|
+
taxRate.isFinite()) {
|
|
16362
|
+
validators = [
|
|
16363
|
+
forms.Validators.max(999.9999),
|
|
16364
|
+
forms.Validators.required
|
|
16365
|
+
];
|
|
16366
|
+
}
|
|
16367
|
+
else {
|
|
16368
|
+
validators = [
|
|
16369
|
+
forms.Validators.max(999.9999)
|
|
16370
|
+
];
|
|
16371
|
+
}
|
|
16372
|
+
formGroup
|
|
16373
|
+
.get('aliquota')
|
|
16374
|
+
.setValidators(validators);
|
|
16375
|
+
formGroup
|
|
16376
|
+
.get('aliquota')
|
|
16377
|
+
.updateValueAndValidity({
|
|
16378
|
+
emitEvent: false
|
|
16379
|
+
});
|
|
16380
|
+
});
|
|
16381
|
+
}
|
|
16382
|
+
break;
|
|
16383
|
+
default:
|
|
16384
|
+
throw new Error("Regra TaxRateRequiredValidationRule n\u00E3o implementada para o imposto " + taxType + ", documento " + document + ".");
|
|
16385
|
+
}
|
|
16386
|
+
}
|
|
16387
|
+
break;
|
|
16388
|
+
case exports.EnumTipoTributo.IBS_CREDITO_PRESUMIDO:
|
|
15202
16389
|
{
|
|
15203
16390
|
switch (document) {
|
|
15204
16391
|
case 'Incoming Invoice':
|
|
@@ -15301,7 +16488,9 @@
|
|
|
15301
16488
|
}
|
|
15302
16489
|
}
|
|
15303
16490
|
break;
|
|
15304
|
-
case exports.EnumTipoTributo.
|
|
16491
|
+
case exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR:
|
|
16492
|
+
case exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR:
|
|
16493
|
+
case exports.EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR:
|
|
15305
16494
|
{
|
|
15306
16495
|
switch (document) {
|
|
15307
16496
|
case 'Incoming Invoice':
|
|
@@ -15317,22 +16506,27 @@
|
|
|
15317
16506
|
.valueChanges.pipe(operators.startWith(formGroup.get('aliquota').value), operators.distinctUntilChanged()),
|
|
15318
16507
|
formGroup
|
|
15319
16508
|
.get('classificacaoTributaria')
|
|
15320
|
-
.valueChanges.pipe(operators.startWith(formGroup.get('classificacaoTributaria').value), operators.distinctUntilChanged())
|
|
16509
|
+
.valueChanges.pipe(operators.startWith(formGroup.get('classificacaoTributaria').value), operators.distinctUntilChanged()),
|
|
16510
|
+
formGroup
|
|
16511
|
+
.get('situacaoTributaria')
|
|
16512
|
+
.valueChanges.pipe(operators.startWith(formGroup.get('situacaoTributaria').value), operators.distinctUntilChanged())
|
|
15321
16513
|
])
|
|
15322
16514
|
.pipe(operators.map(function (_a) {
|
|
15323
|
-
var _b = __read(_a,
|
|
16515
|
+
var _b = __read(_a, 4), taxableBase = _b[0], taxRate = _b[1], taxClassication = _b[2], taxSituation = _b[3];
|
|
15324
16516
|
return [
|
|
15325
16517
|
new BigNumber(taxableBase),
|
|
15326
16518
|
new BigNumber(taxRate),
|
|
15327
|
-
taxClassication
|
|
16519
|
+
taxClassication,
|
|
16520
|
+
taxSituation
|
|
15328
16521
|
];
|
|
15329
16522
|
}))
|
|
15330
16523
|
.subscribe(function (_a) {
|
|
15331
|
-
var _b = __read(_a,
|
|
16524
|
+
var _b = __read(_a, 4), taxableBase = _b[0], taxRate = _b[1], taxClassication = _b[2], taxSituation = _b[3];
|
|
15332
16525
|
var validators = [];
|
|
15333
16526
|
if (taxableBase.isFinite() ||
|
|
15334
16527
|
taxRate.isFinite() ||
|
|
15335
|
-
taxClassication
|
|
16528
|
+
taxClassication ||
|
|
16529
|
+
taxSituation) {
|
|
15336
16530
|
validators = [
|
|
15337
16531
|
forms.Validators.max(999.9999),
|
|
15338
16532
|
forms.Validators.required
|
|
@@ -15372,7 +16566,7 @@
|
|
|
15372
16566
|
new BigNumber(taxableBase),
|
|
15373
16567
|
new BigNumber(taxRate)
|
|
15374
16568
|
];
|
|
15375
|
-
})
|
|
16569
|
+
}))
|
|
15376
16570
|
.subscribe(function (_a) {
|
|
15377
16571
|
var _b = __read(_a, 2), taxableBase = _b[0], taxRate = _b[1];
|
|
15378
16572
|
var validators = [];
|
|
@@ -15404,70 +16598,21 @@
|
|
|
15404
16598
|
}
|
|
15405
16599
|
}
|
|
15406
16600
|
break;
|
|
15407
|
-
case exports.EnumTipoTributo.
|
|
15408
|
-
case exports.EnumTipoTributo.
|
|
15409
|
-
case exports.EnumTipoTributo.
|
|
16601
|
+
case exports.EnumTipoTributo.CBS_GOVERNAMENTAL:
|
|
16602
|
+
case exports.EnumTipoTributo.IBS_ESTADUAL_GOVERNAMENTAL:
|
|
16603
|
+
case exports.EnumTipoTributo.IBS_MUNICIPAL_GOVERNAMENTAL:
|
|
15410
16604
|
{
|
|
15411
16605
|
switch (document) {
|
|
15412
16606
|
case 'Incoming Invoice':
|
|
15413
16607
|
case 'Outgoing Invoice':
|
|
15414
|
-
{
|
|
15415
|
-
rxjs.combineLatest([
|
|
15416
|
-
formGroup
|
|
15417
|
-
.get('baseCalculo')
|
|
15418
|
-
.valueChanges.pipe(operators.startWith(formGroup.get('baseCalculo')
|
|
15419
|
-
.value), operators.distinctUntilChanged()),
|
|
15420
|
-
formGroup
|
|
15421
|
-
.get('aliquota')
|
|
15422
|
-
.valueChanges.pipe(operators.startWith(formGroup.get('aliquota').value), operators.distinctUntilChanged()),
|
|
15423
|
-
formGroup
|
|
15424
|
-
.get('classificacaoTributaria')
|
|
15425
|
-
.valueChanges.pipe(operators.startWith(formGroup.get('classificacaoTributaria').value), operators.distinctUntilChanged()),
|
|
15426
|
-
formGroup
|
|
15427
|
-
.get('situacaoTributaria')
|
|
15428
|
-
.valueChanges.pipe(operators.startWith(formGroup.get('situacaoTributaria').value), operators.distinctUntilChanged())
|
|
15429
|
-
])
|
|
15430
|
-
.pipe(operators.map(function (_a) {
|
|
15431
|
-
var _b = __read(_a, 4), taxableBase = _b[0], taxRate = _b[1], taxClassication = _b[2], taxSituation = _b[3];
|
|
15432
|
-
return [
|
|
15433
|
-
new BigNumber(taxableBase),
|
|
15434
|
-
new BigNumber(taxRate),
|
|
15435
|
-
taxClassication,
|
|
15436
|
-
taxSituation
|
|
15437
|
-
];
|
|
15438
|
-
}))
|
|
15439
|
-
.subscribe(function (_a) {
|
|
15440
|
-
var _b = __read(_a, 4), taxableBase = _b[0], taxRate = _b[1], taxClassication = _b[2], taxSituation = _b[3];
|
|
15441
|
-
var validators = [];
|
|
15442
|
-
if (taxableBase.isFinite() ||
|
|
15443
|
-
taxRate.isFinite() ||
|
|
15444
|
-
taxClassication ||
|
|
15445
|
-
taxSituation) {
|
|
15446
|
-
validators = [
|
|
15447
|
-
forms.Validators.max(999.9999),
|
|
15448
|
-
forms.Validators.required
|
|
15449
|
-
];
|
|
15450
|
-
}
|
|
15451
|
-
else {
|
|
15452
|
-
validators = [
|
|
15453
|
-
forms.Validators.max(999.9999)
|
|
15454
|
-
];
|
|
15455
|
-
}
|
|
15456
|
-
formGroup
|
|
15457
|
-
.get('aliquota')
|
|
15458
|
-
.setValidators(validators);
|
|
15459
|
-
formGroup
|
|
15460
|
-
.get('aliquota')
|
|
15461
|
-
.updateValueAndValidity({
|
|
15462
|
-
emitEvent: false
|
|
15463
|
-
});
|
|
15464
|
-
});
|
|
15465
|
-
}
|
|
15466
|
-
break;
|
|
15467
16608
|
case 'Purchase Order':
|
|
15468
16609
|
case 'Sale Order':
|
|
15469
16610
|
{
|
|
16611
|
+
var baseTaxFormGroup = getBaseTaxItemFromGroup({ group: group }).formGroup;
|
|
15470
16612
|
rxjs.combineLatest([
|
|
16613
|
+
baseTaxFormGroup
|
|
16614
|
+
.get('reducaoAliquotaGovernamental')
|
|
16615
|
+
.valueChanges.pipe(operators.startWith(baseTaxFormGroup.get('reducaoAliquotaGovernamental').value), operators.distinctUntilChanged()),
|
|
15471
16616
|
formGroup
|
|
15472
16617
|
.get('baseCalculo')
|
|
15473
16618
|
.valueChanges.pipe(operators.startWith(formGroup.get('baseCalculo')
|
|
@@ -15477,16 +16622,18 @@
|
|
|
15477
16622
|
.valueChanges.pipe(operators.startWith(formGroup.get('aliquota').value), operators.distinctUntilChanged())
|
|
15478
16623
|
])
|
|
15479
16624
|
.pipe(operators.map(function (_a) {
|
|
15480
|
-
var _b = __read(_a,
|
|
16625
|
+
var _b = __read(_a, 3), governamentalTaxRateReduction = _b[0], taxableBase = _b[1], taxRate = _b[2];
|
|
15481
16626
|
return [
|
|
16627
|
+
new BigNumber(governamentalTaxRateReduction),
|
|
15482
16628
|
new BigNumber(taxableBase),
|
|
15483
16629
|
new BigNumber(taxRate)
|
|
15484
16630
|
];
|
|
15485
16631
|
}))
|
|
15486
16632
|
.subscribe(function (_a) {
|
|
15487
|
-
var _b = __read(_a,
|
|
16633
|
+
var _b = __read(_a, 3), governamentalTaxRateReduction = _b[0], taxableBase = _b[1], taxRate = _b[2];
|
|
15488
16634
|
var validators = [];
|
|
15489
|
-
if (
|
|
16635
|
+
if (governamentalTaxRateReduction.isFinite() ||
|
|
16636
|
+
taxableBase.isFinite() ||
|
|
15490
16637
|
taxRate.isFinite()) {
|
|
15491
16638
|
validators = [
|
|
15492
16639
|
forms.Validators.max(999.9999),
|
|
@@ -15514,43 +16661,46 @@
|
|
|
15514
16661
|
}
|
|
15515
16662
|
}
|
|
15516
16663
|
break;
|
|
15517
|
-
case exports.EnumTipoTributo.
|
|
15518
|
-
case exports.EnumTipoTributo.
|
|
15519
|
-
case exports.EnumTipoTributo.
|
|
16664
|
+
case exports.EnumTipoTributo.CBS_A_APROPRIAR:
|
|
16665
|
+
case exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR:
|
|
16666
|
+
case exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR:
|
|
15520
16667
|
{
|
|
15521
16668
|
switch (document) {
|
|
15522
16669
|
case 'Incoming Invoice':
|
|
15523
|
-
case 'Outgoing Invoice':
|
|
15524
16670
|
case 'Purchase Order':
|
|
15525
|
-
case 'Sale Order':
|
|
15526
16671
|
{
|
|
15527
16672
|
var baseTaxFormGroup = getBaseTaxItemFromGroup({ group: group }).formGroup;
|
|
15528
16673
|
rxjs.combineLatest([
|
|
15529
16674
|
baseTaxFormGroup
|
|
15530
|
-
.get('
|
|
15531
|
-
.valueChanges.pipe(operators.startWith(baseTaxFormGroup.get('
|
|
16675
|
+
.get('baseCalculo')
|
|
16676
|
+
.valueChanges.pipe(operators.startWith(baseTaxFormGroup.get('baseCalculo').value), operators.distinctUntilChanged()),
|
|
15532
16677
|
formGroup
|
|
15533
16678
|
.get('baseCalculo')
|
|
15534
16679
|
.valueChanges.pipe(operators.startWith(formGroup.get('baseCalculo')
|
|
15535
16680
|
.value), operators.distinctUntilChanged()),
|
|
15536
16681
|
formGroup
|
|
15537
16682
|
.get('aliquota')
|
|
15538
|
-
.valueChanges.pipe(operators.startWith(formGroup.get('aliquota').value), operators.distinctUntilChanged())
|
|
16683
|
+
.valueChanges.pipe(operators.startWith(formGroup.get('aliquota').value), operators.distinctUntilChanged()),
|
|
16684
|
+
formGroup
|
|
16685
|
+
.get('valor')
|
|
16686
|
+
.valueChanges.pipe(operators.startWith(formGroup.get('valor').value), operators.distinctUntilChanged())
|
|
15539
16687
|
])
|
|
15540
16688
|
.pipe(operators.map(function (_a) {
|
|
15541
|
-
var _b = __read(_a,
|
|
16689
|
+
var _b = __read(_a, 4), baseTaxTaxableBase = _b[0], taxableBase = _b[1], taxRate = _b[2], taxAmount = _b[3];
|
|
15542
16690
|
return [
|
|
15543
|
-
new BigNumber(
|
|
16691
|
+
new BigNumber(baseTaxTaxableBase),
|
|
15544
16692
|
new BigNumber(taxableBase),
|
|
15545
|
-
new BigNumber(taxRate)
|
|
16693
|
+
new BigNumber(taxRate),
|
|
16694
|
+
new BigNumber(taxAmount)
|
|
15546
16695
|
];
|
|
15547
16696
|
}))
|
|
15548
16697
|
.subscribe(function (_a) {
|
|
15549
|
-
var _b = __read(_a,
|
|
16698
|
+
var _b = __read(_a, 4), baseTaxTaxableBase = _b[0], taxableBase = _b[1], taxRate = _b[2], taxAmount = _b[3];
|
|
15550
16699
|
var validators = [];
|
|
15551
|
-
if (
|
|
16700
|
+
if (baseTaxTaxableBase.isFinite() ||
|
|
15552
16701
|
taxableBase.isFinite() ||
|
|
15553
|
-
taxRate.isFinite()
|
|
16702
|
+
taxRate.isFinite() ||
|
|
16703
|
+
taxAmount.isFinite()) {
|
|
15554
16704
|
validators = [
|
|
15555
16705
|
forms.Validators.max(999.9999),
|
|
15556
16706
|
forms.Validators.required
|
|
@@ -15635,7 +16785,7 @@
|
|
|
15635
16785
|
}
|
|
15636
16786
|
break;
|
|
15637
16787
|
default:
|
|
15638
|
-
throw new Error("Regra
|
|
16788
|
+
throw new Error("Regra TaxRateRequiredValidationRule n\u00E3o implementada para o imposto " + taxType + ", documento " + document + ".");
|
|
15639
16789
|
}
|
|
15640
16790
|
}
|
|
15641
16791
|
break;
|
|
@@ -16594,6 +17744,70 @@
|
|
|
16594
17744
|
}
|
|
16595
17745
|
}
|
|
16596
17746
|
break;
|
|
17747
|
+
case exports.EnumTipoTributo.CBS_A_APROPRIAR:
|
|
17748
|
+
case exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR:
|
|
17749
|
+
case exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR:
|
|
17750
|
+
{
|
|
17751
|
+
switch (document) {
|
|
17752
|
+
case 'Incoming Invoice':
|
|
17753
|
+
case 'Purchase Order':
|
|
17754
|
+
{
|
|
17755
|
+
var baseTaxFormGroup = getBaseTaxItemFromGroup({ group: group }).formGroup;
|
|
17756
|
+
rxjs.combineLatest([
|
|
17757
|
+
baseTaxFormGroup
|
|
17758
|
+
.get('baseCalculo')
|
|
17759
|
+
.valueChanges.pipe(operators.startWith(baseTaxFormGroup.get('baseCalculo').value), operators.distinctUntilChanged()),
|
|
17760
|
+
formGroup
|
|
17761
|
+
.get('baseCalculo')
|
|
17762
|
+
.valueChanges.pipe(operators.startWith(formGroup.get('baseCalculo')
|
|
17763
|
+
.value), operators.distinctUntilChanged()),
|
|
17764
|
+
formGroup
|
|
17765
|
+
.get('aliquota')
|
|
17766
|
+
.valueChanges.pipe(operators.startWith(formGroup.get('aliquota').value), operators.distinctUntilChanged()),
|
|
17767
|
+
formGroup
|
|
17768
|
+
.get('valor')
|
|
17769
|
+
.valueChanges.pipe(operators.startWith(formGroup.get('valor').value), operators.distinctUntilChanged())
|
|
17770
|
+
])
|
|
17771
|
+
.pipe(operators.map(function (_a) {
|
|
17772
|
+
var _b = __read(_a, 4), baseTaxTaxableBase = _b[0], taxableBase = _b[1], taxRate = _b[2], taxAmount = _b[3];
|
|
17773
|
+
return [
|
|
17774
|
+
new BigNumber(baseTaxTaxableBase),
|
|
17775
|
+
new BigNumber(taxableBase),
|
|
17776
|
+
new BigNumber(taxRate),
|
|
17777
|
+
new BigNumber(taxAmount)
|
|
17778
|
+
];
|
|
17779
|
+
}))
|
|
17780
|
+
.subscribe(function (_a) {
|
|
17781
|
+
var _b = __read(_a, 4), baseTaxTaxableBase = _b[0], taxableBase = _b[1], taxRate = _b[2], taxAmount = _b[3];
|
|
17782
|
+
var validators = [];
|
|
17783
|
+
if (baseTaxTaxableBase.isFinite() ||
|
|
17784
|
+
taxableBase.isFinite() ||
|
|
17785
|
+
taxRate.isFinite() ||
|
|
17786
|
+
taxAmount.isFinite()) {
|
|
17787
|
+
validators = [
|
|
17788
|
+
forms.Validators.max(9999999999999.99),
|
|
17789
|
+
forms.Validators.required
|
|
17790
|
+
];
|
|
17791
|
+
}
|
|
17792
|
+
else {
|
|
17793
|
+
validators = [];
|
|
17794
|
+
}
|
|
17795
|
+
formGroup
|
|
17796
|
+
.get('baseCalculo')
|
|
17797
|
+
.setValidators(validators);
|
|
17798
|
+
formGroup
|
|
17799
|
+
.get('baseCalculo')
|
|
17800
|
+
.updateValueAndValidity({
|
|
17801
|
+
emitEvent: false
|
|
17802
|
+
});
|
|
17803
|
+
});
|
|
17804
|
+
}
|
|
17805
|
+
break;
|
|
17806
|
+
default:
|
|
17807
|
+
throw new Error("Regra TaxableBaseRequiredValidationRule n\u00E3o implementada para o imposto " + taxType + ", documento " + document + ".");
|
|
17808
|
+
}
|
|
17809
|
+
}
|
|
17810
|
+
break;
|
|
16597
17811
|
case exports.EnumTipoTributo.CBS_DIFERIDO:
|
|
16598
17812
|
case exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO:
|
|
16599
17813
|
case exports.EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO:
|
|
@@ -16704,6 +17918,20 @@
|
|
|
16704
17918
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
16705
17919
|
}
|
|
16706
17920
|
],
|
|
17921
|
+
_a[exports.EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
17922
|
+
{
|
|
17923
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
17924
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
17925
|
+
},
|
|
17926
|
+
{
|
|
17927
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
17928
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
17929
|
+
},
|
|
17930
|
+
{
|
|
17931
|
+
field: exports.EnumCampoTributo.Valor,
|
|
17932
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
17933
|
+
}
|
|
17934
|
+
],
|
|
16707
17935
|
_a[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
16708
17936
|
{
|
|
16709
17937
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -16798,6 +18026,20 @@
|
|
|
16798
18026
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
16799
18027
|
}
|
|
16800
18028
|
],
|
|
18029
|
+
_a[exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
18030
|
+
{
|
|
18031
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
18032
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
18033
|
+
},
|
|
18034
|
+
{
|
|
18035
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
18036
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
18037
|
+
},
|
|
18038
|
+
{
|
|
18039
|
+
field: exports.EnumCampoTributo.Valor,
|
|
18040
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
18041
|
+
}
|
|
18042
|
+
],
|
|
16801
18043
|
_a[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
16802
18044
|
{
|
|
16803
18045
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -16866,6 +18108,20 @@
|
|
|
16866
18108
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
16867
18109
|
}
|
|
16868
18110
|
],
|
|
18111
|
+
_a[exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
18112
|
+
{
|
|
18113
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
18114
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
18115
|
+
},
|
|
18116
|
+
{
|
|
18117
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
18118
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
18119
|
+
},
|
|
18120
|
+
{
|
|
18121
|
+
field: exports.EnumCampoTributo.Valor,
|
|
18122
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
18123
|
+
}
|
|
18124
|
+
],
|
|
16869
18125
|
_a[exports.EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
16870
18126
|
{
|
|
16871
18127
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -17008,6 +18264,20 @@
|
|
|
17008
18264
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
17009
18265
|
}
|
|
17010
18266
|
],
|
|
18267
|
+
_b[exports.EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
18268
|
+
{
|
|
18269
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
18270
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
18271
|
+
},
|
|
18272
|
+
{
|
|
18273
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
18274
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
18275
|
+
},
|
|
18276
|
+
{
|
|
18277
|
+
field: exports.EnumCampoTributo.Valor,
|
|
18278
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
18279
|
+
}
|
|
18280
|
+
],
|
|
17011
18281
|
_b[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
17012
18282
|
{
|
|
17013
18283
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -17102,6 +18372,20 @@
|
|
|
17102
18372
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
17103
18373
|
}
|
|
17104
18374
|
],
|
|
18375
|
+
_b[exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
18376
|
+
{
|
|
18377
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
18378
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
18379
|
+
},
|
|
18380
|
+
{
|
|
18381
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
18382
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
18383
|
+
},
|
|
18384
|
+
{
|
|
18385
|
+
field: exports.EnumCampoTributo.Valor,
|
|
18386
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
18387
|
+
}
|
|
18388
|
+
],
|
|
17105
18389
|
_b[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
17106
18390
|
{
|
|
17107
18391
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -17170,6 +18454,20 @@
|
|
|
17170
18454
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
17171
18455
|
}
|
|
17172
18456
|
],
|
|
18457
|
+
_b[exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
18458
|
+
{
|
|
18459
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
18460
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
18461
|
+
},
|
|
18462
|
+
{
|
|
18463
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
18464
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
18465
|
+
},
|
|
18466
|
+
{
|
|
18467
|
+
field: exports.EnumCampoTributo.Valor,
|
|
18468
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
18469
|
+
}
|
|
18470
|
+
],
|
|
17173
18471
|
_b[exports.EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
17174
18472
|
{
|
|
17175
18473
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -17312,6 +18610,20 @@
|
|
|
17312
18610
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
17313
18611
|
}
|
|
17314
18612
|
],
|
|
18613
|
+
_c[exports.EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
18614
|
+
{
|
|
18615
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
18616
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
18617
|
+
},
|
|
18618
|
+
{
|
|
18619
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
18620
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
18621
|
+
},
|
|
18622
|
+
{
|
|
18623
|
+
field: exports.EnumCampoTributo.Valor,
|
|
18624
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
18625
|
+
}
|
|
18626
|
+
],
|
|
17315
18627
|
_c[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
17316
18628
|
{
|
|
17317
18629
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -17406,6 +18718,20 @@
|
|
|
17406
18718
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
17407
18719
|
}
|
|
17408
18720
|
],
|
|
18721
|
+
_c[exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
18722
|
+
{
|
|
18723
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
18724
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
18725
|
+
},
|
|
18726
|
+
{
|
|
18727
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
18728
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
18729
|
+
},
|
|
18730
|
+
{
|
|
18731
|
+
field: exports.EnumCampoTributo.Valor,
|
|
18732
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
18733
|
+
}
|
|
18734
|
+
],
|
|
17409
18735
|
_c[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
17410
18736
|
{
|
|
17411
18737
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -17474,6 +18800,20 @@
|
|
|
17474
18800
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
17475
18801
|
}
|
|
17476
18802
|
],
|
|
18803
|
+
_c[exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
18804
|
+
{
|
|
18805
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
18806
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
18807
|
+
},
|
|
18808
|
+
{
|
|
18809
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
18810
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
18811
|
+
},
|
|
18812
|
+
{
|
|
18813
|
+
field: exports.EnumCampoTributo.Valor,
|
|
18814
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
18815
|
+
}
|
|
18816
|
+
],
|
|
17477
18817
|
_c[exports.EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
17478
18818
|
{
|
|
17479
18819
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -17616,6 +18956,20 @@
|
|
|
17616
18956
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
17617
18957
|
}
|
|
17618
18958
|
],
|
|
18959
|
+
_d[exports.EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
18960
|
+
{
|
|
18961
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
18962
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
18963
|
+
},
|
|
18964
|
+
{
|
|
18965
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
18966
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
18967
|
+
},
|
|
18968
|
+
{
|
|
18969
|
+
field: exports.EnumCampoTributo.Valor,
|
|
18970
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
18971
|
+
}
|
|
18972
|
+
],
|
|
17619
18973
|
_d[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
17620
18974
|
{
|
|
17621
18975
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -17710,6 +19064,20 @@
|
|
|
17710
19064
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
17711
19065
|
}
|
|
17712
19066
|
],
|
|
19067
|
+
_d[exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
19068
|
+
{
|
|
19069
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
19070
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
19071
|
+
},
|
|
19072
|
+
{
|
|
19073
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
19074
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
19075
|
+
},
|
|
19076
|
+
{
|
|
19077
|
+
field: exports.EnumCampoTributo.Valor,
|
|
19078
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
19079
|
+
}
|
|
19080
|
+
],
|
|
17713
19081
|
_d[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
17714
19082
|
{
|
|
17715
19083
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -17778,6 +19146,20 @@
|
|
|
17778
19146
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
17779
19147
|
}
|
|
17780
19148
|
],
|
|
19149
|
+
_d[exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
19150
|
+
{
|
|
19151
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
19152
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
19153
|
+
},
|
|
19154
|
+
{
|
|
19155
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
19156
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
19157
|
+
},
|
|
19158
|
+
{
|
|
19159
|
+
field: exports.EnumCampoTributo.Valor,
|
|
19160
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
19161
|
+
}
|
|
19162
|
+
],
|
|
17781
19163
|
_d[exports.EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
17782
19164
|
{
|
|
17783
19165
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -17920,6 +19302,20 @@
|
|
|
17920
19302
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
17921
19303
|
}
|
|
17922
19304
|
],
|
|
19305
|
+
_e[exports.EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
19306
|
+
{
|
|
19307
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
19308
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
19309
|
+
},
|
|
19310
|
+
{
|
|
19311
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
19312
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
19313
|
+
},
|
|
19314
|
+
{
|
|
19315
|
+
field: exports.EnumCampoTributo.Valor,
|
|
19316
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
19317
|
+
}
|
|
19318
|
+
],
|
|
17923
19319
|
_e[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
17924
19320
|
{
|
|
17925
19321
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -18014,6 +19410,20 @@
|
|
|
18014
19410
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
18015
19411
|
}
|
|
18016
19412
|
],
|
|
19413
|
+
_e[exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
19414
|
+
{
|
|
19415
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
19416
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
19417
|
+
},
|
|
19418
|
+
{
|
|
19419
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
19420
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
19421
|
+
},
|
|
19422
|
+
{
|
|
19423
|
+
field: exports.EnumCampoTributo.Valor,
|
|
19424
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
19425
|
+
}
|
|
19426
|
+
],
|
|
18017
19427
|
_e[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
18018
19428
|
{
|
|
18019
19429
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -18082,6 +19492,20 @@
|
|
|
18082
19492
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
18083
19493
|
}
|
|
18084
19494
|
],
|
|
19495
|
+
_e[exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
19496
|
+
{
|
|
19497
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
19498
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
19499
|
+
},
|
|
19500
|
+
{
|
|
19501
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
19502
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
19503
|
+
},
|
|
19504
|
+
{
|
|
19505
|
+
field: exports.EnumCampoTributo.Valor,
|
|
19506
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
19507
|
+
}
|
|
19508
|
+
],
|
|
18085
19509
|
_e[exports.EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
18086
19510
|
{
|
|
18087
19511
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -18224,6 +19648,20 @@
|
|
|
18224
19648
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
18225
19649
|
}
|
|
18226
19650
|
],
|
|
19651
|
+
_f[exports.EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
19652
|
+
{
|
|
19653
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
19654
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
19655
|
+
},
|
|
19656
|
+
{
|
|
19657
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
19658
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
19659
|
+
},
|
|
19660
|
+
{
|
|
19661
|
+
field: exports.EnumCampoTributo.Valor,
|
|
19662
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
19663
|
+
}
|
|
19664
|
+
],
|
|
18227
19665
|
_f[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
18228
19666
|
{
|
|
18229
19667
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -18318,6 +19756,20 @@
|
|
|
18318
19756
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
18319
19757
|
}
|
|
18320
19758
|
],
|
|
19759
|
+
_f[exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
19760
|
+
{
|
|
19761
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
19762
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
19763
|
+
},
|
|
19764
|
+
{
|
|
19765
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
19766
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
19767
|
+
},
|
|
19768
|
+
{
|
|
19769
|
+
field: exports.EnumCampoTributo.Valor,
|
|
19770
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
19771
|
+
}
|
|
19772
|
+
],
|
|
18321
19773
|
_f[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
18322
19774
|
{
|
|
18323
19775
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -18386,6 +19838,20 @@
|
|
|
18386
19838
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
18387
19839
|
}
|
|
18388
19840
|
],
|
|
19841
|
+
_f[exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
19842
|
+
{
|
|
19843
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
19844
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
19845
|
+
},
|
|
19846
|
+
{
|
|
19847
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
19848
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
19849
|
+
},
|
|
19850
|
+
{
|
|
19851
|
+
field: exports.EnumCampoTributo.Valor,
|
|
19852
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
19853
|
+
}
|
|
19854
|
+
],
|
|
18389
19855
|
_f[exports.EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
18390
19856
|
{
|
|
18391
19857
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -18528,6 +19994,20 @@
|
|
|
18528
19994
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
18529
19995
|
}
|
|
18530
19996
|
],
|
|
19997
|
+
_g[exports.EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
19998
|
+
{
|
|
19999
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
20000
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
20001
|
+
},
|
|
20002
|
+
{
|
|
20003
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
20004
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
20005
|
+
},
|
|
20006
|
+
{
|
|
20007
|
+
field: exports.EnumCampoTributo.Valor,
|
|
20008
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
20009
|
+
}
|
|
20010
|
+
],
|
|
18531
20011
|
_g[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
18532
20012
|
{
|
|
18533
20013
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -18622,6 +20102,20 @@
|
|
|
18622
20102
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
18623
20103
|
}
|
|
18624
20104
|
],
|
|
20105
|
+
_g[exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
20106
|
+
{
|
|
20107
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
20108
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
20109
|
+
},
|
|
20110
|
+
{
|
|
20111
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
20112
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
20113
|
+
},
|
|
20114
|
+
{
|
|
20115
|
+
field: exports.EnumCampoTributo.Valor,
|
|
20116
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
20117
|
+
}
|
|
20118
|
+
],
|
|
18625
20119
|
_g[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
18626
20120
|
{
|
|
18627
20121
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -18690,6 +20184,20 @@
|
|
|
18690
20184
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
18691
20185
|
}
|
|
18692
20186
|
],
|
|
20187
|
+
_g[exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
20188
|
+
{
|
|
20189
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
20190
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
20191
|
+
},
|
|
20192
|
+
{
|
|
20193
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
20194
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
20195
|
+
},
|
|
20196
|
+
{
|
|
20197
|
+
field: exports.EnumCampoTributo.Valor,
|
|
20198
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
20199
|
+
}
|
|
20200
|
+
],
|
|
18693
20201
|
_g[exports.EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
18694
20202
|
{
|
|
18695
20203
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -18832,6 +20340,20 @@
|
|
|
18832
20340
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
18833
20341
|
}
|
|
18834
20342
|
],
|
|
20343
|
+
_h[exports.EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
20344
|
+
{
|
|
20345
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
20346
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
20347
|
+
},
|
|
20348
|
+
{
|
|
20349
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
20350
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
20351
|
+
},
|
|
20352
|
+
{
|
|
20353
|
+
field: exports.EnumCampoTributo.Valor,
|
|
20354
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
20355
|
+
}
|
|
20356
|
+
],
|
|
18835
20357
|
_h[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
18836
20358
|
{
|
|
18837
20359
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -18926,6 +20448,20 @@
|
|
|
18926
20448
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
18927
20449
|
}
|
|
18928
20450
|
],
|
|
20451
|
+
_h[exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
20452
|
+
{
|
|
20453
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
20454
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
20455
|
+
},
|
|
20456
|
+
{
|
|
20457
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
20458
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
20459
|
+
},
|
|
20460
|
+
{
|
|
20461
|
+
field: exports.EnumCampoTributo.Valor,
|
|
20462
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
20463
|
+
}
|
|
20464
|
+
],
|
|
18929
20465
|
_h[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
18930
20466
|
{
|
|
18931
20467
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -18994,6 +20530,20 @@
|
|
|
18994
20530
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
18995
20531
|
}
|
|
18996
20532
|
],
|
|
20533
|
+
_h[exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
20534
|
+
{
|
|
20535
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
20536
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
20537
|
+
},
|
|
20538
|
+
{
|
|
20539
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
20540
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
20541
|
+
},
|
|
20542
|
+
{
|
|
20543
|
+
field: exports.EnumCampoTributo.Valor,
|
|
20544
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
20545
|
+
}
|
|
20546
|
+
],
|
|
18997
20547
|
_h[exports.EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
18998
20548
|
{
|
|
18999
20549
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -19136,6 +20686,20 @@
|
|
|
19136
20686
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
19137
20687
|
}
|
|
19138
20688
|
],
|
|
20689
|
+
_j[exports.EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
20690
|
+
{
|
|
20691
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
20692
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
20693
|
+
},
|
|
20694
|
+
{
|
|
20695
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
20696
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
20697
|
+
},
|
|
20698
|
+
{
|
|
20699
|
+
field: exports.EnumCampoTributo.Valor,
|
|
20700
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
20701
|
+
}
|
|
20702
|
+
],
|
|
19139
20703
|
_j[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
19140
20704
|
{
|
|
19141
20705
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -19230,6 +20794,20 @@
|
|
|
19230
20794
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
19231
20795
|
}
|
|
19232
20796
|
],
|
|
20797
|
+
_j[exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
20798
|
+
{
|
|
20799
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
20800
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
20801
|
+
},
|
|
20802
|
+
{
|
|
20803
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
20804
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
20805
|
+
},
|
|
20806
|
+
{
|
|
20807
|
+
field: exports.EnumCampoTributo.Valor,
|
|
20808
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
20809
|
+
}
|
|
20810
|
+
],
|
|
19233
20811
|
_j[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
19234
20812
|
{
|
|
19235
20813
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -19298,6 +20876,20 @@
|
|
|
19298
20876
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
19299
20877
|
}
|
|
19300
20878
|
],
|
|
20879
|
+
_j[exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
20880
|
+
{
|
|
20881
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
20882
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
20883
|
+
},
|
|
20884
|
+
{
|
|
20885
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
20886
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
20887
|
+
},
|
|
20888
|
+
{
|
|
20889
|
+
field: exports.EnumCampoTributo.Valor,
|
|
20890
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
20891
|
+
}
|
|
20892
|
+
],
|
|
19301
20893
|
_j[exports.EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
19302
20894
|
{
|
|
19303
20895
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -19440,6 +21032,20 @@
|
|
|
19440
21032
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
19441
21033
|
}
|
|
19442
21034
|
],
|
|
21035
|
+
_k[exports.EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
21036
|
+
{
|
|
21037
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
21038
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
21039
|
+
},
|
|
21040
|
+
{
|
|
21041
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
21042
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
21043
|
+
},
|
|
21044
|
+
{
|
|
21045
|
+
field: exports.EnumCampoTributo.Valor,
|
|
21046
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
21047
|
+
}
|
|
21048
|
+
],
|
|
19443
21049
|
_k[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
19444
21050
|
{
|
|
19445
21051
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -19534,6 +21140,20 @@
|
|
|
19534
21140
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
19535
21141
|
}
|
|
19536
21142
|
],
|
|
21143
|
+
_k[exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
21144
|
+
{
|
|
21145
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
21146
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
21147
|
+
},
|
|
21148
|
+
{
|
|
21149
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
21150
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
21151
|
+
},
|
|
21152
|
+
{
|
|
21153
|
+
field: exports.EnumCampoTributo.Valor,
|
|
21154
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
21155
|
+
}
|
|
21156
|
+
],
|
|
19537
21157
|
_k[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
19538
21158
|
{
|
|
19539
21159
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -19602,6 +21222,20 @@
|
|
|
19602
21222
|
rules: [this.applyNetValueToDocumentRequiredValidationRule]
|
|
19603
21223
|
}
|
|
19604
21224
|
],
|
|
21225
|
+
_k[exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
21226
|
+
{
|
|
21227
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
21228
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
21229
|
+
},
|
|
21230
|
+
{
|
|
21231
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
21232
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
21233
|
+
},
|
|
21234
|
+
{
|
|
21235
|
+
field: exports.EnumCampoTributo.Valor,
|
|
21236
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
21237
|
+
}
|
|
21238
|
+
],
|
|
19605
21239
|
_k[exports.EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
19606
21240
|
{
|
|
19607
21241
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -25102,6 +26736,20 @@
|
|
|
25102
26736
|
rules: [this.taxAmountRequiredValidationRule]
|
|
25103
26737
|
}
|
|
25104
26738
|
],
|
|
26739
|
+
_a[exports.EnumTipoTributo.CBS_A_APROPRIAR] = [
|
|
26740
|
+
{
|
|
26741
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
26742
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
26743
|
+
},
|
|
26744
|
+
{
|
|
26745
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
26746
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
26747
|
+
},
|
|
26748
|
+
{
|
|
26749
|
+
field: exports.EnumCampoTributo.Valor,
|
|
26750
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
26751
|
+
}
|
|
26752
|
+
],
|
|
25105
26753
|
_a[exports.EnumTipoTributo.CBS_DIFERIDO] = [
|
|
25106
26754
|
{
|
|
25107
26755
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -25164,6 +26812,20 @@
|
|
|
25164
26812
|
rules: [this.taxAmountRequiredValidationRule]
|
|
25165
26813
|
}
|
|
25166
26814
|
],
|
|
26815
|
+
_a[exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR] = [
|
|
26816
|
+
{
|
|
26817
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
26818
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
26819
|
+
},
|
|
26820
|
+
{
|
|
26821
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
26822
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
26823
|
+
},
|
|
26824
|
+
{
|
|
26825
|
+
field: exports.EnumCampoTributo.Valor,
|
|
26826
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
26827
|
+
}
|
|
26828
|
+
],
|
|
25167
26829
|
_a[exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO] = [
|
|
25168
26830
|
{
|
|
25169
26831
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -25212,6 +26874,20 @@
|
|
|
25212
26874
|
rules: [this.taxAmountRequiredValidationRule]
|
|
25213
26875
|
}
|
|
25214
26876
|
],
|
|
26877
|
+
_a[exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR] = [
|
|
26878
|
+
{
|
|
26879
|
+
field: exports.EnumCampoTributo.BaseCalculo,
|
|
26880
|
+
rules: [this.taxableBaseRequiredValidationRule]
|
|
26881
|
+
},
|
|
26882
|
+
{
|
|
26883
|
+
field: exports.EnumCampoTributo.Aliquota,
|
|
26884
|
+
rules: [this.taxRateRequiredValidationRule]
|
|
26885
|
+
},
|
|
26886
|
+
{
|
|
26887
|
+
field: exports.EnumCampoTributo.Valor,
|
|
26888
|
+
rules: [this.taxAmountRequiredValidationRule]
|
|
26889
|
+
}
|
|
26890
|
+
],
|
|
25215
26891
|
_a[exports.EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO] = [
|
|
25216
26892
|
{
|
|
25217
26893
|
field: exports.EnumCampoTributo.BaseCalculo,
|
|
@@ -27149,17 +28825,20 @@
|
|
|
27149
28825
|
this.tributosValue.map(function (it) {
|
|
27150
28826
|
switch (it.tipoImposto) {
|
|
27151
28827
|
case exports.EnumTipoTributo.CBS:
|
|
28828
|
+
case exports.EnumTipoTributo.CBS_A_APROPRIAR:
|
|
27152
28829
|
case exports.EnumTipoTributo.CBS_DIFERIDO:
|
|
27153
28830
|
case exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO:
|
|
27154
28831
|
case exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR:
|
|
27155
28832
|
_this.montaCBS();
|
|
27156
28833
|
break;
|
|
27157
28834
|
case exports.EnumTipoTributo.IBS_ESTADUAL:
|
|
28835
|
+
case exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR:
|
|
27158
28836
|
case exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO:
|
|
27159
28837
|
case exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR:
|
|
27160
28838
|
_this.montaIBSEstadual();
|
|
27161
28839
|
break;
|
|
27162
28840
|
case exports.EnumTipoTributo.IBS_MUNICIPAL:
|
|
28841
|
+
case exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR:
|
|
27163
28842
|
case exports.EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO:
|
|
27164
28843
|
case exports.EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR:
|
|
27165
28844
|
_this.montaIBSMunicipal();
|
|
@@ -29057,15 +30736,26 @@
|
|
|
29057
30736
|
campo: exports.EnumCampoTributo.ClassificacaoTributaria
|
|
29058
30737
|
});
|
|
29059
30738
|
}
|
|
29060
|
-
item.unshift(__assign({ name: exports.EnumTipoTributo.CBS, label: 'erpx.tributos.enum_tipo_tributo_cbs' }, this.montaCampos(campos, exports.EnumTipoTributo.CBS)),
|
|
29061
|
-
|
|
29062
|
-
|
|
29063
|
-
|
|
29064
|
-
|
|
29065
|
-
|
|
29066
|
-
|
|
29067
|
-
|
|
29068
|
-
|
|
30739
|
+
item.unshift.apply(item, __spread([__assign({ name: exports.EnumTipoTributo.CBS, label: 'erpx.tributos.enum_tipo_tributo_cbs' }, this.montaCampos(campos, exports.EnumTipoTributo.CBS))], (this.isAccrualTaxDocument()
|
|
30740
|
+
? [
|
|
30741
|
+
__assign({ name: exports.EnumTipoTributo.CBS_A_APROPRIAR, label: 'erpx.tributos.enum_tipo_tributo_cbs_a_apropriar' }, this.montaCampos([
|
|
30742
|
+
{ campo: exports.EnumCampoTributo.BaseCalculo },
|
|
30743
|
+
{ campo: exports.EnumCampoTributo.Aliquota },
|
|
30744
|
+
{
|
|
30745
|
+
campo: exports.EnumCampoTributo.Valor,
|
|
30746
|
+
disabled: true
|
|
30747
|
+
}
|
|
30748
|
+
], exports.EnumTipoTributo.CBS_A_APROPRIAR))
|
|
30749
|
+
]
|
|
30750
|
+
: []), [__assign({ name: exports.EnumTipoTributo.CBS_DIFERIDO, label: 'erpx.tributos.enum_tipo_tributo_cbs_diferido' }, this.montaCampos([
|
|
30751
|
+
{ campo: exports.EnumCampoTributo.BaseCalculo },
|
|
30752
|
+
{ campo: exports.EnumCampoTributo.Aliquota },
|
|
30753
|
+
{ campo: exports.EnumCampoTributo.Valor, disabled: true }
|
|
30754
|
+
], exports.EnumTipoTributo.CBS_DIFERIDO)), __assign({ name: exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO, label: 'erpx.tributos.enum_tipo_tributo_cbs_credito_presumido' }, this.montaCampos(campos_CBS_CREDITO_PRESUMIDO, exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO)), __assign({ name: exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR, label: 'erpx.tributos.enum_tipo_tributo_cbs_tributacao_regular' }, this.montaCampos(campos_CBS_TRIBUTACAO_REGULAR, exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR)), __assign({ name: exports.EnumTipoTributo.CBS_GOVERNAMENTAL, label: 'erpx.tributos.enum_tipo_tributo_cbs_governamental' }, this.montaCampos([
|
|
30755
|
+
{ campo: exports.EnumCampoTributo.BaseCalculo },
|
|
30756
|
+
{ campo: exports.EnumCampoTributo.Aliquota },
|
|
30757
|
+
{ campo: exports.EnumCampoTributo.Valor, disabled: true }
|
|
30758
|
+
], exports.EnumTipoTributo.CBS_GOVERNAMENTAL))]));
|
|
29069
30759
|
this.grupos.unshift({
|
|
29070
30760
|
grupo: "" + ('erpx.tributos.enum_grupo_tributo_' + exports.EnumGrupoTributo.CBS + '_label'),
|
|
29071
30761
|
grupoTributo: exports.EnumGrupoTributo.CBS,
|
|
@@ -29078,85 +30768,96 @@
|
|
|
29078
30768
|
return;
|
|
29079
30769
|
this.menuItemIBSEstadual = true;
|
|
29080
30770
|
var item = [];
|
|
29081
|
-
item.unshift(__assign({ name: exports.EnumTipoTributo.IBS_ESTADUAL, label: 'erpx.tributos.enum_tipo_tributo_ibs_estadual' }, this.montaCampos(this.context.document === 'Sale Order' ||
|
|
29082
|
-
|
|
30771
|
+
item.unshift.apply(item, __spread([__assign({ name: exports.EnumTipoTributo.IBS_ESTADUAL, label: 'erpx.tributos.enum_tipo_tributo_ibs_estadual' }, this.montaCampos(this.context.document === 'Sale Order' ||
|
|
30772
|
+
this.context.document === 'Purchase Order'
|
|
30773
|
+
? [
|
|
30774
|
+
{
|
|
30775
|
+
campo: exports.EnumCampoTributo.BaseCalculo,
|
|
30776
|
+
grupo: exports.EnumGrupoTributo.IBS_ESTADUAL
|
|
30777
|
+
},
|
|
30778
|
+
{
|
|
30779
|
+
campo: exports.EnumCampoTributo.Aliquota,
|
|
30780
|
+
grupo: exports.EnumGrupoTributo.IBS_ESTADUAL
|
|
30781
|
+
},
|
|
30782
|
+
{
|
|
30783
|
+
campo: exports.EnumCampoTributo.ValorBruto,
|
|
30784
|
+
disabled: true
|
|
30785
|
+
},
|
|
30786
|
+
{ campo: exports.EnumCampoTributo.ReducaoAliquota },
|
|
30787
|
+
{
|
|
30788
|
+
campo: exports.EnumCampoTributo.ReducaoAliquotaGovernamental
|
|
30789
|
+
},
|
|
30790
|
+
{
|
|
30791
|
+
campo: exports.EnumCampoTributo.AliquotaEfetiva,
|
|
30792
|
+
disabled: true
|
|
30793
|
+
},
|
|
30794
|
+
{ campo: exports.EnumCampoTributo.Valor }
|
|
30795
|
+
]
|
|
30796
|
+
: [
|
|
30797
|
+
{
|
|
30798
|
+
campo: exports.EnumCampoTributo.BaseCalculo,
|
|
30799
|
+
grupo: exports.EnumGrupoTributo.IBS_ESTADUAL
|
|
30800
|
+
},
|
|
30801
|
+
{
|
|
30802
|
+
campo: exports.EnumCampoTributo.Aliquota,
|
|
30803
|
+
grupo: exports.EnumGrupoTributo.IBS_ESTADUAL
|
|
30804
|
+
},
|
|
30805
|
+
{
|
|
30806
|
+
campo: exports.EnumCampoTributo.ValorBruto,
|
|
30807
|
+
disabled: true
|
|
30808
|
+
},
|
|
30809
|
+
{ campo: exports.EnumCampoTributo.ReducaoAliquota },
|
|
30810
|
+
{
|
|
30811
|
+
campo: exports.EnumCampoTributo.ReducaoAliquotaGovernamental
|
|
30812
|
+
},
|
|
30813
|
+
{
|
|
30814
|
+
campo: exports.EnumCampoTributo.AliquotaEfetiva,
|
|
30815
|
+
disabled: true
|
|
30816
|
+
},
|
|
30817
|
+
{ campo: exports.EnumCampoTributo.Valor },
|
|
30818
|
+
{ campo: exports.EnumCampoTributo.SituacaoTributaria },
|
|
30819
|
+
{
|
|
30820
|
+
campo: exports.EnumCampoTributo.ClassificacaoTributaria
|
|
30821
|
+
},
|
|
30822
|
+
{
|
|
30823
|
+
campo: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
30824
|
+
grupo: exports.EnumGrupoTributo.IBS_ESTADUAL
|
|
30825
|
+
}
|
|
30826
|
+
], exports.EnumTipoTributo.IBS_ESTADUAL))], (this.isAccrualTaxDocument()
|
|
29083
30827
|
? [
|
|
29084
|
-
{
|
|
29085
|
-
campo: exports.EnumCampoTributo.BaseCalculo,
|
|
29086
|
-
|
|
29087
|
-
|
|
29088
|
-
|
|
29089
|
-
|
|
29090
|
-
|
|
29091
|
-
|
|
29092
|
-
{
|
|
29093
|
-
campo: exports.EnumCampoTributo.ValorBruto,
|
|
29094
|
-
disabled: true
|
|
29095
|
-
},
|
|
29096
|
-
{ campo: exports.EnumCampoTributo.ReducaoAliquota },
|
|
29097
|
-
{
|
|
29098
|
-
campo: exports.EnumCampoTributo.ReducaoAliquotaGovernamental
|
|
29099
|
-
},
|
|
29100
|
-
{
|
|
29101
|
-
campo: exports.EnumCampoTributo.AliquotaEfetiva,
|
|
29102
|
-
disabled: true
|
|
29103
|
-
},
|
|
29104
|
-
{ campo: exports.EnumCampoTributo.Valor }
|
|
30828
|
+
__assign({ name: exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR, label: 'erpx.tributos.enum_tipo_tributo_ibs_estadual_a_apropriar' }, this.montaCampos([
|
|
30829
|
+
{ campo: exports.EnumCampoTributo.BaseCalculo },
|
|
30830
|
+
{ campo: exports.EnumCampoTributo.Aliquota },
|
|
30831
|
+
{
|
|
30832
|
+
campo: exports.EnumCampoTributo.Valor,
|
|
30833
|
+
disabled: true
|
|
30834
|
+
}
|
|
30835
|
+
], exports.EnumTipoTributo.IBS_ESTADUAL_A_APROPRIAR))
|
|
29105
30836
|
]
|
|
29106
|
-
: [
|
|
29107
|
-
{
|
|
29108
|
-
campo: exports.EnumCampoTributo.BaseCalculo,
|
|
29109
|
-
grupo: exports.EnumGrupoTributo.IBS_ESTADUAL
|
|
29110
|
-
},
|
|
29111
|
-
{
|
|
29112
|
-
campo: exports.EnumCampoTributo.Aliquota,
|
|
29113
|
-
grupo: exports.EnumGrupoTributo.IBS_ESTADUAL
|
|
29114
|
-
},
|
|
29115
|
-
{
|
|
29116
|
-
campo: exports.EnumCampoTributo.ValorBruto,
|
|
29117
|
-
disabled: true
|
|
29118
|
-
},
|
|
29119
|
-
{ campo: exports.EnumCampoTributo.ReducaoAliquota },
|
|
29120
|
-
{
|
|
29121
|
-
campo: exports.EnumCampoTributo.ReducaoAliquotaGovernamental
|
|
29122
|
-
},
|
|
29123
|
-
{
|
|
29124
|
-
campo: exports.EnumCampoTributo.AliquotaEfetiva,
|
|
29125
|
-
disabled: true
|
|
29126
|
-
},
|
|
29127
|
-
{ campo: exports.EnumCampoTributo.Valor },
|
|
29128
|
-
{ campo: exports.EnumCampoTributo.SituacaoTributaria },
|
|
29129
|
-
{
|
|
29130
|
-
campo: exports.EnumCampoTributo.ClassificacaoTributaria
|
|
29131
|
-
},
|
|
29132
|
-
{
|
|
29133
|
-
campo: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
29134
|
-
grupo: exports.EnumGrupoTributo.IBS_ESTADUAL
|
|
29135
|
-
}
|
|
29136
|
-
], exports.EnumTipoTributo.IBS_ESTADUAL)), __assign({ name: exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO, label: 'erpx.tributos.enum_tipo_tributo_ibs_estadual_diferido' }, this.montaCampos([
|
|
29137
|
-
{ campo: exports.EnumCampoTributo.BaseCalculo },
|
|
29138
|
-
{ campo: exports.EnumCampoTributo.Aliquota },
|
|
29139
|
-
{ campo: exports.EnumCampoTributo.Valor, disabled: true }
|
|
29140
|
-
], exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO)), __assign({ name: exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR, label: 'erpx.tributos.enum_tipo_tributo_ibs_estadual_tributacao_regular' }, this.montaCampos(this.context.document === 'Sale Order' ||
|
|
29141
|
-
this.context.document === 'Purchase Order'
|
|
29142
|
-
? [
|
|
30837
|
+
: []), [__assign({ name: exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO, label: 'erpx.tributos.enum_tipo_tributo_ibs_estadual_diferido' }, this.montaCampos([
|
|
29143
30838
|
{ campo: exports.EnumCampoTributo.BaseCalculo },
|
|
29144
30839
|
{ campo: exports.EnumCampoTributo.Aliquota },
|
|
29145
30840
|
{ campo: exports.EnumCampoTributo.Valor, disabled: true }
|
|
29146
|
-
]
|
|
29147
|
-
|
|
30841
|
+
], exports.EnumTipoTributo.IBS_ESTADUAL_DIFERIDO)), __assign({ name: exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR, label: 'erpx.tributos.enum_tipo_tributo_ibs_estadual_tributacao_regular' }, this.montaCampos(this.context.document === 'Sale Order' ||
|
|
30842
|
+
this.context.document === 'Purchase Order'
|
|
30843
|
+
? [
|
|
30844
|
+
{ campo: exports.EnumCampoTributo.BaseCalculo },
|
|
30845
|
+
{ campo: exports.EnumCampoTributo.Aliquota },
|
|
30846
|
+
{ campo: exports.EnumCampoTributo.Valor, disabled: true }
|
|
30847
|
+
]
|
|
30848
|
+
: [
|
|
30849
|
+
{ campo: exports.EnumCampoTributo.BaseCalculo },
|
|
30850
|
+
{ campo: exports.EnumCampoTributo.Aliquota },
|
|
30851
|
+
{ campo: exports.EnumCampoTributo.Valor, disabled: true },
|
|
30852
|
+
{ campo: exports.EnumCampoTributo.SituacaoTributaria },
|
|
30853
|
+
{
|
|
30854
|
+
campo: exports.EnumCampoTributo.ClassificacaoTributaria
|
|
30855
|
+
}
|
|
30856
|
+
], exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR)), __assign({ name: exports.EnumTipoTributo.IBS_ESTADUAL_GOVERNAMENTAL, label: 'erpx.tributos.enum_tipo_tributo_ibs_estadual_governamental' }, this.montaCampos([
|
|
29148
30857
|
{ campo: exports.EnumCampoTributo.BaseCalculo },
|
|
29149
30858
|
{ campo: exports.EnumCampoTributo.Aliquota },
|
|
29150
|
-
{ campo: exports.EnumCampoTributo.Valor, disabled: true }
|
|
29151
|
-
|
|
29152
|
-
{
|
|
29153
|
-
campo: exports.EnumCampoTributo.ClassificacaoTributaria
|
|
29154
|
-
}
|
|
29155
|
-
], exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR)), __assign({ name: exports.EnumTipoTributo.IBS_ESTADUAL_GOVERNAMENTAL, label: 'erpx.tributos.enum_tipo_tributo_ibs_estadual_governamental' }, this.montaCampos([
|
|
29156
|
-
{ campo: exports.EnumCampoTributo.BaseCalculo },
|
|
29157
|
-
{ campo: exports.EnumCampoTributo.Aliquota },
|
|
29158
|
-
{ campo: exports.EnumCampoTributo.Valor, disabled: true }
|
|
29159
|
-
], exports.EnumTipoTributo.IBS_ESTADUAL_GOVERNAMENTAL)));
|
|
30859
|
+
{ campo: exports.EnumCampoTributo.Valor, disabled: true }
|
|
30860
|
+
], exports.EnumTipoTributo.IBS_ESTADUAL_GOVERNAMENTAL))]));
|
|
29160
30861
|
this.grupos.unshift({
|
|
29161
30862
|
grupo: "" + ('erpx.tributos.enum_grupo_tributo_' + exports.EnumGrupoTributo.IBS_ESTADUAL + '_label'),
|
|
29162
30863
|
grupoTributo: exports.EnumGrupoTributo.IBS_ESTADUAL,
|
|
@@ -29169,85 +30870,96 @@
|
|
|
29169
30870
|
return;
|
|
29170
30871
|
this.menuItemIBSMunicipal = true;
|
|
29171
30872
|
var item = [];
|
|
29172
|
-
item.unshift(__assign({ name: exports.EnumTipoTributo.IBS_MUNICIPAL, label: 'erpx.tributos.enum_tipo_tributo_ibs_municipal' }, this.montaCampos(this.context.document === 'Sale Order' ||
|
|
29173
|
-
|
|
30873
|
+
item.unshift.apply(item, __spread([__assign({ name: exports.EnumTipoTributo.IBS_MUNICIPAL, label: 'erpx.tributos.enum_tipo_tributo_ibs_municipal' }, this.montaCampos(this.context.document === 'Sale Order' ||
|
|
30874
|
+
this.context.document === 'Purchase Order'
|
|
30875
|
+
? [
|
|
30876
|
+
{
|
|
30877
|
+
campo: exports.EnumCampoTributo.BaseCalculo,
|
|
30878
|
+
grupo: exports.EnumGrupoTributo.IBS_MUNICIPAL
|
|
30879
|
+
},
|
|
30880
|
+
{
|
|
30881
|
+
campo: exports.EnumCampoTributo.Aliquota,
|
|
30882
|
+
grupo: exports.EnumGrupoTributo.IBS_MUNICIPAL
|
|
30883
|
+
},
|
|
30884
|
+
{
|
|
30885
|
+
campo: exports.EnumCampoTributo.ValorBruto,
|
|
30886
|
+
disabled: true
|
|
30887
|
+
},
|
|
30888
|
+
{ campo: exports.EnumCampoTributo.ReducaoAliquota },
|
|
30889
|
+
{
|
|
30890
|
+
campo: exports.EnumCampoTributo.ReducaoAliquotaGovernamental
|
|
30891
|
+
},
|
|
30892
|
+
{
|
|
30893
|
+
campo: exports.EnumCampoTributo.AliquotaEfetiva,
|
|
30894
|
+
disabled: true
|
|
30895
|
+
},
|
|
30896
|
+
{ campo: exports.EnumCampoTributo.Valor, disabled: true }
|
|
30897
|
+
]
|
|
30898
|
+
: [
|
|
30899
|
+
{
|
|
30900
|
+
campo: exports.EnumCampoTributo.BaseCalculo,
|
|
30901
|
+
grupo: exports.EnumGrupoTributo.IBS_MUNICIPAL
|
|
30902
|
+
},
|
|
30903
|
+
{
|
|
30904
|
+
campo: exports.EnumCampoTributo.Aliquota,
|
|
30905
|
+
grupo: exports.EnumGrupoTributo.IBS_MUNICIPAL
|
|
30906
|
+
},
|
|
30907
|
+
{
|
|
30908
|
+
campo: exports.EnumCampoTributo.ValorBruto,
|
|
30909
|
+
disabled: true
|
|
30910
|
+
},
|
|
30911
|
+
{ campo: exports.EnumCampoTributo.ReducaoAliquota },
|
|
30912
|
+
{
|
|
30913
|
+
campo: exports.EnumCampoTributo.ReducaoAliquotaGovernamental
|
|
30914
|
+
},
|
|
30915
|
+
{
|
|
30916
|
+
campo: exports.EnumCampoTributo.AliquotaEfetiva,
|
|
30917
|
+
disabled: true
|
|
30918
|
+
},
|
|
30919
|
+
{ campo: exports.EnumCampoTributo.Valor },
|
|
30920
|
+
{ campo: exports.EnumCampoTributo.SituacaoTributaria },
|
|
30921
|
+
{
|
|
30922
|
+
campo: exports.EnumCampoTributo.ClassificacaoTributaria
|
|
30923
|
+
},
|
|
30924
|
+
{
|
|
30925
|
+
campo: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
30926
|
+
grupo: exports.EnumGrupoTributo.IBS_MUNICIPAL
|
|
30927
|
+
}
|
|
30928
|
+
], exports.EnumTipoTributo.IBS_MUNICIPAL))], (this.isAccrualTaxDocument()
|
|
29174
30929
|
? [
|
|
29175
|
-
{
|
|
29176
|
-
campo: exports.EnumCampoTributo.BaseCalculo,
|
|
29177
|
-
|
|
29178
|
-
|
|
29179
|
-
|
|
29180
|
-
|
|
29181
|
-
|
|
29182
|
-
|
|
29183
|
-
{
|
|
29184
|
-
campo: exports.EnumCampoTributo.ValorBruto,
|
|
29185
|
-
disabled: true
|
|
29186
|
-
},
|
|
29187
|
-
{ campo: exports.EnumCampoTributo.ReducaoAliquota },
|
|
29188
|
-
{
|
|
29189
|
-
campo: exports.EnumCampoTributo.ReducaoAliquotaGovernamental
|
|
29190
|
-
},
|
|
29191
|
-
{
|
|
29192
|
-
campo: exports.EnumCampoTributo.AliquotaEfetiva,
|
|
29193
|
-
disabled: true
|
|
29194
|
-
},
|
|
29195
|
-
{ campo: exports.EnumCampoTributo.Valor, disabled: true }
|
|
30930
|
+
__assign({ name: exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR, label: 'erpx.tributos.enum_tipo_tributo_ibs_municipal_a_apropriar' }, this.montaCampos([
|
|
30931
|
+
{ campo: exports.EnumCampoTributo.BaseCalculo },
|
|
30932
|
+
{ campo: exports.EnumCampoTributo.Aliquota },
|
|
30933
|
+
{
|
|
30934
|
+
campo: exports.EnumCampoTributo.Valor,
|
|
30935
|
+
disabled: true
|
|
30936
|
+
}
|
|
30937
|
+
], exports.EnumTipoTributo.IBS_MUNICIPAL_A_APROPRIAR))
|
|
29196
30938
|
]
|
|
29197
|
-
: [
|
|
29198
|
-
{
|
|
29199
|
-
campo: exports.EnumCampoTributo.BaseCalculo,
|
|
29200
|
-
grupo: exports.EnumGrupoTributo.IBS_MUNICIPAL
|
|
29201
|
-
},
|
|
29202
|
-
{
|
|
29203
|
-
campo: exports.EnumCampoTributo.Aliquota,
|
|
29204
|
-
grupo: exports.EnumGrupoTributo.IBS_MUNICIPAL
|
|
29205
|
-
},
|
|
29206
|
-
{
|
|
29207
|
-
campo: exports.EnumCampoTributo.ValorBruto,
|
|
29208
|
-
disabled: true
|
|
29209
|
-
},
|
|
29210
|
-
{ campo: exports.EnumCampoTributo.ReducaoAliquota },
|
|
29211
|
-
{
|
|
29212
|
-
campo: exports.EnumCampoTributo.ReducaoAliquotaGovernamental
|
|
29213
|
-
},
|
|
29214
|
-
{
|
|
29215
|
-
campo: exports.EnumCampoTributo.AliquotaEfetiva,
|
|
29216
|
-
disabled: true
|
|
29217
|
-
},
|
|
29218
|
-
{ campo: exports.EnumCampoTributo.Valor },
|
|
29219
|
-
{ campo: exports.EnumCampoTributo.SituacaoTributaria },
|
|
29220
|
-
{
|
|
29221
|
-
campo: exports.EnumCampoTributo.ClassificacaoTributaria
|
|
29222
|
-
},
|
|
29223
|
-
{
|
|
29224
|
-
campo: exports.EnumCampoTributo.AplicarValorLiquidoDocumento,
|
|
29225
|
-
grupo: exports.EnumGrupoTributo.IBS_MUNICIPAL
|
|
29226
|
-
}
|
|
29227
|
-
], exports.EnumTipoTributo.IBS_MUNICIPAL)), __assign({ name: exports.EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO, label: 'erpx.tributos.enum_tipo_tributo_ibs_municipal_diferido' }, this.montaCampos([
|
|
29228
|
-
{ campo: exports.EnumCampoTributo.BaseCalculo },
|
|
29229
|
-
{ campo: exports.EnumCampoTributo.Aliquota },
|
|
29230
|
-
{ campo: exports.EnumCampoTributo.Valor, disabled: true }
|
|
29231
|
-
], exports.EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO)), __assign({ name: exports.EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR, label: 'erpx.tributos.enum_tipo_tributo_ibs_municipal_tributacao_regular' }, this.montaCampos(this.context.document === 'Sale Order' ||
|
|
29232
|
-
this.context.document === 'Purchase Order'
|
|
29233
|
-
? [
|
|
30939
|
+
: []), [__assign({ name: exports.EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO, label: 'erpx.tributos.enum_tipo_tributo_ibs_municipal_diferido' }, this.montaCampos([
|
|
29234
30940
|
{ campo: exports.EnumCampoTributo.BaseCalculo },
|
|
29235
30941
|
{ campo: exports.EnumCampoTributo.Aliquota },
|
|
29236
30942
|
{ campo: exports.EnumCampoTributo.Valor, disabled: true }
|
|
29237
|
-
]
|
|
29238
|
-
|
|
30943
|
+
], exports.EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO)), __assign({ name: exports.EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR, label: 'erpx.tributos.enum_tipo_tributo_ibs_municipal_tributacao_regular' }, this.montaCampos(this.context.document === 'Sale Order' ||
|
|
30944
|
+
this.context.document === 'Purchase Order'
|
|
30945
|
+
? [
|
|
30946
|
+
{ campo: exports.EnumCampoTributo.BaseCalculo },
|
|
30947
|
+
{ campo: exports.EnumCampoTributo.Aliquota },
|
|
30948
|
+
{ campo: exports.EnumCampoTributo.Valor, disabled: true }
|
|
30949
|
+
]
|
|
30950
|
+
: [
|
|
30951
|
+
{ campo: exports.EnumCampoTributo.BaseCalculo },
|
|
30952
|
+
{ campo: exports.EnumCampoTributo.Aliquota },
|
|
30953
|
+
{ campo: exports.EnumCampoTributo.Valor, disabled: true },
|
|
30954
|
+
{ campo: exports.EnumCampoTributo.SituacaoTributaria },
|
|
30955
|
+
{
|
|
30956
|
+
campo: exports.EnumCampoTributo.ClassificacaoTributaria
|
|
30957
|
+
}
|
|
30958
|
+
], exports.EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR)), __assign({ name: exports.EnumTipoTributo.IBS_MUNICIPAL_GOVERNAMENTAL, label: 'erpx.tributos.enum_tipo_tributo_ibs_municipal_governamental' }, this.montaCampos([
|
|
29239
30959
|
{ campo: exports.EnumCampoTributo.BaseCalculo },
|
|
29240
30960
|
{ campo: exports.EnumCampoTributo.Aliquota },
|
|
29241
|
-
{ campo: exports.EnumCampoTributo.Valor, disabled: true }
|
|
29242
|
-
|
|
29243
|
-
{
|
|
29244
|
-
campo: exports.EnumCampoTributo.ClassificacaoTributaria
|
|
29245
|
-
}
|
|
29246
|
-
], exports.EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR)), __assign({ name: exports.EnumTipoTributo.IBS_MUNICIPAL_GOVERNAMENTAL, label: 'erpx.tributos.enum_tipo_tributo_ibs_municipal_governamental' }, this.montaCampos([
|
|
29247
|
-
{ campo: exports.EnumCampoTributo.BaseCalculo },
|
|
29248
|
-
{ campo: exports.EnumCampoTributo.Aliquota },
|
|
29249
|
-
{ campo: exports.EnumCampoTributo.Valor, disabled: true }
|
|
29250
|
-
], exports.EnumTipoTributo.IBS_MUNICIPAL_GOVERNAMENTAL)));
|
|
30961
|
+
{ campo: exports.EnumCampoTributo.Valor, disabled: true }
|
|
30962
|
+
], exports.EnumTipoTributo.IBS_MUNICIPAL_GOVERNAMENTAL))]));
|
|
29251
30963
|
this.grupos.unshift({
|
|
29252
30964
|
grupo: "" + ('erpx.tributos.enum_grupo_tributo_' + exports.EnumGrupoTributo.IBS_MUNICIPAL + '_label'),
|
|
29253
30965
|
grupoTributo: exports.EnumGrupoTributo.IBS_MUNICIPAL,
|
|
@@ -31874,6 +33586,10 @@
|
|
|
31874
33586
|
return (this.context.document === 'Incoming Invoice' ||
|
|
31875
33587
|
this.context.document === 'Outgoing Invoice');
|
|
31876
33588
|
};
|
|
33589
|
+
ErpTributosComponent.prototype.isAccrualTaxDocument = function () {
|
|
33590
|
+
return (this.context.document === 'Incoming Invoice' ||
|
|
33591
|
+
this.context.document === 'Purchase Order');
|
|
33592
|
+
};
|
|
31877
33593
|
ErpTributosComponent.prototype.isFieldRequired = function (field, taxType) {
|
|
31878
33594
|
var _a, _b, _c;
|
|
31879
33595
|
var item = this.grupos
|
|
@@ -35148,55 +36864,57 @@
|
|
|
35148
36864
|
exports.nonNullish = nonNullish;
|
|
35149
36865
|
exports.ɵa = ErpResumoComponent;
|
|
35150
36866
|
exports.ɵb = ErpResumoService;
|
|
35151
|
-
exports.ɵba =
|
|
35152
|
-
exports.ɵbb =
|
|
35153
|
-
exports.ɵbc =
|
|
35154
|
-
exports.ɵbd =
|
|
35155
|
-
exports.ɵbe =
|
|
35156
|
-
exports.ɵbf =
|
|
35157
|
-
exports.ɵbg =
|
|
35158
|
-
exports.ɵbh =
|
|
35159
|
-
exports.ɵbi =
|
|
35160
|
-
exports.ɵbj =
|
|
35161
|
-
exports.ɵbk =
|
|
35162
|
-
exports.ɵbl =
|
|
35163
|
-
exports.ɵbm =
|
|
35164
|
-
exports.ɵbn =
|
|
35165
|
-
exports.ɵbo =
|
|
35166
|
-
exports.ɵbp =
|
|
35167
|
-
exports.ɵbq =
|
|
35168
|
-
exports.ɵbr =
|
|
35169
|
-
exports.ɵbs =
|
|
35170
|
-
exports.ɵbt =
|
|
35171
|
-
exports.ɵbu =
|
|
35172
|
-
exports.ɵbv =
|
|
35173
|
-
exports.ɵbw =
|
|
35174
|
-
exports.ɵbx =
|
|
35175
|
-
exports.ɵby =
|
|
36867
|
+
exports.ɵba = CalculationRulesRegistry;
|
|
36868
|
+
exports.ɵbb = IncomingInvoiceCalculationRulesRegistry;
|
|
36869
|
+
exports.ɵbc = TaxableBaseCalculationRule;
|
|
36870
|
+
exports.ɵbd = TaxAmountCalculator;
|
|
36871
|
+
exports.ɵbe = EffectiveTaxRateCalculator;
|
|
36872
|
+
exports.ɵbf = TaxRoundingService;
|
|
36873
|
+
exports.ɵbg = TaxStore;
|
|
36874
|
+
exports.ɵbh = TaxRateCalculationRule;
|
|
36875
|
+
exports.ɵbi = EffectiveTaxRateCalculationRule;
|
|
36876
|
+
exports.ɵbj = TaxAmountCalculationRule;
|
|
36877
|
+
exports.ɵbk = GrossAmountCalculationRule;
|
|
36878
|
+
exports.ɵbl = GrossAmountCalculator;
|
|
36879
|
+
exports.ɵbm = TaxSituationCalculationRule;
|
|
36880
|
+
exports.ɵbn = TaxClassificationCalculationRule;
|
|
36881
|
+
exports.ɵbo = TaxCalculationTypeCalculationRule;
|
|
36882
|
+
exports.ɵbp = ApplyNetValueToDocumentCalculationRule;
|
|
36883
|
+
exports.ɵbq = ManualTaxCalculationRule;
|
|
36884
|
+
exports.ɵbr = OutgoingInvoiceCalculationRulesRegistry;
|
|
36885
|
+
exports.ɵbs = AssessmentPeriodCalculationRule;
|
|
36886
|
+
exports.ɵbt = SaleOrderCalculationRulesRegistry;
|
|
36887
|
+
exports.ɵbu = PurchaseOrderCalculationRulesRegistry;
|
|
36888
|
+
exports.ɵbv = FocusService;
|
|
36889
|
+
exports.ɵbw = ErpLoteSeriesService;
|
|
36890
|
+
exports.ɵbx = QuantidadeDisponivelDemandaService;
|
|
36891
|
+
exports.ɵby = EntityService;
|
|
36892
|
+
exports.ɵbz = QuantidadeDisponivelDemandaModule;
|
|
35176
36893
|
exports.ɵc = LoadingContext;
|
|
36894
|
+
exports.ɵca = ErpRateioEditorService;
|
|
35177
36895
|
exports.ɵd = ErpTributosService;
|
|
35178
36896
|
exports.ɵe = RulesService;
|
|
35179
36897
|
exports.ɵf = StatusRulesRegistry;
|
|
35180
36898
|
exports.ɵg = IncomingInvoiceStatusRulesRegistry;
|
|
35181
36899
|
exports.ɵh = TaxClassificationStatusRule;
|
|
35182
36900
|
exports.ɵi = ApplyNetValueToDocumentStatusRule;
|
|
35183
|
-
exports.ɵj =
|
|
35184
|
-
exports.ɵk =
|
|
35185
|
-
exports.ɵl =
|
|
35186
|
-
exports.ɵm =
|
|
35187
|
-
exports.ɵn =
|
|
35188
|
-
exports.ɵo =
|
|
35189
|
-
exports.ɵp =
|
|
35190
|
-
exports.ɵq =
|
|
35191
|
-
exports.ɵr =
|
|
35192
|
-
exports.ɵs =
|
|
35193
|
-
exports.ɵt =
|
|
35194
|
-
exports.ɵu =
|
|
35195
|
-
exports.ɵv =
|
|
35196
|
-
exports.ɵw =
|
|
35197
|
-
exports.ɵx =
|
|
35198
|
-
exports.ɵy =
|
|
35199
|
-
exports.ɵz =
|
|
36901
|
+
exports.ɵj = TaxableBaseStatusRule;
|
|
36902
|
+
exports.ɵk = TaxRateStatusRule;
|
|
36903
|
+
exports.ɵl = OutgoingInvoiceStatusRulesRegistry;
|
|
36904
|
+
exports.ɵm = SaleOrderStatusRulesRegistry;
|
|
36905
|
+
exports.ɵn = PurchaseOrderStatusRulesRegistry;
|
|
36906
|
+
exports.ɵo = ValidationRulesRegistry;
|
|
36907
|
+
exports.ɵp = IncomingInvoiceValidationRulesRegistry;
|
|
36908
|
+
exports.ɵq = TaxableBaseRequiredValidationRule;
|
|
36909
|
+
exports.ɵr = TaxRateRequiredValidationRule;
|
|
36910
|
+
exports.ɵs = TaxClassificationRequiredValidationRule;
|
|
36911
|
+
exports.ɵt = TaxAmountRequiredValidationRule;
|
|
36912
|
+
exports.ɵu = TaxSituationRequiredValidationRule;
|
|
36913
|
+
exports.ɵv = ApplyNetValueToDocumentRequiredValidationRule;
|
|
36914
|
+
exports.ɵw = OutgoingInvoiceValidationRulesRegistry;
|
|
36915
|
+
exports.ɵx = AssessmentPeriodRequiredValidationRule;
|
|
36916
|
+
exports.ɵy = SaleOrderValidationRulesRegistry;
|
|
36917
|
+
exports.ɵz = PurchaseOrderValidationRulesRegistry;
|
|
35200
36918
|
|
|
35201
36919
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
35202
36920
|
|