@senior-gestao-empresarial/erpx-components 4.0.1 → 4.0.2-develop-21d58680
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 +792 -660
- 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 +12 -8
- package/components/tributos/erp-tributos.types.d.ts +5 -1
- package/components/tributos/index.d.ts +1 -0
- package/components/tributos/rules/calculation/registries/calculation-rules-registries/outgoing-invoice-calculation-rules.registry.d.ts +3 -1
- package/components/tributos/rules/calculation/rules/assessment-period-calculation-rule.d.ts +5 -0
- package/components/tributos/rules/status/registries/purchase-order-status-rules.registry.d.ts +8 -0
- package/components/tributos/rules/status/registries/sale-order-status-rules.registry.d.ts +8 -0
- package/components/tributos/rules/status/registries/status-rules.registry.d.ts +5 -1
- package/components/tributos/rules/types/schemas/outgoing-invoice.schema.d.ts +2 -0
- package/components/tributos/rules/validation/registries/outgoing-invoice-validation-rules.registry.d.ts +3 -1
- package/components/tributos/rules/validation/rules/required/assessment-period-required-validation-rule.d.ts +5 -0
- package/components/tributos/tax-reform-utilities.d.ts +1 -1
- package/components/tributos/types/debit-invoice-type.d.ts +1 -1
- package/components/tributos/types/tax.d.ts +8 -0
- package/esm2015/components/tributos/erp-tributos.component.js +134 -40
- package/esm2015/components/tributos/erp-tributos.types.js +5 -1
- package/esm2015/components/tributos/index.js +1 -1
- package/esm2015/components/tributos/mappings/enum-tip-imp-cst-mapping.js +3 -1
- package/esm2015/components/tributos/rules/calculation/registries/calculation-rules-registries/outgoing-invoice-calculation-rules.registry.js +44 -4
- package/esm2015/components/tributos/rules/calculation/rules/assessment-period-calculation-rule.js +55 -0
- package/esm2015/components/tributos/rules/calculation/rules/tax-amount-calculation-rule.js +17 -1
- package/esm2015/components/tributos/rules/calculation/rules/tax-classification-calculation-rule.js +35 -1
- package/esm2015/components/tributos/rules/calculation/rules/tax-situation-calculation-rule.js +37 -1
- package/esm2015/components/tributos/rules/status/registries/outgoing-invoice-status-rules.registry.js +13 -1
- package/esm2015/components/tributos/rules/status/registries/purchase-order-status-rules.registry.js +18 -0
- package/esm2015/components/tributos/rules/status/registries/sale-order-status-rules.registry.js +18 -0
- package/esm2015/components/tributos/rules/status/registries/status-rules.registry.js +16 -4
- package/esm2015/components/tributos/rules/status/rules/tax-classification-status-rule.js +3 -1
- package/esm2015/components/tributos/rules/types/schemas/outgoing-invoice.schema.js +13 -1
- package/esm2015/components/tributos/rules/validation/registries/outgoing-invoice-validation-rules.registry.js +44 -4
- package/esm2015/components/tributos/rules/validation/registries/sale-order-validation-rules.registry.js +8 -560
- package/esm2015/components/tributos/rules/validation/rules/required/assessment-period-required-validation-rule.js +78 -0
- package/esm2015/components/tributos/rules/validation/rules/required/tax-amount-required-validation-rule.js +51 -2
- package/esm2015/components/tributos/rules/validation/rules/required/tax-classification-required-validation-rule.js +48 -2
- package/esm2015/components/tributos/rules/validation/rules/required/tax-situation-required-validation-rule.js +48 -2
- package/esm2015/components/tributos/tax-reform-utilities.js +6 -2
- package/esm2015/components/tributos/types/debit-invoice-type.js +1 -1
- package/esm2015/components/tributos/types/tax.js +2 -0
- package/esm2015/senior-gestao-empresarial-erpx-components.js +37 -33
- package/esm5/components/tributos/erp-tributos.component.js +149 -47
- package/esm5/components/tributos/erp-tributos.types.js +5 -1
- package/esm5/components/tributos/index.js +1 -1
- package/esm5/components/tributos/mappings/enum-tip-imp-cst-mapping.js +3 -1
- package/esm5/components/tributos/rules/calculation/registries/calculation-rules-registries/outgoing-invoice-calculation-rules.registry.js +44 -4
- package/esm5/components/tributos/rules/calculation/rules/assessment-period-calculation-rule.js +77 -0
- package/esm5/components/tributos/rules/calculation/rules/tax-amount-calculation-rule.js +24 -1
- package/esm5/components/tributos/rules/calculation/rules/tax-classification-calculation-rule.js +59 -1
- package/esm5/components/tributos/rules/calculation/rules/tax-situation-calculation-rule.js +61 -1
- package/esm5/components/tributos/rules/status/registries/outgoing-invoice-status-rules.registry.js +13 -1
- package/esm5/components/tributos/rules/status/registries/purchase-order-status-rules.registry.js +19 -0
- package/esm5/components/tributos/rules/status/registries/sale-order-status-rules.registry.js +19 -0
- package/esm5/components/tributos/rules/status/registries/status-rules.registry.js +16 -4
- package/esm5/components/tributos/rules/status/rules/tax-classification-status-rule.js +3 -1
- package/esm5/components/tributos/rules/types/schemas/outgoing-invoice.schema.js +13 -1
- package/esm5/components/tributos/rules/validation/registries/outgoing-invoice-validation-rules.registry.js +44 -4
- package/esm5/components/tributos/rules/validation/registries/sale-order-validation-rules.registry.js +10 -562
- package/esm5/components/tributos/rules/validation/rules/required/assessment-period-required-validation-rule.js +86 -0
- package/esm5/components/tributos/rules/validation/rules/required/tax-amount-required-validation-rule.js +55 -2
- package/esm5/components/tributos/rules/validation/rules/required/tax-classification-required-validation-rule.js +52 -2
- package/esm5/components/tributos/rules/validation/rules/required/tax-situation-required-validation-rule.js +52 -2
- package/esm5/components/tributos/tax-reform-utilities.js +6 -2
- package/esm5/components/tributos/types/debit-invoice-type.js +1 -1
- package/esm5/components/tributos/types/tax.js +2 -0
- package/esm5/senior-gestao-empresarial-erpx-components.js +37 -33
- package/fesm2015/senior-gestao-empresarial-erpx-components.js +654 -633
- package/fesm2015/senior-gestao-empresarial-erpx-components.js.map +1 -1
- package/fesm5/senior-gestao-empresarial-erpx-components.js +754 -626
- package/fesm5/senior-gestao-empresarial-erpx-components.js.map +1 -1
- package/package.json +1 -1
- package/senior-gestao-empresarial-erpx-components.d.ts +36 -32
- package/senior-gestao-empresarial-erpx-components.metadata.json +1 -1
|
@@ -2,7 +2,7 @@ import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleCh
|
|
|
2
2
|
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
3
|
import { TranslateService } from '@ngx-translate/core';
|
|
4
4
|
import { BeneficioFiscalLookup, ClassificacaoTributariaLookup, CplTriNotaSaidaNaturezaReceitaPisCofinsLookup, E027EqiLookup, E027StrLookup, LookupValidationUtils } from '@senior-gestao-empresarial/angular-components';
|
|
5
|
-
import { BadgeColors, ButtonAnimation, ButtonPriority, ButtonSize, FormField } from '@seniorsistemas/angular-components';
|
|
5
|
+
import { BadgeColors, ButtonAnimation, ButtonPriority, ButtonSize, FormField, LocaleService } from '@seniorsistemas/angular-components';
|
|
6
6
|
import { GTagService } from '@seniorsistemas/platform-utils';
|
|
7
7
|
import { MenuItem, MessageService } from 'primeng/api';
|
|
8
8
|
import { ErpTributosService } from './erp-tributos.service';
|
|
@@ -10,6 +10,7 @@ import { Item, Sugestao, TaxCalculationMemory } from './erp-tributos.types';
|
|
|
10
10
|
import { RulesService } from './rules/rules.service';
|
|
11
11
|
import { Context } from './types/context';
|
|
12
12
|
import { Group } from './types/group';
|
|
13
|
+
import { Tax } from './types/tax';
|
|
13
14
|
export declare class ErpTributosComponent implements OnInit, OnChanges, OnDestroy {
|
|
14
15
|
private readonly messageService;
|
|
15
16
|
private readonly formBuilder;
|
|
@@ -24,23 +25,24 @@ export declare class ErpTributosComponent implements OnInit, OnChanges, OnDestro
|
|
|
24
25
|
private readonly erpTributosService;
|
|
25
26
|
private readonly gtag;
|
|
26
27
|
private readonly rulesService;
|
|
28
|
+
private readonly localeService;
|
|
27
29
|
context: Context;
|
|
28
30
|
sugestoes: Sugestao[];
|
|
29
31
|
camposBloqueados: boolean;
|
|
30
|
-
get tributos():
|
|
31
|
-
set tributos(val:
|
|
32
|
+
get tributos(): Tax[];
|
|
33
|
+
set tributos(val: Tax[]);
|
|
32
34
|
dominio?: string;
|
|
33
35
|
servico?: string;
|
|
34
36
|
currencyLocaleOptions?: any;
|
|
35
37
|
idsTaxesMemoriaCalculo?: TaxCalculationMemory[];
|
|
36
38
|
permissionMemoriaCalculo?: boolean;
|
|
37
|
-
tributosChange: EventEmitter<
|
|
39
|
+
tributosChange: EventEmitter<Tax[]>;
|
|
38
40
|
readonly BadgeColors: typeof BadgeColors;
|
|
39
41
|
readonly ButtonPriority: typeof ButtonPriority;
|
|
40
42
|
readonly ButtonSize: typeof ButtonSize;
|
|
41
43
|
readonly ButtonAnimation: typeof ButtonAnimation;
|
|
42
44
|
grupos: Group[];
|
|
43
|
-
tributosValue:
|
|
45
|
+
tributosValue: Tax[];
|
|
44
46
|
reload: boolean;
|
|
45
47
|
indexAccordion: number[];
|
|
46
48
|
prefixLabel: string;
|
|
@@ -60,6 +62,7 @@ export declare class ErpTributosComponent implements OnInit, OnChanges, OnDestro
|
|
|
60
62
|
private menuItemIBSCreditoPresumido;
|
|
61
63
|
private menuItemIS;
|
|
62
64
|
private menuItemCBS_IBS_ESTORNO_CREDITO;
|
|
65
|
+
private menuItemCBS_IBS_Ajuste;
|
|
63
66
|
private menuItemIcmsCreditoPresumido;
|
|
64
67
|
private requiredItemCideTecnologia;
|
|
65
68
|
private requiredItemPisRecuperar;
|
|
@@ -93,7 +96,7 @@ export declare class ErpTributosComponent implements OnInit, OnChanges, OnDestro
|
|
|
93
96
|
private requiredItemIcmsDesonerado;
|
|
94
97
|
private requiredItemDiferencialAlicota;
|
|
95
98
|
private requiredItemPisFaturemento;
|
|
96
|
-
private
|
|
99
|
+
private requiredItemCofins;
|
|
97
100
|
private requiredItemFcpUfDestino;
|
|
98
101
|
private requiredItemIcmsUfDestino;
|
|
99
102
|
private requiredSituacaoTributaria;
|
|
@@ -111,8 +114,8 @@ export declare class ErpTributosComponent implements OnInit, OnChanges, OnDestro
|
|
|
111
114
|
private requiredIcmsStRetidoAnt;
|
|
112
115
|
private requiredFcpStReditoAnt;
|
|
113
116
|
private percentageLocaleOptions?;
|
|
114
|
-
private readonly
|
|
115
|
-
constructor(messageService: MessageService, formBuilder: FormBuilder, changeDetector: ChangeDetectorRef, translate: TranslateService, e027StrLookup: E027StrLookup, beneficioFiscalLookup: BeneficioFiscalLookup, e027eqiLookup: E027EqiLookup, naturezaReceitaLookup: CplTriNotaSaidaNaturezaReceitaPisCofinsLookup, classificacaoTributariaLookup: ClassificacaoTributariaLookup, lookupUtils: LookupValidationUtils, erpTributosService: ErpTributosService, gtag: GTagService, rulesService: RulesService);
|
|
117
|
+
private readonly unsubscribe$;
|
|
118
|
+
constructor(messageService: MessageService, formBuilder: FormBuilder, changeDetector: ChangeDetectorRef, translate: TranslateService, e027StrLookup: E027StrLookup, beneficioFiscalLookup: BeneficioFiscalLookup, e027eqiLookup: E027EqiLookup, naturezaReceitaLookup: CplTriNotaSaidaNaturezaReceitaPisCofinsLookup, classificacaoTributariaLookup: ClassificacaoTributariaLookup, lookupUtils: LookupValidationUtils, erpTributosService: ErpTributosService, gtag: GTagService, rulesService: RulesService, localeService: LocaleService);
|
|
116
119
|
ngOnInit(): void;
|
|
117
120
|
ngOnChanges(changes: SimpleChanges): void;
|
|
118
121
|
ngOnDestroy(): void;
|
|
@@ -164,6 +167,7 @@ export declare class ErpTributosComponent implements OnInit, OnChanges, OnDestro
|
|
|
164
167
|
private montaIBSCreditoPresumido;
|
|
165
168
|
private montaIS;
|
|
166
169
|
private montaCBSIBSEstornoCredito;
|
|
170
|
+
private montaCBS_IBS_Ajuste;
|
|
167
171
|
private montaPis;
|
|
168
172
|
private montaCofins;
|
|
169
173
|
private montaIpi;
|
|
@@ -64,7 +64,8 @@ export declare enum EnumCampoTributo {
|
|
|
64
64
|
ClassificacaoTributariaCreditoPresumido = "classificacao_tributaria_credito_presumido",
|
|
65
65
|
TipoCalculoImposto = "TipoCalculoImposto",
|
|
66
66
|
ImpostoManual = "impostoManual",
|
|
67
|
-
EscriturarAliquotaISS = "escriturarAliquotaISS"
|
|
67
|
+
EscriturarAliquotaISS = "escriturarAliquotaISS",
|
|
68
|
+
PeriodoApuracao = "periodoApuracao"
|
|
68
69
|
}
|
|
69
70
|
export declare enum EnumGrupoTributo {
|
|
70
71
|
CBS = "cbs",
|
|
@@ -74,6 +75,7 @@ export declare enum EnumGrupoTributo {
|
|
|
74
75
|
IBS_CREDITO_PRESUMIDO = "ibs_credito_presumido",
|
|
75
76
|
IS = "is",
|
|
76
77
|
CBS_IBS_ESTORNO_CREDITO = "cbs_ibs_estorno_credito",
|
|
78
|
+
CBS_IBS_AJUSTE = "cbs_ibs_ajuste",
|
|
77
79
|
ICMS = "icms",
|
|
78
80
|
ICMS_ST = "icms_st",
|
|
79
81
|
IPI = "ipi",
|
|
@@ -93,6 +95,7 @@ export declare enum EnumTipoTributo {
|
|
|
93
95
|
CBS_TRIBUTACAO_REGULAR = "CBS_TRIBUTACAO_REGULAR",
|
|
94
96
|
CBS_GOVERNAMENTAL = "CBS_GOVERNAMENTAL",
|
|
95
97
|
CBS_ESTORNO_CREDITO = "CBS_ESTORNO_CREDITO",
|
|
98
|
+
CBS_AJUSTE = "CBS_AJUSTE",
|
|
96
99
|
IBS_ESTADUAL = "IBS_ESTADUAL",
|
|
97
100
|
IBS_ESTADUAL_DIFERIDO = "IBS_ESTADUAL_DIFERIDO",
|
|
98
101
|
IBS_ESTADUAL_TRIBUTACAO_REGULAR = "IBS_ESTADUAL_TRIBUTACAO_REGULAR",
|
|
@@ -103,6 +106,7 @@ export declare enum EnumTipoTributo {
|
|
|
103
106
|
IBS_MUNICIPAL_GOVERNAMENTAL = "IBS_MUNICIPAL_GOVERNAMENTAL",
|
|
104
107
|
IBS_CREDITO_PRESUMIDO = "IBS_CREDITO_PRESUMIDO",
|
|
105
108
|
IBS_ESTORNO_CREDITO = "IBS_ESTORNO_CREDITO",
|
|
109
|
+
IBS_AJUSTE = "IBS_AJUSTE",
|
|
106
110
|
IS = "IS",
|
|
107
111
|
PIS_FATURAMENTO = "PIS_FATURAMENTO",
|
|
108
112
|
PIS_RECUPERAR = "PIS_RECUPERAR",
|
|
@@ -8,3 +8,4 @@ export { IncomingInvoiceType } from './types/incoming-invoice-type';
|
|
|
8
8
|
export { SaleOrderType } from './types/sale-order-type';
|
|
9
9
|
export { PurchaseOrderType } from './types/purchase-order-type';
|
|
10
10
|
export { ItemType } from './types/item-type';
|
|
11
|
+
export { Tax } from './types/tax';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EnumTipoTributo } from '../../../../erp-tributos.types';
|
|
2
2
|
import { OutgoingInvoiceType } from '../../../../types/outgoing-invoice-type';
|
|
3
3
|
import { FieldCalculationRuleMapping } from '../../../types/field-calculation-rule-mapping';
|
|
4
|
+
import { AssessmentPeriodCalculationRule } from '../../rules/assessment-period-calculation-rule';
|
|
4
5
|
import { EffectiveTaxRateCalculationRule } from '../../rules/effective-tax-rate-calculation-rule';
|
|
5
6
|
import { GrossAmountCalculationRule } from '../../rules/gross-amount-calculation-rule';
|
|
6
7
|
import { ManualTaxCalculationRule } from '../../rules/manual-tax-calculation-rule';
|
|
@@ -19,8 +20,9 @@ export declare class OutgoingInvoiceCalculationRulesRegistry {
|
|
|
19
20
|
private readonly taxSituationCalculationRule;
|
|
20
21
|
private readonly taxClassificationCalculationRule;
|
|
21
22
|
private readonly taxCalculationTypeCalculationRule;
|
|
23
|
+
private readonly assessmentPeriodCalculationRule;
|
|
22
24
|
private readonly manualTaxCalculationRule;
|
|
23
25
|
private readonly strategies;
|
|
24
|
-
constructor(taxableBaseCalculationRule: TaxableBaseCalculationRule, taxRateCalculationRule: TaxRateCalculationRule, effectiveTaxRateCalculationRule: EffectiveTaxRateCalculationRule, taxAmountCalculationRule: TaxAmountCalculationRule, grossAmountCalculationRule: GrossAmountCalculationRule, taxSituationCalculationRule: TaxSituationCalculationRule, taxClassificationCalculationRule: TaxClassificationCalculationRule, taxCalculationTypeCalculationRule: TaxCalculationTypeCalculationRule, manualTaxCalculationRule: ManualTaxCalculationRule);
|
|
26
|
+
constructor(taxableBaseCalculationRule: TaxableBaseCalculationRule, taxRateCalculationRule: TaxRateCalculationRule, effectiveTaxRateCalculationRule: EffectiveTaxRateCalculationRule, taxAmountCalculationRule: TaxAmountCalculationRule, grossAmountCalculationRule: GrossAmountCalculationRule, taxSituationCalculationRule: TaxSituationCalculationRule, taxClassificationCalculationRule: TaxClassificationCalculationRule, taxCalculationTypeCalculationRule: TaxCalculationTypeCalculationRule, assessmentPeriodCalculationRule: AssessmentPeriodCalculationRule, manualTaxCalculationRule: ManualTaxCalculationRule);
|
|
25
27
|
get(type: OutgoingInvoiceType, taxType: EnumTipoTributo): FieldCalculationRuleMapping[];
|
|
26
28
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { RulePayload } from '../../types/rule-payload';
|
|
2
|
+
import { TaxRule } from '../../types/tax-rule';
|
|
3
|
+
export declare class AssessmentPeriodCalculationRule implements TaxRule {
|
|
4
|
+
apply({ context: { document }, group, item: { name: taxType, formGroup } }: RulePayload): void;
|
|
5
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EnumTipoTributo } from '../../../erp-tributos.types';
|
|
2
|
+
import { PurchaseOrderType } from '../../../types/purchase-order-type';
|
|
3
|
+
import { FieldStatusRuleMapping } from '../../types/field-status-rule-mapping';
|
|
4
|
+
export declare class PurchaseOrderStatusRulesRegistry {
|
|
5
|
+
private readonly strategies;
|
|
6
|
+
constructor();
|
|
7
|
+
get(type: PurchaseOrderType, taxType: EnumTipoTributo): FieldStatusRuleMapping[];
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EnumTipoTributo } from '../../../erp-tributos.types';
|
|
2
|
+
import { SaleOrderType } from '../../../types/sale-order-type';
|
|
3
|
+
import { FieldStatusRuleMapping } from '../../types/field-status-rule-mapping';
|
|
4
|
+
export declare class SaleOrderStatusRulesRegistry {
|
|
5
|
+
private readonly strategies;
|
|
6
|
+
constructor();
|
|
7
|
+
get(type: SaleOrderType, taxType: EnumTipoTributo): FieldStatusRuleMapping[];
|
|
8
|
+
}
|
|
@@ -3,9 +3,13 @@ import { Context } from '../../../types/context';
|
|
|
3
3
|
import { FieldStatusRuleMapping } from '../../types/field-status-rule-mapping';
|
|
4
4
|
import { IncomingInvoiceStatusRulesRegistry } from './incoming-invoice-status-rules.registry';
|
|
5
5
|
import { OutgoingInvoiceStatusRulesRegistry } from './outgoing-invoice-status-rules.registry';
|
|
6
|
+
import { PurchaseOrderStatusRulesRegistry } from './purchase-order-status-rules.registry';
|
|
7
|
+
import { SaleOrderStatusRulesRegistry } from './sale-order-status-rules.registry';
|
|
6
8
|
export declare class StatusRulesRegistry {
|
|
7
9
|
private readonly incomingInvoiceStatusRulesRegistry;
|
|
8
10
|
private readonly outgoingInvoiceStatusRulesRegistry;
|
|
9
|
-
|
|
11
|
+
private readonly saleOrderStatusRulesRegistry;
|
|
12
|
+
private readonly purchaseOrderStatusRulesRegistry;
|
|
13
|
+
constructor(incomingInvoiceStatusRulesRegistry: IncomingInvoiceStatusRulesRegistry, outgoingInvoiceStatusRulesRegistry: OutgoingInvoiceStatusRulesRegistry, saleOrderStatusRulesRegistry: SaleOrderStatusRulesRegistry, purchaseOrderStatusRulesRegistry: PurchaseOrderStatusRulesRegistry);
|
|
10
14
|
get(context: Context, taxType: EnumTipoTributo): FieldStatusRuleMapping[];
|
|
11
15
|
}
|
|
@@ -171,6 +171,8 @@ declare const Schema: {
|
|
|
171
171
|
readonly IS: readonly [EnumCampoTributo.BaseCalculo, EnumCampoTributo.Aliquota, EnumCampoTributo.Valor, EnumCampoTributo.SituacaoTributaria, EnumCampoTributo.ClassificacaoTributaria, EnumCampoTributo.AplicarValorLiquidoDocumento, EnumCampoTributo.TipoCalculoImposto, EnumCampoTributo.ImpostoManual];
|
|
172
172
|
readonly CBS_ESTORNO_CREDITO: readonly [EnumCampoTributo.SituacaoTributaria, EnumCampoTributo.ClassificacaoTributaria, EnumCampoTributo.Valor];
|
|
173
173
|
readonly IBS_ESTORNO_CREDITO: readonly [EnumCampoTributo.SituacaoTributaria, EnumCampoTributo.ClassificacaoTributaria, EnumCampoTributo.Valor];
|
|
174
|
+
readonly CBS_AJUSTE: readonly [EnumCampoTributo.SituacaoTributaria, EnumCampoTributo.ClassificacaoTributaria, EnumCampoTributo.PeriodoApuracao, EnumCampoTributo.Valor];
|
|
175
|
+
readonly IBS_AJUSTE: readonly [EnumCampoTributo.SituacaoTributaria, EnumCampoTributo.ClassificacaoTributaria, EnumCampoTributo.PeriodoApuracao, EnumCampoTributo.Valor];
|
|
174
176
|
};
|
|
175
177
|
readonly Delivery: {
|
|
176
178
|
readonly CBS: readonly [EnumCampoTributo.BaseCalculo, EnumCampoTributo.Aliquota, EnumCampoTributo.ValorBruto, EnumCampoTributo.ReducaoAliquota, EnumCampoTributo.ReducaoAliquotaGovernamental, EnumCampoTributo.AliquotaEfetiva, EnumCampoTributo.Valor, EnumCampoTributo.SituacaoTributaria, EnumCampoTributo.ClassificacaoTributaria, EnumCampoTributo.AplicarValorLiquidoDocumento, EnumCampoTributo.TipoCalculoImposto, EnumCampoTributo.ImpostoManual];
|
|
@@ -6,13 +6,15 @@ import { TaxClassificationRequiredValidationRule } from '../rules/required/tax-c
|
|
|
6
6
|
import { TaxRateRequiredValidationRule } from '../rules/required/tax-rate-required-validation-rule';
|
|
7
7
|
import { TaxSituationRequiredValidationRule } from '../rules/required/tax-situation-required-validation-rule';
|
|
8
8
|
import { TaxableBaseRequiredValidationRule } from '../rules/required/taxable-base-required-validation-rule';
|
|
9
|
+
import { AssessmentPeriodRequiredValidationRule } from '../rules/required/assessment-period-required-validation-rule';
|
|
9
10
|
export declare class OutgoingInvoiceValidationRulesRegistry {
|
|
10
11
|
private readonly taxableBaseRequiredValidationRule;
|
|
11
12
|
private readonly taxRateRequiredValidationRule;
|
|
12
13
|
private readonly taxClassificationRequiredValidationRule;
|
|
13
14
|
private readonly taxAmountRequiredValidationRule;
|
|
14
15
|
private readonly taxSituationRequiredValidationRule;
|
|
16
|
+
private readonly assessmentPeriodRequiredValidationRule;
|
|
15
17
|
private readonly strategies;
|
|
16
|
-
constructor(taxableBaseRequiredValidationRule: TaxableBaseRequiredValidationRule, taxRateRequiredValidationRule: TaxRateRequiredValidationRule, taxClassificationRequiredValidationRule: TaxClassificationRequiredValidationRule, taxAmountRequiredValidationRule: TaxAmountRequiredValidationRule, taxSituationRequiredValidationRule: TaxSituationRequiredValidationRule);
|
|
18
|
+
constructor(taxableBaseRequiredValidationRule: TaxableBaseRequiredValidationRule, taxRateRequiredValidationRule: TaxRateRequiredValidationRule, taxClassificationRequiredValidationRule: TaxClassificationRequiredValidationRule, taxAmountRequiredValidationRule: TaxAmountRequiredValidationRule, taxSituationRequiredValidationRule: TaxSituationRequiredValidationRule, assessmentPeriodRequiredValidationRule: AssessmentPeriodRequiredValidationRule);
|
|
17
19
|
get(type: OutgoingInvoiceType, taxType: EnumTipoTributo): FieldRuleMapping[];
|
|
18
20
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { RulePayload } from '../../../types/rule-payload';
|
|
2
|
+
import { TaxRule } from '../../../types/tax-rule';
|
|
3
|
+
export declare class AssessmentPeriodRequiredValidationRule implements TaxRule {
|
|
4
|
+
apply({ context, item: { name: taxType, formGroup } }: RulePayload): void;
|
|
5
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EnumGrupoTributo, EnumTipoTributo, Item } from './erp-tributos.types';
|
|
2
2
|
import { Group } from './types/group';
|
|
3
3
|
export declare const isTaxFromTaxReform: (tax: EnumTipoTributo) => boolean;
|
|
4
|
-
export declare const getBaseTaxByGroupTax: (groupTax: EnumGrupoTributo) => EnumTipoTributo.CBS | EnumTipoTributo.CBS_ESTORNO_CREDITO | EnumTipoTributo.IBS_ESTADUAL | EnumTipoTributo.IBS_MUNICIPAL | EnumTipoTributo.IBS_CREDITO_PRESUMIDO | EnumTipoTributo.IS;
|
|
4
|
+
export declare const getBaseTaxByGroupTax: (groupTax: EnumGrupoTributo) => EnumTipoTributo.CBS | EnumTipoTributo.CBS_ESTORNO_CREDITO | EnumTipoTributo.CBS_AJUSTE | EnumTipoTributo.IBS_ESTADUAL | EnumTipoTributo.IBS_MUNICIPAL | EnumTipoTributo.IBS_CREDITO_PRESUMIDO | EnumTipoTributo.IS;
|
|
5
5
|
export declare const getRegularTaxationTaxByGroupTax: (groupTax: EnumGrupoTributo) => EnumTipoTributo.CBS_TRIBUTACAO_REGULAR | EnumTipoTributo.IBS_ESTADUAL_TRIBUTACAO_REGULAR | EnumTipoTributo.IBS_MUNICIPAL_TRIBUTACAO_REGULAR;
|
|
6
6
|
export declare const getDeferredTaxByBaseTax: (tax: EnumTipoTributo) => EnumTipoTributo.CBS_DIFERIDO | EnumTipoTributo.IBS_ESTADUAL_DIFERIDO | EnumTipoTributo.IBS_MUNICIPAL_DIFERIDO;
|
|
7
7
|
export declare const getPresumedCreditTaxByBaseTax: (tax: EnumTipoTributo) => EnumTipoTributo;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare type DebitInvoiceType = 'Inventory Loss';
|
|
1
|
+
export declare type DebitInvoiceType = 'Inventory Loss' | 'Credit Cancellation Exempt Outputs' | 'Debits Unprocessed Invoices Assessment' | 'Disqualification from Simples Nacional';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EnumTipoCalculoImposto } from '../../../core/enums/enum-tipo-calculo-imposto';
|
|
2
|
+
import { EnumCampoTributo } from '../erp-tributos.types';
|
|
3
|
+
export declare type Tax = {
|
|
4
|
+
[EnumCampoTributo.PeriodoApuracao]?: Date;
|
|
5
|
+
[EnumCampoTributo.TipoCalculoImposto]?: EnumTipoCalculoImposto;
|
|
6
|
+
} & {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|