Subversion Repositories SmartDukaan

Rev

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

Rev 28516 Rev 28596
Line 54... Line 54...
54
					</div>
54
					</div>
55
					<button type="submit" class="btn btn-primary mk_fetch_statement" >Download Statement</button>
55
					<button type="submit" class="btn btn-primary mk_fetch_statement" >Download Statement</button>
56
					<button type="submit" class="btn btn-primary mk_fetch_account" >Download Account Statement</button>
56
					<button type="submit" class="btn btn-primary mk_fetch_account" >Download Account Statement</button>
57
				</div>
57
				</div>
58
			</div>
58
			</div>
-
 
59
			#if($isAdmin)
-
 
60
			<div class="col-lg-3">
-
 
61
				<div class="form-inline">
-
 
62
					<div class="form-group">
-
 
63
						<div class="input-group">
-
 
64
							<input type="date" class="closingDate">
-
 
65
				    	</div>
-
 
66
					</div>
-
 
67
					<button type="submit" class="btn btn-primary mk_closing_statement" >Download Closing</button>
-
 
68
				</div>
-
 
69
			</div>
-
 
70
			#end
59
       	</div>
71
       	</div>
60
   	</div>
72
   	</div>
61
  	<div id="wallet-history-table">
73
  	<div id="wallet-history-table">
62
		<div class="row">
74
		<div class="row">
63
	    	<div class="col-lg-12">
75
	    	<div class="col-lg-12">
Line 139... Line 151...
139
				window.location.href=context+"/account/statement?startDate="+startDate+"&endDate="+endDate+"&fofoId=" + fofoId+"&q="+new Date().getTime();
151
				window.location.href=context+"/account/statement?startDate="+startDate+"&endDate="+endDate+"&fofoId=" + fofoId+"&q="+new Date().getTime();
140
			} else {
152
			} else {
141
				window.location.href=context+"/account/statement?startDate="+startDate+"&endDate="+endDate+"&q="+new Date().getTime();
153
				window.location.href=context+"/account/statement?startDate="+startDate+"&endDate="+endDate+"&q="+new Date().getTime();
142
			}			
154
			}			
143
		});
155
		});
-
 
156
		$('.mk_closing_statement').click(function(){
-
 
157
				var closingDate = $('.closingDate').val();
-
 
158
				if(closingDate == "") {
-
 
159
					alert("Closing date is required");
-
 
160
					return;
-
 
161
				}
-
 
162
				window.location.href=context+"/account/closing-statements?closingDate="+closingDate+"&q="+new Date().getTime();
-
 
163
			}			
-
 
164
		);
144
		getPartnerAheadOptions($("#partnerId"),function(selectedPartner){
165
		getPartnerAheadOptions($("#partnerId"),function(selectedPartner){
145
			fofoId = selectedPartner.partnerId;
166
			fofoId = selectedPartner.partnerId;
146
			$("#walletRanges").focus();
167
			$("#walletRanges").focus();
147
		});
168
		});
148
	});
169
	});