Page 1 of 1

Barcode on custom template

Posted: Fri Jun 14, 2024 1:12 pm
by JAYM

Barcode on custom template
Is there a way to show the barcode on custom templates summary report (CustomTemplateBody).

<tr>
            <td style="border: 1px solid black; border-collapse: collapse;">{{{item_code}}}</td>
            <td style="border: 1px solid black; border-collapse: collapse;">{{{unit}}}</td>
            <td style="border: 1px solid black; border-collapse: collapse;">{{{itemdesc}}}</td>
            <td style="border: 1px solid black; border-collapse: collapse;">{{{qty}}}</td>
            <td style="border: 1px solid black; border-collapse: collapse;">{{{description}}}</td>
 	    <td style="border: 1px solid black; border-collapse: collapse;">{{{barcode}}}</td>
</tr>

already enable barcode on custom view tag
thanks for your help.


Re: Barcode on custom template

Posted: Fri Jun 14, 2024 6:28 pm
by arbei

Which version are you using? If you see the barcode in the original List/View, you'll see them in the Custom Template also. As the docs says:
Remember that Custom Template is rearrangement of existing HTML fragments in the page, all other code is still the same, the fields in the Custom Template cannot be more than the original script. The available fields are same as the original script, if you try to include other fields in the table or from other table by Custom Template, it will NOT work.

You may also check HTTP response.