Subversion Repositories SmartDukaan

Rev

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

Rev 24509 Rev 24523
Line 34... Line 34...
34
					<h4>Rs.$userWallet.getAmount()</h4>	
34
					<h4>Rs.$userWallet.getAmount()</h4>	
35
				#else
35
				#else
36
					<h4>NA</h4>
36
					<h4>NA</h4>
37
				#end
37
				#end
38
			</div>
38
			</div>
-
 
39
			#if ($isAdmin)
-
 
40
    		<div class="col-lg-2">
-
 
41
                <div class="input-group">
-
 
42
			    	<input id="partnerId" type="text" class="typeahead form-control form-control-sm" placeholder="Search Partner" data-provide="typeahead" 
-
 
43
			    	 #if(${retailerName}) value="${retailerName}" #end
-
 
44
			    	 autocomplete="off"/>
-
 
45
		    	</div>
-
 
46
    		</div>
-
 
47
    		#end
39
			<div class="col-log-3">
48
			<div class="col-lg-3">
40
				<div class="form-inline">
49
				<div class="form-inline">
41
					<div class="form-group">
50
					<div class="form-group">
42
						<div class="input-group">
51
						<div class="input-group">
43
							<input placeholder = "Choose Range" id="walletRanges" name="walletRanges" type="text" value="" class="form-control">
52
							<input placeholder = "Choose Range" id="walletRanges" name="walletRanges" type="text" value="" class="form-control">
44
				    	</div>
53
				    	</div>
Line 116... Line 125...
116
</section>
125
</section>
117
<script type="text/javascript">
126
<script type="text/javascript">
118
	$(function(){
127
	$(function(){
119
		$('input[name="walletRanges"]').daterangepicker(getRangedDatePicker(), dateRangeCallback);
128
		$('input[name="walletRanges"]').daterangepicker(getRangedDatePicker(), dateRangeCallback);
120
		$('.mk_fetch_statement').click(function(){
129
		$('.mk_fetch_statement').click(function(){
-
 
130
			if(typeof fofoId!="undefined") {
-
 
131
				window.location.href=context+"/wallet/statement?startDate="+startDate+"&endDate="+endDate+"&fofoId=" + fofoId+"&q="+new Date().getTime();
-
 
132
			} else {
121
			window.location.href=context+"/wallet/statement?startDate="+startDate+"&endDate="+endDate+"&q="+new Date().getTime();
133
				window.location.href=context+"/wallet/statement?startDate="+startDate+"&endDate="+endDate+"&q="+new Date().getTime();
-
 
134
			}			
-
 
135
		});
-
 
136
		getPartnerAheadOptions($("#partnerId"),function(selectedPartner){
-
 
137
			fofoId = selectedPartner.partnerId;
-
 
138
			$("#walletRanges").focus();
122
		});
139
		});
123
	});
140
	});
124
</script>
141
</script>
125
<div id="wallet-history-details-container" style="background:white;background-color:white;">
142
<div id="wallet-history-details-container" style="background:white;background-color:white;">
126
</div>
143
</div>
127
144