Commit 14f74d2f 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@106557 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 749eba1c
......@@ -234,8 +234,9 @@ div.panel3.show {
max-height: 2000px;
margin-bottom:0px;
}
.table-body.data-table>tr:last-child>td {
border-bottom: 1px solid #d2d2d2 !important;
}
.table-body>tr:last-child>td{
border-bottom : none !important;
}
......@@ -258,3 +259,47 @@ div.panel3.show {
height: 32px;
line-height: 32px;
}
.popupDataDiv{
display: none;
position: absolute;
z-index: 5;
background-color: white;
width: calc(100% - 24px);
height: calc(100% - 30px);
border: 2px solid lightgray;
top : 15px;
left: 15px;
}
.headerText{
font-size: 20px;
height :30px;
line-height: 30px;
padding-left: 15px;
color: #5893bf;
display: block;
float: left;
}
.detailPage-input-Container.dataContainer {
height: calc(100% - 70px);
}
.headerDiv{
display: inline-block;
width: 100%;
height :30px;
line-height: 30px;
}
.closeIcon{
float: right;
margin-top: 2px;
margin-right: 5px;
background-color: #777;
width: 22px;
height: 22px;
line-height: 22px;
color: white;
border-radius: 50%;
text-align: center;
cursor: pointer;
border: 2px solid white;
box-shadow: 0px 0px 1px 1px #777;
}
\ No newline at end of file
......@@ -396,7 +396,8 @@ function generateOTP()
var dataAction = document.getElementById("Detail1.1.action").value.trim();;
var url = "/ibase/GSTDataSubmitWizServlet?action=GENERATE_OTP&user_name="+escape(userName)+"&state_code="+stateCode+"&gstin_no="+escape(gstinNo)+"&period_code="+escape(periodCode)+"&site_code="+escape(siteCode)+"&rec_type="+escape(recType)+"&data_action="+escape(dataAction)+"";
setTimeout(function (){makeRequest( url, OTPGenerated);},100);
setTimeout(function (){makeRequest( url, OTPGenerated);},50);
//makeRequest( url, OTPGenerated);
}
function OTPGenerated(retVal)
......@@ -669,7 +670,11 @@ function getSignedData(docType)
function signedDataReceived(signedData)
{
if(signedData != undefined || signedData != null || signedData != "FAILED")
if(signedData == undefined || signedData == null || signedData == "FAILED")
{
alert("Error occurred during signing data.");
}
else
{
document.getElementById("Detail2.1.signed_data").value = signedData ;
var htmlBody = document.getElementsByTagName("html")[0];
......@@ -679,15 +684,13 @@ function signedDataReceived(signedData)
document.getElementById("gstdataSubmitForm2").action = "/ibase/ITMWizardHandlerServlet";
document.getElementById("gstdataSubmitForm2").submit();
}
else if(signedData == undefined || signedData == null || signedData == "FAILED")
{
alert("Error occurred during signing data.");
}
}
function formatDetailWithErr()
{
preErrData = document.getElementById("innerDiv").innerHTML;
var url = "/ibase/GSTDataSubmitWizServlet?action=DISPLAY_HTML_DATA";
var popupElem = $("e12popUpPnl-close");
popupElem.click();
makeRequest(url,displayDataFromSession);
}
function displayDataFromSession(retHtmlData)
......@@ -750,3 +753,39 @@ function dataSavedInSess(retVal)
{
console.log("Data saved in Session!");
}
function displayGSTR3BData()
{
var periodCode = document.getElementById("yearMonthInput").value.trim();
var siteCode = document.getElementById("Detail1.1.site_code").value.trim();
var url = "/ibase/GSTDataSubmitWizServlet?action=GET_GSTR3B_DATA&period_code="+encodeURIComponent(periodCode)+"&site_code="+encodeURIComponent(siteCode)+"";
makeRequest(url, renderData);
}
function renderData(retHtmlData)
{
if(retHtmlData.indexOf("error_message") != -1)
{
var xmlDoc = loadXMLString(retHtmlData);
var msgNode = xmlDoc.getElementsByTagName("error_message")[0];
var msg = msgNode.childNodes[0].nodeValue;
alert(msg);
}
else
{
var overlay = document.getElementById( "overlay" );
overlay.setAttribute( "style", "position: fixed; top: 0; right: 0; bottom: 0; left: 0; background-color:#000; opacity: .45; z-index:2; -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;");
var dataDiv = document.getElementById("gstr3bDataDiv");
dataDiv.style.display = "block";
dataDiv.innerHTML = retHtmlData;
console.log(retHtmlData);
}
}
function hidePopupDiv()
{
var overlay = document.getElementById( "overlay" );
overlay.removeAttribute( "style");
var dataDiv = document.getElementById("gstr3bDataDiv");
dataDiv.style.display = "none";
dataDiv.innerHTML = "";
}
\ No newline at end of file
<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:decimal-format NaN="0"/>
<xsl:template match="/">
<html>
<body>
<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="headerDiv">
<div class="headerText">GSTR3B Data</div>
<div class="closeIcon" onclick="hidePopupDiv();">X</div>
</div>
<div id="mainPageHeaderContatiner">
<div class="detailPage-input-Container dataContainer">
<xsl:for-each select="//section">
<xsl:variable name="dbID"><xsl:value-of select="@domID"/></xsl:variable>
<xsl:if test="$dbID='1'">
<span style="height:25px; display:block;color:#5893bf;">1. Details of Outward Supplies and inward supplies liable to reverse charge</span>
<xsl:choose>
<xsl:when test='summary_data'>
<table class="tableClass">
<thead class="table-head">
<tr class="titleRow">
<th nowrap="true" align="left">Nature of Supplies</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" align="right">Cess</th>
</tr>
</thead>
<tbody class="table-body data-table">
<xsl:for-each select="summary_data">
<tr>
<td>
<xsl:variable name="tran_type"><xsl:value-of select="tran_type"/></xsl:variable>
<xsl:if test="$tran_type='01'">
Outward taxable supplies (other than zero rated, nil rated and exempted)
</xsl:if>
<xsl:if test="$tran_type='02'">
Outward taxable supplies (zero rated )
</xsl:if>
<xsl:if test="$tran_type='03'">
Other outward supplies (Nil rated, exempted)
</xsl:if>
<xsl:if test="$tran_type='04'">
Inward supplies (liable to reverse charge)
</xsl:if>
<xsl:if test="$tran_type='05'">
Non-GST outward supplies
</xsl:if>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="taxable_amt">
<xsl:value-of select="taxable_amt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="igst_amt">
<xsl:value-of select="igst_amt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="cgst_amt">
<xsl:value-of select="cgst_amt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="sgst_amt">
<xsl:value-of select="sgst_amt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="cess_amt">
<xsl:value-of select="cess_amt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</xsl:when>
<xsl:otherwise>
Outward supplies data not found
</xsl:otherwise>
</xsl:choose>
</xsl:if>
<xsl:if test="$dbID='2'">
<span style="height:25px; display:block;margin-top:15px;color:#5893bf;">2. Details of inter-State supplies made to unregistered persons, composition taxable persons and UIN holders
</span>
<xsl:if test="unreg_data/data">
<span style="height:25px; display:block;margin-left:15px;">2.1 Inter-State supplies made to unregistered persons</span>
<table class="tableClass">
<thead class="table-head">
<tr class="titleRow">
<th nowrap="true" align="left">Place of supply</th>
<th nowrap="true" align="right">Taxable amount</th>
<th nowrap="true" align="right">IGST</th>
<th nowrap="true" align="right">Cess</th>
</tr>
</thead>
<tbody class="table-body data-table">
<xsl:for-each select="unreg_data/data">
<tr>
<td align="left">
<xsl:choose>
<xsl:when test="gst_code">
<xsl:value-of select="gst_code"/>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
-
<xsl:choose>
<xsl:when test="state_descr">
<xsl:value-of select="state_descr"/>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="taxable_amt">
<xsl:value-of select="taxable_amt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="igst_amt">
<xsl:value-of select="igst_amt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="cess_amt">
<xsl:value-of select="cess_amt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</xsl:if>
<xsl:if test="comp_data/data">
<span style="height:25px; display:block;margin-top:10px;margin-left:15px;">2.2 Inter-State supplies made to composition taxable persons</span>
<table class="tableClass">
<thead class="table-head">
<tr class="titleRow">
<th nowrap="true" align="left">Place of supply</th>
<th nowrap="true" align="right">Taxable amount</th>
<th nowrap="true" align="right">IGST</th>
<th nowrap="true" align="right">Cess</th>
</tr>
</thead>
<tbody class="table-body data-table">
<xsl:for-each select="comp_data/data">
<tr>
<td align="left">
<xsl:choose>
<xsl:when test="gst_code">
<xsl:value-of select="gst_code"/>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
-
<xsl:choose>
<xsl:when test="state_descr">
<xsl:value-of select="state_descr"/>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="taxable_amt">
<xsl:value-of select="taxable_amt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="igst_amt">
<xsl:value-of select="igst_amt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="cess_amt">
<xsl:value-of select="cess_amt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</xsl:if>
<xsl:if test="uin_data/data">
<span style="height:25px; display:block;margin-top:10px;margin-left:15px;">2.3 Inter-State supplies made to composition UIN holders</span>
<table class="tableClass">
<thead class="table-head">
<tr class="titleRow">
<th nowrap="true" align="left">Place of supply</th>
<th nowrap="true" align="right">Taxable amount</th>
<th nowrap="true" align="right">IGST</th>
<th nowrap="true" align="right">Cess</th>
</tr>
</thead>
<tbody class="table-body data-table">
<xsl:for-each select="comp_data/data">
<tr>
<td align="left">
<xsl:choose>
<xsl:when test="gst_code">
<xsl:value-of select="gst_code"/>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
-
<xsl:choose>
<xsl:when test="state_descr">
<xsl:value-of select="state_descr"/>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="taxable_amt">
<xsl:value-of select="taxable_amt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="igst_amt">
<xsl:value-of select="igst_amt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="cess_amt">
<xsl:value-of select="cess_amt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</xsl:if>
</xsl:if>
<xsl:if test="$dbID='3'">
<span style="height:25px; display:block;margin-top:15px;color:#5893bf;">3. Eligible ITC</span>
<table class="tableClass">
<thead class="table-head">
<tr class="titleRow">
<th nowrap="true" align="left">Details</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" align="right">Cess</th>
</tr>
</thead>
<tbody class="table-body data-table">
<xsl:if test="itc_available">
<tr>
<td><b>ITC Available (whether in full or part)</b></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<xsl:for-each select="itc_available">
<tr>
<td align="left">
<xsl:variable name="tran_type"><xsl:value-of select="tran_type"/></xsl:variable>
<xsl:if test="$tran_type='09'">
Import of goods
</xsl:if>
<xsl:if test="$tran_type='10'">
Import of services
</xsl:if>
<xsl:if test="$tran_type='11'">
Inward supplies liable to reverse charge
</xsl:if>
<xsl:if test="$tran_type='12'">
Inward supplies from ISD
</xsl:if>
<xsl:if test="$tran_type='13'">
As per rule
</xsl:if>
<xsl:if test="$tran_type='14'">
All other ITC
</xsl:if>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="taxable_amt">
<xsl:value-of select="taxable_amt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="igst_amt">
<xsl:value-of select="igst_amt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="cgst_amt">
<xsl:value-of select="cgst_amt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="sgst_amt">
<xsl:value-of select="sgst_amt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="cess_amt">
<xsl:value-of select="cess_amt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:for-each>
</xsl:if>
<xsl:if test="itc_reversed">
<tr>
<td><b>ITC Reversed</b></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<xsl:for-each select="itc_reversed">
<tr>
<td align="left">
<xsl:variable name="tran_type"><xsl:value-of select="tran_type"/></xsl:variable>
<xsl:if test="$tran_type='15'">
Import of goods
</xsl:if>
<xsl:if test="$tran_type='16'">
Import of services
</xsl:if>
<xsl:if test="$tran_type='17'">
Inward supplies liable to reverse charge
</xsl:if>
<xsl:if test="$tran_type='18'">
Inward supplies from ISD
</xsl:if>
<xsl:if test="$tran_type='19'">
As per rule
</xsl:if>
<xsl:if test="$tran_type='20'">
All other ITC
</xsl:if>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="taxable_amt">
<xsl:value-of select="taxable_amt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="igst_amt">
<xsl:value-of select="igst_amt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="cgst_amt">
<xsl:value-of select="cgst_amt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="sgst_amt">
<xsl:value-of select="sgst_amt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="cess_amt">
<xsl:value-of select="cess_amt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:for-each>
</xsl:if>
<xsl:if test="itc_net">
<xsl:for-each select="itc_net">
<tr>
<td><b>Net ITC Available</b></td>
<td align="right">
<xsl:choose>
<xsl:when test="taxable_amt">
<xsl:value-of select="taxable_amt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="igst_amt">
<xsl:value-of select="igst_amt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="cgst_amt">
<xsl:value-of select="cgst_amt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="sgst_amt">
<xsl:value-of select="sgst_amt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="cess_amt">
<xsl:value-of select="cess_amt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:for-each>
</xsl:if>
<xsl:if test="itc_ineligible">
<tr>
<td><b>Ineligible ITC</b></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<xsl:for-each select="itc_ineligible">
<tr>
<td>
<xsl:variable name="tran_type"><xsl:value-of select="tran_type"/></xsl:variable>
<xsl:if test="$tran_type='22'">
Import of goods
</xsl:if>
<xsl:if test="$tran_type='23'">
Import of services
</xsl:if>
<xsl:if test="$tran_type='24'">
Inward supplies liable to reverse charge
</xsl:if>
<xsl:if test="$tran_type='25'">
Inward supplies from ISD
</xsl:if>
<xsl:if test="$tran_type='26'">
As per rule
</xsl:if>
<xsl:if test="$tran_type='27'">
All other ITC
</xsl:if>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="taxable_amt">
<xsl:value-of select="taxable_amt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="igst_amt">
<xsl:value-of select="igst_amt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="cgst_amt">
<xsl:value-of select="cgst_amt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="sgst_amt">
<xsl:value-of select="sgst_amt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="cess_amt">
<xsl:value-of select="cess_amt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:for-each>
</xsl:if>
</tbody>
</table>
</xsl:if>
<xsl:if test="$dbID='4'">
<span style="height:25px; display:block;margin-top:15px;color:#5893bf;">4. Values of exempt, nil-rated and non-GST inward supplies</span>
<table class="tableClass">
<thead class="table-head">
<tr class="titleRow">
<th nowrap="true" align="left">Nature of Supplies</th>
<th nowrap="true" align="right">Inter-State value</th>
<th nowrap="true" align="right">Intra-State value</th>
</tr>
</thead>
<tbody class="table-body data-table">
<xsl:for-each select="gst_data">
<tr>
<td>From a supplier under composition scheme, Exempt and Nil rated supplies</td>
<td align="right">
<xsl:choose>
<xsl:when test="gst_data/inter">
<xsl:value-of select="gst_data/inter"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="gst_data/intra">
<xsl:value-of select="gst_data/intra"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:for-each>
<xsl:for-each select="non_gst_data">
<tr>
<td>Non GST supplies</td>
<td align="right">
<xsl:choose>
<xsl:when test="non_gst_data/inter">
<xsl:value-of select="gst_data/inter"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="non_gst_data/intra">
<xsl:value-of select="gst_data/intra"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</xsl:if>
<xsl:if test="$dbID='5'">
<span style="height:25px; display:block;margin-top:15px;color:#5893bf;">5. Interest and late fee</span>
<xsl:choose>
<xsl:when test='interest_latefee'>
<table class="tableClass">
<thead class="table-head">
<tr class="titleRow">
<th nowrap="true" align="left">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" align="right">Cess</th>
</tr>
</thead>
<tbody class="table-body data-table">
<xsl:for-each select="interest_latefee">
<tr>
<td>Interest and late fee</td>
<td align="right">
<xsl:choose>
<xsl:when test="igst_amt">
<xsl:value-of select="igst_amt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="cgst_amt">
<xsl:value-of select="cgst_amt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="sgst_amt">
<xsl:value-of select="sgst_amt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
<td align="right">
<xsl:choose>
<xsl:when test="cess_amt">
<xsl:value-of select="cess_amt"/>
</xsl:when>
<xsl:otherwise>
0
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</xsl:when>
<xsl:otherwise>
Interest and late fee data not found.
</xsl:otherwise>
</xsl:choose>
</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>
......@@ -186,7 +186,7 @@
</div>
<div id="btnDiv">
<input type="hidden" value="1" name="FORM_NO" ID="FORM_NO" />
<input type="hidden" value="gstreturn_file" name="OBJ_NAME" />
<input type="hidden" value="gstreturn3b_file" name="OBJ_NAME" />
<input type="hidden" value="" name="action" id="action" />
<input type="submit" style="cursor:hand;margin-left:20px;" value="Next" onclick="setActionVal('next');return validateHeaderForm();" class="button" title='Next' id="next"/>
</div>
......
......@@ -414,7 +414,7 @@
</div>
<div id="btnDiv">
<input type="hidden" value="2" name="FORM_NO" ID="FORM_NO" />
<input type="hidden" value="gstreturn_file" name="OBJ_NAME" />
<input type="hidden" value="gstreturn3b_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('GSTR3B');" class="button" title='Finish' id="finish"/>
</div>
......
......@@ -98,6 +98,7 @@
<div id="popHelpContainer"></div>
<div id="overlay"></div>
<div id="gstr3bDataDiv" class="popupDataDiv"></div>
<div id="mainPageHeaderContatiner">
<div class="mainPage-input-Container">
<xsl:for-each select="//Detail1">
......@@ -201,7 +202,8 @@
<input type="hidden" value="1" name="FORM_NO" ID="FORM_NO" />
<input type="hidden" value="gstreturn3b_save" 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 validateHeaderForm();" class="button" title='Finish' id="finish"/>
<input type="button" style="cursor:hand;margin-left:20px;" value="View Data" class="button" onclick="displayGSTR3BData();"/>
<input type="submit" style="cursor:hand;" value="Finish" onclick="setActionVal('finish');return validateHeaderForm();" class="button" title='Finish' id="finish"/>
</div>
</div>
<div id="buttonreplacement">
......
......@@ -184,7 +184,7 @@
</div>
<div id="btnDiv">
<input type="hidden" value="1" name="FORM_NO" ID="FORM_NO" />
<input type="hidden" value="gstreturn_submit" name="OBJ_NAME" />
<input type="hidden" value="gstreturn3b_submit" name="OBJ_NAME" />
<input type="hidden" value="" name="action" id="action" />
<input type="submit" style="cursor:hand;margin-left:20px;" value="Next" onclick="setActionVal('next');return validateHeaderForm();" class="button" title='Next' id="next"/>
</div>
......
......@@ -1150,7 +1150,7 @@
</div>
<div id="btnDiv">
<input type="hidden" value="2" name="FORM_NO" ID="FORM_NO" />
<input type="hidden" value="gstreturn_submit" name="OBJ_NAME" />
<input type="hidden" value="gstreturn3b_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>
......
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