Subversion Repositories SmartDukaan

Rev

Rev 34829 | Rev 35336 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 34829 Rev 35322
Line 269... Line 269...
269
                            <label for="gstName">Company Name:</label>
269
                            <label for="gstName">Company Name:</label>
270
                            <span
270
                            <span
271
                                    style="color:red ;font-size: 140%">*</span>
271
                                    style="color:red ;font-size: 140%">*</span>
272
 
272
 
273
                            <input type="text" class="form-control" id="CompanyName" name="companyName" required
273
                            <input type="text" class="form-control" id="CompanyName" name="companyName" required
274
                                   value="" readonly>
274
                                   value="" placeholder="Company Name">
275
                        </div>
275
                        </div>
276
                    </div>
276
                    </div>
277
                </div>
277
                </div>
278
                <!-- GST Address -->
278
                <!-- GST Address -->
279
                <div class="row">
279
                <div class="row">
Line 281... Line 281...
281
                        ##                                        <label class="bold-details">PIN CODE</lebel>
281
                        ##                                        <label class="bold-details">PIN CODE</lebel>
282
 
282
 
283
                        <input
283
                        <input
284
                                placeholder="Pin Code" id="gstPinCode"
284
                                placeholder="Pin Code" id="gstPinCode"
285
                                name="gstPin" type="hidden" value=""
285
                                name="gstPin" type="hidden" value=""
286
                                class="form-control input-sm" readonly>
286
                                class="form-control input-sm">
287
 
287
 
288
                    </div>
288
                    </div>
289
 
289
 
290
                    <div class="col-lg-3">
290
                    <div class="col-lg-3">
291
                        <div class="form-group">
291
                        <div class="form-group">
292
                            ##                                            <label for="gstState">State</label>
292
                            ##                                            <label for="gstState">State</label>
293
 
293
 
294
                            <input placeholder="State"
294
                            <input placeholder="State"
295
                                   id="gstState" name="gstState" type="hidden"
295
                                   id="gstState" name="gstState" type="hidden"
296
                                   value="" class="form-control input-sm"
296
                                   value="" class="form-control input-sm"
297
                                   style="font-weight: bold;" readonly>
297
                                   style="font-weight: bold;">
298
 
298
 
299
                        </div>
299
                        </div>
300
                    </div>
300
                    </div>
301
 
301
 
302
                    <div class="col-lg-3">
302
                    <div class="col-lg-3">
303
                        <div class="form-group">
303
                        <div class="form-group">
304
                            ## <label>City :</label>
304
                            ## <label>City :</label>
305
                            <input placeholder="State"
305
                            <input placeholder="State"
306
                                   id="gstCity" name="gstCity" type="hidden"
306
                                   id="gstCity" name="gstCity" type="hidden"
307
                                   value="" class="form-control input-sm"
307
                                   value="" class="form-control input-sm"
308
                                   style="font-weight: bold;" readonly>
308
                                   style="font-weight: bold;">
309
 
309
 
310
                        </div>
310
                        </div>
311
                    </div>
311
                    </div>
312
                    <div class="col-lg-3">
312
                    <div class="col-lg-3">
313
                        <div class="form-group">
313
                        <div class="form-group">
314
                            ##                                            <label for="gstDistrict">District :</label>
314
                            ##                                            <label for="gstDistrict">District :</label>
315
 
315
 
316
                            <input id="gstDistrict" type="hidden" name="gstDistrict" class="form-control input-sm"
316
                            <input id="gstDistrict" type="hidden" name="gstDistrict" class="form-control input-sm"
317
                                   value="" readonly>
317
                                   value="">
318
 
318
 
319
                        </div>
319
                        </div>
320
                    </div>
320
                    </div>
321
                </div>
321
                </div>
322
                <div><h4>Addition Place of Business</h4></div>
322
                <div><h4>Addition Place of Business</h4></div>
Line 576... Line 576...
576
        if (gstinformat.test(inputGstNo)) {
576
        if (gstinformat.test(inputGstNo)) {
577
            doGetAjaxRequestHandler(`${context}/gstValidate?gstNo=` + inputGstNo,
577
            doGetAjaxRequestHandler(`${context}/gstValidate?gstNo=` + inputGstNo,
578
                    function (response) {
578
                    function (response) {
579
                        console.log("resType--", typeof response)
579
                        console.log("resType--", typeof response)
580
                        console.log("res----", response)
580
                        console.log("res----", response)
581
                        if (response) {
581
                        if (response && Object.keys(response).length > 0) {
582
                            if (response.sts === "Active") {
582
                            if (response.sts === "Active") {
583
                                $('#manualAddress').empty();
583
                                $('#manualAddress').empty();
584
                                $('#manualAddress').hide();
584
                                $('#manualAddress').hide();
585
                                $("#autoAddress").show();
585
                                $("#autoAddress").show();
586
                                $("#CompanyName").val(response.tradeNam);
586
                                $("#CompanyName").val(response.tradeNam);
Line 602... Line 602...
602
                                $('#addlist').html(selectOptions.join(''));
602
                                $('#addlist').html(selectOptions.join(''));
603
                            } else {
603
                            } else {
604
                                alert("GSTIN - " + inputGstNo + " is not Active")
604
                                alert("GSTIN - " + inputGstNo + " is not Active")
605
                                $('#addlist').html("");
605
                                $('#addlist').html("");
606
                            }
606
                            }
-
 
607
                        } else {
-
 
608
                            alert("Unable to validate GST. Please check the GST number.");
-
 
609
                            $('#addlist').html("");
607
                        }
610
                        }
608
                        // else {
611
                        // else {
609
                        //     alert("Problem to fatching Details From GST , Please Enter manually")
612
                        //     alert("Problem to fatching Details From GST , Please Enter manually")
610
                        //     $('#addlist').html("");
613
                        //     $('#addlist').html("");
611
                        //     $("#CompanyName").removeAttr('readonly');
614
                        //     $("#CompanyName").removeAttr('readonly');