{"Name":"z_barcode using built in ayBC","Active":true,"Notes":"Example of displaying barcodes \n","Roles":50538,"AType":34,"IncludeWoItemDescendants":false,"Template":"<html>\n\n<body>\n  <div>\n\n    <h2>Example: Bar code helper </h2>\n    <p>See Report editor help documentation for additional details</p>\n\n    {{#each ayReportData}}\n    <!-- the #each aspect MUST encompass the section where the class is that forces page break -->\n    <table class=\"singlePage\">\n      <!-- the css to start a new page when a new object - i.e.  work order -->\n\n      <tbody>\n        <tr>\n          <td colspan=\"12\">{{ayT \"WorkOrder\" }} {{ayT \"WorkOrderSerialNumber\" }} {{Serial}} as \"CODE-128\" BarCode with scale 1:</td>\n          <td colspan=\"12\">{{ ayBC Serial '{ \"bcid\": \"code128\",\"includetext\":true, \"scale\":1}' }}</td>\n        </tr>\n        <tr>\n          <td colspan=\"12\">{{ayT \"WorkOrder\" }} {{ayT \"WorkOrderSerialNumber\" }} {{Serial}} as \"QR\" Code with scale 1:</td>\n          <td colspan=\"12\">{{ ayBC Serial '{ \"bcid\": \"qrcode\",\"includetext\":true, \"scale\":1}' }}</td>\n        </tr>\n        <tr>\n          <td colspan=\"12\">{{ayT \"WorkOrder\" }} {{ayT \"WorkOrderSerialNumber\" }} {{Serial}} as \"QR\" Code with scale 3:</td>\n          <td colspan=\"12\">{{ ayBC Serial '{ \"bcid\": \"qrcode\",\"includetext\":true, \"scale\":3}' }}</td>\n        </tr>\n        <tr>\n          <td colspan=\"12\">Sample \"UPC-A\" Code using a hard coded number 712345678904 as example:</td>\n          <td colspan=\"12\">{{ ayBC \"712345678904\" '{ \"bcid\": \"upca\",\"includetext\":true, \"scale\":1}' }}</td>\n        </tr>\n        <tr>\n          <td colspan=\"24\">&nbsp;</td>\n        </tr>\n        {{#each Items}}\n        {{#each Units}}\n        <tr>\n          <td colspan=\"1\">&nbsp;</td>\n          <td colspan=\"11\" class=\"leftlean\">{{ayT 'Unit'}} {{UnitViz}} displayed as as \"CODE-128\" BarCode with scale 1:</td>\n          <td colspan=\"12\">{{ ayBC UnitViz '{ \"bcid\": \"code128\",\"includetext\":true, \"scale\":1}' }}</td>\n        </tr>\n        {{/each}}\n\n        <tr>\n          <th colspan=\"24\">&nbsp;</th>\n        </tr>\n        {{#each Parts}}\n        <tr>\n          <td colspan=\"1\">&nbsp;</td>\n          <td colspan=\"11\">{{ayT 'WorkOrderItemPartPartID'}}: {{PartNameViz}} displayed as \"CODE-128\" BarCode with scale 1:</td>\n          <td colspan=\"12\">{{ ayBC PartNameViz '{ \"bcid\": \"code128\",\"includetext\":true, \"scale\":1}' }}</td>\n        </tr>\n        {{/each}}\n\n      </tbody>\n      {{/each}}\n    </table>\n    {{/each}}\n\n  </div>\n\n</body>\n\n</html>","Style":".singlePage\n{\npage-break-after: always;\n}\n\nbody {\n  font-family: 'Helvetica',  'Helvetica Neue',  Arial,  sans-serif; \n}\n\n.reporttitle {  \n  margin-bottom: 20pt; \n  font-weight: bold; \n  font-size: 13pt; \n} \n\ntable { \n  table-layout: fixed; \n  border-collapse: collapse;\n  white-space: pre-wrap;\n  font-size: 9pt;\n  width: 100%;\n    }\n\n\nth {\n  height: 20px;\n  color: #9e9e9e;\n}\n\ntbody tr {\n  height: 10px;\n  word-wrap: break-word;\n}\n\ntd {\n  padding: 10px;\n}\n\ntbody tr:nth-child(even) {\n        background-color: #f8f8f8; /* MUST checkmark Print background in PDF Options for this to show */\n}\n\n.fontgreen {\n  color: green;\n}\n.fontblue {\n  color: blue;\n}\n.fontred {\n  color:red;\n}\n\n\n.rightlean {\n    text-align: right;\n}\n.leftlean {\n  text-align: left;\n}\n.centerlean {\n  text-align: center;\n}","JsPrerender":"async function ayPrepareData(reportData){         \n    //this function (if present) is called with the report data \n    //before the report is rendered\n    //modify data as required here and return it to change the data before the report renders\n    //see the help documentation for details\n\n\tawait ayGetTranslations([ \"WorkOrder\", \"WorkOrderSerialNumber\",  \"Unit\", \"WorkOrderItemPartPartID\" ]);\n\n\n\n\t\n\n    return reportData;\n}","JsHelpers":"","RenderType":0,"HeaderTemplate":"<span>&nbsp;</span>","FooterTemplate":"<span style=\"font-size:6pt;width: 100%; text-align:left; \">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Printed date:&nbsp;<span class=\"date\"></span></span>\n<span style=\"font-size:6pt;width: 96%; text-align: right; \">&nbsp;&nbsp;&nbsp;Page&nbsp;<span class=\"pageNumber\"></span>&nbsp;of&nbsp;<span class=\"totalPages\"></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>","DisplayHeaderFooter":true,"PaperFormat":10,"Landscape":false,"MarginOptionsBottom":"15mm","MarginOptionsLeft":"15mm","MarginOptionsRight":"10mm","MarginOptionsTop":"10mm","PageRanges":null,"PreferCSSPageSize":false,"PrintBackground":true,"Scale":1.00000}