Subversion Repositories SmartDukaan

Rev

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

Rev 33067 Rev 33092
Line 1... Line 1...
1
<section class="wrapper">            
1
<section class="wrapper">
2
	<div class="row">
2
    <div class="row">
3
		<div class="col-lg-12">
3
        <div class="col-lg-12">
4
			<h3 class="page-header"><i class="icon_document_alt"></i>#springMessage("reportswalletstatement.walletstatement")</h3>
4
            <h3 class="page-header"><i class="icon_document_alt"></i>#springMessage(
-
 
5
                "reportswalletstatement.walletstatement")</h3>
5
			<ol class="breadcrumb">
6
            <ol class="breadcrumb">
6
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">#springMessage("reportswalletstatement.home")</a></li>
7
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">#springMessage(
-
 
8
                    "reportswalletstatement.home")</a></li>
7
				<li><i class="icon_document_alt"></i>#springMessage("reportswalletstatement.walletstatement")</li>
9
                <li><i class="icon_document_alt"></i>#springMessage("reportswalletstatement.walletstatement")</li>
8
			</ol>
10
            </ol>
9
		</div>
11
        </div>
10
	</div>
12
    </div>
11
		<div class="row col-lg-12"  style="float: right;">
13
    <div class="row col-lg-12" style="float: right;">
12
		
14
 
13
		  
15
 
-
 
16
        #if($isAdmin)
-
 
17
            #set($counter =0)
-
 
18
            #foreach($walletSummart in $walletSummartList )
-
 
19
                #if($counter==1)
-
 
20
                    #break
-
 
21
                #end
-
 
22
                <h2 style="color:red;margin-top: 20px;margin-bottom: 10px;margin-left:auto">
-
 
23
                    $walletSummart.getCode() - $walletSummart.getName()(
-
 
24
                    $walletSummart.getPhone()-$walletSummart.getEmail()
-
 
25
                    )
-
 
26
                </h2>
-
 
27
                #set($counter =$counter+1)
14
		 
28
            #end
-
 
29
            <div class="row col-lg-12" style="float: right;">
-
 
30
                <div class="col-lg-2">
-
 
31
                    <div class="input-group">
15
		  #springMessage("reportswalletstatement.from")  <input type="date" id="startDate-wallet-summary-report" placeholder=""   name="" value="$startDate" >
32
                        <input placeholder="Enter Partner Name" type="text" class="typeahead form-control"
-
 
33
                               id="typeaheadpartner"
-
 
34
                               name="Item" data-provide="typeahead" autocomplete="off"
-
 
35
                               style="margin-bottom: 10px;margin-left: -9px"> <input id="partnerId"
-
 
36
                                                                                     type="hidden">
-
 
37
                        <br>
-
 
38
                    </div>
-
 
39
                </div>
-
 
40
            </div>
16
		     
41
        #end
17
		   #springMessage("reportswalletstatement.to") <input type="date" id="endDate-wallet-summary-report" placeholder=""  value="$endDate">
42
        #springMessage("reportswalletstatement.from") <input type="date" id="startDate-wallet-summary-report"
-
 
43
                                                             placeholder="" name="" value="$startDate">
18
			
44
 
19
			<button type="submit" class="download-wallet-summary-report">#springMessage("reportswalletstatement.downloadreport") </button>
45
        #springMessage("reportswalletstatement.to") <input type="date" id="endDate-wallet-summary-report" placeholder=""
-
 
46
                                                           value="$endDate">
20
			<button type="submit" class="wallet-summary-fetch-report">Fetch Report</button>
47
        <button type="submit" class="wallet-summary-fetch-report">Fetch Report</button>
-
 
48
        <button type="submit" class="download-wallet-summary-report">#springMessage(
-
 
49
            "reportswalletstatement.downloadreport") </button>
-
 
50
 
21
		</div>
51
    </div>
-
 
52
 
22
	 
53
 
23
    <div class="col-lg-12">
54
    <div class="col-lg-12">
24
        <table class="table table-border table-condensed table-bordered" id="walletSummaryReport" style="width:100%">
55
        <table class="table table-border table-condensed table-bordered" id="walletSummaryReport" style="width:100%">
25
 
56
 
26
            <thead class="row htable" style="background:#F5F5F5;">
57
            <thead class="row htable" style="background:#F5F5F5;">
27
 
58
 
28
            <tr style="color:black;">
59
            <tr style="color:black;">
29
                    <th> #springMessage("reportswalletstatement.id")</th>
60
                ##                <th> #springMessage("reportswalletstatement.id")</th>
30
                    <th> #springMessage("reportswalletstatement.code")</th>
61
                ##                <th> #springMessage("reportswalletstatement.code")</th>
31
	                 <th> #springMessage("reportswalletstatement.name")</th>
62
                ##                <th> #springMessage("reportswalletstatement.name")</th>
32
	                 <th> #springMessage("reportswalletstatement.email")</th>
63
                ##                <th> #springMessage("reportswalletstatement.email")</th>
33
	
-
 
34
	                 <th>  #springMessage("reportswalletstatement.phone")</th>
64
                ##                <th>  #springMessage("reportswalletstatement.phone")</th>
35
	                   <th> #springMessage("reportswalletstatement.amount")</th>
65
                <th> #springMessage("reportswalletstatement.amount")</th>
-
 
66
 
36
	                  <th> #springMessage("reportswalletstatement.refundableamount")</th>
67
                <th>  #springMessage("reportswalletstatement.reference")</th>
37
	                   <th>  #springMessage("reportswalletstatement.reference")</th>
68
                <th>  #springMessage("reportswalletstatement.referencetype")</th>
38
	                   <th>  #springMessage("reportswalletstatement.referencetype")</th>
69
                <th> Created On</th>
39
	                    <th>  #springMessage("reportswalletstatement.businesstimestamp")</th>
70
                ##                <th> Business Date</th>
40
	                    <th> #springMessage("reportswalletstatement.description")</th>
71
                <th> #springMessage("reportswalletstatement.description")</th>
41
	                   
-
 
-
 
72
 
42
                
73
 
43
            </tr>
74
            </tr>
44
            </thead>
75
            </thead>
45
            <tbody>
76
            <tbody>
46
                #foreach($walletSummart in $walletSummartList )
77
                #foreach($walletSummart in $walletSummartList )
47
               <tr>
78
                <tr>
48
               <td>$walletSummart.getId()</td>
79
                    ##                    <td>$walletSummart.getId()</td>
49
                <td>$walletSummart.getCode()</td>
80
                    ##                    <td>$walletSummart.getCode()</td>
50
                 <td>$walletSummart.getName()</td>
81
                    ##                    <td>$walletSummart.getName()</td>
51
                  <td>$walletSummart.getEmail()</td>
82
                    ##                    <td>$walletSummart.getEmail()</td>
52
                  
-
 
53
                  
-
 
54
                   <td>$walletSummart.getPhone()</td>
83
                    ##                    <td>$walletSummart.getPhone()</td>
55
                    <td>$walletSummart.getAmount()</td>
84
                    <td>$walletSummart.getAmount()</td>
56
                  <td>$walletSummart.getRefundableAmount()</td>
85
                    <td>$walletSummart.getReference()</td>
57
                 <td>$walletSummart.getReference()</td>
86
                    <td>$walletSummart.getReferenceType()</td>
58
                 
-
 
-
 
87
 
59
                  <td>$walletSummart.getReferenceType()</td>
88
                    <td>$walletSummart.getTimestamp().format($datehiphenFormatter)</td>
-
 
89
 
60
                   #if($walletSummart.getBusinessTimestamp())
90
                    ##                    #if($walletSummart.getBusinessTimestamp())
61
                   <td>$walletSummart.getBusinessTimestamp().format($datehiphenFormatter)</td>
91
                    ##                        <td>$walletSummart.getBusinessTimestamp().format($datehiphenFormatter)</td>
62
                   
-
 
63
                   #else
92
                    ##                    #else
64
                    <td>--</td>
93
                    ##                        <td>--</td>
65
                   #end
94
                    ##                    #end
66
                    <td>$walletSummart.getDescription()</td>
95
                    <td>$walletSummart.getDescription()</td>
67
                    
-
 
-
 
96
 
68
               </tr>
97
                </tr>
69
                #end
98
                #end
70
 
99
 
71
            </tbody>
100
            </tbody>
72
 
101
 
73
        </table>
102
        </table>
74
    </div>
103
    </div>
75
	
-
 
76
</section>
-
 
77
 
104
 
-
 
105
</section>
78
 
106
 
79
 
107
 
80
<script>
108
<script>
81
 
109
 
82
        var dtable = $('#walletSummaryReport').DataTable(
110
    var dtable = $('#walletSummaryReport').DataTable(
83
                {
111
            {
84
                    "scrollX": true,
112
                "scrollX": true,
85
                    "bPaginate": true,
113
                "bPaginate": true,
86
                    "bLengthChange": true,
114
                "bLengthChange": true,
87
                    "bFilter": true,
115
                "bFilter": true,
88
                    "bInfo": false,
116
                "bInfo": false,
89
                    "bAutoWidth": false,
117
                "bAutoWidth": false,
-
 
118
 
-
 
119
 
90
                  
120
            });
-
 
121
 
-
 
122
 
-
 
123
</script>
-
 
124
#if($isAdmin)
91
                     
125
<script type="text/javascript">
92
     });
126
    $(function () {
-
 
127
        getPartnerAheadOptions($("#typeaheadpartner"), function (selectedPartner) {
-
 
128
            partnerId = selectedPartner.partnerId;
93
  
129
 
-
 
130
            console.log(partnerId);
94
   
131
        });
95
    
132
    });
96
    </script>
133
</script>
-
 
134
+#end
97
   
135
   
98
136