Dear Support,
We use a standard integration code in BC, but we’ve encountered an issue when creating a standard order discount from DW. When the discounted order syncs to BC, the discount line is not created as a separate order line in BC. Instead, the item’s price is being overwritten by the discount amount, resulting in a negative price.
Below is an example of a 10% Off Order discount created in DW:
Here is the data setup in the Live Integration Add-In Settings for Discounts:
On the order receipt page, where the data is coming from BC's response, the product price is being overwritten with the negative discount amount:
This is the request that is syncing from DW to BC:
And this is the response syncing from BC to DW:
We noticed that the discount line is not recorded as an order line in BC. Instead of adding the discount line from the DW request as an order line, BC is overwriting the item's price with the negative discount value.
I have attached the order request and response for your reference. Could you please review this issue and provide suggestions? Thank you.
Best Regards,
Yamin