what about the fact that when you have a return pa...
# random
j
what about the fact that when you have a return parameter of type List/Record you have to return …. a STRING. Not an integer. Even though it’s the (numerical) internalid you’re returning. Oh wait, you forgot to cast to string? Don’t worry, NetSuite will helpfully do it for you, by adding
.0
on the end! Yay your internalid is now
1234.0
and oh btw it’s invalid.
s
adding to this, my current biggest mind blowing idea is I have no idea why all the currency fields are 2dp, but somehow when I sum it I get 8 digits.
c
Wait till you find out javascript does math incorrectly for larger smaller numbers
j
oh yes, I like this one.
try
0.035 * 100;
for good times
I use BigNumber these days