<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:decimal-format NaN="0"/>

<xsl:template match="/">

<html>
<link rel="stylesheet" href="/ibase/webitm/css/DD/default.css" type="text/css" />
<link id="userThemeLink" type="text/css" rel="stylesheet" href=""/>
<script type="text/javascript" src="/ibase/webitm/js/porderWiz_Popup.js"></script>

<body onload="setUserTheme()">

	<form name="porderFinish" METHOD="post" ACTION="/ibase/ITMWizardHandlerServlet">
			<table class="tableClass" id="Details1" border="0" cellspacing="1" cellpadding="1">
					<thead class="table-head">
						<tr>
							<th class="thClass" nowrap="true" valign="bottom" width="20%">
								<strong>Purchase Order</strong>
							</th>
							<th class="thClass" nowrap="true" valign="bottom" width="20%">
								<strong>Remarks</strong>
							</th>
							<th class="thClass" nowrap="true" valign="bottom" width="20%">
								<strong>Supplier Code</strong>
							</th>
							<th class="thClass" nowrap="true" valign="bottom" width="20%">
								<strong>Supplier Name</strong>
							</th>
							<th class="thClass" nowrap="true" valign="bottom" width="20%">
								<strong>Total Tax</strong>
							</th>	
						</tr>
					</thead>
					
					<tbody class="table-body"> 
						<xsl:for-each select="//finish">
							<xsl:variable name="fieldId"><xsl:value-of select="fieldId"/></xsl:variable>
							<xsl:variable name="fieldValue"><xsl:value-of select="fieldValue"/></xsl:variable>
							<xsl:variable name="supp_code"><xsl:value-of select="supp_code"/></xsl:variable>
							<xsl:variable name="supp_name"><xsl:value-of select="supp_name"/></xsl:variable>
							<xsl:variable name="tax_amt"><xsl:value-of select="tax_amt"/></xsl:variable>
							
							<tr>
								<td>
									<xsl:value-of select="fieldId"/>
								</td>
								<td>
									<xsl:value-of select="fieldValue"/>
								</td>
								<td>
									<xsl:value-of select="supp_code"/>
								</td>
								<td>
									<xsl:value-of select="supp_name"/>
								</td>
								<td>
									<xsl:value-of select="tax_amt"/>
								</td>
							</tr>
						</xsl:for-each>
					</tbody>		
			</table>
				<table class="tableClass" id="Details2" border="0" cellspacing="1" cellpadding="1">
					<thead class="table-head">
						<tr>
							<th class="thClass" nowrap="true" valign="bottom" width="20%">
								<strong>Item SKU Code</strong>
							</th>
							<th class="thClass" nowrap="true" valign="bottom" width="20%">
								<strong>Quantity</strong>
							</th>	
							<th class="thClass" nowrap="true" valign="bottom" width="20%">
								<strong>Total Amount</strong>
							</th>
							<th class="thClass" nowrap="true" valign="bottom" width="20%">
								<strong>Tax Amount</strong>
							</th>
						</tr>
					</thead>
					
					<tbody class="table-body"> 
						<xsl:for-each select="//extra">
							<xsl:variable name="item_code"><xsl:value-of select="item_code"/></xsl:variable>
							<xsl:variable name="tot_amt"><xsl:value-of select="tot_amt"/></xsl:variable>
							<xsl:variable name="supp_code"><xsl:value-of select="supp_code"/></xsl:variable>
							<xsl:variable name="tax_amt"><xsl:value-of select="tax_amt"/></xsl:variable>
							<xsl:variable name="quantity"><xsl:value-of select="quantity"/></xsl:variable>
							<tr>
								<td>
									<xsl:value-of select="item_code"/>
								</td>
								<td>
									<xsl:value-of select="quantity"/>
								</td>	
								<td>
									<xsl:value-of select="tot_amt"/>
								</td>
								<td>
									<xsl:value-of select="tax_amt"/>
								</td>
							</tr>
						</xsl:for-each>
					</tbody>		
			</table>
			
					<table>
						<tr>
							<td colspan="2">
								<input type="button" style="cursor:hand" onclick="javascript:callForm1('porderWiz')" 
								class="button green-Btn pophelp-okcancel" value="Home" title='Home' />
							</td>
				        </tr>
				    </table>
	</form>
</body>
</html>
</xsl:template>
</xsl:stylesheet>

