PDF template to Print Item Details of Back Ordered Items In a Sales Order.

Advances PDF template to print back-ordered Item details only.

<?xml version="1.0"?><!DOCTYPE pdf PUBLIC "-//big.faceless.org//report" "report-1.1.dtd">
<pdf>
<head>
	<link name="NotoSans" type="font" subtype="truetype" src="${nsfont.NotoSans_Regular}" src-bold="${nsfont.NotoSans_Bold}" src-italic="${nsfont.NotoSans_Italic}" src-bolditalic="${nsfont.NotoSans_BoldItalic}" bytes="2" />
	<#if .locale == "zh_CN">
		<link name="NotoSansCJKsc" type="font" subtype="opentype" src="${nsfont.NotoSansCJKsc_Regular}" src-bold="${nsfont.NotoSansCJKsc_Bold}" bytes="2" />
	<#elseif .locale == "zh_TW">
		<link name="NotoSansCJKtc" type="font" subtype="opentype" src="${nsfont.NotoSansCJKtc_Regular}" src-bold="${nsfont.NotoSansCJKtc_Bold}" bytes="2" />
	<#elseif .locale == "ja_JP">
		<link name="NotoSansCJKjp" type="font" subtype="opentype" src="${nsfont.NotoSansCJKjp_Regular}" src-bold="${nsfont.NotoSansCJKjp_Bold}" bytes="2" />
	<#elseif .locale == "ko_KR">
		<link name="NotoSansCJKkr" type="font" subtype="opentype" src="${nsfont.NotoSansCJKkr_Regular}" src-bold="${nsfont.NotoSansCJKkr_Bold}" bytes="2" />
	<#elseif .locale == "th_TH">
		<link name="NotoSansThai" type="font" subtype="opentype" src="${nsfont.NotoSansThai_Regular}" src-bold="${nsfont.NotoSansThai_Bold}" bytes="2" />
	</#if>
    <macrolist>
        <macro id="nlheader">
            <table class="header" style="width: 100%;"><tr>
	<td rowspan="1" align="center" padding-right="10px"><#if companyInformation.logoUrl?length != 0><img src="${companyInformation.logoUrl}" style="float: left" /> </#if></td>
	</tr>
	</table>
         </macro>
    </macrolist>
    <style type="text/css">* {
		<#if .locale == "zh_CN">
			font-family: NotoSans, NotoSansCJKsc, sans-serif;
		<#elseif .locale == "zh_TW">
			font-family: NotoSans, NotoSansCJKtc, sans-serif;
		<#elseif .locale == "ja_JP">
			font-family: NotoSans, NotoSansCJKjp, sans-serif;
		<#elseif .locale == "ko_KR">
			font-family: NotoSans, NotoSansCJKkr, sans-serif;
		<#elseif .locale == "th_TH">
			font-family: NotoSans, NotoSansThai, sans-serif;
		<#else>
			font-family: NotoSans, sans-serif;
		</#if>
		}
		table {
			font-size: 9pt;
			table-layout: fixed;
		}
        th {
            font-weight: bold;
            font-size: 8pt;
            vertical-align: middle;
            padding: 5px 6px 3px;
            background-color: #e3e3e3;
            color: #333333;
        }
      span.number {font-size: 16pt;}
      span.title {font-size: 28pt;}
      td {padding: 4px 6px;}
		td p { align:left }
</style>
</head>
<body header="nlheader" header-height="13%" footer="nlfooter" footer-height="20pt" padding="0.5in 0.5in 0.5in 0.5in" size="Letter">
     <h3><span align="center"  style="padding: 150px ">Back Ordered Item Report </span></h3>
   


<table style="width: 100%; margin-top: 30px;"><tr>
	<th colspan="1" style="font-size: 15pt;">Sales Order</th>
	<th colspan="1" align="right" style="font-size: 15pt;">Customer</th>
	</tr>
	<tr>
	<td colspan="1" style="padding-top: 2px;">#${record.tranid}</td>
	<td colspan="1" align="right" style="padding-top: 2px;">${record.entity}</td>
	</tr></table>
<#if record.item?has_content>


<table style="width: 100%; margin-top: 10px;"><!-- start items --><#list record.item as item><#if item_index==0>
<thead>
	<tr>
	<th align="center" colspan="2" style="padding: 10px 6px;">Line</th>
	<th colspan="10" style="padding: 10px 6px;">${item.item@label}</th>
	<th align="center" colspan="3" style="padding: 10px 6px;">${item.quantity@label}</th>
	<th align="right" colspan="4">Back-Ordered Quantity</th>
	</tr>
</thead>
</#if><#if item.quantitybackordered gt 0><tr>
	<td align="center" colspan="2">${item.line}</td>
	<td colspan="10"><span style="font-weight: bold; line-height: 150%; color: #333333;">${item.item}</span><br />${item.description}<br /><em>${item.custcol_scm_customerpartnumber}</em></td>
	<td align="center" colspan="3" line-height="150%">${item.quantity}</td>
	<td align="right" colspan="4">${item.quantitybackordered}</td>
	</tr>
	</#if></#list><!-- end items --></table>


<hr style="width: 100%; color: #d3d3d3; background-color: #d3d3d3; height: 1px;" /></#if>


<table><tr>
	<td><strong>Notes:</strong><br />You will receive a shipment notification with tracking information when these items ship<br />&nbsp;</td>
	</tr>
	</table>


<!--8Q Pay Link--><!--8Q Pay Link-->
</body>
</pdf>

Leave a comment

Your email address will not be published. Required fields are marked *