{"Name":"112 unfinished WO Dispatch example","Active":true,"Notes":"#if_eq example custom Helper - if status is Completed show checkmark in checkbox\nHTML if examples - if part has serial numbers then show partnameviz + serials, else show only part\nREQUIRES ADDITIONAL EDITING - each workorder item to a single page, room for manual entry, ","Roles":124927,"AType":34,"IncludeWoItemDescendants":false,"Template":"\n\t\n\t\t
\t\n\n\t\t\n \t\n\t\t{{#each ayReportData}}\t \n\t\t \t\n \t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t \n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t \n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t \n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t \t\n\t\t\t\t \n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t \n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t \t \n \t\t\n \n \t\t\n\t\t\t\t{{#each Items}}\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t \t\n \t\t\n\n\t\t\t\t\t{{#each Units}}\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t \t\n \t\t\t\n \t\t\t{{/each}}\n\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t \t\t\n \t\t\t\n \t\t\t{{#each ScheduledUsers}}\n \t\t\t\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n \t\t\t\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t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\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t{{#if Serials}} {{else}}\t {{/if}}\n \t\t\t\n \t\t\t{{/each}} \n\t\t\t\t\t \n\t\t\t\t\t \n\t\t\t\t\t \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n \t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n \t\t\t\n\t\t\t\t\t\t \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n \t\t\t\n\t\t\t\t\t\t \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\n\t\t\t\t{{/each}} \n\t\t\t \n\n\t\t\t \n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t \n\t\t\t\t \n\t\t\t\t\t\n\t\t\t\t\t{{#if TechSignature}} {{else}} {{/if}}\n\t\t\t\t\t \n\t\t\t\t\t{{#if CustomerSignature}} {{else}} {{/if}}\n\t\t\t\t \n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t \n\t\t\t\t \n\t\t\t\t\t\n\t\t\t\t\t{{#if TechSignatureCaptured}} {{else}} {{/if}} \n\t\t\t\t\t \n\t\t\t\t\t{{#if CustomerSignatureCaptured}} {{else}} {{/if}} \n\t\t\t\t \n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t \n \t\n
{{ ayLogo \"small\" }}Internal WO#:{{Serial}}
Service To Be Completed By:{{ayDateTime CompleteByDate}}
 
Customer: {{CustomerViz}}{{Address}}, {{City}} PHONE ETC NOT YET EXPOSED IN SAMPLE DATA
 
Summary of work: {{Notes}}
Scheduleable User Notes:PROPERTY FOR Scheduleable User Notes NOT YET EXPOSED IN SAMPLE DATA??
 
TechNotes for this work item: {{TechNotes}}
Unit to be serviced in this work item: {{UnitViz}}
 
Scheduled:Actual:
Tech: {{UserViz}}
 Expected Start: {{ayDateTime StartDate}}Actual Start:
 Expected Stop: {{ayDateTime StopDate}}Actual Stop:
 Expected Rate: {{ServiceRateViz}}Actual Rate:
 Expected Qty: {{EstimatedQuantity}}Actual Qty:
 
Task Status:TickBox:Task:
{{StatusViz}} {{Task}}
 
Need to add to wo?QtyWarehouse Part:
 {{Quantity}}{{PartWarehouseViz}}{{PartNameViz}}    Serial#: {{Serials}} {{PartNameViz}}
 
Additional Details of service:
 
 
 
 
Tech Signature: {{TechSignature}} ________________________________________Client Signature: {{CustomerSignature}} __________________________________________
 
 
Date: {{TechSignatureCaptured}} ________________________________________Date: {{CustomerSignatureCaptured}} __________________________________________
 
\n\n {{/each}}\n\n\n\t\t
\n\t\n","Style":"/* if not using a rule set or specific property it is recommended to comment out or delete fully for report performance*/\n\n.singlePage\n{\npage-break-after: always;\n}\n\ntable { \n table-layout: fixed; //setting this to fixed causes columns to be evenly spaced for the entire table regardless of cell content, and then colspan then \"works\" as expected\n font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif;\n border-collapse: collapse;\n white-space: pre-wrap;\n font-size: 9pt;\n width: 100%;\n }\n\nthead {\n display: table-header-group; /* so as to print the table-header on all subsequent pages */\n /* NOTE if this IS here in your CSS but your thead contents are NOT displaying on subsequent pages (i.e. page 2 of a wo), you NEED to edit your thead so it is NO MORE than approx 20% of the page */\n}\n\n\n.heading {\n border-style: solid;\n border-width: 1pt;\n border-color: #e8e5e5; \n margin: 10pt;\n background-color: #e8e5e5;\n padding: 5pt; \n font-size: 10pt; \n} \n\ntbody tr:nth-child(even) {\n font-size: 9pt;\n background-color: lightgray; /* MUST checkmark Print background in PDF Options for this to show */\n} \ntbody tr:nth-child(odd) {\n font-size: 9pt;\n background-color: lightgoldenrodyellow; /* MUST checkmark Print background in PDF Options for this to show */\n} \n\ntfoot {\n display: table-footer-group; \n page-break-inside: avoid; \n font-size: 8pt; \n bottom: 0;\n width: 100%;\n border-top: 1px solid black; \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 return reportData;\n}","JsHelpers":"//Register custom Handlebars helpers here to use in your report script\n//https://handlebarsjs.com/guide/#custom-helpers\nHandlebars.registerHelper('loud', function (aString) {\n return aString.toUpperCase()\n})\n\n//custom helper so can do a direct comparison - i.e. if value equals xxxx, then show, else show yyyyy\n//note that this HAS to be added here in Helpers, is NOT built in\nHandlebars.registerHelper('if_eq', function(a, b, opts) {\n if(a == b) // Or === depending on your needs\n return opts.fn(this);\n else\n return opts.inverse(this);\n});\n","RenderType":0,"HeaderTemplate":"    (from PDF Options) Printed date: ","FooterTemplate":"  this is set in PDF Options  Note this is all pages of report  Page  of     ","DisplayHeaderFooter":true,"PaperFormat":10,"Landscape":false,"MarginOptionsBottom":"10mm","MarginOptionsLeft":"10mm","MarginOptionsRight":"10mm","MarginOptionsTop":"10mm","PageRanges":null,"PreferCSSPageSize":false,"PrintBackground":true,"Scale":1.00000}