@senior-gestao-empresarial/erpx-components 0.0.0-develop-3bab051d
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 +37665 -0
- package/bundles/senior-gestao-empresarial-erpx-components.umd.js.map +1 -0
- package/bundles/senior-gestao-empresarial-erpx-components.umd.min.js +17 -0
- package/bundles/senior-gestao-empresarial-erpx-components.umd.min.js.map +1 -0
- package/components/breadcrumb/breadcrumb.component.d.ts +21 -0
- package/components/breadcrumb/breadcrumb.module.d.ts +2 -0
- package/components/breadcrumb/index.d.ts +2 -0
- package/components/focus/focus.service.d.ts +4 -0
- package/components/lote-serie/erp-lote-serie.component.d.ts +183 -0
- package/components/lote-serie/erp-lote-serie.module.d.ts +2 -0
- package/components/lote-serie/erp-lote-serie.service.d.ts +137 -0
- package/components/lote-serie/index.d.ts +2 -0
- package/components/rateio-editor/erp-rateio-editor.component.d.ts +202 -0
- package/components/rateio-editor/erp-rateio-editor.converter.d.ts +18 -0
- package/components/rateio-editor/erp-rateio-editor.module.d.ts +2 -0
- package/components/rateio-editor/erp-rateio-editor.service.d.ts +17 -0
- package/components/rateio-editor/erp-rateio-editor.types.d.ts +171 -0
- package/components/rateio-editor/index.d.ts +4 -0
- package/components/resumo/erp-resumo.component.d.ts +17 -0
- package/components/resumo/erp-resumo.module.d.ts +2 -0
- package/components/resumo/erp-resumo.service.d.ts +2 -0
- package/components/resumo/index.d.ts +2 -0
- package/components/tributos/calculators/effective-tax-rate-calculator.d.ts +34 -0
- package/components/tributos/calculators/gross-amount-calculator.d.ts +20 -0
- package/components/tributos/calculators/tax-amount-calculator.d.ts +54 -0
- package/components/tributos/erp-tributos.component.d.ts +215 -0
- package/components/tributos/erp-tributos.module.d.ts +2 -0
- package/components/tributos/erp-tributos.service.d.ts +10 -0
- package/components/tributos/erp-tributos.types.d.ts +286 -0
- package/components/tributos/index.d.ts +12 -0
- package/components/tributos/mappings/enum-tip-imp-cst-mapping.d.ts +2 -0
- package/components/tributos/rules/calculation/registries/calculation-rules-registries/calculation-rules.registry.d.ts +15 -0
- package/components/tributos/rules/calculation/registries/calculation-rules-registries/incoming-invoice-calculation-rules.registry.d.ts +28 -0
- package/components/tributos/rules/calculation/registries/calculation-rules-registries/outgoing-invoice-calculation-rules.registry.d.ts +30 -0
- package/components/tributos/rules/calculation/registries/calculation-rules-registries/purchase-order-calculation-rules.registry.d.ts +22 -0
- package/components/tributos/rules/calculation/registries/calculation-rules-registries/sale-order-calculation-rules.registry.d.ts +22 -0
- package/components/tributos/rules/calculation/rules/apply-net-value-to-document-calculation-rule.d.ts +5 -0
- package/components/tributos/rules/calculation/rules/assessment-period-calculation-rule.d.ts +5 -0
- package/components/tributos/rules/calculation/rules/effective-tax-rate-calculation-rule.d.ts +8 -0
- package/components/tributos/rules/calculation/rules/gross-amount-calculation-rule.d.ts +8 -0
- package/components/tributos/rules/calculation/rules/manual-tax-calculation-rule.d.ts +5 -0
- package/components/tributos/rules/calculation/rules/tax-amount-calculation-rule.d.ts +8 -0
- package/components/tributos/rules/calculation/rules/tax-calculation-type-calculation-rule.d.ts +5 -0
- package/components/tributos/rules/calculation/rules/tax-classification-calculation-rule.d.ts +6 -0
- package/components/tributos/rules/calculation/rules/tax-rate-calculation-rule.d.ts +5 -0
- package/components/tributos/rules/calculation/rules/tax-situation-calculation-rule.d.ts +5 -0
- package/components/tributos/rules/calculation/rules/taxable-base-calculation-rule.d.ts +8 -0
- package/components/tributos/rules/rules.service.d.ts +19 -0
- package/components/tributos/rules/status/registries/incoming-invoice-status-rules.registry.d.ts +16 -0
- package/components/tributos/rules/status/registries/outgoing-invoice-status-rules.registry.d.ts +12 -0
- package/components/tributos/rules/status/registries/purchase-order-status-rules.registry.d.ts +12 -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 +15 -0
- package/components/tributos/rules/status/rules/apply-net-value-to-document-status-rule.d.ts +5 -0
- package/components/tributos/rules/status/rules/tax-classification-status-rule.d.ts +5 -0
- 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/available-fields.d.ts +2 -0
- package/components/tributos/rules/types/available-taxes.d.ts +1 -0
- package/components/tributos/rules/types/field-calculation-rule-mapping.d.ts +6 -0
- package/components/tributos/rules/types/field-rule-mapping.d.ts +6 -0
- package/components/tributos/rules/types/field-status-rule-mapping.d.ts +6 -0
- package/components/tributos/rules/types/rule-payload.d.ts +9 -0
- package/components/tributos/rules/types/schemas/incoming-invoice.schema.d.ts +235 -0
- package/components/tributos/rules/types/schemas/outgoing-invoice.schema.d.ts +349 -0
- package/components/tributos/rules/types/schemas/purchase-order.schema.d.ts +26 -0
- package/components/tributos/rules/types/schemas/sale-order.schema.d.ts +131 -0
- package/components/tributos/rules/types/strategies-by-document.d.ts +12 -0
- package/components/tributos/rules/types/strategies.d.ts +4 -0
- package/components/tributos/rules/types/tax-rule.d.ts +4 -0
- package/components/tributos/rules/validation/registries/incoming-invoice-validation-rules.registry.d.ts +20 -0
- package/components/tributos/rules/validation/registries/outgoing-invoice-validation-rules.registry.d.ts +22 -0
- package/components/tributos/rules/validation/registries/purchase-order-validation-rules.registry.d.ts +14 -0
- package/components/tributos/rules/validation/registries/sale-order-validation-rules.registry.d.ts +14 -0
- package/components/tributos/rules/validation/registries/validation-rules.registry.d.ts +15 -0
- package/components/tributos/rules/validation/rules/required/apply-net-value-to-document-required-validation-rule.d.ts +5 -0
- package/components/tributos/rules/validation/rules/required/assessment-period-required-validation-rule.d.ts +5 -0
- package/components/tributos/rules/validation/rules/required/tax-amount-required-validation-rule.d.ts +5 -0
- package/components/tributos/rules/validation/rules/required/tax-classification-required-validation-rule.d.ts +5 -0
- package/components/tributos/rules/validation/rules/required/tax-rate-required-validation-rule.d.ts +6 -0
- package/components/tributos/rules/validation/rules/required/tax-situation-required-validation-rule.d.ts +6 -0
- package/components/tributos/rules/validation/rules/required/taxable-base-required-validation-rule.d.ts +6 -0
- package/components/tributos/services/tax-rounding.service.d.ts +5 -0
- package/components/tributos/stores/tax.store.d.ts +10 -0
- package/components/tributos/tax-reform-utilities.d.ts +36 -0
- package/components/tributos/types/context.d.ts +7 -0
- package/components/tributos/types/controllership-incoming-invoice-context.d.ts +5 -0
- package/components/tributos/types/controllership-incoming-invoice.d.ts +3 -0
- package/components/tributos/types/controllership-outgoing-invoice-context.d.ts +5 -0
- package/components/tributos/types/controllership-outgoing-invoice.d.ts +3 -0
- package/components/tributos/types/credit-invoice-type.d.ts +1 -0
- package/components/tributos/types/debit-invoice-type.d.ts +1 -0
- package/components/tributos/types/group.d.ts +6 -0
- package/components/tributos/types/incoming-invoice-context.d.ts +5 -0
- package/components/tributos/types/incoming-invoice-item.d.ts +4 -0
- package/components/tributos/types/incoming-invoice-type.d.ts +1 -0
- package/components/tributos/types/incoming-invoice.d.ts +11 -0
- package/components/tributos/types/item-type.d.ts +1 -0
- package/components/tributos/types/outgoing-Invoice.d.ts +11 -0
- package/components/tributos/types/outgoing-invoice-context.d.ts +5 -0
- package/components/tributos/types/outgoing-invoice-item.d.ts +4 -0
- package/components/tributos/types/outgoing-invoice-type.d.ts +1 -0
- package/components/tributos/types/purchase-order-context.d.ts +5 -0
- package/components/tributos/types/purchase-order-type.d.ts +1 -0
- package/components/tributos/types/purchase-order.d.ts +8 -0
- package/components/tributos/types/sale-order-context.d.ts +5 -0
- package/components/tributos/types/sale-order-type.d.ts +1 -0
- package/components/tributos/types/sale-order.d.ts +8 -0
- package/components/tributos/types/tax.d.ts +8 -0
- package/components/utils/breakpoints.d.ts +10 -0
- package/components/utils/export-utils.d.ts +6 -0
- package/components/utils/index.d.ts +3 -0
- package/components/utils/loading-context.d.ts +7 -0
- package/components/utils/utils.d.ts +4 -0
- package/core/entities/entity-service.d.ts +32 -0
- package/core/entities/quantidade-disponivel-demanda/quantidade-disponivel-demanda-dto.d.ts +36 -0
- package/core/entities/quantidade-disponivel-demanda/quantidade-disponivel-demanda.d.ts +40 -0
- package/core/entities/quantidade-disponivel-demanda/quantidade-disponivel-demanda.module.d.ts +2 -0
- package/core/entities/quantidade-disponivel-demanda/quantidade-disponivel-demanda.service.d.ts +11 -0
- package/core/enums/enum-classificacao-tributaria.d.ts +4 -0
- package/core/enums/enum-tipo-calculo-imposto.d.ts +5 -0
- package/core/enums/enum-tipo-documento-parametros.d.ts +7 -0
- package/core/enums/enum-tipo-documento.d.ts +10 -0
- package/core/enums/erpx-com-processo-faturamento-backend/enum-indicativo-padrao.d.ts +5 -0
- package/core/enums/erpx-cpl-imp-cadastros-backend/enum-indicativo-padrao.d.ts +8 -0
- package/esm2015/components/breadcrumb/breadcrumb.component.js +86 -0
- package/esm2015/components/breadcrumb/breadcrumb.module.js +17 -0
- package/esm2015/components/breadcrumb/index.js +3 -0
- package/esm2015/components/focus/focus.service.js +32 -0
- package/esm2015/components/lote-serie/erp-lote-serie.component.js +1772 -0
- package/esm2015/components/lote-serie/erp-lote-serie.module.js +47 -0
- package/esm2015/components/lote-serie/erp-lote-serie.service.js +94 -0
- package/esm2015/components/lote-serie/index.js +3 -0
- package/esm2015/components/rateio-editor/erp-rateio-editor.component.js +794 -0
- package/esm2015/components/rateio-editor/erp-rateio-editor.converter.js +52 -0
- package/esm2015/components/rateio-editor/erp-rateio-editor.module.js +40 -0
- package/esm2015/components/rateio-editor/erp-rateio-editor.service.js +49 -0
- package/esm2015/components/rateio-editor/erp-rateio-editor.types.js +5 -0
- package/esm2015/components/rateio-editor/index.js +4 -0
- package/esm2015/components/resumo/erp-resumo.component.js +19 -0
- package/esm2015/components/resumo/erp-resumo.module.js +25 -0
- package/esm2015/components/resumo/erp-resumo.service.js +13 -0
- package/esm2015/components/resumo/index.js +2 -0
- package/esm2015/components/tributos/calculators/effective-tax-rate-calculator.js +53 -0
- package/esm2015/components/tributos/calculators/gross-amount-calculator.js +37 -0
- package/esm2015/components/tributos/calculators/tax-amount-calculator.js +87 -0
- package/esm2015/components/tributos/erp-tributos.component.js +5176 -0
- package/esm2015/components/tributos/erp-tributos.module.js +33 -0
- package/esm2015/components/tributos/erp-tributos.service.js +23 -0
- package/esm2015/components/tributos/erp-tributos.types.js +268 -0
- package/esm2015/components/tributos/index.js +4 -0
- package/esm2015/components/tributos/mappings/enum-tip-imp-cst-mapping.js +33 -0
- package/esm2015/components/tributos/rules/calculation/registries/calculation-rules-registries/calculation-rules.registry.js +45 -0
- package/esm2015/components/tributos/rules/calculation/registries/calculation-rules-registries/incoming-invoice-calculation-rules.registry.js +3102 -0
- package/esm2015/components/tributos/rules/calculation/registries/calculation-rules-registries/outgoing-invoice-calculation-rules.registry.js +4516 -0
- package/esm2015/components/tributos/rules/calculation/registries/calculation-rules-registries/purchase-order-calculation-rules.registry.js +294 -0
- package/esm2015/components/tributos/rules/calculation/registries/calculation-rules-registries/sale-order-calculation-rules.registry.js +1464 -0
- package/esm2015/components/tributos/rules/calculation/rules/apply-net-value-to-document-calculation-rule.js +48 -0
- package/esm2015/components/tributos/rules/calculation/rules/assessment-period-calculation-rule.js +55 -0
- package/esm2015/components/tributos/rules/calculation/rules/effective-tax-rate-calculation-rule.js +83 -0
- package/esm2015/components/tributos/rules/calculation/rules/gross-amount-calculation-rule.js +74 -0
- package/esm2015/components/tributos/rules/calculation/rules/manual-tax-calculation-rule.js +72 -0
- package/esm2015/components/tributos/rules/calculation/rules/tax-amount-calculation-rule.js +244 -0
- package/esm2015/components/tributos/rules/calculation/rules/tax-calculation-type-calculation-rule.js +74 -0
- package/esm2015/components/tributos/rules/calculation/rules/tax-classification-calculation-rule.js +170 -0
- package/esm2015/components/tributos/rules/calculation/rules/tax-rate-calculation-rule.js +100 -0
- package/esm2015/components/tributos/rules/calculation/rules/tax-situation-calculation-rule.js +124 -0
- package/esm2015/components/tributos/rules/calculation/rules/taxable-base-calculation-rule.js +292 -0
- package/esm2015/components/tributos/rules/rules.service.js +61 -0
- package/esm2015/components/tributos/rules/status/registries/incoming-invoice-status-rules.registry.js +1076 -0
- package/esm2015/components/tributos/rules/status/registries/outgoing-invoice-status-rules.registry.js +1317 -0
- package/esm2015/components/tributos/rules/status/registries/purchase-order-status-rules.registry.js +62 -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 +45 -0
- package/esm2015/components/tributos/rules/status/rules/apply-net-value-to-document-status-rule.js +39 -0
- package/esm2015/components/tributos/rules/status/rules/tax-classification-status-rule.js +94 -0
- 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/available-fields.js +1 -0
- package/esm2015/components/tributos/rules/types/available-taxes.js +1 -0
- package/esm2015/components/tributos/rules/types/field-calculation-rule-mapping.js +1 -0
- package/esm2015/components/tributos/rules/types/field-rule-mapping.js +1 -0
- package/esm2015/components/tributos/rules/types/field-status-rule-mapping.js +1 -0
- package/esm2015/components/tributos/rules/types/rule-payload.js +1 -0
- package/esm2015/components/tributos/rules/types/schemas/incoming-invoice.schema.js +1816 -0
- package/esm2015/components/tributos/rules/types/schemas/outgoing-invoice.schema.js +2750 -0
- package/esm2015/components/tributos/rules/types/schemas/purchase-order.schema.js +150 -0
- package/esm2015/components/tributos/rules/types/schemas/sale-order.schema.js +879 -0
- package/esm2015/components/tributos/rules/types/strategies-by-document.js +1 -0
- package/esm2015/components/tributos/rules/types/strategies.js +1 -0
- package/esm2015/components/tributos/rules/types/tax-rule.js +1 -0
- package/esm2015/components/tributos/rules/validation/registries/incoming-invoice-validation-rules.registry.js +3606 -0
- package/esm2015/components/tributos/rules/validation/registries/outgoing-invoice-validation-rules.registry.js +5452 -0
- package/esm2015/components/tributos/rules/validation/registries/purchase-order-validation-rules.registry.js +270 -0
- package/esm2015/components/tributos/rules/validation/registries/sale-order-validation-rules.registry.js +1392 -0
- package/esm2015/components/tributos/rules/validation/registries/validation-rules.registry.js +45 -0
- package/esm2015/components/tributos/rules/validation/rules/required/apply-net-value-to-document-required-validation-rule.js +73 -0
- 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 +902 -0
- package/esm2015/components/tributos/rules/validation/rules/required/tax-classification-required-validation-rule.js +401 -0
- package/esm2015/components/tributos/rules/validation/rules/required/tax-rate-required-validation-rule.js +719 -0
- package/esm2015/components/tributos/rules/validation/rules/required/tax-situation-required-validation-rule.js +300 -0
- package/esm2015/components/tributos/rules/validation/rules/required/taxable-base-required-validation-rule.js +717 -0
- package/esm2015/components/tributos/services/tax-rounding.service.js +18 -0
- package/esm2015/components/tributos/stores/tax.store.js +19 -0
- package/esm2015/components/tributos/tax-reform-utilities.js +243 -0
- package/esm2015/components/tributos/types/context.js +1 -0
- package/esm2015/components/tributos/types/controllership-incoming-invoice-context.js +1 -0
- package/esm2015/components/tributos/types/controllership-incoming-invoice.js +1 -0
- package/esm2015/components/tributos/types/controllership-outgoing-invoice-context.js +1 -0
- package/esm2015/components/tributos/types/controllership-outgoing-invoice.js +1 -0
- package/esm2015/components/tributos/types/credit-invoice-type.js +1 -0
- package/esm2015/components/tributos/types/debit-invoice-type.js +1 -0
- package/esm2015/components/tributos/types/group.js +1 -0
- package/esm2015/components/tributos/types/incoming-invoice-context.js +1 -0
- package/esm2015/components/tributos/types/incoming-invoice-item.js +1 -0
- package/esm2015/components/tributos/types/incoming-invoice-type.js +1 -0
- package/esm2015/components/tributos/types/incoming-invoice.js +1 -0
- package/esm2015/components/tributos/types/item-type.js +1 -0
- package/esm2015/components/tributos/types/outgoing-Invoice.js +1 -0
- package/esm2015/components/tributos/types/outgoing-invoice-context.js +1 -0
- package/esm2015/components/tributos/types/outgoing-invoice-item.js +1 -0
- package/esm2015/components/tributos/types/outgoing-invoice-type.js +1 -0
- package/esm2015/components/tributos/types/purchase-order-context.js +1 -0
- package/esm2015/components/tributos/types/purchase-order-type.js +1 -0
- package/esm2015/components/tributos/types/purchase-order.js +1 -0
- package/esm2015/components/tributos/types/sale-order-context.js +1 -0
- package/esm2015/components/tributos/types/sale-order-type.js +1 -0
- package/esm2015/components/tributos/types/sale-order.js +1 -0
- package/esm2015/components/tributos/types/tax.js +2 -0
- package/esm2015/components/utils/breakpoints.js +11 -0
- package/esm2015/components/utils/export-utils.js +71 -0
- package/esm2015/components/utils/index.js +4 -0
- package/esm2015/components/utils/loading-context.js +20 -0
- package/esm2015/components/utils/utils.js +18 -0
- package/esm2015/core/entities/entity-service.js +91 -0
- package/esm2015/core/entities/quantidade-disponivel-demanda/quantidade-disponivel-demanda-dto.js +1 -0
- package/esm2015/core/entities/quantidade-disponivel-demanda/quantidade-disponivel-demanda.js +62 -0
- package/esm2015/core/entities/quantidade-disponivel-demanda/quantidade-disponivel-demanda.module.js +24 -0
- package/esm2015/core/entities/quantidade-disponivel-demanda/quantidade-disponivel-demanda.service.js +24 -0
- package/esm2015/core/enums/enum-classificacao-tributaria.js +6 -0
- package/esm2015/core/enums/enum-tipo-calculo-imposto.js +7 -0
- package/esm2015/core/enums/enum-tipo-documento-parametros.js +9 -0
- package/esm2015/core/enums/enum-tipo-documento.js +12 -0
- package/esm2015/core/enums/erpx-com-processo-faturamento-backend/enum-indicativo-padrao.js +7 -0
- package/esm2015/core/enums/erpx-cpl-imp-cadastros-backend/enum-indicativo-padrao.js +10 -0
- package/esm2015/locale/fallback.js +56 -0
- package/esm2015/public-api.js +8 -0
- package/esm2015/senior-gestao-empresarial-erpx-components.js +58 -0
- package/esm5/components/breadcrumb/breadcrumb.component.js +91 -0
- package/esm5/components/breadcrumb/breadcrumb.module.js +20 -0
- package/esm5/components/breadcrumb/index.js +3 -0
- package/esm5/components/focus/focus.service.js +35 -0
- package/esm5/components/lote-serie/erp-lote-serie.component.js +1830 -0
- package/esm5/components/lote-serie/erp-lote-serie.module.js +50 -0
- package/esm5/components/lote-serie/erp-lote-serie.service.js +96 -0
- package/esm5/components/lote-serie/index.js +3 -0
- package/esm5/components/rateio-editor/erp-rateio-editor.component.js +861 -0
- package/esm5/components/rateio-editor/erp-rateio-editor.converter.js +68 -0
- package/esm5/components/rateio-editor/erp-rateio-editor.module.js +43 -0
- package/esm5/components/rateio-editor/erp-rateio-editor.service.js +51 -0
- package/esm5/components/rateio-editor/erp-rateio-editor.types.js +5 -0
- package/esm5/components/rateio-editor/index.js +4 -0
- package/esm5/components/resumo/erp-resumo.component.js +22 -0
- package/esm5/components/resumo/erp-resumo.module.js +28 -0
- package/esm5/components/resumo/erp-resumo.service.js +16 -0
- package/esm5/components/resumo/index.js +2 -0
- package/esm5/components/tributos/calculators/effective-tax-rate-calculator.js +58 -0
- package/esm5/components/tributos/calculators/gross-amount-calculator.js +39 -0
- package/esm5/components/tributos/calculators/tax-amount-calculator.js +91 -0
- package/esm5/components/tributos/erp-tributos.component.js +5296 -0
- package/esm5/components/tributos/erp-tributos.module.js +36 -0
- package/esm5/components/tributos/erp-tributos.service.js +24 -0
- package/esm5/components/tributos/erp-tributos.types.js +268 -0
- package/esm5/components/tributos/index.js +4 -0
- package/esm5/components/tributos/mappings/enum-tip-imp-cst-mapping.js +33 -0
- package/esm5/components/tributos/rules/calculation/registries/calculation-rules-registries/calculation-rules.registry.js +46 -0
- package/esm5/components/tributos/rules/calculation/registries/calculation-rules-registries/incoming-invoice-calculation-rules.registry.js +3104 -0
- package/esm5/components/tributos/rules/calculation/registries/calculation-rules-registries/outgoing-invoice-calculation-rules.registry.js +4518 -0
- package/esm5/components/tributos/rules/calculation/registries/calculation-rules-registries/purchase-order-calculation-rules.registry.js +296 -0
- package/esm5/components/tributos/rules/calculation/registries/calculation-rules-registries/sale-order-calculation-rules.registry.js +1466 -0
- package/esm5/components/tributos/rules/calculation/rules/apply-net-value-to-document-calculation-rule.js +60 -0
- package/esm5/components/tributos/rules/calculation/rules/assessment-period-calculation-rule.js +77 -0
- package/esm5/components/tributos/rules/calculation/rules/effective-tax-rate-calculation-rule.js +92 -0
- package/esm5/components/tributos/rules/calculation/rules/gross-amount-calculation-rule.js +83 -0
- package/esm5/components/tributos/rules/calculation/rules/manual-tax-calculation-rule.js +87 -0
- package/esm5/components/tributos/rules/calculation/rules/tax-amount-calculation-rule.js +286 -0
- package/esm5/components/tributos/rules/calculation/rules/tax-calculation-type-calculation-rule.js +89 -0
- package/esm5/components/tributos/rules/calculation/rules/tax-classification-calculation-rule.js +241 -0
- package/esm5/components/tributos/rules/calculation/rules/tax-rate-calculation-rule.js +118 -0
- package/esm5/components/tributos/rules/calculation/rules/tax-situation-calculation-rule.js +200 -0
- package/esm5/components/tributos/rules/calculation/rules/taxable-base-calculation-rule.js +330 -0
- package/esm5/components/tributos/rules/rules.service.js +139 -0
- package/esm5/components/tributos/rules/status/registries/incoming-invoice-status-rules.registry.js +1078 -0
- package/esm5/components/tributos/rules/status/registries/outgoing-invoice-status-rules.registry.js +1319 -0
- package/esm5/components/tributos/rules/status/registries/purchase-order-status-rules.registry.js +64 -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 +46 -0
- package/esm5/components/tributos/rules/status/rules/apply-net-value-to-document-status-rule.js +43 -0
- package/esm5/components/tributos/rules/status/rules/tax-classification-status-rule.js +106 -0
- 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/available-fields.js +1 -0
- package/esm5/components/tributos/rules/types/available-taxes.js +1 -0
- package/esm5/components/tributos/rules/types/field-calculation-rule-mapping.js +1 -0
- package/esm5/components/tributos/rules/types/field-rule-mapping.js +1 -0
- package/esm5/components/tributos/rules/types/field-status-rule-mapping.js +1 -0
- package/esm5/components/tributos/rules/types/rule-payload.js +1 -0
- package/esm5/components/tributos/rules/types/schemas/incoming-invoice.schema.js +1817 -0
- package/esm5/components/tributos/rules/types/schemas/outgoing-invoice.schema.js +2751 -0
- package/esm5/components/tributos/rules/types/schemas/purchase-order.schema.js +151 -0
- package/esm5/components/tributos/rules/types/schemas/sale-order.schema.js +880 -0
- package/esm5/components/tributos/rules/types/strategies-by-document.js +1 -0
- package/esm5/components/tributos/rules/types/strategies.js +1 -0
- package/esm5/components/tributos/rules/types/tax-rule.js +1 -0
- package/esm5/components/tributos/rules/validation/registries/incoming-invoice-validation-rules.registry.js +3608 -0
- package/esm5/components/tributos/rules/validation/registries/outgoing-invoice-validation-rules.registry.js +5454 -0
- package/esm5/components/tributos/rules/validation/registries/purchase-order-validation-rules.registry.js +272 -0
- package/esm5/components/tributos/rules/validation/registries/sale-order-validation-rules.registry.js +1394 -0
- package/esm5/components/tributos/rules/validation/registries/validation-rules.registry.js +46 -0
- package/esm5/components/tributos/rules/validation/rules/required/apply-net-value-to-document-required-validation-rule.js +77 -0
- 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 +968 -0
- package/esm5/components/tributos/rules/validation/rules/required/tax-classification-required-validation-rule.js +433 -0
- package/esm5/components/tributos/rules/validation/rules/required/tax-rate-required-validation-rule.js +774 -0
- package/esm5/components/tributos/rules/validation/rules/required/tax-situation-required-validation-rule.js +323 -0
- package/esm5/components/tributos/rules/validation/rules/required/taxable-base-required-validation-rule.js +772 -0
- package/esm5/components/tributos/services/tax-rounding.service.js +23 -0
- package/esm5/components/tributos/stores/tax.store.js +26 -0
- package/esm5/components/tributos/tax-reform-utilities.js +249 -0
- package/esm5/components/tributos/types/context.js +1 -0
- package/esm5/components/tributos/types/controllership-incoming-invoice-context.js +1 -0
- package/esm5/components/tributos/types/controllership-incoming-invoice.js +1 -0
- package/esm5/components/tributos/types/controllership-outgoing-invoice-context.js +1 -0
- package/esm5/components/tributos/types/controllership-outgoing-invoice.js +1 -0
- package/esm5/components/tributos/types/credit-invoice-type.js +1 -0
- package/esm5/components/tributos/types/debit-invoice-type.js +1 -0
- package/esm5/components/tributos/types/group.js +1 -0
- package/esm5/components/tributos/types/incoming-invoice-context.js +1 -0
- package/esm5/components/tributos/types/incoming-invoice-item.js +1 -0
- package/esm5/components/tributos/types/incoming-invoice-type.js +1 -0
- package/esm5/components/tributos/types/incoming-invoice.js +1 -0
- package/esm5/components/tributos/types/item-type.js +1 -0
- package/esm5/components/tributos/types/outgoing-Invoice.js +1 -0
- package/esm5/components/tributos/types/outgoing-invoice-context.js +1 -0
- package/esm5/components/tributos/types/outgoing-invoice-item.js +1 -0
- package/esm5/components/tributos/types/outgoing-invoice-type.js +1 -0
- package/esm5/components/tributos/types/purchase-order-context.js +1 -0
- package/esm5/components/tributos/types/purchase-order-type.js +1 -0
- package/esm5/components/tributos/types/purchase-order.js +1 -0
- package/esm5/components/tributos/types/sale-order-context.js +1 -0
- package/esm5/components/tributos/types/sale-order-type.js +1 -0
- package/esm5/components/tributos/types/sale-order.js +1 -0
- package/esm5/components/tributos/types/tax.js +2 -0
- package/esm5/components/utils/breakpoints.js +11 -0
- package/esm5/components/utils/export-utils.js +78 -0
- package/esm5/components/utils/index.js +4 -0
- package/esm5/components/utils/loading-context.js +22 -0
- package/esm5/components/utils/utils.js +20 -0
- package/esm5/core/entities/entity-service.js +98 -0
- package/esm5/core/entities/quantidade-disponivel-demanda/quantidade-disponivel-demanda-dto.js +1 -0
- package/esm5/core/entities/quantidade-disponivel-demanda/quantidade-disponivel-demanda.js +67 -0
- package/esm5/core/entities/quantidade-disponivel-demanda/quantidade-disponivel-demanda.module.js +27 -0
- package/esm5/core/entities/quantidade-disponivel-demanda/quantidade-disponivel-demanda.service.js +27 -0
- package/esm5/core/enums/enum-classificacao-tributaria.js +6 -0
- package/esm5/core/enums/enum-tipo-calculo-imposto.js +7 -0
- package/esm5/core/enums/enum-tipo-documento-parametros.js +9 -0
- package/esm5/core/enums/enum-tipo-documento.js +12 -0
- package/esm5/core/enums/erpx-com-processo-faturamento-backend/enum-indicativo-padrao.js +7 -0
- package/esm5/core/enums/erpx-cpl-imp-cadastros-backend/enum-indicativo-padrao.js +10 -0
- package/esm5/locale/fallback.js +56 -0
- package/esm5/public-api.js +8 -0
- package/esm5/senior-gestao-empresarial-erpx-components.js +58 -0
- package/fesm2015/senior-gestao-empresarial-erpx-components.js +36350 -0
- package/fesm2015/senior-gestao-empresarial-erpx-components.js.map +1 -0
- package/fesm5/senior-gestao-empresarial-erpx-components.js +37396 -0
- package/fesm5/senior-gestao-empresarial-erpx-components.js.map +1 -0
- package/locale/fallback.d.ts +55 -0
- package/package.json +23 -0
- package/public-api.d.ts +7 -0
- package/senior-gestao-empresarial-erpx-components.d.ts +57 -0
- package/senior-gestao-empresarial-erpx-components.metadata.json +1 -0
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
import { FormGroup } from '@angular/forms';
|
|
2
|
+
import { FormField } from '@seniorsistemas/angular-components';
|
|
3
|
+
export interface CampoTributo {
|
|
4
|
+
campo: EnumCampoTributo;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
grupo?: EnumGrupoTributo;
|
|
7
|
+
}
|
|
8
|
+
export interface Tributo {
|
|
9
|
+
tipoImposto: EnumTipoTributo;
|
|
10
|
+
id?: string;
|
|
11
|
+
baseCalculo?: number;
|
|
12
|
+
aliquota?: number;
|
|
13
|
+
valor?: number;
|
|
14
|
+
valorIsentas?: number;
|
|
15
|
+
valorOutras?: number;
|
|
16
|
+
percentualReducao?: number;
|
|
17
|
+
percentualMargemValorAdicionado: number;
|
|
18
|
+
percentualDiferimento?: number;
|
|
19
|
+
PercentualSuspensaoParcial?: number;
|
|
20
|
+
aliquotaInterna?: number;
|
|
21
|
+
}
|
|
22
|
+
export interface Sugestao {
|
|
23
|
+
[nomeCampo: string]: any;
|
|
24
|
+
tipoTributo: EnumTipoTributo;
|
|
25
|
+
}
|
|
26
|
+
export declare enum EnumCampoTributo {
|
|
27
|
+
BaseCalculo = "base_calculo",
|
|
28
|
+
Aliquota = "aliquota",
|
|
29
|
+
Valor = "valor",
|
|
30
|
+
ValorBruto = "valor_bruto",
|
|
31
|
+
SituacaoTributaria = "situacao_tributaria",
|
|
32
|
+
ValorIsentas = "valor_isentas",
|
|
33
|
+
ValorOutras = "valor_outras",
|
|
34
|
+
EnquadramentoIpi = "enquadramento_ipi",
|
|
35
|
+
PercentualReducao = "percentual_reducao",
|
|
36
|
+
PercentualMargemValorAdicionado = "percentual_mva",
|
|
37
|
+
PercentualDiferimento = "percentual_diferimento",
|
|
38
|
+
PercentualSuportadoConsumidorFinal = "percentual_suportado_consumidor_final",
|
|
39
|
+
PercentualSuspensaoParcial = "percentual_suspensao_parcial",
|
|
40
|
+
ValorRecolhidoPeloSubstituto = "valor_recolhido_pelo_substituto",
|
|
41
|
+
ValorIcmsStRetido = "valor_icms_retido",
|
|
42
|
+
MotivoDesoneracaoIcms = "motivo_desoneracao_icms",
|
|
43
|
+
Origem = "origem",
|
|
44
|
+
ModalidadeBC = "modalidade_bc",
|
|
45
|
+
AliquotaInterna = "aliquota_interna",
|
|
46
|
+
AliquotaInternaDestino = "aliquotaInternaDestino",
|
|
47
|
+
ReducaoAliquota = "reducao_aliquota",
|
|
48
|
+
ReducaoAliquotaGovernamental = "reducao_aliquota_governamental",
|
|
49
|
+
AliquotaEfetiva = "aliquota_efetiva",
|
|
50
|
+
NaturezaReceita = "natureza_receita",
|
|
51
|
+
Observacao = "observacao",
|
|
52
|
+
ValorDeducao = "valor_deducao",
|
|
53
|
+
CodigoArrecadacao = "codigo_arrecadacao",
|
|
54
|
+
ImpostoNaoRecuperado = "imposto_nao_recuperado",
|
|
55
|
+
baseCalculoCredito = "baseCalculoCredito",
|
|
56
|
+
CodigoTributacao = "codigo_tributacao",
|
|
57
|
+
RegimeTributarioPisCofins = "regime_tributario_pis_cofins",
|
|
58
|
+
IndicativoAquisicao = "indicativo_aquisicao",
|
|
59
|
+
BeneficioFiscal = "beneficio_fiscal",
|
|
60
|
+
ClassificacaoTributaria = "classificacao_tributaria",
|
|
61
|
+
CstDesoneracao = "cst_desoneracao",
|
|
62
|
+
ClassificacaoTributariaDesoneracao = "classificacao_tributaria_desoneracao",
|
|
63
|
+
AplicarValorLiquidoDocumento = "AplicarValorLiquidoDocumento",
|
|
64
|
+
ClassificacaoTributariaCreditoPresumido = "classificacao_tributaria_credito_presumido",
|
|
65
|
+
TipoCalculoImposto = "TipoCalculoImposto",
|
|
66
|
+
ImpostoManual = "impostoManual",
|
|
67
|
+
EscriturarAliquotaISS = "escriturarAliquotaISS",
|
|
68
|
+
PeriodoApuracao = "periodoApuracao"
|
|
69
|
+
}
|
|
70
|
+
export declare enum EnumGrupoTributo {
|
|
71
|
+
CBS = "cbs",
|
|
72
|
+
IBS_ESTADUAL = "ibs_estadual",
|
|
73
|
+
IBS_MUNICIPAL = "ibs_municipal",
|
|
74
|
+
IBS_MUNICIPAL_DIFERIDO = "ibs_municipal_diferido",
|
|
75
|
+
IBS_CREDITO_PRESUMIDO = "ibs_credito_presumido",
|
|
76
|
+
IS = "is",
|
|
77
|
+
CBS_IBS_ESTORNO_CREDITO = "cbs_ibs_estorno_credito",
|
|
78
|
+
CBS_IBS_AJUSTE = "cbs_ibs_ajuste",
|
|
79
|
+
CBS_IBS_TRANSFERENCIA_CREDITO = "cbs_ibs_transferencia_credito",
|
|
80
|
+
ICMS = "icms",
|
|
81
|
+
ICMS_ST = "icms_st",
|
|
82
|
+
IPI = "ipi",
|
|
83
|
+
PIS = "pis",
|
|
84
|
+
ISS = "iss",
|
|
85
|
+
COFINS = "cofins",
|
|
86
|
+
RETENCOES = "retencoes",
|
|
87
|
+
IMPORTACOES = "importacoes",
|
|
88
|
+
CIDE_TECNOLOGIA = "cide_tecnologia",
|
|
89
|
+
FUNRURAL = "funrural",
|
|
90
|
+
ICMS_CREDITO_PRESUMIDO = "icms_credito_presumido"
|
|
91
|
+
}
|
|
92
|
+
export declare enum EnumTipoTributo {
|
|
93
|
+
CBS = "CBS",
|
|
94
|
+
CBS_A_APROPRIAR = "CBS_A_APROPRIAR",
|
|
95
|
+
CBS_DIFERIDO = "CBS_DIFERIDO",
|
|
96
|
+
CBS_CREDITO_PRESUMIDO = "CBS_CREDITO_PRESUMIDO",
|
|
97
|
+
CBS_TRIBUTACAO_REGULAR = "CBS_TRIBUTACAO_REGULAR",
|
|
98
|
+
CBS_GOVERNAMENTAL = "CBS_GOVERNAMENTAL",
|
|
99
|
+
CBS_ALC_ZFM = "CBS_ALC_ZFM",
|
|
100
|
+
CBS_ESTORNO_CREDITO = "CBS_ESTORNO_CREDITO",
|
|
101
|
+
CBS_AJUSTE = "CBS_AJUSTE",
|
|
102
|
+
IBS_ESTADUAL = "IBS_ESTADUAL",
|
|
103
|
+
IBS_ESTADUAL_A_APROPRIAR = "IBS_ESTADUAL_A_APROPRIAR",
|
|
104
|
+
IBS_ESTADUAL_DIFERIDO = "IBS_ESTADUAL_DIFERIDO",
|
|
105
|
+
IBS_ESTADUAL_TRIBUTACAO_REGULAR = "IBS_ESTADUAL_TRIBUTACAO_REGULAR",
|
|
106
|
+
IBS_ESTADUAL_GOVERNAMENTAL = "IBS_ESTADUAL_GOVERNAMENTAL",
|
|
107
|
+
IBS_MUNICIPAL = "IBS_MUNICIPAL",
|
|
108
|
+
IBS_MUNICIPAL_A_APROPRIAR = "IBS_MUNICIPAL_A_APROPRIAR",
|
|
109
|
+
IBS_MUNICIPAL_DIFERIDO = "IBS_MUNICIPAL_DIFERIDO",
|
|
110
|
+
IBS_MUNICIPAL_TRIBUTACAO_REGULAR = "IBS_MUNICIPAL_TRIBUTACAO_REGULAR",
|
|
111
|
+
IBS_MUNICIPAL_GOVERNAMENTAL = "IBS_MUNICIPAL_GOVERNAMENTAL",
|
|
112
|
+
IBS_CREDITO_PRESUMIDO = "IBS_CREDITO_PRESUMIDO",
|
|
113
|
+
IBS_ESTORNO_CREDITO = "IBS_ESTORNO_CREDITO",
|
|
114
|
+
IBS_AJUSTE = "IBS_AJUSTE",
|
|
115
|
+
CBS_TRANSFERENCIA_CREDITO = "CBS_TRANSFERENCIA_CREDITO",
|
|
116
|
+
IBS_TRANSFERENCIA_CREDITO = "IBS_TRANSFERENCIA_CREDITO",
|
|
117
|
+
IS = "IS",
|
|
118
|
+
PIS_FATURAMENTO = "PIS_FATURAMENTO",
|
|
119
|
+
PIS_RECUPERAR = "PIS_RECUPERAR",
|
|
120
|
+
PIS_DEVOLVIDO = "PIS_DEVOLVIDO",
|
|
121
|
+
COFINS_RECUPERAR = "COFINS_RECUPERAR",
|
|
122
|
+
COFINS_DEVOLVIDO = "COFINS_DEVOLVIDO",
|
|
123
|
+
IPI = "IPI",
|
|
124
|
+
IPI_CREDITADO = "IPI_CREDITADO",
|
|
125
|
+
IPI_PRESUMIDO = "IPI_PRESUMIDO",
|
|
126
|
+
IPI_DEVOLVIDO = "IPI_DEVOLVIDO",
|
|
127
|
+
IPI_OUTRAS_DESPESAS = "IPI_OUTRAS_DESPESAS",
|
|
128
|
+
ISS = "ISS",
|
|
129
|
+
ISS_RETIDO = "ISS_RETIDO",
|
|
130
|
+
IMPOSTO_IMPORTACAO = "IMPOSTO_IMPORTACAO",
|
|
131
|
+
PIS_RECUPERAR_IMPORTACAO = "PIS_RECUPERAR_IMPORTACAO",
|
|
132
|
+
COFINS_RECUPERAR_IMPORTACAO = "COFINS_RECUPERAR_IMPORTACAO",
|
|
133
|
+
PIS_RETIDO = "PIS_RETIDO",
|
|
134
|
+
COFINS_RETIDO = "COFINS_RETIDO",
|
|
135
|
+
CSLL = "CSLL",
|
|
136
|
+
IRRF = "IRRF",
|
|
137
|
+
INSS = "INSS",
|
|
138
|
+
INSS_PATRONAL = "INSS_PATRONAL",
|
|
139
|
+
ICMS_ST = "ICMS_ST",
|
|
140
|
+
FCP_ST = "FCP_ST",
|
|
141
|
+
ICMS_COBRADO_ANTERIORMENTE_ST = "ICMS_COBRADO_ANTERIORMENTE_ST",
|
|
142
|
+
FCP_COBRADO_ANTERIORMENTE_ST = "FCP_COBRADO_ANTERIORMENTE_ST",
|
|
143
|
+
ICMS = "ICMS",
|
|
144
|
+
ICMS_FUTURO = "ICMS_FUTURO",
|
|
145
|
+
ICMS_SIMPLES = "ICMS_SIMPLES",
|
|
146
|
+
ICMS_CREDITADO = "ICMS_CREDITADO",
|
|
147
|
+
FCP = "FCP",
|
|
148
|
+
ICMS_DIFERIDO = "ICMS_DIFERIDO",
|
|
149
|
+
ICMS_DESONERADO = "ICMS_DESONERADO",
|
|
150
|
+
ICMS_CREDITO_PRESUMIDO = "ICMS_CREDITO_PRESUMIDO",
|
|
151
|
+
DIFAL = "DIFAL",
|
|
152
|
+
ICMS_UF_DESTINO = "ICMS_UF_DESTINO",
|
|
153
|
+
FCP_UF_DESTINO = "FCP_UF_DESTINO",
|
|
154
|
+
ICMS_ST_SOLIDARIO = "ICMS_ST_SOLIDARIO",
|
|
155
|
+
ICMS_ST_FUTURO = "ICMS_ST_FUTURO",
|
|
156
|
+
ICMS_ST_RETIDO_ANT = "ICMS_ST_RETIDO_ANT",
|
|
157
|
+
FCP_ST_RETIDO_ANT = "FCP_ST_RETIDO_ANT",
|
|
158
|
+
ICMS_EFETIVO = "ICMS_EFETIVO",
|
|
159
|
+
PIS = "PIS",
|
|
160
|
+
COFINS = "COFINS",
|
|
161
|
+
CIDE_TECNOLOGIA = "CIDE_TECNOLOGIA",
|
|
162
|
+
DIFAL_DEVOLVIDO = "DIFAL_DEVOLVIDO",
|
|
163
|
+
ICMS_UF_DESTINO_DEVOLVIDO = "ICMS_UF_DESTINO_DEVOLVIDO",
|
|
164
|
+
FCP_UF_DESTINO_DEVOLVIDO = "FCP_UF_DESTINO_DEVOLVIDO",
|
|
165
|
+
IMPOSTO_NAO_RECUPERADO = "IMPOSTO_NAO_RECUPERADO",
|
|
166
|
+
BASE_CALCULO_CREDITO = "BASE_CALCULO_CREDITO",
|
|
167
|
+
PERCENTUAL_REDUCAO = "PERCENTUAL_REDUCAO",
|
|
168
|
+
FUNRURAL_INSS = "FUNRURAL_INSS",
|
|
169
|
+
FUNRURAL_RAT = "FUNRURAL_RAT",
|
|
170
|
+
FUNRURAL_SENAR = "FUNRURAL_SENAR",
|
|
171
|
+
FUNRURAL_TOTAL = "FUNRURAL_TOTAL"
|
|
172
|
+
}
|
|
173
|
+
export declare type TaxCalculationMemory = {
|
|
174
|
+
idParametro: string;
|
|
175
|
+
idParametroEstado: string;
|
|
176
|
+
idPerfilTributario: string;
|
|
177
|
+
tipoTributo: EnumTipoTributo;
|
|
178
|
+
fromScreen?: string;
|
|
179
|
+
idParametroSt: string;
|
|
180
|
+
};
|
|
181
|
+
export declare enum EnumModBc {
|
|
182
|
+
V0 = "V0",
|
|
183
|
+
V1 = "V1",
|
|
184
|
+
V2 = "V2",
|
|
185
|
+
V3 = "V3"
|
|
186
|
+
}
|
|
187
|
+
export declare enum EnumOriMer {
|
|
188
|
+
V0 = "V0",
|
|
189
|
+
V1 = "V1",
|
|
190
|
+
V2 = "V2",
|
|
191
|
+
V3 = "V3",
|
|
192
|
+
V4 = "V4",
|
|
193
|
+
V5 = "V5",
|
|
194
|
+
V6 = "V6",
|
|
195
|
+
V7 = "V7",
|
|
196
|
+
V8 = "V8"
|
|
197
|
+
}
|
|
198
|
+
export declare enum EnumMotDes {
|
|
199
|
+
V0 = "V0",
|
|
200
|
+
V1 = "V1",
|
|
201
|
+
V2 = "V2",
|
|
202
|
+
V3 = "V3",
|
|
203
|
+
V4 = "V4",
|
|
204
|
+
V5 = "V5",
|
|
205
|
+
V6 = "V6",
|
|
206
|
+
V7 = "V7",
|
|
207
|
+
V8 = "V8",
|
|
208
|
+
V9 = "V9",
|
|
209
|
+
V10 = "V10",
|
|
210
|
+
V11 = "V11",
|
|
211
|
+
V12 = "V12",
|
|
212
|
+
V16 = "V16",
|
|
213
|
+
V90 = "V90"
|
|
214
|
+
}
|
|
215
|
+
export declare enum EnumTipoItem {
|
|
216
|
+
Produto = "Produto",
|
|
217
|
+
Servico = "Servico"
|
|
218
|
+
}
|
|
219
|
+
export declare enum EnumTipImpCst {
|
|
220
|
+
PIS_COFINS = "PIS_COFINS",
|
|
221
|
+
IPI = "IPI",
|
|
222
|
+
ICMS = "ICMS",
|
|
223
|
+
ISS = "ISS",
|
|
224
|
+
CBS_IBS = "CBS_IBS",
|
|
225
|
+
IS = "IS"
|
|
226
|
+
}
|
|
227
|
+
export declare enum EnumTipOpe {
|
|
228
|
+
VSAIDA = "VSAIDA",
|
|
229
|
+
VENTRADA = "VENTRADA",
|
|
230
|
+
VAMBOS = "VAMBOS"
|
|
231
|
+
}
|
|
232
|
+
export declare enum enumTipCredRecup {
|
|
233
|
+
V1 = "V1",
|
|
234
|
+
V2 = "V2",
|
|
235
|
+
V3 = "V3",
|
|
236
|
+
V4 = "V4",
|
|
237
|
+
V5 = "V5",
|
|
238
|
+
V6 = "V6",
|
|
239
|
+
V7 = "V7",
|
|
240
|
+
V8 = "V8",
|
|
241
|
+
V9 = "V9",
|
|
242
|
+
V10 = "V10",
|
|
243
|
+
V11 = "V11",
|
|
244
|
+
V12 = "V12",
|
|
245
|
+
V13 = "V13",
|
|
246
|
+
V14 = "V14",
|
|
247
|
+
V15 = "V15",
|
|
248
|
+
V16 = "V16",
|
|
249
|
+
V17 = "V17",
|
|
250
|
+
V18 = "V18"
|
|
251
|
+
}
|
|
252
|
+
export interface Item {
|
|
253
|
+
formField: FormField[];
|
|
254
|
+
formGroup: FormGroup;
|
|
255
|
+
label: string;
|
|
256
|
+
name: string;
|
|
257
|
+
}
|
|
258
|
+
export declare enum EnumRegimeTributarioPisCofins {
|
|
259
|
+
CUMULATIVO = "CUMULATIVO",
|
|
260
|
+
NAO_CUMULATIVO = "NAO_CUMULATIVO"
|
|
261
|
+
}
|
|
262
|
+
export declare enum EnumFunruralIndicativoAquisicao {
|
|
263
|
+
V1 = "V1",
|
|
264
|
+
V2 = "V2",
|
|
265
|
+
V3 = "V3",
|
|
266
|
+
V4 = "V4",
|
|
267
|
+
V5 = "V5",
|
|
268
|
+
V6 = "V6",
|
|
269
|
+
V7 = "V7"
|
|
270
|
+
}
|
|
271
|
+
export declare enum EnumSituacao {
|
|
272
|
+
VATIVO = "VATIVO",
|
|
273
|
+
VINATIVO = "VINATIVO"
|
|
274
|
+
}
|
|
275
|
+
export interface ReducaoDiferido extends Item {
|
|
276
|
+
valorMenosDiferido: string;
|
|
277
|
+
}
|
|
278
|
+
export declare enum EnumAplicarValorLiquidoDocumento {
|
|
279
|
+
SOMAR = "SOMAR",
|
|
280
|
+
SUBTRAIR = "SUBTRAIR",
|
|
281
|
+
NENHUM = "NENHUM"
|
|
282
|
+
}
|
|
283
|
+
export declare enum EnumEscriturarAliquotaISS {
|
|
284
|
+
SIM = "SIM",
|
|
285
|
+
NAO = "NAO"
|
|
286
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './erp-tributos.module';
|
|
2
|
+
export * from './erp-tributos.component';
|
|
3
|
+
export * from './erp-tributos.types';
|
|
4
|
+
export { Context } from './types/context';
|
|
5
|
+
export { OutgoingInvoiceType } from './types/outgoing-invoice-type';
|
|
6
|
+
export { DebitInvoiceType } from './types/debit-invoice-type';
|
|
7
|
+
export { IncomingInvoiceType } from './types/incoming-invoice-type';
|
|
8
|
+
export { CreditInvoiceType } from './types/credit-invoice-type';
|
|
9
|
+
export { SaleOrderType } from './types/sale-order-type';
|
|
10
|
+
export { PurchaseOrderType } from './types/purchase-order-type';
|
|
11
|
+
export { ItemType } from './types/item-type';
|
|
12
|
+
export { Tax } from './types/tax';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EnumTipoTributo } from '../../../../erp-tributos.types';
|
|
2
|
+
import { Context } from '../../../../types/context';
|
|
3
|
+
import { FieldCalculationRuleMapping } from '../../../types/field-calculation-rule-mapping';
|
|
4
|
+
import { IncomingInvoiceCalculationRulesRegistry } from './incoming-invoice-calculation-rules.registry';
|
|
5
|
+
import { OutgoingInvoiceCalculationRulesRegistry } from './outgoing-invoice-calculation-rules.registry';
|
|
6
|
+
import { PurchaseOrderCalculationRulesRegistry } from './purchase-order-calculation-rules.registry';
|
|
7
|
+
import { SaleOrderCalculationRulesRegistry } from './sale-order-calculation-rules.registry';
|
|
8
|
+
export declare class CalculationRulesRegistry {
|
|
9
|
+
private readonly incomingInvoiceCalculationRulesRegistry;
|
|
10
|
+
private readonly outgoingInvoiceCalculationRulesRegistry;
|
|
11
|
+
private readonly saleOrderCalculationRulesRegistry;
|
|
12
|
+
private readonly purchaseOrderCalculationRulesRegistry;
|
|
13
|
+
constructor(incomingInvoiceCalculationRulesRegistry: IncomingInvoiceCalculationRulesRegistry, outgoingInvoiceCalculationRulesRegistry: OutgoingInvoiceCalculationRulesRegistry, saleOrderCalculationRulesRegistry: SaleOrderCalculationRulesRegistry, purchaseOrderCalculationRulesRegistry: PurchaseOrderCalculationRulesRegistry);
|
|
14
|
+
get(context: Context, taxType: EnumTipoTributo): FieldCalculationRuleMapping[];
|
|
15
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { EnumTipoTributo } from '../../../../erp-tributos.types';
|
|
2
|
+
import { IncomingInvoiceType } from '../../../../types/incoming-invoice-type';
|
|
3
|
+
import { FieldCalculationRuleMapping } from '../../../types/field-calculation-rule-mapping';
|
|
4
|
+
import { ApplyNetValueToDocumentCalculationRule } from '../../rules/apply-net-value-to-document-calculation-rule';
|
|
5
|
+
import { EffectiveTaxRateCalculationRule } from '../../rules/effective-tax-rate-calculation-rule';
|
|
6
|
+
import { GrossAmountCalculationRule } from '../../rules/gross-amount-calculation-rule';
|
|
7
|
+
import { ManualTaxCalculationRule } from '../../rules/manual-tax-calculation-rule';
|
|
8
|
+
import { TaxAmountCalculationRule } from '../../rules/tax-amount-calculation-rule';
|
|
9
|
+
import { TaxCalculationTypeCalculationRule } from '../../rules/tax-calculation-type-calculation-rule';
|
|
10
|
+
import { TaxClassificationCalculationRule } from '../../rules/tax-classification-calculation-rule';
|
|
11
|
+
import { TaxRateCalculationRule } from '../../rules/tax-rate-calculation-rule';
|
|
12
|
+
import { TaxableBaseCalculationRule } from '../../rules/taxable-base-calculation-rule';
|
|
13
|
+
import { TaxSituationCalculationRule } from '../../rules/tax-situation-calculation-rule';
|
|
14
|
+
export declare class IncomingInvoiceCalculationRulesRegistry {
|
|
15
|
+
private readonly taxableBaseCalculationRule;
|
|
16
|
+
private readonly taxRateCalculationRule;
|
|
17
|
+
private readonly effectiveTaxRateCalculationRule;
|
|
18
|
+
private readonly taxAmountCalculationRule;
|
|
19
|
+
private readonly grossAmountCalculationRule;
|
|
20
|
+
private readonly taxSituationCalculationRule;
|
|
21
|
+
private readonly taxClassificationCalculationRule;
|
|
22
|
+
private readonly taxCalculationTypeCalculationRule;
|
|
23
|
+
private readonly applyNetValueToDocumentCalculationRule;
|
|
24
|
+
private readonly manualTaxCalculationRule;
|
|
25
|
+
private readonly strategies;
|
|
26
|
+
constructor(taxableBaseCalculationRule: TaxableBaseCalculationRule, taxRateCalculationRule: TaxRateCalculationRule, effectiveTaxRateCalculationRule: EffectiveTaxRateCalculationRule, taxAmountCalculationRule: TaxAmountCalculationRule, grossAmountCalculationRule: GrossAmountCalculationRule, taxSituationCalculationRule: TaxSituationCalculationRule, taxClassificationCalculationRule: TaxClassificationCalculationRule, taxCalculationTypeCalculationRule: TaxCalculationTypeCalculationRule, applyNetValueToDocumentCalculationRule: ApplyNetValueToDocumentCalculationRule, manualTaxCalculationRule: ManualTaxCalculationRule);
|
|
27
|
+
get(type: IncomingInvoiceType, taxType: EnumTipoTributo): FieldCalculationRuleMapping[];
|
|
28
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { EnumTipoTributo } from '../../../../erp-tributos.types';
|
|
2
|
+
import { OutgoingInvoiceType } from '../../../../types/outgoing-invoice-type';
|
|
3
|
+
import { FieldCalculationRuleMapping } from '../../../types/field-calculation-rule-mapping';
|
|
4
|
+
import { ApplyNetValueToDocumentCalculationRule } from '../../rules/apply-net-value-to-document-calculation-rule';
|
|
5
|
+
import { AssessmentPeriodCalculationRule } from '../../rules/assessment-period-calculation-rule';
|
|
6
|
+
import { EffectiveTaxRateCalculationRule } from '../../rules/effective-tax-rate-calculation-rule';
|
|
7
|
+
import { GrossAmountCalculationRule } from '../../rules/gross-amount-calculation-rule';
|
|
8
|
+
import { ManualTaxCalculationRule } from '../../rules/manual-tax-calculation-rule';
|
|
9
|
+
import { TaxAmountCalculationRule } from '../../rules/tax-amount-calculation-rule';
|
|
10
|
+
import { TaxCalculationTypeCalculationRule } from '../../rules/tax-calculation-type-calculation-rule';
|
|
11
|
+
import { TaxClassificationCalculationRule } from '../../rules/tax-classification-calculation-rule';
|
|
12
|
+
import { TaxRateCalculationRule } from '../../rules/tax-rate-calculation-rule';
|
|
13
|
+
import { TaxSituationCalculationRule } from '../../rules/tax-situation-calculation-rule';
|
|
14
|
+
import { TaxableBaseCalculationRule } from '../../rules/taxable-base-calculation-rule';
|
|
15
|
+
export declare class OutgoingInvoiceCalculationRulesRegistry {
|
|
16
|
+
private readonly taxableBaseCalculationRule;
|
|
17
|
+
private readonly taxRateCalculationRule;
|
|
18
|
+
private readonly effectiveTaxRateCalculationRule;
|
|
19
|
+
private readonly taxAmountCalculationRule;
|
|
20
|
+
private readonly grossAmountCalculationRule;
|
|
21
|
+
private readonly taxSituationCalculationRule;
|
|
22
|
+
private readonly taxClassificationCalculationRule;
|
|
23
|
+
private readonly taxCalculationTypeCalculationRule;
|
|
24
|
+
private readonly assessmentPeriodCalculationRule;
|
|
25
|
+
private readonly applyNetValueToDocumentCalculationRule;
|
|
26
|
+
private readonly manualTaxCalculationRule;
|
|
27
|
+
private readonly strategies;
|
|
28
|
+
constructor(taxableBaseCalculationRule: TaxableBaseCalculationRule, taxRateCalculationRule: TaxRateCalculationRule, effectiveTaxRateCalculationRule: EffectiveTaxRateCalculationRule, taxAmountCalculationRule: TaxAmountCalculationRule, grossAmountCalculationRule: GrossAmountCalculationRule, taxSituationCalculationRule: TaxSituationCalculationRule, taxClassificationCalculationRule: TaxClassificationCalculationRule, taxCalculationTypeCalculationRule: TaxCalculationTypeCalculationRule, assessmentPeriodCalculationRule: AssessmentPeriodCalculationRule, applyNetValueToDocumentCalculationRule: ApplyNetValueToDocumentCalculationRule, manualTaxCalculationRule: ManualTaxCalculationRule);
|
|
29
|
+
get(type: OutgoingInvoiceType, taxType: EnumTipoTributo): FieldCalculationRuleMapping[];
|
|
30
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { EnumTipoTributo } from '../../../../erp-tributos.types';
|
|
2
|
+
import { PurchaseOrderType } from '../../../../types/purchase-order-type';
|
|
3
|
+
import { FieldCalculationRuleMapping } from '../../../types/field-calculation-rule-mapping';
|
|
4
|
+
import { EffectiveTaxRateCalculationRule } from '../../rules/effective-tax-rate-calculation-rule';
|
|
5
|
+
import { GrossAmountCalculationRule } from '../../rules/gross-amount-calculation-rule';
|
|
6
|
+
import { ManualTaxCalculationRule } from '../../rules/manual-tax-calculation-rule';
|
|
7
|
+
import { TaxAmountCalculationRule } from '../../rules/tax-amount-calculation-rule';
|
|
8
|
+
import { TaxCalculationTypeCalculationRule } from '../../rules/tax-calculation-type-calculation-rule';
|
|
9
|
+
import { TaxRateCalculationRule } from '../../rules/tax-rate-calculation-rule';
|
|
10
|
+
import { TaxableBaseCalculationRule } from '../../rules/taxable-base-calculation-rule';
|
|
11
|
+
export declare class PurchaseOrderCalculationRulesRegistry {
|
|
12
|
+
private readonly taxableBaseCalculationRule;
|
|
13
|
+
private readonly taxRateCalculationRule;
|
|
14
|
+
private readonly effectiveTaxRateCalculationRule;
|
|
15
|
+
private readonly taxAmountCalculationRule;
|
|
16
|
+
private readonly grossAmountCalculationRule;
|
|
17
|
+
private readonly taxCalculationTypeCalculationRule;
|
|
18
|
+
private readonly manualTaxCalculationRule;
|
|
19
|
+
private readonly strategies;
|
|
20
|
+
constructor(taxableBaseCalculationRule: TaxableBaseCalculationRule, taxRateCalculationRule: TaxRateCalculationRule, effectiveTaxRateCalculationRule: EffectiveTaxRateCalculationRule, taxAmountCalculationRule: TaxAmountCalculationRule, grossAmountCalculationRule: GrossAmountCalculationRule, taxCalculationTypeCalculationRule: TaxCalculationTypeCalculationRule, manualTaxCalculationRule: ManualTaxCalculationRule);
|
|
21
|
+
get(type: PurchaseOrderType, taxType: EnumTipoTributo): FieldCalculationRuleMapping[];
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { EnumTipoTributo } from '../../../../erp-tributos.types';
|
|
2
|
+
import { SaleOrderType } from '../../../../types/sale-order-type';
|
|
3
|
+
import { FieldCalculationRuleMapping } from '../../../types/field-calculation-rule-mapping';
|
|
4
|
+
import { EffectiveTaxRateCalculationRule } from '../../rules/effective-tax-rate-calculation-rule';
|
|
5
|
+
import { GrossAmountCalculationRule } from '../../rules/gross-amount-calculation-rule';
|
|
6
|
+
import { ManualTaxCalculationRule } from '../../rules/manual-tax-calculation-rule';
|
|
7
|
+
import { TaxAmountCalculationRule } from '../../rules/tax-amount-calculation-rule';
|
|
8
|
+
import { TaxCalculationTypeCalculationRule } from '../../rules/tax-calculation-type-calculation-rule';
|
|
9
|
+
import { TaxRateCalculationRule } from '../../rules/tax-rate-calculation-rule';
|
|
10
|
+
import { TaxableBaseCalculationRule } from '../../rules/taxable-base-calculation-rule';
|
|
11
|
+
export declare class SaleOrderCalculationRulesRegistry {
|
|
12
|
+
private readonly taxableBaseCalculationRule;
|
|
13
|
+
private readonly taxRateCalculationRule;
|
|
14
|
+
private readonly effectiveTaxRateCalculationRule;
|
|
15
|
+
private readonly taxAmountCalculationRule;
|
|
16
|
+
private readonly grossAmountCalculationRule;
|
|
17
|
+
private readonly taxCalculationTypeCalculationRule;
|
|
18
|
+
private readonly manualTaxCalculationRule;
|
|
19
|
+
private readonly strategies;
|
|
20
|
+
constructor(taxableBaseCalculationRule: TaxableBaseCalculationRule, taxRateCalculationRule: TaxRateCalculationRule, effectiveTaxRateCalculationRule: EffectiveTaxRateCalculationRule, taxAmountCalculationRule: TaxAmountCalculationRule, grossAmountCalculationRule: GrossAmountCalculationRule, taxCalculationTypeCalculationRule: TaxCalculationTypeCalculationRule, manualTaxCalculationRule: ManualTaxCalculationRule);
|
|
21
|
+
get(type: SaleOrderType, taxType: EnumTipoTributo): FieldCalculationRuleMapping[];
|
|
22
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { RulePayload } from '../../types/rule-payload';
|
|
2
|
+
import { TaxRule } from '../../types/tax-rule';
|
|
3
|
+
export declare class ApplyNetValueToDocumentCalculationRule implements TaxRule {
|
|
4
|
+
apply({ context: { document }, item: { name: taxType, formGroup, formField } }: RulePayload): void;
|
|
5
|
+
}
|
|
@@ -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 { EffectiveTaxRateCalculator } from '../../../calculators/effective-tax-rate-calculator';
|
|
2
|
+
import { RulePayload } from '../../types/rule-payload';
|
|
3
|
+
import { TaxRule } from '../../types/tax-rule';
|
|
4
|
+
export declare class EffectiveTaxRateCalculationRule implements TaxRule {
|
|
5
|
+
private readonly effectiveTaxRateCalculator;
|
|
6
|
+
constructor(effectiveTaxRateCalculator: EffectiveTaxRateCalculator);
|
|
7
|
+
apply({ context: { document }, item: { name: taxType, formGroup } }: RulePayload): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GrossAmountCalculator } from '../../../calculators/gross-amount-calculator';
|
|
2
|
+
import { RulePayload } from '../../types/rule-payload';
|
|
3
|
+
import { TaxRule } from '../../types/tax-rule';
|
|
4
|
+
export declare class GrossAmountCalculationRule implements TaxRule {
|
|
5
|
+
private readonly grossAmountCalculator;
|
|
6
|
+
constructor(grossAmountCalculator: GrossAmountCalculator);
|
|
7
|
+
apply({ context: { document }, item: { name: taxType, formGroup } }: RulePayload): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { RulePayload } from '../../types/rule-payload';
|
|
2
|
+
import { TaxRule } from '../../types/tax-rule';
|
|
3
|
+
export declare class ManualTaxCalculationRule implements TaxRule {
|
|
4
|
+
apply({ context: { document }, group, item: { name: taxType, formGroup } }: RulePayload): void;
|
|
5
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TaxAmountCalculator } from '../../../calculators/tax-amount-calculator';
|
|
2
|
+
import { RulePayload } from '../../types/rule-payload';
|
|
3
|
+
import { TaxRule } from '../../types/tax-rule';
|
|
4
|
+
export declare class TaxAmountCalculationRule implements TaxRule {
|
|
5
|
+
private readonly taxAmountCalculator;
|
|
6
|
+
constructor(taxAmountCalculator: TaxAmountCalculator);
|
|
7
|
+
apply({ context: { document }, group, item: { name: taxType, formGroup, formField } }: RulePayload): void;
|
|
8
|
+
}
|
package/components/tributos/rules/calculation/rules/tax-calculation-type-calculation-rule.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { RulePayload } from '../../types/rule-payload';
|
|
2
|
+
import { TaxRule } from '../../types/tax-rule';
|
|
3
|
+
export declare class TaxCalculationTypeCalculationRule implements TaxRule {
|
|
4
|
+
apply({ context: { document }, group, item: { name: taxType, formGroup } }: RulePayload): void;
|
|
5
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { RulePayload } from '../../types/rule-payload';
|
|
2
|
+
import { TaxRule } from '../../types/tax-rule';
|
|
3
|
+
export declare class TaxClassificationCalculationRule implements TaxRule {
|
|
4
|
+
constructor();
|
|
5
|
+
apply({ context: { document }, group, item: { name: taxType, formGroup, formField } }: RulePayload): void;
|
|
6
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { RulePayload } from '../../types/rule-payload';
|
|
2
|
+
import { TaxRule } from '../../types/tax-rule';
|
|
3
|
+
export declare class TaxRateCalculationRule implements TaxRule {
|
|
4
|
+
apply({ context: { document }, group, item: { name: taxType, formGroup } }: RulePayload): void;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { RulePayload } from '../../types/rule-payload';
|
|
2
|
+
import { TaxRule } from '../../types/tax-rule';
|
|
3
|
+
export declare class TaxSituationCalculationRule implements TaxRule {
|
|
4
|
+
apply({ context: { document }, group, item: { name: taxType, formGroup } }: RulePayload): void;
|
|
5
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TaxAmountCalculator } from '../../../calculators/tax-amount-calculator';
|
|
2
|
+
import { RulePayload } from '../../types/rule-payload';
|
|
3
|
+
import { TaxRule } from '../../types/tax-rule';
|
|
4
|
+
export declare class TaxableBaseCalculationRule implements TaxRule {
|
|
5
|
+
private readonly taxAmountCalculator;
|
|
6
|
+
constructor(taxAmountCalculator: TaxAmountCalculator);
|
|
7
|
+
apply({ context: { document }, groups, group, item: { name: taxType, formGroup } }: RulePayload): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Context } from '../types/context';
|
|
2
|
+
import { Group } from '../types/group';
|
|
3
|
+
import { CalculationRulesRegistry } from './calculation/registries/calculation-rules-registries/calculation-rules.registry';
|
|
4
|
+
import { StatusRulesRegistry } from './status/registries/status-rules.registry';
|
|
5
|
+
import { ValidationRulesRegistry } from './validation/registries/validation-rules.registry';
|
|
6
|
+
export declare class RulesService {
|
|
7
|
+
private readonly statusRulesRegistry;
|
|
8
|
+
private readonly validationRulesRegistry;
|
|
9
|
+
private readonly calculationRulesRegistry;
|
|
10
|
+
constructor(statusRulesRegistry: StatusRulesRegistry, validationRulesRegistry: ValidationRulesRegistry, calculationRulesRegistry: CalculationRulesRegistry);
|
|
11
|
+
apply({ groups, group, context }: {
|
|
12
|
+
context: Context;
|
|
13
|
+
groups: Group[];
|
|
14
|
+
group: Group;
|
|
15
|
+
}): void;
|
|
16
|
+
private applyCalculationRules;
|
|
17
|
+
private applyValidationRules;
|
|
18
|
+
private applyStatusRules;
|
|
19
|
+
}
|
package/components/tributos/rules/status/registries/incoming-invoice-status-rules.registry.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EnumTipoTributo } from '../../../erp-tributos.types';
|
|
2
|
+
import { IncomingInvoiceType } from '../../../types/incoming-invoice-type';
|
|
3
|
+
import { FieldStatusRuleMapping } from '../../types/field-status-rule-mapping';
|
|
4
|
+
import { ApplyNetValueToDocumentStatusRule } from '../rules/apply-net-value-to-document-status-rule';
|
|
5
|
+
import { TaxClassificationStatusRule } from '../rules/tax-classification-status-rule';
|
|
6
|
+
import { TaxRateStatusRule } from '../rules/tax-rate-status-rule';
|
|
7
|
+
import { TaxableBaseStatusRule } from '../rules/taxable-base-status-rule';
|
|
8
|
+
export declare class IncomingInvoiceStatusRulesRegistry {
|
|
9
|
+
private readonly taxClassificationStatusRule;
|
|
10
|
+
private readonly applyNetValueToDocumentStatusRule;
|
|
11
|
+
private readonly taxableBaseStatusRule;
|
|
12
|
+
private readonly taxRateStatusRule;
|
|
13
|
+
private readonly strategies;
|
|
14
|
+
constructor(taxClassificationStatusRule: TaxClassificationStatusRule, applyNetValueToDocumentStatusRule: ApplyNetValueToDocumentStatusRule, taxableBaseStatusRule: TaxableBaseStatusRule, taxRateStatusRule: TaxRateStatusRule);
|
|
15
|
+
get(type: IncomingInvoiceType, taxType: EnumTipoTributo): FieldStatusRuleMapping[];
|
|
16
|
+
}
|
package/components/tributos/rules/status/registries/outgoing-invoice-status-rules.registry.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EnumTipoTributo } from '../../../erp-tributos.types';
|
|
2
|
+
import { OutgoingInvoiceType } from '../../../types/outgoing-invoice-type';
|
|
3
|
+
import { FieldStatusRuleMapping } from '../../types/field-status-rule-mapping';
|
|
4
|
+
import { ApplyNetValueToDocumentStatusRule } from '../rules/apply-net-value-to-document-status-rule';
|
|
5
|
+
import { TaxClassificationStatusRule } from '../rules/tax-classification-status-rule';
|
|
6
|
+
export declare class OutgoingInvoiceStatusRulesRegistry {
|
|
7
|
+
private readonly taxClassificationStatusRule;
|
|
8
|
+
private readonly applyNetValueToDocumentStatusRule;
|
|
9
|
+
private readonly strategies;
|
|
10
|
+
constructor(taxClassificationStatusRule: TaxClassificationStatusRule, applyNetValueToDocumentStatusRule: ApplyNetValueToDocumentStatusRule);
|
|
11
|
+
get(type: OutgoingInvoiceType, taxType: EnumTipoTributo): FieldStatusRuleMapping[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
import { TaxRateStatusRule } from '../rules/tax-rate-status-rule';
|
|
5
|
+
import { TaxableBaseStatusRule } from '../rules/taxable-base-status-rule';
|
|
6
|
+
export declare class PurchaseOrderStatusRulesRegistry {
|
|
7
|
+
private readonly taxableBaseStatusRule;
|
|
8
|
+
private readonly taxRateStatusRule;
|
|
9
|
+
private readonly strategies;
|
|
10
|
+
constructor(taxableBaseStatusRule: TaxableBaseStatusRule, taxRateStatusRule: TaxRateStatusRule);
|
|
11
|
+
get(type: PurchaseOrderType, taxType: EnumTipoTributo): FieldStatusRuleMapping[];
|
|
12
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EnumTipoTributo } from '../../../erp-tributos.types';
|
|
2
|
+
import { Context } from '../../../types/context';
|
|
3
|
+
import { FieldStatusRuleMapping } from '../../types/field-status-rule-mapping';
|
|
4
|
+
import { IncomingInvoiceStatusRulesRegistry } from './incoming-invoice-status-rules.registry';
|
|
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';
|
|
8
|
+
export declare class StatusRulesRegistry {
|
|
9
|
+
private readonly incomingInvoiceStatusRulesRegistry;
|
|
10
|
+
private readonly outgoingInvoiceStatusRulesRegistry;
|
|
11
|
+
private readonly saleOrderStatusRulesRegistry;
|
|
12
|
+
private readonly purchaseOrderStatusRulesRegistry;
|
|
13
|
+
constructor(incomingInvoiceStatusRulesRegistry: IncomingInvoiceStatusRulesRegistry, outgoingInvoiceStatusRulesRegistry: OutgoingInvoiceStatusRulesRegistry, saleOrderStatusRulesRegistry: SaleOrderStatusRulesRegistry, purchaseOrderStatusRulesRegistry: PurchaseOrderStatusRulesRegistry);
|
|
14
|
+
get(context: Context, taxType: EnumTipoTributo): FieldStatusRuleMapping[];
|
|
15
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { RulePayload } from '../../types/rule-payload';
|
|
2
|
+
import { TaxRule } from '../../types/tax-rule';
|
|
3
|
+
export declare class ApplyNetValueToDocumentStatusRule implements TaxRule {
|
|
4
|
+
apply({ context: { document }, item: { name: taxType, formGroup } }: RulePayload): void;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { RulePayload } from '../../types/rule-payload';
|
|
2
|
+
import { TaxRule } from '../../types/tax-rule';
|
|
3
|
+
export declare class TaxClassificationStatusRule implements TaxRule {
|
|
4
|
+
apply({ context: { document }, item: { name: taxType, formGroup } }: RulePayload): void;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { RulePayload } from '../../types/rule-payload';
|
|
2
|
+
import { TaxRule } from '../../types/tax-rule';
|
|
3
|
+
export declare class TaxableBaseStatusRule implements TaxRule {
|
|
4
|
+
apply({ context: { document }, group, item: { name: taxType, formGroup } }: RulePayload): void;
|
|
5
|
+
}
|