Subversion Repositories SmartDukaan

Rev

Rev 22551 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
22551 ashik.ali 1
<div class="row">
2
	<div class="col-lg-12">
3
		<table class="table table-striped table-advance table-hover">
4
			<tbody>
5
				<tr>
6
					<th>Id</th>
7
					<th>Reference</th>
8
					<th>Reference Type</th>
9
					<th>+ / -</th>
10
					<th>Amount</th>
11
					<th>Date</th>
12
					<th>Description</th>
36242 aman 13
                    <th>Doc</th>
22551 ashik.ali 14
				</tr>
15
				#if(!$walletHistories.isEmpty())
16
	    			#foreach( $walletHistory in $walletHistories )
17
	    				<tr class="wallet-details" data="$walletHistory.getId()">
18
	    					<td>$walletHistory.getId()</td>
19
	    					<td>$walletHistory.getReference()</td>
20
	    					<td>$walletHistory.getReferenceType()</td>
21
	    					#if($walletHistory.getAmount() >= 0)
22
	    						<td>+</td>
23
	    						<td>$walletHistory.getAmount()</td>
24
	    					#else
25
	    						<td>-</td>
26
	    						#set($amount = 0-$walletHistory.getAmount())
27
	    						<td>$amount</td>
28
	    					#end
29
	    					<td>$walletHistory.getFormattedDate()</td>
30
	    					#if($walletHistory.getDescription())
31
	    						<td>$walletHistory.getDescription()</td>
32
	    					#else
33
	    						<td></td>
34
	    					#end
36242 aman 35
                            <td>
36
                                #if($walletAttachmentMap && $walletAttachmentMap.containsKey($walletHistory.getId()))
37
                                    <button type="button" class="btn btn-info btn-xs wallet-doc-view-btn"
38
                                            data-doc-url="${rc.contextPath}/document/$walletAttachmentMap.get($walletHistory.getId())">
39
                                        <i class="fa fa-eye"></i>
40
                                    </button>
41
                                #end
42
                            </td>
22551 ashik.ali 43
	    				</tr>
44
	    			#end
45
    			#else
46
    				<tr>
36242 aman 47
                        <td colspan="8" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
22551 ashik.ali 48
    				</tr>
49
    			#end
50
			</tbody>
51
	    </table>
52
	</div>
53
</div>