Menu
Feedback
Start here
Tutorials
Developer portal

Known Issues
Support Rules
Troubleshooting

Frequently Asked Questions
Announcements
Known issues
Divergence in kit weight after calculations involving decimals in weight
Divergence in kit weight after calculations involving decimals in weight
ID: 657186
Backlog
Published on 9/13/2022
Last update on 11/25/2022

Summary

In certain cases involving kits, the shipping policy may not be available, this can happen due to the logic used for the calculations that involve the weight. Initially we divide the total weight of the kit by the quantity of the items, the result is taken as the unit weight of each item, and this value is presented with 7 decimal points after the comma. In a second moment, we do the reverse calculation, multiplying the unit weight by the quantity of items, but using only 4 decimal points, which generates a different result from the first calculation, and may lead the system to consider a different value than the real value of the kit's weight.

Simulation

Add the SKU of a kit to the simulation, Divide the total weight value by each item, consider using 7 decimal points here; Now with the value resulting from the above account make the following calculation; multiply the unit weight by the quantity of items, consider here 4 decimal points; Note that the value of the weight considered by the system will be different;

Workaround

Has no workaround

PS.: Add images and attachments to reinforce your description

Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX community.
Join our community
Request support from VTEX
For personalized assistance, contact our experts.
Open a support ticket
GithubDeveloper portalCommunityFeedback