try{ xml += "<tr>"; xml += "<td st...
# suitescript
g
try{ xml += "<tr>"; xml += "<td style='margin-bottom: 5px;' align='left' colspan='2'>"; xml += "<barcode height=\"15\%\" codetype=\"ean13\" showtext=\"true\" value=\""; xml += nlapiEscapeXML(itemCol[1]); xml += "\"/>"; xml += "</td>"; xml += "</tr>"; xml += "</table>"; }catch(e){ nlapiLogExecution('DEBUG', "Not an EAN-13 type", e.message+ "UPC CODE has only "+''+itemCol[1].length+''+"Digits" ); xml += "<tr>"; xml += "<td style='margin-bottom: 1px;' align='center' colspan='2'><span font-size='8.5'><br />"; xml += nlapiEscapeXML(itemCol[1]); xml += "</span></td>"; xml += "</tr>"; xml += "</table>"; return true; }