1 line
5.0 KiB
Plaintext
1 line
5.0 KiB
Plaintext
{"Name":"Clients list","Active":true,"Notes":"","Roles":124415,"SockType":8,"IncludeWoItemDescendants":false,"Template":"<html>\n\n<body>\n <div>\n <div class=\"reporttitle\">\n <p>{{ayT 'CustomerList'}} List</p>\n </div>\n\n <table>\n\n <thead>\n </thead>\n\n <tbody>\n {{#each ayReportData}}\n <tr>\n <th colspan=\"1\" class=\"leftlean\">{{ayT 'Customer'}}:</th>\n <td colspan=\"5\" class=\"lrgtext\">{{Name}}</td>\n <td colspan=\"1\"> </td>\n </tr>\n <tr>\n <th colspan=\"2\">{{ayT 'CustomerAccountNumber'}}:</th>\n <td colspan=\"1\">{{AccountNumber}}</td>\n <th colspan=\"2\">{{ayT 'LastServiceWorkOrder'}}:</th>\n {{#if LastServiceDateViz}}<td colspan=\"2\">#{{LastWorkOrderViz}} on {{ayDateTime LastServiceDateViz}}</td>{{else}}<td colspan=\"2\"></td>{{/if}}\n </tr>\n <tr>\n <th colspan=\"2\">{{ayT 'CustomerPhone1'}}:</th>\n <td colspan=\"2\">{{Phone1}}</td>\n <th colspan=\"1\">{{ayT 'CustomerEmail'}}:</th>\n <td colspan=\"2\">{{EmailAddress}}</td>\n </tr>\n <tr>\n <th colspan=\"2\">{{ayT 'AddressTypePhysical'}}:</th>\n <td colspan=\"5\">{{Address}} {{City}}, {{Region}}</td>\n </tr>\n {{#if BillHeadOffice}} <!-- only displays if this is true -->\n <tr>\n <th colspan=\"2\">{{ayT 'CustomerBillHeadOffice'}}:</th>\n <td colspan=\"5\">{{HeadOfficeViz}}</td>\n </tr>\n {{else}}{{/if}} <!-- this closes the above if statement -->\n {{#if ContractViz}}<!-- only displays if this is true -->\n <tr>\n <th colspan=\"2\">{{ayT 'Contract'}}:</th>\n <td colspan=\"5\">{{ContractViz}} Expires: {{ContractExpires}}</td>\n </tr>\n {{else}}{{/if}}<!-- this closes the above if statement -->\n {{#if AlertNotes}}<!-- only displays if this is true -->\n <tr>\n <th colspan=\"2\">{{ayT 'CustomerAlertNotes'}}:</th>\n <td colspan=\"5\">{{AlertNotes}} Expires: {{ContractExpires}}</td>\n </tr>\n {{else}}{{/if}}<!-- this closes the above if statement -->\n {{#if TechNotes}}<!-- only displays if this is true -->\n <tr>\n <th colspan=\"2\">{{ayT 'CustomerTechNotes'}}:</th>\n <td colspan=\"5\">{{TechNotes}}</td>\n </tr>\n {{else}}{{/if}}<!-- this closes the above if statement -->\n\n <tr>\n <th colspan=\"6\"> </th>\n </tr>\n\n {{/each}}\n </tbody>\n\n <tfoot>\n </tfoot>\n\n </table>\n\n\n </div>\n</body>\n\n</html>","Style":"body {\r\n font-family: 'Helvetica', 'Helvetica Neue', Arial, sans-serif; \r\n}\r\n\r\n.reporttitle { \r\n margin-bottom: 20pt; \r\n font-weight: bold; \r\n font-size: 13pt; \r\n color: #9e9e9e;\r\n} \r\n\r\ntable { \r\n border-collapse: collapse;\r\n white-space: pre-wrap;\r\n width: 100%;\r\n table-layout: fixed;\r\n }\r\n\r\nth {\r\n height: 20px;\r\n font-size: 10pt; \r\n color: #9e9e9e;\r\n text-align: right;\r\n}\r\n\r\n.lrgtext {\r\n height: 20px;\r\n font-size: 10pt; \r\n}\r\n\r\ntbody td {\r\n padding: 10px;\r\n word-wrap: break-word;\r\n font-size: 8pt;\r\n}\r\n\r\n\r\ntbody tr:nth-child(even) {\r\n background-color: #f8f8f8; /* MUST checkmark Print background in PDF Options for this to show */\r\n}\r\n\r\n\r\n.rightlean {\r\n text-align: right;\r\n}\r\n.leftlean {\r\n text-align: left;\r\n}\r\n.centerlean {\r\n text-align: center;\r\n}\r\n\r\n\r\n.fontgreen {\r\n color: green;\r\n font-size: 16pt;\r\n}\r\n.fontblue {\r\n color: blue;\r\n}\r\n.fontred {\r\n color:red;\r\n}\r\n\r\n","JsPrerender":" \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\nasync function ayPrepareData(ayData) { \n\n await ayGetTranslations([ \"Name\", \"CustomerList\", \"Customer\", \"CustomerAccountNumber\", \"CustomerBillHeadOffice\", \"AddressTypePhysical\", \"CustomerPhone1\", \"CustomerEmail\", \"ContractExpires\", \"Contract\", \"LastServiceWorkOrder\", \"CustomerAlertNotes\", \"CustomerTechNotes\" ]);\n\n \n return ayData;\n}","JsHelpers":"","RenderType":0,"HeaderTemplate":"<span> </span>","FooterTemplate":"<span style=\"font-size:6pt; width: 96%;text-align:left; \"> Printed date: PDFDate</span>\n<span style=\"font-size:6pt;width: 96%; text-align: right; \">Page <span class=\"pageNumber\"></span> of <span class=\"totalPages\"></span> </span>","DisplayHeaderFooter":true,"PaperFormat":0,"Landscape":false,"MarginOptionsBottom":"15mm","MarginOptionsLeft":"20mm","MarginOptionsRight":"20mm","MarginOptionsTop":"10mm","PageRanges":null,"PreferCSSPageSize":false,"PrintBackground":true,"Scale":1.00000} |