Subversion Repositories SmartDukaan

Rev

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

Rev 32329 Rev 32414
Line 38... Line 38...
38
    $(document).on('click', ".create-order", function () {
38
    $(document).on('click', ".create-order", function () {
39
        checkout("main-content");
39
        checkout("main-content");
40
    });
40
    });
41
 
41
 
42
    $(document).on('click', ".mk_check_plans", function (event, source) {
42
    $(document).on('click', ".mk_check_plans", function (event, source) {
-
 
43
        let lines = $("#order-items").find('tbody>tr:gt(0)');
-
 
44
        if (lines > 3) {
-
 
45
            //No need to check plans
-
 
46
            return;
-
 
47
        }
43
        $('div.itemdetails').find('input').val('');
48
        $('div.itemdetails').find('input').val('');
44
        let price = mop;
49
        let price = mop;
45
        var mop = parseFloat($(this).data("mop"));
50
        var mop = parseFloat($(this).data("mop"));
46
        var sellingPrice = $(this).val();
51
        var sellingPrice = $(this).val();
47
        var itemId = $(this).closest(".input-group").find("input.insuranceamount").attr("itemid");
52
        var itemId = $(this).closest(".input-group").find("input.insuranceamount").attr("itemid");