k
message has been deleted
s
If it's a transaction search, you don't need to say {transaction.type} - the dot notation is for related records, and you're searching the desired record type already. So it'd just be {type} (ditto for status and quantity).
k
Thank you that work. But i am trying to get the quantity of items and assemblies on sales orders. Any idea how to dot notate and item and a assembly?
s
The quantity field in a transaction search (when main line is false, which it is) is for the the quantity of the line item on the order. We don't use assemblies so I don't know if there's anything different about how those behave on orders.
k
"quantity field in a transaction search" can you explain this a bit more? @Stephanie Hughes
s
You can just add the field Quantity I don’t see a reason to use a formula. You are already filtering the results through the criteria tab.
k
Yes, but they want assembly just added to the Qty on SO section not the entire saved search and don't know how to reference just that specific value
i
What? You want assembly items added to the search with quantity?
If you want assembly items added then you need to change your criteria to include assembly items and not just inventory items
j
I suggest using the formula builder if you are unsure of the ids of the fields you want.
But you may want something closer to this:
Copy code
CASE WHEN {type} = 'Sales Order' AND {status}  NOT IN ('fullyBilled','cancelled','pendingBilling','closed')  THEN {quantity} ELSE 0 END
i
I don't think there is any reason for a formula at all
He has all the criteria in the main critertia section already
j
maybe not, unless they want to include ALL lines but only sum SOME of them
ah, so they do
you are right
i
Yeah lol
j
Yeah, in that case, no formula needed, just Quantity