if I load a record with `nlapiLoadRecord` and then...
# suitescript
j
if I load a record with
nlapiLoadRecord
and then do
getFieldValue
on a field of type Currency, the value returned is a string e.g. ‘23911.00’ However if I do the equivalent in SS2 with
record.load
and
getValue()
I get back a number e.g. 23911
Is this known/expected behaviour?
b
ss2 is more consistent about how it treats values vs text
the value of the field will be a number, the text the string
and it actually will respect the number format preferences while ss1 will ignore it
👍 2