Rendering an advanced PDF template on button action by including the resolveScript() in the userevent script.

First create a button using a userevent script to add a button. Use N/record, N/ui/serverWidget and N/url modules. The script sample is provided below: We need to create a suitelet script for opening a suitelet page on button action. The script id and deployment id provided in the resolveScript function is the suitelet script id… Continue reading Rendering an advanced PDF template on button action by including the resolveScript() in the userevent script.

Print Shipping Cost Separately From Handling Cost in Advanced PDF/HTML Template

Navigate to Customization > Forms > Advanced PDF/HTML Templates Preferred Advanced PDF Template: Click Customize/Edit Toggle Source Code Source Code: Add the following code: <#assign shippingcost = record.shippingcost – record.handlingcost><table><tr><th>${‌record.shippingcost@label}</th><td>${‌shippingcost?string.currency}</td></tr><tr><th>${‌record.handlingcost@label}</th><td>${‌record.handlingcost}</td></tr></table></code>

For Date and Time

For Date And Time  ${.now} Date and Time will come in below format: Mar 19, 2021 12:30:33 PM For Only Date: ${.now?date}    : –  3/19/2021  For Only Time: ${.now?time}     :- 12:00:33 PM