I am struggling to create a search that returns Cu...
# suitescript
m
I am struggling to create a search that returns Customer Deposits with a remaining amount > 0 Can't find a field to use in the filter. Any ideas?
t
have you tried doing this on saved search first?
m
Yeah
t
and the result is?
m
Nothing worked. Some fields called Amount Remaining and Applied To Link Amount, but they don't return any value.
While they should have value for some deposits.
m
Wow, I will sue Oracle.
😅 1
Thanks, I will go through it.
☕
t
Alright.. goodluck then 🙂
c
@Marwan Can you compare "Amount" and "Amount Paid"? I notice that for Customer Deposits which aren't fully applied, Amount Paid is less than Amount. You could also consider using the Status of the CD.
m
For some reason, I didn't think of the status. My bad.
I notice that for Customer Deposits which aren't fully applied, Amount Paid is less than Amount.
The amount paid is exactly what I wanted, but I couldn't retrieve it in the UserEvent script. It was being retrieved in my scheduled script, but not in the user event, not sure why. Solved it at the end with N/query, with another field.
c
That's odd - I would expect that if search doesn't get the value in beforeSubmit, query wouldn't either - that maybe all beforeSubmit scripts would need to finish executing before the field is available. Good ol' Netshoot... Glad you figured out a solution!