Commit fdb555d3 authored by pchavan's avatar pchavan

custom xsl for accounting view screen

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@173804 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 08476484
<?xml version='1.0' encoding='UTF-8'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="*" mode="serialize"> <xsl:text>&lt;</xsl:text> <xsl:value-of select="name()"/> <xsl:apply-templates select="@*" mode="serialize" /> <xsl:choose> <xsl:when test="node()"> <xsl:text>&gt;</xsl:text> <xsl:apply-templates mode="serialize" /> <xsl:text>&lt;/</xsl:text> <xsl:value-of select="name()"/> <xsl:text>&gt;</xsl:text> </xsl:when> <xsl:otherwise> <xsl:text> /&gt;</xsl:text> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="@*" mode="serialize"> <xsl:text> </xsl:text> <xsl:value-of select="name()"/> <xsl:text>="</xsl:text> <xsl:value-of select="."/> <xsl:text>"</xsl:text> </xsl:template><xsl:template match="/">
<html>
<head>
<link type="text/css" rel="stylesheet" href="/ibase/webitm/css/ViewAcctEffect.css"/>
</head>
<body id='groupDiv' bgcolor='#E7E7ED' ><FORM id="brow" METHOD="POST" ACTION="fwd.jsp">
<INPUT type='hidden' name='OBJ_NAME' value='accteffectview'/>
<INPUT type='hidden' name='PAGE_CONTEXT' value='1'/>
<INPUT type='hidden' name='OBJ_CONTEXT' value='1'/>
<INPUT type='hidden' name='EDIT_FLAG' value='V'/>
<INPUT type='hidden' name='EDIT_TMPLT' value='0'/>
<INPUT type='hidden' name='DOM_ID' value=''/>
<INPUT type='hidden' name='DB_ID' value=''/>
<INPUT type='hidden' name='CONFIRM_ID' value='null~null'/>
<INPUT type='hidden' name='COL_NAME' value=''/>
<INPUT type='hidden' name='ORDER' value='ascending'/>
<INPUT type='hidden' name='DATATYPE' value='text'/>
<INPUT type='hidden' name='REFRESH_MODE' value='false'/>
<div class="itemtbl" id="itemtbl" >
<xsl:for-each select="/DocumentRoot/group0">
<xsl:variable name="col_name" select="../col_name"/>
<xsl:variable name="datatype" select="../datatype"/>
<xsl:variable name="sort_order" select="../order"/>
<script>
var sortOrder='<xsl:value-of select="$sort_order"/>';
var isAnyRecordSelected = false;
</script>
<xsl:for-each select="./Header0">
<!--1.<div id="dataDivID11" class="browDataDiv">
<TABLE name="main" id="main" class="tableClass" style=" class:header_css;position:relative;top:0;width:100%;">
<THEAD>-->
<div class="eachRow">
<div class="eachSection">
<div class="imgDiv"><img src="/ibase/webitm/images/view-account-effect.png"/></div>
</div>
<div class="eachSection">
<div class="eachContent title">Accounting Effect</div>
<div class="eachContent title"> <xsl:value-of select="./Detail1[attribute/@updateFlag!='D']/refser"/>-<xsl:value-of select="./Detail1[attribute/@updateFlag!='D']/tran_id" />
</div>
</div>
<div class="eachSection alighrt" >
<div class="eachContent textRtAlign title" style="margin-top:12px;">Post Date<xsl:text> </xsl:text><xsl:value-of select="./Detail1[attribute/@updateFlag!='D']/eff_date"/></div>
</div>
</div>
<xsl:for-each select="./Detail1[attribute/@updateFlag!='D']">
<xsl:variable name="sundryType"><xsl:value-of select='sundry_type'/></xsl:variable>
<xsl:variable name="exchangeRate"><xsl:value-of select='exch_rate'/></xsl:variable>
<div class="eachRow">
<div class="eachSection">
<xsl:if test="cr_amt &gt; 0">
<div class="imgDiv"><img src="/ibase/webitm/images/bank_balance.png"/></div>
</xsl:if>
<xsl:if test="dr_amt &gt; 0">
<div class="imgDiv"><img src="/ibase/webitm/images/sunday-debtors.png"/></div>
</xsl:if>
</div>
<div class="eachSection">
<div class="eachContent"><xsl:value-of select='accounts_descr'/> ( <xsl:value-of select='acct_code'/> )</div>
<xsl:if test="$sundryType != 'O'">
<div class="eachContent"><xsl:value-of select='sundrydescr'/> : <xsl:value-of select='sundry_name'/> (<xsl:value-of select='sundry_code'/>)</div>
</xsl:if>
<div class="eachContent">Remarks : <xsl:value-of select='remarks'/> </div>
</div>
<div class="eachSection alighrt" >
<xsl:if test="cr_amt &gt; 0">
<div class="eachContent textRtAlign">
<span class="cr-amt">+
<xsl:value-of select='cr_amt'/><xsl:text> </xsl:text>
</span>
<xsl:value-of select='curr_code'/>
</div>
</xsl:if>
<xsl:if test="dr_amt &gt; 0">
<div class="eachContent textRtAlign">
<span class="dr-amt">-
<xsl:value-of select='dr_amt'/><xsl:text> </xsl:text>
</span>
<xsl:value-of select='curr_code'/>
<xsl:if test="$exchangeRate != '1'">
<xsl:text></xsl:text>
@<xsl:value-of select='exch_rate'/>
</xsl:if>
<xsl:if test="$exchangeRate > '1'">
</xsl:if>
</div>
</xsl:if>
</div>
</div>
</xsl:for-each>
<xsl:value-of select='NoOfRows'/>
</xsl:for-each>
</xsl:for-each>
<div class="eachRow">
<div class="eachSection alighrt">
<div class="eachSection alighlt ">Total Credit:
<span class="cr-amt">+
<xsl:value-of select= "sum(/DocumentRoot/group0/Header0/Detail1[attribute/@updateFlag!='D']/cr_amt)"/>
</span>
<xsl:text> </xsl:text>
<xsl:value-of select="/DocumentRoot/group0/Header0/Detail1[attribute/@updateFlag!='D']/curr_code"/>
</div>
<div class="eachSection alighlt ">Total Debit:
<span class="dr-amt">-
<xsl:value-of select="sum(/DocumentRoot/group0/Header0/Detail1[attribute/@updateFlag!='D']/dr_amt)"/>
</span>
<xsl:text> </xsl:text>
<xsl:value-of select="/DocumentRoot/group0/Header0/Detail1[attribute/@updateFlag!='D']/curr_code"/>
</div>
</div>
</div>
</div>
</FORM>
</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