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

Bug in OrderLine_GetDataArray

0
There seems to be an error in OrderLine_GetDataArray. I experience that this function does not return any orderlines even though there is in fact a lines on the order. I have confirmed that I parse orderline-handles to the OrderLine_GetDataArray-function and I can see that there is in fact a line on the order by going to the admin-system. I use Order_GetLines to fetch handles for all lines on the order. The single orderline-handle that the API has returned via Order_GetLines looks like this:

object-Id = 292
object-Number = 2

I think the last value should be 1 and not 2. The problem occurs in some cases where I have removed orderlines from the order using the API... but not in all cases.
created Nov 3, 2011 by kwi
0% Accept Rate
Q 6 A 6 C 0

2 Answers

0
Update: OrderLine_GetData also fails.

Most likely the real problem lies in Order_GetLines, because i returns a wrong number (2) for the one and only orderline on the order.
answered Nov 3, 2011 by kwi
0
Ok, I figured it out: OrderLine_GetDataArray only returns an array if there are multiple lines. Same goes for Order_GetLines.
answered Nov 3, 2011 by kwi
Visma e-conomic A/S
...