Ask IBT – Print Item Bar Code

Ask IBT – Print Item Bar Code


You probably would have noticed that NetSuite has the option of recording the UPC code on the Item record.

When you enter text in this field, the SKU/UPC field on item labels displays this UPC Code and prints in UPC barcode format.


Now, what if we want to show this barcode on our Transaction form print layout. Let’s give this a try.


1)We can’t get the bar codes printed on a basic print template. An Advanced PDF template has to be used for the same.

2) If you are intending to do the below, please do this on a test template before working on the real one or work this out in your sandbox environment. We do not want any errors in your working template.


Step 1: Create a custom column field

  1. Users can create a custom column field to source the UPC Code from the item record.
  2. Navigate to Customization -> Lists, Records & Fields -> Transaction Line Fields -> New.
  3. Enter a value for the Label field.
  4. Enter a value under ID field
  5. Set Type to Free-Form Text.
  6. Remove the check mark on the Store Value checkbox.
  7. Under Applies To tab, select the transactions where you want to apply the field.
  8. Under Sourcing & Filtering, set Item for Source List and UPC Code for Source From.
  9. Click Save.


2) Customize the Advanced PDF layout. 

  1. Users will need to add the above field on Advanced PDF/HTML Template to be able to print it.
  2. Navigate to Customization -> Forms -> Advanced PDF/HTML Templates.
  3. Click Edit on a custom template or Customize on Standard PDF/HTML Template.
  4. Add the following codes on the itemtablepart of the template:


  5. Add the following codes on the itemtable part under the thead portion of the template:Note: I have used the codetype as Code128. We do have a couple of other options available for this too.
  6. Click Save.

Note: Replace ‘custcol1’ of the custom field’s internal id created on Step I.

My Final Output:


I hope this helps. Give it a go and let us know how it goes.

Leave a Reply

Your email address will not be published.