cancel
Showing results for 
Search instead for 
Did you mean: 

Problems creating an order document

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

This is a major flaw in DI API currently. I don't think there's much you can do about it in addition to what you've already done. In 2005 SP1, there will be available some new ways of calculating price/discounts. You might want to check it out.

Henry

Answers (0)