Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
i have received spellout error and converted into numbers into word with points like 234.45 with dec
i have received spellout error and converted into numbers into word with points like 234.45 with decimal
how can i display
var Totalpaidamount = rec.getValue({
fieldId: "custrecord_njt_hr_fs_to_be_paid",
});
log.debug("Totalpaidamount", Totalpaidamount);
if (Totalpaidamount >= 0) {
log.debug("hihello");
var netAmt = Totalpaidamount;
netAmt = netAmt.toFixed(2);
var str = netAmt.toString();
var amdSplit = str.split(".");
var dirhamsAmt = parseInt(amdSplit[0]);
var filsAmt = parseInt(amdSplit[1]);
var netAmt1 = parseInt(netAmt);
if (filsAmt) {
var dirhamsSpellOut = formati18n.spellOut({
number: dirhamsAmt,
locale: "EN",
});
var filsSpellOut = formati18n.spellOut({
number: filsAmt,
locale: "EN",
});
totalinwords =
dirhamsSpellOut + " dirhams and " + filsSpellOut + " Fils only ";
totalinwords = totalinwords.toLowerCase();
} else {
var spellOut = formati18n.spellOut({