Subversion Repositories SmartDukaan

Rev

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

Rev 35289 Rev 35297
Line 933... Line 933...
933
        var trialForm = $trialForm;
933
        var trialForm = $trialForm;
934
        if (trialForm.status == "PENDING") {
934
        if (trialForm.status == "PENDING") {
935
            $(document).ready(function () {
935
            $(document).ready(function () {
936
                console.log(trialForm);
936
                console.log(trialForm);
937
                $("#retailerDocument").attr("documentId", trialForm.aadhaarDocumentId);
937
                $("#retailerDocument").attr("documentId", trialForm.aadhaarDocumentId);
-
 
938
                localStorage.setItem("retailerDocument", trialForm.aadhaarDocumentId);
938
                $("#firstName").val(trialForm.firstName);
939
                $("#firstName").val(trialForm.firstName);
939
                $("#lastName").val(trialForm.lastName);
940
                $("#lastName").val(trialForm.lastName);
940
                $("#retailerName").val(trialForm.businessName);
941
                $("#retailerName").val(trialForm.businessName);
941
                $("#retailerNumber").val(trialForm.gstNumber);
942
                $("#retailerNumber").val(trialForm.gstNumber);
942
                $("#retailerAddressName").val(trialForm.businessName);
943
                $("#retailerAddressName").val(trialForm.businessName);
Line 947... Line 948...
947
                }, 1000);
948
                }, 1000);
948
                $("#emailId").val(trialForm.email);
949
                $("#emailId").val(trialForm.email);
949
                $("#mobileNumber").val(trialForm.mobile);
950
                $("#mobileNumber").val(trialForm.mobile);
950
                $("#fofoType").val("FRANCHISE");
951
                $("#fofoType").val("FRANCHISE");
951
                $("#retailerShopDocument0").attr("documentId", trialForm.panDocumentId);
952
                $("#retailerShopDocument0").attr("documentId", trialForm.panDocumentId);
-
 
953
                localStorage.setItem("retailerShopDocument0", trialForm.panDocumentId);
952
                $("#shopName0").val(trialForm.businessName);
954
                $("#shopName0").val(trialForm.businessName);
953
                $("#gstNumber").val(trialForm.gstNumber);
955
                $("#gstNumber").val(trialForm.gstNumber);
954
 
956
 
955
                //Important to set these fields
957
                //Important to set these fields
956
                $("#counterPotential").val(300000);
958
                $("#counterPotential").val(300000);
Line 961... Line 963...
961
 
963
 
962
                $("#counterSize").val("THREE_LAC");
964
                $("#counterSize").val("THREE_LAC");
963
 
965
 
964
            });
966
            });
965
        }
967
        }
-
 
968
        console.log($("#emailId").val());
-
 
969
        uri = new URL($("#mobileAppId")[0].href);
-
 
970
        uri.search = "emailId=" + $("#emailId").val();
-
 
971
        $("#mobileAppId")[0].href = uri.toString();
-
 
972
 
966
 
973
 
967
        #end
974
        #end
968
    $(function () {
975
    $(function () {
969
        $('#update-retailer-details-form')
976
        $('#update-retailer-details-form')
970
                .validate({
977
                .validate({