Discussions
SuiteWorld is where the NetSuite community comes together to learn, connect, and discover what’s next.
Whether you’re looking for product updates, practical tips, new ways to improve efficiency, or insights from other customers, SuiteWorld offers something for every stage of your NetSuite journey.
■ NetSuite 2026.2 Release Notes
■ NetSuite SuiteApps Release Notes
■ NetSuite Sneak Peeks
■ Release Preview Guide
■ Release Preview Test Plan Template
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({