Subversion Repositories SmartDukaan

Rev

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

Rev 26817 Rev 27754
Line 21... Line 21...
21
		$orderItemRow.find('.mfgdate').val(mfgDate);
21
		$orderItemRow.find('.mfgdate').val(mfgDate);
22
		$('#mobilePlansModal').modal('hide');
22
		$('#mobilePlansModal').modal('hide');
23
		calculateTotalAmount();
23
		calculateTotalAmount();
24
	});
24
	});
25
 
25
 
26
	$("form#cd input.unitPrice").live('change', function() {
26
	$(document).on('change', "form#cd input.unitPrice", function() {
27
		
27
		
28
		var unitPrice = parseFloat($(this).val());
28
		var unitPrice = parseFloat($(this).val());
29
		if (isNaN(unitPrice)){
29
		if (isNaN(unitPrice)){
30
			unitPrice = 0;
30
			unitPrice = 0;
31
		}
31
		}
Line 36... Line 36...
36
		
36
		
37
		calculateTotalAmount();
37
		calculateTotalAmount();
38
	});
38
	});
39
	
39
	
40
	
40
	
41
	$("form#cd input.insuranceamount").live('change', function() {
41
	$(document).on('change', "form#cd input.insuranceamount", function() {
42
		calculateTotalAmount();
42
		calculateTotalAmount();
43
	});
43
	});
44
	
44
	
45
	$(".create-order").live('click', function() {
45
	$(document).on('click', ".create-order", function() {
46
		checkout("main-content");
46
		checkout("main-content");
47
	});
47
	});
48
	
48
	
49
	$(".mk_check_plans").live('click', function(){
49
	$(document).on('click', ".mk_check_plans", function(){
50
		$('div.itemdetails').find('input').val('');
50
		$('div.itemdetails').find('input').val('');
51
		var mop = parseFloat($(this).data("mop"));
51
		var mop = parseFloat($(this).data("mop"));
52
		var sellingPrice = $(this).val();
52
		var sellingPrice = $(this).val();
53
		var itemId = $(this).closest(".input-group").find("input.insuranceamount").attr("itemid");
53
		var itemId = $(this).closest(".input-group").find("input.insuranceamount").attr("itemid");
54
		if(!isNaN(sellingPrice) && parseFloat(sellingPrice) >= mop){
54
		if(!isNaN(sellingPrice) && parseFloat(sellingPrice) >= mop){