Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
getFieldValue for 'hours' cuts off the decimals
Hello!! Im back with another scripting problem
On the Time Tracking form, I have a serverscript which gets the value of 'hours' and updates a "Total time spent" field on the job record accordingly. The issue is that getFieldValue cuts off the decimals - e.g 1:30 returns 1 instead of 1.5 in my code below:
...
var additional_hrs = parseFloat(newRecord.getFieldValue('hours'));
...
Any idea where I'm going wrong?
Thanks .. Srilatha
0