{"Name":"Example Purchase Order Detailed","Active":true,"Notes":"AS OF 131: why is it called VendorPartNumber?\nIncludes IF/ELSE ship to client; ","Roles":98,"AType":26,"IncludeWoItemDescendants":false,"Template":"\n\n\t
\t\n {{#each ayReportData}}\t \n\t\t \t\n \t\t\n \n \n \n \n \n {{#if DropShipToCustomerViz}}{{else}} {{/if}}\n {{#if DropShipToCustomerViz}}{{else}} {{/if}}\n \n \n \n {{#if DropShipToCustomerViz}}{{else}} {{/if}}\n \n \n \n \n {{#if DropShipToCustomerViz}}{{else}} {{/if}} \n \n \n \n \n {{#if DropShipToCustomerViz}}{{else}} {{/if}} \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \t\t\n\t\t\t\t{{#each Items}} \n\t\t\t\t \n \n \n \n \n \n \n \n {{#if TaxAViz}}{{else}}{{/if}}\n {{#if TaxBViz}}{{else}}{{/if}}\n \n \n\t\t\t \t{{/each}}\n\t\t\t\n \n \n \n\t\t\t\t\n\t\t\t\t\n \t\t\t\n \n\t\t\t\t\n\t\t\t\t\n \t\t\t\n \n \n\t\t\t\t\n \n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n \n \n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n \n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n \n \n\t\t\t\t\n {{#if ThisPOTaxA}}{{else}} {{/if}}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t{{#if ThisPOTaxB}}{{else}} {{/if}}\n\t\t\t\t\n\n \n\t\t\t\t\n\t\t\t\t\n\n \n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n \n \n \n\t\t
 
PO#: {{Serial}}SHIP TO CLIENT:BILL TO:BILL TO & SHIP TO:
Ref#: {{ReferenceNumber}}{{DropShipToCustomerViz}}My Company Name
Ordered Date: {{ayDate OrderedDate}}{{DropShipToCustomerAddressViz}} {{DropShipToCustomerCityViz}} {{DropShipToCustomerRegionViz}} 123 - 123 MyStreetname Ave
 {{DropShipToCustomerEmailAddressViz}} {{DropShipToCustomerPhone1Viz}} My City, My State, My Postal
VENDOR: {{VendorViz}}TEL: My telephone
{{VendorPostAddressViz}} {{VendorPostCityViz}} {{VendorPostRegionViz}} {{VendorPostCodeViz}}Email: My email address
{{VendorContactViz}} {{VendorPhone1Viz}} {{VendorEmailAddressViz}} Acct#: VendorAccountNumberViz
 
QtyUOMOur Part#MFG#Vendor#Price PerNetTaxATaxBLine Total
{{QuantityOrdered}}{{PartUnitOfMeasureViz}}{{PartViz}} {{PartNameViz}}{{PartManufacturerNumberViz}} {{VendorPartNumber}} {{ayCurrency PurchaseOrderCost}}{{ayCurrency NetTotalViz}}{{ayCurrency TaxAViz}}0.00{{ayCurrency TaxBViz}}0.00{{ayCurrency LineTotalViz}}
 
**Please note all packing slips and invoices REQUIRE line pricing**Total Qty of Parts Ordered: {{ThisPOTotalQty}}
**Approval for off-specification items or changes MUST be obtained via a NEW purchase order** 
 
PO VENDOR MEMO:{{VendorMemo}} Net Total:{{ ayCurrency ThisPONet }}
 
VENDOR ALERT MEMO:{{VendorAlertNotesViz}} TaxA Total:{{ ayCurrency ThisPOTaxA }}0.00
TaxB Total:{{ ayCurrency ThisPOTaxB }}0.00
 
Direct all inquiries to My Company 1-888-555-5555 or mycompany@mycompany.comPurchase Order Total:{{ ayCurrency ThisPOTotalDollar }}
\n {{/each}}\n\n\t
\n\n","Style":".singlePage\n{\npage-break-after: always;\n}\n\ntable { \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 table-layout: fixed;\n }\n\nthead {\n display: table-header-group; /* so as to print the table-header on all subsequent pages */\n}\n\n\n.rightlean {\n text-align: right;\n}\n.leftlean {\n text-align: left;\n}\n.centerlean {\n text-align: center;\n}\n\n.bold13 {\n font-size: 13pt;\n font-weight: bold;\n}\n.bold12 {\n font-size: 12pt;\n font-weight: bold;\n}\n.bold10 {\n font-size: 10;\n font-weight: bold;\n}\n\n.bkyellow {\n background-color: lightyellow;\n}\n\n.italic {\n font-style: italic;\n}\n\n.bodyhead {\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 font-weight: bold; \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; /* so as to print the table-footer on all subsequent pages */\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","JsPrerender":"async function ayPrepareData(reportData) {\n //Example of both manipulating the reportData before rendering the report (by adding a running total field)\n //and adding a field to the overall data calculating the total dollar amount for all records\n\n\n//remove statements not needed, for example ALLPOxxx are not needed\n//let AllPONet = 0; //Declare a temporary variable to hold the running net total for all POs in this list\n//let AllPOTaxA = 0; //Declare a temporary variable to hold the running Tax A total for all POs in the list\n//let AllPOTaxB = 0; //Declare a temporary variable to hold the running Tax B total for all POs in the list\n\n\n //Iterate through all the records in the reportData adding the dollar amount of each specified property to the appropriate declared variable\n for (EachPO of reportData.ayReportData) \n {\n let ThisPONet = 0; //Declare a temporary variable to hold the running net total for THIS po\n for (Item of EachPO.Items) //Iterate through all the poitems of THIS po adding the dollar amount of each item to the ThisPONet variable\n {\n //make sure it has a value before attempting to add it to the running total\n if (Item.NetTotalViz != null) \n {\n ThisPONet += Item.NetTotalViz;\n }\n Item.PONetRunning=ThisPONet;\n }\n EachPO.ThisPONet=ThisPONet;\n // AllPONet += ThisPONet; //remove statements not needed, for example ALLPOxxx are not needed\n\n let ThisPOTaxA = 0; //Declare a temporary variable to hold the running Tax A total for THIS po\n for (Item of EachPO.Items) //Iterate through all the poitems of THIS po adding the dollar amount of each item to the ThisPOTaxA variable\n {\n //make sure it has a value before attempting to add it to the running total\n if (Item.TaxAViz != null) \n {\n ThisPOTaxA += Item.TaxAViz;\n }\n Item.POTaxARunning=ThisPOTaxA;\n }\n EachPO.ThisPOTaxA=ThisPOTaxA;\n // AllPOTaxA += ThisPOTaxA; //remove statements not needed, for example ALLPOxxx are not needed\n\n let ThisPOTaxB = 0; //Declare a temporary variable to hold the running Tax B total for THIS po\n for (Item of EachPO.Items) //Iterate through all the poitems of THIS po adding the dollar amount of each item to the ThisPOTaxB variable\n {\n //make sure it has a value before attempting to add it to the running total\n if (Item.TaxBViz != null) \n {\n ThisPOTaxB += Item.TaxBViz;\n }\n Item.POTaxBRunning=ThisPOTaxB;\n }\n EachPO.ThisPOTaxB=ThisPOTaxB;\n // AllPOTaxB += ThisPOTaxB; //remove statements not needed, for example ALLPOxxx are not needed\n\n let ThisPOTotalDollar = 0; //Declare a temporary variable to hold the running total of THIS PO \n for (Item of EachPO.Items)\n {\n //make sure it has a value before attempting to add it to the running total\n if (Item.LineTotalViz != null) \n {\n ThisPOTotalDollar += Item.LineTotalViz;\n }\n Item.PORunningTotal=ThisPOTotalDollar;\n }\n \n EachPO.ThisPOTotalDollar =ThisPOTotalDollar; // \n \n \n // ThisPOTotalDollar += AllPOTotalDollar; //remove statements not needed, for example ALLPOxxx are not needed\n \n let ThisPOTotalQty = 0; //Declare a temporary variable to hold the running Qty total for THIS po\n for (Item of EachPO.Items) //Iterate through all the poitems of THIS po adding the Qty amount of each item to the ThisPOTotalQty variable\n {\n //make sure it has a value before attempting to add it to the running total\n if (Item.QuantityOrdered != null) \n {\n ThisPOTotalQty += Item.QuantityOrdered;\n }\n Item.QuantityOrderedRunning=ThisPOTotalQty;\n }\n EachPO.ThisPOTotalQty=ThisPOTotalQty;\n\n\n }\n \n // reportData.AllPONetRunning=AllPONet; //Add the AllPONet variable to the reportData so it can be accessed in the report template i.e. a final running total of ALL PO's Net\n // reportData.AllPOTaxARunning=AllPOTaxA; //Add the AllPONet variable to the reportData so it can be accessed in the report template i.e. a final running total of ALL PO's Tax A\n // reportData.AllPOTaxBRunning=AllPOTaxB; //Add the AllPOTaxB variable to the reportData so it can be accessed in the report template i.e. a final running total of ALL PO's Tax B\n // reportData.AllPORunningTotal=AllPODollarAmount; \n\n \n\n\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})","RenderType":0,"HeaderTemplate":"       (set in report template's PDF Options) Printed date: \n","FooterTemplate":"\n  (set in report template's PDF Options showing x of ALL pages printed)  Page  of ","DisplayHeaderFooter":true,"PaperFormat":10,"Landscape":true,"MarginOptionsBottom":"10mm","MarginOptionsLeft":"10mm","MarginOptionsRight":"10mm","MarginOptionsTop":"10mm","PageRanges":null,"PreferCSSPageSize":false,"PrintBackground":true,"Scale":1.00000}