Hi there,
I am upgrading a DW 8 site to 9 and ran into an issue with Avalara. The contents of the cart generated multiple tax lines for each product in the cart. Some of these lines have the same product number and name. When that's the case, DW seems to group them without summing their value, causing me to lose some values. This in turn leads to an error like this:
2018-05-14 16:59:12.8614|eCom/CartV2/Errors|ERROR|CART17861|Order CART17861: Price validation failed for order. Order price before fees with VAT: 102.7. Orderlines price with VAT: 113.25. Price difference: 10.55.
See dump #1 for how the database looks for a broken order.
I built a custom version of Avalara that appends a sequence ID to each line which fixes the problem (temporarily).
See dump #2 for how the database looks for a fixed order.
A customer reported a similar issue on DW 8 a while ago (we did an upgrade to the latest 8 in March or so) and the same sequence fixed the issue.
Did something change in how order lines are retrieved or grouped? And what is the right solution going forward?
Thanks!
Imar