I have a Sales Order with 2 lines on the screen. W...
# sdf
s
I have a Sales Order with 2 lines on the screen. When I use SuiteQL, it return 12 transactionline. Is there's a "trick" to return only the 2 lines ? I tried AND mainline = 'F' AND taxline = 'F' AND donotdisplayline ='F' . . . Any idea ?
c
Are you doing joins and whatnot? you may have to set mainline to F for other records.
s
the statement looks like this SELECT sum(COALESCE(quantity,0) *-1) AS requested,sum (COALESCE(quantitypacked,0)) AS packed FROM TransactionLine WHERE TransactionLine.Transaction = " + results[jj]['id'] AND mainline = 'F' AND taxline = 'F' AND donotdisplayline ='F'
It's returning more lines than on the screen
w
Sum() without GROUP, doesn't look like a complete statement.