Files
raven/server/AyaNova/resource/rpt/stock-report-templates/Work order Part Requests.ayrt
2022-02-16 21:14:49 +00:00

1 line
3.9 KiB
Plaintext

{"Name":"Work order Part Requests","Active":true,"Notes":"","Roles":116095,"AType":40,"IncludeWoItemDescendants":false,"Template":"<html>\n\n<body>\n\t<div>\n\t\t<div class=\"reporttitle\">\n\t\t\t<p>{{ayT 'WorkOrderItemPartRequests'}}</p>\n\t\t</div>\n\t\t<table>\n\t\t\t<thead>\n\t\t\t\t<tr>\n\t\t\t\t\t<th colspan=\"2\">{{ayT 'WorkOrder'}}</th>\n\t\t\t\t\t<th colspan=\"5\">{{ayT 'Part'}}</th>\n\t\t\t\t\t<th colspan=\"2\">{{ayT 'WorkOrderItemPartRequestQuantity'}}</th>\n\t\t\t\t\t<th colspan=\"3\">{{ayT 'WorkOrderItemPartPartWarehouseID'}}</th>\n\t\t\t\t\t<th colspan=\"2\">{{ayT 'WorkOrderItemRequestDate'}}</th>\n\t\t\t\t\t<th colspan=\"2\">{{ayT 'PurchaseOrderPONumber'}}</th>\n\t\t\t\t\t<th colspan=\"2\">{{ayT 'PurchaseOrderOrderedDate'}}</th>\n\t\t\t\t\t<th colspan=\"2\">{{ayT 'PurchaseOrderExpectedReceiveDate'}}</th>\n\t\t\t\t</tr>\n\t\t\t</thead>\n\n\t\t\t<tbody>\n\t\t\t\t{{#each ayReportData}}\t\t\t\t\n\t\t\t\t{{#each Items}}\n\t\t\t\t{{#each PartRequests}}\n\t\t\t\t<tr>\n\t\t\t\t\t<td colspan=\"2\">{{../../Serial}}</td>\n\t\t\t\t\t<td colspan=\"5\">{{PartNameViz}} {{PartDescriptionViz}}</td>\n\t\t\t\t\t<td colspan=\"2\" class=\"centerlean\">{{Quantity}}</td>\n\t\t\t\t\t<td colspan=\"3\">{{PartWarehouseViz}}</td>\n\t\t\t\t\t<td colspan=\"2\" class=\"centerlean\">{{ayDate RequestDate}}</td>\n\t\t\t\t\t<td colspan=\"2\" class=\"centerlean\">{{PurchaseOrderItemId}}</td>\n\t\t\t\t\t<td colspan=\"2\" class=\"centerlean\">{{ayDate PurchaseOrderDateViz}}</td>\n\t\t\t\t\t<td colspan=\"2\" class=\"centerlean\">{{ayDate PurchaseOrderExpectedDateViz}}</td>\n\t\t\t\t</tr>\n\t\t\t\t{{/each}}\n\t\t\t\t{{/each}}\n\t\t\t\t{{/each}}\n\n\t\t\t</tbody>\n\t\t</table>\n\t</div>\n\n</body>\n</html>","Style":".singlePage\r\n{\r\npage-break-after: always;\r\n\r\n}\r\nbody {\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 /* border-bottom: solid 1pt #9e9e9e; */\r\n height: 50px;\r\n font-size: 11pt; \r\n color: #9e9e9e;\r\n}\r\n\r\ntbody td {\r\n padding: 10px;\r\n word-wrap: break-word;\r\n font-size: 9pt;\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":"async function ayPrepareData(ayData) {\n\n await ayGetTranslations([ \"WorkOrder\", \"WorkOrderItemPartRequests\", \"PartWholesalerID\", \"Part\", \"WorkOrderItemPartRequestQuantity\", \"WorkOrderItemPartPartWarehouseID\", \"WorkOrderItemRequestDate\", \"PurchaseOrderPONumber\", \"PurchaseOrderOrderedDate\", \"PurchaseOrderItemUIOrderedFrom\", \"PurchaseOrderExpectedReceiveDate\", \"PartList\" ]);\n\n \n //return the data into the pipeline to send to the report template\n return ayData;\n}","JsHelpers":"","RenderType":0,"HeaderTemplate":"<span>&nbsp; </span>","FooterTemplate":"<span style=\"font-size:6pt; width: 96%;text-align:left; \">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;</span>","DisplayHeaderFooter":true,"PaperFormat":10,"Landscape":true,"MarginOptionsBottom":"20mm","MarginOptionsLeft":"20mm","MarginOptionsRight":"15mm","MarginOptionsTop":"10mm","PageRanges":null,"PreferCSSPageSize":false,"PrintBackground":true,"Scale":1.00000}