Skip to Content
0
Former Member
Jun 01, 2006 at 01:17 PM

Problems creating an order document

18 Views

Hi,

I'm creating an order document via DIAPI. My problem is with document lines, the data I want to introduce is ItemCode, Discount, Quantity and Price. The thing is that my price is the price before discount, but in DIAPI there is no way to add data to the field pricebefdi and the only price you can add is price after discount, so my total and the one shown in SBO is not the same.

What I do at the moment is calculate the price after discount and assign it to the field price, but with this operation I loose decimals.

Any idea of how to do it?

Thanks in advance,

vane