Subversion Repositories SmartDukaan

Rev

Rev 5386 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5386 Rev 5481
Line 1... Line 1...
1
$(function(){
1
$(function(){
2
	function hideSettlementUploadForms() {
2
	function hideSettlementUploadForms() {
3
		$('#hdfc, #ebs, #bluedart, #aramex').hide();
3
		$('#hdfc, #ebs, #bluedart, #aramex, #delhivery').hide();
4
	}
4
	}
5
	hideSettlementUploadForms();
5
	hideSettlementUploadForms();
6
	
6
	
7
	$('input[name="reportSource"]').click(function(){
7
	$('input[name="reportSource"]').click(function(){
8
		hideSettlementUploadForms();
8
		hideSettlementUploadForms();
Line 17... Line 17...
17
			$('#hdfc').show();
17
			$('#hdfc').show();
18
		}
18
		}
19
		else if($(this).val() == 'aramex') {
19
		else if($(this).val() == 'aramex') {
20
			$('#aramex').show();
20
			$('#aramex').show();
21
		}
21
		}
-
 
22
		else if($(this).val() == 'delhivery') {
-
 
23
			$('#delhivery').show();
-
 
24
		}
22
	});
25
	});
23
	
26
	
24
	$('select[name="settlementId"]').change(function(){
27
	$('select[name="settlementId"]').change(function(){
25
		var settlementId = parseInt($(this).val());
28
		var settlementId = parseInt($(this).val());
26
		
29
		
Line 40... Line 43...
40
		else if($(this).val() == 'markOrdersAsReturned') {
43
		else if($(this).val() == 'markOrdersAsReturned') {
41
			$('#uploadorders').show();
44
			$('#uploadorders').show();
42
		}
45
		}
43
	});
46
	});
44
	
47
	
-
 
48
	$('.downloadtype').click(function(){
-
 
49
		$('#download').hide();
-
 
50
		$('#downloadbydate').hide();
-
 
51
		if($(this).val() == 'downloadbyvendor')	{
-
 
52
			$('#download').show();
-
 
53
		}
-
 
54
		else if($(this).val() == 'downloadbydate') {
-
 
55
			$('#download').show();
-
 
56
			$('#downloadbydate').show();
-
 
57
		}
-
 
58
	});
-
 
59
	
45
	$('#uploadorders').hide();
60
	$('#uploadorders').hide();
-
 
61
	$('#download').hide();
-
 
62
	$('#downloadbydate').hide();
46
});
63
});
47
64