{"section":"known-issues","requestedLocale":"en","requestedSlug":"incorrect-apportionment-of-kit-value-when-discount-is-applied","locale":"en","slug":"incorrect-apportionment-of-kit-value-when-discount-is-applied","path":"docs/en/known-issues/Shopping/incorrect-apportionment-of-kit-value-when-discount-is-applied.md","branch":"main","content":"## Summary\n\nWhen a discount is applied, there is a divergence between the total value of a kit and the sum of its components values.\n\n### Example 1:\n\nOne kit is priced at $ 7.72. This kit receives a discount of $ 1.16. When the price of the kit is distributed among its components, the sum of the components price is $ 7.70.\n\n### Example 2:\n\nOne kit is priced at $ 7.72. This kit receives a discount of $ 1.16. When the apportionment of the discount is made among its components, the sum of the components discount is $ 1.40.\n\nThis error occurs because of the rounding performed in the divisions of the values.\n\nWith this difference of values, tenants can not enter the Invoice in their systems.\n\n## Simulation\n\n1. In **Catalog** module, register a kit with 4 components;\n2. In the **Pricing** module, create a promotion for this kit;\n3. Close an order with this kit with the promotion applied;\n4. The order's JSON or XML will display the divergence between the total value and the sum value of the parts.\n\n## Workaround\n\nThis is an intermittent scenario. The momentary solution is to manually enter the values so that the ERP can generate the invoice with the correct value."}