Bar Codes and QR Codes in Advanced PDF Template

We can add/Customize barcodes and QR Codes in advanced PDF Templates. Which requires a basic understanding of HTML and CSS. We can add any kind of that are available in Template into Barcodes. means, We can add header level fields and also Line level fields by applying some logic on the Template code.

Here is an example of How I add Sales order No and Item Details in QR Code in a JSON like format

 <table width="100%">
                    <tr>
                        <td align="left" width="2%" padding-top="-15"><img src="https://5703857.app.netsuite.com/core/media/media.nl?id=13&c=5703857&h=34e39ceac12c0a910c98" width="55" height="55" /></td>
                        <td align="center" width="75%">
                            <p align="center" font-size="14pt" color="#960a00" padding-top="-10"><b>DIAMOND ROLLER FLOUR MILLS PVT LTD</b></p>
                            <p align="center" font-size="10pt" color="#960a00" padding-top="-8">Mavilangu Jn., Pallom  P O, Kottayam-686007</p>
                        </td>
               <td  align="right" width="2%" padding-top="-15">   
               <#assign str=" ">
               <#list record.item as item>
               <#assign str+= "{">
               <#assign str+="Item:">
               <#assign str+= item.item?string >
               <#assign str+= " ">
               <#assign str+= ",">
               <#assign str+= " ">
               <#assign str+= "Qty:" >
               <#assign str+= item.quantity?string >
               <#assign str+= "}">
               <#assign str+= ",">
               </#list>
               <barcode codetype="qrcode" height="100px" showtext="true" value="{'SOID':'${record.tranid}','Item Details': [${str}]}" width="100px">
               </barcode>
                      </td>
                    </tr>
                </table>

For reference please see the SuiteAnswer: Answer Id: 26486

Leave a comment

Your email address will not be published. Required fields are marked *