@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.
Files changed (382) hide show
  1. package/bundles/senior-gestao-empresarial-erpx-components.umd.js +37665 -0
  2. package/bundles/senior-gestao-empresarial-erpx-components.umd.js.map +1 -0
  3. package/bundles/senior-gestao-empresarial-erpx-components.umd.min.js +17 -0
  4. package/bundles/senior-gestao-empresarial-erpx-components.umd.min.js.map +1 -0
  5. package/components/breadcrumb/breadcrumb.component.d.ts +21 -0
  6. package/components/breadcrumb/breadcrumb.module.d.ts +2 -0
  7. package/components/breadcrumb/index.d.ts +2 -0
  8. package/components/focus/focus.service.d.ts +4 -0
  9. package/components/lote-serie/erp-lote-serie.component.d.ts +183 -0
  10. package/components/lote-serie/erp-lote-serie.module.d.ts +2 -0
  11. package/components/lote-serie/erp-lote-serie.service.d.ts +137 -0
  12. package/components/lote-serie/index.d.ts +2 -0
  13. package/components/rateio-editor/erp-rateio-editor.component.d.ts +202 -0
  14. package/components/rateio-editor/erp-rateio-editor.converter.d.ts +18 -0
  15. package/components/rateio-editor/erp-rateio-editor.module.d.ts +2 -0
  16. package/components/rateio-editor/erp-rateio-editor.service.d.ts +17 -0
  17. package/components/rateio-editor/erp-rateio-editor.types.d.ts +171 -0
  18. package/components/rateio-editor/index.d.ts +4 -0
  19. package/components/resumo/erp-resumo.component.d.ts +17 -0
  20. package/components/resumo/erp-resumo.module.d.ts +2 -0
  21. package/components/resumo/erp-resumo.service.d.ts +2 -0
  22. package/components/resumo/index.d.ts +2 -0
  23. package/components/tributos/calculators/effective-tax-rate-calculator.d.ts +34 -0
  24. package/components/tributos/calculators/gross-amount-calculator.d.ts +20 -0
  25. package/components/tributos/calculators/tax-amount-calculator.d.ts +54 -0
  26. package/components/tributos/erp-tributos.component.d.ts +215 -0
  27. package/components/tributos/erp-tributos.module.d.ts +2 -0
  28. package/components/tributos/erp-tributos.service.d.ts +10 -0
  29. package/components/tributos/erp-tributos.types.d.ts +286 -0
  30. package/components/tributos/index.d.ts +12 -0
  31. package/components/tributos/mappings/enum-tip-imp-cst-mapping.d.ts +2 -0
  32. package/components/tributos/rules/calculation/registries/calculation-rules-registries/calculation-rules.registry.d.ts +15 -0
  33. package/components/tributos/rules/calculation/registries/calculation-rules-registries/incoming-invoice-calculation-rules.registry.d.ts +28 -0
  34. package/components/tributos/rules/calculation/registries/calculation-rules-registries/outgoing-invoice-calculation-rules.registry.d.ts +30 -0
  35. package/components/tributos/rules/calculation/registries/calculation-rules-registries/purchase-order-calculation-rules.registry.d.ts +22 -0
  36. package/components/tributos/rules/calculation/registries/calculation-rules-registries/sale-order-calculation-rules.registry.d.ts +22 -0
  37. package/components/tributos/rules/calculation/rules/apply-net-value-to-document-calculation-rule.d.ts +5 -0
  38. package/components/tributos/rules/calculation/rules/assessment-period-calculation-rule.d.ts +5 -0
  39. package/components/tributos/rules/calculation/rules/effective-tax-rate-calculation-rule.d.ts +8 -0
  40. package/components/tributos/rules/calculation/rules/gross-amount-calculation-rule.d.ts +8 -0
  41. package/components/tributos/rules/calculation/rules/manual-tax-calculation-rule.d.ts +5 -0
  42. package/components/tributos/rules/calculation/rules/tax-amount-calculation-rule.d.ts +8 -0
  43. package/components/tributos/rules/calculation/rules/tax-calculation-type-calculation-rule.d.ts +5 -0
  44. package/components/tributos/rules/calculation/rules/tax-classification-calculation-rule.d.ts +6 -0
  45. package/components/tributos/rules/calculation/rules/tax-rate-calculation-rule.d.ts +5 -0
  46. package/components/tributos/rules/calculation/rules/tax-situation-calculation-rule.d.ts +5 -0
  47. package/components/tributos/rules/calculation/rules/taxable-base-calculation-rule.d.ts +8 -0
  48. package/components/tributos/rules/rules.service.d.ts +19 -0
  49. package/components/tributos/rules/status/registries/incoming-invoice-status-rules.registry.d.ts +16 -0
  50. package/components/tributos/rules/status/registries/outgoing-invoice-status-rules.registry.d.ts +12 -0
  51. package/components/tributos/rules/status/registries/purchase-order-status-rules.registry.d.ts +12 -0
  52. package/components/tributos/rules/status/registries/sale-order-status-rules.registry.d.ts +8 -0
  53. package/components/tributos/rules/status/registries/status-rules.registry.d.ts +15 -0
  54. package/components/tributos/rules/status/rules/apply-net-value-to-document-status-rule.d.ts +5 -0
  55. package/components/tributos/rules/status/rules/tax-classification-status-rule.d.ts +5 -0
  56. package/components/tributos/rules/status/rules/tax-rate-status-rule.d.ts +5 -0
  57. package/components/tributos/rules/status/rules/taxable-base-status-rule.d.ts +5 -0
  58. package/components/tributos/rules/types/available-fields.d.ts +2 -0
  59. package/components/tributos/rules/types/available-taxes.d.ts +1 -0
  60. package/components/tributos/rules/types/field-calculation-rule-mapping.d.ts +6 -0
  61. package/components/tributos/rules/types/field-rule-mapping.d.ts +6 -0
  62. package/components/tributos/rules/types/field-status-rule-mapping.d.ts +6 -0
  63. package/components/tributos/rules/types/rule-payload.d.ts +9 -0
  64. package/components/tributos/rules/types/schemas/incoming-invoice.schema.d.ts +235 -0
  65. package/components/tributos/rules/types/schemas/outgoing-invoice.schema.d.ts +349 -0
  66. package/components/tributos/rules/types/schemas/purchase-order.schema.d.ts +26 -0
  67. package/components/tributos/rules/types/schemas/sale-order.schema.d.ts +131 -0
  68. package/components/tributos/rules/types/strategies-by-document.d.ts +12 -0
  69. package/components/tributos/rules/types/strategies.d.ts +4 -0
  70. package/components/tributos/rules/types/tax-rule.d.ts +4 -0
  71. package/components/tributos/rules/validation/registries/incoming-invoice-validation-rules.registry.d.ts +20 -0
  72. package/components/tributos/rules/validation/registries/outgoing-invoice-validation-rules.registry.d.ts +22 -0
  73. package/components/tributos/rules/validation/registries/purchase-order-validation-rules.registry.d.ts +14 -0
  74. package/components/tributos/rules/validation/registries/sale-order-validation-rules.registry.d.ts +14 -0
  75. package/components/tributos/rules/validation/registries/validation-rules.registry.d.ts +15 -0
  76. package/components/tributos/rules/validation/rules/required/apply-net-value-to-document-required-validation-rule.d.ts +5 -0
  77. package/components/tributos/rules/validation/rules/required/assessment-period-required-validation-rule.d.ts +5 -0
  78. package/components/tributos/rules/validation/rules/required/tax-amount-required-validation-rule.d.ts +5 -0
  79. package/components/tributos/rules/validation/rules/required/tax-classification-required-validation-rule.d.ts +5 -0
  80. package/components/tributos/rules/validation/rules/required/tax-rate-required-validation-rule.d.ts +6 -0
  81. package/components/tributos/rules/validation/rules/required/tax-situation-required-validation-rule.d.ts +6 -0
  82. package/components/tributos/rules/validation/rules/required/taxable-base-required-validation-rule.d.ts +6 -0
  83. package/components/tributos/services/tax-rounding.service.d.ts +5 -0
  84. package/components/tributos/stores/tax.store.d.ts +10 -0
  85. package/components/tributos/tax-reform-utilities.d.ts +36 -0
  86. package/components/tributos/types/context.d.ts +7 -0
  87. package/components/tributos/types/controllership-incoming-invoice-context.d.ts +5 -0
  88. package/components/tributos/types/controllership-incoming-invoice.d.ts +3 -0
  89. package/components/tributos/types/controllership-outgoing-invoice-context.d.ts +5 -0
  90. package/components/tributos/types/controllership-outgoing-invoice.d.ts +3 -0
  91. package/components/tributos/types/credit-invoice-type.d.ts +1 -0
  92. package/components/tributos/types/debit-invoice-type.d.ts +1 -0
  93. package/components/tributos/types/group.d.ts +6 -0
  94. package/components/tributos/types/incoming-invoice-context.d.ts +5 -0
  95. package/components/tributos/types/incoming-invoice-item.d.ts +4 -0
  96. package/components/tributos/types/incoming-invoice-type.d.ts +1 -0
  97. package/components/tributos/types/incoming-invoice.d.ts +11 -0
  98. package/components/tributos/types/item-type.d.ts +1 -0
  99. package/components/tributos/types/outgoing-Invoice.d.ts +11 -0
  100. package/components/tributos/types/outgoing-invoice-context.d.ts +5 -0
  101. package/components/tributos/types/outgoing-invoice-item.d.ts +4 -0
  102. package/components/tributos/types/outgoing-invoice-type.d.ts +1 -0
  103. package/components/tributos/types/purchase-order-context.d.ts +5 -0
  104. package/components/tributos/types/purchase-order-type.d.ts +1 -0
  105. package/components/tributos/types/purchase-order.d.ts +8 -0
  106. package/components/tributos/types/sale-order-context.d.ts +5 -0
  107. package/components/tributos/types/sale-order-type.d.ts +1 -0
  108. package/components/tributos/types/sale-order.d.ts +8 -0
  109. package/components/tributos/types/tax.d.ts +8 -0
  110. package/components/utils/breakpoints.d.ts +10 -0
  111. package/components/utils/export-utils.d.ts +6 -0
  112. package/components/utils/index.d.ts +3 -0
  113. package/components/utils/loading-context.d.ts +7 -0
  114. package/components/utils/utils.d.ts +4 -0
  115. package/core/entities/entity-service.d.ts +32 -0
  116. package/core/entities/quantidade-disponivel-demanda/quantidade-disponivel-demanda-dto.d.ts +36 -0
  117. package/core/entities/quantidade-disponivel-demanda/quantidade-disponivel-demanda.d.ts +40 -0
  118. package/core/entities/quantidade-disponivel-demanda/quantidade-disponivel-demanda.module.d.ts +2 -0
  119. package/core/entities/quantidade-disponivel-demanda/quantidade-disponivel-demanda.service.d.ts +11 -0
  120. package/core/enums/enum-classificacao-tributaria.d.ts +4 -0
  121. package/core/enums/enum-tipo-calculo-imposto.d.ts +5 -0
  122. package/core/enums/enum-tipo-documento-parametros.d.ts +7 -0
  123. package/core/enums/enum-tipo-documento.d.ts +10 -0
  124. package/core/enums/erpx-com-processo-faturamento-backend/enum-indicativo-padrao.d.ts +5 -0
  125. package/core/enums/erpx-cpl-imp-cadastros-backend/enum-indicativo-padrao.d.ts +8 -0
  126. package/esm2015/components/breadcrumb/breadcrumb.component.js +86 -0
  127. package/esm2015/components/breadcrumb/breadcrumb.module.js +17 -0
  128. package/esm2015/components/breadcrumb/index.js +3 -0
  129. package/esm2015/components/focus/focus.service.js +32 -0
  130. package/esm2015/components/lote-serie/erp-lote-serie.component.js +1772 -0
  131. package/esm2015/components/lote-serie/erp-lote-serie.module.js +47 -0
  132. package/esm2015/components/lote-serie/erp-lote-serie.service.js +94 -0
  133. package/esm2015/components/lote-serie/index.js +3 -0
  134. package/esm2015/components/rateio-editor/erp-rateio-editor.component.js +794 -0
  135. package/esm2015/components/rateio-editor/erp-rateio-editor.converter.js +52 -0
  136. package/esm2015/components/rateio-editor/erp-rateio-editor.module.js +40 -0
  137. package/esm2015/components/rateio-editor/erp-rateio-editor.service.js +49 -0
  138. package/esm2015/components/rateio-editor/erp-rateio-editor.types.js +5 -0
  139. package/esm2015/components/rateio-editor/index.js +4 -0
  140. package/esm2015/components/resumo/erp-resumo.component.js +19 -0
  141. package/esm2015/components/resumo/erp-resumo.module.js +25 -0
  142. package/esm2015/components/resumo/erp-resumo.service.js +13 -0
  143. package/esm2015/components/resumo/index.js +2 -0
  144. package/esm2015/components/tributos/calculators/effective-tax-rate-calculator.js +53 -0
  145. package/esm2015/components/tributos/calculators/gross-amount-calculator.js +37 -0
  146. package/esm2015/components/tributos/calculators/tax-amount-calculator.js +87 -0
  147. package/esm2015/components/tributos/erp-tributos.component.js +5176 -0
  148. package/esm2015/components/tributos/erp-tributos.module.js +33 -0
  149. package/esm2015/components/tributos/erp-tributos.service.js +23 -0
  150. package/esm2015/components/tributos/erp-tributos.types.js +268 -0
  151. package/esm2015/components/tributos/index.js +4 -0
  152. package/esm2015/components/tributos/mappings/enum-tip-imp-cst-mapping.js +33 -0
  153. package/esm2015/components/tributos/rules/calculation/registries/calculation-rules-registries/calculation-rules.registry.js +45 -0
  154. package/esm2015/components/tributos/rules/calculation/registries/calculation-rules-registries/incoming-invoice-calculation-rules.registry.js +3102 -0
  155. package/esm2015/components/tributos/rules/calculation/registries/calculation-rules-registries/outgoing-invoice-calculation-rules.registry.js +4516 -0
  156. package/esm2015/components/tributos/rules/calculation/registries/calculation-rules-registries/purchase-order-calculation-rules.registry.js +294 -0
  157. package/esm2015/components/tributos/rules/calculation/registries/calculation-rules-registries/sale-order-calculation-rules.registry.js +1464 -0
  158. package/esm2015/components/tributos/rules/calculation/rules/apply-net-value-to-document-calculation-rule.js +48 -0
  159. package/esm2015/components/tributos/rules/calculation/rules/assessment-period-calculation-rule.js +55 -0
  160. package/esm2015/components/tributos/rules/calculation/rules/effective-tax-rate-calculation-rule.js +83 -0
  161. package/esm2015/components/tributos/rules/calculation/rules/gross-amount-calculation-rule.js +74 -0
  162. package/esm2015/components/tributos/rules/calculation/rules/manual-tax-calculation-rule.js +72 -0
  163. package/esm2015/components/tributos/rules/calculation/rules/tax-amount-calculation-rule.js +244 -0
  164. package/esm2015/components/tributos/rules/calculation/rules/tax-calculation-type-calculation-rule.js +74 -0
  165. package/esm2015/components/tributos/rules/calculation/rules/tax-classification-calculation-rule.js +170 -0
  166. package/esm2015/components/tributos/rules/calculation/rules/tax-rate-calculation-rule.js +100 -0
  167. package/esm2015/components/tributos/rules/calculation/rules/tax-situation-calculation-rule.js +124 -0
  168. package/esm2015/components/tributos/rules/calculation/rules/taxable-base-calculation-rule.js +292 -0
  169. package/esm2015/components/tributos/rules/rules.service.js +61 -0
  170. package/esm2015/components/tributos/rules/status/registries/incoming-invoice-status-rules.registry.js +1076 -0
  171. package/esm2015/components/tributos/rules/status/registries/outgoing-invoice-status-rules.registry.js +1317 -0
  172. package/esm2015/components/tributos/rules/status/registries/purchase-order-status-rules.registry.js +62 -0
  173. package/esm2015/components/tributos/rules/status/registries/sale-order-status-rules.registry.js +18 -0
  174. package/esm2015/components/tributos/rules/status/registries/status-rules.registry.js +45 -0
  175. package/esm2015/components/tributos/rules/status/rules/apply-net-value-to-document-status-rule.js +39 -0
  176. package/esm2015/components/tributos/rules/status/rules/tax-classification-status-rule.js +94 -0
  177. package/esm2015/components/tributos/rules/status/rules/tax-rate-status-rule.js +61 -0
  178. package/esm2015/components/tributos/rules/status/rules/taxable-base-status-rule.js +65 -0
  179. package/esm2015/components/tributos/rules/types/available-fields.js +1 -0
  180. package/esm2015/components/tributos/rules/types/available-taxes.js +1 -0
  181. package/esm2015/components/tributos/rules/types/field-calculation-rule-mapping.js +1 -0
  182. package/esm2015/components/tributos/rules/types/field-rule-mapping.js +1 -0
  183. package/esm2015/components/tributos/rules/types/field-status-rule-mapping.js +1 -0
  184. package/esm2015/components/tributos/rules/types/rule-payload.js +1 -0
  185. package/esm2015/components/tributos/rules/types/schemas/incoming-invoice.schema.js +1816 -0
  186. package/esm2015/components/tributos/rules/types/schemas/outgoing-invoice.schema.js +2750 -0
  187. package/esm2015/components/tributos/rules/types/schemas/purchase-order.schema.js +150 -0
  188. package/esm2015/components/tributos/rules/types/schemas/sale-order.schema.js +879 -0
  189. package/esm2015/components/tributos/rules/types/strategies-by-document.js +1 -0
  190. package/esm2015/components/tributos/rules/types/strategies.js +1 -0
  191. package/esm2015/components/tributos/rules/types/tax-rule.js +1 -0
  192. package/esm2015/components/tributos/rules/validation/registries/incoming-invoice-validation-rules.registry.js +3606 -0
  193. package/esm2015/components/tributos/rules/validation/registries/outgoing-invoice-validation-rules.registry.js +5452 -0
  194. package/esm2015/components/tributos/rules/validation/registries/purchase-order-validation-rules.registry.js +270 -0
  195. package/esm2015/components/tributos/rules/validation/registries/sale-order-validation-rules.registry.js +1392 -0
  196. package/esm2015/components/tributos/rules/validation/registries/validation-rules.registry.js +45 -0
  197. package/esm2015/components/tributos/rules/validation/rules/required/apply-net-value-to-document-required-validation-rule.js +73 -0
  198. package/esm2015/components/tributos/rules/validation/rules/required/assessment-period-required-validation-rule.js +78 -0
  199. package/esm2015/components/tributos/rules/validation/rules/required/tax-amount-required-validation-rule.js +902 -0
  200. package/esm2015/components/tributos/rules/validation/rules/required/tax-classification-required-validation-rule.js +401 -0
  201. package/esm2015/components/tributos/rules/validation/rules/required/tax-rate-required-validation-rule.js +719 -0
  202. package/esm2015/components/tributos/rules/validation/rules/required/tax-situation-required-validation-rule.js +300 -0
  203. package/esm2015/components/tributos/rules/validation/rules/required/taxable-base-required-validation-rule.js +717 -0
  204. package/esm2015/components/tributos/services/tax-rounding.service.js +18 -0
  205. package/esm2015/components/tributos/stores/tax.store.js +19 -0
  206. package/esm2015/components/tributos/tax-reform-utilities.js +243 -0
  207. package/esm2015/components/tributos/types/context.js +1 -0
  208. package/esm2015/components/tributos/types/controllership-incoming-invoice-context.js +1 -0
  209. package/esm2015/components/tributos/types/controllership-incoming-invoice.js +1 -0
  210. package/esm2015/components/tributos/types/controllership-outgoing-invoice-context.js +1 -0
  211. package/esm2015/components/tributos/types/controllership-outgoing-invoice.js +1 -0
  212. package/esm2015/components/tributos/types/credit-invoice-type.js +1 -0
  213. package/esm2015/components/tributos/types/debit-invoice-type.js +1 -0
  214. package/esm2015/components/tributos/types/group.js +1 -0
  215. package/esm2015/components/tributos/types/incoming-invoice-context.js +1 -0
  216. package/esm2015/components/tributos/types/incoming-invoice-item.js +1 -0
  217. package/esm2015/components/tributos/types/incoming-invoice-type.js +1 -0
  218. package/esm2015/components/tributos/types/incoming-invoice.js +1 -0
  219. package/esm2015/components/tributos/types/item-type.js +1 -0
  220. package/esm2015/components/tributos/types/outgoing-Invoice.js +1 -0
  221. package/esm2015/components/tributos/types/outgoing-invoice-context.js +1 -0
  222. package/esm2015/components/tributos/types/outgoing-invoice-item.js +1 -0
  223. package/esm2015/components/tributos/types/outgoing-invoice-type.js +1 -0
  224. package/esm2015/components/tributos/types/purchase-order-context.js +1 -0
  225. package/esm2015/components/tributos/types/purchase-order-type.js +1 -0
  226. package/esm2015/components/tributos/types/purchase-order.js +1 -0
  227. package/esm2015/components/tributos/types/sale-order-context.js +1 -0
  228. package/esm2015/components/tributos/types/sale-order-type.js +1 -0
  229. package/esm2015/components/tributos/types/sale-order.js +1 -0
  230. package/esm2015/components/tributos/types/tax.js +2 -0
  231. package/esm2015/components/utils/breakpoints.js +11 -0
  232. package/esm2015/components/utils/export-utils.js +71 -0
  233. package/esm2015/components/utils/index.js +4 -0
  234. package/esm2015/components/utils/loading-context.js +20 -0
  235. package/esm2015/components/utils/utils.js +18 -0
  236. package/esm2015/core/entities/entity-service.js +91 -0
  237. package/esm2015/core/entities/quantidade-disponivel-demanda/quantidade-disponivel-demanda-dto.js +1 -0
  238. package/esm2015/core/entities/quantidade-disponivel-demanda/quantidade-disponivel-demanda.js +62 -0
  239. package/esm2015/core/entities/quantidade-disponivel-demanda/quantidade-disponivel-demanda.module.js +24 -0
  240. package/esm2015/core/entities/quantidade-disponivel-demanda/quantidade-disponivel-demanda.service.js +24 -0
  241. package/esm2015/core/enums/enum-classificacao-tributaria.js +6 -0
  242. package/esm2015/core/enums/enum-tipo-calculo-imposto.js +7 -0
  243. package/esm2015/core/enums/enum-tipo-documento-parametros.js +9 -0
  244. package/esm2015/core/enums/enum-tipo-documento.js +12 -0
  245. package/esm2015/core/enums/erpx-com-processo-faturamento-backend/enum-indicativo-padrao.js +7 -0
  246. package/esm2015/core/enums/erpx-cpl-imp-cadastros-backend/enum-indicativo-padrao.js +10 -0
  247. package/esm2015/locale/fallback.js +56 -0
  248. package/esm2015/public-api.js +8 -0
  249. package/esm2015/senior-gestao-empresarial-erpx-components.js +58 -0
  250. package/esm5/components/breadcrumb/breadcrumb.component.js +91 -0
  251. package/esm5/components/breadcrumb/breadcrumb.module.js +20 -0
  252. package/esm5/components/breadcrumb/index.js +3 -0
  253. package/esm5/components/focus/focus.service.js +35 -0
  254. package/esm5/components/lote-serie/erp-lote-serie.component.js +1830 -0
  255. package/esm5/components/lote-serie/erp-lote-serie.module.js +50 -0
  256. package/esm5/components/lote-serie/erp-lote-serie.service.js +96 -0
  257. package/esm5/components/lote-serie/index.js +3 -0
  258. package/esm5/components/rateio-editor/erp-rateio-editor.component.js +861 -0
  259. package/esm5/components/rateio-editor/erp-rateio-editor.converter.js +68 -0
  260. package/esm5/components/rateio-editor/erp-rateio-editor.module.js +43 -0
  261. package/esm5/components/rateio-editor/erp-rateio-editor.service.js +51 -0
  262. package/esm5/components/rateio-editor/erp-rateio-editor.types.js +5 -0
  263. package/esm5/components/rateio-editor/index.js +4 -0
  264. package/esm5/components/resumo/erp-resumo.component.js +22 -0
  265. package/esm5/components/resumo/erp-resumo.module.js +28 -0
  266. package/esm5/components/resumo/erp-resumo.service.js +16 -0
  267. package/esm5/components/resumo/index.js +2 -0
  268. package/esm5/components/tributos/calculators/effective-tax-rate-calculator.js +58 -0
  269. package/esm5/components/tributos/calculators/gross-amount-calculator.js +39 -0
  270. package/esm5/components/tributos/calculators/tax-amount-calculator.js +91 -0
  271. package/esm5/components/tributos/erp-tributos.component.js +5296 -0
  272. package/esm5/components/tributos/erp-tributos.module.js +36 -0
  273. package/esm5/components/tributos/erp-tributos.service.js +24 -0
  274. package/esm5/components/tributos/erp-tributos.types.js +268 -0
  275. package/esm5/components/tributos/index.js +4 -0
  276. package/esm5/components/tributos/mappings/enum-tip-imp-cst-mapping.js +33 -0
  277. package/esm5/components/tributos/rules/calculation/registries/calculation-rules-registries/calculation-rules.registry.js +46 -0
  278. package/esm5/components/tributos/rules/calculation/registries/calculation-rules-registries/incoming-invoice-calculation-rules.registry.js +3104 -0
  279. package/esm5/components/tributos/rules/calculation/registries/calculation-rules-registries/outgoing-invoice-calculation-rules.registry.js +4518 -0
  280. package/esm5/components/tributos/rules/calculation/registries/calculation-rules-registries/purchase-order-calculation-rules.registry.js +296 -0
  281. package/esm5/components/tributos/rules/calculation/registries/calculation-rules-registries/sale-order-calculation-rules.registry.js +1466 -0
  282. package/esm5/components/tributos/rules/calculation/rules/apply-net-value-to-document-calculation-rule.js +60 -0
  283. package/esm5/components/tributos/rules/calculation/rules/assessment-period-calculation-rule.js +77 -0
  284. package/esm5/components/tributos/rules/calculation/rules/effective-tax-rate-calculation-rule.js +92 -0
  285. package/esm5/components/tributos/rules/calculation/rules/gross-amount-calculation-rule.js +83 -0
  286. package/esm5/components/tributos/rules/calculation/rules/manual-tax-calculation-rule.js +87 -0
  287. package/esm5/components/tributos/rules/calculation/rules/tax-amount-calculation-rule.js +286 -0
  288. package/esm5/components/tributos/rules/calculation/rules/tax-calculation-type-calculation-rule.js +89 -0
  289. package/esm5/components/tributos/rules/calculation/rules/tax-classification-calculation-rule.js +241 -0
  290. package/esm5/components/tributos/rules/calculation/rules/tax-rate-calculation-rule.js +118 -0
  291. package/esm5/components/tributos/rules/calculation/rules/tax-situation-calculation-rule.js +200 -0
  292. package/esm5/components/tributos/rules/calculation/rules/taxable-base-calculation-rule.js +330 -0
  293. package/esm5/components/tributos/rules/rules.service.js +139 -0
  294. package/esm5/components/tributos/rules/status/registries/incoming-invoice-status-rules.registry.js +1078 -0
  295. package/esm5/components/tributos/rules/status/registries/outgoing-invoice-status-rules.registry.js +1319 -0
  296. package/esm5/components/tributos/rules/status/registries/purchase-order-status-rules.registry.js +64 -0
  297. package/esm5/components/tributos/rules/status/registries/sale-order-status-rules.registry.js +19 -0
  298. package/esm5/components/tributos/rules/status/registries/status-rules.registry.js +46 -0
  299. package/esm5/components/tributos/rules/status/rules/apply-net-value-to-document-status-rule.js +43 -0
  300. package/esm5/components/tributos/rules/status/rules/tax-classification-status-rule.js +106 -0
  301. package/esm5/components/tributos/rules/status/rules/tax-rate-status-rule.js +68 -0
  302. package/esm5/components/tributos/rules/status/rules/taxable-base-status-rule.js +72 -0
  303. package/esm5/components/tributos/rules/types/available-fields.js +1 -0
  304. package/esm5/components/tributos/rules/types/available-taxes.js +1 -0
  305. package/esm5/components/tributos/rules/types/field-calculation-rule-mapping.js +1 -0
  306. package/esm5/components/tributos/rules/types/field-rule-mapping.js +1 -0
  307. package/esm5/components/tributos/rules/types/field-status-rule-mapping.js +1 -0
  308. package/esm5/components/tributos/rules/types/rule-payload.js +1 -0
  309. package/esm5/components/tributos/rules/types/schemas/incoming-invoice.schema.js +1817 -0
  310. package/esm5/components/tributos/rules/types/schemas/outgoing-invoice.schema.js +2751 -0
  311. package/esm5/components/tributos/rules/types/schemas/purchase-order.schema.js +151 -0
  312. package/esm5/components/tributos/rules/types/schemas/sale-order.schema.js +880 -0
  313. package/esm5/components/tributos/rules/types/strategies-by-document.js +1 -0
  314. package/esm5/components/tributos/rules/types/strategies.js +1 -0
  315. package/esm5/components/tributos/rules/types/tax-rule.js +1 -0
  316. package/esm5/components/tributos/rules/validation/registries/incoming-invoice-validation-rules.registry.js +3608 -0
  317. package/esm5/components/tributos/rules/validation/registries/outgoing-invoice-validation-rules.registry.js +5454 -0
  318. package/esm5/components/tributos/rules/validation/registries/purchase-order-validation-rules.registry.js +272 -0
  319. package/esm5/components/tributos/rules/validation/registries/sale-order-validation-rules.registry.js +1394 -0
  320. package/esm5/components/tributos/rules/validation/registries/validation-rules.registry.js +46 -0
  321. package/esm5/components/tributos/rules/validation/rules/required/apply-net-value-to-document-required-validation-rule.js +77 -0
  322. package/esm5/components/tributos/rules/validation/rules/required/assessment-period-required-validation-rule.js +86 -0
  323. package/esm5/components/tributos/rules/validation/rules/required/tax-amount-required-validation-rule.js +968 -0
  324. package/esm5/components/tributos/rules/validation/rules/required/tax-classification-required-validation-rule.js +433 -0
  325. package/esm5/components/tributos/rules/validation/rules/required/tax-rate-required-validation-rule.js +774 -0
  326. package/esm5/components/tributos/rules/validation/rules/required/tax-situation-required-validation-rule.js +323 -0
  327. package/esm5/components/tributos/rules/validation/rules/required/taxable-base-required-validation-rule.js +772 -0
  328. package/esm5/components/tributos/services/tax-rounding.service.js +23 -0
  329. package/esm5/components/tributos/stores/tax.store.js +26 -0
  330. package/esm5/components/tributos/tax-reform-utilities.js +249 -0
  331. package/esm5/components/tributos/types/context.js +1 -0
  332. package/esm5/components/tributos/types/controllership-incoming-invoice-context.js +1 -0
  333. package/esm5/components/tributos/types/controllership-incoming-invoice.js +1 -0
  334. package/esm5/components/tributos/types/controllership-outgoing-invoice-context.js +1 -0
  335. package/esm5/components/tributos/types/controllership-outgoing-invoice.js +1 -0
  336. package/esm5/components/tributos/types/credit-invoice-type.js +1 -0
  337. package/esm5/components/tributos/types/debit-invoice-type.js +1 -0
  338. package/esm5/components/tributos/types/group.js +1 -0
  339. package/esm5/components/tributos/types/incoming-invoice-context.js +1 -0
  340. package/esm5/components/tributos/types/incoming-invoice-item.js +1 -0
  341. package/esm5/components/tributos/types/incoming-invoice-type.js +1 -0
  342. package/esm5/components/tributos/types/incoming-invoice.js +1 -0
  343. package/esm5/components/tributos/types/item-type.js +1 -0
  344. package/esm5/components/tributos/types/outgoing-Invoice.js +1 -0
  345. package/esm5/components/tributos/types/outgoing-invoice-context.js +1 -0
  346. package/esm5/components/tributos/types/outgoing-invoice-item.js +1 -0
  347. package/esm5/components/tributos/types/outgoing-invoice-type.js +1 -0
  348. package/esm5/components/tributos/types/purchase-order-context.js +1 -0
  349. package/esm5/components/tributos/types/purchase-order-type.js +1 -0
  350. package/esm5/components/tributos/types/purchase-order.js +1 -0
  351. package/esm5/components/tributos/types/sale-order-context.js +1 -0
  352. package/esm5/components/tributos/types/sale-order-type.js +1 -0
  353. package/esm5/components/tributos/types/sale-order.js +1 -0
  354. package/esm5/components/tributos/types/tax.js +2 -0
  355. package/esm5/components/utils/breakpoints.js +11 -0
  356. package/esm5/components/utils/export-utils.js +78 -0
  357. package/esm5/components/utils/index.js +4 -0
  358. package/esm5/components/utils/loading-context.js +22 -0
  359. package/esm5/components/utils/utils.js +20 -0
  360. package/esm5/core/entities/entity-service.js +98 -0
  361. package/esm5/core/entities/quantidade-disponivel-demanda/quantidade-disponivel-demanda-dto.js +1 -0
  362. package/esm5/core/entities/quantidade-disponivel-demanda/quantidade-disponivel-demanda.js +67 -0
  363. package/esm5/core/entities/quantidade-disponivel-demanda/quantidade-disponivel-demanda.module.js +27 -0
  364. package/esm5/core/entities/quantidade-disponivel-demanda/quantidade-disponivel-demanda.service.js +27 -0
  365. package/esm5/core/enums/enum-classificacao-tributaria.js +6 -0
  366. package/esm5/core/enums/enum-tipo-calculo-imposto.js +7 -0
  367. package/esm5/core/enums/enum-tipo-documento-parametros.js +9 -0
  368. package/esm5/core/enums/enum-tipo-documento.js +12 -0
  369. package/esm5/core/enums/erpx-com-processo-faturamento-backend/enum-indicativo-padrao.js +7 -0
  370. package/esm5/core/enums/erpx-cpl-imp-cadastros-backend/enum-indicativo-padrao.js +10 -0
  371. package/esm5/locale/fallback.js +56 -0
  372. package/esm5/public-api.js +8 -0
  373. package/esm5/senior-gestao-empresarial-erpx-components.js +58 -0
  374. package/fesm2015/senior-gestao-empresarial-erpx-components.js +36350 -0
  375. package/fesm2015/senior-gestao-empresarial-erpx-components.js.map +1 -0
  376. package/fesm5/senior-gestao-empresarial-erpx-components.js +37396 -0
  377. package/fesm5/senior-gestao-empresarial-erpx-components.js.map +1 -0
  378. package/locale/fallback.d.ts +55 -0
  379. package/package.json +23 -0
  380. package/public-api.d.ts +7 -0
  381. package/senior-gestao-empresarial-erpx-components.d.ts +57 -0
  382. 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,2 @@
1
+ import { EnumTipImpCst, EnumTipoTributo } from '../erp-tributos.types';
2
+ export declare const mapEnumTipoTributoToEnumTipImpCst: (taxType: EnumTipoTributo) => EnumTipImpCst;
@@ -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
+ }
@@ -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
+ }
@@ -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
+ }
@@ -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 TaxRateStatusRule 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 TaxableBaseStatusRule implements TaxRule {
4
+ apply({ context: { document }, group, item: { name: taxType, formGroup } }: RulePayload): void;
5
+ }