I want to print the items of certain transaction i...
# suitescript
y
I want to print the items of certain transaction in suitelet but the search is not working probably ,does anyone know what cause this problem
p
You need to be more specific, I'm afraid
y
I want to print items of certain invoice using suitelet but i have a problem with the search filter i can’t do it
The problem is that some results return more than one time i don’t know why
b
share the code
or at least the filters and columns of the search
y
message has been deleted
This is the output
message has been deleted
It is repeating and i tried mainline is t it didn’t work
b
unusual for an invoice search, more normal for things like item fulfillments
id make sure that your internal id is actually an invoice
otherwise, recreate the search in the ui so you have an easier time of seeing your data
i guess if its a standalone invoice, it would have the same accounting impact of a item fulfillment
which probably means you want a filter to exclude the COGS lines
y
How can i do that filter
b
make the search in the ui
p
build it in the UI and export it, is the easiest way
b
its easier to see which filters and columns you have access to
p
you'll want to exclude
taxline
,
cogs
and
shipping
y
How can i do it using suitescript
Is taxlone ,cogs ,shipping boolean
p
var transactionSearch = nlapiSearchRecord("transaction",null,
[
  
["taxline","is","F"],
    
"AND",
    
["cogs","is","F"],
    
"AND",
    
["shipping","is","F"],
    
"AND",
    
["internalid","anyof",recid]
],
 
[
  
new nlobjSearchColumn("item"),
    
new nlobjSearchColumn("quantity"),
    
new nlobjSearchColumn("rate")
]
);
y
Thank you very much for help
I want to print the description of each item also what is its id
s
Usually
memo
y
I tried it it didn’t work
Ah it worked sorry i did a mistake