HI All, How do I correctly get and compare a trans...
# suitescript
m
HI All, How do I correctly get and compare a transaction (bill) status in client script? If I get the field value of status I get e.g. 'Open', but when I switch the NS language I get the translation of that status. I need to make sure my function only executes in a specific bill status.
Looks like I can use the documentstatus field. Please let me know if there are better ways.
n
You beat me to it by about 3 seconds! 😄
I'm not aware of anything else you might be able to use in client script. I added &xml=T to the record url and searched on "status". Retrieving that field value back on the regular record view worked in the console.
m
Worked for me too and I guess this will be the only solution 🙂