@senior-gestao-empresarial/erpx-components 3.33.0 → 3.34.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 +5 -141
- 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 -6
- package/esm2015/components/tributos/erp-tributos.component.js +3 -31
- package/esm2015/components/tributos/rules/calculation/calculation-rules.registry.js +1 -41
- package/esm2015/components/tributos/rules/calculation/taxable-base-calculation-rule.js +1 -61
- package/esm5/components/tributos/erp-tributos.component.js +3 -32
- package/esm5/components/tributos/rules/calculation/calculation-rules.registry.js +1 -41
- package/esm5/components/tributos/rules/calculation/taxable-base-calculation-rule.js +1 -69
- package/fesm2015/senior-gestao-empresarial-erpx-components.js +3 -130
- package/fesm2015/senior-gestao-empresarial-erpx-components.js.map +1 -1
- package/fesm5/senior-gestao-empresarial-erpx-components.js +3 -139
- package/fesm5/senior-gestao-empresarial-erpx-components.js.map +1 -1
- package/package.json +1 -1
- package/senior-gestao-empresarial-erpx-components.metadata.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('primeng/breadcrumb'), require('@angular/router'), require('rxjs'), require('rxjs/operators'), require('@ngx-translate/core'), require('@senior-gestao-empresarial/angular-components'), require('@seniorsistemas/angular-components'), require('primeng/accordion'), require('@angular/forms'), require('@seniorsistemas/platform-
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@senior-gestao-empresarial/erpx-components', ['exports', '@angular/core', '@angular/common', 'primeng/breadcrumb', '@angular/router', 'rxjs', 'rxjs/operators', '@ngx-translate/core', '@senior-gestao-empresarial/angular-components', '@seniorsistemas/angular-components', 'primeng/accordion', '@angular/forms', '@seniorsistemas/platform-
|
|
4
|
-
(global = global || self, factory((global['senior-gestao-empresarial'] = global['senior-gestao-empresarial'] || {}, global['senior-gestao-empresarial']['erpx-components'] = {}), global.ng.core, global.ng.common, global.breadcrumb, global.ng.router, global.rxjs, global.rxjs.operators, global.core$1, global.angularComponents, global.angularComponents$1, global.accordion, global.ng.forms, global.
|
|
5
|
-
}(this, (function (exports, core, common, breadcrumb, router, rxjs, operators, core$1, angularComponents, angularComponents$1, accordion, forms,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('primeng/breadcrumb'), require('@angular/router'), require('rxjs'), require('rxjs/operators'), require('@ngx-translate/core'), require('@senior-gestao-empresarial/angular-components'), require('@seniorsistemas/angular-components'), require('primeng/accordion'), require('@angular/forms'), require('@seniorsistemas/platform-utils'), require('bignumber.js'), require('primeng/api'), require('@angular/common/http'), require('primeng'), require('primeng/confirmdialog'), require('primeng/messages'), require('primeng/panel'), require('primeng/table'), require('primeng/tabview'), require('@seniorsistemas/platform-components'), require('moment')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@senior-gestao-empresarial/erpx-components', ['exports', '@angular/core', '@angular/common', 'primeng/breadcrumb', '@angular/router', 'rxjs', 'rxjs/operators', '@ngx-translate/core', '@senior-gestao-empresarial/angular-components', '@seniorsistemas/angular-components', 'primeng/accordion', '@angular/forms', '@seniorsistemas/platform-utils', 'bignumber.js', 'primeng/api', '@angular/common/http', 'primeng', 'primeng/confirmdialog', 'primeng/messages', 'primeng/panel', 'primeng/table', 'primeng/tabview', '@seniorsistemas/platform-components', 'moment'], factory) :
|
|
4
|
+
(global = global || self, factory((global['senior-gestao-empresarial'] = global['senior-gestao-empresarial'] || {}, global['senior-gestao-empresarial']['erpx-components'] = {}), global.ng.core, global.ng.common, global.breadcrumb, global.ng.router, global.rxjs, global.rxjs.operators, global.core$1, global.angularComponents, global.angularComponents$1, global.accordion, global.ng.forms, global.platformUtils, global.BigNumber, global.api, global.ng.common.http, global.primeng, global.confirmdialog, global.messages, global.panel, global.table, global.tabview, global.platformComponents, global.moment));
|
|
5
|
+
}(this, (function (exports, core, common, breadcrumb, router, rxjs, operators, core$1, angularComponents, angularComponents$1, accordion, forms, platformUtils, BigNumber, api, http, primeng, confirmdialog, messages, panel, table, tabview, platformComponents, moment) { 'use strict';
|
|
6
6
|
|
|
7
7
|
BigNumber = BigNumber && Object.prototype.hasOwnProperty.call(BigNumber, 'default') ? BigNumber['default'] : BigNumber;
|
|
8
8
|
|
|
@@ -1844,74 +1844,6 @@
|
|
|
1844
1844
|
}
|
|
1845
1845
|
}
|
|
1846
1846
|
break;
|
|
1847
|
-
case exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO:
|
|
1848
|
-
{
|
|
1849
|
-
switch (documentType) {
|
|
1850
|
-
case exports.EnumTipoDocumento.NF_ENTRADA:
|
|
1851
|
-
case exports.EnumTipoDocumento.NF_ENTRADA_AJUSTE:
|
|
1852
|
-
case exports.EnumTipoDocumento.NF_ENTRADA_COMPLEMENTAR:
|
|
1853
|
-
case exports.EnumTipoDocumento.NF_ENTRADA_CREDITO:
|
|
1854
|
-
case exports.EnumTipoDocumento.NF_SAIDA:
|
|
1855
|
-
case exports.EnumTipoDocumento.NF_SAIDA_AJUSTE:
|
|
1856
|
-
case exports.EnumTipoDocumento.NF_SAIDA_COMPLEMENTAR:
|
|
1857
|
-
case exports.EnumTipoDocumento.NF_SAIDA_DEBITO:
|
|
1858
|
-
{
|
|
1859
|
-
var baseTaxFormGroup = getBaseTaxItemFromGroup({ group: group }).formGroup;
|
|
1860
|
-
var dataKey_1 = formField.find(function (field) { return field.name === 'classificacaoTributaria'; }).dataKey;
|
|
1861
|
-
rxjs.combineLatest([
|
|
1862
|
-
baseTaxFormGroup
|
|
1863
|
-
.get('valor')
|
|
1864
|
-
.valueChanges.pipe(operators.startWith(baseTaxFormGroup.get('valor').value), operators.distinctUntilChanged()),
|
|
1865
|
-
formGroup
|
|
1866
|
-
.get('aliquota')
|
|
1867
|
-
.valueChanges.pipe(operators.startWith(formGroup.get('aliquota').value), operators.distinctUntilChanged()),
|
|
1868
|
-
formGroup.get('classificacaoTributaria').valueChanges.pipe(operators.startWith(formGroup.get('classificacaoTributaria').value), operators.distinctUntilChanged(function (old, current) { return (old === null || old === void 0 ? void 0 : old[dataKey_1]) === (current === null || current === void 0 ? void 0 : current[dataKey_1]); }))
|
|
1869
|
-
])
|
|
1870
|
-
.pipe(operators.skip(1), operators.map(function (_a) {
|
|
1871
|
-
var _b = __read(_a, 3), baseTaxTaxAmount = _b[0], taxRate = _b[1], taxClassification = _b[2];
|
|
1872
|
-
return [new BigNumber(baseTaxTaxAmount), new BigNumber(taxRate), taxClassification];
|
|
1873
|
-
}), operators.map(function (_a) {
|
|
1874
|
-
var _b = __read(_a, 3), baseTaxTaxAmount = _b[0], taxRate = _b[1], taxClassification = _b[2];
|
|
1875
|
-
if (taxRate.isNaN() && !taxClassification)
|
|
1876
|
-
return null;
|
|
1877
|
-
return baseTaxTaxAmount.decimalPlaces(2).toNumber();
|
|
1878
|
-
}), operators.filter(function (taxableBase) { return taxableBase !== formGroup.get('baseCalculo').value; }))
|
|
1879
|
-
.subscribe(function (taxableBase) {
|
|
1880
|
-
formGroup.get('baseCalculo').setValue(taxableBase);
|
|
1881
|
-
});
|
|
1882
|
-
}
|
|
1883
|
-
break;
|
|
1884
|
-
case exports.EnumTipoDocumento.PEDIDO_COMPRA:
|
|
1885
|
-
case exports.EnumTipoDocumento.PEDIDO_VENDA:
|
|
1886
|
-
{
|
|
1887
|
-
var baseTaxFormGroup = getBaseTaxItemFromGroup({ group: group }).formGroup;
|
|
1888
|
-
rxjs.combineLatest([
|
|
1889
|
-
baseTaxFormGroup
|
|
1890
|
-
.get('valor')
|
|
1891
|
-
.valueChanges.pipe(operators.startWith(baseTaxFormGroup.get('valor').value), operators.distinctUntilChanged()),
|
|
1892
|
-
formGroup
|
|
1893
|
-
.get('aliquota')
|
|
1894
|
-
.valueChanges.pipe(operators.startWith(formGroup.get('aliquota').value), operators.distinctUntilChanged())
|
|
1895
|
-
])
|
|
1896
|
-
.pipe(operators.skip(1), operators.filter(function () { return new BigNumber(formGroup.get('baseCalculo').value).isNaN(); }), operators.map(function (_a) {
|
|
1897
|
-
var _b = __read(_a, 2), baseTaxTaxAmount = _b[0], taxRate = _b[1];
|
|
1898
|
-
return [new BigNumber(baseTaxTaxAmount), new BigNumber(taxRate)];
|
|
1899
|
-
}), operators.map(function (_a) {
|
|
1900
|
-
var _b = __read(_a, 2), baseTaxTaxAmount = _b[0], taxRate = _b[1];
|
|
1901
|
-
if (taxRate.isNaN())
|
|
1902
|
-
return null;
|
|
1903
|
-
return baseTaxTaxAmount.decimalPlaces(2).toNumber();
|
|
1904
|
-
}), operators.filter(function (taxableBase) { return taxableBase !== formGroup.get('baseCalculo').value; }))
|
|
1905
|
-
.subscribe(function (taxableBase) {
|
|
1906
|
-
formGroup.get('baseCalculo').setValue(taxableBase);
|
|
1907
|
-
});
|
|
1908
|
-
}
|
|
1909
|
-
break;
|
|
1910
|
-
default:
|
|
1911
|
-
throw new Error("Regra TaxableBaseCalculationRule n\u00E3o implementada para o imposto " + taxType + ", documento " + documentType + ".");
|
|
1912
|
-
}
|
|
1913
|
-
}
|
|
1914
|
-
break;
|
|
1915
1847
|
case exports.EnumTipoTributo.CBS_TRIBUTACAO_REGULAR:
|
|
1916
1848
|
case exports.EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR:
|
|
1917
1849
|
case exports.EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR:
|
|
@@ -2101,10 +2033,6 @@
|
|
|
2101
2033
|
}
|
|
2102
2034
|
],
|
|
2103
2035
|
_b[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
|
|
2104
|
-
{
|
|
2105
|
-
field: exports.EnumCampoTributo.BaseCalculo,
|
|
2106
|
-
rule: this.taxableBaseCalculationRule
|
|
2107
|
-
},
|
|
2108
2036
|
{
|
|
2109
2037
|
field: exports.EnumCampoTributo.Valor,
|
|
2110
2038
|
rule: this.taxAmountCalculationRule
|
|
@@ -2325,10 +2253,6 @@
|
|
|
2325
2253
|
}
|
|
2326
2254
|
],
|
|
2327
2255
|
_c[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
|
|
2328
|
-
{
|
|
2329
|
-
field: exports.EnumCampoTributo.BaseCalculo,
|
|
2330
|
-
rule: this.taxableBaseCalculationRule
|
|
2331
|
-
},
|
|
2332
2256
|
{
|
|
2333
2257
|
field: exports.EnumCampoTributo.Valor,
|
|
2334
2258
|
rule: this.taxAmountCalculationRule
|
|
@@ -2549,10 +2473,6 @@
|
|
|
2549
2473
|
}
|
|
2550
2474
|
],
|
|
2551
2475
|
_d[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
|
|
2552
|
-
{
|
|
2553
|
-
field: exports.EnumCampoTributo.BaseCalculo,
|
|
2554
|
-
rule: this.taxableBaseCalculationRule
|
|
2555
|
-
},
|
|
2556
2476
|
{
|
|
2557
2477
|
field: exports.EnumCampoTributo.Valor,
|
|
2558
2478
|
rule: this.taxAmountCalculationRule
|
|
@@ -2773,10 +2693,6 @@
|
|
|
2773
2693
|
}
|
|
2774
2694
|
],
|
|
2775
2695
|
_e[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
|
|
2776
|
-
{
|
|
2777
|
-
field: exports.EnumCampoTributo.BaseCalculo,
|
|
2778
|
-
rule: this.taxableBaseCalculationRule
|
|
2779
|
-
},
|
|
2780
2696
|
{
|
|
2781
2697
|
field: exports.EnumCampoTributo.Valor,
|
|
2782
2698
|
rule: this.taxAmountCalculationRule
|
|
@@ -2997,10 +2913,6 @@
|
|
|
2997
2913
|
}
|
|
2998
2914
|
],
|
|
2999
2915
|
_f[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
|
|
3000
|
-
{
|
|
3001
|
-
field: exports.EnumCampoTributo.BaseCalculo,
|
|
3002
|
-
rule: this.taxableBaseCalculationRule
|
|
3003
|
-
},
|
|
3004
2916
|
{
|
|
3005
2917
|
field: exports.EnumCampoTributo.Valor,
|
|
3006
2918
|
rule: this.taxAmountCalculationRule
|
|
@@ -3217,10 +3129,6 @@
|
|
|
3217
3129
|
}
|
|
3218
3130
|
],
|
|
3219
3131
|
_g[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
|
|
3220
|
-
{
|
|
3221
|
-
field: exports.EnumCampoTributo.BaseCalculo,
|
|
3222
|
-
rule: this.taxableBaseCalculationRule
|
|
3223
|
-
},
|
|
3224
3132
|
{
|
|
3225
3133
|
field: exports.EnumCampoTributo.Valor,
|
|
3226
3134
|
rule: this.taxAmountCalculationRule
|
|
@@ -3437,10 +3345,6 @@
|
|
|
3437
3345
|
}
|
|
3438
3346
|
],
|
|
3439
3347
|
_h[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
|
|
3440
|
-
{
|
|
3441
|
-
field: exports.EnumCampoTributo.BaseCalculo,
|
|
3442
|
-
rule: this.taxableBaseCalculationRule
|
|
3443
|
-
},
|
|
3444
3348
|
{
|
|
3445
3349
|
field: exports.EnumCampoTributo.Valor,
|
|
3446
3350
|
rule: this.taxAmountCalculationRule
|
|
@@ -3657,10 +3561,6 @@
|
|
|
3657
3561
|
}
|
|
3658
3562
|
],
|
|
3659
3563
|
_j[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
|
|
3660
|
-
{
|
|
3661
|
-
field: exports.EnumCampoTributo.BaseCalculo,
|
|
3662
|
-
rule: this.taxableBaseCalculationRule
|
|
3663
|
-
},
|
|
3664
3564
|
{
|
|
3665
3565
|
field: exports.EnumCampoTributo.Valor,
|
|
3666
3566
|
rule: this.taxAmountCalculationRule
|
|
@@ -3873,10 +3773,6 @@
|
|
|
3873
3773
|
}
|
|
3874
3774
|
],
|
|
3875
3775
|
_k[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
|
|
3876
|
-
{
|
|
3877
|
-
field: exports.EnumCampoTributo.BaseCalculo,
|
|
3878
|
-
rule: this.taxableBaseCalculationRule
|
|
3879
|
-
},
|
|
3880
3776
|
{
|
|
3881
3777
|
field: exports.EnumCampoTributo.Valor,
|
|
3882
3778
|
rule: this.taxAmountCalculationRule
|
|
@@ -4069,10 +3965,6 @@
|
|
|
4069
3965
|
}
|
|
4070
3966
|
],
|
|
4071
3967
|
_l[exports.EnumTipoTributo.CBS_CREDITO_PRESUMIDO] = [
|
|
4072
|
-
{
|
|
4073
|
-
field: exports.EnumCampoTributo.BaseCalculo,
|
|
4074
|
-
rule: this.taxableBaseCalculationRule
|
|
4075
|
-
},
|
|
4076
3968
|
{
|
|
4077
3969
|
field: exports.EnumCampoTributo.Valor,
|
|
4078
3970
|
rule: this.taxAmountCalculationRule
|
|
@@ -9876,7 +9768,7 @@
|
|
|
9876
9768
|
}());
|
|
9877
9769
|
|
|
9878
9770
|
var ErpTributosComponent = /** @class */ (function () {
|
|
9879
|
-
function ErpTributosComponent(messageService, formBuilder, changeDetector, translate, e027StrLookup, beneficioFiscalLookup, e027eqiLookup, naturezaReceitaLookup, classificacaoTributariaLookup, lookupUtils, erpTributosService, gtag,
|
|
9771
|
+
function ErpTributosComponent(messageService, formBuilder, changeDetector, translate, e027StrLookup, beneficioFiscalLookup, e027eqiLookup, naturezaReceitaLookup, classificacaoTributariaLookup, lookupUtils, erpTributosService, gtag, rulesService) {
|
|
9880
9772
|
this.messageService = messageService;
|
|
9881
9773
|
this.formBuilder = formBuilder;
|
|
9882
9774
|
this.changeDetector = changeDetector;
|
|
@@ -9889,7 +9781,6 @@
|
|
|
9889
9781
|
this.lookupUtils = lookupUtils;
|
|
9890
9782
|
this.erpTributosService = erpTributosService;
|
|
9891
9783
|
this.gtag = gtag;
|
|
9892
|
-
this.featureToggleService = featureToggleService;
|
|
9893
9784
|
this.rulesService = rulesService;
|
|
9894
9785
|
this.BadgeColors = angularComponents$1.BadgeColors;
|
|
9895
9786
|
this.ButtonPriority = angularComponents$1.ButtonPriority;
|
|
@@ -9900,7 +9791,6 @@
|
|
|
9900
9791
|
this.reload = true;
|
|
9901
9792
|
this.indexAccordion = [];
|
|
9902
9793
|
this.isLoading = false;
|
|
9903
|
-
this.featureReformaTributaria = false;
|
|
9904
9794
|
this.menuItemPis = false;
|
|
9905
9795
|
this.menuItemCofins = false;
|
|
9906
9796
|
this.menuItemIpi = false;
|
|
@@ -9987,7 +9877,6 @@
|
|
|
9987
9877
|
configurable: true
|
|
9988
9878
|
});
|
|
9989
9879
|
ErpTributosComponent.prototype.ngOnInit = function () {
|
|
9990
|
-
this.getEnabledFeatures();
|
|
9991
9880
|
this.menuItemPis = false;
|
|
9992
9881
|
this.menuItemCofins = false;
|
|
9993
9882
|
this.menuItemIpi = false;
|
|
@@ -10668,7 +10557,6 @@
|
|
|
10668
10557
|
menu.push({
|
|
10669
10558
|
label: this.translate.instant('erpx.tributos.actions_cbs_label'),
|
|
10670
10559
|
disabled: this.menuItemCBS,
|
|
10671
|
-
visible: this.isFeatureReformaTributariaActive(),
|
|
10672
10560
|
command: function () {
|
|
10673
10561
|
(_this.montaCBS().forEach(function (value) {
|
|
10674
10562
|
_this.novoImpostoManual(value);
|
|
@@ -10684,7 +10572,6 @@
|
|
|
10684
10572
|
}, {
|
|
10685
10573
|
label: this.translate.instant('erpx.tributos.actions_ibs_estadual_label'),
|
|
10686
10574
|
disabled: this.menuItemIBSEstadual,
|
|
10687
|
-
visible: this.isFeatureReformaTributariaActive(),
|
|
10688
10575
|
command: function () {
|
|
10689
10576
|
(_this.montaIBSEstadual().forEach(function (value) {
|
|
10690
10577
|
_this.novoImpostoManual(value);
|
|
@@ -10700,7 +10587,6 @@
|
|
|
10700
10587
|
}, {
|
|
10701
10588
|
label: this.translate.instant('erpx.tributos.actions_ibs_municipal_label'),
|
|
10702
10589
|
disabled: this.menuItemIBSMunicipal,
|
|
10703
|
-
visible: this.isFeatureReformaTributariaActive(),
|
|
10704
10590
|
command: function () {
|
|
10705
10591
|
(_this.montaIBSMunicipal().forEach(function (value) {
|
|
10706
10592
|
_this.novoImpostoManual(value);
|
|
@@ -10716,7 +10602,6 @@
|
|
|
10716
10602
|
}, {
|
|
10717
10603
|
label: this.translate.instant('erpx.tributos.actions_ibs_credito_presumido_label'),
|
|
10718
10604
|
disabled: this.menuItemIBSCreditoPresumido,
|
|
10719
|
-
visible: this.isFeatureReformaTributariaActive(),
|
|
10720
10605
|
command: function () {
|
|
10721
10606
|
(_this.montaIBSCreditoPresumido().forEach(function (value) {
|
|
10722
10607
|
_this.novoImpostoManual(value);
|
|
@@ -10732,7 +10617,6 @@
|
|
|
10732
10617
|
}, {
|
|
10733
10618
|
label: this.translate.instant('erpx.tributos.actions_is_label'),
|
|
10734
10619
|
disabled: this.menuItemIS,
|
|
10735
|
-
visible: this.isFeatureReformaTributariaActive(),
|
|
10736
10620
|
command: function () {
|
|
10737
10621
|
(_this.montaIS().forEach(function (value) {
|
|
10738
10622
|
_this.novoImpostoManual(value);
|
|
@@ -10881,9 +10765,6 @@
|
|
|
10881
10765
|
ErpTributosComponent.prototype.podeMostrarImpostos = function () {
|
|
10882
10766
|
return this.documento !== exports.EnumTipoDocumento.NF_ENTRADA_CREDITO && this.documento !== exports.EnumTipoDocumento.NF_SAIDA_DEBITO;
|
|
10883
10767
|
};
|
|
10884
|
-
ErpTributosComponent.prototype.isFeatureReformaTributariaActive = function () {
|
|
10885
|
-
return this.featureReformaTributaria;
|
|
10886
|
-
};
|
|
10887
10768
|
ErpTributosComponent.prototype.montaIcmsCreditoPresumido = function () {
|
|
10888
10769
|
if (this.menuItemIcmsCreditoPresumido)
|
|
10889
10770
|
return;
|
|
@@ -14146,22 +14027,6 @@
|
|
|
14146
14027
|
text: this.translate.instant('erpx.tributos.badge_tipo_calculo_imposto_info_sign_text_manual')
|
|
14147
14028
|
};
|
|
14148
14029
|
};
|
|
14149
|
-
ErpTributosComponent.prototype.getEnabledFeatures = function () {
|
|
14150
|
-
var _this = this;
|
|
14151
|
-
this.isLoading = true;
|
|
14152
|
-
this.featureToggleService
|
|
14153
|
-
.isEnabled({
|
|
14154
|
-
domain: 'erpx_cpl_imp',
|
|
14155
|
-
service: 'cadastros',
|
|
14156
|
-
name: 'featureReformaTributaria'
|
|
14157
|
-
})
|
|
14158
|
-
.pipe(operators.first(), operators.finalize(function () { return (_this.isLoading = false); }))
|
|
14159
|
-
.subscribe({
|
|
14160
|
-
next: function (featureReformaTributaria) {
|
|
14161
|
-
_this.featureReformaTributaria = featureReformaTributaria;
|
|
14162
|
-
}
|
|
14163
|
-
});
|
|
14164
|
-
};
|
|
14165
14030
|
ErpTributosComponent.prototype.isInboundInvoiceDocument = function () {
|
|
14166
14031
|
return (this.documento === exports.EnumTipoDocumento.NF_ENTRADA ||
|
|
14167
14032
|
this.documento === exports.EnumTipoDocumento.NF_ENTRADA_AJUSTE ||
|
|
@@ -14210,7 +14075,6 @@
|
|
|
14210
14075
|
{ type: angularComponents.LookupValidationUtils },
|
|
14211
14076
|
{ type: ErpTributosService },
|
|
14212
14077
|
{ type: platformUtils.GTagService },
|
|
14213
|
-
{ type: platformComponents.FeatureToggleService },
|
|
14214
14078
|
{ type: RulesService }
|
|
14215
14079
|
]; };
|
|
14216
14080
|
__decorate([
|