Commit 1bb892d0 authored by ssalve's avatar ssalve

Sarita: Done changes in sorder_status_en_US_V.xsl file to add policy details... on 30NOV2017

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@174874 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b286bc2d
...@@ -8,18 +8,17 @@ ...@@ -8,18 +8,17 @@
<body> <body>
<div class="mainContainer"> <div class="mainContainer">
<xsl:if test="not(//Detail1)"> <!-- <xsl:if test="not(//header_data)">
<p style="font-size:16px;">Sales order confirmation is pending or order is cancelled.</p> <p style="font-size:16px;">Sales order confirmation is pending or order is cancelled.</p>
</xsl:if> </xsl:if> changes by sarita on 30NOV2017-->
<xsl:for-each select="//Detail1"> <!-- <xsl:for-each select="//Detail1"> changes by sarita on 30NOV2017-->
<xsl:if test="position() = 1"> <xsl:variable name="orderStatus"><xsl:value-of select="//Detail1/header_data/status"/></xsl:variable>
<xsl:variable name="orderStatus"><xsl:value-of select="sorder_status"/></xsl:variable> <xsl:variable name="custPo"><xsl:value-of select="//Detail1/header_data/cust_pord"/></xsl:variable>
<xsl:variable name="custPo"><xsl:value-of select="cust_pord"/></xsl:variable> <xsl:variable name="custPoDate"><xsl:value-of select="//Detail1/header_data/pord_date"/></xsl:variable>
<xsl:variable name="custPoDate"><xsl:value-of select="pord_date"/></xsl:variable>
<div class="statusHeader"> <div class="statusHeader">
<div class="statusLine"> <div class="statusLine">
<div class="leftAlignDiv"> <div class="leftAlignDiv">
<p><strong>Order#</strong>&#160;<xsl:value-of select="sale_order"/></p> <p><strong>Order#</strong>&#160;<xsl:value-of select="//Detail1/header_data/sale_order" /> </p>
</div> </div>
<div class="rightAlignDiv"> <div class="rightAlignDiv">
<div class="orderStatsDiv"> <div class="orderStatsDiv">
...@@ -60,22 +59,51 @@ ...@@ -60,22 +59,51 @@
</div> </div>
</div> </div>
<div class="rightAlignDiv"> <div class="rightAlignDiv">
<strong>Date</strong>&#160;<xsl:value-of select="order_date"/> <strong>Date</strong>&#160;<xsl:value-of select="//Detail1/header_data/order_date"/>
</div> </div>
</div> </div>
<div class="statusLine"> <div class="statusLine">
<div class="leftAlignDiv" id="dueDateLine"> <div class="leftAlignDiv" id="dueDateLine">
Due date between <xsl:value-of select="min_due_date"/> to <xsl:value-of select="max_due_date"/> Due date between <xsl:value-of select="//Detail1/header_data/min_due_date"/> to <xsl:value-of select="//Detail1/header_data/max_due_date"/>
</div>
</div>
</div>
<!-- <div class="eachLineData"> changes by sarita on 30NOV2017-->
<div class="dataContainer">
<xsl:for-each select="//Detail1/policy">
<div class='eachLineData'>
<div class="statusLine">
<div class="leftAlignDiv">
<p><strong>Cr.Policy:</strong>&#160;<xsl:value-of select="lsCrPolicy" /> </p>
</div>
<!-- <div class="rightAlignDiv">
<p><strong>Despatch ID:</strong>&#160;<xsl:value-of select="despid" /> </p>
</div>-->
</div>
<div class="statusLine">
<div class="leftAlignDiv">
<p><xsl:value-of select="lsStr" /> </p>
</div>
<div class="rightAlignDiv">
<p> <b><xsl:value-of select="lsStatus" /></b></p>
</div> </div>
</div> </div>
</div> </div>
</xsl:if>
</xsl:for-each> </xsl:for-each>
</div>
<!-- <xsl:for-each select="//Detail1"> changes by sarita on 30NOV2017-->
<div class="dataContainer"> <div class="dataContainer">
<xsl:for-each select="//Detail1"> <xsl:for-each select="//Detail1/Item">
<xsl:variable name="lineStatus"><xsl:value-of select="status"/></xsl:variable> <xsl:variable name="lineStatus"><xsl:value-of select="status"/></xsl:variable>
<xsl:variable name="stkQty"><xsl:value-of select="stk_qty"/></xsl:variable> <xsl:variable name="stkQty"><xsl:value-of select="stk_qty"/></xsl:variable>
<xsl:variable name="despQty"><xsl:value-of select="desp_qty"/></xsl:variable> <xsl:variable name="despQty"><xsl:value-of select="desp_qty"/></xsl:variable>
<xsl:variable name="reasDtl"><xsl:value-of select="reas_detail"/></xsl:variable>
<div class='eachLineData'> <div class='eachLineData'>
<div class='itemDescrDiv'> <div class='itemDescrDiv'>
<xsl:value-of select="item_descr"/> (<xsl:value-of select="item_code"/>) <xsl:value-of select="item_descr"/> (<xsl:value-of select="item_code"/>)
...@@ -92,6 +120,7 @@ ...@@ -92,6 +120,7 @@
Due on Due on
</div> </div>
</div> </div>
<div class='shipQtyDueDtDiv'> <div class='shipQtyDueDtDiv'>
<div class='shipQtyDiv'> <div class='shipQtyDiv'>
<xsl:if test="$despQty='' or $despQty='0'"> <xsl:if test="$despQty='' or $despQty='0'">
...@@ -101,6 +130,9 @@ ...@@ -101,6 +130,9 @@
<xsl:value-of select="desp_qty"/>&#160;<xsl:value-of select="unit"/> <xsl:value-of select="desp_qty"/>&#160;<xsl:value-of select="unit"/>
Shipped Shipped
</xsl:if> </xsl:if>
<xsl:if test="$reasDtl=not('') and $reasDtl=not('0')">
<xsl:value-of select="reas_detail"/>&#160;<xsl:value-of select="unit"/>
</xsl:if>
</div> </div>
<div class='dueDate'> <div class='dueDate'>
<xsl:value-of select="dsp_date"/> <xsl:value-of select="dsp_date"/>
...@@ -117,6 +149,7 @@ ...@@ -117,6 +149,7 @@
</xsl:if> </xsl:if>
</div> </div>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<div class='closeOrderQtyDiv'> <div class='closeOrderQtyDiv'>
<xsl:value-of select="quantity"/>&#160;<xsl:value-of select="unit"/><br></br> <xsl:value-of select="quantity"/>&#160;<xsl:value-of select="unit"/><br></br>
...@@ -130,11 +163,13 @@ ...@@ -130,11 +163,13 @@
</div> </div>
</div> </div>
</xsl:for-each> </xsl:for-each>
</div>
<!-- <xsl:for-each select="//Detail1"> changes by sarita on 30NOV2017-->
<TABLE id="invoiceDetails" border="0" width="100%" cellpadding="0" cellspacing="0" style="margin-top:20px;margin-bottom:10px;"> <TABLE id="invoiceDetails" border="0" width="100%" cellpadding="0" cellspacing="0" style="margin-top:20px;margin-bottom:10px;">
<xsl:for-each select="//Detail1"> <xsl:for-each select="//Detail1/Invoice">
<xsl:variable name="invoiceId"><xsl:value-of select="invoice_invoice_id"/></xsl:variable> <xsl:variable name="invoiceId"><xsl:value-of select="invoice_id"/></xsl:variable>
<xsl:variable name="transMode"><xsl:value-of select="despatch_trans_mode"/></xsl:variable> <xsl:variable name="transMode"><xsl:value-of select="trans_mode"/></xsl:variable>
<!-- Added by Santosh on 21/03/2017 to hide inovice row if invoice is not generated --> <!-- Added by Santosh on 21/03/2017 to hide inovice row if invoice is not generated -->
<xsl:if test="$invoiceId = not('')"> <xsl:if test="$invoiceId = not('')">
<TR> <TR>
...@@ -145,11 +180,11 @@ ...@@ -145,11 +180,11 @@
</xsl:if> </xsl:if>
<xsl:if test="$invoiceId = not('')"> <xsl:if test="$invoiceId = not('')">
<strong>Invoice#</strong><br></br> <strong>Invoice#</strong><br></br>
<xsl:value-of select="invoice_invoice_id"/> <xsl:value-of select="invoice_id"/>
</xsl:if> </xsl:if>
</TD> </TD>
<TD nowrap="true" align="right" valign="middle" width="5%" style="padding-top:17px;" > <TD nowrap="true" align="right" valign="middle" width="5%" style="padding-top:17px;" >
<xsl:value-of select="invoice_tran_date"/> <xsl:value-of select="tran_date"/>
</TD> </TD>
<TD nowrap="true" align="right" valign="middle" width="5%" style="padding-top:17px;" > <TD nowrap="true" align="right" valign="middle" width="5%" style="padding-top:17px;" >
<xsl:value-of select="tran_name"/> <xsl:value-of select="tran_name"/>
...@@ -183,7 +218,6 @@ ...@@ -183,7 +218,6 @@
</xsl:for-each> </xsl:for-each>
</TABLE> </TABLE>
</div> </div>
</div>
</body> </body>
</html> </html>
</xsl:template> </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