Subversion Repositories SmartDukaan

Rev

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

Rev 34310 Rev 34314
Line 562... Line 562...
562
</section>
562
</section>
563
<script>
563
<script>
564
    $(document).on('blur', 'input[name="storePotential"]', function () {
564
    $(document).on('blur', 'input[name="storePotential"]', function () {
565
        const walletValue = parseInt($('select[name="agreeWalletValue"]').val());
565
        const walletValue = parseInt($('select[name="agreeWalletValue"]').val());
566
        const storePotantial = parseInt($('input[name="storePotential"]').val());
566
        const storePotantial = parseInt($('input[name="storePotential"]').val());
567
        if (walletValue >= storePotantial) {
567
        if (walletValue > storePotantial) {
568
            alert("Store Potential must be greater than or equal to Wallet Value ")
568
            alert("Store Potential must be greater than or equal to Wallet Value ")
569
            return false;
569
            return false;
570
        }
570
        }
571
 
571
 
572
    });
572
    });