Commit 79fbdcaf authored by steurwadkar's avatar steurwadkar

F17ABAS001 GST API calling web part commit


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@106420 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 978b333b
...@@ -423,34 +423,8 @@ function OTPGenerated(retVal) ...@@ -423,34 +423,8 @@ function OTPGenerated(retVal)
} }
function validateHeaderForm() function validateHeaderForm()
{ {
/*if(document.getElementById("Detail1.1.period_code").value == undefined || document.getElementById("Detail1.1.period_code").value == null || document.getElementById("Detail1.1.period_code").value.trim() == "" )
{ if(document.getElementById("Detail1.1.otp").value == undefined || document.getElementById("Detail1.1.otp").value == null || document.getElementById("Detail1.1.otp").value.trim() == "" )
alert("Please enter period code.");
document.getElementById("Detail1.1.period_code").value = document.getElementById("Detail1.1.period_code").value.trim();
document.getElementById("Detail1.1.period_code").focus();
return false;
}
else*/ if(document.getElementById("Detail1.1.site_code").value == undefined || document.getElementById("Detail1.1.site_code").value == null || document.getElementById("Detail1.1.site_code").value.trim() == "" )
{
alert("Please enter site code.");
document.getElementById("Detail1.1.site_code").value = document.getElementById("Detail1.1.site_code").value.trim();
document.getElementById("Detail1.1.site_code").focus();
return false;
}
else if(document.getElementById("Detail1.1.gross_turnover").value == undefined || document.getElementById("Detail1.1.gross_turnover").value == null || document.getElementById("Detail1.1.gross_turnover").value.trim() == "" )
{
alert("Please enter gross turnover.");
document.getElementById("Detail1.1.gross_turnover").value = document.getElementById("Detail1.1.gross_turnover").value.trim();
document.getElementById("Detail1.1.gross_turnover").focus();
return false;
}
else if(document.getElementById("Detail1.1.returns_type").value == undefined || document.getElementById("Detail1.1.returns_type").value == null || document.getElementById("Detail1.1.returns_type").value.trim() == "" )
{
alert("Please select returns type");
document.getElementById("Detail1.1.returns_type").focus();
return false;
}
else if(document.getElementById("Detail1.1.otp").value == undefined || document.getElementById("Detail1.1.otp").value == null || document.getElementById("Detail1.1.otp").value.trim() == "" )
{ {
if(!isOtpGenerated) if(!isOtpGenerated)
{ {
...@@ -462,13 +436,6 @@ function validateHeaderForm() ...@@ -462,13 +436,6 @@ function validateHeaderForm()
document.getElementById("Detail1.1.otp").focus(); document.getElementById("Detail1.1.otp").focus();
return false; return false;
} }
else if(document.getElementById("Detail1.1.action").value == undefined || document.getElementById("Detail1.1.action").value == null || document.getElementById("Detail1.1.action").value.trim() == "" )
{
alert("Please select action.");
document.getElementById("Detail1.1.action").value = document.getElementById("Detail1.1.action").value.trim();
document.getElementById("Detail1.1.action").focus();
return false;
}
displayWaitImg(); displayWaitImg();
return true; return true;
...@@ -596,7 +563,7 @@ function setTitlenImg(retVal) ...@@ -596,7 +563,7 @@ function setTitlenImg(retVal)
function setSummaryTotal() function setSummaryTotal()
{ {
var months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; var months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
var totalsByCol = [0, 0, 0, 0, 0, 0, 0]; var totalsByCol = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
var retPeriod = document.getElementById("summaryRetPeriod").value; var retPeriod = document.getElementById("summaryRetPeriod").value;
var monthCode = parseInt(retPeriod.substring(0,2))-1; var monthCode = parseInt(retPeriod.substring(0,2))-1;
...@@ -645,6 +612,7 @@ function validateDetailForm() ...@@ -645,6 +612,7 @@ function validateDetailForm()
if(tableRows.length > 0) if(tableRows.length > 0)
{ {
alert("Please save all data to GSTN server before submitting."); alert("Please save all data to GSTN server before submitting.");
hideWaitImg();
return false; return false;
} }
} }
...@@ -701,7 +669,7 @@ function getSignedData(docType) ...@@ -701,7 +669,7 @@ function getSignedData(docType)
function signedDataReceived(signedData) function signedDataReceived(signedData)
{ {
if( signedData != "FAILED") if(signedData != undefined || signedData != null || signedData != "FAILED")
{ {
document.getElementById("Detail2.1.signed_data").value = signedData ; document.getElementById("Detail2.1.signed_data").value = signedData ;
var htmlBody = document.getElementsByTagName("html")[0]; var htmlBody = document.getElementsByTagName("html")[0];
...@@ -711,6 +679,10 @@ function signedDataReceived(signedData) ...@@ -711,6 +679,10 @@ function signedDataReceived(signedData)
document.getElementById("gstdataSubmitForm2").action = "/ibase/ITMWizardHandlerServlet"; document.getElementById("gstdataSubmitForm2").action = "/ibase/ITMWizardHandlerServlet";
document.getElementById("gstdataSubmitForm2").submit(); document.getElementById("gstdataSubmitForm2").submit();
} }
else if(signedData == undefined || signedData == null || signedData == "FAILED")
{
alert("Error occurred during signing data.");
}
} }
function formatDetailWithErr() function formatDetailWithErr()
{ {
...@@ -741,9 +713,9 @@ function returnPeriodDropdown() ...@@ -741,9 +713,9 @@ function returnPeriodDropdown()
selectedMonthCode = monthCode[prevMonth.getMonth()]+prevMonth.getFullYear(); selectedMonthCode = monthCode[prevMonth.getMonth()]+prevMonth.getFullYear();
var prevdate = curDate.addMonths(-3); var prevdate = curDate.addMonths(-4);
for(var i=0; i<5; i++) for(var i=0; i<6; i++)
{ {
var nextDate = prevdate.addMonths(1); var nextDate = prevdate.addMonths(1);
$('#yearMonthInput').append($('<option />').val(monthCode[nextDate.getMonth()] + nextDate.getFullYear()).html(months[nextDate.getMonth()] + " " + nextDate.getFullYear())); $('#yearMonthInput').append($('<option />').val(monthCode[nextDate.getMonth()] + nextDate.getFullYear()).html(months[nextDate.getMonth()] + " " + nextDate.getFullYear()));
...@@ -768,6 +740,11 @@ function showDocTextbox(selectBox) ...@@ -768,6 +740,11 @@ function showDocTextbox(selectBox)
document.getElementById("aadhaarTextbox").style.display = "block"; document.getElementById("aadhaarTextbox").style.display = "block";
document.getElementById("panTextbox").style.display = "none"; document.getElementById("panTextbox").style.display = "none";
} }
else if(selectValue == "")
{
document.getElementById("panTextbox").style.display = "none";
document.getElementById("aadhaarTextbox").style.display = "none";
}
} }
function dataSavedInSess(retVal) function dataSavedInSess(retVal)
{ {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<html> <html>
<body onload="getTitlenImg('gstpurchasedata_file')"> <body onload="getTitlenImg('gstpurchasedata_file');returnPeriodDropdown();">
<script type="text/javascript" src="/ibase/webitm/js/GSTDataSubmitWiz.js"></script> <script type="text/javascript" src="/ibase/webitm/js/GSTDataSubmitWiz.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery-1.10.2.js"></script> <script type="text/javascript" src="/ibase/webitm/js/jquery-1.10.2.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery-ui-1.10.4.custom.min.js"></script> <script type="text/javascript" src="/ibase/webitm/js/jquery-ui-1.10.4.custom.min.js"></script>
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
<div class="eachLineFields"> <div class="eachLineFields">
<div class="eachField"> <div class="eachField">
<div class="labelDiv">GSTIN : </div> <div class="labelDiv">GSTIN : </div>
<div class="inputDiv"><input type="text" class="editDisplayClass" value="{$gstin}" name="Detail1.{normalize-space($dbID)}.gstin" id="Detail1.{normalize-space($dbID)}.gstin" tabIndex="-1"/></div> <div class="inputDiv"><input type="text" class="editDisplayClass" value="{$gstin}" name="Detail1.{normalize-space($dbID)}.gstin" id="Detail1.{normalize-space($dbID)}.gstin" tabIndex="-1" readOnly="true"/></div>
</div> </div>
<div class="eachField"> <div class="eachField">
<div class="labelDiv">User name : </div> <div class="labelDiv">User name : </div>
...@@ -134,16 +134,20 @@ ...@@ -134,16 +134,20 @@
<div class="eachField"> <div class="eachField">
<div class="inputDiv"><input type="text" class="editDisplayClass" value="{$state_descr}" name="Detail1.{normalize-space($dbID)}.state_descr" id="Detail1.{normalize-space($dbID)}.state_descr" tabIndex="-1" readOnly="true" style="width:150px;"/></div> <div class="inputDiv"><input type="text" class="editDisplayClass" value="{$state_descr}" name="Detail1.{normalize-space($dbID)}.state_descr" id="Detail1.{normalize-space($dbID)}.state_descr" tabIndex="-1" readOnly="true" style="width:150px;"/></div>
</div> </div>
<div class="eachField" style="float:right;"> <div class="eachField" style="float:right;display:none;">
<div class="labelDiv">Gross turnover<span style="color:red;">*</span> : </div> <div class="labelDiv">Gross turnover<span style="color:red;">*</span> : </div>
<div class="inputDiv"><input type="text" class="input_editable" value="{$gross_turnover}" name="Detail1.{normalize-space($dbID)}.gross_turnover" id="Detail1.{normalize-space($dbID)}.gross_turnover" tabIndex="30" style="text-align:right;padding-right:4px;width:120px;" onblur="checkValidInput(this);" onkeypress="return isNumberKey(event);"/></div> <div class="inputDiv"><input type="text" class="input_editable" value="{$gross_turnover}" name="Detail1.{normalize-space($dbID)}.gross_turnover" id="Detail1.{normalize-space($dbID)}.gross_turnover" tabIndex="30" style="text-align:right;padding-right:4px;width:120px;" onblur="checkValidInput(this);" onkeypress="return isNumberKey(event);"/></div>
</div> </div>
</div> </div>
<div class="eachLineFields"> <div class="eachLineFields">
<div class="eachField"> <!--<div class="eachField">
<div class="labelDiv">Month<span style="color:red;">*</span> : </div> <div class="labelDiv">Month<span style="color:red;">*</span> : </div>
<div class="inputDiv"><input type="text" class="input_editable" value="{$period_code}" name="Detail1.{normalize-space($dbID)}.period_code" id="Detail1.{normalize-space($dbID)}.period_code" tabIndex="10" style="width:60px;" popupFldName="PERIOD_CODE" onkeyup="getAutoPopupData(this);" onfocus="displayPopUpIcon('popUpIcon1');"/></div> <div class="inputDiv"><input type="text" class="input_editable" value="{$period_code}" name="Detail1.{normalize-space($dbID)}.period_code" id="Detail1.{normalize-space($dbID)}.period_code" tabIndex="10" style="width:60px;" popupFldName="PERIOD_CODE" onkeyup="getAutoPopupData(this);" onfocus="displayPopUpIcon('popUpIcon1');"/></div>
<div class="popHelpIconDiv"><a href="javascript:getListOfValues('PERIOD_CODE','Detail1.{normalize-space($dbID)}.period_code','{$site_code}');" id="popUpIcon1" tabIndex="-1"><img src="/ibase/webitm/images/pophelp.png"/></a></div> <div class="popHelpIconDiv"><a href="javascript:getListOfValues('PERIOD_CODE','Detail1.{normalize-space($dbID)}.period_code','{$site_code}');" id="popUpIcon1" tabIndex="-1"><img src="/ibase/webitm/images/pophelp.png"/></a></div>
</div>-->
<div class="eachField">
<div class="labelDiv">Month<span style="color:red;">*</span> : </div>
<div class="inputDiv"><select class="input_editable" id="yearMonthInput" name="Detail1.{normalize-space($dbID)}.period_code"></select></div>
</div> </div>
<div class="eachField" style="display:none;"> <div class="eachField" style="display:none;">
<div class="labelDiv">Site code<span style="color:red;">*</span> : </div> <div class="labelDiv">Site code<span style="color:red;">*</span> : </div>
...@@ -168,15 +172,15 @@ ...@@ -168,15 +172,15 @@
</div> </div>
</div> </div>
</div> </div>
<div class="eachLineFields" style="text-align:center;margin-top:10px;"> <div class="eachLineFields" style="margin-top:10px;margin-left:60px;">
<div class="eachField"> <div class="eachField">
<div class="inputDiv"><input type="button" class="button" value="Generate OTP" title="Generate OTP" onClick="generateOTP();" tabIndex="-1" style="margin-right:0px;"/></div> <div class="inputDiv"><input type="button" class="button" value="Generate OTP" title="Generate OTP" onClick="generateOTP();" tabIndex="-1" style="margin-right:0px;"/></div>
</div> </div>
</div> </div>
<div class="eachLineFields" style="text-align:center;"> <div class="eachLineFields">
<div class="eachField" style="margin-left:12px;display:none;" id="otpInputDiv"> <div class="eachField" style="margin-left:12px;display:none;" id="otpInputDiv">
<div class="labelDiv" style="width:50px;float:none;">OTP<span style="color:red;">*</span> : </div> <div class="labelDiv" style="width:50px;float:none;">OTP<span style="color:red;">*</span> : </div>
<div class="inputDiv" style="float:none;"><input type="text" class="input_editable" name="Detail1.{normalize-space($dbID)}.otp" id="Detail1.{normalize-space($dbID)}.otp" tabIndex="60" style="width:80px;text-align:right;padding-right:4px;" onblur="checkValidInput(this);" onkeypress="return isNumberKey(event);"/></div> <div class="inputDiv" style="float:none;"><input type="text" class="input_editable" name="Detail1.{normalize-space($dbID)}.otp" id="Detail1.{normalize-space($dbID)}.otp" tabIndex="60" style="width:80px;" /></div>
<div id="timerDiv" style="display: none;margin-left: 20px;font-size:13px;float:none;"> OTP Expires in <span id="timerVal">10:00</span></div> <div id="timerDiv" style="display: none;margin-left: 20px;font-size:13px;float:none;"> OTP Expires in <span id="timerVal">10:00</span></div>
</div> </div>
</div> </div>
...@@ -193,7 +197,7 @@ ...@@ -193,7 +197,7 @@
<input type="hidden" value="1" name="FORM_NO" ID="FORM_NO" /> <input type="hidden" value="1" name="FORM_NO" ID="FORM_NO" />
<input type="hidden" value="gstpurchasedata_file" name="OBJ_NAME" /> <input type="hidden" value="gstpurchasedata_file" name="OBJ_NAME" />
<input type="hidden" value="" name="action" id="action" /> <input type="hidden" value="" name="action" id="action" />
<input type="submit" style="cursor:hand;margin-left:20px;" value="Finish" onclick="setActionVal('finish');return validateHeaderForm();displayWaitImg();" class="button" title='Finish' id="finish"/> <input type="submit" style="cursor:hand;margin-left:20px;" value="Next" onclick="setActionVal('next');return validateHeaderForm();" class="button" title='Next' id="next"/>
</div> </div>
</div> </div>
<div id="buttonreplacement"> <div id="buttonreplacement">
......
<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:decimal-format NaN="0"/>
<xsl:template match="/">
<html>
<body onload="getTitlenImg('gstpurchasedata_file');setSummaryTotal();">
<script type="text/javascript" src="/ibase/webitm/js/GSTDataSubmitWiz.js"></script>
<script type="text/javascript" src="/ibase/SignDocument/js/SignService.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery-1.10.2.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery-ui-1.10.4.custom.min.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/FixedTableHeader.js"></script>
<script language="Javascript" src="/ibase/webitm/js/jquery.datetimepicker.full.js"></script>
<script language="Javascript" src="/ibase/webitm/js/date.js"></script>
<link href="/ibase/webitm/css/jquery-ui-1.10.4.custom.min.css" rel="stylesheet"/>
<script type="text/javascript" src="/ibase/webitm/js/jquery.ui.core.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery.ui.widget.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery.ui.position.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery.ui.menu.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery.ui.autocomplete.js"></script>
<link href="/ibase/webitm/css/Galaxy/galaxy-theme.css" rel="stylesheet"/>
<link href="/ibase/webitm/css/Standard/default.css" rel="stylesheet"/>
<link href="/ibase/webitm/css/htmlWizard.css" rel="stylesheet"/>
<link href="/ibase/webitm/css/GSTDataSubmitWiz.css" rel="stylesheet"/>
<link href="/ibase/webitm/css/jquery.datetimepicker.css" rel="stylesheet"/>
<script>
<![CDATA[
$(function()
{
var acc = document.getElementsByClassName("accordion1");
var i;
for (i = 0; i < acc.length; i++)
{
acc[i].onclick = function()
{
this.classList.toggle("active");
this.nextElementSibling.classList.toggle("show");
}
}
});
$(function()
{
var acc = document.getElementsByClassName("accordion2");
var i;
for (i = 0; i < acc.length; i++)
{
acc[i].onclick = function()
{
this.classList.toggle("activeAccor");
this.classList.toggle("active");
this.nextElementSibling.classList.toggle("show");
if(this.nextElementSibling.classList == "panel2")
{
this.classList.remove("activeAccor");
}
}
}
});
$(function()
{
var acc = document.getElementsByClassName("accordion3");
var i;
for (i = 0; i < acc.length; i++)
{
acc[i].onclick = function()
{
this.classList.toggle("active");
this.nextElementSibling.classList.toggle("show");
}
}
});
$(function()
{
var panel = document.getElementsByClassName("panel2");
for (var j = 0; j < panel.length; j++)
{
panel[j].onclick = function()
{
var acc = document.getElementsByClassName("accordion2");
for(var i=0; i<acc.length; i++)
{
acc[i].classList.remove("activeAccor");
}
this.previousElementSibling.classList.add("activeAccor");
}
}
});
$(document).on("keydown", function (e) {
if (e.which === 8 && !$(e.target).is("input, textarea, form")) {
e.preventDefault();
}
else if(e.which ===13){
e.preventDefault();
}
});
]]>
</script>
<form name="gstdataSubmitForm2" id="gstdataSubmitForm2" METHOD="post" ACTION="/ibase/ITMWizardHandlerServlet">
<div class="contentHeaderLbl" style="position:fixed;overflow:hidden;width:100%;padding:12px; background-color:white;top:0px;">
&#160;&#160;<img onerror=" this.src= '/ibase/images/menuImages/errMenu.png' " style="position: absolute; margin-left: -20px; height: 20px; width: 20px;" id="titleImg" />
&#160;<div id="titleText"></div>
</div><br></br><br></br>
<div id="innerDiv" style="overflow-y:hidden;overflow-x:auto;max-height:80%;width:98%;position:absolute;">
<table id="errorActivityTable" height="10%" class="tableClass" style="margin: 12px 0px 0px 0px;position: relative;width: calc(literal('100% - 15px'));width: -moz-calc(literal('100% - 15px'));padding-right:0px; padding-left:5xp; width: -webkit-calc(literal('100% - 15px'));box-shadow: 3px 3px 3px gray;-moz-box-shadow:3px 3px 3px gray;-webkit-box-shadow: 3px 3px 3px gray;-o-box-shadow: 3px 3px 3px gray;background: rgba(255, 204, 0, 0.66);min-height: 50px;bottom:10px" border="0" cellspacing="0" cellpadding="0">
<xsl:for-each select="//error">
<xsl:if test="position() = 1">
<tr>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" valign="bottom">
Message :
</td>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" valign="bottom">
Description :
</td>
<td class="tdss_rightAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true" valign="bottom" colspan="2">
<a href="#" style="text-decoration:none;" onclick="doHideMsg('errorActivityTable')"><font style="color:#000;text-decoration:none;padding-right:5px;" ><b>X</b></font></a>
</td>
</tr>
</xsl:if>
<xsl:variable name="message"><xsl:value-of select="message"/></xsl:variable>
<xsl:variable name="description"><xsl:value-of select="description"/></xsl:variable>
<xsl:variable name="type"><xsl:value-of select="type"/></xsl:variable>
<xsl:variable name="dbID"><xsl:value-of select="@domId"/></xsl:variable>
<xsl:variable name="column_name"><xsl:value-of select="@column_name"/></xsl:variable>
<tr style="background: rgba(255, 204, 0, 0.66);">
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" >
<xsl:value-of select="message"/>
</td>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" >
<xsl:value-of select="description"/>
</td>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" >
</td>
</tr>
<script><![CDATA[]]>formatDetailWithErr();</script>
</xsl:for-each>
<xsl:for-each select="//error">
<xsl:variable name="type"><xsl:value-of select="type"/></xsl:variable>
<xsl:if test="position() = 1">
<xsl:if test="$type = 'W'">
<tr style="background: rgba(255, 204, 0, 0.66);">
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true" valign="bottom">
<input type="checkbox" name="forceSave" value="true" checked="checked" onClick="setChecked(this)"/>
</td>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true"></td>
</tr>
</xsl:if>
</xsl:if>
</xsl:for-each>
</table>
</div>
<div id="popHelpContainer"></div>
<div id="overlay"></div>
<div id="mainPageHeaderContatiner">
<div class="detailPage-input-Container">
<xsl:for-each select="//Detail2">
<xsl:variable name="dbID"><xsl:value-of select="@domID"/></xsl:variable>
<xsl:if test="$dbID = '1'">
<xsl:variable name="auth_token"><xsl:value-of select="auth_token"/></xsl:variable>
<xsl:variable name="auth_sek"><xsl:value-of select="auth_sek"/></xsl:variable>
<xsl:variable name="summary_data"><xsl:value-of select="summary_data"/></xsl:variable>
<xsl:variable name="signed_data"><xsl:value-of select="signed_data"/></xsl:variable>
<div class="inputFormDiv" style="display:none;">
<div class="eachLineFields">
<div class="eachField">
<div class="inputDiv"><input type="checkbox" value="true" checked="checked" name="Detail2.{normalize-space($dbID)}.selectbox" id="Detail2.{normalize-space($dbID)}.selectbox" tabIndex="-1"/></div>
</div>
<div class="eachField">
<div class="labelDiv">Auth token : </div>
<div class="inputDiv"><input type="text" class="editDisplayClass" value="{$auth_token}" name="Detail2.{normalize-space($dbID)}.auth_token" id="Detail2.{normalize-space($dbID)}.auth_token" readOnly="true" tabIndex="-1"/></div>
</div>
<div class="eachField">
<div class="labelDiv">Auth sek : </div>
<div class="inputDiv"><input type="text" class="editDisplayClass" value="{$auth_sek}" name="Detail2.{normalize-space($dbID)}.auth_sek" id="Detail2.{normalize-space($dbID)}.auth_sek" tabIndex="-1" readOnly="true" style="width:224px;"/></div>
</div>
</div>
<div class="eachLineFields">
<div class="eachField">
<div class="labelDiv">Summary Data : </div>
<div class="inputDiv"><input type="text" class="editDisplayClass" value="{$summary_data}" name="Detail2.{normalize-space($dbID)}.summary_data" id="Detail2.{normalize-space($dbID)}.summary_data" readOnly="true" tabIndex="-1"/></div>
</div>
<div class="eachField">
<div class="labelDiv">Signed Data : </div>
<div class="inputDiv"><input type="text" class="editDisplayClass" value="{$signed_data}" name="Detail2.{normalize-space($dbID)}.signed_data" id="Detail2.{normalize-space($dbID)}.signed_data" tabIndex="-1" readOnly="true" style="width:224px;"/></div>
</div>
</div>
</div>
</xsl:if>
<xsl:if test ="$dbID != '1'">
<xsl:for-each select="summary_data">
<button class="accordion1" type="button" expanded="false">
<div class="iconDiv">S</div>
<div style="margin-left:40px;">
<xsl:variable name="summaryRetPeriod"><xsl:value-of select="ret_period"/></xsl:variable>
<input type="hidden" id="summaryRetPeriod" value="{$summaryRetPeriod}"/>
<div class="invTypDiv">Summary of documents till date saved on GSTN server for <span id="returnMonthLbl"></span></div>
</div>
</button>
<div class="panel1" style="overflow-x:auto;">
<table class="tableClass" id="dataSummaryTable">
<thead class="table-head">
<tr class="titleRow">
<th nowrap="true" style="border-left:0px solid black !important;" align="left">Section</th>
<th nowrap="true" align="right">No. of Invoices</th>
<th nowrap="true" align="right">Amount</th>
<th nowrap="true" align="right">IGST</th>
<th nowrap="true" align="right">CGST</th>
<th nowrap="true" align="right">SGST</th>
<th nowrap="true" align="right">Cess</th>
<th nowrap="true" align="right">IGST ITC</th>
<th nowrap="true" align="right">CGST ITC</th>
<th nowrap="true" align="right">SGST ITC</th>
<th nowrap="true" style="border-right:0px solid black !important;" align="right">Cess ITC</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="section_summary">
<xsl:variable name="sectionName"><xsl:value-of select="sec_nm"/></xsl:variable>
<xsl:if test="not($sectionName='HSN') and not($sectionName='DOC_ISSUE') and not($sectionName='NIL')">
<tr>
<td style="border-left:0px solid black !important;" class="titleColumn">
<xsl:if test="$sectionName='b2b'">
Invoices for inward supply (B2B)
</xsl:if>
<xsl:if test="$sectionName='B2BA'">
Revised invoices (B2B)
</xsl:if>
<xsl:if test="$sectionName='B2CL'">
Invoices for inward supply (B2CL)
</xsl:if>
<xsl:if test="$sectionName='B2CLA'">
Revised invoices (B2CL)
</xsl:if>
<xsl:if test="$sectionName='B2CS'">
Invoices for inward supply (B2CS)
</xsl:if>
<xsl:if test="$sectionName='B2CSA'">
Revised invoices (B2CS)
</xsl:if>
<xsl:if test="$sectionName='CDNR'">
Credit/Debit note
</xsl:if>
<xsl:if test="$sectionName='CDNRA'">
Revised Credit/Debit note
</xsl:if>
<xsl:if test="$sectionName='CDNUR'">
Credit/Debit note unregistered
</xsl:if>
<xsl:if test="$sectionName='CDNURA'">
Revised Credit/Debit note
</xsl:if>
<xsl:if test="$sectionName='AT'">
Advance received
</xsl:if>
<xsl:if test="$sectionName='ATA'">
Advance received amendment
</xsl:if>
<xsl:if test="$sectionName='TXPD'">
Tax paid on advance received
</xsl:if>
<xsl:if test="$sectionName='NIL'">
Nil supplies
</xsl:if>
<xsl:if test="$sectionName='impg'">
Imports of goods
</xsl:if>
<xsl:if test="$sectionName='EXPA'">
Revised Export supplies
</xsl:if>
<xsl:if test="$sectionName='imps'">
Imports of services
</xsl:if>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="rc">
<xsl:value-of select="rc"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="ttl_val">
<xsl:value-of select="ttl_val"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="ttl_txpd_igst">
<xsl:value-of select="ttl_txpd_igst"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="ttl_txpd_cgst">
<xsl:value-of select="ttl_txpd_cgst"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="ttl_txpd_sgst">
<xsl:value-of select="ttl_txpd_sgst"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="ttl_txpd_cess">
<xsl:value-of select="ttl_txpd_cess"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="ttl_itcavld_igst">
<xsl:value-of select="ttl_itcavld_igst"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="ttl_itcavld_cgst">
<xsl:value-of select="ttl_itcavld_cgst"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="ttl_itcavld_sgst">
<xsl:value-of select="ttl_itcavld_sgst"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td style="border-right:0px solid black !important;" align="right">
<xsl:choose>
<xsl:when test="ttl_itcavld_cess">
<xsl:value-of select="ttl_itcavld_cess"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:if>
</xsl:for-each>
<tr class="totalRow">
<td style="border-left:0px solid black !important;"><b>Total</b></td>
<td align="right" class="totalCol"></td>
<td align="right" class="totalCol"></td>
<td align="right" class="totalCol"></td>
<td align="right" class="totalCol"></td>
<td align="right" class="totalCol"></td>
<td align="right" class="totalCol"></td>
<td align="right" class="totalCol"></td>
<td align="right" class="totalCol"></td>
<td align="right" class="totalCol"></td>
<td style="border-right:0px solid black !important;" align="right" class="totalCol"></td>
</tr>
</tbody>
</table>
</div>
</xsl:for-each>
</xsl:if>
</xsl:for-each>
<xsl:for-each select="//Detail2">
<xsl:variable name="dbID"><xsl:value-of select="@domID"/></xsl:variable>
<xsl:if test="$dbID = '1'">
<xsl:variable name="pan_no"><xsl:value-of select="pan_no"/></xsl:variable>
<xsl:variable name="aadhar_no"><xsl:value-of select="aadhar_no"/></xsl:variable>
<div class="inputFormDiv">
<div class="eachLineFields">
<div class="eachField">
<div class="labelDiv">Sign method<span style="color:red;">*</span> : </div>
<div class="inputDiv">
<select class="input_editable" name="Detail2.{normalize-space($dbID)}.sign_method" id="Detail2.{normalize-space($dbID)}.sign_method" onchange="showDocTextbox(this)">
<option Value=""></option>
<xsl:for-each select="sign_data/data">
<xsl:variable name="sign_method"><xsl:value-of select="sign_method"/></xsl:variable>
<xsl:if test="$sign_method='D'">
<option value="D">Digital Sign</option>
</xsl:if>
<xsl:if test="$sign_method='E'">
<option value="E">E-Sign</option>
</xsl:if>
</xsl:for-each>
</select>
</div>
</div>
</div>
<div class="eachLineFields">
<div class="eachField" id ="panTextbox" style="display:none;">
<div class="labelDiv">PAN<span style="color:red;">*</span> : </div>
<div class="inputDiv"><input type="text" class="input_editable" value="{$pan_no}" name="Detail2.{normalize-space($dbID)}.pan_no" id="Detail2.{normalize-space($dbID)}.pan_no"/></div>
</div>
<div class="eachField" id="aadhaarTextbox" style="display:none;">
<div class="labelDiv">Aadhaar<span style="color:red;">*</span> : </div>
<div class="inputDiv"><input type="number" class="input_editable" value="{$aadhar_no}" name="Detail2.{normalize-space($dbID)}.aadhar_no" id="Detail2.{normalize-space($dbID)}.aadhar_no"/></div>
</div>
</div>
</div>
</xsl:if>
</xsl:for-each>
</div>
<div id="btnDiv">
<input type="hidden" value="2" name="FORM_NO" ID="FORM_NO" />
<input type="hidden" value="gstpurchasedata_file" name="OBJ_NAME" />
<input type="hidden" value="finish" name="action" id="action" />
<input type="button" style="cursor:hand;margin-left:20px;" value="Finish" onclick="getSignedData('GSTR1');" class="button" title='Finish' id="finish"/>
</div>
</div>
<div id="buttonreplacement">
<img src="/ibase/images/preload.gif" alt="Please wait" ></img>
<span>Please wait......</span>
</div>
</form>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<html> <html>
<body onload="getTitlenImg('gstpurchasedata_getinv')"> <body onload="getTitlenImg('gstpurchasedata_getinv');returnPeriodDropdown();">
<script type="text/javascript" src="/ibase/webitm/js/GSTDataSubmitWiz.js"></script> <script type="text/javascript" src="/ibase/webitm/js/GSTDataSubmitWiz.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery-1.10.2.js"></script> <script type="text/javascript" src="/ibase/webitm/js/jquery-1.10.2.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery-ui-1.10.4.custom.min.js"></script> <script type="text/javascript" src="/ibase/webitm/js/jquery-ui-1.10.4.custom.min.js"></script>
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
<div class="eachLineFields"> <div class="eachLineFields">
<div class="eachField"> <div class="eachField">
<div class="labelDiv">GSTIN : </div> <div class="labelDiv">GSTIN : </div>
<div class="inputDiv"><input type="text" class="editDisplayClass" value="{$gstin}" name="Detail1.{normalize-space($dbID)}.gstin" id="Detail1.{normalize-space($dbID)}.gstin" tabIndex="-1"/></div> <div class="inputDiv"><input type="text" class="editDisplayClass" value="{$gstin}" name="Detail1.{normalize-space($dbID)}.gstin" id="Detail1.{normalize-space($dbID)}.gstin" tabIndex="-1" readOnly="true"/></div>
</div> </div>
<div class="eachField"> <div class="eachField">
<div class="labelDiv">User name : </div> <div class="labelDiv">User name : </div>
...@@ -140,10 +140,14 @@ ...@@ -140,10 +140,14 @@
</div> </div>
</div> </div>
<div class="eachLineFields"> <div class="eachLineFields">
<div class="eachField"> <!-- <div class="eachField">
<div class="labelDiv">Month<span style="color:red;">*</span> : </div> <div class="labelDiv">Month<span style="color:red;">*</span> : </div>
<div class="inputDiv"><input type="text" class="input_editable" value="{$period_code}" name="Detail1.{normalize-space($dbID)}.period_code" id="Detail1.{normalize-space($dbID)}.period_code" tabIndex="10" style="width:60px;" popupFldName="PERIOD_CODE" onkeyup="getAutoPopupData(this);" onfocus="displayPopUpIcon('popUpIcon1');"/></div> <div class="inputDiv"><input type="text" class="input_editable" value="{$period_code}" name="Detail1.{normalize-space($dbID)}.period_code" id="Detail1.{normalize-space($dbID)}.period_code" tabIndex="10" style="width:60px;" popupFldName="PERIOD_CODE" onkeyup="getAutoPopupData(this);" onfocus="displayPopUpIcon('popUpIcon1');"/></div>
<div class="popHelpIconDiv"><a href="javascript:getListOfValues('PERIOD_CODE','Detail1.{normalize-space($dbID)}.period_code','{$site_code}');" id="popUpIcon1" tabIndex="-1"><img src="/ibase/webitm/images/pophelp.png"/></a></div> <div class="popHelpIconDiv"><a href="javascript:getListOfValues('PERIOD_CODE','Detail1.{normalize-space($dbID)}.period_code','{$site_code}');" id="popUpIcon1" tabIndex="-1"><img src="/ibase/webitm/images/pophelp.png"/></a></div>
</div> -->
<div class="eachField">
<div class="labelDiv">Month<span style="color:red;">*</span> : </div>
<div class="inputDiv"><select class="input_editable" id="yearMonthInput" name="Detail1.{normalize-space($dbID)}.period_code"></select></div>
</div> </div>
<div class="eachField" style="display:none;"> <div class="eachField" style="display:none;">
<div class="labelDiv">Site code<span style="color:red;">*</span> : </div> <div class="labelDiv">Site code<span style="color:red;">*</span> : </div>
...@@ -168,15 +172,15 @@ ...@@ -168,15 +172,15 @@
</div> </div>
</div> </div>
</div> </div>
<div class="eachLineFields" style="text-align:center;margin-top:10px;"> <div class="eachLineFields" style=";margin-top:10px;margin-left:60px;">
<div class="eachField"> <div class="eachField">
<div class="inputDiv"><input type="button" class="button" value="Generate OTP" title="Generate OTP" onClick="generateOTP();" tabIndex="-1" style="margin-right:0px;"/></div> <div class="inputDiv"><input type="button" class="button" value="Generate OTP" title="Generate OTP" onClick="generateOTP();" tabIndex="-1" style="margin-right:0px;"/></div>
</div> </div>
</div> </div>
<div class="eachLineFields" style="text-align:center;"> <div class="eachLineFields">
<div class="eachField" style="margin-left:12px;display:none;" id="otpInputDiv"> <div class="eachField" style="margin-left:12px;display:none;" id="otpInputDiv">
<div class="labelDiv" style="width:50px;float:none;">OTP<span style="color:red;">*</span> : </div> <div class="labelDiv" style="width:50px;float:none;">OTP<span style="color:red;">*</span> : </div>
<div class="inputDiv" style="float:none;"><input type="text" class="input_editable" name="Detail1.{normalize-space($dbID)}.otp" id="Detail1.{normalize-space($dbID)}.otp" tabIndex="60" style="width:80px;text-align:right;padding-right:4px;" onblur="checkValidInput(this);" onkeypress="return isNumberKey(event);"/></div> <div class="inputDiv" style="float:none;"><input type="text" class="input_editable" name="Detail1.{normalize-space($dbID)}.otp" id="Detail1.{normalize-space($dbID)}.otp" tabIndex="60" style="width:80px;" onblur="checkValidInput(this);" onkeypress="return isNumberKey(event);"/></div>
<div id="timerDiv" style="display: none;margin-left: 20px;font-size:13px;float:none;"> OTP Expires in <span id="timerVal">10:00</span></div> <div id="timerDiv" style="display: none;margin-left: 20px;font-size:13px;float:none;"> OTP Expires in <span id="timerVal">10:00</span></div>
</div> </div>
</div> </div>
...@@ -193,7 +197,7 @@ ...@@ -193,7 +197,7 @@
<input type="hidden" value="1" name="FORM_NO" ID="FORM_NO" /> <input type="hidden" value="1" name="FORM_NO" ID="FORM_NO" />
<input type="hidden" value="gstpurchasedata_getinv" name="OBJ_NAME" /> <input type="hidden" value="gstpurchasedata_getinv" name="OBJ_NAME" />
<input type="hidden" value="" name="action" id="action" /> <input type="hidden" value="" name="action" id="action" />
<input type="submit" style="cursor:hand;margin-left:20px;" value="Finish" onclick="setActionVal('finish');return validateHeaderForm();displayWaitImg();" class="button" title='Finish' id="finish"/> <input type="submit" style="cursor:hand;margin-left:20px;" value="Next" onclick="setActionVal('next');return validateHeaderForm();displayWaitImg();" class="button" title='Next' id="next"/>
</div> </div>
</div> </div>
<div id="buttonreplacement"> <div id="buttonreplacement">
......
<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:decimal-format NaN="0"/>
<xsl:template match="/">
<html>
<body onload="getTitlenImg('gstpurchasedata_getinv');">
<script type="text/javascript" src="/ibase/webitm/js/GSTDataSubmitWiz.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery-1.10.2.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery-ui-1.10.4.custom.min.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/FixedTableHeader.js"></script>
<script language="Javascript" src="/ibase/webitm/js/jquery.datetimepicker.full.js"></script>
<script language="Javascript" src="/ibase/webitm/js/date.js"></script>
<link href="/ibase/webitm/css/jquery-ui-1.10.4.custom.min.css" rel="stylesheet"/>
<script type="text/javascript" src="/ibase/webitm/js/jquery.ui.core.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery.ui.widget.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery.ui.position.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery.ui.menu.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery.ui.autocomplete.js"></script>
<link href="/ibase/webitm/css/Galaxy/galaxy-theme.css" rel="stylesheet"/>
<link href="/ibase/webitm/css/Standard/default.css" rel="stylesheet"/>
<link href="/ibase/webitm/css/htmlWizard.css" rel="stylesheet"/>
<link href="/ibase/webitm/css/GSTDataSubmitWiz.css" rel="stylesheet"/>
<link href="/ibase/webitm/css/jquery.datetimepicker.css" rel="stylesheet"/>
<script>
<![CDATA[
$(function()
{
var acc = document.getElementsByClassName("accordion1");
var i;
for (i = 0; i < acc.length; i++)
{
acc[i].onclick = function()
{
this.classList.toggle("active");
this.nextElementSibling.classList.toggle("show");
}
}
});
$(function()
{
var acc = document.getElementsByClassName("accordion2");
var i;
for (i = 0; i < acc.length; i++)
{
acc[i].onclick = function()
{
this.classList.toggle("activeAccor");
this.classList.toggle("active");
this.nextElementSibling.classList.toggle("show");
if(this.nextElementSibling.classList == "panel2")
{
this.classList.remove("activeAccor");
}
}
}
});
$(function()
{
var acc = document.getElementsByClassName("accordion3");
var i;
for (i = 0; i < acc.length; i++)
{
acc[i].onclick = function()
{
this.classList.toggle("active");
this.nextElementSibling.classList.toggle("show");
}
}
});
$(function()
{
var panel = document.getElementsByClassName("panel2");
for (var j = 0; j < panel.length; j++)
{
panel[j].onclick = function()
{
var acc = document.getElementsByClassName("accordion2");
for(var i=0; i<acc.length; i++)
{
acc[i].classList.remove("activeAccor");
}
this.previousElementSibling.classList.add("activeAccor");
}
}
});
$(document).on("keydown", function (e) {
if (e.which === 8 && !$(e.target).is("input, textarea, form")) {
e.preventDefault();
}
else if(e.which ===13){
e.preventDefault();
}
});
]]>
</script>
<form name="gstdataSubmitForm2" id="gstdataSubmitForm2" METHOD="post" ACTION="/ibase/ITMWizardHandlerServlet">
<div class="contentHeaderLbl" style="position:fixed;overflow:hidden;width:100%;padding:12px; background-color:white;top:0px;">
&#160;&#160;<img onerror=" this.src= '/ibase/images/menuImages/errMenu.png' " style="position: absolute; margin-left: -20px; height: 20px; width: 20px;" id="titleImg" />
&#160;<div id="titleText"></div>
</div><br></br><br></br>
<div id="innerDiv" style="overflow-y:hidden;overflow-x:auto;max-height:80%;width:98%;position:absolute;">
<table id="errorActivityTable" height="10%" class="tableClass" style="margin: 12px 0px 0px 0px;position: relative;width: calc(literal('100% - 15px'));width: -moz-calc(literal('100% - 15px'));padding-right:0px; padding-left:5xp; width: -webkit-calc(literal('100% - 15px'));box-shadow: 3px 3px 3px gray;-moz-box-shadow:3px 3px 3px gray;-webkit-box-shadow: 3px 3px 3px gray;-o-box-shadow: 3px 3px 3px gray;background: rgba(255, 204, 0, 0.66);min-height: 50px;bottom:10px" border="0" cellspacing="0" cellpadding="0">
<xsl:for-each select="//error">
<xsl:if test="position() = 1">
<tr>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" valign="bottom">
Message :
</td>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" valign="bottom">
Description :
</td>
<td class="tdss_rightAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true" valign="bottom" colspan="2">
<a href="#" style="text-decoration:none;" onclick="doHideMsg('errorActivityTable')"><font style="color:#000;text-decoration:none;padding-right:5px;" ><b>X</b></font></a>
</td>
</tr>
</xsl:if>
<xsl:variable name="message"><xsl:value-of select="message"/></xsl:variable>
<xsl:variable name="description"><xsl:value-of select="description"/></xsl:variable>
<xsl:variable name="type"><xsl:value-of select="type"/></xsl:variable>
<xsl:variable name="dbID"><xsl:value-of select="@domId"/></xsl:variable>
<xsl:variable name="column_name"><xsl:value-of select="@column_name"/></xsl:variable>
<tr style="background: rgba(255, 204, 0, 0.66);">
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" >
<xsl:value-of select="message"/>
</td>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" >
<xsl:value-of select="description"/>
</td>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" >
</td>
</tr>
<script><![CDATA[]]>formatDetailWithErr();</script>
</xsl:for-each>
<xsl:for-each select="//error">
<xsl:variable name="type"><xsl:value-of select="type"/></xsl:variable>
<xsl:if test="position() = 1">
<xsl:if test="$type = 'W'">
<tr style="background: rgba(255, 204, 0, 0.66);">
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true" valign="bottom">
<input type="checkbox" name="forceSave" value="true" checked="checked" onClick="setChecked(this)"/>
</td>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true"></td>
</tr>
</xsl:if>
</xsl:if>
</xsl:for-each>
</table>
</div>
<div id="popHelpContainer"></div>
<div id="overlay"></div>
<div id="mainPageHeaderContatiner">
<div class="detailPage-input-Container">
<xsl:for-each select="//Detail2">
<xsl:variable name="dbID"><xsl:value-of select="@domID"/></xsl:variable>
<xsl:if test="$dbID = '1'">
<xsl:variable name="auth_token"><xsl:value-of select="auth_token"/></xsl:variable>
<xsl:variable name="auth_sek"><xsl:value-of select="auth_sek"/></xsl:variable>
<div class="inputFormDiv" style="display:none;">
<div class="eachLineFields">
<div class="eachField">
<div class="inputDiv"><input type="checkbox" value="true" checked="checked" name="Detail2.{normalize-space($dbID)}.selectbox" id="Detail2.{normalize-space($dbID)}.selectbox" tabIndex="-1"/></div>
</div>
<div class="eachField">
<div class="labelDiv">Auth token : </div>
<div class="inputDiv"><input type="text" class="editDisplayClass" value="{$auth_token}" name="Detail2.{normalize-space($dbID)}.auth_token" id="Detail2.{normalize-space($dbID)}.auth_token" tabIndex="-1"/></div>
</div>
<div class="eachField">
<div class="labelDiv">Auth sek : </div>
<div class="inputDiv"><input type="text" class="editDisplayClass" value="{$auth_sek}" name="Detail2.{normalize-space($dbID)}.auth_sek" id="Detail2.{normalize-space($dbID)}.auth_sek" tabIndex="-1" readOnly="true" style="width:224px;"/></div>
</div>
</div>
</div>
</xsl:if>
<xsl:if test ="$dbID != '1'">
<xsl:for-each select="b2b_invoices">
<button class="accordion1" type="button" expanded="false">
<div class="iconDiv">I</div>
<div class="invTypDiv">Invoices for inward supply (B2B)</div>
</button>
<div class="panel1">
<xsl:for-each select="b2b">
<button class="accordion2" type="button" expanded="false">
Counter party GSTIN - <xsl:value-of select="ctin"/>
</button>
<div class="panel2">
<xsl:for-each select="inv">
<button class="accordion3" type="button" expanded="false">
Invoice number - <xsl:value-of select="inum"/>, Date - <xsl:value-of select="idt"/>, Amount - <xsl:value-of select="val"/>
</button>
<div class="panel3">
<table class="tableClass">
<thead class="table-head">
<tr>
<th nowrap="true" style="border-left:0px solid black !important;" align="right">Serial #</th>
<th nowrap="true" align="right">Taxable amount</th>
<th nowrap="true" align="right">Rate</th>
<th nowrap="true" align="right">IGST</th>
<th nowrap="true" align="right">CGST</th>
<th nowrap="true" align="right">SGST</th>
<th nowrap="true" align="right">Cess</th>
<th nowrap="true">Eligibility</th>
<th nowrap="true" align="right">IGST ITC</th>
<th nowrap="true" align="right">CGST ITC</th>
<th nowrap="true" align="right">SGST ITC</th>
<th nowrap="true" style="border-right:0px solid black !important;" align="right">Cess ITC</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="itms">
<tr class='trClass'>
<td class="td_rightAlign" style="border-left:0px solid black !important;"><xsl:value-of select="num"/></td>
<td class="td_rightAlign"><xsl:value-of select="itm_det/txval"/></td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itm_det/rt">
<xsl:value-of select="itm_det/rt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itm_det/iamt">
<xsl:value-of select="itm_det/iamt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itm_det/camt">
<xsl:value-of select="itm_det/camt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itm_det/samt">
<xsl:value-of select="itm_det/samt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itm_det/csamt">
<xsl:value-of select="itm_det/csamt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td>
<xsl:variable name="elg"><xsl:value-of select="itc/elg"/></xsl:variable>
<xsl:if test="$elg='ip'">
Inputs
</xsl:if>
<xsl:if test="$elg='cp'">
Capital goods
</xsl:if>
<xsl:if test="$elg='is'">
Input Service
</xsl:if>
<xsl:if test="$elg='no'">
None
</xsl:if>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itc/tx_i">
<xsl:value-of select="itc/tx_i"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itc/tx_c">
<xsl:value-of select="itc/tx_c"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itc/tx_s">
<xsl:value-of select="itc/tx_s"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign" style="border-right:0px solid black !important;">
<xsl:choose>
<xsl:when test="itc/tx_cs">
<xsl:value-of select="itc/tx_cs"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
</xsl:for-each>
</div>
</xsl:for-each>
</div>
</xsl:for-each>
<xsl:for-each select="b2bur_data">
<button class="accordion1" type="button" expanded="false">
<div class="iconDiv">I</div>
<div class="invTypDiv">Invoices for inward supply (Unregistred)</div>
</button>
<div class="panel1">
<xsl:for-each select="b2bur/inv">
<button class="accordion2" type="button" expanded="false">
Invoice number - <xsl:value-of select="inum"/>, Date - <xsl:value-of select="idt"/>, Amount - <xsl:value-of select="val"/>
</button>
<div class="panel2">
<table class="tableClass">
<thead class="table-head">
<tr>
<th nowrap="true" style="border-left:0px solid black !important;" align="right">Serial #</th>
<th nowrap="true" align="right">Taxable amount</th>
<th nowrap="true" align="right">Rate</th>
<th nowrap="true" align="right">IGST</th>
<th nowrap="true" align="right">CGST</th>
<th nowrap="true" align="right">SGST</th>
<th nowrap="true" align="right">Cess</th>
<th nowrap="true">Eligibility</th>
<th nowrap="true" align="right">IGST ITC</th>
<th nowrap="true" align="right">CGST ITC</th>
<th nowrap="true" align="right">SGST ITC</th>
<th nowrap="true" style="border-right:0px solid black !important;" align="right">Cess ITC</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="itms">
<tr class='trClass'>
<td class="td_rightAlign" style="border-left:0px solid black !important;"><xsl:value-of select="num"/></td>
<td class="td_rightAlign"><xsl:value-of select="itm_det/txval"/></td>
<td class="td_rightAlign">
<xsl:value-of select="itm_det/rt"/>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itm_det/iamt">
<xsl:value-of select="itm_det/iamt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itm_det/camt">
<xsl:value-of select="itm_det/camt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itm_det/samt">
<xsl:value-of select="itm_det/samt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itm_det/csamt">
<xsl:value-of select="itm_det/csamt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td>
<xsl:variable name="elg"><xsl:value-of select="itc/elg"/></xsl:variable>
<xsl:if test="$elg='ip'">
Inputs
</xsl:if>
<xsl:if test="$elg='cp'">
Capital goods
</xsl:if>
<xsl:if test="$elg='is'">
Input Service
</xsl:if>
<xsl:if test="$elg='no'">
None
</xsl:if>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itc/tx_i">
<xsl:value-of select="itc/tx_i"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itc/tx_c">
<xsl:value-of select="itc/tx_c"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itc/tx_s">
<xsl:value-of select="itc/tx_s"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign" style="border-right:0px solid black !important;">
<xsl:choose>
<xsl:when test="itc/tx_cs">
<xsl:value-of select="itc/tx_cs"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
</xsl:for-each>
</div>
</xsl:for-each>
<xsl:for-each select="impg_data">
<button class="accordion1" type="button" expanded="false">
<div class="iconDiv">I</div>
<div class="invTypDiv">Imports of goods</div>
</button>
<div class="panel1">
<xsl:for-each select="imp_g">
<button class="accordion2" type="button" expanded="false">
Bill of entry - <xsl:value-of select="boe_num"/>, Date - <xsl:value-of select="boe_dt"/>, Amount - <xsl:value-of select="boe_val"/><xsl:if test="stin">, Supplier GSTIN - <xsl:value-of select="stin"/></xsl:if>
</button>
<div class="panel2">
<table class="tableClass">
<thead class="table-head">
<tr>
<th nowrap="true" style="border-left:0px solid black !important;" align="right">Serial #</th>
<th nowrap="true" align="right">Taxable amount</th>
<th nowrap="true" align="right">Rate</th>
<th nowrap="true" align="right">IGST</th>
<th nowrap="true" align="right">CGST</th>
<th nowrap="true" align="right">SGST</th>
<th nowrap="true" align="right">Cess</th>
<th nowrap="true">Eligibility</th>
<th nowrap="true" align="right">IGST ITC</th>
<th nowrap="true" align="right">CGST ITC</th>
<th nowrap="true" align="right">SGST ITC</th>
<th nowrap="true" style="border-right:0px solid black !important;" align="right">Cess ITC</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="itms">
<tr class='trClass'>
<td class="td_rightAlign" style="border-left:0px solid black !important;"><xsl:value-of select="num"/></td>
<td class="td_rightAlign"><xsl:value-of select="txval"/></td>
<td class="td_rightAlign">
<xsl:value-of select="rt"/>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="iamt">
<xsl:value-of select="iamt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="camt">
<xsl:value-of select="camt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="samt">
<xsl:value-of select="samt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="csamt">
<xsl:value-of select="csamt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td>
<xsl:variable name="elg"><xsl:value-of select="elg"/></xsl:variable>
<xsl:if test="$elg='ip'">
Inputs
</xsl:if>
<xsl:if test="$elg='cp'">
Capital goods
</xsl:if>
<xsl:if test="$elg='is'">
Input Service
</xsl:if>
<xsl:if test="$elg='no'">
None
</xsl:if>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="tx_i">
<xsl:value-of select="tx_i"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="tx_c">
<xsl:value-of select="tx_c"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="tx_s">
<xsl:value-of select="tx_s"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign" style="border-right:0px solid black !important;">
<xsl:choose>
<xsl:when test="tx_cs">
<xsl:value-of select="tx_cs"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
</xsl:for-each>
</div>
</xsl:for-each>
<xsl:for-each select="imps_data">
<button class="accordion1" type="button" expanded="false">
<div class="iconDiv">I</div>
<div class="invTypDiv">Imports of services</div>
</button>
<div class="panel1">
<xsl:for-each select="imp_s">
<button class="accordion2" type="button" expanded="false">
Invoice number - <xsl:value-of select="inum"/>, Date - <xsl:value-of select="ival"/>, Amount - <xsl:value-of select="ival"/>
</button>
<div class="panel2">
<table class="tableClass">
<thead class="table-head">
<tr>
<th nowrap="true" style="border-left:0px solid black !important;" align="right">Serial #</th>
<th nowrap="true" align="right">Taxable amount</th>
<th nowrap="true" align="right">Rate</th>
<th nowrap="true" align="right">IGST</th>
<th nowrap="true" align="right">CGST</th>
<th nowrap="true" align="right">SGST</th>
<th nowrap="true" align="right">Cess</th>
<th nowrap="true">Eligibility</th>
<th nowrap="true" align="right">IGST ITC</th>
<th nowrap="true" align="right">CGST ITC</th>
<th nowrap="true" align="right">SGST ITC</th>
<th nowrap="true" style="border-right:0px solid black !important;" align="right">Cess ITC</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="itms">
<tr class='trClass'>
<td class="td_rightAlign" style="border-left:0px solid black !important;"><xsl:value-of select="num"/></td>
<td class="td_rightAlign"><xsl:value-of select="txval"/></td>
<td class="td_rightAlign">
<xsl:value-of select="rt"/>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="iamt">
<xsl:value-of select="iamt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="camt">
<xsl:value-of select="camt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="samt">
<xsl:value-of select="samt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="csamt">
<xsl:value-of select="csamt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td>
<xsl:variable name="elg"><xsl:value-of select="elg"/></xsl:variable>
<xsl:if test="$elg='ip'">
Inputs
</xsl:if>
<xsl:if test="$elg='cp'">
Capital goods
</xsl:if>
<xsl:if test="$elg='is'">
Input Service
</xsl:if>
<xsl:if test="$elg='no'">
None
</xsl:if>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="tx_i">
<xsl:value-of select="tx_i"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="tx_c">
<xsl:value-of select="tx_c"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="tx_s">
<xsl:value-of select="tx_s"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign" style="border-right:0px solid black !important;">
<xsl:choose>
<xsl:when test="tx_cs">
<xsl:value-of select="tx_cs"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
</xsl:for-each>
</div>
</xsl:for-each>
<xsl:for-each select="cdnr_data">
<button class="accordion1" type="button" expanded="false">
<div class="iconDiv">C</div>
<div class="invTypDiv">Credit/Debit note</div>
</button>
<div class="panel1">
<xsl:for-each select="cdn">
<button class="accordion2" type="button" expanded="false">
Counter party GSTIN - <xsl:value-of select="ctin"/>
</button>
<div class="panel2">
<xsl:for-each select="nt">
<button class="accordion3" type="button" expanded="false">
<p style="font-size:15px;margin:0px;">Credit/Debit note number - <xsl:value-of select="nt_num"/>, Date - <xsl:value-of select="nt_dt"/>, Amount - <xsl:value-of select="val"/></p>
<p style="margin:0px;">Reference invoice number - <xsl:value-of select="inum"/>, Date - <xsl:value-of select="idt"/></p>
</button>
<div class="panel3">
<table class="tableClass">
<thead class="table-head">
<tr>
<th nowrap="true" style="border-left:0px solid black !important;" align="right">Serial #</th>
<th nowrap="true" align="right">Taxable amount</th>
<th nowrap="true" align="right">Rate</th>
<th nowrap="true" align="right">IGST</th>
<th nowrap="true" align="right">CGST</th>
<th nowrap="true" align="right">SGST</th>
<th nowrap="true" align="right">Cess</th>
<th nowrap="true">Eligibility</th>
<th nowrap="true" align="right">IGST ITC</th>
<th nowrap="true" align="right">CGST ITC</th>
<th nowrap="true" align="right">SGST ITC</th>
<th nowrap="true" style="border-right:0px solid black !important;" align="right">Cess ITC</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="itms">
<tr class='trClass'>
<td class="td_rightAlign" style="border-left:0px solid black !important;"><xsl:value-of select="num"/></td>
<td class="td_rightAlign"><xsl:value-of select="itm_det/txval"/></td>
<td class="td_rightAlign"><xsl:value-of select="itm_det/rt"/></td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itm_det/iamt">
<xsl:value-of select="itm_det/iamt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itm_det/camt">
<xsl:value-of select="itm_det/camt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itm_det/samt">
<xsl:value-of select="itm_det/samt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="csamt">
<xsl:value-of select="csamt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td>
<xsl:variable name="elg"><xsl:value-of select="itc/elg"/></xsl:variable>
<xsl:if test="$elg='ip'">
Inputs
</xsl:if>
<xsl:if test="$elg='cp'">
Capital goods
</xsl:if>
<xsl:if test="$elg='is'">
Input Service
</xsl:if>
<xsl:if test="$elg='no'">
None
</xsl:if>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itc/tx_i">
<xsl:value-of select="itc/tx_i"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itc/tx_c">
<xsl:value-of select="itc/tx_c"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itc/tx_s">
<xsl:value-of select="itc/tx_s"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign" style="border-right:0px solid black !important;">
<xsl:choose>
<xsl:when test="itc/tx_cs">
<xsl:value-of select="itc/tx_cs"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
</xsl:for-each>
</div>
</xsl:for-each>
</div>
</xsl:for-each>
<xsl:for-each select="cdnur_data">
<button class="accordion1" type="button" expanded="false">
<div class="iconDiv">C</div>
<div class="invTypDiv">Credit/Debit note unregistered</div>
</button>
<div class="panel1">
<xsl:for-each select="cdnur">
<button class="accordion2" type="button" expanded="false">
<p style="font-size:15px;margin:0px;">Credit/Debit note number - <xsl:value-of select="nt_num"/>, Date - <xsl:value-of select="nt_dt"/>, Amount - <xsl:value-of select="val"/></p>
<p style="font-size:13px;margin:0px;">Reference invoice number - <xsl:value-of select="inum"/>, Date - <xsl:value-of select="idt"/></p>
</button>
<div class="panel2">
<table class="tableClass">
<thead class="table-head">
<tr>
<th nowrap="true" style="border-left:0px solid black !important;" align="right">Serial #</th>
<th nowrap="true" align="right">Taxable amount</th>
<th nowrap="true" align="right">Rate</th>
<th nowrap="true" align="right">IGST</th>
<th nowrap="true" align="right">CGST</th>
<th nowrap="true" align="right">SGST</th>
<th nowrap="true" align="right">Cess</th>
<th nowrap="true">Eligibility</th>
<th nowrap="true" align="right">IGST ITC</th>
<th nowrap="true" align="right">CGST ITC</th>
<th nowrap="true" align="right">SGST ITC</th>
<th nowrap="true" style="border-right:0px solid black !important;" align="right">Cess ITC</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="itms">
<tr class='trClass'>
<td class="td_rightAlign" style="border-left:0px solid black !important;"><xsl:value-of select="num"/></td>
<td class="td_rightAlign"><xsl:value-of select="itm_det/txval"/></td>
<td class="td_rightAlign"><xsl:value-of select="itm_det/rt"/></td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itm_det/iamt">
<xsl:value-of select="itm_det/iamt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itm_det/camt">
<xsl:value-of select="itm_det/camt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itm_det/samt">
<xsl:value-of select="itm_det/samt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="csamt">
<xsl:value-of select="csamt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td>
<xsl:variable name="elg"><xsl:value-of select="itc/elg"/></xsl:variable>
<xsl:if test="$elg='ip'">
Inputs
</xsl:if>
<xsl:if test="$elg='cp'">
Capital goods
</xsl:if>
<xsl:if test="$elg='is'">
Input Service
</xsl:if>
<xsl:if test="$elg='no'">
None
</xsl:if>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itc/tx_i">
<xsl:value-of select="itc/tx_i"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itc/tx_c">
<xsl:value-of select="itc/tx_c"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itc/tx_s">
<xsl:value-of select="itc/tx_s"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign" style="border-right:0px solid black !important;">
<xsl:choose>
<xsl:when test="itc/tx_cs">
<xsl:value-of select="itc/tx_cs"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
</xsl:for-each>
</div>
</xsl:for-each>
<xsl:for-each select="txli_data">
<button class="accordion1" type="button" expanded="false">
<div class="iconDiv">T</div>
<div class="invTypDiv">Tax liability under Reverse charge</div>
</button>
<div class="panel1">
<table class="tableClass">
<thead class="table-head">
<tr>
<th nowrap="true" style="border-left:0px solid black !important;" align="left">Supply type</th>
<th nowrap="true" align="right">Advance amount</th>
<th nowrap="true" align="right">Rate</th>
<th nowrap="true" align="right">IGST</th>
<th nowrap="true" align="right">CGST</th>
<th nowrap="true" align="right">SGST</th>
<th nowrap="true" style="border-right:0px solid black !important;" align="right">Cess</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="txi">
<xsl:variable name="supply_type"><xsl:value-of select="sply_ty"/></xsl:variable>
<tr class='trClass'>
<td class="td_lefttAlign" style="border-left:0px solid black !important;">
<xsl:if test="$supply_type='INTER'">
Inter state
</xsl:if>
<xsl:if test="$supply_type='INTRA'">
Intra state
</xsl:if>
</td>
<td class="td_rightAlign"><xsl:value-of select="itms/adamt"/></td>
<td class="td_rightAlign"><xsl:value-of select="itms/rt"/></td>
<td class="td_rightAlign">
<xsl:if test="$supply_type='INTER'">
<xsl:value-of select="itms/iamt"/>
</xsl:if>
<xsl:if test="$supply_type='INTRA'">
0
</xsl:if>
</td>
<td class="td_rightAlign">
<xsl:if test="$supply_type='INTER'">
0
</xsl:if>
<xsl:if test="$supply_type='INTRA'">
<xsl:value-of select="itms/camt"/>
</xsl:if>
</td>
<td class="td_rightAlign">
<xsl:if test="$supply_type='INTER'">
0
</xsl:if>
<xsl:if test="$supply_type='INTRA'">
<xsl:value-of select="itms/samt"/>
</xsl:if>
</td>
<td class="td_rightAlign" style="border-right:0px solid black !important;"><xsl:value-of select="itms/csamt"/></td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
</xsl:for-each>
<xsl:for-each select="txp_data">
<button class="accordion1" type="button" expanded="false">
<div class="iconDiv">T</div>
<div class="invTypDiv">Tax paid under Reverse charge</div>
</button>
<div class="panel1">
<table class="tableClass">
<thead class="table-head">
<tr>
<th nowrap="true" style="border-left:0px solid black !important;" align="left">Supply type</th>
<th nowrap="true" align="right">Adjusted amount</th>
<th nowrap="true" align="right">Rate</th>
<th nowrap="true" align="right">IGST</th>
<th nowrap="true" align="right">CGST</th>
<th nowrap="true" align="right">SGST</th>
<th nowrap="true" style="border-right:0px solid black !important;" align="right">Cess</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="txpd">
<xsl:variable name="supply_type"><xsl:value-of select="sply_ty"/></xsl:variable>
<tr class='trClass'>
<td class="td_lefttAlign" style="border-left:0px solid black !important;">
<xsl:if test="$supply_type='INTER'">
Inter state
</xsl:if>
<xsl:if test="$supply_type='INTRA'">
Intra state
</xsl:if>
</td>
<td class="td_rightAlign"><xsl:value-of select="itms/adamt"/></td>
<td class="td_rightAlign"><xsl:value-of select="itms/rt"/></td>
<td class="td_rightAlign">
<xsl:if test="$supply_type='INTER'">
<xsl:value-of select="itms/iamt"/>
</xsl:if>
<xsl:if test="$supply_type='INTRA'">
0
</xsl:if>
</td>
<td class="td_rightAlign">
<xsl:if test="$supply_type='INTER'">
0
</xsl:if>
<xsl:if test="$supply_type='INTRA'">
<xsl:value-of select="itms/camt"/>
</xsl:if>
</td>
<td class="td_rightAlign">
<xsl:if test="$supply_type='INTER'">
0
</xsl:if>
<xsl:if test="$supply_type='INTRA'">
<xsl:value-of select="itms/samt"/>
</xsl:if>
</td>
<td class="td_rightAlign" style="border-right:0px solid black !important;"><xsl:value-of select="itms/csamt"/></td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
</xsl:for-each>
<xsl:for-each select="nil_data">
<button class="accordion1" type="button" expanded="false">
<div class="iconDiv">N</div>
<div class="invTypDiv">Nil rated supplies</div>
</button>
<div class="panel1">
<table class="tableClass">
<thead class="table-head">
<tr>
<th nowrap="true" style="border-left:0px solid black !important;" align="left">Supply type</th>
<th nowrap="true" align="right">Compouning delar supplies</th>
<th nowrap="true" align="right">Nil supplies</th>
<th nowrap="true" align="right">Exempted supplies</th>
<th nowrap="true" style="border-right:0px solid black !important;" align="right">Non GST supplies</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="nil_supplies">
<xsl:for-each select="inter">
<tr>
<td class="td_lefttAlign" style="border-left:0px solid black !important;">Inter state nil supplies</td>
<td class="td_rightAlign"><xsl:value-of select="cpddr"/></td>
<td class="td_rightAlign"><xsl:value-of select="nilsply"/></td>
<td class="td_rightAlign"><xsl:value-of select="exptdsply"/></td>
<td class="td_rightAlign" style="border-right:0px solid black !important;"><xsl:value-of select="ngsply"/></td>
</tr>
</xsl:for-each>
<xsl:for-each select="intra">
<tr>
<td class="td_lefttAlign" style="border-left:0px solid black !important;">Intra state nil supplies</td>
<td class="td_rightAlign"><xsl:value-of select="cpddr"/></td>
<td class="td_rightAlign"><xsl:value-of select="nilsply"/></td>
<td class="td_rightAlign"><xsl:value-of select="exptdsply"/></td>
<td class="td_rightAlign" style="border-right:0px solid black !important;"><xsl:value-of select="ngsply"/></td>
</tr>
</xsl:for-each>
</xsl:for-each>
</tbody>
</table>
</div>
</xsl:for-each>
<xsl:for-each select="hsnsum_data">
<button class="accordion1" type="button" expanded="false">
<div class="iconDiv">H</div>
<div class="invTypDiv">HSN summary data</div>
</button>
<div class="panel1">
<table class="tableClass">
<thead class="table-head">
<tr>
<th nowrap="true" style="border-left:0px solid black !important;" align="right">Serial #</th>
<th nowrap="true" align="left">Goods/Service code</th>
<th nowrap="true" align="left">Description</th>
<th nowrap="true" align="right">Quantity</th>
<th nowrap="true" align="left">Unit</th>
<th nowrap="true" align="right">Value</th>
<th nowrap="true" align="right">Taxable value</th>
<th nowrap="true" align="right">IGST</th>
<th nowrap="true" align="right">CGST</th>
<th nowrap="true" align="right">SGST</th>
<th nowrap="true" style="border-right:0px solid black !important;" align="right">Cess</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="hsnsum/det">
<tr class='trClass'>
<td class="td_rightAlign" style="border-left:0px solid black !important;"><xsl:value-of select="num"/></td>
<td class="td_lefttAlign"><xsl:value-of select="hsn_sc"/></td>
<td class="td_lefttAlign"><xsl:value-of select="desc"/></td>
<td class="td_rightAlign"><xsl:value-of select="qty"/></td>
<td class="td_lefttAlign"><xsl:value-of select="uqc"/></td>
<td class="td_rightAlign"><xsl:value-of select="val"/></td>
<td class="td_rightAlign"><xsl:value-of select="txval"/></td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="iamt">
<xsl:value-of select="iamt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="camt">
<xsl:value-of select="camt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="samt">
<xsl:value-of select="samt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign" style="border-right:0px solid black !important;">
<xsl:choose>
<xsl:when test="csamt">
<xsl:value-of select="csamt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
</xsl:for-each>
<xsl:for-each select="itcrvsl_data">
<button class="accordion1" type="button" expanded="false">
<div class="iconDiv">I</div>
<div class="invTypDiv">ITC Reversal details</div>
</button>
<div class="panel1">
<table class="tableClass">
<thead class="table-head">
<tr>
<th nowrap="true" style="border-left:0px solid black !important;">Description</th>
<th nowrap="true" align="right">IGST</th>
<th nowrap="true" align="right">CGST</th>
<th nowrap="true" align="right">SGST</th>
<th nowrap="true" style="border-right:0px solid black !important;" align="right">Cess</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="itc_rvsl/*[not(name() = 'chksum')]">
<tr>
<td style="border-left:0px solid black !important;">
<xsl:variable name="rvslTyp"><xsl:value-of select ="local-name()"/></xsl:variable>
<xsl:if test="$rvslTyp='rule2_2'">
Rule 2(2) of ITC Rules
</xsl:if>
<xsl:if test="$rvslTyp='rule7_1_m'">
Rule 7 (1) (m)of ITC Rules
</xsl:if>
<xsl:if test="$rvslTyp='rule8_1_h'">
Rule 8(1) (h) of the ITC Rules
</xsl:if>
<xsl:if test="$rvslTyp='rule7_2_a'">
Rule 7 (2)(a) of ITC Rules
</xsl:if>
<xsl:if test="$rvslTyp='rule7_2_b'">
Rule 7(2)(b) of ITC Rules
</xsl:if>
<xsl:if test="$rvslTyp='revitc'">
ITC Reversal
</xsl:if>
<xsl:if test="$rvslTyp='other'">
Other
</xsl:if>
</td>
<td class="td_rightAlign"><xsl:value-of select ="iamt"/></td>
<td class="td_rightAlign"><xsl:value-of select ="camt"/></td>
<td class="td_rightAlign"><xsl:value-of select ="samt"/></td>
<td class="td_rightAlign" style="border-right:0px solid black !important;"><xsl:value-of select ="csamt"/></td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
</xsl:for-each>
</xsl:if>
</xsl:for-each>
</div>
</div>
<div id="buttonreplacement">
<img src="/ibase/images/preload.gif" alt="Please wait" ></img>
<span>Please wait......</span>
</div>
</form>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<html> <html>
<body onload="getTitlenImg('gstpurchasedata_save')"> <body onload="getTitlenImg('gstpurchasedata_save');returnPeriodDropdown();">
<script type="text/javascript" src="/ibase/webitm/js/GSTDataSubmitWiz.js"></script> <script type="text/javascript" src="/ibase/webitm/js/GSTDataSubmitWiz.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery-1.10.2.js"></script> <script type="text/javascript" src="/ibase/webitm/js/jquery-1.10.2.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery-ui-1.10.4.custom.min.js"></script> <script type="text/javascript" src="/ibase/webitm/js/jquery-ui-1.10.4.custom.min.js"></script>
...@@ -113,13 +113,14 @@ ...@@ -113,13 +113,14 @@
<xsl:variable name="app_key"><xsl:value-of select="app_key"/></xsl:variable> <xsl:variable name="app_key"><xsl:value-of select="app_key"/></xsl:variable>
<xsl:variable name="returns_type"><xsl:value-of select="returns_type"/></xsl:variable> <xsl:variable name="returns_type"><xsl:value-of select="returns_type"/></xsl:variable>
<xsl:variable name="gross_turnover"><xsl:value-of select="gross_turnover"/></xsl:variable> <xsl:variable name="gross_turnover"><xsl:value-of select="gross_turnover"/></xsl:variable>
<xsl:variable name="cur_gross_turnover"><xsl:value-of select="cur_gross_turnover"/></xsl:variable>
<xsl:variable name="action"><xsl:value-of select="action"/></xsl:variable> <xsl:variable name="action"><xsl:value-of select="action"/></xsl:variable>
<div class="inputFormDiv"> <div class="inputFormDiv">
<div class="eachLineFields"> <div class="eachLineFields">
<div class="eachField"> <div class="eachField">
<div class="labelDiv">GSTIN : </div> <div class="labelDiv">GSTIN : </div>
<div class="inputDiv"><input type="text" class="editDisplayClass" value="{$gstin}" name="Detail1.{normalize-space($dbID)}.gstin" id="Detail1.{normalize-space($dbID)}.gstin" tabIndex="-1"/></div> <div class="inputDiv"><input type="text" class="editDisplayClass" value="{$gstin}" name="Detail1.{normalize-space($dbID)}.gstin" id="Detail1.{normalize-space($dbID)}.gstin" tabIndex="-1" readOnly="true" /></div>
</div> </div>
<div class="eachField"> <div class="eachField">
<div class="labelDiv">User name : </div> <div class="labelDiv">User name : </div>
...@@ -134,16 +135,21 @@ ...@@ -134,16 +135,21 @@
<div class="eachField"> <div class="eachField">
<div class="inputDiv"><input type="text" class="editDisplayClass" value="{$state_descr}" name="Detail1.{normalize-space($dbID)}.state_descr" id="Detail1.{normalize-space($dbID)}.state_descr" tabIndex="-1" readOnly="true" style="width:150px;"/></div> <div class="inputDiv"><input type="text" class="editDisplayClass" value="{$state_descr}" name="Detail1.{normalize-space($dbID)}.state_descr" id="Detail1.{normalize-space($dbID)}.state_descr" tabIndex="-1" readOnly="true" style="width:150px;"/></div>
</div> </div>
<div class="eachField" style="float:right;"> </div>
<div class="eachLineFields" style="width:675px;display:none;">
<div class="eachField">
<div class="labelDiv">Gross turnover<span style="color:red;">*</span> : </div> <div class="labelDiv">Gross turnover<span style="color:red;">*</span> : </div>
<div class="inputDiv"><input type="text" class="input_editable" value="{$gross_turnover}" name="Detail1.{normalize-space($dbID)}.gross_turnover" id="Detail1.{normalize-space($dbID)}.gross_turnover" tabIndex="30" style="text-align:right;padding-right:4px;width:120px;" onblur="checkValidInput(this);" onkeypress="return isNumberKey(event);"/></div> <div class="inputDiv"><input type="text" class="editDisplayClass" value="{$gross_turnover}" name="Detail1.{normalize-space($dbID)}.gross_turnover" id="Detail1.{normalize-space($dbID)}.gross_turnover" tabIndex="-1" readOnly="true" style="text-align:right;padding-right:4px;width:120px;" onblur="checkValidInput(this);" onkeypress="return isNumberKey(event);"/></div>
</div>
<div class="eachField" style="float:right;">
<div class="labelDiv" style="width:250px;">Current year Gross turnover<span style="color:red;">*</span> : </div>
<div class="inputDiv"><input type="text" class="editDisplayClass" value="{$cur_gross_turnover}" name="Detail1.{normalize-space($dbID)}.cur_gross_turnover" id="Detail1.{normalize-space($dbID)}.cur_gross_turnover" tabIndex="-1" readOnly="true" style="text-align:right;padding-right:4px;width:120px;" onblur="checkValidInput(this);" onkeypress="return isNumberKey(event);"/></div>
</div> </div>
</div> </div>
<div class="eachLineFields"> <div class="eachLineFields">
<div class="eachField"> <div class="eachField">
<div class="labelDiv">Month<span style="color:red;">*</span> : </div> <div class="labelDiv">Month<span style="color:red;">*</span> : </div>
<div class="inputDiv"><input type="text" class="input_editable" value="{$period_code}" name="Detail1.{normalize-space($dbID)}.period_code" id="Detail1.{normalize-space($dbID)}.period_code" tabIndex="10" style="width:60px;" popupFldName="PERIOD_CODE" onkeyup="getAutoPopupData(this);" onfocus="displayPopUpIcon('popUpIcon1');"/></div> <div class="inputDiv"><select class="input_editable" id="yearMonthInput" name="Detail1.{normalize-space($dbID)}.period_code"></select></div>
<div class="popHelpIconDiv"><a href="javascript:getListOfValues('PERIOD_CODE','Detail1.{normalize-space($dbID)}.period_code','{$site_code}');" id="popUpIcon1" tabIndex="-1"><img src="/ibase/webitm/images/pophelp.png"/></a></div>
</div> </div>
<div class="eachField" style="display:none;"> <div class="eachField" style="display:none;">
<div class="labelDiv">Site code<span style="color:red;">*</span> : </div> <div class="labelDiv">Site code<span style="color:red;">*</span> : </div>
...@@ -168,15 +174,15 @@ ...@@ -168,15 +174,15 @@
</div> </div>
</div> </div>
</div> </div>
<div class="eachLineFields" style="text-align:center;margin-top:10px;"> <div class="eachLineFields" style="margin-top:10px;margin-left:60px;">
<div class="eachField"> <div class="eachField">
<div class="inputDiv"><input type="button" class="button" value="Generate OTP" title="Generate OTP" onClick="generateOTP();" tabIndex="-1" style="margin-right:0px;"/></div> <div class="inputDiv"><input type="button" class="button" value="Generate OTP" title="Generate OTP" onClick="generateOTP();" tabIndex="-1" style="margin-right:0px;"/></div>
</div> </div>
</div> </div>
<div class="eachLineFields" style="text-align:center;"> <div class="eachLineFields">
<div class="eachField" style="margin-left:12px;display:none;" id="otpInputDiv"> <div class="eachField" style="margin-left:12px;display:none;" id="otpInputDiv">
<div class="labelDiv" style="width:50px;float:none;">OTP<span style="color:red;">*</span> : </div> <div class="labelDiv" style="width:50px;float:none;">OTP<span style="color:red;">*</span> : </div>
<div class="inputDiv" style="float:none;"><input type="text" class="input_editable" name="Detail1.{normalize-space($dbID)}.otp" id="Detail1.{normalize-space($dbID)}.otp" tabIndex="60" style="width:80px;text-align:right;padding-right:4px;" onblur="checkValidInput(this);" onkeypress="return isNumberKey(event);"/></div> <div class="inputDiv" style="float:none;"><input type="text" class="input_editable" name="Detail1.{normalize-space($dbID)}.otp" id="Detail1.{normalize-space($dbID)}.otp" tabIndex="60" style="width:80px;"/></div>
<div id="timerDiv" style="display: none;margin-left: 20px;font-size:13px;float:none;"> OTP Expires in <span id="timerVal">10:00</span></div> <div id="timerDiv" style="display: none;margin-left: 20px;font-size:13px;float:none;"> OTP Expires in <span id="timerVal">10:00</span></div>
</div> </div>
</div> </div>
...@@ -193,7 +199,7 @@ ...@@ -193,7 +199,7 @@
<input type="hidden" value="1" name="FORM_NO" ID="FORM_NO" /> <input type="hidden" value="1" name="FORM_NO" ID="FORM_NO" />
<input type="hidden" value="gstpurchasedata_save" name="OBJ_NAME" /> <input type="hidden" value="gstpurchasedata_save" name="OBJ_NAME" />
<input type="hidden" value="" name="action" id="action" /> <input type="hidden" value="" name="action" id="action" />
<input type="submit" style="cursor:hand;margin-left:20px;" value="Finish" onclick="setActionVal('finish');return validateHeaderForm();displayWaitImg();" class="button" title='Finish' id="finish"/> <input type="submit" style="cursor:hand;margin-left:20px;" value="Finish" onclick="setActionVal('finish');displayWaitImg();return validateHeaderForm();" class="button" title='Finish' id="finish"/>
</div> </div>
</div> </div>
<div id="buttonreplacement"> <div id="buttonreplacement">
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<html> <html>
<body onload="getTitlenImg('gstpurchasedata_submit')"> <body onload="getTitlenImg('gstpurchasedata_submit');returnPeriodDropdown();">
<script type="text/javascript" src="/ibase/webitm/js/GSTDataSubmitWiz.js"></script> <script type="text/javascript" src="/ibase/webitm/js/GSTDataSubmitWiz.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery-1.10.2.js"></script> <script type="text/javascript" src="/ibase/webitm/js/jquery-1.10.2.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery-ui-1.10.4.custom.min.js"></script> <script type="text/javascript" src="/ibase/webitm/js/jquery-ui-1.10.4.custom.min.js"></script>
...@@ -111,15 +111,13 @@ ...@@ -111,15 +111,13 @@
<xsl:variable name="state_descr"><xsl:value-of select="state_descr"/></xsl:variable> <xsl:variable name="state_descr"><xsl:value-of select="state_descr"/></xsl:variable>
<xsl:variable name="otp"><xsl:value-of select="otp"/></xsl:variable> <xsl:variable name="otp"><xsl:value-of select="otp"/></xsl:variable>
<xsl:variable name="app_key"><xsl:value-of select="app_key"/></xsl:variable> <xsl:variable name="app_key"><xsl:value-of select="app_key"/></xsl:variable>
<xsl:variable name="returns_type"><xsl:value-of select="returns_type"/></xsl:variable>
<xsl:variable name="gross_turnover"><xsl:value-of select="gross_turnover"/></xsl:variable> <xsl:variable name="gross_turnover"><xsl:value-of select="gross_turnover"/></xsl:variable>
<xsl:variable name="action"><xsl:value-of select="action"/></xsl:variable>
<div class="inputFormDiv"> <div class="inputFormDiv">
<div class="eachLineFields"> <div class="eachLineFields">
<div class="eachField"> <div class="eachField">
<div class="labelDiv">GSTIN : </div> <div class="labelDiv">GSTIN : </div>
<div class="inputDiv"><input type="text" class="editDisplayClass" value="{$gstin}" name="Detail1.{normalize-space($dbID)}.gstin" id="Detail1.{normalize-space($dbID)}.gstin" tabIndex="-1"/></div> <div class="inputDiv"><input type="text" class="editDisplayClass" value="{$gstin}" name="Detail1.{normalize-space($dbID)}.gstin" id="Detail1.{normalize-space($dbID)}.gstin" tabIndex="-1" readOnly="true"/></div>
</div> </div>
<div class="eachField"> <div class="eachField">
<div class="labelDiv">User name : </div> <div class="labelDiv">User name : </div>
...@@ -134,16 +132,20 @@ ...@@ -134,16 +132,20 @@
<div class="eachField"> <div class="eachField">
<div class="inputDiv"><input type="text" class="editDisplayClass" value="{$state_descr}" name="Detail1.{normalize-space($dbID)}.state_descr" id="Detail1.{normalize-space($dbID)}.state_descr" tabIndex="-1" readOnly="true" style="width:150px;"/></div> <div class="inputDiv"><input type="text" class="editDisplayClass" value="{$state_descr}" name="Detail1.{normalize-space($dbID)}.state_descr" id="Detail1.{normalize-space($dbID)}.state_descr" tabIndex="-1" readOnly="true" style="width:150px;"/></div>
</div> </div>
<div class="eachField" style="float:right;"> <div class="eachField" style="float:right;display:none;">
<div class="labelDiv">Gross turnover<span style="color:red;">*</span> : </div> <div class="labelDiv">Gross turnover<span style="color:red;">*</span> : </div>
<div class="inputDiv"><input type="text" class="input_editable" value="{$gross_turnover}" name="Detail1.{normalize-space($dbID)}.gross_turnover" id="Detail1.{normalize-space($dbID)}.gross_turnover" tabIndex="30" style="text-align:right;padding-right:4px;width:120px;" onblur="checkValidInput(this);" onkeypress="return isNumberKey(event);"/></div> <div class="inputDiv"><input type="text" class="input_editable" value="{$gross_turnover}" name="Detail1.{normalize-space($dbID)}.gross_turnover" id="Detail1.{normalize-space($dbID)}.gross_turnover" tabIndex="30" style="text-align:right;padding-right:4px;width:120px;" onblur="checkValidInput(this);" onkeypress="return isNumberKey(event);"/></div>
</div> </div>
</div> </div>
<div class="eachLineFields"> <div class="eachLineFields">
<div class="eachField"> <!--<div class="eachField">
<div class="labelDiv">Month<span style="color:red;">*</span> : </div> <div class="labelDiv">Month<span style="color:red;">*</span> : </div>
<div class="inputDiv"><input type="text" class="input_editable" value="{$period_code}" name="Detail1.{normalize-space($dbID)}.period_code" id="Detail1.{normalize-space($dbID)}.period_code" tabIndex="10" style="width:60px;" popupFldName="PERIOD_CODE" onkeyup="getAutoPopupData(this);" onfocus="displayPopUpIcon('popUpIcon1');"/></div> <div class="inputDiv"><input type="text" class="input_editable" value="{$period_code}" name="Detail1.{normalize-space($dbID)}.period_code" id="Detail1.{normalize-space($dbID)}.period_code" tabIndex="10" style="width:60px;" popupFldName="PERIOD_CODE" onkeyup="getAutoPopupData(this);" onfocus="displayPopUpIcon('popUpIcon1');"/></div>
<div class="popHelpIconDiv"><a href="javascript:getListOfValues('PERIOD_CODE','Detail1.{normalize-space($dbID)}.period_code','{$site_code}');" id="popUpIcon1" tabIndex="-1"><img src="/ibase/webitm/images/pophelp.png"/></a></div> <div class="popHelpIconDiv"><a href="javascript:getListOfValues('PERIOD_CODE','Detail1.{normalize-space($dbID)}.period_code','{$site_code}');" id="popUpIcon1" tabIndex="-1"><img src="/ibase/webitm/images/pophelp.png"/></a></div>
</div>-->
<div class="eachField">
<div class="labelDiv">Month<span style="color:red;">*</span> : </div>
<div class="inputDiv"><select class="input_editable" id="yearMonthInput" name="Detail1.{normalize-space($dbID)}.period_code"></select></div>
</div> </div>
<div class="eachField" style="display:none;"> <div class="eachField" style="display:none;">
<div class="labelDiv">Site code<span style="color:red;">*</span> : </div> <div class="labelDiv">Site code<span style="color:red;">*</span> : </div>
...@@ -168,15 +170,15 @@ ...@@ -168,15 +170,15 @@
</div> </div>
</div> </div>
</div> </div>
<div class="eachLineFields" style="text-align:center;margin-top:10px;"> <div class="eachLineFields" style="margin-top:10px;margin-left:60px">
<div class="eachField"> <div class="eachField">
<div class="inputDiv"><input type="button" class="button" value="Generate OTP" title="Generate OTP" onClick="generateOTP();" tabIndex="-1" style="margin-right:0px;"/></div> <div class="inputDiv"><input type="button" class="button" value="Generate OTP" title="Generate OTP" onClick="generateOTP();" tabIndex="-1" style="margin-right:0px;"/></div>
</div> </div>
</div> </div>
<div class="eachLineFields" style="text-align:center;"> <div class="eachLineFields">
<div class="eachField" style="margin-left:12px;display:none;" id="otpInputDiv"> <div class="eachField" style="margin-left:12px;display:none;" id="otpInputDiv">
<div class="labelDiv" style="width:50px;float:none;">OTP<span style="color:red;">*</span> : </div> <div class="labelDiv" style="width:50px;float:none;">OTP<span style="color:red;">*</span> : </div>
<div class="inputDiv" style="float:none;"><input type="text" class="input_editable" name="Detail1.{normalize-space($dbID)}.otp" id="Detail1.{normalize-space($dbID)}.otp" tabIndex="60" style="width:80px;text-align:right;padding-right:4px;" onblur="checkValidInput(this);" onkeypress="return isNumberKey(event);"/></div> <div class="inputDiv" style="float:none;"><input type="text" class="input_editable" name="Detail1.{normalize-space($dbID)}.otp" id="Detail1.{normalize-space($dbID)}.otp" tabIndex="60" style="width:80px;"/></div>
<div id="timerDiv" style="display: none;margin-left: 20px;font-size:13px;float:none;"> OTP Expires in <span id="timerVal">10:00</span></div> <div id="timerDiv" style="display: none;margin-left: 20px;font-size:13px;float:none;"> OTP Expires in <span id="timerVal">10:00</span></div>
</div> </div>
</div> </div>
...@@ -193,7 +195,7 @@ ...@@ -193,7 +195,7 @@
<input type="hidden" value="1" name="FORM_NO" ID="FORM_NO" /> <input type="hidden" value="1" name="FORM_NO" ID="FORM_NO" />
<input type="hidden" value="gstpurchasedata_submit" name="OBJ_NAME" /> <input type="hidden" value="gstpurchasedata_submit" name="OBJ_NAME" />
<input type="hidden" value="" name="action" id="action" /> <input type="hidden" value="" name="action" id="action" />
<input type="submit" style="cursor:hand;margin-left:20px;" value="Finish" onclick="setActionVal('finish');return validateHeaderForm();displayWaitImg();" class="button" title='Finish' id="finish"/> <input type="submit" style="cursor:hand;margin-left:20px;" value="Next" onclick="setActionVal('next');return validateHeaderForm();" class="button" title='Next' id="next"/>
</div> </div>
</div> </div>
<div id="buttonreplacement"> <div id="buttonreplacement">
......
<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:decimal-format NaN="0"/>
<xsl:template match="/">
<html>
<body onload="getTitlenImg('gstpurchasedata_submit');setSummaryTotal();">
<script type="text/javascript" src="/ibase/webitm/js/GSTDataSubmitWiz.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery-1.10.2.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery-ui-1.10.4.custom.min.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/FixedTableHeader.js"></script>
<script language="Javascript" src="/ibase/webitm/js/jquery.datetimepicker.full.js"></script>
<script language="Javascript" src="/ibase/webitm/js/date.js"></script>
<link href="/ibase/webitm/css/jquery-ui-1.10.4.custom.min.css" rel="stylesheet"/>
<script type="text/javascript" src="/ibase/webitm/js/jquery.ui.core.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery.ui.widget.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery.ui.position.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery.ui.menu.js"></script>
<script type="text/javascript" src="/ibase/webitm/js/jquery.ui.autocomplete.js"></script>
<link href="/ibase/webitm/css/Galaxy/galaxy-theme.css" rel="stylesheet"/>
<link href="/ibase/webitm/css/Standard/default.css" rel="stylesheet"/>
<link href="/ibase/webitm/css/htmlWizard.css" rel="stylesheet"/>
<link href="/ibase/webitm/css/GSTDataSubmitWiz.css" rel="stylesheet"/>
<link href="/ibase/webitm/css/jquery.datetimepicker.css" rel="stylesheet"/>
<script>
<![CDATA[
$(function()
{
var acc = document.getElementsByClassName("accordion1");
var i;
for (i = 0; i < acc.length; i++)
{
acc[i].onclick = function()
{
this.classList.toggle("active");
this.nextElementSibling.classList.toggle("show");
}
}
});
$(function()
{
var acc = document.getElementsByClassName("accordion2");
var i;
for (i = 0; i < acc.length; i++)
{
acc[i].onclick = function()
{
this.classList.toggle("activeAccor");
this.classList.toggle("active");
this.nextElementSibling.classList.toggle("show");
if(this.nextElementSibling.classList == "panel2")
{
this.classList.remove("activeAccor");
}
}
}
});
$(function()
{
var acc = document.getElementsByClassName("accordion3");
var i;
for (i = 0; i < acc.length; i++)
{
acc[i].onclick = function()
{
this.classList.toggle("active");
this.nextElementSibling.classList.toggle("show");
}
}
});
$(function()
{
var panel = document.getElementsByClassName("panel2");
for (var j = 0; j < panel.length; j++)
{
panel[j].onclick = function()
{
var acc = document.getElementsByClassName("accordion2");
for(var i=0; i<acc.length; i++)
{
acc[i].classList.remove("activeAccor");
}
this.previousElementSibling.classList.add("activeAccor");
}
}
});
$(document).on("keydown", function (e) {
if (e.which === 8 && !$(e.target).is("input, textarea, form")) {
e.preventDefault();
}
else if(e.which ===13){
e.preventDefault();
}
});
]]>
</script>
<form name="gstdataSubmitForm2" id="gstdataSubmitForm2" METHOD="post" ACTION="/ibase/ITMWizardHandlerServlet">
<div class="contentHeaderLbl" style="position:fixed;overflow:hidden;width:100%;padding:12px; background-color:white;top:0px;">
&#160;&#160;<img onerror=" this.src= '/ibase/images/menuImages/errMenu.png' " style="position: absolute; margin-left: -20px; height: 20px; width: 20px;" id="titleImg" />
&#160;<div id="titleText"></div>
</div><br></br><br></br>
<div id="innerDiv" style="overflow-y:hidden;overflow-x:auto;max-height:80%;width:98%;position:absolute;">
<table id="errorActivityTable" height="10%" class="tableClass" style="margin: 12px 0px 0px 0px;position: relative;width: calc(literal('100% - 15px'));width: -moz-calc(literal('100% - 15px'));padding-right:0px; padding-left:5xp; width: -webkit-calc(literal('100% - 15px'));box-shadow: 3px 3px 3px gray;-moz-box-shadow:3px 3px 3px gray;-webkit-box-shadow: 3px 3px 3px gray;-o-box-shadow: 3px 3px 3px gray;background: rgba(255, 204, 0, 0.66);min-height: 50px;bottom:10px" border="0" cellspacing="0" cellpadding="0">
<xsl:for-each select="//error">
<xsl:if test="position() = 1">
<tr>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" valign="bottom">
Message :
</td>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" valign="bottom">
Description :
</td>
<td class="tdss_rightAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true" valign="bottom" colspan="2">
<a href="#" style="text-decoration:none;" onclick="doHideMsg('errorActivityTable')"><font style="color:#000;text-decoration:none;padding-right:5px;" ><b>X</b></font></a>
</td>
</tr>
</xsl:if>
<xsl:variable name="message"><xsl:value-of select="message"/></xsl:variable>
<xsl:variable name="description"><xsl:value-of select="description"/></xsl:variable>
<xsl:variable name="type"><xsl:value-of select="type"/></xsl:variable>
<xsl:variable name="dbID"><xsl:value-of select="@domId"/></xsl:variable>
<xsl:variable name="column_name"><xsl:value-of select="@column_name"/></xsl:variable>
<tr style="background: rgba(255, 204, 0, 0.66);">
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" >
<xsl:value-of select="message"/>
</td>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" >
<xsl:value-of select="description"/>
</td>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" >
</td>
</tr>
<script><![CDATA[]]>formatDetailWithErr();</script>
</xsl:for-each>
<xsl:for-each select="//error">
<xsl:variable name="type"><xsl:value-of select="type"/></xsl:variable>
<xsl:if test="position() = 1">
<xsl:if test="$type = 'W'">
<tr style="background: rgba(255, 204, 0, 0.66);">
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true" valign="bottom">
<input type="checkbox" name="forceSave" value="true" checked="checked" onClick="setChecked(this)"/>
</td>
<td class="tdss_leftAlign" style="background: rgba(255, 204, 0, 0.66);" nowrap="true"></td>
</tr>
</xsl:if>
</xsl:if>
</xsl:for-each>
</table>
</div>
<div id="popHelpContainer"></div>
<div id="overlay"></div>
<div id="mainPageHeaderContatiner">
<div class="detailPage-input-Container">
<xsl:for-each select="//Detail2">
<xsl:variable name="dbID"><xsl:value-of select="@domID"/></xsl:variable>
<xsl:if test="$dbID = '1'">
<xsl:variable name="auth_token"><xsl:value-of select="auth_token"/></xsl:variable>
<xsl:variable name="auth_sek"><xsl:value-of select="auth_sek"/></xsl:variable>
<div class="inputFormDiv" style="display:none;">
<div class="eachLineFields">
<div class="eachField">
<div class="inputDiv"><input type="checkbox" value="true" checked="checked" name="Detail2.{normalize-space($dbID)}.selectbox" id="Detail2.{normalize-space($dbID)}.selectbox" tabIndex="-1"/></div>
</div>
<div class="eachField">
<div class="labelDiv">Auth token : </div>
<div class="inputDiv"><input type="text" class="editDisplayClass" value="{$auth_token}" name="Detail2.{normalize-space($dbID)}.auth_token" id="Detail2.{normalize-space($dbID)}.auth_token" tabIndex="-1"/></div>
</div>
<div class="eachField">
<div class="labelDiv">Auth sek : </div>
<div class="inputDiv"><input type="text" class="editDisplayClass" value="{$auth_sek}" name="Detail2.{normalize-space($dbID)}.auth_sek" id="Detail2.{normalize-space($dbID)}.auth_sek" tabIndex="-1" readOnly="true" style="width:224px;"/></div>
</div>
</div>
</div>
</xsl:if>
<xsl:if test ="$dbID != '1'">
<xsl:for-each select="pending_data">
<button class="accordion1" type="button">
<div class="iconDiv">P</div>
Pending data to save on GSTN server till date
</button>
<div class="panel1" id="pendingDataPanel">
<table class="tableClass" id="pendingDataTable">
<thead class="table-head">
<tr>
<th nowrap="true" style="border-left:0px solid black !important;" align="left">Document number</th>
<th nowrap="true" align="right">Date</th>
<th nowrap="true" style="border-right:0px solid black !important;" align="right">Amount</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="data">
<tr>
<td style="border-left:0px solid black !important;"><xsl:value-of select="doc_no"/></td>
<td align="right"><xsl:value-of select="doc_date"/></td>
<td style="border-right:0px solid black !important;" align="right"><xsl:value-of select="amount"/></td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
</xsl:for-each>
<xsl:for-each select="summary_data">
<button class="accordion1" type="button" expanded="false">
<div class="iconDiv">S</div>
<div style="margin-left:40px;">
<xsl:variable name="summaryRetPeriod"><xsl:value-of select="ret_period"/></xsl:variable>
<input type="hidden" id="summaryRetPeriod" value="{$summaryRetPeriod}"/>
<div class="invTypDiv">Summary of documents till date saved on GSTN server for <span id="returnMonthLbl"></span></div>
</div>
</button>
<div class="panel1" style="overflow-x:auto;">
<table class="tableClass" id="dataSummaryTable">
<thead class="table-head">
<tr class="titleRow">
<th nowrap="true" style="border-left:0px solid black !important;" align="left">Section</th>
<th nowrap="true" align="right">No. of Invoices</th>
<th nowrap="true" align="right">Amount</th>
<th nowrap="true" align="right">IGST</th>
<th nowrap="true" align="right">CGST</th>
<th nowrap="true" align="right">SGST</th>
<th nowrap="true" align="right">Cess</th>
<th nowrap="true" align="right">IGST ITC</th>
<th nowrap="true" align="right">CGST ITC</th>
<th nowrap="true" align="right">SGST ITC</th>
<th nowrap="true" style="border-right:0px solid black !important;" align="right">Cess ITC</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="section_summary">
<xsl:variable name="sectionName"><xsl:value-of select="sec_nm"/></xsl:variable>
<xsl:if test="not($sectionName='HSN') and not($sectionName='DOC_ISSUE') and not($sectionName='NIL')">
<tr>
<td style="border-left:0px solid black !important;" class="titleColumn">
<xsl:if test="$sectionName='b2b'">
Invoices for inward supply (B2B)
</xsl:if>
<xsl:if test="$sectionName='B2BA'">
Revised invoices (B2B)
</xsl:if>
<xsl:if test="$sectionName='B2CL'">
Invoices for inward supply (B2CL)
</xsl:if>
<xsl:if test="$sectionName='B2CLA'">
Revised invoices (B2CL)
</xsl:if>
<xsl:if test="$sectionName='B2CS'">
Invoices for inward supply (B2CS)
</xsl:if>
<xsl:if test="$sectionName='B2CSA'">
Revised invoices (B2CS)
</xsl:if>
<xsl:if test="$sectionName='CDNR'">
Credit/Debit note
</xsl:if>
<xsl:if test="$sectionName='CDNRA'">
Revised Credit/Debit note
</xsl:if>
<xsl:if test="$sectionName='CDNUR'">
Credit/Debit note unregistered
</xsl:if>
<xsl:if test="$sectionName='CDNURA'">
Revised Credit/Debit note
</xsl:if>
<xsl:if test="$sectionName='AT'">
Advance received
</xsl:if>
<xsl:if test="$sectionName='ATA'">
Advance received amendment
</xsl:if>
<xsl:if test="$sectionName='TXPD'">
Tax paid on advance received
</xsl:if>
<xsl:if test="$sectionName='NIL'">
Nil supplies
</xsl:if>
<xsl:if test="$sectionName='impg'">
Imports of goods
</xsl:if>
<xsl:if test="$sectionName='EXPA'">
Revised Export supplies
</xsl:if>
<xsl:if test="$sectionName='imps'">
Imports of services
</xsl:if>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="rc">
<xsl:value-of select="rc"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="ttl_val">
<xsl:value-of select="ttl_val"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="ttl_txpd_igst">
<xsl:value-of select="ttl_txpd_igst"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="ttl_txpd_cgst">
<xsl:value-of select="ttl_txpd_cgst"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="ttl_txpd_sgst">
<xsl:value-of select="ttl_txpd_sgst"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="ttl_txpd_cess">
<xsl:value-of select="ttl_txpd_cess"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="ttl_itcavld_igst">
<xsl:value-of select="ttl_itcavld_igst"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="ttl_itcavld_cgst">
<xsl:value-of select="ttl_itcavld_cgst"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="ttl_itcavld_sgst">
<xsl:value-of select="ttl_itcavld_sgst"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td style="border-right:0px solid black !important;" align="right">
<xsl:choose>
<xsl:when test="ttl_itcavld_cess">
<xsl:value-of select="ttl_itcavld_cess"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:if>
</xsl:for-each>
<tr class="totalRow">
<td style="border-left:0px solid black !important;"><b>Total</b></td>
<td align="right" class="totalCol"></td>
<td align="right" class="totalCol"></td>
<td align="right" class="totalCol"></td>
<td align="right" class="totalCol"></td>
<td align="right" class="totalCol"></td>
<td align="right" class="totalCol"></td>
<td align="right" class="totalCol"></td>
<td align="right" class="totalCol"></td>
<td align="right" class="totalCol"></td>
<td style="border-right:0px solid black !important;" align="right" class="totalCol"></td>
</tr>
</tbody>
</table>
</div>
</xsl:for-each>
<xsl:for-each select="b2b_invoices">
<button class="accordion1" type="button" expanded="false">
<div class="iconDiv">I</div>
<div class="invTypDiv">Invoices for inward supply (B2B)</div>
</button>
<div class="panel1">
<xsl:for-each select="b2b">
<button class="accordion2" type="button" expanded="false">
Counter party GSTIN - <xsl:value-of select="ctin"/>
</button>
<div class="panel2">
<xsl:for-each select="inv">
<button class="accordion3" type="button" expanded="false">
Invoice number - <xsl:value-of select="inum"/>, Date - <xsl:value-of select="idt"/>, Amount - <xsl:value-of select="val"/>
</button>
<div class="panel3">
<table class="tableClass">
<thead class="table-head">
<tr>
<th nowrap="true" style="border-left:0px solid black !important;" align="right">Serial #</th>
<th nowrap="true" align="right">Taxable amount</th>
<th nowrap="true" align="right">Rate</th>
<th nowrap="true" align="right">IGST</th>
<th nowrap="true" align="right">CGST</th>
<th nowrap="true" align="right">SGST</th>
<th nowrap="true" align="right">Cess</th>
<th nowrap="true">Eligibility</th>
<th nowrap="true" align="right">IGST ITC</th>
<th nowrap="true" align="right">CGST ITC</th>
<th nowrap="true" align="right">SGST ITC</th>
<th nowrap="true" style="border-right:0px solid black !important;" align="right">Cess ITC</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="itms">
<tr class='trClass'>
<td class="td_rightAlign" style="border-left:0px solid black !important;"><xsl:value-of select="num"/></td>
<td class="td_rightAlign"><xsl:value-of select="itm_det/txval"/></td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itm_det/rt">
<xsl:value-of select="itm_det/rt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itm_det/iamt">
<xsl:value-of select="itm_det/iamt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itm_det/camt">
<xsl:value-of select="itm_det/camt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itm_det/samt">
<xsl:value-of select="itm_det/samt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itm_det/csamt">
<xsl:value-of select="itm_det/csamt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td>
<xsl:variable name="elg"><xsl:value-of select="itc/elg"/></xsl:variable>
<xsl:if test="$elg='ip'">
Inputs
</xsl:if>
<xsl:if test="$elg='cp'">
Capital goods
</xsl:if>
<xsl:if test="$elg='is'">
Input Service
</xsl:if>
<xsl:if test="$elg='no'">
None
</xsl:if>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itc/tx_i">
<xsl:value-of select="itc/tx_i"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itc/tx_c">
<xsl:value-of select="itc/tx_c"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itc/tx_s">
<xsl:value-of select="itc/tx_s"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign" style="border-right:0px solid black !important;">
<xsl:choose>
<xsl:when test="itc/tx_cs">
<xsl:value-of select="itc/tx_cs"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
</xsl:for-each>
</div>
</xsl:for-each>
</div>
</xsl:for-each>
<xsl:for-each select="b2bur_data">
<button class="accordion1" type="button" expanded="false">
<div class="iconDiv">I</div>
<div class="invTypDiv">Invoices for inward supply (Unregistred)</div>
</button>
<div class="panel1">
<xsl:for-each select="b2bur/inv">
<button class="accordion2" type="button" expanded="false">
Invoice number - <xsl:value-of select="inum"/>, Date - <xsl:value-of select="idt"/>, Amount - <xsl:value-of select="val"/>
</button>
<div class="panel2">
<table class="tableClass">
<thead class="table-head">
<tr>
<th nowrap="true" style="border-left:0px solid black !important;" align="right">Serial #</th>
<th nowrap="true" align="right">Taxable amount</th>
<th nowrap="true" align="right">Rate</th>
<th nowrap="true" align="right">IGST</th>
<th nowrap="true" align="right">CGST</th>
<th nowrap="true" align="right">SGST</th>
<th nowrap="true" align="right">Cess</th>
<th nowrap="true">Eligibility</th>
<th nowrap="true" align="right">IGST ITC</th>
<th nowrap="true" align="right">CGST ITC</th>
<th nowrap="true" align="right">SGST ITC</th>
<th nowrap="true" style="border-right:0px solid black !important;" align="right">Cess ITC</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="itms">
<tr class='trClass'>
<td class="td_rightAlign" style="border-left:0px solid black !important;"><xsl:value-of select="num"/></td>
<td class="td_rightAlign"><xsl:value-of select="itm_det/txval"/></td>
<td class="td_rightAlign">
<xsl:value-of select="itm_det/rt"/>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itm_det/iamt">
<xsl:value-of select="itm_det/iamt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itm_det/camt">
<xsl:value-of select="itm_det/camt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itm_det/samt">
<xsl:value-of select="itm_det/samt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itm_det/csamt">
<xsl:value-of select="itm_det/csamt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td>
<xsl:variable name="elg"><xsl:value-of select="itc/elg"/></xsl:variable>
<xsl:if test="$elg='ip'">
Inputs
</xsl:if>
<xsl:if test="$elg='cp'">
Capital goods
</xsl:if>
<xsl:if test="$elg='is'">
Input Service
</xsl:if>
<xsl:if test="$elg='no'">
None
</xsl:if>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itc/tx_i">
<xsl:value-of select="itc/tx_i"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itc/tx_c">
<xsl:value-of select="itc/tx_c"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itc/tx_s">
<xsl:value-of select="itc/tx_s"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign" style="border-right:0px solid black !important;">
<xsl:choose>
<xsl:when test="itc/tx_cs">
<xsl:value-of select="itc/tx_cs"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
</xsl:for-each>
</div>
</xsl:for-each>
<xsl:for-each select="impg_data">
<button class="accordion1" type="button" expanded="false">
<div class="iconDiv">I</div>
<div class="invTypDiv">Imports of goods</div>
</button>
<div class="panel1">
<xsl:for-each select="imp_g">
<button class="accordion2" type="button" expanded="false">
Bill of entry - <xsl:value-of select="boe_num"/>, Date - <xsl:value-of select="boe_dt"/>, Amount - <xsl:value-of select="boe_val"/><xsl:if test="stin">, Supplier GSTIN - <xsl:value-of select="stin"/></xsl:if>
</button>
<div class="panel2">
<table class="tableClass">
<thead class="table-head">
<tr>
<th nowrap="true" style="border-left:0px solid black !important;" align="right">Serial #</th>
<th nowrap="true" align="right">Taxable amount</th>
<th nowrap="true" align="right">Rate</th>
<th nowrap="true" align="right">IGST</th>
<th nowrap="true" align="right">CGST</th>
<th nowrap="true" align="right">SGST</th>
<th nowrap="true" align="right">Cess</th>
<th nowrap="true">Eligibility</th>
<th nowrap="true" align="right">IGST ITC</th>
<th nowrap="true" align="right">CGST ITC</th>
<th nowrap="true" align="right">SGST ITC</th>
<th nowrap="true" style="border-right:0px solid black !important;" align="right">Cess ITC</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="itms">
<tr class='trClass'>
<td class="td_rightAlign" style="border-left:0px solid black !important;"><xsl:value-of select="num"/></td>
<td class="td_rightAlign"><xsl:value-of select="txval"/></td>
<td class="td_rightAlign">
<xsl:value-of select="rt"/>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="iamt">
<xsl:value-of select="iamt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="camt">
<xsl:value-of select="camt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="samt">
<xsl:value-of select="samt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="csamt">
<xsl:value-of select="csamt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td>
<xsl:variable name="elg"><xsl:value-of select="elg"/></xsl:variable>
<xsl:if test="$elg='ip'">
Inputs
</xsl:if>
<xsl:if test="$elg='cp'">
Capital goods
</xsl:if>
<xsl:if test="$elg='is'">
Input Service
</xsl:if>
<xsl:if test="$elg='no'">
None
</xsl:if>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="tx_i">
<xsl:value-of select="tx_i"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="tx_c">
<xsl:value-of select="tx_c"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="tx_s">
<xsl:value-of select="tx_s"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign" style="border-right:0px solid black !important;">
<xsl:choose>
<xsl:when test="tx_cs">
<xsl:value-of select="tx_cs"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
</xsl:for-each>
</div>
</xsl:for-each>
<xsl:for-each select="imps_data">
<button class="accordion1" type="button" expanded="false">
<div class="iconDiv">I</div>
<div class="invTypDiv">Imports of services</div>
</button>
<div class="panel1">
<xsl:for-each select="imp_s">
<button class="accordion2" type="button" expanded="false">
Invoice number - <xsl:value-of select="inum"/>, Date - <xsl:value-of select="ival"/>, Amount - <xsl:value-of select="ival"/>
</button>
<div class="panel2">
<table class="tableClass">
<thead class="table-head">
<tr>
<th nowrap="true" style="border-left:0px solid black !important;" align="right">Serial #</th>
<th nowrap="true" align="right">Taxable amount</th>
<th nowrap="true" align="right">Rate</th>
<th nowrap="true" align="right">IGST</th>
<th nowrap="true" align="right">CGST</th>
<th nowrap="true" align="right">SGST</th>
<th nowrap="true" align="right">Cess</th>
<th nowrap="true">Eligibility</th>
<th nowrap="true" align="right">IGST ITC</th>
<th nowrap="true" align="right">CGST ITC</th>
<th nowrap="true" align="right">SGST ITC</th>
<th nowrap="true" style="border-right:0px solid black !important;" align="right">Cess ITC</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="itms">
<tr class='trClass'>
<td class="td_rightAlign" style="border-left:0px solid black !important;"><xsl:value-of select="num"/></td>
<td class="td_rightAlign"><xsl:value-of select="txval"/></td>
<td class="td_rightAlign">
<xsl:value-of select="rt"/>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="iamt">
<xsl:value-of select="iamt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="camt">
<xsl:value-of select="camt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="samt">
<xsl:value-of select="samt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="csamt">
<xsl:value-of select="csamt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td>
<xsl:variable name="elg"><xsl:value-of select="elg"/></xsl:variable>
<xsl:if test="$elg='ip'">
Inputs
</xsl:if>
<xsl:if test="$elg='cp'">
Capital goods
</xsl:if>
<xsl:if test="$elg='is'">
Input Service
</xsl:if>
<xsl:if test="$elg='no'">
None
</xsl:if>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="tx_i">
<xsl:value-of select="tx_i"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="tx_c">
<xsl:value-of select="tx_c"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="tx_s">
<xsl:value-of select="tx_s"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign" style="border-right:0px solid black !important;">
<xsl:choose>
<xsl:when test="tx_cs">
<xsl:value-of select="tx_cs"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
</xsl:for-each>
</div>
</xsl:for-each>
<xsl:for-each select="cdnr_data">
<button class="accordion1" type="button" expanded="false">
<div class="iconDiv">C</div>
<div class="invTypDiv">Credit/Debit note</div>
</button>
<div class="panel1">
<xsl:for-each select="cdn">
<button class="accordion2" type="button" expanded="false">
Counter party GSTIN - <xsl:value-of select="ctin"/>
</button>
<div class="panel2">
<xsl:for-each select="nt">
<button class="accordion3" type="button" expanded="false">
<p style="font-size:15px;margin:0px;">Credit/Debit note number - <xsl:value-of select="nt_num"/>, Date - <xsl:value-of select="nt_dt"/>, Amount - <xsl:value-of select="val"/></p>
<p style="margin:0px;">Reference invoice number - <xsl:value-of select="inum"/>, Date - <xsl:value-of select="idt"/></p>
</button>
<div class="panel3">
<table class="tableClass">
<thead class="table-head">
<tr>
<th nowrap="true" style="border-left:0px solid black !important;" align="right">Serial #</th>
<th nowrap="true" align="right">Taxable amount</th>
<th nowrap="true" align="right">Rate</th>
<th nowrap="true" align="right">IGST</th>
<th nowrap="true" align="right">CGST</th>
<th nowrap="true" align="right">SGST</th>
<th nowrap="true" align="right">Cess</th>
<th nowrap="true">Eligibility</th>
<th nowrap="true" align="right">IGST ITC</th>
<th nowrap="true" align="right">CGST ITC</th>
<th nowrap="true" align="right">SGST ITC</th>
<th nowrap="true" style="border-right:0px solid black !important;" align="right">Cess ITC</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="itms">
<tr class='trClass'>
<td class="td_rightAlign" style="border-left:0px solid black !important;"><xsl:value-of select="num"/></td>
<td class="td_rightAlign"><xsl:value-of select="itm_det/txval"/></td>
<td class="td_rightAlign"><xsl:value-of select="itm_det/rt"/></td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itm_det/iamt">
<xsl:value-of select="itm_det/iamt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itm_det/camt">
<xsl:value-of select="itm_det/camt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itm_det/samt">
<xsl:value-of select="itm_det/samt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="csamt">
<xsl:value-of select="csamt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td>
<xsl:variable name="elg"><xsl:value-of select="itc/elg"/></xsl:variable>
<xsl:if test="$elg='ip'">
Inputs
</xsl:if>
<xsl:if test="$elg='cp'">
Capital goods
</xsl:if>
<xsl:if test="$elg='is'">
Input Service
</xsl:if>
<xsl:if test="$elg='no'">
None
</xsl:if>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itc/tx_i">
<xsl:value-of select="itc/tx_i"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itc/tx_c">
<xsl:value-of select="itc/tx_c"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itc/tx_s">
<xsl:value-of select="itc/tx_s"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign" style="border-right:0px solid black !important;">
<xsl:choose>
<xsl:when test="itc/tx_cs">
<xsl:value-of select="itc/tx_cs"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
</xsl:for-each>
</div>
</xsl:for-each>
</div>
</xsl:for-each>
<xsl:for-each select="cdnur_data">
<button class="accordion1" type="button" expanded="false">
<div class="iconDiv">C</div>
<div class="invTypDiv">Credit/Debit note unregistered</div>
</button>
<div class="panel1">
<xsl:for-each select="cdnur">
<button class="accordion2" type="button" expanded="false">
<p style="font-size:15px;margin:0px;">Credit/Debit note number - <xsl:value-of select="nt_num"/>, Date - <xsl:value-of select="nt_dt"/>, Amount - <xsl:value-of select="val"/></p>
<p style="font-size:13px;margin:0px;">Reference invoice number - <xsl:value-of select="inum"/>, Date - <xsl:value-of select="idt"/></p>
</button>
<div class="panel2">
<table class="tableClass">
<thead class="table-head">
<tr>
<th nowrap="true" style="border-left:0px solid black !important;" align="right">Serial #</th>
<th nowrap="true" align="right">Taxable amount</th>
<th nowrap="true" align="right">Rate</th>
<th nowrap="true" align="right">IGST</th>
<th nowrap="true" align="right">CGST</th>
<th nowrap="true" align="right">SGST</th>
<th nowrap="true" align="right">Cess</th>
<th nowrap="true">Eligibility</th>
<th nowrap="true" align="right">IGST ITC</th>
<th nowrap="true" align="right">CGST ITC</th>
<th nowrap="true" align="right">SGST ITC</th>
<th nowrap="true" style="border-right:0px solid black !important;" align="right">Cess ITC</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="itms">
<tr class='trClass'>
<td class="td_rightAlign" style="border-left:0px solid black !important;"><xsl:value-of select="num"/></td>
<td class="td_rightAlign"><xsl:value-of select="itm_det/txval"/></td>
<td class="td_rightAlign"><xsl:value-of select="itm_det/rt"/></td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itm_det/iamt">
<xsl:value-of select="itm_det/iamt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itm_det/camt">
<xsl:value-of select="itm_det/camt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itm_det/samt">
<xsl:value-of select="itm_det/samt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="csamt">
<xsl:value-of select="csamt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td>
<xsl:variable name="elg"><xsl:value-of select="itc/elg"/></xsl:variable>
<xsl:if test="$elg='ip'">
Inputs
</xsl:if>
<xsl:if test="$elg='cp'">
Capital goods
</xsl:if>
<xsl:if test="$elg='is'">
Input Service
</xsl:if>
<xsl:if test="$elg='no'">
None
</xsl:if>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itc/tx_i">
<xsl:value-of select="itc/tx_i"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itc/tx_c">
<xsl:value-of select="itc/tx_c"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="itc/tx_s">
<xsl:value-of select="itc/tx_s"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign" style="border-right:0px solid black !important;">
<xsl:choose>
<xsl:when test="itc/tx_cs">
<xsl:value-of select="itc/tx_cs"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
</xsl:for-each>
</div>
</xsl:for-each>
<xsl:for-each select="txli_data">
<button class="accordion1" type="button" expanded="false">
<div class="iconDiv">T</div>
<div class="invTypDiv">Tax liability under Reverse charge</div>
</button>
<div class="panel1">
<table class="tableClass">
<thead class="table-head">
<tr>
<th nowrap="true" style="border-left:0px solid black !important;" align="left">Supply type</th>
<th nowrap="true" align="right">Advance amount</th>
<th nowrap="true" align="right">Rate</th>
<th nowrap="true" align="right">IGST</th>
<th nowrap="true" align="right">CGST</th>
<th nowrap="true" align="right">SGST</th>
<th nowrap="true" style="border-right:0px solid black !important;" align="right">Cess</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="txi">
<xsl:variable name="supply_type"><xsl:value-of select="sply_ty"/></xsl:variable>
<tr class='trClass'>
<td class="td_lefttAlign" style="border-left:0px solid black !important;">
<xsl:if test="$supply_type='INTER'">
Inter state
</xsl:if>
<xsl:if test="$supply_type='INTRA'">
Intra state
</xsl:if>
</td>
<td class="td_rightAlign"><xsl:value-of select="itms/adamt"/></td>
<td class="td_rightAlign"><xsl:value-of select="itms/rt"/></td>
<td class="td_rightAlign">
<xsl:if test="$supply_type='INTER'">
<xsl:value-of select="itms/iamt"/>
</xsl:if>
<xsl:if test="$supply_type='INTRA'">
0
</xsl:if>
</td>
<td class="td_rightAlign">
<xsl:if test="$supply_type='INTER'">
0
</xsl:if>
<xsl:if test="$supply_type='INTRA'">
<xsl:value-of select="itms/camt"/>
</xsl:if>
</td>
<td class="td_rightAlign">
<xsl:if test="$supply_type='INTER'">
0
</xsl:if>
<xsl:if test="$supply_type='INTRA'">
<xsl:value-of select="itms/samt"/>
</xsl:if>
</td>
<td class="td_rightAlign" style="border-right:0px solid black !important;"><xsl:value-of select="itms/csamt"/></td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
</xsl:for-each>
<xsl:for-each select="txp_data">
<button class="accordion1" type="button" expanded="false">
<div class="iconDiv">T</div>
<div class="invTypDiv">Tax paid under Reverse charge</div>
</button>
<div class="panel1">
<table class="tableClass">
<thead class="table-head">
<tr>
<th nowrap="true" style="border-left:0px solid black !important;" align="left">Supply type</th>
<th nowrap="true" align="right">Adjusted amount</th>
<th nowrap="true" align="right">Rate</th>
<th nowrap="true" align="right">IGST</th>
<th nowrap="true" align="right">CGST</th>
<th nowrap="true" align="right">SGST</th>
<th nowrap="true" style="border-right:0px solid black !important;" align="right">Cess</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="txpd">
<xsl:variable name="supply_type"><xsl:value-of select="sply_ty"/></xsl:variable>
<tr class='trClass'>
<td class="td_lefttAlign" style="border-left:0px solid black !important;">
<xsl:if test="$supply_type='INTER'">
Inter state
</xsl:if>
<xsl:if test="$supply_type='INTRA'">
Intra state
</xsl:if>
</td>
<td class="td_rightAlign"><xsl:value-of select="itms/adamt"/></td>
<td class="td_rightAlign"><xsl:value-of select="itms/rt"/></td>
<td class="td_rightAlign">
<xsl:if test="$supply_type='INTER'">
<xsl:value-of select="itms/iamt"/>
</xsl:if>
<xsl:if test="$supply_type='INTRA'">
0
</xsl:if>
</td>
<td class="td_rightAlign">
<xsl:if test="$supply_type='INTER'">
0
</xsl:if>
<xsl:if test="$supply_type='INTRA'">
<xsl:value-of select="itms/camt"/>
</xsl:if>
</td>
<td class="td_rightAlign">
<xsl:if test="$supply_type='INTER'">
0
</xsl:if>
<xsl:if test="$supply_type='INTRA'">
<xsl:value-of select="itms/samt"/>
</xsl:if>
</td>
<td class="td_rightAlign" style="border-right:0px solid black !important;"><xsl:value-of select="itms/csamt"/></td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
</xsl:for-each>
<xsl:for-each select="nil_data">
<button class="accordion1" type="button" expanded="false">
<div class="iconDiv">N</div>
<div class="invTypDiv">Nil rated supplies</div>
</button>
<div class="panel1">
<table class="tableClass">
<thead class="table-head">
<tr>
<th nowrap="true" style="border-left:0px solid black !important;" align="left">Supply type</th>
<th nowrap="true" align="right">Compouning delar supplies</th>
<th nowrap="true" align="right">Nil supplies</th>
<th nowrap="true" align="right">Exempted supplies</th>
<th nowrap="true" style="border-right:0px solid black !important;" align="right">Non GST supplies</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="nil_supplies">
<xsl:for-each select="inter">
<tr>
<td class="td_lefttAlign" style="border-left:0px solid black !important;">Inter state nil supplies</td>
<td class="td_rightAlign"><xsl:value-of select="cpddr"/></td>
<td class="td_rightAlign"><xsl:value-of select="nilsply"/></td>
<td class="td_rightAlign"><xsl:value-of select="exptdsply"/></td>
<td class="td_rightAlign" style="border-right:0px solid black !important;"><xsl:value-of select="ngsply"/></td>
</tr>
</xsl:for-each>
<xsl:for-each select="intra">
<tr>
<td class="td_lefttAlign" style="border-left:0px solid black !important;">Intra state nil supplies</td>
<td class="td_rightAlign"><xsl:value-of select="cpddr"/></td>
<td class="td_rightAlign"><xsl:value-of select="nilsply"/></td>
<td class="td_rightAlign"><xsl:value-of select="exptdsply"/></td>
<td class="td_rightAlign" style="border-right:0px solid black !important;"><xsl:value-of select="ngsply"/></td>
</tr>
</xsl:for-each>
</xsl:for-each>
</tbody>
</table>
</div>
</xsl:for-each>
<xsl:for-each select="hsnsum_data">
<button class="accordion1" type="button" expanded="false">
<div class="iconDiv">H</div>
<div class="invTypDiv">HSN summary data</div>
</button>
<div class="panel1">
<table class="tableClass">
<thead class="table-head">
<tr>
<th nowrap="true" style="border-left:0px solid black !important;" align="right">Serial #</th>
<th nowrap="true" align="left">Goods/Service code</th>
<th nowrap="true" align="left">Description</th>
<th nowrap="true" align="right">Quantity</th>
<th nowrap="true" align="left">Unit</th>
<th nowrap="true" align="right">Value</th>
<th nowrap="true" align="right">Taxable value</th>
<th nowrap="true" align="right">IGST</th>
<th nowrap="true" align="right">CGST</th>
<th nowrap="true" align="right">SGST</th>
<th nowrap="true" style="border-right:0px solid black !important;" align="right">Cess</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="hsnsum/det">
<tr class='trClass'>
<td class="td_rightAlign" style="border-left:0px solid black !important;"><xsl:value-of select="num"/></td>
<td class="td_lefttAlign"><xsl:value-of select="hsn_sc"/></td>
<td class="td_lefttAlign"><xsl:value-of select="desc"/></td>
<td class="td_rightAlign"><xsl:value-of select="qty"/></td>
<td class="td_lefttAlign"><xsl:value-of select="uqc"/></td>
<td class="td_rightAlign"><xsl:value-of select="val"/></td>
<td class="td_rightAlign"><xsl:value-of select="txval"/></td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="iamt">
<xsl:value-of select="iamt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="camt">
<xsl:value-of select="camt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign">
<xsl:choose>
<xsl:when test="samt">
<xsl:value-of select="samt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td class="td_rightAlign" style="border-right:0px solid black !important;">
<xsl:choose>
<xsl:when test="csamt">
<xsl:value-of select="csamt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
</xsl:for-each>
<xsl:for-each select="itcrvsl_data">
<button class="accordion1" type="button" expanded="false">
<div class="iconDiv">I</div>
<div class="invTypDiv">ITC Reversal details</div>
</button>
<div class="panel1">
<table class="tableClass">
<thead class="table-head">
<tr>
<th nowrap="true" style="border-left:0px solid black !important;">Description</th>
<th nowrap="true" align="right">IGST</th>
<th nowrap="true" align="right">CGST</th>
<th nowrap="true" align="right">SGST</th>
<th nowrap="true" style="border-right:0px solid black !important;" align="right">Cess</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="itc_rvsl/*[not(name() = 'chksum')]">
<tr>
<td style="border-left:0px solid black !important;">
<xsl:variable name="rvslTyp"><xsl:value-of select ="local-name()"/></xsl:variable>
<xsl:if test="$rvslTyp='rule2_2'">
Rule 2(2) of ITC Rules
</xsl:if>
<xsl:if test="$rvslTyp='rule7_1_m'">
Rule 7 (1) (m)of ITC Rules
</xsl:if>
<xsl:if test="$rvslTyp='rule8_1_h'">
Rule 8(1) (h) of the ITC Rules
</xsl:if>
<xsl:if test="$rvslTyp='rule7_2_a'">
Rule 7 (2)(a) of ITC Rules
</xsl:if>
<xsl:if test="$rvslTyp='rule7_2_b'">
Rule 7(2)(b) of ITC Rules
</xsl:if>
<xsl:if test="$rvslTyp='revitc'">
ITC Reversal
</xsl:if>
<xsl:if test="$rvslTyp='other'">
Other
</xsl:if>
</td>
<td class="td_rightAlign"><xsl:value-of select ="iamt"/></td>
<td class="td_rightAlign"><xsl:value-of select ="camt"/></td>
<td class="td_rightAlign"><xsl:value-of select ="samt"/></td>
<td class="td_rightAlign" style="border-right:0px solid black !important;"><xsl:value-of select ="csamt"/></td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
</xsl:for-each>
</xsl:if>
</xsl:for-each>
</div>
<div id="btnDiv">
<input type="hidden" value="2" name="FORM_NO" ID="FORM_NO" />
<input type="hidden" value="gstpurchasedata_submit" name="OBJ_NAME" />
<input type="hidden" value="" name="action" id="action" />
<input type="submit" style="cursor:hand;margin-left:20px;" value="Finish" onclick="setActionVal('finish');return validateDetailForm();" class="button" title='Finish' id="finish"/>
</div>
</div>
<div id="buttonreplacement">
<img src="/ibase/images/preload.gif" alt="Please wait" ></img>
<span>Please wait......</span>
</div>
</form>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
...@@ -140,11 +140,6 @@ ...@@ -140,11 +140,6 @@
</div> </div>
</div> </div>
<div class="eachLineFields"> <div class="eachLineFields">
<!--<div class="eachField">
<div class="labelDiv">Month<span style="color:red;">*</span> : </div>
<div class="inputDiv"><input type="text" class="input_editable" value="{$period_code}" name="Detail1.{normalize-space($dbID)}.period_code" id="Detail1.{normalize-space($dbID)}.period_code" tabIndex="10" style="width:60px;" popupFldName="PERIOD_CODE" onkeyup="getAutoPopupData(this);" onfocus="displayPopUpIcon('popUpIcon1');"/></div>
<div class="popHelpIconDiv"><a href="javascript:getListOfValues('PERIOD_CODE','Detail1.{normalize-space($dbID)}.period_code','{$site_code}');" id="popUpIcon1" tabIndex="-1"><img src="/ibase/webitm/images/pophelp.png"/></a></div>
</div>-->
<div class="eachField"> <div class="eachField">
<div class="labelDiv">Month<span style="color:red;">*</span> : </div> <div class="labelDiv">Month<span style="color:red;">*</span> : </div>
<div class="inputDiv"><select class="input_editable" id="yearMonthInput" name="Detail1.{normalize-space($dbID)}.period_code"></select></div> <div class="inputDiv"><select class="input_editable" id="yearMonthInput" name="Detail1.{normalize-space($dbID)}.period_code"></select></div>
......
...@@ -371,457 +371,6 @@ ...@@ -371,457 +371,6 @@
</table> </table>
</div> </div>
</xsl:for-each> </xsl:for-each>
<!-- <xsl:for-each select="b2b_invoices">
<button class="accordion1" type="button" expanded="false">
<div class="iconDiv">I</div>
<div class="invTypDiv">Invoices for outward supply (B2B)</div>
</button>
<div class="panel1">
<xsl:for-each select="b2b">
<button class="accordion2" type="button" expanded="false">
Counter party GSTIN - <xsl:value-of select="ctin"/>
</button>
<div class="panel2">
<xsl:for-each select="inv">
<button class="accordion3" type="button" expanded="false">
Invoice number - <xsl:value-of select="inum"/>, Date - <xsl:value-of select="idt"/>, Amount - <xsl:value-of select="val"/>
</button>
<div class="panel3">
<table class="tableClass">
<thead class="table-head">
<tr>
<th nowrap="true" style="border-left:0px solid black !important;" align="right">Serial #</th>
<th nowrap="true" align="right">Taxable amount</th>
<th nowrap="true" align="right">Rate</th>
<th nowrap="true" align="right">IGST amount</th>
<th nowrap="true" align="right">CGST amount</th>
<th nowrap="true" align="right">SGST amount</th>
<th nowrap="true" style="border-right:0px solid black !important;" align="right">Cess amount</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="itms">
<tr class='trClass'>
<td class="td_rightAlign" style="border-left:0px solid black !important;"><xsl:value-of select="num"/></td>
<td class="td_rightAlign"><xsl:value-of select="itm_det/txval"/></td>
<td class="td_rightAlign"><xsl:value-of select="itm_det/irt"/></td>
<td class="td_rightAlign"><xsl:value-of select="itm_det/iamt"/></td>
<td class="td_rightAlign"><xsl:value-of select="itm_det/camt"/></td>
<td class="td_rightAlign"><xsl:value-of select="itm_det/samt"/></td>
<td class="td_rightAlign" style="border-right:0px solid black !important;"><xsl:value-of select="itm_det/csamt"/></td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
</xsl:for-each>
</div>
</xsl:for-each>
</div>
</xsl:for-each>
<xsl:for-each select="b2cl_invoices">
<button class="accordion1" type="button" expanded="false">
<div class="iconDiv">I</div>
<div class="invTypDiv">Invoices for outward supply (B2CL)</div>
</button>
<div class="panel1">
<xsl:for-each select="b2cl/inv">
<button class="accordion2" type="button" expanded="false">
Invoice number - <xsl:value-of select="inum"/>, Date - <xsl:value-of select="idt"/>, Amount - <xsl:value-of select="val"/>
</button>
<div class="panel2">
<table class="tableClass">
<thead class="table-head">
<tr>
<th nowrap="true" style="border-left:0px solid black !important;" align="right">Serial #</th>
<th nowrap="true" align="right">Taxable amount</th>
<th nowrap="true" align="right">Rate</th>
<th nowrap="true" align="right">IGST amount</th>
<th nowrap="true" align="right">CGST amount</th>
<th nowrap="true" align="right">SGST amount</th>
<th nowrap="true" style="border-right:0px solid black !important;" align="right">Cess amount</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="itms">
<tr class='trClass'>
<td class="td_rightAlign" style="border-left:0px solid black !important;"><xsl:value-of select="num"/></td>
<td class="td_rightAlign"><xsl:value-of select="itm_det/txval"/></td>
<td class="td_rightAlign"><xsl:value-of select="itm_det/irt"/></td>
<td class="td_rightAlign"><xsl:value-of select="itm_det/iamt"/></td>
<td class="td_rightAlign"><xsl:value-of select="itm_det/camt"/></td>
<td class="td_rightAlign"><xsl:value-of select="itm_det/samt"/></td>
<td class="td_rightAlign" style="border-right:0px solid black !important;"><xsl:value-of select="itm_det/csamt"/></td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
</xsl:for-each>
</div>
</xsl:for-each>
<xsl:for-each select="b2cs_invoices">
<button class="accordion1" type="button" expanded="false">
<div class="iconDiv">I</div>
<div class="invTypDiv">Invoices for outward supply (B2CS)</div>
</button>
<div class="panel1">
<table class="tableClass">
<thead class="table-head">
<tr>
<th nowrap="true" style="border-left:0px solid black !important;" align="left">Supply type</th>
<th nowrap="true" align="right">Taxable amount</th>
<th nowrap="true" align="right">Rate</th>
<th nowrap="true" align="right">IGST amount</th>
<th nowrap="true" align="right">CGST amount</th>
<th nowrap="true" align="right">SGST amount</th>
<th nowrap="true" style="border-right:0px solid black !important;" align="right">Cess amount</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="b2cs">
<xsl:variable name="supply_type"><xsl:value-of select="sply_ty"/></xsl:variable>
<tr class='trClass'>
<td class="td_lefttAlign" style="border-left:0px solid black !important;">
<xsl:if test="$supply_type='INTER'">
Inter state
</xsl:if>
<xsl:if test="$supply_type='INTRA'">
Intra state
</xsl:if>
</td>
<td class="td_rightAlign"><xsl:value-of select="txval"/></td>
<td class="td_rightAlign"><xsl:value-of select="rt"/></td>
<td class="td_rightAlign">
<xsl:if test="$supply_type='INTER'">
<xsl:value-of select="iamt"/>
</xsl:if>
<xsl:if test="$supply_type='INTRA'">
0
</xsl:if>
</td>
<td class="td_rightAlign">
<xsl:if test="$supply_type='INTER'">
0
</xsl:if>
<xsl:if test="$supply_type='INTRA'">
<xsl:value-of select="camt"/>
</xsl:if>
</td>
<td class="td_rightAlign">
<xsl:if test="$supply_type='INTER'">
0
</xsl:if>
<xsl:if test="$supply_type='INTRA'">
<xsl:value-of select="samt"/>
</xsl:if>
</td>
<td class="td_rightAlign" style="border-right:0px solid black !important;"><xsl:value-of select="csamt"/></td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
</xsl:for-each>
<xsl:for-each select="cdnr_data">
<button class="accordion1" type="button" expanded="false">
<div class="iconDiv">C</div>
<div class="invTypDiv">Credit/Debit note</div>
</button>
<div class="panel1">
<xsl:for-each select="cdnr">
<button class="accordion2" type="button" expanded="false">
Counter party GSTIN - <xsl:value-of select="ctin"/>
</button>
<div class="panel2">
<xsl:for-each select="nt">
<button class="accordion3" type="button" expanded="false">
<p style="font-size:15px;margin:0px;">Credit/Debit note number - <xsl:value-of select="nt_num"/>, Date - <xsl:value-of select="nt_dt"/>, Amount - <xsl:value-of select="val"/></p>
<p style="margin:0px;">Reference invoice number - <xsl:value-of select="inum"/>, Date - <xsl:value-of select="idt"/></p>
</button>
<div class="panel3">
<table class="tableClass">
<thead class="table-head">
<tr>
<th nowrap="true" style="border-left:0px solid black !important;" align="right">Serial #</th>
<th nowrap="true" align="right">Taxable amount</th>
<th nowrap="true" align="right">Rate</th>
<th nowrap="true" align="right">IGST amount</th>
<th nowrap="true" align="right">CGST amount</th>
<th nowrap="true" align="right">SGST amount</th>
<th nowrap="true" style="border-right:0px solid black !important;" align="right">Cess amount</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="itms">
<tr class='trClass'>
<td class="td_rightAlign" style="border-left:0px solid black !important;"><xsl:value-of select="num"/></td>
<td class="td_rightAlign"><xsl:value-of select="itm_det/txval"/></td>
<td class="td_rightAlign"><xsl:value-of select="itm_det/rt"/></td>
<td class="td_rightAlign"><xsl:value-of select="itm_det/iamt"/></td>
<td class="td_rightAlign"><xsl:value-of select="itm_det/camt"/></td>
<td class="td_rightAlign"><xsl:value-of select="itm_det/samt"/></td>
<td class="td_rightAlign" style="border-right:0px solid black !important;"><xsl:value-of select="itm_det/csamt"/></td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
</xsl:for-each>
</div>
</xsl:for-each>
</div>
</xsl:for-each>
<xsl:for-each select="at_data">
<button class="accordion1" type="button" expanded="false">
<div class="iconDiv">A</div>
<div class="invTypDiv">Advance received</div>
</button>
<div class="panel1">
<table class="tableClass">
<thead class="table-head">
<tr>
<th nowrap="true" style="border-left:0px solid black !important;" align="left">Supply type</th>
<th nowrap="true" align="right">Advance amount</th>
<th nowrap="true" align="right">Rate</th>
<th nowrap="true" align="right">IGST amount</th>
<th nowrap="true" align="right">CGST amount</th>
<th nowrap="true" align="right">SGST amount</th>
<th nowrap="true" style="border-right:0px solid black !important;" align="right">Cess amount</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="at">
<xsl:variable name="supply_type"><xsl:value-of select="sply_ty"/></xsl:variable>
<tr class='trClass'>
<td class="td_lefttAlign" style="border-left:0px solid black !important;">
<xsl:if test="$supply_type='INTER'">
Inter state
</xsl:if>
<xsl:if test="$supply_type='INTRA'">
Intra state
</xsl:if>
</td>
<td class="td_rightAlign"><xsl:value-of select="itms/ad_amt"/></td>
<td class="td_rightAlign"><xsl:value-of select="itms/rt"/></td>
<td class="td_rightAlign">
<xsl:if test="$supply_type='INTER'">
<xsl:value-of select="itms/iamt"/>
</xsl:if>
<xsl:if test="$supply_type='INTRA'">
0
</xsl:if>
</td>
<td class="td_rightAlign">
<xsl:if test="$supply_type='INTER'">
0
</xsl:if>
<xsl:if test="$supply_type='INTRA'">
<xsl:value-of select="itms/camt"/>
</xsl:if>
</td>
<td class="td_rightAlign">
<xsl:if test="$supply_type='INTER'">
0
</xsl:if>
<xsl:if test="$supply_type='INTRA'">
<xsl:value-of select="itms/samt"/>
</xsl:if>
</td>
<td class="td_rightAlign" style="border-right:0px solid black !important;"><xsl:value-of select="itms/csamt"/></td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
</xsl:for-each>
<xsl:for-each select="txp_data">
<button class="accordion1" type="button" expanded="false">
<div class="iconDiv">T</div>
<div class="invTypDiv">Tax paid on advance received</div>
</button>
<div class="panel1">
<table class="tableClass">
<thead class="table-head">
<tr>
<th nowrap="true" style="border-left:0px solid black !important;" align="left">Supply type</th>
<th nowrap="true" align="right">Adjusted amount</th>
<th nowrap="true" align="right">Rate</th>
<th nowrap="true" align="right">IGST amount</th>
<th nowrap="true" align="right">CGST amount</th>
<th nowrap="true" align="right">SGST amount</th>
<th nowrap="true" style="border-right:0px solid black !important;" align="right">Cess amount</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="txpd">
<xsl:variable name="supply_type"><xsl:value-of select="sply_ty"/></xsl:variable>
<tr class='trClass'>
<td class="td_lefttAlign" style="border-left:0px solid black !important;">
<xsl:if test="$supply_type='INTER'">
Inter state
</xsl:if>
<xsl:if test="$supply_type='INTRA'">
Intra state
</xsl:if>
</td>
<td class="td_rightAlign"><xsl:value-of select="itms/ad_amt"/></td>
<td class="td_rightAlign"><xsl:value-of select="itms/rt"/></td>
<td class="td_rightAlign">
<xsl:if test="$supply_type='INTER'">
<xsl:value-of select="itms/iamt"/>
</xsl:if>
<xsl:if test="$supply_type='INTRA'">
0
</xsl:if>
</td>
<td class="td_rightAlign">
<xsl:if test="$supply_type='INTER'">
0
</xsl:if>
<xsl:if test="$supply_type='INTRA'">
<xsl:value-of select="itms/camt"/>
</xsl:if>
</td>
<td class="td_rightAlign">
<xsl:if test="$supply_type='INTER'">
0
</xsl:if>
<xsl:if test="$supply_type='INTRA'">
<xsl:value-of select="itms/samt"/>
</xsl:if>
</td>
<td class="td_rightAlign" style="border-right:0px solid black !important;"><xsl:value-of select="itms/csamt"/></td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
</xsl:for-each>
<xsl:for-each select="nil_data">
<button class="accordion1" type="button" expanded="false">
<div class="iconDiv">N</div>
<div class="invTypDiv">Nil rated supplies</div>
</button>
<div class="panel1">
<table class="tableClass">
<thead class="table-head">
<tr>
<th nowrap="true" style="border-left:0px solid black !important;" align="left">Supply type</th>
<th nowrap="true" align="right">Nil supplies</th>
<th nowrap="true" align="right">Exempted supplies</th>
<th nowrap="true" style="border-right:0px solid black !important;" align="right">Non GST supplies</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="nil/inv">
<xsl:variable name="supply_type"><xsl:value-of select="sply_ty"/></xsl:variable>
<tr class='trClass'>
<td class="td_lefttAlign" style="border-left:0px solid black !important;">
<xsl:if test="$supply_type='INTRB2B'">
Inter-State supplies to registered persons
</xsl:if>
<xsl:if test="$supply_type='INTRAB2B'">
Intra-State supplies to registered persons
</xsl:if>
<xsl:if test="$supply_type='INTRB2C'">
Inter-State supplies to unregistered persons
</xsl:if>
<xsl:if test="$supply_type='INTRAB2C'">
Intra-State supplies to unregistered persons
</xsl:if>
</td>
<td class="td_rightAlign"><xsl:value-of select="nil_amt"/></td>
<td class="td_rightAlign"><xsl:value-of select="expt_amt"/></td>
<td class="td_rightAlign" style="border-right:0px solid black !important;"><xsl:value-of select="ngsup_amt"/></td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
</xsl:for-each>
<xsl:for-each select="exp_data">
<button class="accordion1" type="button" expanded="false">
<div class="iconDiv">E</div>
<div class="invTypDiv">Export supplies</div>
</button>
<div class="panel1">
<xsl:for-each select="exp/inv">
<button class="accordion2" type="button" expanded="false">
<p style="font-size:15px;margin:0px;">Invoice number - <xsl:value-of select="inum"/>, Date - <xsl:value-of select="idt"/>, Amount - <xsl:value-of select="val"/></p>
<p style="font-size:13px;margin:0px;">Port code - <xsl:value-of select="sbpcode"/>, Shipping bill number - <xsl:value-of select="sbnum"/>, Date - <xsl:value-of select="sbdt"/></p>
</button>
<div class="panel2">
<table class="tableClass">
<thead class="table-head">
<tr>
<th nowrap="true" style="border-left:0px solid black !important;" align="left">Taxable value</th>
<th nowrap="true" align="right">Rate</th>
<th nowrap="true" align="right">IGST amount</th>
<th nowrap="true" align="right">CGST amount</th>
<th nowrap="true" align="right">SGST amount</th>
<th nowrap="true" style="border-right:0px solid black !important;" align="right">Cess amount</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="itms">
<tr class='trClass'>
<td class="td_lefttAlign" style="border-left:0px solid black !important;"><xsl:value-of select="txval"/></td>
<td class="td_rightAlign"><xsl:value-of select="rt"/></td>
<td class="td_rightAlign"><xsl:value-of select="iamt"/></td>
<td class="td_rightAlign"><xsl:value-of select="camt"/></td>
<td class="td_rightAlign"><xsl:value-of select="samt"/></td>
<td class="td_rightAlign" style="border-right:0px solid black !important;"><xsl:value-of select="csamt"/></td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
</xsl:for-each>
</div>
</xsl:for-each>
<xsl:for-each select="hsn_data">
<button class="accordion1" type="button" expanded="false">
<div class="iconDiv">H</div>
<div class="invTypDiv">HSN summary data</div>
</button>
<div class="panel1">
<table class="tableClass">
<thead class="table-head">
<tr>
<th nowrap="true" style="border-left:0px solid black !important;" align="right">Serial #</th>
<th nowrap="true" align="left">Goods/Service code</th>
<th nowrap="true" align="left">Description</th>
<th nowrap="true" align="right">Quantity</th>
<th nowrap="true" align="left">Unit</th>
<th nowrap="true" align="right">Value</th>
<th nowrap="true" align="right">Taxable value</th>
<th nowrap="true" align="right">IGST amount</th>
<th nowrap="true" align="right">CGST amount</th>
<th nowrap="true" align="right">SGST amount</th>
<th nowrap="true" style="border-right:0px solid black !important;" align="right">Cess amount</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="hsn/data">
<tr class='trClass'>
<td class="td_rightAlign" style="border-left:0px solid black !important;"><xsl:value-of select="num"/></td>
<td class="td_lefttAlign"><xsl:value-of select="hsn_sc"/></td>
<td class="td_lefttAlign"><xsl:value-of select="desc"/></td>
<td class="td_rightAlign"><xsl:value-of select="qty"/></td>
<td class="td_lefttAlign"><xsl:value-of select="uqc"/></td>
<td class="td_rightAlign"><xsl:value-of select="val"/></td>
<td class="td_rightAlign"><xsl:value-of select="txval"/></td>
<td class="td_rightAlign"><xsl:value-of select="iamt"/></td>
<td class="td_rightAlign"><xsl:value-of select="camt"/></td>
<td class="td_rightAlign"><xsl:value-of select="samt"/></td>
<td class="td_rightAlign" style="border-right:0px solid black !important;"><xsl:value-of select="csamt"/></td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
</xsl:for-each> -->
</xsl:if> </xsl:if>
</xsl:for-each> </xsl:for-each>
<xsl:for-each select="//Detail2"> <xsl:for-each select="//Detail2">
......
...@@ -140,11 +140,6 @@ ...@@ -140,11 +140,6 @@
</div> </div>
</div> </div>
<div class="eachLineFields"> <div class="eachLineFields">
<!-- <div class="eachField">
<div class="labelDiv">Month<span style="color:red;">*</span> : </div>
<div class="inputDiv"><input type="text" class="input_editable" value="{$period_code}" name="Detail1.{normalize-space($dbID)}.period_code" id="Detail1.{normalize-space($dbID)}.period_code" tabIndex="10" style="width:60px;" popupFldName="PERIOD_CODE" onkeyup="getAutoPopupData(this);" onfocus="displayPopUpIcon('popUpIcon1');"/></div>
<div class="popHelpIconDiv"><a href="javascript:getListOfValues('PERIOD_CODE','Detail1.{normalize-space($dbID)}.period_code','{$site_code}');" id="popUpIcon1" tabIndex="-1"><img src="/ibase/webitm/images/pophelp.png"/></a></div>
</div> -->
<div class="eachField"> <div class="eachField">
<div class="labelDiv">Month<span style="color:red;">*</span> : </div> <div class="labelDiv">Month<span style="color:red;">*</span> : </div>
<div class="inputDiv"><select class="input_editable" id="yearMonthInput" name="Detail1.{normalize-space($dbID)}.period_code"></select></div> <div class="inputDiv"><select class="input_editable" id="yearMonthInput" name="Detail1.{normalize-space($dbID)}.period_code"></select></div>
......
...@@ -193,197 +193,6 @@ ...@@ -193,197 +193,6 @@
</div> </div>
</xsl:if> </xsl:if>
<xsl:if test ="$dbID != '1'"> <xsl:if test ="$dbID != '1'">
<xsl:for-each select="pending_data">
<button class="accordion1" type="button">
<div class="iconDiv">P</div>
Pending data to save on GSTN server till date
</button>
<div class="panel1" id="pendingDataPanel">
<table class="tableClass" id="pendingDataTable">
<thead class="table-head">
<tr>
<th nowrap="true" style="border-left:0px solid black !important;" align="left">Document number</th>
<th nowrap="true" align="right">Date</th>
<th nowrap="true" style="border-right:0px solid black !important;" align="right">Amount</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="data">
<tr>
<td style="border-left:0px solid black !important;"><xsl:value-of select="doc_no"/></td>
<td align="right"><xsl:value-of select="doc_date"/></td>
<td style="border-right:0px solid black !important;" align="right"><xsl:value-of select="amount"/></td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
</xsl:for-each>
<!--<xsl:for-each select="summary_data">
<button class="accordion1" type="button" expanded="false">
<div class="iconDiv">S</div>
<div style="margin-left:40px;">
<xsl:variable name="summaryRetPeriod"><xsl:value-of select="ret_period"/></xsl:variable>
<input type="hidden" id="summaryRetPeriod" value="{$summaryRetPeriod}"/>
<div class="invTypDiv">Summary of documents till date saved on GSTN server for <span id="returnMonthLbl"></span></div>
</div>
</button>
<div class="panel1" style="overflow-x:auto;">
<table class="tableClass" id="dataSummaryTable">
<thead class="table-head">
<tr class="titleRow">
<th nowrap="true" style="border-left:0px solid black !important;" align="left">Section</th>
<th nowrap="true" align="right">No. of Invoices</th>
<th nowrap="true" align="right">Amount</th>
<th nowrap="true" align="right">Taxable amount</th>
<th nowrap="true" align="right">IGST</th>
<th nowrap="true" align="right">CGST</th>
<th nowrap="true" align="right">SGST</th>
<th nowrap="true" style="border-right:0px solid black !important;" align="right">Cess</th>
</tr>
</thead>
<tbody class="table-body">
<xsl:for-each select="sec_sum">
<xsl:variable name="sectionName"><xsl:value-of select="sec_nm"/></xsl:variable>
<xsl:if test="not($sectionName='HSN') and not($sectionName='DOC_ISSUE') and not($sectionName='NIL')">
<tr>
<td style="border-left:0px solid black !important;" class="titleColumn">
<xsl:if test="$sectionName='B2B'">
Invoices for outward supply (B2B)
</xsl:if>
<xsl:if test="$sectionName='B2BA'">
Revised invoices (B2B)
</xsl:if>
<xsl:if test="$sectionName='B2CL'">
Invoices for outward supply (B2CL)
</xsl:if>
<xsl:if test="$sectionName='B2CLA'">
Revised invoices (B2CL)
</xsl:if>
<xsl:if test="$sectionName='B2CS'">
Invoices for outward supply (B2CS)
</xsl:if>
<xsl:if test="$sectionName='B2CSA'">
Revised invoices (B2CS)
</xsl:if>
<xsl:if test="$sectionName='CDNR'">
Credit/Debit note
</xsl:if>
<xsl:if test="$sectionName='CDNRA'">
Revised Credit/Debit note
</xsl:if>
<xsl:if test="$sectionName='CDNUR'">
Credit/Debit note unregistered
</xsl:if>
<xsl:if test="$sectionName='CDNURA'">
Revised Credit/Debit note
</xsl:if>
<xsl:if test="$sectionName='AT'">
Advance received
</xsl:if>
<xsl:if test="$sectionName='ATA'">
Advance received amendment
</xsl:if>
<xsl:if test="$sectionName='TXPD'">
Tax paid on advance received
</xsl:if>
<xsl:if test="$sectionName='NIL'">
Nil supplies
</xsl:if>
<xsl:if test="$sectionName='EXP'">
Export supplies
</xsl:if>
<xsl:if test="$sectionName='EXPA'">
Revised Export supplies
</xsl:if>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="ttl_rec">
<xsl:value-of select="ttl_rec"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="ttl_val">
<xsl:value-of select="ttl_val"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="ttl_tax">
<xsl:value-of select="ttl_tax"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="ttl_igst">
<xsl:value-of select="ttl_igst"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="ttl_cgst">
<xsl:value-of select="ttl_cgst"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="ttl_sgst">
<xsl:value-of select="ttl_sgst"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td style="border-right:0px solid black !important;" align="right">
<xsl:choose>
<xsl:when test="ttl_cess">
<xsl:value-of select="ttl_cess"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:if>
</xsl:for-each>
<tr class="totalRow">
<td style="border-left:0px solid black !important;"><b>Total</b></td>
<td align="right" class="totalCol"></td>
<td align="right" class="totalCol"></td>
<td align="right" class="totalCol"></td>
<td align="right" class="totalCol"></td>
<td align="right" class="totalCol"></td>
<td align="right" class="totalCol"></td>
<td style="border-right:0px solid black !important;" align="right" class="totalCol"></td>
</tr>
</tbody>
</table>
</div>
</xsl:for-each>-->
<xsl:for-each select="b2b_invoices"> <xsl:for-each select="b2b_invoices">
<button class="accordion1" type="button" expanded="false"> <button class="accordion1" type="button" expanded="false">
<div class="iconDiv">I</div> <div class="iconDiv">I</div>
...@@ -612,7 +421,16 @@ ...@@ -612,7 +421,16 @@
<xsl:value-of select="samt"/> <xsl:value-of select="samt"/>
</xsl:if> </xsl:if>
</td> </td>
<td class="td_rightAlign" style="border-right:0px solid black !important;"><xsl:value-of select="csamt"/></td> <td class="td_rightAlign" style="border-right:0px solid black !important;">
<xsl:choose>
<xsl:when test="csamt">
<xsl:value-of select="csamt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
</tr> </tr>
</xsl:for-each> </xsl:for-each>
</tbody> </tbody>
...@@ -838,7 +656,16 @@ ...@@ -838,7 +656,16 @@
<xsl:value-of select="itms/samt"/> <xsl:value-of select="itms/samt"/>
</xsl:if> </xsl:if>
</td> </td>
<td class="td_rightAlign" style="border-right:0px solid black !important;"><xsl:value-of select="itms/csamt"/></td> <td class="td_rightAlign" style="border-right:0px solid black !important;">
<xsl:choose>
<xsl:when test="itms/csamt">
<xsl:value-of select="itms/csamt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
</tr> </tr>
</xsl:for-each> </xsl:for-each>
</tbody> </tbody>
...@@ -901,7 +728,16 @@ ...@@ -901,7 +728,16 @@
<xsl:value-of select="itms/samt"/> <xsl:value-of select="itms/samt"/>
</xsl:if> </xsl:if>
</td> </td>
<td class="td_rightAlign" style="border-right:0px solid black !important;"><xsl:value-of select="itms/csamt"/></td> <td class="td_rightAlign" style="border-right:0px solid black !important;">
<xsl:choose>
<xsl:when test="itms/csamt">
<xsl:value-of select="itms/csamt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
</tr> </tr>
</xsl:for-each> </xsl:for-each>
</tbody> </tbody>
...@@ -1107,12 +943,6 @@ ...@@ -1107,12 +943,6 @@
</xsl:if> </xsl:if>
</xsl:for-each> </xsl:for-each>
</div> </div>
<!--<div id="btnDiv">
<input type="hidden" value="2" name="FORM_NO" ID="FORM_NO" />
<input type="hidden" value="gstsalesdata_getinv" name="OBJ_NAME" />
<input type="hidden" value="" name="action" id="action" />
<input type="submit" style="cursor:hand;margin-left:20px;" value="Finish" onclick="setActionVal('finish');" class="button" title='Finish' id="finish"/>
</div>-->
</div> </div>
<div id="buttonreplacement"> <div id="buttonreplacement">
<img src="/ibase/images/preload.gif" alt="Please wait" ></img> <img src="/ibase/images/preload.gif" alt="Please wait" ></img>
......
...@@ -115,6 +115,8 @@ ...@@ -115,6 +115,8 @@
<xsl:variable name="gross_turnover"><xsl:value-of select="gross_turnover"/></xsl:variable> <xsl:variable name="gross_turnover"><xsl:value-of select="gross_turnover"/></xsl:variable>
<xsl:variable name="cur_gross_turnover"><xsl:value-of select="cur_gross_turnover"/></xsl:variable> <xsl:variable name="cur_gross_turnover"><xsl:value-of select="cur_gross_turnover"/></xsl:variable>
<xsl:variable name="action"><xsl:value-of select="action"/></xsl:variable> <xsl:variable name="action"><xsl:value-of select="action"/></xsl:variable>
<xsl:variable name="auth_token"><xsl:value-of select="auth_token"/></xsl:variable>
<xsl:variable name="sek"><xsl:value-of select="sek"/></xsl:variable>
<div class="inputFormDiv"> <div class="inputFormDiv">
<div class="eachLineFields"> <div class="eachLineFields">
...@@ -147,11 +149,6 @@ ...@@ -147,11 +149,6 @@
</div> </div>
</div> </div>
<div class="eachLineFields"> <div class="eachLineFields">
<!-- <div class="eachField">
<div class="labelDiv">Month<span style="color:red;">*</span> : </div>
<div class="inputDiv"><input type="text" class="input_editable" value="{$period_code}" name="Detail1.{normalize-space($dbID)}.period_code" id="Detail1.{normalize-space($dbID)}.period_code" tabIndex="10" style="width:60px;" popupFldName="PERIOD_CODE" onkeyup="getAutoPopupData(this);" onfocus="displayPopUpIcon('popUpIcon1');"/></div>
<div class="popHelpIconDiv"><a href="javascript:getListOfValues('PERIOD_CODE','Detail1.{normalize-space($dbID)}.period_code','{$site_code}');" id="popUpIcon1" tabIndex="-1"><img src="/ibase/webitm/images/pophelp.png"/></a></div>
</div> -->
<div class="eachField"> <div class="eachField">
<div class="labelDiv">Month<span style="color:red;">*</span> : </div> <div class="labelDiv">Month<span style="color:red;">*</span> : </div>
<div class="inputDiv"><select class="input_editable" id="yearMonthInput" name="Detail1.{normalize-space($dbID)}.period_code"></select></div> <div class="inputDiv"><select class="input_editable" id="yearMonthInput" name="Detail1.{normalize-space($dbID)}.period_code"></select></div>
...@@ -197,6 +194,16 @@ ...@@ -197,6 +194,16 @@
<div class="inputDiv"><input type="text" class="editDisplayClass" value="{$app_key}" name="Detail1.{normalize-space($dbID)}.app_key" id="Detail1.{normalize-space($dbID)}.app_key" tabIndex="-1" style="width:400px;"/></div> <div class="inputDiv"><input type="text" class="editDisplayClass" value="{$app_key}" name="Detail1.{normalize-space($dbID)}.app_key" id="Detail1.{normalize-space($dbID)}.app_key" tabIndex="-1" style="width:400px;"/></div>
</div> </div>
</div> </div>
<div class="eachLineFields" style="display:none;">
<div class="eachField">
<div class="labelDiv">Auth token : </div>
<div class="inputDiv"><input type="text" class="editDisplayClass" value="{$auth_token}" name="Detail1.{normalize-space($dbID)}.auth_token" id="Detail1.{normalize-space($dbID)}.auth_token" tabIndex="-1"/></div>
</div>
<div class="eachField">
<div class="labelDiv">Session key : </div>
<div class="inputDiv"><input type="text" class="editDisplayClass" value="{$sek}" name="Detail1.{normalize-space($dbID)}.sek" id="Detail1.{normalize-space($dbID)}.sek" tabIndex="-1"/></div>
</div>
</div>
</div> </div>
</xsl:for-each> </xsl:for-each>
</div> </div>
...@@ -204,7 +211,7 @@ ...@@ -204,7 +211,7 @@
<input type="hidden" value="1" name="FORM_NO" ID="FORM_NO" /> <input type="hidden" value="1" name="FORM_NO" ID="FORM_NO" />
<input type="hidden" value="gstsalesdata_save" name="OBJ_NAME" /> <input type="hidden" value="gstsalesdata_save" name="OBJ_NAME" />
<input type="hidden" value="" name="action" id="action" /> <input type="hidden" value="" name="action" id="action" />
<input type="submit" style="cursor:hand;margin-left:20px;" value="Finish" onclick="setActionVal('finish');displayWaitImg();return validateHeaderForm();" class="button" title='Finish' id="finish"/> <input type="submit" style="cursor:hand;margin-left:20px;" value="Finish" onclick="setActionVal('finish');return validateHeaderForm();" class="button" title='Finish' id="finish"/>
</div> </div>
</div> </div>
<div id="buttonreplacement"> <div id="buttonreplacement">
......
...@@ -138,11 +138,6 @@ ...@@ -138,11 +138,6 @@
</div> </div>
</div> </div>
<div class="eachLineFields"> <div class="eachLineFields">
<!--<div class="eachField">
<div class="labelDiv">Month<span style="color:red;">*</span> : </div>
<div class="inputDiv"><input type="text" class="input_editable" value="{$period_code}" name="Detail1.{normalize-space($dbID)}.period_code" id="Detail1.{normalize-space($dbID)}.period_code" tabIndex="10" style="width:60px;" popupFldName="PERIOD_CODE" onkeyup="getAutoPopupData(this);" onfocus="displayPopUpIcon('popUpIcon1');"/></div>
<div class="popHelpIconDiv"><a href="javascript:getListOfValues('PERIOD_CODE','Detail1.{normalize-space($dbID)}.period_code','{$site_code}');" id="popUpIcon1" tabIndex="-1"><img src="/ibase/webitm/images/pophelp.png"/></a></div>
</div>-->
<div class="eachField"> <div class="eachField">
<div class="labelDiv">Month<span style="color:red;">*</span> : </div> <div class="labelDiv">Month<span style="color:red;">*</span> : </div>
<div class="inputDiv"><select class="input_editable" id="yearMonthInput" name="Detail1.{normalize-space($dbID)}.period_code"></select></div> <div class="inputDiv"><select class="input_editable" id="yearMonthInput" name="Detail1.{normalize-space($dbID)}.period_code"></select></div>
......
...@@ -612,7 +612,16 @@ ...@@ -612,7 +612,16 @@
<xsl:value-of select="samt"/> <xsl:value-of select="samt"/>
</xsl:if> </xsl:if>
</td> </td>
<td class="td_rightAlign" style="border-right:0px solid black !important;"><xsl:value-of select="csamt"/></td> <td class="td_rightAlign" style="border-right:0px solid black !important;">
<xsl:choose>
<xsl:when test="csamt">
<xsl:value-of select="csamt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
</tr> </tr>
</xsl:for-each> </xsl:for-each>
</tbody> </tbody>
...@@ -838,7 +847,16 @@ ...@@ -838,7 +847,16 @@
<xsl:value-of select="itms/samt"/> <xsl:value-of select="itms/samt"/>
</xsl:if> </xsl:if>
</td> </td>
<td class="td_rightAlign" style="border-right:0px solid black !important;"><xsl:value-of select="itms/csamt"/></td> <td class="td_rightAlign" style="border-right:0px solid black !important;">
<xsl:choose>
<xsl:when test="itms/csamt">
<xsl:value-of select="itms/csamt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
</tr> </tr>
</xsl:for-each> </xsl:for-each>
</tbody> </tbody>
...@@ -901,7 +919,16 @@ ...@@ -901,7 +919,16 @@
<xsl:value-of select="itms/samt"/> <xsl:value-of select="itms/samt"/>
</xsl:if> </xsl:if>
</td> </td>
<td class="td_rightAlign" style="border-right:0px solid black !important;"><xsl:value-of select="itms/csamt"/></td> <td class="td_rightAlign" style="border-right:0px solid black !important;">
<xsl:choose>
<xsl:when test="itms/csamt">
<xsl:value-of select="itms/csamt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
</tr> </tr>
</xsl:for-each> </xsl:for-each>
</tbody> </tbody>
......
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