{"section":"known-issues","requestedLocale":"en","requestedSlug":"difference-in-values-between-the-total-changes-and-the-detail-of-values-by-product","locale":"en","slug":"difference-in-values-between-the-total-changes-and-the-detail-of-values-by-product","path":"docs/en/known-issues/Order Management/difference-in-values-between-the-total-changes-and-the-detail-of-values-by-product.md","branch":"main","content":"## Summary\n\n\nAn issue has been identified related to the presentation of adjusted values in orders after changes involving products with a decimal `unitMultiplier` greater than 2.\n\nWhen the weight or quantity of an item is modified through the **Order Modification flow**, the system uses `unitMultiplier` values with several decimal places to recalculate individual and total prices. However, the order UI uses the item's `sellingPrice`, which may be rounded and approximated to only **two decimal places**. **This can result in visible discrepancies between the sum of the displayed values per product and the total amount charged to the customer**, which can confuse merchants.\n\nIt is essential to note that the calculation of the total order value accurately follows the required precision, and the inconsistency is limited to the display of product details in the interface.\n\n\n#### Simulation\n\n\nTo reproduce the issue:\n\n1. Access the Orders area in the VTEX platform.\n2. Select an order containing items with a decimal `unitMultiplier` (e.g., products sold by weight).\n3. Manually modify the weight (`unitMultiplier`) with a value that contains more than 2 decimal places _(more decimals will end up in more visible divergence)_ of the item via the Order Modification flow (or Pick and Pack).\n4. Observe that after the change:\n  - The total order value is correctly adjusted and charged as expected.\n  - However, the displayed values for each product may not add up exactly to the shown total, due to rounding of the `sellingPrice` in the UI.\n5. Compare the system's displayed values with a manual calculation using the prices, quantities, and full `unitMultiplier`.\n\n\n#### Workaround\n\n\nCurrently, there is no definitive fix or configuration adjustment available to resolve the discrepancy in the UI's displayed value sum. It is recommended to:\n\n- Inform merchants and users about the possibility of this visual inconsistency.\n- For reconciliation purposes, always use the total order value (totals), not the sum of individual `sellingPrice` fields.\n- If necessary, use tools such as preview APIs or apply manual adjustments via the `manualIncrementValue`/`manualDecrementValue` fields to ensure final values are accurate.\n- Follow product updates for potential improvements in decimal handling in the UI display."}