This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
{"Name":"Retail & Cost Value of Inventory","Active":true,"Notes":"","Roles":49514,"AType":90,"IncludeWoItemDescendants":false,"Template":"<html>\n\n<body>\n\t<div>\n\t\t<div class=\"reporttitle\">\n\t\t\t<p>Retail & Cost Value of Inventory</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=\"6\" class=\"leftlean\" >{{ayT 'Part'}}</th>\n\t\t\t\t\t<th colspan=\"5\">{{ayT 'PartWarehouseName'}}</th>\n\t\t\t\t\t<th colspan=\"3\">{{ayT 'PartByWarehouseInventoryQuantityOnHand'}}</th>\n\t\t\t\t\t<th colspan=\"2\">{{ayT 'PartRetail'}} Per</th>\n\t\t\t\t\t<th colspan=\"3\">{{ayT 'PartRetail'}} Value</th>\n\t\t\t\t\t<th colspan=\"2\">{{ayT 'PartCost'}} Per</th>\n\t\t\t\t\t<th colspan=\"3\">{{ayT 'PartCost'}} Value</th>\t\t\t\t\t\n\t\t\t\t</tr>\n\t\t\t</thead>\n\n\t\t\t<tbody>\n\t\t\t\t{{#each ayReportData}}\n\t\t\t\t<!-- the #each for the Sample Data MUST encompass the section where its gonna show - in this case the tbody, so needs to be placed within -->\n\t\t\t\t<tr>\n\t\t\t\t\t<td colspan=\"6\">{{PartName}} {{PartDescription}}</td>\n\t\t\t\t\t<td colspan=\"5\" class=\"centerlean\">{{PartWarehouseName}}</td>\n\t\t\t\t\t<td colspan=\"3\" class=\"centerlean\">{{OnHandQty}}</td>\n\t\t\t\t\t<td colspan=\"2\" class=\"centerlean\">{{ayCurrency PartRetail}}</td>\n\t\t\t\t\t<td colspan=\"3\" class=\"centerlean\">{{ayCurrency ThisPartsRetailValue}}</td>\n\t\t\t\t\t<td colspan=\"2\" class=\"centerlean\">{{ayCurrency PartCost}}</td>\n\t\t\t\t\t<td colspan=\"3\" class=\"centerlean\">{{ayCurrency ThisPartsCostValue}}</td>\n\t\t\t\t</tr>\n\t\t\t\t{{/each}}\n\t\t\t\t<tr>\n\t\t\t\t\t<td colspan=\"24\"></td>\n\t\t\t\t</tr>\t\t\n\t\t\t\n\t\t\t\t<tr>\n\t\t\t\t\t<th colspan=\"9\">Total Retail Value for all Parts in this report</th>\n\t\t\t\t\t<td colspan=\"3\">{{ayCurrency AllPartsRetailValue}}</td>\n\t\t\t\t\t<th colspan=\"9\">Total Cost Value for all Parts in this report</th>\n\t\t\t\t\t<td colspan=\"3\">{{ayCurrency AllPartsCostValue}}</td>\n\t\t\t\t</tr>\n\t\t\t</tbody>\n\t\t</table>\n\t</div>\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: 30px;\r\n font-size: 11pt; \r\n color: #9e9e9e;\r\n}\r\n\r\ntfoot tr{\r\n border-top: solid 1pt #9e9e9e;\r\n height: 50px;\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: 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\n await ayGetTranslations([\"PartCost\", \"PartRetail\", \"PartByWarehouseInventoryQuantityOnHand\", \"PartWarehouseName\", \"Part\" ]);\n\n\n ayData.AllPartsRetailValue = 0;\n ayData.AllPartsCostValue = 0;\n\n for (const EachPart of ayData.ayReportData) {\n\n EachPart.ThisPartsRetailValue = 0;\n EachPart.ThisPartsCostValue = 0;\n if (EachPart.PartCost != null) {\n EachPart.ThisPartsCostValue = EachPart.PartCost * EachPart.OnHandQty;\n ayData.AllPartsCostValue += EachPart.ThisPartsCostValue;\n }\n if (EachPart.PartRetail != null) {\n EachPart.ThisPartsRetailValue = EachPart.PartRetail * EachPart.OnHandQty;\n ayData.AllPartsRetailValue += EachPart.ThisPartsRetailValue;\n }\n\n\n }\n\n\n //return the data into the pipeline to send to the report template\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":10,"Landscape":true,"MarginOptionsBottom":"15mm","MarginOptionsLeft":"20mm","MarginOptionsRight":"20mm","MarginOptionsTop":"10mm","PageRanges":null,"PreferCSSPageSize":false,"PrintBackground":true,"Scale":1.00000}
|
||||
{"Name":"Retail & Cost Value of Inventory","Active":true,"Notes":"","Roles":49514,"AType":90,"IncludeWoItemDescendants":false,"Template":"<html>\n\n<body>\n\t<div>\n\t\t<div class=\"reporttitle\">\n\t\t\t<p>Retail & Cost Value of Inventory</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=\"6\" class=\"leftlean\" >{{ayT 'Part'}}</th>\n\t\t\t\t\t<th colspan=\"5\">{{ayT 'PartWarehouseName'}}</th>\n\t\t\t\t\t<th colspan=\"3\">{{ayT 'PartInventoryBalance'}}</th>\n\t\t\t\t\t<th colspan=\"2\">{{ayT 'PartRetail'}} Per</th>\n\t\t\t\t\t<th colspan=\"3\">{{ayT 'PartRetail'}} Value</th>\n\t\t\t\t\t<th colspan=\"2\">{{ayT 'PartCost'}} Per</th>\n\t\t\t\t\t<th colspan=\"3\">{{ayT 'PartCost'}} Value</th>\t\t\t\t\t\n\t\t\t\t</tr>\n\t\t\t</thead>\n\n\t\t\t<tbody>\n\t\t\t\t{{#each ayReportData}}\n\t\t\t\t<!-- the #each for the Sample Data MUST encompass the section where its gonna show - in this case the tbody, so needs to be placed within -->\n\t\t\t\t<tr>\n\t\t\t\t\t<td colspan=\"6\">{{PartName}} {{PartDescription}}</td>\n\t\t\t\t\t<td colspan=\"5\" class=\"centerlean\">{{PartWarehouseName}}</td>\n\t\t\t\t\t<td colspan=\"3\" class=\"centerlean\">{{OnHandQty}}</td>\n\t\t\t\t\t<td colspan=\"2\" class=\"centerlean\">{{ayCurrency PartRetail}}</td>\n\t\t\t\t\t<td colspan=\"3\" class=\"centerlean\">{{ayCurrency ThisPartsRetailValue}}</td>\n\t\t\t\t\t<td colspan=\"2\" class=\"centerlean\">{{ayCurrency PartCost}}</td>\n\t\t\t\t\t<td colspan=\"3\" class=\"centerlean\">{{ayCurrency ThisPartsCostValue}}</td>\n\t\t\t\t</tr>\n\t\t\t\t{{/each}}\n\t\t\t\t<tr>\n\t\t\t\t\t<td colspan=\"24\"></td>\n\t\t\t\t</tr>\t\t\n\t\t\t\n\t\t\t\t<tr>\n\t\t\t\t\t<th colspan=\"9\">Total Retail Value for all Parts in this report</th>\n\t\t\t\t\t<td colspan=\"3\">{{ayCurrency AllPartsRetailValue}}</td>\n\t\t\t\t\t<th colspan=\"9\">Total Cost Value for all Parts in this report</th>\n\t\t\t\t\t<td colspan=\"3\">{{ayCurrency AllPartsCostValue}}</td>\n\t\t\t\t</tr>\n\t\t\t</tbody>\n\t\t</table>\n\t</div>\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: 30px;\r\n font-size: 11pt; \r\n color: #9e9e9e;\r\n}\r\n\r\ntfoot tr{\r\n border-top: solid 1pt #9e9e9e;\r\n height: 50px;\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: 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\n await ayGetTranslations([\"PartCost\", \"PartRetail\", \"PartInventoryBalance\", \"PartWarehouseName\", \"Part\" ]);\n\n\n ayData.AllPartsRetailValue = 0;\n ayData.AllPartsCostValue = 0;\n\n for (const EachPart of ayData.ayReportData) {\n\n EachPart.ThisPartsRetailValue = 0;\n EachPart.ThisPartsCostValue = 0;\n if (EachPart.PartCost != null) {\n EachPart.ThisPartsCostValue = EachPart.PartCost * EachPart.OnHandQty;\n ayData.AllPartsCostValue += EachPart.ThisPartsCostValue;\n }\n if (EachPart.PartRetail != null) {\n EachPart.ThisPartsRetailValue = EachPart.PartRetail * EachPart.OnHandQty;\n ayData.AllPartsRetailValue += EachPart.ThisPartsRetailValue;\n }\n\n\n }\n\n\n //return the data into the pipeline to send to the report template\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":10,"Landscape":true,"MarginOptionsBottom":"15mm","MarginOptionsLeft":"20mm","MarginOptionsRight":"20mm","MarginOptionsTop":"10mm","PageRanges":null,"PreferCSSPageSize":false,"PrintBackground":true,"Scale":1.00000}
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user