Subversion Repositories SmartDukaan

Rev

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

Rev 23584 Rev 24845
Line 40... Line 40...
40
    	<div class="row">
40
    	<div class="row">
41
        	
41
        	
42
        	<div class="col-lg-3">
42
        	<div class="col-lg-3">
43
            	<input type="text" class="form-control" id="search-order-text"" placeholder="Invoice Number" value="" />
43
            	<input type="text" class="form-control" id="search-order-text"" placeholder="Invoice Number" value="" />
44
        	</div>
44
        	</div>
45
        	<div class="col-md-1">
45
        	<div class="col-lg-1">
46
              	<button class="btn btn-primary submit" id="search-order-button" type="button">Search</button>
46
              	<button class="btn btn-primary submit" id="search-order-button" type="button">Search</button>
47
			</div>
47
			</div>
-
 
48
		</div>
-
 
49
		<div class="row">
-
 
50
        	<div class="col-lg-3">
-
 
51
			  <div class="input-group">
-
 
52
		    	<input placeholder="Partner Name" type="text" class="typeahead form-control input-sm" id="typeaheadpartner" name="Item" data-provide="typeahead" autocomplete="off">
-
 
53
	          </div>
-
 
54
	      	</div>
-
 
55
	      	<div class="col-lg-2">
-
 
56
	      		<input id="saleBetween" name="dateRange" type="text" value="" class="form-control input-sm">
-
 
57
	      	</div>
-
 
58
        	<div class="col-lg-1">
-
 
59
	    		<span class="input-group-btn">
-
 
60
	      			<button class="btn btn-primary submit" id="download-invoice-button" type="button">Download Invoices</button>
-
 
61
	    		</span>
-
 
62
			</div>
48
        			
63
        			
49
       	</div>
64
       	</div>
50
   	</div>
65
   	</div>
51
  	
66
  	
52
</section>
67
</section>
53
<div id="search-order-details-container" style="background:white;background-color:white;">
68
<div id="search-order-details-container" style="background:white;background-color:white;">
54
</div>
-
 
55
69
</div>
-
 
70
<script type="text/javascript">
-
 
71
$(function(){
-
 
72
 	getPartnerAheadOptions($("#typeaheadpartner"),function(selectedPartner){
-
 
73
 			$("#download-invoice-button").off("click").one("click", function(){
-
 
74
				doAjaxGetDownload(context + "/orrde	download-invoices + "?startDate="+startDate+"&endDate=" + endDate + "&retailerId=" + 
-
 
75
				"invoices-" + selectedPartner.partnerId, selectedPartner.displayName.tolowerCase() + ".pdf");
-
 
76
			});
-
 
77
		$("#download-invoice-button").val(selectedPartner.email);
-
 
78
	});
-
 
79
	$('input[name="dateRange"]').daterangepicker(getRangedDatePicker(), dateRangeCallback);
-
 
80
 
-
 
81
});
-
 
82
</script>
-
 
83
56
84