Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
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({