Skip to Content
0
Former Member
Nov 29, 2006 at 01:10 PM

Document_Lines Price is ignored

103 Views

Hi there.

I'm using the DI Server, and running some code to add and update SalesOrders.

I'm always overwriting the price with what is actually set by a user.

Some sample xml:

<Document_Lines>
<row>
<ItemCode>100001</ItemCode>
<Price>2100.0</Price>
</row>
</Document_Lines>

And it worked very well in my test-database, which is just a copy of the official test-database. Then I created a database from scratch for my customer. And guess if I was surprised when I found that in that new base, the Price I send is Allways ignored! Both when creating and updating salesorders, the items default price is allways used. Is there some database setting somewhere that ignores prices set this way, that I have to turn off?

I can change the price in the UI to a new price, but if I try to update the price through xml, it is ignored. Although I can change quantity and other things.

Why doesn't my second database work? I am at a loss here.

Regards, Runar