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,76 +8,104 @@
<body>
<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>
</xsl:if>
<xsl:for-each select="//Detail1">
<xsl:if test="position() = 1">
<xsl:variable name="orderStatus"><xsl:value-of select="sorder_status"/></xsl:variable>
<xsl:variable name="custPo"><xsl:value-of select="cust_pord"/></xsl:variable>
<xsl:variable name="custPoDate"><xsl:value-of select="pord_date"/></xsl:variable>
<div class="statusHeader">
<div class="statusLine">
<div class="leftAlignDiv">
<p><strong>Order#</strong>&#160;<xsl:value-of select="sale_order"/></p>
</div>
<div class="rightAlignDiv">
<div class="orderStatsDiv">
<input type="hidden" value="{$orderStatus}" id="orderStatus"/>
<xsl:if test="$orderStatus='H'">
<span>Sales order is on hold</span><img class="orderStatsImg" src="/ibase/images/galaxy/orderHold.png" />
</xsl:if>
<xsl:if test="$orderStatus='P'">
<span>Sales order is pending</span><img class="orderStatsImg" src="/ibase/images/galaxy/orderPending.png" />
</xsl:if>
<xsl:if test="$orderStatus='C'">
<span>Sales order is closed</span><img class="orderStatsImg" src="/ibase/images/galaxy/orderClosed.png" />
</xsl:if>
<xsl:if test="$orderStatus='X'">
<span>Sales order is cancelled</span><img class="orderStatsImg" src="/ibase/images/galaxy/orderCancel.png" />
</xsl:if>
</div>
</div>
</div>
<div class="statusLine">
<div class="leftAlignDiv">
<div class="custPoDate">
<strong>Cust PO#</strong>&#160;
<xsl:if test="$custPo = '' or $custPo = 'null'">
N/A
</xsl:if>
<xsl:if test="$custPo = not('') or $custPo = not('null')">
<xsl:value-of select="cust_pord"/>
</xsl:if>
&#160;<strong>PO Dt.</strong>&#160;
<xsl:if test="$custPoDate = '' or $custPoDate = 'null'">
N/A
</xsl:if>
<xsl:if test="$custPoDate = not('') or $custPoDate = not('null')">
<xsl:value-of select="pord_date"/>
</xsl:if>
</div>
</div>
<div class="rightAlignDiv">
<strong>Date</strong>&#160;<xsl:value-of select="order_date"/>
</div>
</xsl:if> changes by sarita on 30NOV2017-->
<!-- <xsl:for-each select="//Detail1"> changes by sarita on 30NOV2017-->
<xsl:variable name="orderStatus"><xsl:value-of select="//Detail1/header_data/status"/></xsl:variable>
<xsl:variable name="custPo"><xsl:value-of select="//Detail1/header_data/cust_pord"/></xsl:variable>
<xsl:variable name="custPoDate"><xsl:value-of select="//Detail1/header_data/pord_date"/></xsl:variable>
<div class="statusHeader">
<div class="statusLine">
<div class="leftAlignDiv">
<p><strong>Order#</strong>&#160;<xsl:value-of select="//Detail1/header_data/sale_order" /> </p>
</div>
<div class="rightAlignDiv">
<div class="orderStatsDiv">
<input type="hidden" value="{$orderStatus}" id="orderStatus"/>
<xsl:if test="$orderStatus='H'">
<span>Sales order is on hold</span><img class="orderStatsImg" src="/ibase/images/galaxy/orderHold.png" />
</xsl:if>
<xsl:if test="$orderStatus='P'">
<span>Sales order is pending</span><img class="orderStatsImg" src="/ibase/images/galaxy/orderPending.png" />
</xsl:if>
<xsl:if test="$orderStatus='C'">
<span>Sales order is closed</span><img class="orderStatsImg" src="/ibase/images/galaxy/orderClosed.png" />
</xsl:if>
<xsl:if test="$orderStatus='X'">
<span>Sales order is cancelled</span><img class="orderStatsImg" src="/ibase/images/galaxy/orderCancel.png" />
</xsl:if>
</div>
<div class="statusLine">
<div class="leftAlignDiv" id="dueDateLine">
Due date between <xsl:value-of select="min_due_date"/> to <xsl:value-of select="max_due_date"/>
</div>
</div>
</div>
<div class="statusLine">
<div class="leftAlignDiv">
<div class="custPoDate">
<strong>Cust PO#</strong>&#160;
<xsl:if test="$custPo = '' or $custPo = 'null'">
N/A
</xsl:if>
<xsl:if test="$custPo = not('') or $custPo = not('null')">
<xsl:value-of select="cust_pord"/>
</xsl:if>
&#160;<strong>PO Dt.</strong>&#160;
<xsl:if test="$custPoDate = '' or $custPoDate = 'null'">
N/A
</xsl:if>
<xsl:if test="$custPoDate = not('') or $custPoDate = not('null')">
<xsl:value-of select="pord_date"/>
</xsl:if>
</div>
</div>
</xsl:if>
</xsl:for-each>
<div class="dataContainer">
<xsl:for-each select="//Detail1">
<div class="rightAlignDiv">
<strong>Date</strong>&#160;<xsl:value-of select="//Detail1/header_data/order_date"/>
</div>
</div>
<div class="statusLine">
<div class="leftAlignDiv" id="dueDateLine">
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>
</xsl:for-each>
</div>
<!-- <xsl:for-each select="//Detail1"> changes by sarita on 30NOV2017-->
<div class="dataContainer">
<xsl:for-each select="//Detail1/Item">
<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="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='itemDescrDiv'>
<div class='itemDescrDiv'>
<xsl:value-of select="item_descr"/> (<xsl:value-of select="item_code"/>)
</div>
<div class='lineSumryDiv'>
......@@ -92,6 +120,7 @@
Due on
</div>
</div>
<div class='shipQtyDueDtDiv'>
<div class='shipQtyDiv'>
<xsl:if test="$despQty='' or $despQty='0'">
......@@ -101,6 +130,9 @@
<xsl:value-of select="desp_qty"/>&#160;<xsl:value-of select="unit"/>
Shipped
</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 class='dueDate'>
<xsl:value-of select="dsp_date"/>
......@@ -115,8 +147,9 @@
<xsl:value-of select="stk_qty"/>&#160;<xsl:value-of select="unit"/>
in stock
</xsl:if>
</div>
</div>
</xsl:when>
<xsl:otherwise>
<div class='closeOrderQtyDiv'>
<xsl:value-of select="quantity"/>&#160;<xsl:value-of select="unit"/><br></br>
......@@ -125,16 +158,18 @@
<div class='closeOrderSumryDiv'>
Line shipped completely
</div>
</xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</div>
</div>
</xsl:for-each>
<TABLE id="invoiceDetails" border="0" width="100%" cellpadding="0" cellspacing="0" style="margin-top:20px;margin-bottom:10px;">
<xsl:for-each select="//Detail1">
<xsl:variable name="invoiceId"><xsl:value-of select="invoice_invoice_id"/></xsl:variable>
<xsl:variable name="transMode"><xsl:value-of select="despatch_trans_mode"/></xsl:variable>
</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;">
<xsl:for-each select="//Detail1/Invoice">
<xsl:variable name="invoiceId"><xsl:value-of select="invoice_id"/></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 -->
<xsl:if test="$invoiceId = not('')">
<TR>
......@@ -145,11 +180,11 @@
</xsl:if>
<xsl:if test="$invoiceId = not('')">
<strong>Invoice#</strong><br></br>
<xsl:value-of select="invoice_invoice_id"/>
<xsl:value-of select="invoice_id"/>
</xsl:if>
</TD>
<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 nowrap="true" align="right" valign="middle" width="5%" style="padding-top:17px;" >
<xsl:value-of select="tran_name"/>
......@@ -181,9 +216,8 @@
<!-- Added by Santosh on 21/03/2017 to hide inovice row if invoice is not generated -->
</xsl:if>
</xsl:for-each>
</TABLE>
</div>
</div>
</TABLE>
</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