Commit 2d87117b authored by abibave's avatar abibave

Request Id:W16LSER003,W16LSER006

XSL Files of Pricelist Generation and Sales Return Workflow.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@105510 ce508802-f39f-4f6c-b175-0d175dae99d5
parent cbb7d126
<?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>
<head>
<script language="Javascript" type="text/javascript" src="/ibase/webitm/js/jquery-1.10.2.js"></script>
<style type="text/css">
.tTitle1
{
text-align:center;
}
.tHeaderD1
{
text-align:right;
}
.tTitleD1
{
text-align:center;
}
.numberData
{
text-align:right;
}
.editDisplayClass
{readOnly:true;border :inset 1;COLOR:BLACK ;BACKGROUND:#FFFFD9; TEXT-ALIGN:left;FONT:
8ptarial; width:auto;};
.editDisplayRemarkClass
{readOnly:true;border :inset 1;COLOR:black ; BACKGROUND:#FFFFD9; TEXT-ALIGN:left;FONT:
7ptarial;};
.editDisplayrightClass
{readOnly:true;border :inset 1;COLOR:black ; TEXT-ALIGN:right;FONT:8ptarial;};
.editDisplayecnterClass
{readOnly:true;border :inset 1;COLOR:white ;
BACKGROUND:#5b7290;TEXT-ALIGN:center;FONT:8ptarial;};
.displayCenterClass
{readOnly:true;border :inset 1;COLOR:#DC143C;
BACKGROUND:#CCCCFF;TEXT-ALIGN:center;FONT:10ptarial;};
.displayCenterClass2
{readOnly:true;border :inset 1;COLOR:#0000CD;
BACKGROUND:#E0FFFF;TEXT-ALIGN:center;FONT:10ptarial;};
.editDisplayColumnClass{readOnly:true;color:#555; TEXT-ALIGN:left;
padding:5px; font-size:16px; font-weight:normal;}
.editDisplayheaderClass{readOnly:true;color:#000; TEXT-ALIGN:left;
padding:5px; font-weight:normal; font-size:14px;
vertical-align:top;}
.editDisplayrightClass{readOnly:true;border :inset 1;COLOR:black ; BACKGROUND:#FFFFD9;TEXT-ALIGN:right;
font-weight:normal;}
.editDisplayecnterClass{readOnly:true; color:#5fdeb2; TEXT-ALIGN:left; font-size:18px; padding:5px 0;
font-weight:normal;}
.editDisplayecnterClass2{readOnly:true;border :inset 1;COLOR:black ; TEXT-ALIGN:center; font-weight:normal;}
.editDisplayClass{background-color: transparent
!important;readOnly:true;color:#555; TEXT-ALIGN:left; padding:5px;
font-weight:normal; font-size:14px;}
.editDisplayecnterClass1 {readOnly:true; color:#5fdeb2; TEXT-ALIGN:left; font-size:16px;
padding:10px 0 0 0;}
.editDisplayecnterClass3 {readOnly:true; color:#5fdeb2; TEXT-ALIGN:left; font-size:16px;
padding:10px 0 0 0;}
.tableClass {margin-bottom:10px; width:100%; background-color:#FFF;
/*padding:10px;*/ border-left: 1px solid #d9d9d9; border-top: 1px
solid #d9d9d9;}
.tableClass td {border-bottom: 1px solid #d9d9d9; border-right: 1px solid
#d9d9d9; font-size:14px;}
.tbletopbrd{border-top:2px solid #5fdeb2;}
.date {
color: #9d9ca2;
font-size: 11px;
font-weight: normal;
}
.tableClass1 {
margin-bottom: 5px;
width: 100%;
background-color: #FFF;
border-LEFT: 1px solid #d9d9d9;
border-top: 1px solid #d9d9d9;
}
.tableClass1 td {
border-bottom: 1px solid #d9d9d9;
border-right: 1px solid #d9d9d9;
font-size: 14px;
line-height: 18px;
padding: 5px;
}
</style>
</head>
<body>
<input type="hidden" value="pricelist_tran" name="OBJ_NAME" id="OBJ_NAME" />
<input type="hidden" value="2" name="PAGE_CONTEXT" id="PAGE_CONTEXT" />
<input type="hidden" value="1" name="OBJ_CONTEXT" id="OBJ_CONTEXT" />
<form name="pricelistTran">
<table cellSpacing="0" cellPadding="0" width="100%" border="0">
<tbody>
<tr>
<td colSpan="4" class="editDisplayColumnClass">
<font size="4">
Price List Generation
</font>
</td>
</tr>
</tbody>
</table>
<xsl:for-each select="//Detail1">
<table class="tableClass tbletopbrd" cellSpacing="0" cellPadding="0" width="100%" border="0">
<TBODY>
<xsl:variable name="dbID"><xsl:value-of select="@dbID" /></xsl:variable>
<xsl:variable name="tran_id">
<xsl:value-of select="tran_id" />
</xsl:variable>
<xsl:variable name="tran_date">
<xsl:value-of select="tran_date" />
</xsl:variable>
<xsl:variable name="price_list">
<xsl:value-of select="price_list" />
</xsl:variable>
<xsl:variable name="confirmed">
<xsl:value-of select="confirmed" />
</xsl:variable>
<xsl:variable name="conf_date">
<xsl:value-of select="conf_date" />
</xsl:variable>
<xsl:variable name="emp_code__aprv">
<xsl:value-of select="emp_code__aprv" />
</xsl:variable>
<xsl:variable name="chg_date">
<xsl:value-of select="chg_date" />
</xsl:variable>
<xsl:variable name="chg_term">
<xsl:value-of select="chg_term" />
</xsl:variable>
<xsl:variable name="descr">
<xsl:value-of select="descr" />
</xsl:variable>
<xsl:variable name="employee_emp_fname">
<xsl:value-of select="employee_emp_fname" />
</xsl:variable>
<xsl:variable name="ref_no">
<xsl:value-of select="ref_no" />
</xsl:variable>
<xsl:variable name="ref_no_old">
<xsl:value-of select="ref_no_old" />
</xsl:variable>
<xsl:variable name="calc_basis">
<xsl:value-of select="calc_basis" />
</xsl:variable>
<xsl:variable name="employee_emp_mname">
<xsl:value-of select="employee_emp_mname" />
</xsl:variable>
<xsl:variable name="employee_emp_lname">
<xsl:value-of select="employee_emp_lname" />
</xsl:variable>
<xsl:variable name="remarks">
<xsl:value-of select="remarks" />
</xsl:variable>
<xsl:variable name="wf_status">
<xsl:value-of select="wf_status" />
</xsl:variable>
<TR>
<td class="editDisplayClass" width="50%">
<font face="Times New Roman">
<font size="2">
<strong>Transaction Id : </strong>
<xsl:value-of select="tran_id" />
</font>
</font>
</td>
<td class="editDisplayClass" style="text-align: right;" width="50%">
<font face="Times New Roman">
<font size="2">
<b>Date : </b>
<xsl:value-of select="tran_date" />
</font>
</font>
</td>
</TR>
<tr>
<td class="editDisplayheaderClass"
style="text-align: center;font-size: 18px;border: 0px;padding-bottom: 0px;" colspan="2">
Price List :
<xsl:value-of select="price_list" />
</td>
</tr>
<tr>
<td class="date" style="text-align: center;border: 0px;padding-top: 0px;" width="100%" colspan="2">
<xsl:value-of select="descr"/>
</td>
</tr>
<tr>
<td class="editDisplayClass">
<font size="2">
<strong>Circular No. : </strong>
<xsl:value-of select="ref_no" />
</font>
</td>
<td class="editDisplayClass" style="text-align: right;">
<font size="2">
<strong>Circular No. Old : </strong>&#160;<xsl:value-of select="ref_no_old" />
</font>
</td>
</tr>
</TBODY>
</table>
<table cellSpacing="0" cellPadding="0" width="100%" border="0">
<tbody>
<xsl:variable name="dbID"><xsl:value-of select="@dbID" /></xsl:variable>
<tr>
<td class="editDisplayRemarkClass" style = "padding: 5px;" colspan = "8">
<font face="Times New Roman">
<font size="3">Remarks: <INPUT TYPE="text" style="width: 89%;" ID="Detail1.{normalize-space($dbID)}.remarks" NAME="Detail1.{normalize-space($dbID)}.remarks" ISCHANGED="false" onfocus="gotFocus(this)" onblur="gotBlur(this);maxChar(this,120)" value="{remarks}" isReq="false" size="100%" SRVCALLONCHANGE="false" /></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%">
Item 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">Min. Quantity</font>
</td>
<td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Max. 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">Rate Type</font>
</td>
<td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Effective from</font>
</td>
<td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Valid Upto</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="lot_no__from">
<xsl:value-of select="lot_no__from" />
</xsl:variable>
<xsl:variable name="lot_no__to">
<xsl:value-of select="lot_no__to" />
</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="max_rate">
<xsl:value-of select="max_rate" />
</xsl:variable>
<xsl:variable name="unit">
<xsl:value-of select="unit" />
</xsl:variable>
<xsl:variable name="rate">
<xsl:value-of select="rate" />
</xsl:variable>
<xsl:variable name="rate_type">
<xsl:value-of select="rate_type" />
</xsl:variable>
<xsl:variable name="min_rate">
<xsl:value-of select="min_rate" />
</xsl:variable>
<xsl:variable name="eff_from">
<xsl:value-of select="eff_from" />
</xsl:variable>
<xsl:variable name="valid_upto">
<xsl:value-of select="valid_upto" />
</xsl:variable>
<xsl:variable name="min_qty">
<xsl:value-of select="min_qty" />
</xsl:variable>
<xsl:variable name="max_qty">
<xsl:value-of select="max_qty" />
</xsl:variable>
<xsl:variable name="chg_ref_no">
<xsl:value-of select="chg_ref_no" />
</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;" align="right">
<font face="Times New Roman" size="2">
<xsl:value-of select="min_qty"/>
</font>
</td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;" align="right">
<font face="Times New Roman" size="2">
<xsl:value-of select="max_qty"/>
</font>
</td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;" align="right">
<font face="Times New Roman" size="2">
<xsl:value-of select="rate"/>
</font>
</td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;" align="left">
<font face="Times New Roman" size="2">
<xsl:choose>
<xsl:when test="rate_type = 'F'">
Fixed
</xsl:when>
<xsl:otherwise>
Percentage
</xsl:otherwise>
</xsl:choose>
</font>
</td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;" align="left">
<font face="Times New Roman" size="2">
<xsl:value-of select="eff_from"/>
</font>
</td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;" align="left">
<font face="Times New Roman" size="2">
<xsl:value-of select="valid_upto"/>
</font>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</form>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
\ No newline at end of file
<?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>
<head>
<script language="Javascript" type="text/javascript" src="/ibase/webitm/js/jquery-1.10.2.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/ITMWizardCalendar.js"></script>
<SCRIPT language="Javascript" type="text/javascript" src="/ibase/webitm/js/ValidateDate.js"></SCRIPT>
<style type="text/css">
.tTitle1
{
text-align:center;
}
.tHeaderD1
{
text-align:right;
}
.tTitleD1
{
text-align:center;
}
.numberData
{
text-align:right;
}
.editDisplayClass
{readOnly:true;border :inset 1;COLOR:BLACK ;BACKGROUND:#FFFFD9; TEXT-ALIGN:left;FONT:
8ptarial; width:auto;};
.editDisplayRemarkClass
{readOnly:true;border :inset 1;COLOR:black ; BACKGROUND:#FFFFD9; TEXT-ALIGN:left;FONT:
7ptarial;};
.editDisplayrightClass
{readOnly:true;border :inset 1;COLOR:black ; TEXT-ALIGN:right;FONT:8ptarial;};
.editDisplayecnterClass
{readOnly:true;border :inset 1;COLOR:white ;
BACKGROUND:#5b7290;TEXT-ALIGN:center;FONT:8ptarial;};
.displayCenterClass
{readOnly:true;border :inset 1;COLOR:#DC143C;
BACKGROUND:#CCCCFF;TEXT-ALIGN:center;FONT:10ptarial;};
.displayCenterClass2
{readOnly:true;border :inset 1;COLOR:#0000CD;
BACKGROUND:#E0FFFF;TEXT-ALIGN:center;FONT:10ptarial;};
.editDisplayColumnClass{readOnly:true;color:#555; TEXT-ALIGN:left;
padding:5px; font-size:16px; font-weight:normal;}
.editDisplayheaderClass{readOnly:true;color:#000; TEXT-ALIGN:left;
padding:5px; font-weight:normal; font-size:14px;
vertical-align:top;}
.editDisplayrightClass{readOnly:true;border :inset 1;COLOR:black ; BACKGROUND:#FFFFD9;TEXT-ALIGN:right;
font-weight:normal;}
.editDisplayecnterClass{readOnly:true; color:#5fdeb2; TEXT-ALIGN:left; font-size:18px; padding:5px 0;
font-weight:normal;}
.editDisplayecnterClass2{readOnly:true;border :inset 1;COLOR:black ; TEXT-ALIGN:center; font-weight:normal;}
.editDisplayClass{background-color: transparent
!important;readOnly:true;color:#555; TEXT-ALIGN:left; padding:5px;
font-weight:normal; font-size:14px;}
.editDisplayecnterClass1 {readOnly:true; color:#5fdeb2; TEXT-ALIGN:left; font-size:16px;
padding:10px 0 0 0;}
.editDisplayecnterClass3 {readOnly:true; color:#5fdeb2; TEXT-ALIGN:left; font-size:16px;
padding:10px 0 0 0;}
.tableClass {margin-bottom:10px; width:100%; background-color:#FFF;
/*padding:10px;*/ border-left: 1px solid #d9d9d9; border-top: 1px
solid #d9d9d9;}
.tableClass td {border-bottom: 1px solid #d9d9d9; border-right: 1px solid
#d9d9d9; font-size:14px;}
.tbletopbrd{border-top:2px solid #5fdeb2;}
.date {
color: #9d9ca2;
font-size: 11px;
font-weight: normal;
}
.tableClass1 {
margin-bottom: 5px;
width: 100%;
background-color: #FFF;
border-LEFT: 1px solid #d9d9d9;
border-top: 1px solid #d9d9d9;
}
.tableClass1 td {
border-bottom: 1px solid #d9d9d9;
border-right: 1px solid #d9d9d9;
font-size: 14px;
line-height: 18px;
padding: 5px;
}
</style>
<script>
function maxChar(obj,len)
{
if(obj.value.length > len)
{
obj.focus();
alert("Enter up to "+len+" Characters only");
return false;
}
}
</script>
</head>
<body>
<input type="hidden" value="salesreturn_retn" name="OBJ_NAME" id="OBJ_NAME" />
<input type="hidden" value="2" name="PAGE_CONTEXT" id="PAGE_CONTEXT" />
<input type="hidden" value="1" name="OBJ_CONTEXT" id="OBJ_CONTEXT" />
<form name="SalesReturn">
<table cellSpacing="0" cellPadding="0" width="100%" border="0">
<tbody>
<tr>
<td colSpan="4" class="editDisplayColumnClass">
<font size="4">
Sales Return
</font>
</td>
</tr>
</tbody>
</table>
<xsl:for-each select="//Detail1">
<table class="tableClass tbletopbrd" cellSpacing="0" cellPadding="0" width="100%" border="0">
<TBODY>
<xsl:variable name="dbID"><xsl:value-of select="@dbID" /></xsl:variable>
<xsl:variable name="wf_status">
<xsl:value-of select="wf_status" />
</xsl:variable>
<xsl:variable name="tran_id">
<xsl:value-of select="tran_id" />
</xsl:variable>
<xsl:variable name="tran_date">
<xsl:value-of select="tran_date" />
</xsl:variable>
<xsl:variable name="claim_date">
<xsl:value-of select="claim_date" />
</xsl:variable>
<xsl:variable name="item_code">
<xsl:value-of select="item_code" />
</xsl:variable>
<xsl:variable name="descr">
<xsl:value-of select="descr" />
</xsl:variable>
<xsl:variable name="reas_code">
<xsl:value-of select="reas_code" />
</xsl:variable>
<xsl:variable name="reason_descr">
<xsl:value-of select="reason_descr" />
</xsl:variable>
<xsl:variable name="item_ser">
<xsl:value-of select="item_ser" />
</xsl:variable>
<xsl:variable name="itemser_descr">
<xsl:value-of select="itemser_descr" />
</xsl:variable>
<xsl:variable name="cust_code">
<xsl:value-of select="cust_code" />
</xsl:variable>
<xsl:variable name="cust_name">
<xsl:value-of select="cust_name" />
</xsl:variable>
<xsl:variable name="site_code">
<xsl:value-of select="site_code" />
</xsl:variable>
<xsl:variable name="site_descr">
<xsl:value-of select="site_descr" />
</xsl:variable>
<xsl:variable name="invoice_id">
<xsl:value-of select="invoice_id" />
</xsl:variable>
<xsl:variable name="cust_code__dlv">
<xsl:value-of select="cust_code__dlv" />
</xsl:variable>
<xsl:variable name="cust_name__dlv">
<xsl:value-of select="cust_name__dlv" />
</xsl:variable>
<xsl:variable name="ret_opt">
<xsl:value-of select="ret_opt" />
</xsl:variable>
<xsl:variable name="full_ret">
<xsl:value-of select="full_ret" />
</xsl:variable>
<xsl:variable name="ret_ref">
<xsl:value-of select="ret_ref" />
</xsl:variable>
<xsl:variable name="site_code__dlv">
<xsl:value-of select="site_code__dlv" />
</xsl:variable>
<xsl:variable name="dlv_location">
<xsl:value-of select="dlv_location" />
</xsl:variable>
<xsl:variable name="remarks">
<xsl:value-of select="remarks" />
</xsl:variable>
<xsl:variable name="process_fee">
<xsl:value-of select="process_fee" />
</xsl:variable>
<TR>
<td class="editDisplayClass" width="50%">
<font face="Times New Roman">
<font size="2">
<strong>Ref. Invoice Id : </strong>
</font>
<font size="2">
<xsl:choose>
<xsl:when test="normalize-space($invoice_id)= ''">
NA
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="invoice_id" />
</xsl:otherwise>
</xsl:choose>
</font>
</font>
</td>
<td class="editDisplayClass" style="text-align: right;" width="50%">
<font face="Times New Roman">
<font size="2">
<b>Claim Date : </b>
<xsl:value-of select="claim_date" />
</font>
</font>
</td>
</TR>
<tr>
<td class="editDisplayheaderClass"
style="text-align: center;font-size: 18px;border: 0px;padding-bottom: 0px;" colspan="2">
Sales Return No :
<xsl:value-of select="tran_id" />
</td>
</tr>
<tr>
<td class="date" style="text-align: center;border: 0px;padding-top: 0px;" width="100%" colspan="2">
<xsl:value-of select="tran_date"/>
</td>
</tr>
<tr>
<td class="editDisplayClass">
<font size="2">
<strong>Site : </strong>
<xsl:value-of select="site_code" />
</font>
</td>
<td class="editDisplayClass" style="text-align: right;">
<font size="2">
<strong>Item Series : </strong>&#160;<xsl:value-of select="item_ser" />
</font>
</td>
</tr>
</TBODY>
</table>
<br></br>
<table class="tableClass" cellSpacing="0" cellPadding="0" width="100%" border="0">
<tbody>
<xsl:variable name="dbID"><xsl:value-of select="@dbID" /></xsl:variable>
<tr border="1">
<td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Return Type</font>
</td>
<td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Adj Misc Crn</font>
</td>
<td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Delivery Site</font>
</td>
<td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Full Return</font>
</td>
<td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Return Option</font>
</td>
<td class="editDisplayheaderClass">
<font face="Times New Roman" size="2">Net Amount</font>
</td>
</tr>
<tr>
<td class="editDisplayColumnClass" style="padding: 5px;color:#555;">
<font face="Times New Roman" size="2">
<xsl:value-of select="tran_type" />
</font>
</td>
<td class="editDisplayColumnClass" style="padding: 5px;color:#555;">
<font face="Times New Roman" size="2">
<xsl:value-of select="adj_misc_crn" />
</font>
</td>
<td class="editDisplayColumnClass" style="padding: 5px;color:#555;">
<font face="Times New Roman" size="2">
<xsl:value-of select="site_code__dlv" />
</font>
</td>
<td class="editDisplayColumnClass" style="padding: 5px;color:#555;">
<font face="Times New Roman" size="2">
<xsl:if test="full_ret='Y'">
<label>Yes</label>
</xsl:if>
<xsl:if test="full_ret='N'">
<label>No</label>
</xsl:if>
</font>
</td>
<td class="editDisplayColumnClass" style="padding: 5px;color:#555;">
<font face="Times New Roman" size="2">
<xsl:if test="ret_opt='R'">
<label>Replaced</label>
</xsl:if>
<xsl:if test="ret_opt='C'">
<label>Credit Note</label>
</xsl:if>
<xsl:if test="ret_opt='D'">
<label>Debit Note (Replacement)</label>
</xsl:if>
</font>
</td>
<td class="editDisplayColumnClass" style="padding: 5px;color:#555;" align="right">
<font face="Times New Roman" size="2">
<xsl:value-of select="format-number(net_amt,'#####0.00')" />
</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">
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="6" 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="3" 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: <INPUT TYPE="text" style="width: 89%;" ID="Detail1.{normalize-space($dbID)}.remarks" NAME="Detail1.{normalize-space($dbID)}.remarks" ISCHANGED="false" onfocus="gotFocus(this)" onblur="gotBlur(this);maxChar(this,120)" value="{remarks}" isReq="false" size="100%" SRVCALLONCHANGE="false" /></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;" align="right">
<font face="Times New Roman" size="2">
<xsl:value-of select="quantity"/>
</font>
</td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;" align="right">
<font face="Times New Roman" size="2">
<xsl:value-of select="rate"/>
</font>
</td>
<td class="editDisplayColumnClass" style = "padding: 5px;color:#555;" align="right">
<font face="Times New Roman" size="2">
<xsl:value-of select="format-number(net_amt, '##,###,###,###,###')"/>
</font>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</form>
<!--<script>
var _parent = window.parent;
var refId = document.getElementById("REF_ID").value;
var name = "Detail1."+refId+".remarks";
if (_parent) {
var rejButton = _parent.document.getElementById("e12signDtlGen-reject");
var aprvButton = _parent.document.getElementById("e12signDtlGen-approve");
if (aprvButton) {
aprvButton.addEventListener("click", checkRemarksValue);
}
if (rejButton) {
rejButton.addEventListener("click", checkRemarksValue);
}
}
function checkRemarksValue() {
var remarks = document.getElementById(name).value;
if(!remarks){
alert("Please enter Remarks!");
document.getElementById(name).focus();
}
}
</script>
--></body>
</html>
</xsl:template>
</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