Hi DW
We have a weird problem with order line discount on a solution running DW 9.14.1 and using BC14 Plug-In unit version 1.2.0.23 and live integration (live integration version 7.0.3).
When calculating orders/carts that includes order line discount it seems that the total price for the specific order line discount is always set to 0. This gives us some problems when rendering in the frontend because it seems like the order line does not have any discount.
After the order has been calculated in BC all "Total" columns on the order line with discount type is set to 0. This is a snap from the current database:
And this results in this view in the backend where there's no total price on the order line with discount type:
The funny thing here is that I have tried to hook onto the notification subscriber "OnAfterSendingOrderToErp" and the order object here seem to have the values set correctly on the properties "Price" and "UnitPrice", so the problem does not seem to be in the Plug-In unit, and the XML also seem to reflect the correct values. So this is probably an issue that occurs after the order has been calculated at the ERP.
I have tried updating the values in the database and recalculating the cart once again, but then the values are 0 once again, so it seems like there's something under the hood, that explicitly sets these values to 0 in this specific case.
BR Chris