Hey so I've noticed in the `Transactions` search t...
# suitescript
f
Hey so I've noticed in the
Transactions
search through
N/search
I can request the field
discountamount
but for some reason it is always empty even though there should be a discount available. Does anyone know if there is a way to get all current valid discount amounts for all open
Bills
with the
N/search
API?
r
Have you tried setting the search type to "vendorbill" instead of "transaction"
f
does that really make a different?
r
Not sure
But sometimes NetSuite surprises you
👍 1
b
{discountamount} refers to the line level discount (what discount items do) {termsdiscountamount} refers to the discount from terms
if you were working with a sales transaction, i would warn you about the transaction discount line, but i dont think there is one for the payable transactions
j
if you haven't, I suggest you try create your search first in UI, and see if there is really a value on it.