Skip to Content
0
Former Member
Jan 15, 2008 at 02:37 PM

Change Discount in orderlines trough DIAPI

23 Views

Hy,

I'm trying to change the discount percentage in an orderline through an addon.

I use the B1DE and catch the OnBeforeFormDataAdd event. The AddOn fills the discount correctly but at the end, when the addon releases the code (and standard SBO takes over again) the Order fails with the following error-message;

There is a difference between the document total and its components.

Can anyone help me with this?

Thanks,

Joeri