Subversion Repositories SmartDukaan

Rev

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

Rev 34026 Rev 34085
Line 522... Line 522...
522
        </div>
522
        </div>
523
    </div>
523
    </div>
524
 
524
 
525
</section>
525
</section>
526
<script>
526
<script>
-
 
527
    $(document).on('blur', 'input[name="storePotential"]', function () {
-
 
528
        const walletValue = $('select[name="agreeWalletValue"]').val();
-
 
529
        const storePotantial = $('input[name="storePotential"]').val();
-
 
530
        console.log('wallet - ', walletValue);
-
 
531
        console.log('potantial - ', storePotantial);
-
 
532
        if (storePotantial < walletValue) {
-
 
533
            alert("Store Potential must be greater than or equal to Wallet Value ")
-
 
534
            return false;
-
 
535
        }
527
 
536
 
-
 
537
    });
528
 
538
 
529
    $(".gstNo").change(function () {
539
    $(".gstNo").change(function () {
530
        var inputGstNo = $(this).val();
540
        var inputGstNo = $(this).val();
531
        var gstinformat = new RegExp('^[0-9]{2}[A-Z]{5}[0-9]{4}[A-Z]{1}[1-9A-Z]{1}Z[0-9A-Z]{1}$');
541
        var gstinformat = new RegExp('^[0-9]{2}[A-Z]{5}[0-9]{4}[A-Z]{1}[1-9A-Z]{1}Z[0-9A-Z]{1}$');
532
        if (gstinformat.test(inputGstNo)) {
542
        if (gstinformat.test(inputGstNo)) {