Commit be20b33d 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@106757 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 3ea5592b
...@@ -117,7 +117,7 @@ button.accordion1 { ...@@ -117,7 +117,7 @@ button.accordion1 {
outline: none; outline: none;
font-size: 16px !important; font-size: 16px !important;
transition: 0.6s; transition: 0.6s;
line-height: 20px; line-height: 32px;
display: inline-block; display: inline-block;
} }
...@@ -290,12 +290,12 @@ div.panel3.show { ...@@ -290,12 +290,12 @@ div.panel3.show {
} }
.closeIcon{ .closeIcon{
float: right; float: right;
margin-top: 2px; margin-top: 3px;
margin-right: 5px; margin-right: 5px;
background-color: #777; background-color: #777;
width: 22px; width: 18px;
height: 22px; height: 18px;
line-height: 22px; line-height: 18px;
color: white; color: white;
border-radius: 50%; border-radius: 50%;
text-align: center; text-align: center;
......
...@@ -393,7 +393,7 @@ function generateOTP() ...@@ -393,7 +393,7 @@ function generateOTP()
var periodCode = document.getElementById("yearMonthInput").value.trim(); var periodCode = document.getElementById("yearMonthInput").value.trim();
var siteCode = document.getElementById("Detail1.1.site_code").value.trim(); var siteCode = document.getElementById("Detail1.1.site_code").value.trim();
var recType = document.getElementById("Detail1.1.returns_type").value.trim(); var recType = document.getElementById("Detail1.1.returns_type").value.trim();
var dataAction = document.getElementById("Detail1.1.action").value.trim();; 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)+""; 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);},50); setTimeout(function (){makeRequest( url, OTPGenerated);},50);
...@@ -424,7 +424,6 @@ function OTPGenerated(retVal) ...@@ -424,7 +424,6 @@ function OTPGenerated(retVal)
} }
function validateHeaderForm() function validateHeaderForm()
{ {
if(document.getElementById("Detail1.1.otp").value == undefined || document.getElementById("Detail1.1.otp").value == null || document.getElementById("Detail1.1.otp").value.trim() == "" ) 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)
...@@ -716,7 +715,8 @@ function returnPeriodDropdown() ...@@ -716,7 +715,8 @@ function returnPeriodDropdown()
selectedMonthCode = monthCode[prevMonth.getMonth()]+prevMonth.getFullYear(); selectedMonthCode = monthCode[prevMonth.getMonth()]+prevMonth.getFullYear();
var prevdate = curDate.addMonths(-4); var prevdate = curDate.addMonths(-6);
//var prevdate = curDate.addMonths(-18);
for(var i=0; i<6; i++) for(var i=0; i<6; i++)
{ {
...@@ -777,7 +777,6 @@ function renderData(retHtmlData) ...@@ -777,7 +777,6 @@ function renderData(retHtmlData)
var dataDiv = document.getElementById("gstr3bDataDiv"); var dataDiv = document.getElementById("gstr3bDataDiv");
dataDiv.style.display = "block"; dataDiv.style.display = "block";
dataDiv.innerHTML = retHtmlData; dataDiv.innerHTML = retHtmlData;
console.log(retHtmlData);
} }
} }
......
...@@ -134,7 +134,7 @@ ...@@ -134,7 +134,7 @@
<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>
......
...@@ -199,6 +199,9 @@ ...@@ -199,6 +199,9 @@
<div class="invTypDiv">Invoices for outward supply (B2B)</div> <div class="invTypDiv">Invoices for outward supply (B2B)</div>
</button> </button>
<div class="panel1"> <div class="panel1">
<xsl:if test="data_error">
Error message : <xsl:value-of select="data_error"/>
</xsl:if>
<xsl:for-each select="b2b"> <xsl:for-each select="b2b">
<button class="accordion2" type="button" expanded="false"> <button class="accordion2" type="button" expanded="false">
Counter party GSTIN - <xsl:value-of select="ctin"/> Counter party GSTIN - <xsl:value-of select="ctin"/>
......
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