Is there a way to create a custom field that point...
# suitescript
s
Is there a way to create a custom field that points to the Item Fulfillment Status and return the A, B statuses? The status on item fulfillment returns a letter whereas the status on my custom record returns a number id. 😠
b
write code to do the lookup
you can probably hardcode it if you really wanted to
s
Yeah, that's what I have. I"m just having to go off of text. The custom field returns something like 132 whereas the item fulfillment status returns 'A'
It messes up their stuff too, because I need the field to filter a custom record based on the shipping status. Netsuite's out of the box solution doesn't work i believe because the IF returns A whereas the custom field (list/record) returns 132
b
132 should be shipped
s
it may be 130
So A != 130 is the proble
b
and it cant return C, thats not unique enough, multiple transactions have a status with the id C
s
So there's basically no way, without text, to do this because rec.getValue("shipstatus") only returns a letter
b
hardcode the conversion from A to 130 and C to 132
s
Netsuite lol. That's the stuff that's a little ridiculous.
i
Would .getText instead of .getValue work?
s
That's what I ended up doing. Don't want to use get text, but I guess it's not the end of the world in this case to do that