Commit 7be2b763 authored by smanohar's avatar smanohar

mfg date and exp date added in detail

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@198539 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 02a958a8
......@@ -3,214 +3,616 @@
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<head>
<link type="text/css" rel="stylesheet" href="/ibase/webitm/css/Standard/default.css"/>
<link type="text/css" rel="stylesheet" href="/ibase/webitm/css/theme/galaxy-theme.css"/>
<link type="text/css" rel="stylesheet" href="/ibase/webitm/css/htmlWizard.css"/>
<style>
.previewContainer
{
overflow: auto !important;
position: relative !important;
zoom: 1 !important;
<!-- height: 370px !important; -->
}
input[type=text]{
width: 100%;
}
</style>
<head>
<link rel="stylesheet" type="text/css" href="/ibase/webitm/css/summary.css" />
</head>
<body class='headerDetailBody'>
<table border="0" width="100%" height="2%" class="header_td" cellpadding="0" cellspacing="0" style="background-color: #f7f8fa;border-bottom: #6cf 3px solid">
<tr>
<div class='contentHeaderLbl'><img src="/ibase/images/menuImages/web/Dailyactivityreport.png" onerror=" this.src= '/ibase/images/menuImages/errMenu.png' " style="position: absolute; margin-left: -20px;margin-top:9px; height: 20px; width: 20px;"/>
<td class="header_main" nowrap="true" align="left" valign="middle" style="padding-left: 10px;font-size:16px;" width="2%" >
Header Details:
</td>
</div>
</tr>
</table>
<form id="detail" METHOD="POST">
<xsl:for-each select="//Detail1">
<xsl:variable name="sord_no">
<xsl:value-of select="sord_no"></xsl:value-of>
</xsl:variable>
<xsl:variable name="tran_id">
<xsl:value-of select="tran_id"></xsl:value-of>
</xsl:variable>
<xsl:variable name="tran_date">
<xsl:value-of select="tran_date"></xsl:value-of>
</xsl:variable>
<xsl:variable name="site_descr">
<xsl:value-of select="site_descr"></xsl:value-of>
</xsl:variable>
<xsl:variable name="reas_code">
<xsl:value-of select="reas_code"></xsl:value-of>
</xsl:variable>
<xsl:variable name="reason_descr">
<xsl:value-of select="reason_descr"></xsl:value-of>
</xsl:variable>
<xsl:variable name="emp_code__aprv">
<xsl:value-of select="emp_code__aprv"></xsl:value-of>
</xsl:variable>
<xsl:variable name="tran_type">
<xsl:value-of select="tran_type"></xsl:value-of>
</xsl:variable>
<xsl:variable name="price_list">
<xsl:value-of select="price_list"></xsl:value-of>
</xsl:variable>
<xsl:variable name="tax_amt">
<xsl:value-of select="tax_amt"></xsl:value-of>
</xsl:variable>
<xsl:variable name="eff_net_amt">
<xsl:value-of select="eff_net_amt"></xsl:value-of>
</xsl:variable>
<xsl:variable name="cust_code">
<xsl:value-of select="cust_code"></xsl:value-of>
</xsl:variable>
<xsl:variable name="cust_name">
<xsl:value-of select="cust_name"></xsl:value-of>
</xsl:variable>
<xsl:variable name="due_date">
<xsl:value-of select="due_date"></xsl:value-of>
</xsl:variable>
<xsl:variable name="dlv_add1">
<xsl:value-of select="dlv_add1"></xsl:value-of>
</xsl:variable>
<xsl:variable name="site_code">
<xsl:value-of select="site_code"></xsl:value-of>
</xsl:variable>
<xsl:variable name="dlv_city">
<xsl:value-of select="dlv_city"></xsl:value-of>
</xsl:variable>
<xsl:variable name="trans_mode">
<xsl:value-of select="trans_mode"></xsl:value-of>
</xsl:variable>
<xsl:variable name="ret_opt">
<xsl:value-of select="ret_opt"></xsl:value-of>
</xsl:variable>
<table id="activityTable" Class="editDisplayColumnClass" border="0" cellSpacing="0" width="100%" cellPadding="5">
<tr>
<td>
<tbody>
<tr>
<td class="td_rightAlign" nowrap="true">Sales Return No:</td>
<td class="td_leftAlign"><input type="text" style="border:none;" class="input_editable" value="{$tran_id}" readonly="true" /></td>
<td class="td_rightAlign" nowrap="true">Return Date:</td>
<td class="td_leftAlign"><input type="text" style="border:none;" class="input_editable" value="{$tran_date}" readonly="true" /></td>
<td class="td_rightAlign" nowrap="true">Return Type:</td>
<td class="td_leftAlign"><input type="text" style="border:none;" value ="{$tran_type}" class="input_editable" readonly="true"/></td>
<body>
<div class="sum_Container">
<div class="sum_Content">
<form id="detail" METHOD="POST" style="margin-bottom:0;">
<div class="sum_Header ">
<img src="/ibase/webitm/images/Summary/Header.png" class="sum_Icon pdLeft_16"></img>
Sales Return
</div>
<xsl:for-each select="//Detail1">
<xsl:variable name="tran_id">
<xsl:value-of select="tran_id"></xsl:value-of>
</xsl:variable>
<xsl:variable name="tran_date">
<xsl:value-of select="tran_date"></xsl:value-of>
</xsl:variable>
<xsl:variable name="invoice_id">
<xsl:value-of select="invoice_id"></xsl:value-of>
</xsl:variable>
<xsl:variable name="cust_code">
<xsl:value-of select="cust_code"></xsl:value-of>
</xsl:variable>
<xsl:variable name="cust_name">
<xsl:value-of select="cust_name"></xsl:value-of>
</xsl:variable>
<xsl:variable name="tran_type">
<xsl:value-of select="tran_type"></xsl:value-of>
</xsl:variable>
<xsl:variable name="ret_opt">
<xsl:value-of select="ret_opt"></xsl:value-of>
</xsl:variable>
<xsl:variable name="cust_ref">
<xsl:value-of select="cust_ref"></xsl:value-of>
</xsl:variable>
<xsl:variable name="claim_date">
<xsl:value-of select="claim_date"></xsl:value-of>
</xsl:variable>
<xsl:variable name="reas_code">
<xsl:value-of select="reas_code"></xsl:value-of>
</xsl:variable>
<xsl:variable name="reason_descr">
<xsl:value-of select="reason_descr"></xsl:value-of>
</xsl:variable>
<xsl:variable name="full_ret">
<xsl:value-of select="full_ret"></xsl:value-of>
</xsl:variable>
<xsl:variable name="item_ser">
<xsl:value-of select="item_ser"></xsl:value-of>
</xsl:variable>
<xsl:variable name="remarks">
<xsl:value-of select="remarks"></xsl:value-of>
</xsl:variable>
<div class="content_BG colomn_View">
<div class="content_Row">
<div class="txtlbl txtdark">Sales Return No :</div>
<div class="txtData" contentEditable="false">
<xsl:choose>
<xsl:when test="$tran_id !=''">
<xsl:value-of select="$tran_id" />
</xsl:when>
<xsl:otherwise>
<xsl:text>-</xsl:text>
</xsl:otherwise>
</xsl:choose>
</tr>
<tr>
<td class="td_rightAlign" nowrap="true">Customer Code:</td>
<td class="td_leftAlign"><input type="text" style="border:none;" class="input_editable" value="{$cust_code}" readonly="true" /></td>
<td class="td_rightAlign" nowrap="true">Customer Name:</td>
<td class="td_leftAlign" style="color: #333; background: white; text-align: left; font-size: 14px;"> <xsl:value-of select="cust_name"></xsl:value-of></td>
<td class="td_rightAlign" nowrap="true">Delivery Site:</td>
<td class="td_leftAlign"><input type="text" style="border:none;" class="input_editable" value ="{$site_descr}" readonly="true"/></td>
</tr>
<tr>
<td class="td_rightAlign" nowrap="true">Reason Code:</td>
<td class="td_leftAlign">
<input type="text" style="border:none;" value ="{$reas_code}" class="input_editable" readonly="true"/>
</td>
<td class="td_rightAlign" nowrap="true">Return Option:</td>
<td class="td_leftAlign" column-width="100px"><input type="text" style="border:none;" class="input_editable" value="{$ret_opt}" readonly="true" /></td>
<td class="td_rightAlign" nowrap="true">Approved By:</td>
<td class="td_leftAlign"><input type="text" style="border:none;" class="input_editable" value="{$emp_code__aprv}" readonly="true" /></td>
</tr>
<td class="td_rightAlign" nowrap="true">Price List:</td>
<td class="td_leftAlign"><input type="text" style="border:none;" class="input_editable" value="{$price_list}" readonly="true" /></td>
<td class="td_rightAlign" nowrap="true">Tax Amount:</td>
<td class="td_leftAlign"><input type="text" style="border:none;" class="input_editable" value="{$tax_amt}" readonly="true" /></td>
<td class="td_rightAlign" nowrap="true">Effective Amount:</td>
<td class="td_leftAlign"><input type="text" style="border:none;" class="input_editable" value="{eff_net_amt}" readonly="true" /></td>
<tr>
</div>
</div>
<div class="content_Row">
<div class="txtlbl txtdark">Return Date :</div>
<div class="txtData" contentEditable="false">
<xsl:choose>
<xsl:when test="$tran_date !=''">
<xsl:value-of select="$tran_date" />
</xsl:when>
<xsl:otherwise>
<xsl:text>-</xsl:text>
</xsl:otherwise>
</xsl:choose>
</div>
</div>
<div class="content_Row">
<div class="txtlbl txtdark">Reference Invoice Id :</div>
<div class="txtData" contentEditable="false">
<xsl:choose>
<xsl:when test="$invoice_id !=''">
<xsl:value-of select="$invoice_id" />
</xsl:when>
<xsl:otherwise>
<xsl:text>-</xsl:text>
</xsl:otherwise>
</xsl:choose>
</div>
</div>
<div class="content_Row">
<div class="txtlbl txtdark">Customer :</div>
<div class="txtData" contentEditable="false">
<xsl:choose>
<xsl:when test="$cust_name !=''">
<xsl:value-of select="$cust_code" />
( <xsl:value-of select="$cust_name" /> )
</xsl:when>
<xsl:when test="$cust_code =''">
<xsl:text>-</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$cust_code" />
</xsl:otherwise>
</xsl:choose>
</div>
</div>
<div class="content_Row">
<div class="txtlbl txtdark">Return Type :</div>
<div class="txtData" contentEditable="false">
<xsl:choose>
<xsl:when test="$tran_type !=''">
<xsl:value-of select="$tran_type" />
</xsl:when>
<xsl:otherwise>
<xsl:text>-</xsl:text>
</xsl:otherwise>
</xsl:choose>
</div>
</div>
<div class="content_Row">
<div class="txtlbl txtdark">Settlement Option :</div>
<div class="txtData" contentEditable="false">
<xsl:choose>
<xsl:when test="$ret_opt !=''">
<xsl:value-of select="$ret_opt" />
</xsl:when>
<xsl:otherwise>
<xsl:text>-</xsl:text>
</xsl:otherwise>
</xsl:choose>
</div>
</div>
<div class="content_Row">
<div class="txtlbl txtdark">Customer Reference :</div>
<div class="txtData" contentEditable="false">
<xsl:choose>
<xsl:when test="$cust_ref !=''">
<xsl:value-of select="$cust_ref" />
</xsl:when>
<xsl:otherwise>
<xsl:text>-</xsl:text>
</xsl:otherwise>
</xsl:choose>
</div>
</div>
<div class="content_Row">
<div class="txtlbl txtdark">Claim Date :</div>
<div class="txtData" contentEditable="false">
<xsl:choose>
<xsl:when test="$claim_date !=''">
<xsl:value-of select="$claim_date" />
</xsl:when>
<xsl:otherwise>
<xsl:text>-</xsl:text>
</xsl:otherwise>
</xsl:choose>
</div>
</div>
<div class="content_Row">
<div class="txtlbl txtdark">Reason :</div>
<div class="txtData" contentEditable="false">
<xsl:choose>
<xsl:when test="$reason_descr !=''">
<xsl:value-of select="$reas_code" />
( <xsl:value-of select="$reason_descr" /> )
</xsl:when>
<xsl:when test="$reas_code =''">
<xsl:text>-</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$reas_code" />
</xsl:otherwise>
</xsl:choose>
</div>
</div>
<div class="content_Row">
<div class="txtlbl txtdark">Full Return :</div>
<div class="txtData" contentEditable="false">
<xsl:choose>
<xsl:when test="$full_ret !=''">
<xsl:value-of select="$full_ret" />
</xsl:when>
<xsl:otherwise>
<xsl:text>-</xsl:text>
</xsl:otherwise>
</xsl:choose>
</tr>
<td></td>
<td></td>
</tbody>
</td>
</tr>
</table>
<table border="0" width="100%" height="2%" class="header_td" cellpadding="0" cellspacing="0" style="background-color: #f7f8fa;">
<tr>
<div class='contentHeaderLbl'><img src="/ibase/images/menuImages/web/Dailyactivityreport.png" onerror=" this.src= '/ibase/images/menuImages/errMenu.png' " style="position: absolute; margin-left: -20px;margin-top:9px; height: 20px; width: 20px;"/>
<td class="header_main" nowrap="true" align="left" valign="middle" style="padding-left: 10px;font-size:16px;" width="2%" >
Details:
</td>
</div>
</tr>
</table>
</xsl:for-each>
<table>
<tr>
<td>
<table class="headertableClass " cellspacing="0" cellpadding="0" width='100%'>
<thead class="table-head">
<tr>
<th class="tHeader" nowrap="true" >Item Code</th>
<th class="tHeader" nowrap="true" >Item Descriptionr</th>
<th class="tHeader" nowrap="true" >Quantity</th>
<th class="tHeader" nowrap="true" >Total Net Amount</th>
</tr>
</thead>
<tbody>
<xsl:for-each select="//Detail2">
<!--Changes made by Varsha D. to do not add deleted row in summary page[Start] -->
<xsl:if test="attribute/@updateFlag!='D'">
<!--Changes made by Varsha D. to do not add deleted row in summary page[End] -->
<xsl:variable name="item_descr">
<xsl:value-of select="item_descr"></xsl:value-of>
</xsl:variable>
<xsl:variable name="item_code">
<xsl:value-of select="item_code"></xsl:value-of>
</xsl:variable>
<xsl:variable name="quantity">
<xsl:value-of select="quantity"></xsl:value-of>
</xsl:variable>
<xsl:variable name="rate">
<xsl:value-of select="rate"></xsl:value-of>
</xsl:variable>
<tr class='trClass'>
<td ><input type="text" style="border:none;text-align: center;padding:5px;" value ="{$item_code}" class="input_editable" readonly="true"/></td>
<td ><input type="text" style="border:none;text-align: center;padding:5px;" value="{$item_descr}" class="input_editable" readonly="true" /></td>
<td ><input type="text" style="border:none;text-align: center;padding:5px;" value ="{$quantity}" class="input_editable" readonly="true"/></td>
<td ><input type="text" style="border:none;text-align: center;padding:5px;" value ="{$rate}" class="input_editable" readonly="true"/></td>
</tr>
</xsl:if>
</div>
</div>
<div class="content_Row">
<div class="txtlbl txtdark">Item Series :</div>
<div class="txtData" contentEditable="false">
<xsl:choose>
<xsl:when test="$item_ser !=''">
<xsl:value-of select="$item_ser" />
</xsl:when>
<xsl:otherwise>
<xsl:text>-</xsl:text>
</xsl:otherwise>
</xsl:choose>
</div>
</div>
<div class="content_Row">
<div class="txtlbl txtdark">Remarks :</div>
<div class="txtData" contentEditable="false">
<xsl:choose>
<xsl:when test="$remarks !=''">
<xsl:value-of select="$remarks" />
</xsl:when>
<xsl:otherwise>
<xsl:text>-</xsl:text>
</xsl:otherwise>
</xsl:choose>
</div>
</div>
</div>
</xsl:for-each>
<div style="overflow:auto;width:100%;">
<div class="sum_Header">
<img src="/ibase/webitm/images/Summary/Item.png" class="sum_Icon pdLeft_16"></img>
Item Details
</div>
<div class="content_BG">
<div class="table_Row">
<div class="th_Char txtdark" style="width: 4%">Line No</div>
<div class="th_Num txtdark" style="width: 4%">Invoice No</div>
<div class="th_Char txtdark" style="width: 20%;display: block;">Item</div>
<div class="th_Num txtdark" style="width: 4%">Quantity</div>
<div class="th_Char txtdark" style=" padding: 0 14px; width: 4%" >Unit</div>
<div class="th_Num txtdark" style="width: 4%">Rate</div>
<div class="cth_Char txtdark" style=" padding: 0 10px;width: 8%"> Lot No</div>
<div class="th_Char txtdark" style=" padding: 0 14px;width: 4%" >Mfg. Date</div>
<div class="th_Char txtdark" style=" padding: 0 14px;width: 4%" >Exp. Date</div>
<div class="th_Char txtdark" style=" padding: 0 14px;width: 4%" >Tax Class</div>
<div class="th_Char txtdark" style="width: 8%; display: block;">Tax Chapter</div>
<div class="th_Char txtdark" style="width: 8%; display: block;">Tax Environment</div>
<div class="th_Char txtdark" style="width: 15%; display: block;">Location</div>
<div class="th_Char txtdark" style="width: 4%">Status</div>
<div class="th_Char txtdark" style="width: 13%; display: block;">Reason</div>
</div>
<xsl:for-each select="//Detail2">
<xsl:if test="attribute/@updateFlag!='D'">
<xsl:variable name="line_no">
<xsl:value-of select="line_no"></xsl:value-of>
</xsl:variable>
<xsl:variable name="line_no__invtrace">
<xsl:value-of select="line_no__invtrace"></xsl:value-of>
</xsl:variable>
<xsl:variable name="item_code">
<xsl:value-of select="item_code"></xsl:value-of>
</xsl:variable>
<xsl:variable name="item_descr">
<xsl:value-of select="item_descr"></xsl:value-of>
</xsl:variable>
<xsl:variable name="quantity">
<xsl:value-of select="quantity"></xsl:value-of>
</xsl:variable>
<xsl:variable name="unit">
<xsl:value-of select="unit"></xsl:value-of>
</xsl:variable>
<xsl:variable name="rate">
<xsl:value-of select="rate"></xsl:value-of>
</xsl:variable>
<xsl:variable name="lot_no">
<xsl:value-of select="lot_no"></xsl:value-of>
</xsl:variable>
<xsl:variable name="tax_class">
<xsl:value-of select="tax_class"></xsl:value-of>
</xsl:variable>
<xsl:variable name="tax_chap">
<xsl:value-of select="tax_chap"></xsl:value-of>
</xsl:variable>
<xsl:variable name="tax_env">
<xsl:value-of select="tax_env"></xsl:value-of>
</xsl:variable>
<xsl:variable name="loc_code">
<xsl:value-of select="loc_code"></xsl:value-of>
</xsl:variable>
<xsl:variable name="location_descr">
<xsl:value-of select="location_descr"></xsl:value-of>
</xsl:variable>
<xsl:variable name="status">
<xsl:value-of select="status"></xsl:value-of>
</xsl:variable>
<xsl:variable name="reas_code">
<xsl:value-of select="reas_code"></xsl:value-of>
</xsl:variable>
<xsl:variable name="reason_descr">
<xsl:value-of select="reason_descr"></xsl:value-of>
</xsl:variable>
<xsl:variable name="mfg_date">
<xsl:value-of select="mfg_date"></xsl:value-of>
</xsl:variable>
<xsl:variable name="exp_date">
<xsl:value-of select="exp_date"></xsl:value-of>
</xsl:variable>
<div class="table_Row">
<div class="th_Char" style="width: 4%" contentEditable="false">
<xsl:choose>
<xsl:when test="$line_no !=''">
<xsl:value-of select="$line_no" />
</xsl:when>
<xsl:otherwise>
<xsl:text>-</xsl:text>
</xsl:otherwise>
</xsl:choose>
</div>
<div class="th_Num" style="width: 4%" contentEditable="false">
<xsl:choose>
<xsl:when test="$line_no__invtrace !=''">
<xsl:value-of select="$line_no__invtrace" />
</xsl:when>
<xsl:otherwise>
<xsl:text>-</xsl:text>
</xsl:otherwise>
</xsl:choose>
</div>
<div class="th_Char" style="width: 20%;display: block;" contentEditable="false">
<xsl:choose>
<xsl:when test="$item_descr !=''">
<xsl:value-of select="$item_code" />
( <xsl:value-of select="$item_descr" /> )
</xsl:when>
<xsl:when test="$item_code =''">
<xsl:text>-</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$item_code" />
</xsl:otherwise>
</xsl:choose>
</div>
<div class="th_Num" style="width: 4%" contentEditable="false">
<xsl:choose>
<xsl:when test="$quantity !=''">
<xsl:value-of select="$quantity" />
</xsl:when>
<xsl:otherwise>
<xsl:text>-</xsl:text>
</xsl:otherwise>
</xsl:choose>
</div>
<div class="th_Char" style=" padding: 0 14px; width: 4%" contentEditable="false">
<xsl:choose>
<xsl:when test="$unit !=''">
<xsl:value-of select="$unit" />
</xsl:when>
<xsl:otherwise>
<xsl:text>-</xsl:text>
</xsl:otherwise>
</xsl:choose>
</div>
<div class="th_Num" style="width: 4%" contentEditable="false">
<xsl:choose>
<xsl:when test="$rate !=''">
<xsl:value-of select="$rate" />
</xsl:when>
<xsl:otherwise>
<xsl:text>-</xsl:text>
</xsl:otherwise>
</xsl:choose>
</div>
<div class="th_Char" style=" padding: 0 10px;width: 8%" contentEditable="false">
<xsl:choose>
<xsl:when test="$lot_no !=''">
<xsl:value-of select="$lot_no" />
</xsl:when>
<xsl:otherwise>
<xsl:text>-</xsl:text>
</xsl:otherwise>
</xsl:choose>
</div>
<div class="th_Char" style="width: 8%; display: block;" contentEditable="false">
<xsl:choose>
<xsl:when test="$mfg_date !=''">
<xsl:value-of select="$mfg_date" />
</xsl:when>
<xsl:otherwise>
<xsl:text>-</xsl:text>
</xsl:otherwise>
</xsl:choose>
</div>
<div class="th_Char" style="width: 8%; display: block;" contentEditable="false">
<xsl:choose>
<xsl:when test="$exp_date !=''">
<xsl:value-of select="$exp_date" />
</xsl:when>
<xsl:otherwise>
<xsl:text>-</xsl:text>
</xsl:otherwise>
</xsl:choose>
</div>
<div class="th_Char" style=" padding: 0 14px;width: 4%" contentEditable="false">
<xsl:choose>
<xsl:when test="$tax_class !=''">
<xsl:value-of select="$tax_class" />
</xsl:when>
<xsl:otherwise>
<xsl:text>-</xsl:text>
</xsl:otherwise>
</xsl:choose>
</div>
<div class="th_Char" style="width: 8%; display: block;" contentEditable="false">
<xsl:choose>
<xsl:when test="$tax_chap !=''">
<xsl:value-of select="$tax_chap" />
</xsl:when>
<xsl:otherwise>
<xsl:text>-</xsl:text>
</xsl:otherwise>
</xsl:choose>
</div>
<div class="th_Char" style="width: 8%; display: block;" contentEditable="false">
<xsl:choose>
<xsl:when test="$tax_env !=''">
<xsl:value-of select="$tax_env" />
</xsl:when>
<xsl:otherwise>
<xsl:text>-</xsl:text>
</xsl:otherwise>
</xsl:choose>
</div>
<div class="th_Char" style="width: 15%; display: block;" contentEditable="false">
<xsl:choose>
<xsl:when test="$location_descr !=''">
<xsl:value-of select="$loc_code" />
( <xsl:value-of select="$location_descr" /> )
</xsl:when>
<xsl:when test="$loc_code =''">
<xsl:text>-</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$loc_code" />
</xsl:otherwise>
</xsl:choose>
</div>
<div class="th_Char" style="width: 4%" contentEditable="false">
<xsl:choose>
<xsl:when test="$status !=''">
<xsl:value-of select="$status" />
</xsl:when>
<xsl:otherwise>
<xsl:text>-</xsl:text>
</xsl:otherwise>
</xsl:choose>
</div>
<div class="th_Char" style="width: 13%; display: block;" contentEditable="false">
<xsl:choose>
<xsl:when test="$reason_descr !=''">
<xsl:value-of select="$reas_code" />
( <xsl:value-of select="$reason_descr" /> )
</xsl:when>
<xsl:when test="$reas_code !=''">
<xsl:text>-</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$reas_code" />
</xsl:otherwise>
</xsl:choose>
</div>
</div>
</xsl:if>
</xsl:for-each>
</div>
</div>
<div style="overflow:auto;width:100%">
<div class="sum_Header">
<img src="/ibase/webitm/images/Summary/Item.png" class="sum_Icon pdLeft_16"></img>
Invoice Adjustment
</div>
<div class="content_BG">
<div class="table_Row">
<div class="th_Char txtdark" style="width: 10%">Line No</div>
<div class="th_Num txtdark" style="width: 25%">Reference No</div>
<div class="th_Char txtdark" style="width: 25%;padding: 0 10px;">Reference Series</div>
<div class="th_Num txtdark" style="width: 20%;display: block;">Adjustment Amount</div>
<div class="th_Num txtdark" style="width: 20%;display: block;">Document Amount</div>
</div>
<xsl:for-each select="//Detail3">
<xsl:if test="attribute/@updateFlag!='D'">
<xsl:variable name="line_no">
<xsl:value-of select="line_no"></xsl:value-of>
</xsl:variable>
<xsl:variable name="ref_no">
<xsl:value-of select="ref_no"></xsl:value-of>
</xsl:variable>
<xsl:variable name="ref_ser">
<xsl:value-of select="ref_ser"></xsl:value-of>
</xsl:variable>
<xsl:variable name="adj_amt">
<xsl:value-of select="adj_amt"></xsl:value-of>
</xsl:variable>
<xsl:variable name="ref_bal_amt">
<xsl:value-of select="ref_bal_amt"></xsl:value-of>
</xsl:variable>
<div class="table_Row">
<div class="th_Char " style="width: 10%" contentEditable="false">
<xsl:choose>
<xsl:when test="$line_no !=''">
<xsl:value-of select="$line_no" />
</xsl:when>
<xsl:otherwise>
<xsl:text>-</xsl:text>
</xsl:otherwise>
</xsl:choose>
</div>
<div class="th_Num " style="width: 25%" contentEditable="false">
<xsl:choose>
<xsl:when test="$ref_no !=''">
<xsl:value-of select="$ref_no" />
</xsl:when>
<xsl:otherwise>
<xsl:text>-</xsl:text>
</xsl:otherwise>
</xsl:choose>
</div>
<div class="th_Char " style="width: 25%; padding: 0 10px;" contentEditable="false">
<xsl:choose>
<xsl:when test="$ref_ser !=''">
<xsl:value-of select="$ref_ser" />
</xsl:when>
<xsl:otherwise>
<xsl:text>-</xsl:text>
</xsl:otherwise>
</xsl:choose>
</div>
<div class="th_Num" style="width: 20%;display: block;" contentEditable="false">
<xsl:choose>
<xsl:when test="$adj_amt !=''">
<xsl:value-of select="$adj_amt" />
</xsl:when>
<xsl:otherwise>
<xsl:text>-</xsl:text>
</xsl:otherwise>
</xsl:choose>
</div>
<div class="th_Num" style="width: 20%;display: block;" contentEditable="false">
<xsl:choose>
<xsl:when test="$ref_bal_amt !=''">
<xsl:value-of select="$ref_bal_amt" />
</xsl:when>
<xsl:otherwise>
<xsl:text>-</xsl:text>
</xsl:otherwise>
</xsl:choose>
</div>
</div>
</xsl:if>
</xsl:for-each>
</tbody>
</table>
</td>
</tr>
</table>
</form>
</div>
</div>
</form>
</div>
</div>
</body>
</html>
</xsl:template>
......
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