Resolve Error: “Error Parsing XML: The entity name must immediately follow the ‘&’ in the entity reference”

This issue is normally seen in PDF and XML file of the pdf template which are rendered through script. This happens when our data contains ‘&’. ‘&’ are not supported in pdf and xml. Instead need to use ‘&’ Solution This can be resolved by using replace() function Example: If you are updating Advanced PDF… Continue reading Resolve Error: “Error Parsing XML: The entity name must immediately follow the ‘&’ in the entity reference”

Render PDF using Suitelet and Set Filename via SuiteScript

Solution Deploy the following code on a Suitelet: function renderPDF(context){‌ var serverResponse = context.response; //Gets the response object var testData = ‘TEST BODY’; //Test string to be rendered as PDF var filename = ‘PurchaseOrder_123456.pdf’; //Sample File name to be set when downloaded serverResponse.setHeader({‌ name: ‘Content-disposition’, value: ‘filename=”‘ + filename + ‘”‘, }); //sets the filename to… Continue reading Render PDF using Suitelet and Set Filename via SuiteScript

Transfer PDF From Inventory Adjustment

We need to generate a transfer form print from the inventory adjustment. Our Solution  In the NetSuite standard, we are not able to generate the standard printout for the Inventory adjustment  record. This can be achieved by creating a script for adding a custom button named print transfer order in the inventory adjustment record for… Continue reading Transfer PDF From Inventory Adjustment

Print out for shop floor process and System health check-up.

Update the total committed field in the sales order record. When receiving a purchase order created for that particular item in the sales order record. Requirements Update the total committed field in the sales order record. When receiving a purchase order created for that particular item in the sales order record. Our Solution We will… Continue reading Print out for shop floor process and System health check-up.