@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,171 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tipos do componente erp-rateio-editor.
|
|
3
|
+
* Espelham os records e enums do SDL erpx_fin_rat/rateio (ERPMAD-17682).
|
|
4
|
+
*/
|
|
5
|
+
/** Espelho de enumTipoMovimento (SDL — PascalCase) */
|
|
6
|
+
export declare type TipoMovimento = 'PedidoProduto' | 'PedidoServico' | 'NotaFiscalSaidaProduto' | 'NotaFiscalSaidaServico' | 'ContratoVendaProduto' | 'ContratoVendaServico' | 'Requisicao' | 'MovimentoEstoque' | 'ContasReceber' | 'SolicitacaoCompra' | 'OrdemCompraProduto' | 'OrdemCompraServico' | 'NotaFiscalEntradaProduto' | 'NotaFiscalEntradaServico' | 'ContasPagar' | 'Comissoes' | 'Tesouraria' | 'PreparacaoTesouraria' | 'ContratoCompraProduto' | 'ContratoCompraServico' | 'NotaFiscalEntrada' | 'NotaFiscalSaida' | 'ContratoCompra' | 'ContratoVenda' | 'Pedidos';
|
|
7
|
+
/**
|
|
8
|
+
* Espelho de enumCriRat (SDL).
|
|
9
|
+
* V1 = Receitas — Conta X C. Custos
|
|
10
|
+
* V2 = Receitas — C. Custos X Conta
|
|
11
|
+
* V3 = Despesas — Conta X C. Custos
|
|
12
|
+
* V4 = Despesas — C. Custos X Conta
|
|
13
|
+
* V5 = Nenhum
|
|
14
|
+
*/
|
|
15
|
+
export declare type CriterioRateio = 'V1' | 'V2' | 'V3' | 'V4' | 'V5';
|
|
16
|
+
export interface RateioConta {
|
|
17
|
+
id?: string;
|
|
18
|
+
idContaFinanceira: string;
|
|
19
|
+
contaFinanceira: string;
|
|
20
|
+
idContaContabil?: string;
|
|
21
|
+
contaContabil?: string;
|
|
22
|
+
idProjeto?: string;
|
|
23
|
+
projeto?: string;
|
|
24
|
+
idFaseProjeto?: string;
|
|
25
|
+
faseProjeto?: string;
|
|
26
|
+
percentual: number;
|
|
27
|
+
valorRateadoConta: number;
|
|
28
|
+
rateiosCCusto: RateioCCusto[];
|
|
29
|
+
}
|
|
30
|
+
export interface RateioCCusto {
|
|
31
|
+
idCentroCusto: string;
|
|
32
|
+
descCCusto?: string;
|
|
33
|
+
percentual: number;
|
|
34
|
+
valor: number;
|
|
35
|
+
observacao?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface Empresa {
|
|
38
|
+
id: string;
|
|
39
|
+
codEmp: number;
|
|
40
|
+
nomEmp: string;
|
|
41
|
+
}
|
|
42
|
+
export interface Filial {
|
|
43
|
+
id: string;
|
|
44
|
+
e070emp: Empresa;
|
|
45
|
+
codFil: number;
|
|
46
|
+
nomFil: string;
|
|
47
|
+
}
|
|
48
|
+
export interface InformacaoMovimento {
|
|
49
|
+
id: string;
|
|
50
|
+
codigo: string;
|
|
51
|
+
descricao: string;
|
|
52
|
+
labelInformacao: string;
|
|
53
|
+
}
|
|
54
|
+
export interface IntegracaoControladoria {
|
|
55
|
+
contabilidade?: boolean;
|
|
56
|
+
tributos?: boolean;
|
|
57
|
+
patrimonio?: boolean;
|
|
58
|
+
}
|
|
59
|
+
export interface RetornarRateioInput {
|
|
60
|
+
idMovimento: string;
|
|
61
|
+
tipoMovimento: TipoMovimento;
|
|
62
|
+
}
|
|
63
|
+
export interface RetornarRateioOutput {
|
|
64
|
+
rateio: RateioConta[];
|
|
65
|
+
e070fil: Filial;
|
|
66
|
+
oriRat: string;
|
|
67
|
+
criRat: CriterioRateio;
|
|
68
|
+
valorBase: number;
|
|
69
|
+
dataBase: string;
|
|
70
|
+
dataMovimento?: string;
|
|
71
|
+
informacoesMovimento?: InformacaoMovimento[];
|
|
72
|
+
agrupadorId: string;
|
|
73
|
+
integracaoControladoria?: IntegracaoControladoria;
|
|
74
|
+
usuGer: string;
|
|
75
|
+
dthGer: string;
|
|
76
|
+
}
|
|
77
|
+
export interface GravarRateioManualInput {
|
|
78
|
+
idMovimento: string;
|
|
79
|
+
agrupadorId?: string;
|
|
80
|
+
tipoMovimento: TipoMovimento;
|
|
81
|
+
e070fil_id: string;
|
|
82
|
+
criterioRateio: CriterioRateio;
|
|
83
|
+
dataBase?: string;
|
|
84
|
+
dataMovimento?: string;
|
|
85
|
+
rateios: RateioConta[];
|
|
86
|
+
}
|
|
87
|
+
/** Modelo plano — usado APENAS pelo output de sugerirRateio */
|
|
88
|
+
export interface DistribuicaoRateioManualPlana {
|
|
89
|
+
e091plf_id: string;
|
|
90
|
+
e044ccu_id?: string;
|
|
91
|
+
e045pla_id?: string;
|
|
92
|
+
e615prj_id?: string;
|
|
93
|
+
e615fpj_id?: string;
|
|
94
|
+
percentual: number;
|
|
95
|
+
valor: number;
|
|
96
|
+
}
|
|
97
|
+
export interface SugestaoRateio {
|
|
98
|
+
idMovimento?: string;
|
|
99
|
+
rateio: RateioConta[];
|
|
100
|
+
}
|
|
101
|
+
export interface SugerirRateioInput {
|
|
102
|
+
parametros: SugerirRateioParametro[];
|
|
103
|
+
tipo: TipoMovimento;
|
|
104
|
+
}
|
|
105
|
+
export interface SugerirRateioParametro {
|
|
106
|
+
idMovimento?: string;
|
|
107
|
+
e070fil_id: string;
|
|
108
|
+
valorBase: number;
|
|
109
|
+
movimentos?: string;
|
|
110
|
+
e091plf_id?: string;
|
|
111
|
+
e045pla_id?: string;
|
|
112
|
+
e044ccu_id?: string;
|
|
113
|
+
e615prj_id?: string;
|
|
114
|
+
e615fpj_id?: string;
|
|
115
|
+
criRat: CriterioRateio;
|
|
116
|
+
idTransacao?: string;
|
|
117
|
+
idFamilia?: string;
|
|
118
|
+
idDerivacao?: string;
|
|
119
|
+
idServico?: string;
|
|
120
|
+
dataBase?: string;
|
|
121
|
+
dataMovimento?: string;
|
|
122
|
+
valorExcedente?: number;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Valor selecionado no lookup de conta financeira (E091Plf) com os displayfields
|
|
126
|
+
* usados na validação analítica. Não é persistido em RateioConta.
|
|
127
|
+
*/
|
|
128
|
+
export interface ContaFinanceiraLookup {
|
|
129
|
+
id: string;
|
|
130
|
+
label: string;
|
|
131
|
+
/** 'VS' = sintética; demais valores = analítica. */
|
|
132
|
+
anaSin?: string;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Valor selecionado no lookup de centro de custo (E044Ccu) com os displayfields
|
|
136
|
+
* usados na validação analítica. Não é persistido em RateioCCusto.
|
|
137
|
+
*/
|
|
138
|
+
export interface CentroCustoLookup {
|
|
139
|
+
id: string;
|
|
140
|
+
label: string;
|
|
141
|
+
/** 'VS' = sintético; demais valores = analítico. */
|
|
142
|
+
anaSin?: string;
|
|
143
|
+
/** true = aceita rateio; false = não aceita. */
|
|
144
|
+
aceRat?: boolean;
|
|
145
|
+
}
|
|
146
|
+
export interface RateioEditorConfig {
|
|
147
|
+
/** Casas decimais para valores monetários (default: 2) */
|
|
148
|
+
currencyScale?: number;
|
|
149
|
+
/** Casas decimais para percentuais (default: 4) */
|
|
150
|
+
percentageScale?: number;
|
|
151
|
+
/** Permitir valores negativos (default: false) */
|
|
152
|
+
allowNegativeValues?: boolean;
|
|
153
|
+
/** Máximo de contas financeiras (default: sem limite) */
|
|
154
|
+
maxAccounts?: number;
|
|
155
|
+
}
|
|
156
|
+
export interface RateioSaveEvent {
|
|
157
|
+
idMovimento: string;
|
|
158
|
+
tipoMovimento: TipoMovimento;
|
|
159
|
+
rateios: RateioConta[];
|
|
160
|
+
}
|
|
161
|
+
export interface RateioChangeEvent {
|
|
162
|
+
isDirty: boolean;
|
|
163
|
+
isValid: boolean;
|
|
164
|
+
rateios: RateioConta[];
|
|
165
|
+
}
|
|
166
|
+
export interface RateioErrorEvent {
|
|
167
|
+
operacao: 'load' | 'save' | 'suggest';
|
|
168
|
+
message: string;
|
|
169
|
+
code?: string;
|
|
170
|
+
originalError?: unknown;
|
|
171
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { ErpRateioEditorModule } from './erp-rateio-editor.module';
|
|
2
|
+
export { ErpRateioEditorComponent } from './erp-rateio-editor.component';
|
|
3
|
+
export { TipoMovimento, CriterioRateio, RateioConta, RateioCCusto, ContaFinanceiraLookup, CentroCustoLookup, Empresa, Filial, InformacaoMovimento, IntegracaoControladoria, RetornarRateioInput, RetornarRateioOutput, GravarRateioManualInput, DistribuicaoRateioManualPlana, SugestaoRateio, SugerirRateioInput, SugerirRateioParametro, RateioEditorConfig, RateioSaveEvent, RateioChangeEvent, RateioErrorEvent } from './erp-rateio-editor.types';
|
|
4
|
+
export { ErpRateioEditorConverter } from './erp-rateio-editor.converter';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare class ErpResumoComponent {
|
|
2
|
+
summary: Summary;
|
|
3
|
+
getProp(obj: any, path: any): any;
|
|
4
|
+
}
|
|
5
|
+
export interface Summary {
|
|
6
|
+
total?: SummaryItem;
|
|
7
|
+
sections: Array<SummarySectionItem>;
|
|
8
|
+
}
|
|
9
|
+
export interface SummarySectionItem {
|
|
10
|
+
title?: string;
|
|
11
|
+
items: Array<Array<SummaryItem>>;
|
|
12
|
+
subtotal?: SummaryItem;
|
|
13
|
+
}
|
|
14
|
+
export interface SummaryItem {
|
|
15
|
+
label?: string;
|
|
16
|
+
value?: string | number;
|
|
17
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import BigNumber from 'bignumber.js';
|
|
2
|
+
export declare class EffectiveTaxRateCalculator {
|
|
3
|
+
/**
|
|
4
|
+
* Calculates the effective tax rate by applying both the tax rate reduction and the governmental tax rate reduction factors.
|
|
5
|
+
*
|
|
6
|
+
* @param params - An object containing the following properties:
|
|
7
|
+
* @param params.taxRate - The base tax rate as a BigNumber.
|
|
8
|
+
* @param params.taxRateReduction - The tax rate reduction percentage as a BigNumber.
|
|
9
|
+
* @param params.governamentalTaxRateReduction - The governmental tax rate reduction percentage as a BigNumber.
|
|
10
|
+
* @returns The effective tax rate as a BigNumber after applying the reduction factors.
|
|
11
|
+
*/
|
|
12
|
+
calculateEffectiveTaxRate({ taxRate, taxRateReduction, governamentalTaxRateReduction }: {
|
|
13
|
+
taxRate: BigNumber;
|
|
14
|
+
taxRateReduction: BigNumber;
|
|
15
|
+
governamentalTaxRateReduction: BigNumber;
|
|
16
|
+
}): BigNumber;
|
|
17
|
+
/**
|
|
18
|
+
* Calculates the effective tax rate by applying a reduction factor to the given tax rate,
|
|
19
|
+
* excluding any governmental tax rate reductions.
|
|
20
|
+
*
|
|
21
|
+
* If the `taxRateReduction` is not a valid number, it defaults to zero.
|
|
22
|
+
* The reduction factor is computed as (1 - taxRateReduction / 100) if `taxRateReduction` is greater than zero,
|
|
23
|
+
* otherwise it is 1 (no reduction).
|
|
24
|
+
*
|
|
25
|
+
* @param params - An object containing:
|
|
26
|
+
* - taxRate: The original tax rate as a BigNumber.
|
|
27
|
+
* - taxRateReduction: The tax rate reduction percentage as a BigNumber.
|
|
28
|
+
* @returns The effective tax rate as a BigNumber after applying the reduction factor.
|
|
29
|
+
*/
|
|
30
|
+
calculateEffectiveTaxRateWithoutGovernamentalTaxRateReduction({ taxRate, taxRateReduction }: {
|
|
31
|
+
taxRate: BigNumber;
|
|
32
|
+
taxRateReduction: BigNumber;
|
|
33
|
+
}): BigNumber;
|
|
34
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import BigNumber from 'bignumber.js';
|
|
2
|
+
import { TaxRoundingService } from '../services/tax-rounding.service';
|
|
3
|
+
import { TaxStore } from '../stores/tax.store';
|
|
4
|
+
export declare class GrossAmountCalculator {
|
|
5
|
+
private readonly taxRoundingService;
|
|
6
|
+
private readonly taxStore;
|
|
7
|
+
constructor(taxRoundingService: TaxRoundingService, taxStore: TaxStore);
|
|
8
|
+
/**
|
|
9
|
+
* Calculates the gross amount based on the provided taxable base and tax rate.
|
|
10
|
+
*
|
|
11
|
+
* @param params - An object containing:
|
|
12
|
+
* - taxableBase: The base amount to be taxed as a BigNumber.
|
|
13
|
+
* - taxRate: The tax rate to apply as a BigNumber (percentage).
|
|
14
|
+
* @returns The calculated gross amount as a BigNumber.
|
|
15
|
+
*/
|
|
16
|
+
calculateGrossAmount({ taxableBase, taxRate }: {
|
|
17
|
+
taxableBase: BigNumber;
|
|
18
|
+
taxRate: BigNumber;
|
|
19
|
+
}): BigNumber;
|
|
20
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import BigNumber from 'bignumber.js';
|
|
2
|
+
import { EffectiveTaxRateCalculator } from './effective-tax-rate-calculator';
|
|
3
|
+
import { TaxRoundingService } from '../services/tax-rounding.service';
|
|
4
|
+
import { TaxStore } from '../stores/tax.store';
|
|
5
|
+
export declare class TaxAmountCalculator {
|
|
6
|
+
private readonly effectiveTaxRateCalculator;
|
|
7
|
+
private readonly taxRoundingService;
|
|
8
|
+
private readonly taxStore;
|
|
9
|
+
constructor(effectiveTaxRateCalculator: EffectiveTaxRateCalculator, taxRoundingService: TaxRoundingService, taxStore: TaxStore);
|
|
10
|
+
/**
|
|
11
|
+
* Calculates the tax amount based on a taxable base and a tax rate.
|
|
12
|
+
*
|
|
13
|
+
* @param params - An object containing:
|
|
14
|
+
* @param params.taxableBase - The base amount on which the tax is calculated (as a BigNumber).
|
|
15
|
+
* @param params.taxRate - The tax rate to apply (as a BigNumber, representing a percentage).
|
|
16
|
+
* @returns The calculated tax amount as a BigNumber.
|
|
17
|
+
*/
|
|
18
|
+
calculateTaxAmount({ taxableBase, taxRate }: {
|
|
19
|
+
taxableBase: BigNumber;
|
|
20
|
+
taxRate: BigNumber;
|
|
21
|
+
}): BigNumber;
|
|
22
|
+
/**
|
|
23
|
+
* Calculates the tax amount considering a deferred tax value.
|
|
24
|
+
*
|
|
25
|
+
* @param params - The parameters for the calculation.
|
|
26
|
+
* @param params.taxableBase - The base amount on which tax is calculated.
|
|
27
|
+
* @param params.taxRate - The tax rate as a percentage.
|
|
28
|
+
* @param params.deferredTaxAmount - The amount of tax that is deferred and should be subtracted from the result.
|
|
29
|
+
* @returns The calculated tax amount after subtracting the deferred tax.
|
|
30
|
+
*/
|
|
31
|
+
calculateTaxAmountWithDeferredTax({ taxableBase, taxRate, deferredTaxAmount }: {
|
|
32
|
+
taxableBase: BigNumber;
|
|
33
|
+
taxRate: BigNumber;
|
|
34
|
+
deferredTaxAmount: BigNumber;
|
|
35
|
+
}): BigNumber;
|
|
36
|
+
/**
|
|
37
|
+
* Calculates the tax amount based on the provided tax base, tax rate, and tax rate reduction,
|
|
38
|
+
* excluding deferred tax and governamental tax rate reductions.
|
|
39
|
+
*
|
|
40
|
+
* This method uses the effective tax rate calculated without considering governamental tax rate reductions,
|
|
41
|
+
* and applies it to the tax base to determine the final tax amount.
|
|
42
|
+
*
|
|
43
|
+
* @param params - The parameters for tax calculation.
|
|
44
|
+
* @param params.taxBase - The base amount on which the tax is calculated.
|
|
45
|
+
* @param params.taxRate - The initial tax rate before any reductions.
|
|
46
|
+
* @param params.taxRateReduction - The reduction applied to the tax rate.
|
|
47
|
+
* @returns The calculated tax amount as a BigNumber.
|
|
48
|
+
*/
|
|
49
|
+
calculateTaxAmountWithoutDeferredTaxAndWithoutGovernamentalTaxRate({ taxBase, taxRate, taxRateReduction }: {
|
|
50
|
+
taxBase: BigNumber;
|
|
51
|
+
taxRate: BigNumber;
|
|
52
|
+
taxRateReduction: BigNumber;
|
|
53
|
+
}): BigNumber;
|
|
54
|
+
}
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
+
import { BeneficioFiscalLookup, ClassificacaoTributariaLookup, CplTriNotaSaidaNaturezaReceitaPisCofinsLookup, E027EqiLookup, E027StrLookup, LookupValidationUtils } from '@senior-gestao-empresarial/angular-components';
|
|
5
|
+
import { BadgeColors, ButtonAnimation, ButtonPriority, ButtonSize, FormField, LocaleService } from '@seniorsistemas/angular-components';
|
|
6
|
+
import { FeatureToggleService } from '@seniorsistemas/platform-components';
|
|
7
|
+
import { GTagService } from '@seniorsistemas/platform-utils';
|
|
8
|
+
import { MenuItem, MessageService } from 'primeng/api';
|
|
9
|
+
import { LoadingContext } from '../utils/loading-context';
|
|
10
|
+
import { TaxAmountCalculator } from './calculators/tax-amount-calculator';
|
|
11
|
+
import { ErpTributosService } from './erp-tributos.service';
|
|
12
|
+
import { Item, Sugestao, TaxCalculationMemory } from './erp-tributos.types';
|
|
13
|
+
import { RulesService } from './rules/rules.service';
|
|
14
|
+
import { TaxRoundingService } from './services/tax-rounding.service';
|
|
15
|
+
import { TaxStore } from './stores/tax.store';
|
|
16
|
+
import { Context } from './types/context';
|
|
17
|
+
import { Group } from './types/group';
|
|
18
|
+
import { Tax } from './types/tax';
|
|
19
|
+
export declare class ErpTributosComponent implements OnInit, OnChanges, OnDestroy {
|
|
20
|
+
readonly loadingContext: LoadingContext;
|
|
21
|
+
private readonly messageService;
|
|
22
|
+
private readonly formBuilder;
|
|
23
|
+
private readonly changeDetector;
|
|
24
|
+
private readonly translate;
|
|
25
|
+
private readonly e027StrLookup;
|
|
26
|
+
private readonly beneficioFiscalLookup;
|
|
27
|
+
private readonly e027eqiLookup;
|
|
28
|
+
private readonly naturezaReceitaLookup;
|
|
29
|
+
private readonly classificacaoTributariaLookup;
|
|
30
|
+
private readonly lookupUtils;
|
|
31
|
+
private readonly erpTributosService;
|
|
32
|
+
private readonly gtag;
|
|
33
|
+
private readonly rulesService;
|
|
34
|
+
private readonly localeService;
|
|
35
|
+
private readonly taxRoundingService;
|
|
36
|
+
private readonly taxAmountCalculator;
|
|
37
|
+
private readonly featureToggleService;
|
|
38
|
+
private readonly taxStore;
|
|
39
|
+
context: Context;
|
|
40
|
+
sugestoes: Sugestao[];
|
|
41
|
+
camposBloqueados: boolean;
|
|
42
|
+
get tributos(): Tax[];
|
|
43
|
+
set tributos(val: Tax[]);
|
|
44
|
+
dominio?: string;
|
|
45
|
+
servico?: string;
|
|
46
|
+
currencyLocaleOptions?: any;
|
|
47
|
+
idsTaxesMemoriaCalculo?: TaxCalculationMemory[];
|
|
48
|
+
permissionMemoriaCalculo?: boolean;
|
|
49
|
+
tributosChange: EventEmitter<Tax[]>;
|
|
50
|
+
readonly BadgeColors: typeof BadgeColors;
|
|
51
|
+
readonly ButtonPriority: typeof ButtonPriority;
|
|
52
|
+
readonly ButtonSize: typeof ButtonSize;
|
|
53
|
+
readonly ButtonAnimation: typeof ButtonAnimation;
|
|
54
|
+
grupos: Group[];
|
|
55
|
+
tributosValue: Tax[];
|
|
56
|
+
reload: boolean;
|
|
57
|
+
indexAccordion: number[];
|
|
58
|
+
prefixLabel: string;
|
|
59
|
+
private menuItemPis;
|
|
60
|
+
private menuItemCofins;
|
|
61
|
+
private menuItemIpi;
|
|
62
|
+
private menuItemIss;
|
|
63
|
+
private menuItemImportacoes;
|
|
64
|
+
private menuItemRetencoes;
|
|
65
|
+
private menuItemRetencoesFunrural;
|
|
66
|
+
private menuItemIcms;
|
|
67
|
+
private menuItemCideTecnologia;
|
|
68
|
+
private menuItemCBS;
|
|
69
|
+
private menuItemIBSEstadual;
|
|
70
|
+
private menuItemIBSMunicipal;
|
|
71
|
+
private menuItemIBSCreditoPresumido;
|
|
72
|
+
private menuItemIS;
|
|
73
|
+
private menuItemCBS_IBS_ESTORNO_CREDITO;
|
|
74
|
+
private menuItemCBS_IBS_Ajuste;
|
|
75
|
+
private menuItemCbsIbsTransferenciaCredito;
|
|
76
|
+
private menuItemIcmsCreditoPresumido;
|
|
77
|
+
private requiredItemCideTecnologia;
|
|
78
|
+
private requiredItemPisRecuperar;
|
|
79
|
+
private requiredItemPisDevolvido;
|
|
80
|
+
private requiredItemCofinsRecuperar;
|
|
81
|
+
private requiredItemCofinsDevolvido;
|
|
82
|
+
private requiredItemIpi;
|
|
83
|
+
private requiredItemIpiCreditado;
|
|
84
|
+
private requiredItemIpiDevolvido;
|
|
85
|
+
private requiredItemIpiPresumido;
|
|
86
|
+
private requiredItemIpiOutrasDespesas;
|
|
87
|
+
private requiredItemIss;
|
|
88
|
+
private requiredItemIssRetido;
|
|
89
|
+
private requiredItemImpostoImportacao;
|
|
90
|
+
private requiredItemPisRecuperarImportacao;
|
|
91
|
+
private requiredItemCofinsRecuperarImportacao;
|
|
92
|
+
private requiredItemPisRetido;
|
|
93
|
+
private requiredItemCofinsRetido;
|
|
94
|
+
private requiredItemCsllRetido;
|
|
95
|
+
private requiredItemIrrfRetido;
|
|
96
|
+
private requiredItemInssRetido;
|
|
97
|
+
private requiredItemInssPatronal;
|
|
98
|
+
private requiredItemIcmsSt;
|
|
99
|
+
private requiredItemFcpSt;
|
|
100
|
+
private requiredItemIcmsCobradoAnteriormente;
|
|
101
|
+
private requiredItemFcpCobradoAnteriormente;
|
|
102
|
+
private requiredItemIcms;
|
|
103
|
+
private requiredItemIcmsEfetivamenteCreditado;
|
|
104
|
+
private requiredItemFcp;
|
|
105
|
+
private requiredItemIcmsDiferido;
|
|
106
|
+
private requiredItemIcmsDesonerado;
|
|
107
|
+
private requiredItemDiferencialAlicota;
|
|
108
|
+
private requiredItemPisFaturemento;
|
|
109
|
+
private requiredItemCofins;
|
|
110
|
+
private requiredItemFcpUfDestino;
|
|
111
|
+
private requiredItemIcmsUfDestino;
|
|
112
|
+
private requiredSituacaoTributaria;
|
|
113
|
+
private requiredIcmsFuturo;
|
|
114
|
+
private requiredIcmsSimples;
|
|
115
|
+
private requiredIcmsCreditoPresumido;
|
|
116
|
+
private requiredDifalDevolvido;
|
|
117
|
+
private requiredICMS_UF_Destino_Devolvido;
|
|
118
|
+
private requiredFCP_UF_Destino_Devolvido;
|
|
119
|
+
private requiredItemPisFaturamento;
|
|
120
|
+
private requiredImpostoNaoRecuperado;
|
|
121
|
+
private requiredbaseCalculoCredito;
|
|
122
|
+
private requiredPercentualReducao;
|
|
123
|
+
private requiredIcmsStSolidario;
|
|
124
|
+
private requiredIcmsStRetidoAnt;
|
|
125
|
+
private requiredFcpStReditoAnt;
|
|
126
|
+
private percentageLocaleOptions?;
|
|
127
|
+
private readonly unsubscribe$;
|
|
128
|
+
constructor(loadingContext: LoadingContext, 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, taxRoundingService: TaxRoundingService, taxAmountCalculator: TaxAmountCalculator, featureToggleService: FeatureToggleService, taxStore: TaxStore);
|
|
129
|
+
ngOnInit(): void;
|
|
130
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
131
|
+
ngOnDestroy(): void;
|
|
132
|
+
memoriaCalculo(imposto: any): void;
|
|
133
|
+
private makeUrlWindow;
|
|
134
|
+
disabledButton(item: Item): any;
|
|
135
|
+
hideButton(imposto: any): boolean;
|
|
136
|
+
private abrirWindowUrlMemoriaCalculo;
|
|
137
|
+
validaTela(taxes: any): string;
|
|
138
|
+
private isStTaxes;
|
|
139
|
+
private getTributoPai;
|
|
140
|
+
private clearVariables;
|
|
141
|
+
private createTributos;
|
|
142
|
+
private readOnlyTributos;
|
|
143
|
+
private setTributos;
|
|
144
|
+
private setValidators;
|
|
145
|
+
private validateAllFormFields;
|
|
146
|
+
/**
|
|
147
|
+
* Executa a validação de todos os campos dos formulários dentro dos grupos.
|
|
148
|
+
*
|
|
149
|
+
* **Atenção:** Este método **não** deve ser utilizado no template.
|
|
150
|
+
*
|
|
151
|
+
* @returns `true` se todos os formulários forem válidos e nenhum valor de imposto for negativo; caso contrário, retorna `false`.
|
|
152
|
+
*/
|
|
153
|
+
validate(): boolean;
|
|
154
|
+
/**
|
|
155
|
+
* Verifica se algum formulário está inválido.
|
|
156
|
+
*
|
|
157
|
+
* Deve ser utilizado somente no template para controle de botões ou exibição de mensagens.
|
|
158
|
+
*
|
|
159
|
+
* @returns `true` se algum `formGroup` estiver inválido ou se algum valor de imposto for negativo.
|
|
160
|
+
*/
|
|
161
|
+
isInvalid(): boolean;
|
|
162
|
+
private findGroupWithNegativeTaxValue;
|
|
163
|
+
private updateTwoWayDataBinding;
|
|
164
|
+
private novoImpostoManual;
|
|
165
|
+
getActions(): MenuItem[];
|
|
166
|
+
private podeMostrarImpostos;
|
|
167
|
+
private montaIcmsCreditoPresumido;
|
|
168
|
+
private montaCide;
|
|
169
|
+
private montaIcms;
|
|
170
|
+
private montaRetencoes;
|
|
171
|
+
private montaRetencoesFunrural;
|
|
172
|
+
private montaImportacoes;
|
|
173
|
+
private montaIss;
|
|
174
|
+
private montaCBS;
|
|
175
|
+
private montaIBSEstadual;
|
|
176
|
+
private montaIBSMunicipal;
|
|
177
|
+
private montaIBSCreditoPresumido;
|
|
178
|
+
private montaIS;
|
|
179
|
+
private montaCBSIBSEstornoCredito;
|
|
180
|
+
private montaCBS_IBS_Ajuste;
|
|
181
|
+
private montaCBSIBSTransferenciaCredito;
|
|
182
|
+
private montaPis;
|
|
183
|
+
private montaCofins;
|
|
184
|
+
private montaIpi;
|
|
185
|
+
private setVariableRequired;
|
|
186
|
+
private setRequired;
|
|
187
|
+
private impostoCalculado;
|
|
188
|
+
private addMessageErrorBaseDiferente;
|
|
189
|
+
private calcularValor;
|
|
190
|
+
private calcularImpostosTotal;
|
|
191
|
+
private montaCampos;
|
|
192
|
+
private initializeValueChanges;
|
|
193
|
+
private getLabelAliquota;
|
|
194
|
+
getTranslateButton(value: any): string;
|
|
195
|
+
isGroupInvalid(group: {
|
|
196
|
+
grupo: string;
|
|
197
|
+
item: {
|
|
198
|
+
formField: FormField[];
|
|
199
|
+
formGroup: FormGroup;
|
|
200
|
+
label: string;
|
|
201
|
+
name: string;
|
|
202
|
+
}[];
|
|
203
|
+
}): boolean;
|
|
204
|
+
isBadgeVisible(item: Item): boolean;
|
|
205
|
+
getBadgeColor(item: Item): BadgeColors;
|
|
206
|
+
getBadgeText(item: Item): string;
|
|
207
|
+
getBadgeInfoSign(item: Item): {
|
|
208
|
+
text: string;
|
|
209
|
+
};
|
|
210
|
+
private isInvoiceDocument;
|
|
211
|
+
private isAccrualTaxDocument;
|
|
212
|
+
private isFieldRequired;
|
|
213
|
+
private markICMSSimplesAsManual;
|
|
214
|
+
private getArredondamentoAbnt;
|
|
215
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Identifiers } from '@angular/compiler';
|
|
3
|
+
import { MessageService } from 'primeng';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
export declare class ErpTributosService {
|
|
6
|
+
protected http: HttpClient;
|
|
7
|
+
protected messageService: MessageService;
|
|
8
|
+
constructor(http: HttpClient, messageService: MessageService);
|
|
9
|
+
getFrontend(params: Identifiers): Observable<any>;
|
|
10
|
+
}
|