Commit 8085cbd5 authored by arawankar's avatar arawankar

Added sql file and xsl file for purchase contract release component:

1.Added selection opt in obj form for form_no = 2 in sql RC_Release.sql
2.Changes made in xsl file , to make max qty as editable

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@182417 ce508802-f39f-4f6c-b175-0d175dae99d5
parent ada2f9ce
SET DEFINE OFF;
------Added by Anjali R. on[21/03/2018][To give check box on each detail row][Start]-----------
update obj_forms set selection_opt= '0' where win_name = 'w_rc_release' and form_no='2';
COMMIT;
------Added by Anjali R. on[21/03/2018][To give check box on each detail row][End]-----------
\ 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:template match='/'>
<html>
<head>
<link type='text/css' rel='stylesheet' href='/ibase/webitm/css/Standard/default.css'/>
</head>
<body id='groupDiv' class='headerDetailBody' ><FORM id="brow2" METHOD="POST" ACTION="fwd.jsp">
<INPUT type='hidden' name='OBJ_NAME' value='rc_release'/>
<INPUT type='hidden' name='PAGE_CONTEXT' value='1'/>
<INPUT type='hidden' name='OBJ_CONTEXT' value='2'/>
<INPUT type='hidden' name='EDIT_FLAG' value='V'/>
<INPUT type='hidden' name='EDIT_TMPLT' value='-1'/>
<xsl:for-each select='/DocumentRoot/group0/Header0'>
<div id='dataDivID12' class=''>
<TABLE name='main' id='main' class="tableClass" style= 'class:header_css;position:relative;top:0;width:3146;'>
<THEAD class="table-head">
<TR><th id='is_selected2' isNonSortable='true' class='thClass' STYLE =" left:2; top:2; width:17;"><Input id='selectAll2' type='checkbox' name='selectAll' onClick='checkAll(2)'/></th>
<th id='item_code' name='item_code' class='thClass' STYLE = " left:2; top:3; width:91; visibility:visible;"><nobr>Item Code<IMAGE id='item_code101' style='visibility:hidden' src='../images/Standard/upsimple.png'/> </nobr></th>
<th id='item_descr' name='item_descr' class='thClass' STYLE = " left:95; top:3; width:227; visibility:visible;"><nobr>Description<IMAGE id='item_descr1501' style='visibility:hidden' src='../images/Standard/upsimple.png'/> </nobr></th>
<th id='item' name='item' class='thClass' STYLE = " left:324; top:3; width:227; visibility:visible;"><nobr>Technical Description<IMAGE id='item1601' style='visibility:hidden' src='../images/Standard/upsimple.png'/> </nobr></th>
<th id='cc_final_qty' name='cc_final_qty' class='thClass' STYLE = " left:553; top:3; width:91; visibility:visible;"><nobr>Indent Qty<IMAGE id='cc_final_qty1701' style='visibility:hidden' src='../images/Standard/upsimple.png'/> </nobr></th>
<th id='quantity' name='quantity' class='thClass' STYLE = " left:646; top:3; width:108; visibility:visible;"><nobr>Quantity<IMAGE id='quantity1801' style='visibility:hidden' src='../images/Standard/upsimple.png'/> </nobr></th>
<th id='pending_qty' name='pending_qty' class='thClass' STYLE = " left:756; top:3; width:117; visibility:visible;"><nobr>Pending Quantity<IMAGE id='pending_qty2401' style='visibility:hidden' src='../images/Standard/upsimple.png'/> </nobr></th>
<th id='max_qty' name='max_qty' class='thClass' STYLE = " left:875; top:3; width:115; visibility:visible;"><nobr>To be Realesed Qty.<IMAGE id='max_qty2301' style='visibility:hidden' src='../images/Standard/upsimple.png'/> </nobr></th>
<th id='quantity_rel' name='quantity_rel' class='thClass' STYLE = " left:992; top:3; width:86; visibility:visible;"><nobr>Rel Qty<IMAGE id='quantity_rel1901' style='visibility:hidden' src='../images/Standard/upsimple.png'/> </nobr></th>
<th id='quantity_batch' name='quantity_batch' class='thClass' STYLE = " left:1080; top:3; width:105; visibility:visible;"><nobr>Batch Qty<IMAGE id='quantity_batch2001' style='visibility:hidden' src='../images/Standard/upsimple.png'/> </nobr></th>
<th id='rate' name='rate' class='thClass' STYLE = " left:1187; top:3; width:71; visibility:visible;"><nobr>Rate<IMAGE id='rate2101' style='visibility:hidden' src='../images/Standard/upsimple.png'/> </nobr></th>
<th id='supp_code' name='supp_code' class='thClass' STYLE = " left:1260; top:3; width:109; visibility:visible;"><nobr>Supplier<IMAGE id='supp_code2201' style='visibility:hidden' src='../images/Standard/upsimple.png'/> </nobr></th>
<th id='supp_name' name='supp_name' class='thClass' STYLE = " left:1371; top:3; width:207; visibility:visible;"><nobr>Supplier Name<IMAGE id='supp_name401' style='visibility:hidden' src='../images/Standard/upsimple.png'/> </nobr></th>
<th id='bom_code' name='bom_code' class='thClass' STYLE = " left:1580; top:3; width:86; visibility:visible;"><nobr>Bom Code<IMAGE id='bom_code501' style='visibility:hidden' src='../images/Standard/upsimple.png'/> </nobr></th>
<th id='loc_code' name='loc_code' class='thClass' STYLE = " left:1668; top:3; width:79; visibility:visible;"><nobr>Loc Code<IMAGE id='loc_code601' style='visibility:hidden' src='../images/Standard/upsimple.png'/> </nobr></th>
<th id='item_ser' name='item_ser' class='thClass' STYLE = " left:1749; top:3; width:78; visibility:visible;"><nobr>Item Ser<IMAGE id='item_ser201' style='visibility:hidden' src='../images/Standard/upsimple.png'/> </nobr></th>
<th id='site_code' name='site_code' class='thClass' STYLE = " left:1829; top:3; width:48; visibility:visible;"><nobr>Site<IMAGE id='site_code701' style='visibility:hidden' src='../images/Standard/upsimple.png'/> </nobr></th>
<th id='tax_class' name='tax_class' class='thClass' STYLE = " left:1879; top:3; width:82; visibility:visible;"><nobr>Tax Class<IMAGE id='tax_class801' style='visibility:hidden' src='../images/Standard/upsimple.png'/> </nobr></th>
<th id='tax_chap' name='tax_chap' class='thClass' STYLE = " left:1963; top:3; width:114; visibility:visible;"><nobr>Tax Chapter<IMAGE id='tax_chap901' style='visibility:hidden' src='../images/Standard/upsimple.png'/> </nobr></th>
<th id='tax_env' name='tax_env' class='thClass' STYLE = " left:2079; top:3; width:87; visibility:visible;"><nobr>Tax Env<IMAGE id='tax_env301' style='visibility:hidden' src='../images/Standard/upsimple.png'/> </nobr></th>
<th id='acct_code__dr' name='acct_code__dr' class='thClass' STYLE = " left:2168; top:3; width:77; visibility:visible;"><nobr>A/c Dr<IMAGE id='acct_code__dr1001' style='visibility:hidden' src='../images/Standard/upsimple.png'/> </nobr></th>
<th id='cctr_code__dr' name='cctr_code__dr' class='thClass' STYLE = " left:2247; top:3; width:74; visibility:visible;"><nobr>Cctr Dr<IMAGE id='cctr_code__dr1101' style='visibility:hidden' src='../images/Standard/upsimple.png'/> </nobr></th>
<th id='acct_code__cr' name='acct_code__cr' class='thClass' STYLE = " left:2323; top:3; width:79; visibility:visible;"><nobr>A/c Cr<IMAGE id='acct_code__cr1301' style='visibility:hidden' src='../images/Standard/upsimple.png'/> </nobr></th>
<th id='cctr_code__cr' name='cctr_code__cr' class='thClass' STYLE = " left:2404; top:3; width:76; visibility:visible;"><nobr>Cctr Cr<IMAGE id='cctr_code__cr1201' style='visibility:hidden' src='../images/Standard/upsimple.png'/> </nobr></th>
<th id='discount' name='discount' class='thClass' STYLE = " left:2482; top:3; width:82; visibility:visible;"><nobr>Discount<IMAGE id='discount1401' style='visibility:hidden' src='../images/Standard/upsimple.png'/> </nobr></th>
<th id='discount' name='discount' class='thClass' STYLE = " left:2566; top:3; width:86; visibility:visible;"><nobr>Disc Type<IMAGE id='discount2501' style='visibility:hidden' src='../images/Standard/upsimple.png'/> </nobr></th>
<th id='line_no' name='line_no' class='thClass' STYLE = " left:2654; top:3; width:27; visibility:visible;"><nobr>Line<IMAGE id='line_no2601' style='visibility:hidden' src='../images/Standard/upsimple.png'/> </nobr></th>
<th id='max_value' name='max_value' class='thClass' STYLE = " left:2683; top:3; width:70; visibility:visible;"><nobr>Max Value<IMAGE id='max_value2701' style='visibility:hidden' src='../images/Standard/upsimple.png'/> </nobr></th>
<th id='max_value_per' name='max_value_per' class='thClass' STYLE = " left:2755; top:3; width:132; visibility:visible;"><nobr>Max Value Percentage<IMAGE id='max_value_per2801' style='visibility:hidden' src='../images/Standard/upsimple.png'/> </nobr></th>
<th id='remarks' name='remarks' class='thClass' STYLE = " left:2889; top:3; width:227; visibility:visible;"><nobr>Remarks<IMAGE id='remarks2901' style='visibility:hidden' src='../images/Standard/upsimple.png'/> </nobr></th>
<th id='contract_no' name='contract_no' class='thClass' STYLE = " left:3118; top:3; width:73; visibility:visible;"><nobr>Contract No <IMAGE id='contract_no3001' style='visibility:hidden' src='../images/Standard/upsimple.png'/> </nobr></th>
<th id='yes_no' name='yes_no' class='thClass' STYLE = " left:3193; top:2; width:15; visibility:visible;"><nobr><IMAGE id='yes_no001' style='visibility:hidden' src='../images/Standard/upsimple.png'/> </nobr></th>
</TR>
</THEAD>
<TBODY class="table-body">
<xsl:for-each select="./Detail2[not(attribute/@updateFlag='D')]">
<TR id='{@dbID}' name='{@domID}' class='trClass' onClick='setSelection(this,2)' onContextMenu='setSelection(this);showContexMenu(event);return false;'><TD id='td_is_selected2{@domID}' name='td_is_selected2' fontCase="" align="LEFT" TABINDEX="10" TABORDER="10" MAXLENGTH="-1" POPUPEXISTS="false" protect="{is_selected/@protect}" protectExpr="" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" style="">
<NOBR>
<xsl:choose><xsl:when test="@selected='Y'">
<INPUT id='is_selected2{@domID}' type='checkbox' onClick="checkUnchek(this);" NAME="is_selected2" fontCase="" align="LEFT" TABINDEX="10" TABORDER="10" MAXLENGTH="-1" POPUPEXISTS="false" protect="{is_selected/@protect}" protectExpr="" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" style=";TYPE:String;text-align:LEFT;" checked = 'checked'></INPUT>
</xsl:when><xsl:otherwise>
<INPUT id='is_selected2{@domID}' type='checkbox' onClick="checkUnchek(this);" NAME="is_selected2" fontCase="" align="LEFT" TABINDEX="10" TABORDER="10" MAXLENGTH="-1" POPUPEXISTS="false" protect="{is_selected/@protect}" protectExpr="" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" style=";TYPE:String;text-align:LEFT;"></INPUT> </xsl:otherwise></xsl:choose></NOBR></TD>
<TD id='td_item_code{@domID}' NAME="item_code" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' style="width:91;visibility:visible;">
<NOBR>
<xsl:choose><xsl:when test="item_code/@visible='1'">
<xsl:choose><xsl:when test="item_code/@protect='1'">
<INPUT class='trEditInputClass' id='item_code{@domID}' value='{item_code}' type='text' readOnly='true' label='Item Code' NAME="item_code" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" REQUIRED='YES' style="visibility:hidden;width:91;visibility:visible;;TYPE:String;text-align:LEFT" size='91' title="Please enter a value." coltype="String">
</INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT class='trEditInputClass' id='item_code{@domID}' value='{item_code}' type='text' NAME="item_code" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" style="width:91;visibility:visible;;TYPE:String;text-align:LEFT" size='91' title="Please enter a value." coltype="String">
</INPUT>
</xsl:otherwise>
</xsl:choose></xsl:when>
<xsl:otherwise>
<xsl:value-of select='item_code'/>
</xsl:otherwise>
</xsl:choose></NOBR>
</TD>
<TD id='td_item_descr{@domID}' NAME="item_descr" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' style="width:227;visibility:visible;">
<NOBR>
<xsl:choose><xsl:when test="item_descr/@visible='1'">
<xsl:choose><xsl:when test="item_descr/@protect='1'">
<INPUT class='trEditInputClass' id='item_descr{@domID}' value='{item_descr}' type='text' readOnly='true' label='Description' NAME="item_descr" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" REQUIRED='YES' style="visibility:hidden;width:227;visibility:visible;;TYPE:String;text-align:LEFT" size='227' title="Please enter a value." coltype="String">
</INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT class='trEditInputClass' id='item_descr{@domID}' value='{item_descr}' type='text' NAME="item_descr" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" style="width:227;visibility:visible;;TYPE:String;text-align:LEFT" size='227' title="Please enter a value." coltype="String">
</INPUT>
</xsl:otherwise>
</xsl:choose></xsl:when>
<xsl:otherwise>
<xsl:value-of select='item_descr'/>
</xsl:otherwise>
</xsl:choose></NOBR>
</TD>
<TD id='td_item_tech_descr{@domID}' NAME="item_tech_descr" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" MAXLENGTH="1500" protect = '1' style="width:227;visibility:visible;">
<NOBR>
<xsl:choose><xsl:when test="item_tech_descr/@visible='1'">
<xsl:choose><xsl:when test="item_tech_descr/@protect='1'">
<INPUT class='trEditInputClass' id='item_tech_descr{@domID}' value='{item_tech_descr}' type='text' readOnly='true' label='null' NAME="item_tech_descr" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" MAXLENGTH="1500" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" REQUIRED='YES' style="visibility:hidden;width:227;visibility:visible;;TYPE:String;text-align:LEFT" size='227' title="Please enter a value." coltype="String">
</INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT class='trEditInputClass' id='item_tech_descr{@domID}' value='{item_tech_descr}' type='text' NAME="item_tech_descr" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" MAXLENGTH="1500" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" style="width:227;visibility:visible;;TYPE:String;text-align:LEFT" size='227' title="Please enter a value." coltype="String">
</INPUT>
</xsl:otherwise>
</xsl:choose></xsl:when>
<xsl:otherwise>
<xsl:value-of select='item_tech_descr'/>
</xsl:otherwise>
</xsl:choose></NOBR>
</TD>
<TD id='td_cc_final_qty{@domID}' NAME="cc_final_qty" fontCase="any" align="RIGHT" TABINDEX="32766" TABORDER="32766" protect = '1' style="width:91;visibility:visible;">
<NOBR>
<xsl:choose><xsl:when test="cc_final_qty/@visible='1'">
<xsl:choose><xsl:when test="cc_final_qty/@protect='1'">
<INPUT class='trEditInputClass' id='cc_final_qty{@domID}' value='{cc_final_qty}' type='text' readOnly='true' label='Indent Qty' NAME="cc_final_qty" fontCase="any" align="RIGHT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" REQUIRED='YES' style="visibility:hidden;width:91;visibility:visible;;TYPE:number;text-align:RIGHT" size='91' title="Please enter a value." coltype="number">
</INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT class='trEditInputClass' id='cc_final_qty{@domID}' value='{cc_final_qty}' type='text' NAME="cc_final_qty" fontCase="any" align="RIGHT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" style="width:91;visibility:visible;;TYPE:number;text-align:RIGHT" size='91' title="Please enter a value." coltype="number">
</INPUT>
</xsl:otherwise>
</xsl:choose></xsl:when>
<xsl:otherwise>
<xsl:value-of select='cc_final_qty'/>
</xsl:otherwise>
</xsl:choose></NOBR>
</TD>
<TD id='td_quantity{@domID}' NAME="quantity" fontCase="any" align="RIGHT" TABINDEX="32766" TABORDER="32766" protect = '1' style="width:108;visibility:visible;">
<NOBR>
<xsl:choose><xsl:when test="quantity/@visible='1'">
<xsl:choose><xsl:when test="quantity/@protect='1'">
<INPUT class='trEditInputClass' id='quantity{@domID}' value='{quantity}' type='text' readOnly='true' label='Quantity' NAME="quantity" fontCase="any" align="RIGHT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" REQUIRED='YES' style="visibility:hidden;width:108;visibility:visible;;TYPE:number;text-align:RIGHT" size='108' title="Please enter a value." coltype="number">
</INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT class='trEditInputClass' id='quantity{@domID}' value='{quantity}' type='text' NAME="quantity" fontCase="any" align="RIGHT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" style="width:108;visibility:visible;;TYPE:number;text-align:RIGHT" size='108' title="Please enter a value." coltype="number">
</INPUT>
</xsl:otherwise>
</xsl:choose></xsl:when>
<xsl:otherwise>
<xsl:value-of select='quantity'/>
</xsl:otherwise>
</xsl:choose></NOBR>
</TD>
<TD id='td_pending_qty{@domID}' NAME="pending_qty" fontCase="any" align="RIGHT" TABINDEX="32766" TABORDER="32766" protect = '1' style="width:117;visibility:visible;">
<NOBR>
<xsl:choose><xsl:when test="pending_qty/@visible='1'">
<xsl:choose><xsl:when test="pending_qty/@protect='1'">
<INPUT class='trEditInputClass' id='pending_qty{@domID}' value='{pending_qty}' type='text' readOnly='true' label='Pending Quantity' NAME="pending_qty" fontCase="any" align="RIGHT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" REQUIRED='YES' style="visibility:hidden;width:117;visibility:visible;;TYPE:number;text-align:RIGHT" size='117' title="Please enter a value." coltype="number">
</INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT class='trEditInputClass' id='pending_qty{@domID}' value='{pending_qty}' type='text' NAME="pending_qty" fontCase="any" align="RIGHT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" style="width:117;visibility:visible;;TYPE:number;text-align:RIGHT" size='117' title="Please enter a value." coltype="number">
</INPUT>
</xsl:otherwise>
</xsl:choose></xsl:when>
<xsl:otherwise>
<xsl:value-of select='pending_qty'/>
</xsl:otherwise>
</xsl:choose></NOBR>
</TD>
<TD id='td_max_qty{@domID}' NAME="max_qty" fontCase="any" align="RIGHT" TABINDEX="10" TABORDER="10" style="width:115;visibility:visible;">
<NOBR>
<INPUT class='trEditInputClass' id='max_qty{@domID}' value='{max_qty}' type='text' label='To be Realesed Qty.' NAME="max_qty" fontCase="any" align="RIGHT" TABINDEX="10" TABORDER="10" domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" style="visibility:hidden;width:115;visibility:visible;;TYPE:number;text-align:RIGHT" size='115' title="Please enter a value." coltype="number">
</INPUT>
</NOBR>
</TD>
<TD id='td_quantity_rel{@domID}' NAME="quantity_rel" fontCase="any" align="RIGHT" TABINDEX="32766" TABORDER="32766" protect = '1' style="width:86;visibility:visible;">
<NOBR>
<xsl:choose><xsl:when test="quantity_rel/@visible='1'">
<xsl:choose><xsl:when test="quantity_rel/@protect='1'">
<INPUT class='trEditInputClass' id='quantity_rel{@domID}' value='{quantity_rel}' type='text' readOnly='true' label='Rel Qty' NAME="quantity_rel" fontCase="any" align="RIGHT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" REQUIRED='YES' style="visibility:hidden;width:86;visibility:visible;;TYPE:number;text-align:RIGHT" size='86' title="Please enter a value." coltype="number">
</INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT class='trEditInputClass' id='quantity_rel{@domID}' value='{quantity_rel}' type='text' NAME="quantity_rel" fontCase="any" align="RIGHT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" style="width:86;visibility:visible;;TYPE:number;text-align:RIGHT" size='86' title="Please enter a value." coltype="number">
</INPUT>
</xsl:otherwise>
</xsl:choose></xsl:when>
<xsl:otherwise>
<xsl:value-of select='quantity_rel'/>
</xsl:otherwise>
</xsl:choose></NOBR>
</TD>
<TD id='td_quantity_batch{@domID}' NAME="quantity_batch" fontCase="any" align="RIGHT" TABINDEX="32766" TABORDER="32766" protect = '1' style="width:105;visibility:visible;">
<NOBR>
<xsl:choose><xsl:when test="quantity_batch/@visible='1'">
<xsl:choose><xsl:when test="quantity_batch/@protect='1'">
<INPUT class='trEditInputClass' id='quantity_batch{@domID}' value='{quantity_batch}' type='text' readOnly='true' label='Batch Qty' NAME="quantity_batch" fontCase="any" align="RIGHT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" REQUIRED='YES' style="visibility:hidden;width:105;visibility:visible;;TYPE:number;text-align:RIGHT" size='105' title="Please enter a value." coltype="number">
</INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT class='trEditInputClass' id='quantity_batch{@domID}' value='{quantity_batch}' type='text' NAME="quantity_batch" fontCase="any" align="RIGHT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" style="width:105;visibility:visible;;TYPE:number;text-align:RIGHT" size='105' title="Please enter a value." coltype="number">
</INPUT>
</xsl:otherwise>
</xsl:choose></xsl:when>
<xsl:otherwise>
<xsl:value-of select='quantity_batch'/>
</xsl:otherwise>
</xsl:choose></NOBR>
</TD>
<TD id='td_rate{@domID}' NAME="rate" fontCase="any" align="RIGHT" TABINDEX="32766" TABORDER="32766" protect = '1' style="width:71;visibility:visible;">
<NOBR>
<xsl:choose><xsl:when test="rate/@visible='1'">
<xsl:choose><xsl:when test="rate/@protect='1'">
<INPUT class='trEditInputClass' id='rate{@domID}' value='{rate}' type='text' readOnly='true' label='Rate' NAME="rate" fontCase="any" align="RIGHT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" REQUIRED='YES' style="visibility:hidden;width:71;visibility:visible;;TYPE:number;text-align:RIGHT" size='71' title="Please enter a value." coltype="number">
</INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT class='trEditInputClass' id='rate{@domID}' value='{rate}' type='text' NAME="rate" fontCase="any" align="RIGHT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" style="width:71;visibility:visible;;TYPE:number;text-align:RIGHT" size='71' title="Please enter a value." coltype="number">
</INPUT>
</xsl:otherwise>
</xsl:choose></xsl:when>
<xsl:otherwise>
<xsl:value-of select='rate'/>
</xsl:otherwise>
</xsl:choose></NOBR>
</TD>
<TD id='td_supp_code{@domID}' NAME="supp_code" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' style="width:109;visibility:visible;">
<NOBR>
<xsl:choose><xsl:when test="supp_code/@visible='1'">
<xsl:choose><xsl:when test="supp_code/@protect='1'">
<INPUT class='trEditInputClass' id='supp_code{@domID}' value='{supp_code}' type='text' readOnly='true' label='Supplier' NAME="supp_code" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" REQUIRED='YES' style="visibility:hidden;width:109;visibility:visible;;TYPE:String;text-align:LEFT" size='109' title="Please enter a value." coltype="String">
</INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT class='trEditInputClass' id='supp_code{@domID}' value='{supp_code}' type='text' NAME="supp_code" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" style="width:109;visibility:visible;;TYPE:String;text-align:LEFT" size='109' title="Please enter a value." coltype="String">
</INPUT>
</xsl:otherwise>
</xsl:choose></xsl:when>
<xsl:otherwise>
<xsl:value-of select='supp_code'/>
</xsl:otherwise>
</xsl:choose></NOBR>
</TD>
<TD id='td_supp_name{@domID}' NAME="supp_name" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' style="width:207;visibility:visible;">
<NOBR>
<xsl:choose><xsl:when test="supp_name/@visible='1'">
<xsl:choose><xsl:when test="supp_name/@protect='1'">
<INPUT class='trEditInputClass' id='supp_name{@domID}' value='{supp_name}' type='text' readOnly='true' label='Supplier Name' NAME="supp_name" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" REQUIRED='YES' style="visibility:hidden;width:207;visibility:visible;;TYPE:String;text-align:LEFT" size='207' title="Please enter a value." coltype="String">
</INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT class='trEditInputClass' id='supp_name{@domID}' value='{supp_name}' type='text' NAME="supp_name" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" style="width:207;visibility:visible;;TYPE:String;text-align:LEFT" size='207' title="Please enter a value." coltype="String">
</INPUT>
</xsl:otherwise>
</xsl:choose></xsl:when>
<xsl:otherwise>
<xsl:value-of select='supp_name'/>
</xsl:otherwise>
</xsl:choose></NOBR>
</TD>
<TD id='td_bom_code{@domID}' NAME="bom_code" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' style="width:86;visibility:visible;">
<NOBR>
<xsl:choose><xsl:when test="bom_code/@visible='1'">
<xsl:choose><xsl:when test="bom_code/@protect='1'">
<INPUT class='trEditInputClass' id='bom_code{@domID}' value='{bom_code}' type='text' readOnly='true' label='Bom Code' NAME="bom_code" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" REQUIRED='YES' style="visibility:hidden;width:86;visibility:visible;;TYPE:String;text-align:LEFT" size='86' title="Please enter a value." coltype="String">
</INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT class='trEditInputClass' id='bom_code{@domID}' value='{bom_code}' type='text' NAME="bom_code" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" style="width:86;visibility:visible;;TYPE:String;text-align:LEFT" size='86' title="Please enter a value." coltype="String">
</INPUT>
</xsl:otherwise>
</xsl:choose></xsl:when>
<xsl:otherwise>
<xsl:value-of select='bom_code'/>
</xsl:otherwise>
</xsl:choose></NOBR>
</TD>
<TD id='td_loc_code{@domID}' NAME="loc_code" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' style="width:79;visibility:visible;">
<NOBR>
<xsl:choose><xsl:when test="loc_code/@visible='1'">
<xsl:choose><xsl:when test="loc_code/@protect='1'">
<INPUT class='trEditInputClass' id='loc_code{@domID}' value='{loc_code}' type='text' readOnly='true' label='Loc Code' NAME="loc_code" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" REQUIRED='YES' style="visibility:hidden;width:79;visibility:visible;;TYPE:String;text-align:LEFT" size='79' title="Please enter a value." coltype="String">
</INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT class='trEditInputClass' id='loc_code{@domID}' value='{loc_code}' type='text' NAME="loc_code" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" style="width:79;visibility:visible;;TYPE:String;text-align:LEFT" size='79' title="Please enter a value." coltype="String">
</INPUT>
</xsl:otherwise>
</xsl:choose></xsl:when>
<xsl:otherwise>
<xsl:value-of select='loc_code'/>
</xsl:otherwise>
</xsl:choose></NOBR>
</TD>
<TD id='td_item_ser{@domID}' NAME="item_ser" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' style="width:78;visibility:visible;">
<NOBR>
<xsl:choose><xsl:when test="item_ser/@visible='1'">
<xsl:choose><xsl:when test="item_ser/@protect='1'">
<INPUT class='trEditInputClass' id='item_ser{@domID}' value='{item_ser}' type='text' readOnly='true' label='Item Ser' NAME="item_ser" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" REQUIRED='YES' style="visibility:hidden;width:78;visibility:visible;;TYPE:String;text-align:LEFT" size='78' title="Please enter a value." coltype="String">
</INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT class='trEditInputClass' id='item_ser{@domID}' value='{item_ser}' type='text' NAME="item_ser" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" style="width:78;visibility:visible;;TYPE:String;text-align:LEFT" size='78' title="Please enter a value." coltype="String">
</INPUT>
</xsl:otherwise>
</xsl:choose></xsl:when>
<xsl:otherwise>
<xsl:value-of select='item_ser'/>
</xsl:otherwise>
</xsl:choose></NOBR>
</TD>
<TD id='td_site_code{@domID}' NAME="site_code" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' style="width:48;visibility:visible;">
<NOBR>
<xsl:choose><xsl:when test="site_code/@visible='1'">
<xsl:choose><xsl:when test="site_code/@protect='1'">
<INPUT class='trEditInputClass' id='site_code{@domID}' value='{site_code}' type='text' readOnly='true' label='Site' NAME="site_code" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" REQUIRED='YES' style="visibility:hidden;width:48;visibility:visible;;TYPE:String;text-align:LEFT" size='48' title="Please enter a value." coltype="String">
</INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT class='trEditInputClass' id='site_code{@domID}' value='{site_code}' type='text' NAME="site_code" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" style="width:48;visibility:visible;;TYPE:String;text-align:LEFT" size='48' title="Please enter a value." coltype="String">
</INPUT>
</xsl:otherwise>
</xsl:choose></xsl:when>
<xsl:otherwise>
<xsl:value-of select='site_code'/>
</xsl:otherwise>
</xsl:choose></NOBR>
</TD>
<TD id='td_tax_class{@domID}' NAME="tax_class" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' style="width:82;visibility:visible;">
<NOBR>
<xsl:choose><xsl:when test="tax_class/@visible='1'">
<xsl:choose><xsl:when test="tax_class/@protect='1'">
<INPUT class='trEditInputClass' id='tax_class{@domID}' value='{tax_class}' type='text' readOnly='true' label='Tax Class' NAME="tax_class" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" REQUIRED='YES' style="visibility:hidden;width:82;visibility:visible;;TYPE:String;text-align:LEFT" size='82' title="Please enter a value." coltype="String">
</INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT class='trEditInputClass' id='tax_class{@domID}' value='{tax_class}' type='text' NAME="tax_class" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" style="width:82;visibility:visible;;TYPE:String;text-align:LEFT" size='82' title="Please enter a value." coltype="String">
</INPUT>
</xsl:otherwise>
</xsl:choose></xsl:when>
<xsl:otherwise>
<xsl:value-of select='tax_class'/>
</xsl:otherwise>
</xsl:choose></NOBR>
</TD>
<TD id='td_tax_chap{@domID}' NAME="tax_chap" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' style="width:114;visibility:visible;">
<NOBR>
<xsl:choose><xsl:when test="tax_chap/@visible='1'">
<xsl:choose><xsl:when test="tax_chap/@protect='1'">
<INPUT class='trEditInputClass' id='tax_chap{@domID}' value='{tax_chap}' type='text' readOnly='true' label='Tax Chapter' NAME="tax_chap" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" REQUIRED='YES' style="visibility:hidden;width:114;visibility:visible;;TYPE:String;text-align:LEFT" size='114' title="Please enter a value." coltype="String">
</INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT class='trEditInputClass' id='tax_chap{@domID}' value='{tax_chap}' type='text' NAME="tax_chap" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" style="width:114;visibility:visible;;TYPE:String;text-align:LEFT" size='114' title="Please enter a value." coltype="String">
</INPUT>
</xsl:otherwise>
</xsl:choose></xsl:when>
<xsl:otherwise>
<xsl:value-of select='tax_chap'/>
</xsl:otherwise>
</xsl:choose></NOBR>
</TD>
<TD id='td_tax_env{@domID}' NAME="tax_env" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' style="width:87;visibility:visible;">
<NOBR>
<xsl:choose><xsl:when test="tax_env/@visible='1'">
<xsl:choose><xsl:when test="tax_env/@protect='1'">
<INPUT class='trEditInputClass' id='tax_env{@domID}' value='{tax_env}' type='text' readOnly='true' label='Tax Env' NAME="tax_env" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" REQUIRED='YES' style="visibility:hidden;width:87;visibility:visible;;TYPE:String;text-align:LEFT" size='87' title="Please enter a value." coltype="String">
</INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT class='trEditInputClass' id='tax_env{@domID}' value='{tax_env}' type='text' NAME="tax_env" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" style="width:87;visibility:visible;;TYPE:String;text-align:LEFT" size='87' title="Please enter a value." coltype="String">
</INPUT>
</xsl:otherwise>
</xsl:choose></xsl:when>
<xsl:otherwise>
<xsl:value-of select='tax_env'/>
</xsl:otherwise>
</xsl:choose></NOBR>
</TD>
<TD id='td_acct_code__dr{@domID}' NAME="acct_code__dr" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' style="width:77;visibility:visible;">
<NOBR>
<xsl:choose><xsl:when test="acct_code__dr/@visible='1'">
<xsl:choose><xsl:when test="acct_code__dr/@protect='1'">
<INPUT class='trEditInputClass' id='acct_code__dr{@domID}' value='{acct_code__dr}' type='text' readOnly='true' label='A/c Dr' NAME="acct_code__dr" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" REQUIRED='YES' style="visibility:hidden;width:77;visibility:visible;;TYPE:String;text-align:LEFT" size='77' title="Please enter a value." coltype="String">
</INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT class='trEditInputClass' id='acct_code__dr{@domID}' value='{acct_code__dr}' type='text' NAME="acct_code__dr" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" style="width:77;visibility:visible;;TYPE:String;text-align:LEFT" size='77' title="Please enter a value." coltype="String">
</INPUT>
</xsl:otherwise>
</xsl:choose></xsl:when>
<xsl:otherwise>
<xsl:value-of select='acct_code__dr'/>
</xsl:otherwise>
</xsl:choose></NOBR>
</TD>
<TD id='td_cctr_code__dr{@domID}' NAME="cctr_code__dr" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' style="width:74;visibility:visible;">
<NOBR>
<xsl:choose><xsl:when test="cctr_code__dr/@visible='1'">
<xsl:choose><xsl:when test="cctr_code__dr/@protect='1'">
<INPUT class='trEditInputClass' id='cctr_code__dr{@domID}' value='{cctr_code__dr}' type='text' readOnly='true' label='Cctr Dr' NAME="cctr_code__dr" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" REQUIRED='YES' style="visibility:hidden;width:74;visibility:visible;;TYPE:String;text-align:LEFT" size='74' title="Please enter a value." coltype="String">
</INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT class='trEditInputClass' id='cctr_code__dr{@domID}' value='{cctr_code__dr}' type='text' NAME="cctr_code__dr" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" style="width:74;visibility:visible;;TYPE:String;text-align:LEFT" size='74' title="Please enter a value." coltype="String">
</INPUT>
</xsl:otherwise>
</xsl:choose></xsl:when>
<xsl:otherwise>
<xsl:value-of select='cctr_code__dr'/>
</xsl:otherwise>
</xsl:choose></NOBR>
</TD>
<TD id='td_acct_code__cr{@domID}' NAME="acct_code__cr" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' style="width:79;visibility:visible;">
<NOBR>
<xsl:choose><xsl:when test="acct_code__cr/@visible='1'">
<xsl:choose><xsl:when test="acct_code__cr/@protect='1'">
<INPUT class='trEditInputClass' id='acct_code__cr{@domID}' value='{acct_code__cr}' type='text' readOnly='true' label='A/c Cr' NAME="acct_code__cr" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" REQUIRED='YES' style="visibility:hidden;width:79;visibility:visible;;TYPE:String;text-align:LEFT" size='79' title="Please enter a value." coltype="String">
</INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT class='trEditInputClass' id='acct_code__cr{@domID}' value='{acct_code__cr}' type='text' NAME="acct_code__cr" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" style="width:79;visibility:visible;;TYPE:String;text-align:LEFT" size='79' title="Please enter a value." coltype="String">
</INPUT>
</xsl:otherwise>
</xsl:choose></xsl:when>
<xsl:otherwise>
<xsl:value-of select='acct_code__cr'/>
</xsl:otherwise>
</xsl:choose></NOBR>
</TD>
<TD id='td_cctr_code__cr{@domID}' NAME="cctr_code__cr" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' style="width:76;visibility:visible;">
<NOBR>
<xsl:choose><xsl:when test="cctr_code__cr/@visible='1'">
<xsl:choose><xsl:when test="cctr_code__cr/@protect='1'">
<INPUT class='trEditInputClass' id='cctr_code__cr{@domID}' value='{cctr_code__cr}' type='text' readOnly='true' label='Cctr Cr' NAME="cctr_code__cr" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" REQUIRED='YES' style="visibility:hidden;width:76;visibility:visible;;TYPE:String;text-align:LEFT" size='76' title="Please enter a value." coltype="String">
</INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT class='trEditInputClass' id='cctr_code__cr{@domID}' value='{cctr_code__cr}' type='text' NAME="cctr_code__cr" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" style="width:76;visibility:visible;;TYPE:String;text-align:LEFT" size='76' title="Please enter a value." coltype="String">
</INPUT>
</xsl:otherwise>
</xsl:choose></xsl:when>
<xsl:otherwise>
<xsl:value-of select='cctr_code__cr'/>
</xsl:otherwise>
</xsl:choose></NOBR>
</TD>
<TD id='td_discount{@domID}' NAME="discount" fontCase="any" align="RIGHT" TABINDEX="32766" TABORDER="32766" protect = '1' style="width:82;visibility:visible;">
<NOBR>
<xsl:choose><xsl:when test="discount/@visible='1'">
<xsl:choose><xsl:when test="discount/@protect='1'">
<INPUT class='trEditInputClass' id='discount{@domID}' value='{discount}' type='text' readOnly='true' label='Disc Type' NAME="discount" fontCase="any" align="RIGHT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" REQUIRED='YES' style="visibility:hidden;width:82;visibility:visible;;TYPE:number;text-align:RIGHT" size='82' title="Please enter a value." coltype="number">
</INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT class='trEditInputClass' id='discount{@domID}' value='{discount}' type='text' NAME="discount" fontCase="any" align="RIGHT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" style="width:82;visibility:visible;;TYPE:number;text-align:RIGHT" size='82' title="Please enter a value." coltype="number">
</INPUT>
</xsl:otherwise>
</xsl:choose></xsl:when>
<xsl:otherwise>
<xsl:value-of select='discount'/>
</xsl:otherwise>
</xsl:choose></NOBR>
</TD>
<TD id='td_discount_type{@domID}' NAME="discount_type" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' style="width:86;visibility:visible;">
<NOBR>
<xsl:choose><xsl:when test="discount_type/@visible='1'">
<xsl:choose><xsl:when test="discount_type/@protect='1'">
<INPUT class='trEditInputClass' id='discount_type{@domID}' value='{discount_type}' type='text' readOnly='true' label='null' NAME="discount_type" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" REQUIRED='YES' style="visibility:hidden;width:86;visibility:visible;;TYPE:String;text-align:LEFT" size='86' title="Please enter a value." coltype="String">
</INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT class='trEditInputClass' id='discount_type{@domID}' value='{discount_type}' type='text' NAME="discount_type" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" style="width:86;visibility:visible;;TYPE:String;text-align:LEFT" size='86' title="Please enter a value." coltype="String">
</INPUT>
</xsl:otherwise>
</xsl:choose></xsl:when>
<xsl:otherwise>
<xsl:value-of select='discount_type'/>
</xsl:otherwise>
</xsl:choose></NOBR>
</TD>
<TD id='td_line_no{@domID}' NAME="line_no" fontCase="any" align="RIGHT" TABINDEX="32766" TABORDER="32766" protect = '1' style="width:27;visibility:visible;">
<NOBR>
<xsl:choose><xsl:when test="line_no/@visible='1'">
<xsl:choose><xsl:when test="line_no/@protect='1'">
<INPUT class='trEditInputClass' id='line_no{@domID}' value='{line_no}' type='text' readOnly='true' label='Line' NAME="line_no" fontCase="any" align="RIGHT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" REQUIRED='YES' style="visibility:hidden;width:27;visibility:visible;;TYPE:number;text-align:RIGHT" size='27' title="Please enter a value." coltype="number">
</INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT class='trEditInputClass' id='line_no{@domID}' value='{line_no}' type='text' NAME="line_no" fontCase="any" align="RIGHT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" style="width:27;visibility:visible;;TYPE:number;text-align:RIGHT" size='27' title="Please enter a value." coltype="number">
</INPUT>
</xsl:otherwise>
</xsl:choose></xsl:when>
<xsl:otherwise>
<xsl:value-of select='line_no'/>
</xsl:otherwise>
</xsl:choose></NOBR>
</TD>
<TD id='td_max_value{@domID}' NAME="max_value" fontCase="any" align="RIGHT" TABINDEX="32766" TABORDER="32766" protect = '1' style="width:70;visibility:visible;">
<NOBR>
<xsl:choose><xsl:when test="max_value/@visible='1'">
<xsl:choose><xsl:when test="max_value/@protect='1'">
<INPUT class='trEditInputClass' id='max_value{@domID}' value='{max_value}' type='text' readOnly='true' label='Max Value' NAME="max_value" fontCase="any" align="RIGHT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" REQUIRED='YES' style="visibility:hidden;width:70;visibility:visible;;TYPE:number;text-align:RIGHT" size='70' title="Please enter a value." coltype="number">
</INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT class='trEditInputClass' id='max_value{@domID}' value='{max_value}' type='text' NAME="max_value" fontCase="any" align="RIGHT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" style="width:70;visibility:visible;;TYPE:number;text-align:RIGHT" size='70' title="Please enter a value." coltype="number">
</INPUT>
</xsl:otherwise>
</xsl:choose></xsl:when>
<xsl:otherwise>
<xsl:value-of select='max_value'/>
</xsl:otherwise>
</xsl:choose></NOBR>
</TD>
<TD id='td_max_value_per{@domID}' NAME="max_value_per" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' style="width:132;visibility:visible;">
<NOBR>
<xsl:choose><xsl:when test="max_value_per/@visible='1'">
<xsl:choose><xsl:when test="max_value_per/@protect='1'">
<INPUT class='trEditInputClass' id='max_value_per{@domID}' value='{max_value_per}' type='text' readOnly='true' label='Max Value Percentage' NAME="max_value_per" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" REQUIRED='YES' style="visibility:hidden;width:132;visibility:visible;;TYPE:String;text-align:LEFT" size='132' title="Please enter a value." coltype="String">
</INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT class='trEditInputClass' id='max_value_per{@domID}' value='{max_value_per}' type='text' NAME="max_value_per" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" style="width:132;visibility:visible;;TYPE:String;text-align:LEFT" size='132' title="Please enter a value." coltype="String">
</INPUT>
</xsl:otherwise>
</xsl:choose></xsl:when>
<xsl:otherwise>
<xsl:value-of select='max_value_per'/>
</xsl:otherwise>
</xsl:choose></NOBR>
</TD>
<TD id='td_remarks{@domID}' NAME="remarks" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' style="width:227;visibility:visible;">
<NOBR>
<xsl:choose><xsl:when test="remarks/@visible='1'">
<xsl:choose><xsl:when test="remarks/@protect='1'">
<INPUT class='trEditInputClass' id='remarks{@domID}' value='{remarks}' type='text' readOnly='true' label='Remarks' NAME="remarks" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" REQUIRED='YES' style="visibility:hidden;width:227;visibility:visible;;TYPE:String;text-align:LEFT" size='227' title="Please enter a value." coltype="String">
</INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT class='trEditInputClass' id='remarks{@domID}' value='{remarks}' type='text' NAME="remarks" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" style="width:227;visibility:visible;;TYPE:String;text-align:LEFT" size='227' title="Please enter a value." coltype="String">
</INPUT>
</xsl:otherwise>
</xsl:choose></xsl:when>
<xsl:otherwise>
<xsl:value-of select='remarks'/>
</xsl:otherwise>
</xsl:choose></NOBR>
</TD>
<TD id='td_contract_no{@domID}' NAME="contract_no" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' style="width:73;visibility:visible;">
<NOBR>
<xsl:choose><xsl:when test="contract_no/@visible='1'">
<xsl:choose><xsl:when test="contract_no/@protect='1'">
<INPUT class='trEditInputClass' id='contract_no{@domID}' value='{contract_no}' type='text' readOnly='true' label='Contract No ' NAME="contract_no" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" REQUIRED='YES' style="visibility:hidden;width:73;visibility:visible;;TYPE:String;text-align:LEFT" size='73' title="Please enter a value." coltype="String">
</INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT class='trEditInputClass' id='contract_no{@domID}' value='{contract_no}' type='text' NAME="contract_no" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" style="width:73;visibility:visible;;TYPE:String;text-align:LEFT" size='73' title="Please enter a value." coltype="String">
</INPUT>
</xsl:otherwise>
</xsl:choose></xsl:when>
<xsl:otherwise>
<xsl:value-of select='contract_no'/>
</xsl:otherwise>
</xsl:choose></NOBR>
</TD>
<TD id='td_yes_no{@domID}' NAME="yes_no" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' style="width:15;visibility:visible;">
<NOBR>
<xsl:choose><xsl:when test="yes_no/@visible='1'">
<xsl:choose><xsl:when test="yes_no/@protect='1'">
<INPUT class='trEditInputClass' id='yes_no{@domID}' value='{yes_no}' type='text' readOnly='true' label='' NAME="yes_no" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" REQUIRED='YES' style="visibility:hidden;width:15;visibility:visible;;TYPE:String;text-align:LEFT" size='15' title="Please enter a value." coltype="String">
</INPUT>
</xsl:when>
<xsl:otherwise>
<INPUT class='trEditInputClass' id='yes_no{@domID}' value='{yes_no}' type='text' NAME="yes_no" fontCase="any" align="LEFT" TABINDEX="32766" TABORDER="32766" protect = '1' domId="{@domID}" ISCHANGED="false" onBlur="validateFld(this)" onFocus="gotFocus(this,'brow2')" style="width:15;visibility:visible;;TYPE:String;text-align:LEFT" size='15' title="Please enter a value." coltype="String">
</INPUT>
</xsl:otherwise>
</xsl:choose></xsl:when>
<xsl:otherwise>
<xsl:value-of select='yes_no'/>
</xsl:otherwise>
</xsl:choose></NOBR>
</TD>
</TR>
</xsl:for-each>
</TBODY>
</TABLE>
</div>
</xsl:for-each>
</FORM>
<xsl:for-each select='/DocumentRoot/Message'>
<xsl:value-of select='.'/></xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
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