We have UPC-a 12 digit bar codes from USG. If the upccode field on the item record is empty, the item label prints the barcode in code128 format. If I enter a 12 digit upc code it print the barcode in code128 format, not upc format. This is using advanced pdf, it works correctly if using the Transaction Form PDF.
Attached files:
Without UPC.png - UPC code field is empty
With UPC.png - 12 digit upca code in the Upc Code field
Here is the section of html in the Advanced PDF that determines what format to print the barcode in.
<body padding="0.5in 0.5in 0.5in 0.5in" size="Letter">
<#list records as label>
<table style="width: 2.5in; height: 1.2in">
<tr>
<#if (label.skuUpcBarcode?length > 0)>
<#if label.skuUpcBarcode?is_number && (label.skuUpcBarcode?length == 12 || label.skuUpcBarcode?length == 13)>
<td>
<barcode bar-width="0.75"
codetype="<#if label.upc>upca<#else>ean13</#if>"
showtext="true"
value="<#if label.upc>0</#if>${label.skuUpcBarcode?j_string}">
</barcode>
</td>
<#else>
<td>
<barcode bar-width="0.5"
codetype="code128"
showtext="true"
value="${label.skuUpcBarcode?html}">
</barcode>
</td>
</#if>
<#else>
<td>
<barcode bar-width="0.5"
codetype="code128"
showtext="false"
value="${label.id?html}">
</barcode>
</td>
</#if>
</tr>
</table>
Thank you,
Jeff