Commit 2dc0f44e authored by jshaikh's avatar jshaikh

updated with important information to be displayed

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@171362 ce508802-f39f-4f6c-b175-0d175dae99d5
parent cfa8b09f
<?xml version='1.0' encoding='utf-8'?> <?xml version='1.0' encoding='UTF-8'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/> <xsl:template match="/">
<xsl:decimal-format NaN="0"/> <html>
<head>
<xsl:template match="/"> <link type="text/css" rel="stylesheet" href="/ibase/E12MOBILE/css/workflowsign.css"></link>
<html> <link type="text/css" rel="stylesheet" href="/ibase/E12MOBILE/css/expandy.css"></link>
<head> <link type="text/css" rel="stylesheet" href="/ibase/webitm/css/fonts.css"/>
<style type="text/css"> <link type="text/css" rel="stylesheet" href="/ibase/E12MOBILE/css/hr_portal1.css"></link>
.tTitle1
{
text-align:center;
} <style type="text/css">
.tHeaderD1
{ .tableClass {margin-bottom:10px; width:100%; background-color:#FFF;
text-align:right; /*padding:10px;*/ border-left: 1px solid #d9d9d9; border-top: 1px
} solid #d9d9d9;}
.tTitleD1 .tableClass td {border-bottom: 1px solid #d9d9d9; border-right: 1px solid
{ #d9d9d9; font-size:14px;}
text-align:center; .tbletopbrd{border-top:2px solid #5fdeb2;}
} .date {
.numberData color: #9d9ca2;
{ font-size: 11px;
text-align:right; font-weight: normal;
} }
.editDisplayClass
{readOnly:true;border :inset 1;COLOR:BLACK ;BACKGROUND:#FFFFD9; TEXT-ALIGN:left;FONT: </style>
8ptarial; width:auto;}; </head>
.editDisplayRemarkClass
{readOnly:true;border :inset 1;COLOR:black ; BACKGROUND:#FFFFD9; TEXT-ALIGN:left;FONT: <body>
7ptarial;}; <INPUT type="hidden" name="OBJ_NAME" id="OBJ_NAME" value='salesreturn_retn'/>
.editDisplayrightClass <INPUT type='hidden' name='OBJ_CONTEXT' value='1'/>
{readOnly:true;border :inset 1;COLOR:black ; TEXT-ALIGN:right;FONT:8ptarial;}; <INPUT type='hidden' name='EDIT_FLAG' value='A'/>
.editDisplayecnterClass <INPUT type='hidden' name='DOM_ID' value='{@domID}'/>
{readOnly:true;border :inset 1;COLOR:white ; <INPUT type='hidden' name='DB_ID' value='{@dbID}'/>
BACKGROUND:#5b7290;TEXT-ALIGN:center;FONT:8ptarial;};
.displayCenterClass <xsl:for-each select="//Detail1">
{readOnly:true;border :inset 1;COLOR:#DC143C; <TABLE name="main" id="main" class="tLabel" style="position:relative; width:100%; border-top: #5fdeb2 3px solid;" cellspacing="0" cellpadding="0" >
BACKGROUND:#CCCCFF;TEXT-ALIGN:center;FONT:10ptarial;}; <tr>
.displayCenterClass2 <td colspan="3" >
{readOnly:true;border :inset 1;COLOR:#0000CD; <TABLE width="100%" border="0" cellspacing="0" cellpadding="0" class="tblenew">
BACKGROUND:#E0FFFF;TEXT-ALIGN:center;FONT:10ptarial;}; <tr>
.editDisplayColumnClass{readOnly:true;color:#555; TEXT-ALIGN:left; <td class="tLabelDataD3" width="50%" style="text-align:left;" >
padding:5px; font-size:16px; font-weight:normal;} <font size="2">
.editDisplayheaderClass{readOnly:true;color:#000; TEXT-ALIGN:left; Ref. Invoice Id :
padding:5px; font-weight:normal; font-size:14px; <b><xsl:value-of select="invoice_id" /></b>
vertical-align:top;}
.editDisplayrightClass{readOnly:true;border :inset 1;COLOR:black ; BACKGROUND:#FFFFD9;TEXT-ALIGN:right; </font>
font-weight:normal;}
.editDisplayecnterClass{readOnly:true; color:#5fdeb2; TEXT-ALIGN:left; font-size:18px; padding:5px 0; </td>
font-weight:normal;} <td NOWRAP="TRUE" class="tLabelDataD3" width="50%" style="text-align:right;">
.editDisplayecnterClass2{readOnly:true;border :inset 1;COLOR:black ; TEXT-ALIGN:center; font-weight:normal;} <font size="2">
.editDisplayClass{background-color: transparent Full Return :
!important;readOnly:true;color:#555; TEXT-ALIGN:left; padding:5px; <b><xsl:for-each select="//Detail2">
font-weight:normal; font-size:14px;} <xsl:choose>
.editDisplayecnterClass1 {readOnly:true; color:#5fdeb2; TEXT-ALIGN:left; font-size:16px; <xsl:when test="full_ret= 'Y' ">
padding:10px 0 0 0;} Yes
.editDisplayecnterClass3 {readOnly:true; color:#5fdeb2; TEXT-ALIGN:left; font-size:16px; </xsl:when>
padding:10px 0 0 0;} <xsl:when test="full_ret='N' ">
.tableClass {margin-bottom:10px; width:100%; background-color:#FFF; No
/*padding:10px;*/ border-left: 1px solid #d9d9d9; border-top: 1px </xsl:when>
solid #d9d9d9;} </xsl:choose>
.tableClass td {border-bottom: 1px solid #d9d9d9; border-right: 1px solid </xsl:for-each></b>
#d9d9d9; font-size:14px;} </font>
.tbletopbrd{border-top:2px solid #5fdeb2;}
.date { </td>
color: #9d9ca2; </tr>
font-size: 11px; <tr>
font-weight: normal; <td colspan="3" NOWRAP = "TRUE" class = "tLabelDataD3" >
}
.tableClass1 { <div class = "tLabelDataD3" >
margin-bottom: 5px; <font size="4">
width: 100%; Sales Return :
background-color: #FFF; <b><xsl:value-of select="tran_id" /></b>
border-LEFT: 1px solid #d9d9d9; </font>
border-top: 1px solid #d9d9d9; </div>
}
.tableClass1 td {
border-bottom: 1px solid #d9d9d9; <div class="empInfoDiv" >
border-right: 1px solid #d9d9d9; <font size="2">
font-size: 14px; <b><xsl:value-of select="tran_date"/></b>
line-height: 18px; </font>
padding: 5px; </div>
}
</style> </td>
</head> </tr>
<body> &#160;
<input type="hidden" value="salesreturn_retn" name="OBJ_NAME" id="OBJ_NAME" /> <tr>
<input type="hidden" value="2" name="PAGE_CONTEXT" id="PAGE_CONTEXT" /> <td class="tLabelDataD3" width="50%" style="text-align:left;" >
<input type="hidden" value="1" name="OBJ_CONTEXT" id="OBJ_CONTEXT" /> <font size="2">
<form name="SalesReturn"> Site :
<table cellSpacing="0" cellPadding="0" width="100%" border="0"> <xsl:for-each select="//Detail1">
<tbody> <b><xsl:value-of select="site_descr" />&#160;
<tr> (<xsl:value-of select="site_code" />)</b>
<td colSpan="4" class="editDisplayColumnClass"> </xsl:for-each>
<font size="4">
Sales Return </font>
</font>
</td> </td>
</tr> <td NOWRAP="TRUE" class="tLabelDataD3" width="50%" style="text-align:right;">
</tbody> <font size="2">
</table> Customer :
<xsl:for-each select="//Detail1"> <b><xsl:value-of select="cust_name" />&#160;
<table class="tableClass tbletopbrd" cellSpacing="0" cellPadding="0" width="100%" border="0"> (<xsl:value-of select="cust_code" />)</b>
<TBODY>
<xsl:variable name="dbID"> </font>
<xsl:value-of select="@dbID" />
</xsl:variable> </td>
<xsl:variable name="wf_status"> </tr>
<xsl:value-of select="wf_status" /> </TABLE>
</xsl:variable> </td>
<xsl:variable name="tran_id"> </tr>
<xsl:value-of select="tran_id" /> <br/>
</xsl:variable> <tr>
<xsl:variable name="tran_date"> <td colspan="3">
<xsl:value-of select="tran_date" /> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tTitleD" >
</xsl:variable> <tr>
<xsl:variable name="claim_date"> <td class="cellttl1">Delivery to : </td>
<xsl:value-of select="claim_date" /> <td class="tLabelDataD1" NOWRAP="TRUE" style="text-align:left">
</xsl:variable> <xsl:value-of select="cust_name__dlv"/>&#160;
<xsl:variable name="item_code"> (<xsl:value-of select="cust_code__dlv"/>)<br/>
<xsl:value-of select="item_code" /> </td>
</xsl:variable> </tr>
<xsl:variable name="descr"> <tr>
<xsl:value-of select="descr" /> <td class="cellttl1">Reason : </td>
</xsl:variable> <td class="tLabelDataD1" NOWRAP="TRUE" style="text-align:left">
<xsl:variable name="reas_code"> <xsl:for-each select="//Detail1">
<xsl:value-of select="reas_code" /> <xsl:value-of select="reason_descr" />&#160;
</xsl:variable> (<xsl:value-of select="reas_code" />)
<xsl:variable name="reason_descr"> </xsl:for-each>
<xsl:value-of select="reason_descr" /> </td>
</xsl:variable> </tr>
<xsl:variable name="item_ser">
<xsl:value-of select="item_ser" /> <tr>
</xsl:variable> <td class="cellttl1">Return option : </td>
<xsl:variable name="itemser_descr"> <td class="tLabelDataD1" NOWRAP="TRUE" style="text-align:left">
<xsl:value-of select="itemser_descr" /> <xsl:choose>
</xsl:variable> <xsl:when test="ret_opt= 'R' ">
<xsl:variable name="cust_code"> Replaced
<xsl:value-of select="cust_code" /> </xsl:when>
</xsl:variable> <xsl:when test="ret_opt='C' ">
<xsl:variable name="cust_name"> Credit Note
<xsl:value-of select="cust_name" /> </xsl:when>
</xsl:variable> <xsl:when test="ret_opt='D' ">
<xsl:variable name="site_code"> Debit Note (Replacement)
<xsl:value-of select="site_code" /> </xsl:when>
</xsl:variable> </xsl:choose>
<xsl:variable name="site_descr"> </td>
<xsl:value-of select="site_descr" /> </tr>
</xsl:variable> <tr>
<xsl:variable name="invoice_id"> <td class="cellttl1">Item series : </td>
<xsl:value-of select="invoice_id" /> <td class="tLabelDataD1" NOWRAP="TRUE" style="text-align:left">
</xsl:variable> <xsl:value-of select= "item_ser"/>
<xsl:variable name="cust_code__dlv"> </td>
<xsl:value-of select="cust_code__dlv" /> </tr>
</xsl:variable> <tr>
<xsl:variable name="cust_name__dlv"> <td class="cellttl1">Return reference : </td>
<xsl:value-of select="cust_name__dlv" /> <td class="tLabelDataD1" NOWRAP="TRUE" style="text-align:left">
</xsl:variable> <xsl:value-of select="ret_ref" />
<xsl:variable name="ret_opt"> </td>
<xsl:value-of select="ret_opt" /> </tr>
</xsl:variable> <!--<tr>
<xsl:variable name="full_ret"> <td class="cellttl1">Outstanding amount : </td>
<xsl:value-of select="full_ret" /> <td class="tLabelDataD1" NOWRAP="TRUE" style="text-align:left">
</xsl:variable> <xsl:value-of select="os_amt" />
<xsl:variable name="ret_ref"> </td>
<xsl:value-of select="ret_ref" /> </tr>
</xsl:variable> <tr>
<xsl:variable name="site_code__dlv"> <td class="cellttl1">Overdue amount : </td>
<xsl:value-of select="site_code__dlv" /> <td class="tLabelDataD1" NOWRAP="TRUE" style="text-align:left">
</xsl:variable> <xsl:value-of select="ovos_amt" />
<xsl:variable name="dlv_location"> </td>
<xsl:value-of select="dlv_location" /> </tr>-->
</xsl:variable> </table>
<xsl:variable name="remarks"> </td>
<xsl:value-of select="remarks" /> </tr>
</xsl:variable> </TABLE>
<xsl:variable name="process_fee"> </xsl:for-each>
<xsl:value-of select="process_fee" /> <br/><br/>
</xsl:variable> <table class="tableClass" cellSpacing="0" cellPadding="0" width="100%" border="0">
<TR> <tbody>
<td class="editDisplayClass" width="50%"> <xsl:for-each select="//Detail1">
<font face="Times New Roman"> <tr border="1">
<font size="2"> <td class="editDisplayheaderClass">
<strong>Ref. Invoice Id : </strong> <font face="Times New Roman" size="2">Sr no</font>
</font> </td>
<font size="2"> <td class="editDisplayheaderClass">
<xsl:choose> <font face="Times New Roman" size="2">Item</font>
<xsl:when test="normalize-space($invoice_id)= ''"> </td>
NA <td class="editDisplayheaderClass">
</xsl:when> <font face="Times New Roman" size="2">Batch no</font>
<xsl:otherwise> </td>
<xsl:value-of select="invoice_id" /> <td class="editDisplayheaderClass">
</xsl:otherwise> <font face="Times New Roman" size="2">Quantity</font>
</xsl:choose> </td>
</font> <td class="editDisplayheaderClass">
</font> <font face="Times New Roman" size="2">Unit</font>
</td> </td>
<td class="editDisplayClass" style="text-align: right;" width="50%"> <td class="editDisplayheaderClass">
<font face="Times New Roman"> <font face="Times New Roman" size="2">Rate<br/>(<xsl:value-of select="curr_code"/>)</font>
<font size="2"> </td>
<b>Claim Date : </b> <td class="editDisplayheaderClass">
<xsl:value-of select="claim_date" /> <font face="Times New Roman" size="2">Discount<br/>(<xsl:value-of select="curr_code"/>)</font>
</font> </td>
</font> <td class="editDisplayheaderClass">
</td> <font face="Times New Roman" size="2">Tax amount<br/>(<xsl:value-of select="curr_code"/>)</font>
</TR> </td>
<tr> <td class="editDisplayheaderClass">
<td class="editDisplayheaderClass" <font face="Times New Roman" size="2">Net amount<br/>(<xsl:value-of select="curr_code"/>)</font>
style="text-align: center;font-size: 18px;border: 0px;padding-bottom: 0px;" colspan="2"> </td>
Sales Return No : <!--<td class="editDisplayheaderClass">
<xsl:value-of select="tran_id" /> <font face="Times New Roman" size="2">Total Amount</font>
</td> </td>
</tr> <td class="editDisplayheaderClass">
<tr> <font face="Times New Roman" size="2">Delivery Date</font>
<td class="date" style="text-align: center;border: 0px;padding-top: 0px;" width="100%" colspan="2"> </td>-->
<xsl:value-of select="tran_date"/> </tr>
</td> </xsl:for-each>
</tr> <xsl:for-each select="//Detail2">
<tr> <xsl:sort select="item_code" />
<td class="editDisplayClass"> <xsl:variable name="dbID">
<font size="2"> <xsl:value-of select="@domID" />
<strong>Site : </strong> </xsl:variable>
<xsl:value-of select="site_code" /> <xsl:variable name="line_no">
</font> <xsl:value-of select="line_no" />
</td> </xsl:variable>
<td class="editDisplayClass" style="text-align: right;"> <xsl:variable name="line_no__inv">
<font size="2"> <xsl:value-of select="line_no__inv" />
<strong>Item Series : </strong>&#160;<xsl:value-of select="item_ser" /> </xsl:variable>
</font>
</td> <tr>
</tr> <td class="editDisplayColumnClass" style = "padding: 5px;color:#555;">
<tr> <font face="Times New Roman" size="2">
<td class="editDisplayClass" colspan = "2"> <xsl:value-of select="line_no"/>
<font size="2"><strong>Customer : </strong> </font>
<xsl:value-of select="cust_code"/> </td>
<!--, <xsl:value-of select="cust_name" />--> <td class="editDisplayColumnClass" style="padding: 5px;color:#555;">
</font> <font face="Times New Roman" size="2">
</td> <xsl:for-each select="//Detail2">
</tr> <xsl:value-of select="item_descr" />&#160;
</TBODY> (<xsl:value-of select="item_code" />)
</table> </xsl:for-each>
<br></br> </font>
<table class="tableClass" cellSpacing="0" cellPadding="0" width="100%" border="0"> </td>
<tbody> <td class="editDisplayColumnClass" style="padding: 5px;color:#555;" align="right">
<tr border="1"> <font face="Times New Roman" size="2">
<td class="editDisplayheaderClass"> <xsl:for-each select="//Detail2">
<font face="Times New Roman" size="2">Return Type</font> <xsl:value-of select="lot_no" />
</td> </xsl:for-each>
<td class="editDisplayheaderClass"> </font>
<font face="Times New Roman" size="2">Adj Misc Crn</font> </td>
</td> <td class="editDisplayColumnClass" style="padding: 5px;color:#555;" align="right">
<td class="editDisplayheaderClass"> <font face="Times New Roman" size="2">
<font face="Times New Roman" size="2">Delivery Site</font> <xsl:for-each select="//Detail2">
</td> <xsl:value-of select="quantity" />
<td class="editDisplayheaderClass"> </xsl:for-each>
<font face="Times New Roman" size="2">Cust Reference</font> </font>
</td> </td>
<td class="editDisplayheaderClass"> <td class="editDisplayColumnClass" style="padding: 5px;color:#555;">
<font face="Times New Roman" size="2">Full Return</font> <font face="Times New Roman" size="2">
</td> <xsl:for-each select="//Detail2">
<td class="editDisplayheaderClass"> <xsl:value-of select="unit" />
<font face="Times New Roman" size="2">Return Option</font> </xsl:for-each>
</td> </font>
<td class="editDisplayheaderClass"> </td>
<font face="Times New Roman" size="2">Net Amount</font> <td class="editDisplayColumnClass" style="padding: 5px;color:#555;" align="right">
</td> <font face="Times New Roman" size="2">
</tr> <xsl:for-each select="//Detail2">
<tr> <!--<xsl:value-of select="rate" />-->
<td class="editDisplayColumnClass" style="padding: 5px;color:#555;"> <xsl:value-of select="format-number(rate, '##,###,###,###,###')"/>
<font face="Times New Roman" size="2"> </xsl:for-each>
<xsl:value-of select="tran_type" /> </font>
</font> </td>
</td> <td class="editDisplayColumnClass" style="padding: 5px;color:#555;" align="right">
<td class="editDisplayColumnClass" style="padding: 5px;color:#555;"> <font face="Times New Roman" size="2">
<font face="Times New Roman" size="2"> <xsl:for-each select="//Detail2">
<xsl:value-of select="adj_misc_crn" /> <!--<xsl:value-of select="discount" />-->
</font> <xsl:value-of select="format-number(discount, '##,###,###,###,###')"/>
</td> </xsl:for-each>
<td class="editDisplayColumnClass" style="padding: 5px;color:#555;"> </font>
<font face="Times New Roman" size="2"> </td>
<xsl:value-of select="site_code__dlv" /> <td class="editDisplayColumnClass" style="padding: 5px;color:#555;" align="right">
</font> <font face="Times New Roman" size="2">
</td> <xsl:for-each select="//Detail1">
<td class="editDisplayColumnClass" style="padding: 5px;color:#555;"> <xsl:value-of select="format-number(tax_amt, '##,###,###,###,###')"/>
<font face="Times New Roman" size="2"> </xsl:for-each>
<xsl:value-of select="cust_ref" /> </font>
</font> </td>
</td> <td class="editDisplayColumnClass" style = "padding: 5px;color:#555;" align="right">
<td class="editDisplayColumnClass" style="padding: 5px;color:#555;"> <font face="Times New Roman" size="2">
<font face="Times New Roman" size="2"> <xsl:value-of select="format-number(net_amt, '##,###,###,###,###')"/>
<xsl:if test="full_ret='Y'"> </font>
<label>Yes</label> </td>
</xsl:if> <!--<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;" align="right">
<xsl:if test="full_ret='N'"> <font face="Times New Roman" size="2">
<label>No</label> <xsl:for-each select="//Detail1">
</xsl:if> <xsl:value-of select="format-number(tot_amt_o, '##,###,###,###,###')"/>
</font> </xsl:for-each>
</td> </font>
<td class="editDisplayColumnClass" style="padding: 5px;color:#555;"> </td>
<font face="Times New Roman" size="2"> <td class="editDisplayColumnClass" style="padding: 5px;color:#555;">
<xsl:if test="ret_opt='R'"> <font face="Times New Roman" size="2">
<label>Replaced</label> <xsl:for-each select="//Detail2">
</xsl:if> <xsl:value-of select="dsp_date_o" />
<xsl:if test="ret_opt='C'"> </xsl:for-each>
<label>Credit Note</label> </font>
</xsl:if> </td>-->
<xsl:if test="ret_opt='D'"> </tr>
<label>Debit Note (Replacement)</label>
</xsl:if>
</font>
</td>
<td class="editDisplayColumnClass" style="padding: 5px;color:#555;"> </xsl:for-each>
<font face="Times New Roman" size="2"> </tbody>
<xsl:value-of select="format-number(net_amt,'#####0.00')" /> </table>
</font> </body>
</td> </html>
</tr> </xsl:template>
<tr>
<td class="editDisplayheaderClass" colSpan="3" width="1%" style="text-align: left;font-size: 18px;">
<font face="Times New Roman" size="2">
Customer Bill:
<xsl:value-of select="cust_code__bill" />
</font>
</td>
<td class="editDisplayheaderClass" colSpan="4" width="1%" style="text-align: left;font-size: 18px;">
<font face="Times New Roman" size="2">
Customer Dlv:
<xsl:value-of select="cust_code__dlv" />,
&#160;
<xsl:value-of select="cust_name__dlv" />
</font>
</td>
</tr>
<tr>
<td class="editDisplayheaderClass" colSpan="3" width="1%" style="text-align: left;font-size: 18px;">
<font face="Times New Roman" size="2">
Reason Code :
<xsl:value-of select="reas_code" />&#160;
<xsl:value-of select="reason_descr" />
</font>
</td>
<td class="editDisplayheaderClass" colSpan="4" width="1%" style="text-align: left;font-size: 18px;">
<font face="Times New Roman" size="2">
Return Reference :
<xsl:value-of select="ret_ref" />
</font>
</td>
</tr>
<tr>
<td class="editDisplayRemarkClass" style = "padding: 5px;" colspan = "8">
<font face="Times New Roman">
<font size="2">Remarks: <xsl:value-of select="remarks"/></font>
</font>
</td>
</tr>
</tbody>
</table>
</xsl:for-each>
<br />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="editDisplayheaderClass" width="1%">
Sales Return Details
</td>
</tr>
</table>
<table class="tableClass" cellSpacing="0" cellPadding="0" width="100%" border="0">
<tbody>
<xsl:for-each select="//Detail1">
<tr border="1">
<td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Sr No</font>
</td>
<td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Item Code</font>
</td>
<td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Description </font>
</td>
<td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Unit
</font>
</td>
<td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Quantity</font>
</td>
<td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Rate
</font>
</td>
<td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Amount
</font>
</td>
</tr>
</xsl:for-each>
<xsl:for-each select="//Detail2">
<xsl:sort select="item_code" />
<xsl:variable name="dbID">
<xsl:value-of select="@domID" />
</xsl:variable>
<xsl:variable name="line_no">
<xsl:value-of select="line_no" />
</xsl:variable>
<xsl:variable name="line_no__inv">
<xsl:value-of select="line_no__inv" />
</xsl:variable>
<xsl:variable name="invoice_id">
<xsl:value-of select="invoice_id" />
</xsl:variable>
<xsl:variable name="item_code">
<xsl:value-of select="item_code" />
</xsl:variable>
<xsl:variable name="item_descr">
<xsl:value-of select="item_descr" />
</xsl:variable>
<xsl:variable name="quantity">
<xsl:value-of select="quantity" />
</xsl:variable>
<xsl:variable name="rate">
<xsl:value-of select="rate" />
</xsl:variable>
<xsl:variable name="rate__clg">
<xsl:value-of select="rate__clg" />
</xsl:variable>
<xsl:variable name="pre_item_code">
<xsl:value-of select="preceding-sibling::Detail2[1]/item_code" />
</xsl:variable>
<tr>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;">
<font face="Times New Roman" size="2">
<xsl:value-of select="line_no"/>
</font>
</td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;">
<font face="Times New Roman" size="2">
<xsl:value-of select="item_code"/>
</font>
</td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;">
<font face="Times New Roman" size="2">
<xsl:value-of select="item_descr"/>
</font>
</td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;">
<font face="Times New Roman" size="2">
<xsl:value-of select="unit"/>
</font>
</td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;">
<font face="Times New Roman" size="2">
<xsl:value-of select="quantity"/>
</font>
</td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;">
<font face="Times New Roman" size="2">
<xsl:value-of select="rate"/>
</font>
</td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;">
<font face="Times New Roman" size="2">
<xsl:value-of select="format-number(net_amt, '##,###,###,###,###')"/>
</font>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</form>
</body>
</html>
</xsl:template>
</xsl:stylesheet> </xsl:stylesheet>
\ No newline at end of file
<?xml version='1.0' encoding='utf-8'?> <?xml version='1.0' encoding='UTF-8'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/> <xsl:template match="/">
<xsl:decimal-format NaN="0"/> <html>
<head>
<xsl:template match="/"> <link type="text/css" rel="stylesheet" href="css/workflowsign.css"></link>
<html> <link type="text/css" rel="stylesheet" href="css/expandy.css"></link>
<head> <link type="text/css" rel="stylesheet" href="css/fonts.css"/>
<style type="text/css"> <link type="text/css" rel="stylesheet" href="css/hr_portal1.css"></link>
.tTitle1
{
text-align:center;
} <style type="text/css">
.tHeaderD1
{ .tableClass {margin-bottom:10px; width:100%; background-color:#FFF;
text-align:right; /*padding:10px;*/ border-left: 1px solid #d9d9d9; border-top: 1px
} solid #d9d9d9;}
.tTitleD1 .tableClass td {border-bottom: 1px solid #d9d9d9; border-right: 1px solid
{ #d9d9d9; font-size:14px;}
text-align:center; .tbletopbrd{border-top:2px solid #5fdeb2;}
} .date {
.numberData color: #9d9ca2;
{ font-size: 11px;
text-align:right; font-weight: normal;
} }
.editDisplayClass
{readOnly:true;border :inset 1;COLOR:BLACK ;BACKGROUND:#FFFFD9; TEXT-ALIGN:left;FONT: </style>
8ptarial; width:auto;}; </head>
.editDisplayRemarkClass
{readOnly:true;border :inset 1;COLOR:black ; BACKGROUND:#FFFFD9; TEXT-ALIGN:left;FONT: <body>
7ptarial;}; <INPUT type="hidden" name="OBJ_NAME" id="OBJ_NAME" value='salesreturn_retn'/>
.editDisplayrightClass <INPUT type='hidden' name='OBJ_CONTEXT' value='1'/>
{readOnly:true;border :inset 1;COLOR:black ; TEXT-ALIGN:right;FONT:8ptarial;}; <INPUT type='hidden' name='EDIT_FLAG' value='A'/>
.editDisplayecnterClass <INPUT type='hidden' name='DOM_ID' value='{@domID}'/>
{readOnly:true;border :inset 1;COLOR:white ; <INPUT type='hidden' name='DB_ID' value='{@dbID}'/>
BACKGROUND:#5b7290;TEXT-ALIGN:center;FONT:8ptarial;};
.displayCenterClass <xsl:for-each select="//Detail1">
{readOnly:true;border :inset 1;COLOR:#DC143C; <TABLE name="main" id="main" class="tLabel" style="position:relative; width:100%; border-top: #5fdeb2 3px solid;" cellspacing="0" cellpadding="0" >
BACKGROUND:#CCCCFF;TEXT-ALIGN:center;FONT:10ptarial;}; <tr>
.displayCenterClass2 <td colspan="3" >
{readOnly:true;border :inset 1;COLOR:#0000CD; <TABLE width="100%" border="0" cellspacing="0" cellpadding="0" class="tblenew">
BACKGROUND:#E0FFFF;TEXT-ALIGN:center;FONT:10ptarial;}; <tr>
.editDisplayColumnClass{readOnly:true;color:#555; TEXT-ALIGN:left; <td class="tLabelDataD3" width="50%" style="text-align:left;" >
padding:5px; font-size:16px; font-weight:normal;} <font size="2">
.editDisplayheaderClass{readOnly:true;color:#000; TEXT-ALIGN:left; Ref. invoice id :
padding:5px; font-weight:normal; font-size:14px; <b><xsl:value-of select="invoice_id" /></b>
vertical-align:top;}
.editDisplayrightClass{readOnly:true;border :inset 1;COLOR:black ; BACKGROUND:#FFFFD9;TEXT-ALIGN:right; </font>
font-weight:normal;}
.editDisplayecnterClass{readOnly:true; color:#5fdeb2; TEXT-ALIGN:left; font-size:18px; padding:5px 0; </td>
font-weight:normal;} <td NOWRAP="TRUE" class="tLabelDataD3" width="50%" style="text-align:right;">
.editDisplayecnterClass2{readOnly:true;border :inset 1;COLOR:black ; TEXT-ALIGN:center; font-weight:normal;} <font size="2">
.editDisplayClass{background-color: transparent Full return :
!important;readOnly:true;color:#555; TEXT-ALIGN:left; padding:5px; <b><xsl:for-each select="//Detail2">
font-weight:normal; font-size:14px;} <xsl:choose>
.editDisplayecnterClass1 {readOnly:true; color:#5fdeb2; TEXT-ALIGN:left; font-size:16px; <xsl:when test="full_ret= 'Y' ">
padding:10px 0 0 0;} Yes
.editDisplayecnterClass3 {readOnly:true; color:#5fdeb2; TEXT-ALIGN:left; font-size:16px; </xsl:when>
padding:10px 0 0 0;} <xsl:when test="full_ret='N' ">
.tableClass {margin-bottom:10px; width:100%; background-color:#FFF; No
/*padding:10px;*/ border-left: 1px solid #d9d9d9; border-top: 1px </xsl:when>
solid #d9d9d9;} </xsl:choose>
.tableClass td {border-bottom: 1px solid #d9d9d9; border-right: 1px solid </xsl:for-each></b>
#d9d9d9; font-size:14px;} </font>
.tbletopbrd{border-top:2px solid #5fdeb2;}
.date { </td>
color: #9d9ca2; </tr>
font-size: 11px; <tr>
font-weight: normal; <td colspan="3" NOWRAP = "TRUE" class = "tLabelDataD3" >
}
.tableClass1 { <div class = "tLabelDataD3" >
margin-bottom: 5px; <font size="4">
width: 100%; Sales return :
background-color: #FFF; <b><xsl:value-of select="tran_id" /></b>
border-LEFT: 1px solid #d9d9d9; </font>
border-top: 1px solid #d9d9d9; </div>
}
.tableClass1 td {
border-bottom: 1px solid #d9d9d9; <div class="empInfoDiv" >
border-right: 1px solid #d9d9d9; <font size="2">
font-size: 14px; <b><xsl:value-of select="tran_date"/></b>
line-height: 18px; </font>
padding: 5px; </div>
}
</style> </td>
</head> </tr>
<body> &#160;
<input type="hidden" value="salesreturn_retn" name="OBJ_NAME" id="OBJ_NAME" /> <tr>
<input type="hidden" value="2" name="PAGE_CONTEXT" id="PAGE_CONTEXT" /> <td class="tLabelDataD3" width="50%" style="text-align:left;" >
<input type="hidden" value="1" name="OBJ_CONTEXT" id="OBJ_CONTEXT" /> <font size="2">
<form name="SalesReturn"> Site :
<table cellSpacing="0" cellPadding="0" width="100%" border="0"> <xsl:for-each select="//Detail1">
<tbody> <b><xsl:value-of select="site_descr" />&#160;
<tr> (<xsl:value-of select="site_code" />)</b>
<td colSpan="4" class="editDisplayColumnClass"> </xsl:for-each>
<font size="4">
Sales Return </font>
</font>
</td> </td>
</tr> <td NOWRAP="TRUE" class="tLabelDataD3" width="50%" style="text-align:right;">
</tbody> <font size="2">
</table> Customer :
<xsl:for-each select="//Detail1"> <b><xsl:value-of select="cust_name" />&#160;
<table class="tableClass tbletopbrd" cellSpacing="0" cellPadding="0" width="100%" border="0"> (<xsl:value-of select="cust_code" />)</b>
<TBODY>
<xsl:variable name="dbID"> </font>
<xsl:value-of select="@dbID" />
</xsl:variable> </td>
<xsl:variable name="wf_status"> </tr>
<xsl:value-of select="wf_status" /> </TABLE>
</xsl:variable> </td>
<xsl:variable name="tran_id"> </tr>
<xsl:value-of select="tran_id" /> <br/>
</xsl:variable> <tr>
<xsl:variable name="tran_date"> <td colspan="3">
<xsl:value-of select="tran_date" /> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tTitleD" >
</xsl:variable> <tr>
<xsl:variable name="claim_date"> <td class="cellttl1">Delivery to : </td>
<xsl:value-of select="claim_date" /> <td class="tLabelDataD1" style="text-align:left">
</xsl:variable> <xsl:value-of select="cust_name__dlv"/>&#160;
<xsl:variable name="item_code"> (<xsl:value-of select="cust_code__dlv"/>)<br/>
<xsl:value-of select="item_code" /> </td>
</xsl:variable> </tr>
<xsl:variable name="descr"> <tr>
<xsl:value-of select="descr" /> <td class="cellttl1">Reason : </td>
</xsl:variable> <td class="tLabelDataD1" style="text-align:left">
<xsl:variable name="reas_code"> <xsl:for-each select="//Detail1">
<xsl:value-of select="reas_code" /> <xsl:value-of select="reason_descr" />&#160;
</xsl:variable> (<xsl:value-of select="reas_code" />)
<xsl:variable name="reason_descr"> </xsl:for-each>
<xsl:value-of select="reason_descr" /> </td>
</xsl:variable> </tr>
<xsl:variable name="item_ser">
<xsl:value-of select="item_ser" /> <tr>
</xsl:variable> <td class="cellttl1">Return option : </td>
<xsl:variable name="itemser_descr"> <td class="tLabelDataD1" style="text-align:left">
<xsl:value-of select="itemser_descr" /> <xsl:choose>
</xsl:variable> <xsl:when test="ret_opt= 'R' ">
<xsl:variable name="cust_code"> Replaced
<xsl:value-of select="cust_code" /> </xsl:when>
</xsl:variable> <xsl:when test="ret_opt='C' ">
<xsl:variable name="cust_name"> Credit note
<xsl:value-of select="cust_name" /> </xsl:when>
</xsl:variable> <xsl:when test="ret_opt='D' ">
<xsl:variable name="site_code"> Debit note (replacement)
<xsl:value-of select="site_code" /> </xsl:when>
</xsl:variable> </xsl:choose>
<xsl:variable name="site_descr"> </td>
<xsl:value-of select="site_descr" /> </tr>
</xsl:variable> <tr>
<xsl:variable name="invoice_id"> <td class="cellttl1">Item series : </td>
<xsl:value-of select="invoice_id" /> <td class="tLabelDataD1" style="text-align:left">
</xsl:variable> <xsl:value-of select= "item_ser"/>
<xsl:variable name="cust_code__dlv"> </td>
<xsl:value-of select="cust_code__dlv" /> </tr>
</xsl:variable> <tr>
<xsl:variable name="cust_name__dlv"> <td class="cellttl1">Return reference : </td>
<xsl:value-of select="cust_name__dlv" /> <td class="tLabelDataD1" style="text-align:left">
</xsl:variable> <xsl:value-of select="ret_ref" />
<xsl:variable name="ret_opt"> </td>
<xsl:value-of select="ret_opt" /> </tr>
</xsl:variable> <!--<tr>
<xsl:variable name="full_ret"> <td class="cellttl1">Outstanding amount : </td>
<xsl:value-of select="full_ret" /> <td class="tLabelDataD1" NOWRAP="TRUE" style="text-align:left">
</xsl:variable> <xsl:value-of select="os_amt" />
<xsl:variable name="ret_ref"> </td>
<xsl:value-of select="ret_ref" /> </tr>
</xsl:variable> <tr>
<xsl:variable name="site_code__dlv"> <td class="cellttl1">Overdue amount : </td>
<xsl:value-of select="site_code__dlv" /> <td class="tLabelDataD1" NOWRAP="TRUE" style="text-align:left">
</xsl:variable> <xsl:value-of select="ovos_amt" />
<xsl:variable name="dlv_location"> </td>
<xsl:value-of select="dlv_location" /> </tr>-->
</xsl:variable> </table>
<xsl:variable name="remarks"> </td>
<xsl:value-of select="remarks" /> </tr>
</xsl:variable> </TABLE>
<xsl:variable name="process_fee"> </xsl:for-each>
<xsl:value-of select="process_fee" /> <br/><br/>
</xsl:variable> <table class="tableClass" cellSpacing="0" cellPadding="0" width="100%" border="0">
<TR> <tbody>
<td class="editDisplayClass" width="50%"> <xsl:for-each select="//Detail1">
<font face="Times New Roman"> <tr border="1">
<font size="2"> <td class="editDisplayheaderClass">
<strong>Ref. Invoice Id : </strong> <font face="Times New Roman" size="2">Sr no</font>
</font> </td>
<font size="2"> <td class="editDisplayheaderClass">
<xsl:choose> <font face="Times New Roman" size="2">Item</font>
<xsl:when test="normalize-space($invoice_id)= ''"> </td>
NA <td class="editDisplayheaderClass">
</xsl:when> <font face="Times New Roman" size="2">Batch no</font>
<xsl:otherwise> </td>
<xsl:value-of select="invoice_id" /> <td class="editDisplayheaderClass">
</xsl:otherwise> <font face="Times New Roman" size="2">Quantity</font>
</xsl:choose> </td>
</font> <td class="editDisplayheaderClass">
</font> <font face="Times New Roman" size="2">Unit</font>
</td> </td>
<td class="editDisplayClass" style="text-align: right;" width="50%"> <td class="editDisplayheaderClass">
<font face="Times New Roman"> <font face="Times New Roman" size="2">Rate<br/>(<xsl:value-of select="curr_code"/>)</font>
<font size="2"> </td>
<b>Claim Date : </b> <td class="editDisplayheaderClass">
<xsl:value-of select="claim_date" /> <font face="Times New Roman" size="2">Discount<br/>(<xsl:value-of select="curr_code"/>)</font>
</font> </td>
</font> <td class="editDisplayheaderClass">
</td> <font face="Times New Roman" size="2">Tax amount<br/>(<xsl:value-of select="curr_code"/>)</font>
</TR> </td>
<tr> <td class="editDisplayheaderClass">
<td class="editDisplayheaderClass" <font face="Times New Roman" size="2">Net amount<br/>(<xsl:value-of select="curr_code"/>)</font>
style="text-align: center;font-size: 18px;border: 0px;padding-bottom: 0px;" colspan="2"> </td>
Sales Return No : <!--<td class="editDisplayheaderClass">
<xsl:value-of select="tran_id" /> <font face="Times New Roman" size="2">Total Amount</font>
</td> </td>
</tr> <td class="editDisplayheaderClass">
<tr> <font face="Times New Roman" size="2">Delivery Date</font>
<td class="date" style="text-align: center;border: 0px;padding-top: 0px;" width="100%" colspan="2"> </td>-->
<xsl:value-of select="tran_date"/> </tr>
</td> </xsl:for-each>
</tr> <xsl:for-each select="//Detail2">
<tr> <xsl:sort select="item_code" />
<td class="editDisplayClass"> <xsl:variable name="dbID">
<font size="2"> <xsl:value-of select="@domID" />
<strong>Site : </strong> </xsl:variable>
<xsl:value-of select="site_code" /> <xsl:variable name="line_no">
</font> <xsl:value-of select="line_no" />
</td> </xsl:variable>
<td class="editDisplayClass" style="text-align: right;"> <xsl:variable name="line_no__inv">
<font size="2"> <xsl:value-of select="line_no__inv" />
<strong>Item Series : </strong>&#160;<xsl:value-of select="item_ser" /> </xsl:variable>
</font>
</td> <tr>
</tr> <td class="editDisplayColumnClass" style = "padding: 5px;color:#555;">
<tr> <font face="Times New Roman" size="2">
<td class="editDisplayClass" colspan = "2"> <xsl:value-of select="line_no"/>
<font size="2"><strong>Customer : </strong> </font>
<xsl:value-of select="cust_code"/> </td>
<!--, <xsl:value-of select="cust_name" />--> <td class="editDisplayColumnClass" style="padding: 5px;color:#555;">
</font> <font face="Times New Roman" size="2">
</td> <xsl:for-each select="//Detail2">
</tr> <xsl:value-of select="item_descr" />&#160;
</TBODY> (<xsl:value-of select="item_code" />)
</table> </xsl:for-each>
<br></br> </font>
<table class="tableClass" cellSpacing="0" cellPadding="0" width="100%" border="0"> </td>
<tbody> <td class="editDisplayColumnClass" style="padding: 5px;color:#555;" align="right">
<tr border="1"> <font face="Times New Roman" size="2">
<td class="editDisplayheaderClass"> <xsl:for-each select="//Detail2">
<font face="Times New Roman" size="2">Return Type</font> <xsl:value-of select="lot_no" />
</td> </xsl:for-each>
<td class="editDisplayheaderClass"> </font>
<font face="Times New Roman" size="2">Adj Misc Crn</font> </td>
</td> <td class="editDisplayColumnClass" style="padding: 5px;color:#555;" align="right">
<td class="editDisplayheaderClass"> <font face="Times New Roman" size="2">
<font face="Times New Roman" size="2">Delivery Site</font> <xsl:for-each select="//Detail2">
</td> <xsl:value-of select="quantity" />
<td class="editDisplayheaderClass"> </xsl:for-each>
<font face="Times New Roman" size="2">Cust Reference</font> </font>
</td> </td>
<td class="editDisplayheaderClass"> <td class="editDisplayColumnClass" style="padding: 5px;color:#555;">
<font face="Times New Roman" size="2">Full Return</font> <font face="Times New Roman" size="2">
</td> <xsl:for-each select="//Detail2">
<td class="editDisplayheaderClass"> <xsl:value-of select="unit" />
<font face="Times New Roman" size="2">Return Option</font> </xsl:for-each>
</td> </font>
<td class="editDisplayheaderClass"> </td>
<font face="Times New Roman" size="2">Net Amount</font> <td class="editDisplayColumnClass" style="padding: 5px;color:#555;" align="right">
</td> <font face="Times New Roman" size="2">
</tr> <xsl:for-each select="//Detail2">
<tr> <!--<xsl:value-of select="rate" />-->
<td class="editDisplayColumnClass" style="padding: 5px;color:#555;"> <xsl:value-of select="format-number(rate, '##,###,###,###,###')"/>
<font face="Times New Roman" size="2"> </xsl:for-each>
<xsl:value-of select="tran_type" /> </font>
</font> </td>
</td> <td class="editDisplayColumnClass" style="padding: 5px;color:#555;" align="right">
<td class="editDisplayColumnClass" style="padding: 5px;color:#555;"> <font face="Times New Roman" size="2">
<font face="Times New Roman" size="2"> <xsl:for-each select="//Detail2">
<xsl:value-of select="adj_misc_crn" /> <!--<xsl:value-of select="discount" />-->
</font> <xsl:value-of select="format-number(discount, '##,###,###,###,###')"/>
</td> </xsl:for-each>
<td class="editDisplayColumnClass" style="padding: 5px;color:#555;"> </font>
<font face="Times New Roman" size="2"> </td>
<xsl:value-of select="site_code__dlv" /> <td class="editDisplayColumnClass" style="padding: 5px;color:#555;" align="right">
</font> <font face="Times New Roman" size="2">
</td> <xsl:for-each select="//Detail1">
<td class="editDisplayColumnClass" style="padding: 5px;color:#555;"> <xsl:value-of select="format-number(tax_amt, '##,###,###,###,###')"/>
<font face="Times New Roman" size="2"> </xsl:for-each>
<xsl:value-of select="cust_ref" /> </font>
</font> </td>
</td> <td class="editDisplayColumnClass" style = "padding: 5px;color:#555;" align="right">
<td class="editDisplayColumnClass" style="padding: 5px;color:#555;"> <font face="Times New Roman" size="2">
<font face="Times New Roman" size="2"> <xsl:value-of select="format-number(net_amt, '##,###,###,###,###')"/>
<xsl:if test="full_ret='Y'"> </font>
<label>Yes</label> </td>
</xsl:if> <!--<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;" align="right">
<xsl:if test="full_ret='N'"> <font face="Times New Roman" size="2">
<label>No</label> <xsl:for-each select="//Detail1">
</xsl:if> <xsl:value-of select="format-number(tot_amt_o, '##,###,###,###,###')"/>
</font> </xsl:for-each>
</td> </font>
<td class="editDisplayColumnClass" style="padding: 5px;color:#555;"> </td>
<font face="Times New Roman" size="2"> <td class="editDisplayColumnClass" style="padding: 5px;color:#555;">
<xsl:if test="ret_opt='R'"> <font face="Times New Roman" size="2">
<label>Replaced</label> <xsl:for-each select="//Detail2">
</xsl:if> <xsl:value-of select="dsp_date_o" />
<xsl:if test="ret_opt='C'"> </xsl:for-each>
<label>Credit Note</label> </font>
</xsl:if> </td>-->
<xsl:if test="ret_opt='D'"> </tr>
<label>Debit Note (Replacement)</label>
</xsl:if>
</font>
</td>
<td class="editDisplayColumnClass" style="padding: 5px;color:#555;"> </xsl:for-each>
<font face="Times New Roman" size="2"> </tbody>
<xsl:value-of select="format-number(net_amt,'#####0.00')" /> </table>
</font> </body>
</td> </html>
</tr> </xsl:template>
<tr>
<td class="editDisplayheaderClass" colSpan="3" width="1%" style="text-align: left;font-size: 18px;">
<font face="Times New Roman" size="2">
Customer Bill:
<xsl:value-of select="cust_code__bill" />
</font>
</td>
<td class="editDisplayheaderClass" colSpan="4" width="1%" style="text-align: left;font-size: 18px;">
<font face="Times New Roman" size="2">
Customer Dlv:
<xsl:value-of select="cust_code__dlv" />,
&#160;
<xsl:value-of select="cust_name__dlv" />
</font>
</td>
</tr>
<tr>
<td class="editDisplayheaderClass" colSpan="3" width="1%" style="text-align: left;font-size: 18px;">
<font face="Times New Roman" size="2">
Reason Code :
<xsl:value-of select="reas_code" />&#160;
<xsl:value-of select="reason_descr" />
</font>
</td>
<td class="editDisplayheaderClass" colSpan="4" width="1%" style="text-align: left;font-size: 18px;">
<font face="Times New Roman" size="2">
Return Reference :
<xsl:value-of select="ret_ref" />
</font>
</td>
</tr>
<tr>
<td class="editDisplayRemarkClass" style = "padding: 5px;" colspan = "8">
<font face="Times New Roman">
<font size="2">Remarks: <xsl:value-of select="remarks"/></font>
</font>
</td>
</tr>
</tbody>
</table>
</xsl:for-each>
<br />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="editDisplayheaderClass" width="1%">
Sales Return Details
</td>
</tr>
</table>
<table class="tableClass" cellSpacing="0" cellPadding="0" width="100%" border="0">
<tbody>
<xsl:for-each select="//Detail1">
<tr border="1">
<td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Sr No</font>
</td>
<td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Item Code</font>
</td>
<td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Description </font>
</td>
<td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Unit
</font>
</td>
<td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Quantity</font>
</td>
<td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Rate
</font>
</td>
<td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Amount
</font>
</td>
</tr>
</xsl:for-each>
<xsl:for-each select="//Detail2">
<xsl:sort select="item_code" />
<xsl:variable name="dbID">
<xsl:value-of select="@domID" />
</xsl:variable>
<xsl:variable name="line_no">
<xsl:value-of select="line_no" />
</xsl:variable>
<xsl:variable name="line_no__inv">
<xsl:value-of select="line_no__inv" />
</xsl:variable>
<xsl:variable name="invoice_id">
<xsl:value-of select="invoice_id" />
</xsl:variable>
<xsl:variable name="item_code">
<xsl:value-of select="item_code" />
</xsl:variable>
<xsl:variable name="item_descr">
<xsl:value-of select="item_descr" />
</xsl:variable>
<xsl:variable name="quantity">
<xsl:value-of select="quantity" />
</xsl:variable>
<xsl:variable name="rate">
<xsl:value-of select="rate" />
</xsl:variable>
<xsl:variable name="rate__clg">
<xsl:value-of select="rate__clg" />
</xsl:variable>
<xsl:variable name="pre_item_code">
<xsl:value-of select="preceding-sibling::Detail2[1]/item_code" />
</xsl:variable>
<tr>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;">
<font face="Times New Roman" size="2">
<xsl:value-of select="line_no"/>
</font>
</td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;">
<font face="Times New Roman" size="2">
<xsl:value-of select="item_code"/>
</font>
</td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;">
<font face="Times New Roman" size="2">
<xsl:value-of select="item_descr"/>
</font>
</td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;">
<font face="Times New Roman" size="2">
<xsl:value-of select="unit"/>
</font>
</td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;">
<font face="Times New Roman" size="2">
<xsl:value-of select="quantity"/>
</font>
</td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;">
<font face="Times New Roman" size="2">
<xsl:value-of select="rate"/>
</font>
</td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;">
<font face="Times New Roman" size="2">
<xsl:value-of select="format-number(net_amt, '##,###,###,###,###')"/>
</font>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</form>
</body>
</html>
</xsl:template>
</xsl:stylesheet> </xsl:stylesheet>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment