Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
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({