Hi guys,
I have an unusual situation with one of our integrations.
We are using DW 9.9.6 and Live Integration Framework v2 with code-unit 1.2.0.8.
The customer is using discounts in NAV and we want to use ERP for the discount calculation.
We have made some tests, before actually changing anything in the code unit or the live integration code.
The test we have made is based on a discount that would offer a free product when the order contains 2 units of a specific product.
The first thing we have noticed is that the code-unit will return the free product as a regular product, without any additional Discount orderline. And the order total is including the price of the free product.
The customer claims that they are using "standard" NAV discounts. I have no idea if this is something wrong in the code-unit or if they have customization in NAV for discounts.
Another thing that we need to solve is how we send back to NAV the OrderlineFields. I see that the default approach is to send them as separate nodes for each orderline instead of including each orderlineField as a node in the OrderLine node. In the OrderLine node I see them listed as a separate XML in the OrderLineFieldValues.
Is this how the code-unit will understand the OrderlineFields? Can we change how we send over the Orderlinefields without customizing the LiveIntegration code? Like, for example, an XSLT applied to the request?
Thank you,
Adrian