| 22245 |
ashik.ali |
1 |
<style>
|
| 30601 |
amit.gupta |
2 |
.table-striped > tbody > tr:nth-child(odd) > td {
|
|
|
3 |
background: white;
|
|
|
4 |
background-color: white;
|
|
|
5 |
}
|
|
|
6 |
|
|
|
7 |
.table-striped > tbody > tr:nth-child(even) > td {
|
|
|
8 |
background: white;
|
|
|
9 |
background-color: white;
|
|
|
10 |
}
|
|
|
11 |
|
|
|
12 |
.table-striped > tbody > tr:hover > td,
|
|
|
13 |
.table-striped > tbody > tr:hover {
|
|
|
14 |
background-color: #e98c8f;
|
|
|
15 |
color: white;
|
|
|
16 |
}
|
|
|
17 |
|
|
|
18 |
.btn:hover {
|
|
|
19 |
color: grey;
|
|
|
20 |
text-decoration: none;
|
|
|
21 |
}
|
|
|
22 |
|
|
|
23 |
.btn-primary:hover {
|
|
|
24 |
color: grey;
|
|
|
25 |
text-decoration: none;
|
|
|
26 |
}
|
|
|
27 |
|
|
|
28 |
.sale-details {
|
|
|
29 |
cursor: pointer;
|
|
|
30 |
}
|
| 22245 |
ashik.ali |
31 |
</style>
|
|
|
32 |
<script>
|
| 30601 |
amit.gupta |
33 |
$(function () {
|
| 22245 |
ashik.ali |
34 |
|
| 30601 |
amit.gupta |
35 |
let start = moment().subtract(29, 'days');
|
|
|
36 |
let end = moment();
|
|
|
37 |
$('#saleDuration').daterangepicker(getRangedDatePicker(true, start, end));
|
|
|
38 |
});
|
| 22245 |
ashik.ali |
39 |
</script>
|
|
|
40 |
|
| 30601 |
amit.gupta |
41 |
<section class="wrapper">
|
|
|
42 |
<div class="row">
|
|
|
43 |
<div class="col-lg-12">
|
| 32771 |
raveendra. |
44 |
<h3 class="page-header"><i class="icon_document_alt"></i>#springMessage("salehistory.salehistory")</h3>
|
| 30601 |
amit.gupta |
45 |
<ol class="breadcrumb">
|
| 32771 |
raveendra. |
46 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">#springMessage("salehistory.home")</a></li>
|
|
|
47 |
<li><i class="icon_document_alt"></i>#springMessage("salehistory.salehistory")</li>
|
| 30601 |
amit.gupta |
48 |
</ol>
|
|
|
49 |
</div>
|
| 22245 |
ashik.ali |
50 |
</div>
|
| 30601 |
amit.gupta |
51 |
|
|
|
52 |
<div id="sale-history-search">
|
|
|
53 |
<div class="row">
|
|
|
54 |
<div class="col-lg-2 form-group">
|
| 32771 |
raveendra. |
55 |
<select class="form-control" id="searchType" name="searchType" placeholder="#springMessage("salehistory.searchtype")">
|
| 30601 |
amit.gupta |
56 |
<option value="" disabled selected>Search Type</option>
|
|
|
57 |
#foreach($searchType1 in $searchTypes)
|
|
|
58 |
#if($searchType.getValue()==$searchType1.getValue())
|
|
|
59 |
<option value="$searchType1" selected>$searchType1.getValue()</option>
|
|
|
60 |
#else
|
|
|
61 |
<option value="$searchType1">$searchType1.getValue()</option>
|
|
|
62 |
#end
|
|
|
63 |
#end
|
|
|
64 |
</select>
|
|
|
65 |
</div>
|
|
|
66 |
#if($searchType.getValue()=="Date-Range")
|
|
|
67 |
<div class="col-lg-3">
|
|
|
68 |
<div class="input-group">
|
|
|
69 |
<input class="form-control" placeholder="Sale Period" id="saleDuration" type="text"
|
|
|
70 |
value="$searchValue">
|
|
|
71 |
</div>
|
|
|
72 |
</div>
|
|
|
73 |
#elseif($searchType)
|
|
|
74 |
<div class="col-lg-3">
|
| 32771 |
raveendra. |
75 |
<input type="text" class="form-control" id="sale-history-search-text" placeholder="#springMessage("salehistory.searchby")
|
|
|
76 |
$searchType.getValue()" value="$searchValue"/>
|
| 30601 |
amit.gupta |
77 |
</div>
|
|
|
78 |
#else
|
|
|
79 |
<div class="col-lg-3">
|
| 32771 |
raveendra. |
80 |
<input type="text" class="form-control" id="sale-history-search-text" placeholder="#springMessage("salehistory.searchby")"
|
| 30607 |
amit.gupta |
81 |
value="$searchValue"/>
|
| 30601 |
amit.gupta |
82 |
</div>
|
|
|
83 |
#end
|
|
|
84 |
<div class="col-lg-1">
|
| 32771 |
raveendra. |
85 |
<button class="btn btn-primary submit" id="sale-history-search-button" type="button">#springMessage("salehistory.search")</button>
|
| 30601 |
amit.gupta |
86 |
</div>
|
|
|
87 |
<div class="col-lg-2">
|
| 32771 |
raveendra. |
88 |
<button class="btn btn-primary submit" id="invoice-download-button" type="button">#springMessage("salehistory.downloadupto100invoices")
|
| 30601 |
amit.gupta |
89 |
</button>
|
|
|
90 |
</div>
|
|
|
91 |
|
|
|
92 |
</div>
|
|
|
93 |
</div>
|
|
|
94 |
<div id="sale-history-table">
|
|
|
95 |
<div class="row">
|
|
|
96 |
<div class="col-lg-12">
|
|
|
97 |
<table class="table table-striped table-advance table-hover">
|
|
|
98 |
<tbody>
|
|
|
99 |
<tr>
|
| 32771 |
raveendra. |
100 |
<th>#springMessage("salehistory.invoicenumber")</th>
|
|
|
101 |
<th>#springMessage("salehistory.totalamount")</th>
|
|
|
102 |
<th>#springMessage("salehistory.createdon")</th>
|
|
|
103 |
<th>#springMessage("salehistory.viewdetails")</th>
|
| 30601 |
amit.gupta |
104 |
</tr>
|
|
|
105 |
#if(!$saleHistories.isEmpty())
|
|
|
106 |
#foreach( $saleHistory in $saleHistories )
|
|
|
107 |
<tr class="sale-details" data="$saleHistory.getId()">
|
|
|
108 |
<td>$saleHistory.getInvoiceNumber()</td>
|
|
|
109 |
<td>$saleHistory.getTotalAmount()</td>
|
|
|
110 |
<td>$saleHistory.getFormattedDate()</td>
|
|
|
111 |
<td>
|
| 30607 |
amit.gupta |
112 |
<button class="btn btn-primary">View</button>
|
| 30601 |
amit.gupta |
113 |
</td>
|
|
|
114 |
</tr>
|
|
|
115 |
#end
|
|
|
116 |
#else
|
|
|
117 |
<tr>
|
| 32771 |
raveendra. |
118 |
<td colspan="6" style="text-align:center;">#springMessage("salehistory.nomatchingdatafoundicritreria")</td>
|
| 30601 |
amit.gupta |
119 |
</tr>
|
|
|
120 |
#end
|
|
|
121 |
</tbody>
|
|
|
122 |
</table>
|
|
|
123 |
</div>
|
|
|
124 |
</div>
|
|
|
125 |
</div>
|
| 22245 |
ashik.ali |
126 |
#if(!$saleHistories.isEmpty())
|
| 30601 |
amit.gupta |
127 |
<div class="row" id="sale-history-paginated">
|
|
|
128 |
<div class="col-lg-9">
|
|
|
129 |
<p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span
|
|
|
130 |
class="size">$size</span> items</p>
|
|
|
131 |
</div>
|
|
|
132 |
<div class="col-lg-3" style="text-align:right;">
|
|
|
133 |
<div class="btn-group" style="width:40%">
|
|
|
134 |
<button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous</button>
|
|
|
135 |
</div>
|
|
|
136 |
<div class="btn-group" style="width:40%">
|
|
|
137 |
#if($end >= $size)
|
|
|
138 |
<button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>
|
|
|
139 |
#else
|
|
|
140 |
<button class="btn btn-primary next" style="width:100%">Next</button>
|
|
|
141 |
#end
|
|
|
142 |
</div>
|
|
|
143 |
</div>
|
|
|
144 |
</div>
|
| 22245 |
ashik.ali |
145 |
#end
|
|
|
146 |
</section>
|
|
|
147 |
<div id="sale-details-container" style="background:white;background-color:white;">
|
|
|
148 |
</div>
|