API Forum

This forum is in read-only mode.
Please refer to our API support in case you have any questions.
We can be reached at api@e-conomic.com
e-conomic API developer forum

Add orderline, not automaticly setting the price.

When I create an order with the API like:
IOrder _order = _sessionOrderCreate(debtor);

And add an orderline to this order:
IOrderLine _orderLine = _sessionOrderLineCreate(_order);

Then I attach a product to the line:
_orderLineProduct = _sessionProductFindByNumber(cLineItemNo);

After this I was expecting the price to be automaticly calculated from the debtor, product and amount supplied, but instead the price is 0 when I look in the Economic interface. Could someone point me towards what im doing wrong.
created Sep 17, 2012 by Jacob_2500
0% Accept Rate
Q 5 A 6 C 0

Visma e-conomic A/S