Commit b9c0d6dc 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@106109 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2d93f289
......@@ -12,7 +12,7 @@
background-color: white;
}
.detailPage-input-Container{
height : calc(100% - 90px);
height : calc(100% - 100px);
width : 98%;
border : 1px solid lightgray !important;
border-top: 2px solid #7bc6ff !important;
......@@ -94,7 +94,165 @@
.popHelpIconDiv a img{
vertical-align:middle;
}
#titleText
{
#titleText{
display: inline;
}
.show{
margin-bottom: 5px;
border-bottom:none;
padding-top:2px;
}
button.accordion1 {
background-color: white;
border:1px solid #ddd !important;
color: #000;
cursor: pointer;
padding: 6px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 16px !important;
transition: 0.6s;
line-height: 20px;
display: inline-block;
}
button.accordion1.active, button.accordion1:hover {
border : 1px solid #ddd !important;
}
button.accordion1.activeAccor{
background-color: #fdf5ce;
}
button.accordion1.active{
border-bottom : none !important;
}
div.panel1 {
padding:0px;
border:1px solid #ddd !important;
background-color: white;
max-height: 0;
overflow: hidden;
transition: 0.4s ease-in-out;
opacity: 0;
}
div.panel1.show {
border-top:none !important;
opacity: 1;
max-height: 2000px;
}
button.accordion2 {
background-color: white;
border:0px solid #ddd !important;
border-top:1px solid #ddd !important;
border-bottom:0px solid #ddd !important;
border-radius:0px;
padding: 4px;
color: #000;
cursor: pointer;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px !important;
transition: 0.6s;
line-height: 24px;
}
button.accordion2.active, button.accordion2:hover {
border-top:1px solid #ddd !important;
}
button.accordion2.activeAccor{
border-top:1px solid #ddd !important;
background-color: #fdf5ce;
}
button.accordion2.active{
border-bottom : none !important;
}
div.panel2 {
padding:0px;
border:1px solid #ddd !important;
background-color: white;
max-height: 0;
overflow: hidden;
transition: 0.4s ease-in-out;
opacity: 0;
}
div.panel2.show {
border:none !important;
opacity: 1;
max-height: 2000px;
margin-bottom:0px;
}
button.accordion3 {
background-color: white;
border:0px solid #ddd !important;
border-top:1px solid #ddd !important;
border-bottom:0px solid #ddd !important;
border-radius:0px;
padding: 4px;
color: #000;
cursor: pointer;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 13px !important;
transition: 0.6s;
line-height: 20px;
}
button.accordion3.active, button.accordion3:hover {
border-top:1px solid #ddd !important;
}
button.accordion3.activeAccor{
border-top:1px solid #ddd !important;
}
button.accordion3.active{
border-bottom : none !important;
background-color: #eee;
}
div.panel3 {
padding:0px;
border:1px solid #ddd !important;
background-color: white;
max-height: 0;
overflow: hidden;
transition: 0.4s ease-in-out;
opacity: 0;
}
div.panel3.show {
border:none !important;
opacity: 1;
max-height: 2000px;
margin-bottom:0px;
}
.table-body>tr:last-child>td{
border-bottom : none !important;
}
.td_rightAlign{
color: #000000;
}
.iconDiv{
border-radius: 50%;
height: 32px;
width: 32px;
color: #ffffff;
background-color: #cfbebe;
float: left;
line-height: 32px;
font-size: 20px;
margin-right: 5px;
text-align: center;
}
.invTypDiv {
height: 32px;
line-height: 32px;
}
\ No newline at end of file
......@@ -385,7 +385,8 @@ function generateOTP()
document.getElementById("Detail1.1.otp").value = "";
var userName = document.getElementById("Detail1.1.username").value.trim();
var stateCode = document.getElementById("Detail1.1.state_code").value.trim();
var url = "/ibase/GSTDataSubmitWizServlet?action=GENERATE_OTP&user_name="+(userName)+"&state_code="+stateCode+"";
var gstinNo = document.getElementById("Detail1.1.gstin").value.trim();
var url = "/ibase/GSTDataSubmitWizServlet?action=GENERATE_OTP&user_name="+escape(userName)+"&state_code="+stateCode+"&gstin_no="+escape(gstinNo)+"";
makeRequest( url, OTPGenerated);
}
......@@ -397,7 +398,7 @@ function OTPGenerated(retVal)
var xmlDoc = loadXMLString(retVal);
var msgNode = xmlDoc.getElementsByTagName("message")[0];
var msg = msgNode.childNodes[0].nodeValue;
//alert(msg);
alert(msg);
document.getElementById("otpInputDiv").style.display = "block";
document.getElementById("Detail1.1.otp").focus();
if(msg.indexOf("Error") == -1)
......@@ -576,4 +577,116 @@ function setTitlenImg(retVal)
document.getElementById("titleText").innerHTML = title;
document.getElementById("titleImg").setAttribute("src","/ibase/images/menuImages/web/Galaxy/"+img);
}
/*function setSummaryTotal()
{
var totalRecCnt = 0, totalRecValue = 0, totalTaxValue = 0, totalIGST = 0, totalCGST = 0, totalSGST = 0, totalCess = 0;
var summaryTable = document.getElementById("dataSummaryTable");
var dataRows = summaryTable.rows;
for(var i=1; i<dataRows.length-1; i++)
{
var dataCells = summaryTable.rows[i].cells;
for(var j=1; j<dataCells.length; j++)
{
var cellData = parseInt(dataCells[j].innerHTML);
if(j == 1)
{
totalRecCnt += cellData;
}
if(j == 2)
{
totalRecValue += cellData;
}
if(j == 3)
{
totalTaxValue += cellData;
}
if(j == 4)
{
totalIGST += cellData;
}
if(j == 5)
{
totalCGST += cellData;
}
if(j == 6)
{
totalSGST += cellData;
}
if(j == 7)
{
totalCess += cellData;
}
}
}
console.log("totalRecCnt["+totalRecCnt+"] totalRecValue["+totalRecValue+"]totalTaxValue["+totalTaxValue+"]totalIGST["+totalIGST+"]totalCGST["+totalCGST+"]totalSGST["+totalSGST+"]totalCess["+totalCess+"]");
var lastRowCells = summaryTable.rows[dataRows.length-1].cells;console.log(lastRowCells);
for(var i=1; i<lastRowCells.length; i++)
{
if(i == 1)
{
lastRowCells[i].innerHTML = "<b>"+totalRecCnt+"</b>";
}
if(i == 2)
{
lastRowCells[i].innerHTML = "<b>"+totalRecValue+"</b>";
}
if(i == 3)
{
lastRowCells[i].innerHTML = "<b>"+totalTaxValue+"</b>";
}
if(i == 4)
{
lastRowCells[i].innerHTML = "<b>"+totalIGST+"</b>";
}
if(i == 5)
{
lastRowCells[i].innerHTML = "<b>"+totalCGST+"</b>";
}
if(i == 6)
{
lastRowCells[i].innerHTML = "<b>"+totalSGST+"</b>";
}
if(i == 7)
{
lastRowCells[i].innerHTML = "<b>"+totalCess+"</b>";
}
}
}*/
function setSummaryTotal()
{
var totalsByCol = [0, 0, 0, 0, 0, 0, 0];
$(document).ready(function() {
var $dataRows = $("#dataSummaryTable tr:not('.titleRow, .totalRow')");
$dataRows.each(function(i) {
$(this).find('td:not(.titleColumn)').each(function(j) {
totalsByCol[j] += parseInt($(this).html());
});
});
$("#dataSummaryTable td.totalCol").each(function(i) {
$(this).html("<b>"+totalsByCol[i]+"</b>");
});
$dataRows.each(function(i) {
var rowTotal = 0;
$(this).find('td:not(.titleColumn)').each(function() {
rowTotal += parseInt($(this).html());
});
if(rowTotal == 0)
{
$dataRows[i].style.display = "none";
}
});
});
}
\ No newline at end of file
......@@ -111,9 +111,7 @@
<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="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="action"><xsl:value-of select="action"/></xsl:variable>
<div class="inputFormDiv">
<div class="eachLineFields">
......@@ -134,10 +132,6 @@
<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>
<div class="eachField" style="float:right;">
<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>
</div>
<div class="eachLineFields">
<div class="eachField">
......@@ -193,7 +187,7 @@
<input type="hidden" value="1" name="FORM_NO" ID="FORM_NO" />
<input type="hidden" value="gstsalesdata_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 validateHeaderForm();displayWaitImg();" class="button" title='Finish' id="finish"/>
<input type="submit" style="cursor:hand;margin-left:20px;" value="Next" onclick="setActionVal('next');displayWaitImg();return validateHeaderForm();" class="button" title='Next' id="next"/>
</div>
</div>
<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('gstsalesdata_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/htmlWizard.css" rel="stylesheet"/>
<link href="/ibase/webitm/css/Standard/default.css" rel="stylesheet"/>
<link href="/ibase/webitm/css/Galaxy/galaxy-theme.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>
</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="labelDiv">Auth token : </div>
<div class="inputDiv"><input type="text" class="editDisplayClass" value="{$auth_token}" name="Detail2.{normalize-space($dbID)}.auth_token" id="Detail1.{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="Detail1.{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>
Data pending to save on GSTN server
</button>
<div class="panel1">
<table class="tableClass">
<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;">
<div class="invTypDiv">Summary of documents till date saved on GSTN server for
<xsl:variable name="retPeriod"><xsl:value-of select="ret_period"/></xsl:variable>
<xsl:variable name="monthCode"><xsl:value-of select="substring($retPeriod,1,2)"/></xsl:variable>
<xsl:if test="$monthCode=01">
January
</xsl:if>
<xsl:if test="$monthCode=02">
February
</xsl:if>
<xsl:if test="$monthCode=03">
March
</xsl:if>
<xsl:if test="$monthCode=04">
April
</xsl:if>
<xsl:if test="$monthCode=05">
May
</xsl:if>
<xsl:if test="$monthCode=06">
June
</xsl:if>
<xsl:if test="$monthCode=07">
July
</xsl:if>
<xsl:if test="$monthCode=08">
August
</xsl:if>
<xsl:if test="$monthCode=09">
September
</xsl:if>
<xsl:if test="$monthCode=10">
October
</xsl:if>
<xsl:if test="$monthCode=11">
November
</xsl:if>
<xsl:if test="$monthCode=12">
December
</xsl:if>
<xsl:value-of select="substring($retPeriod,3,4 )"/>
</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">Count</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="sec_sum">
<tr>
<td style="border-left:0px solid black !important;" class="titleColumn">
<xsl:variable name="sectionName"><xsl:value-of select="sec_nm"/></xsl:variable>
<xsl:if test="$sectionName='B2BT'">
Invoices for outward supply (B2B)
</xsl:if>
<xsl:if test="$sectionName='B2BAT'">
Revised invoices (B2B)
</xsl:if>
<xsl:if test="$sectionName='B2CLT'">
Invoices for outward supply (B2CL)
</xsl:if>
<xsl:if test="$sectionName='B2CLAT'">
Revised invoices (B2CL)
</xsl:if>
<xsl:if test="$sectionName='B2CST'">
Invoices for outward supply (B2CS)
</xsl:if>
<xsl:if test="$sectionName='B2CSAT'">
Revised invoices (B2CS)
</xsl:if>
<xsl:if test="$sectionName='CDNT'">
Credit/Debit note
</xsl:if>
<xsl:if test="$sectionName='CDNAT'">
Revised Credit/Debit note
</xsl:if>
<xsl:if test="$sectionName='ATT'">
Advance received
</xsl:if>
<xsl:if test="$sectionName='ATAT'">
Advance received amendment
</xsl:if>
<xsl:if test="$sectionName='TXPDT'">
Tax paid on advance received
</xsl:if>
<xsl:if test="$sectionName='NILT'">
Nil supplies
</xsl:if>
<xsl:if test="$sectionName='EXPWPT'">
Exports with tax payment
</xsl:if>
<xsl:if test="$sectionName='EXPWOPT'">
Exports without tax payment
</xsl:if>
<xsl:if test="$sectionName='EXPWPAT'">
Exports with tax payment amendment
</xsl:if>
<xsl:if test="$sectionName='EXPWOPAT'">
Exports without tax payment amendment
</xsl:if>
<xsl:if test="$sectionName='ECOMINTRAT'">
Intra state e-commerce supplies amendments
</xsl:if>
<xsl:if test="$sectionName='ECOMINTRT'">
Inter state e-commerce supplies
</xsl:if>
<xsl:if test="$sectionName='HSNT'">
HSN summary
</xsl:if>
</td>
<td align="right"><xsl:value-of select="ttl_rec"/></td>
<td align="right"><xsl:value-of select="ttl_val"/></td>
<td align="right"><xsl:value-of select="ttl_tax"/></td>
<td align="right"><xsl:value-of select="ttl_igst"/></td>
<td align="right"><xsl:value-of select="ttl_cgst"/></td>
<td align="right"><xsl:value-of select="ttl_sgst"/></td>
<td style="border-right:0px solid black !important;" align="right"><xsl:value-of select="ttl_cess"/></td>
</tr>
</xsl:for-each>
<tr class="totalRow">
<td style="border-left:0px solid black !important;"><b>Total</b></td>
<td align="right" class="totalCol"><xsl:value-of select="ttl_rec"/></td>
<td align="right" class="totalCol"><xsl:value-of select="ttl_val"/></td>
<td align="right" class="totalCol"><xsl:value-of select="ttl_tax"/></td>
<td align="right" class="totalCol"><xsl:value-of select="ttl_igst"/></td>
<td align="right" class="totalCol"><xsl:value-of select="ttl_cgst"/></td>
<td align="right" class="totalCol"><xsl:value-of select="ttl_sgst"/></td>
<td style="border-right:0px solid black !important;" align="right" class="totalCol"><xsl:value-of select="ttl_cess"/></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 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:for-each>
</div>
<div id="btnDiv">
<input type="hidden" value="2" name="FORM_NO" ID="FORM_NO" />
<input type="hidden" value="gstsalesdata_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 displayWaitImg();return validateHeaderForm();" 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>
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