Subversion Repositories SmartDukaan

Rev

Rev 33092 | Rev 34509 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
30164 manish 1
<section class="wrapper">            
2
	<div class="row">
3
		<div class="col-lg-12">
4
			<h3 class="page-header"><i class="icon_document_alt"></i>COLLECTION REPORT</h3>
5
			<ol class="breadcrumb">
32771 raveendra. 6
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">#springMessage("reportdailycollection.home")</a></li>
7
				<li><i class="icon_document_alt"></i>#springMessage("reportdailycollection.reports")</li>
30164 manish 8
			</ol>
9
		</div>
10
	</div>
33092 tejus.loha 11
    <br>
12
    #if($isAdmin)
34066 aman.kumar 13
        #if($isRBM)
14
            <div style="padding: 5px 10px; margin-top: 2px"
15
                 class="col-lg-2 form-group">
16
                <select class="form-control input-sm" id="fofo-users" name="Item" placeholder="Partners">
17
                    <option value="" disabled selected>Partners</option>
18
                    #foreach($fofoId in $customRetailersMap.keySet())
19
                        <option value="$fofoId"
20
                                data-email="$customRetailersMap.get($fofoId).getEmail()">$customRetailersMap.get($fofoId).getBusinessName()</option>
21
                    #end
22
                </select>
23
            </div>
24
        #else
33092 tejus.loha 25
        <div class="row col-lg-12" style="float: right;">
26
            <div class="col-lg-2">
27
                <div class="input-group">
28
                    <input placeholder="Enter Partner Name" type="text" class="typeahead form-control"
29
                           id="typeaheadpartner"
30
                           name="Item" data-provide="typeahead" autocomplete="off"
31
                           style="margin-bottom: 10px;margin-left: 22px"> <input id="partnerId"
32
                                                                                 type="hidden">
33
                    <br>
34
                </div>
35
            </div>
36
        </div>
34066 aman.kumar 37
        #end
33092 tejus.loha 38
    #end
30164 manish 39
		<div class="row col-lg-12"  style="float: right;">
40
 
33092 tejus.loha 41
 
32771 raveendra. 42
		  #springMessage("reportdailycollection.from")  <input type="date" id="startDate-collection-summary" placeholder=""   name="" value="$startDate" >
30164 manish 43
 
32771 raveendra. 44
		   #springMessage("reportdailycollection.to") <input type="date" id="endDate-collection-summary" placeholder=""  value="$endDate">
33067 shampa 45
 
46
            <button type="submit" class="collection-summary-fetch-report">Fetch Report</button>
47
 
30164 manish 48
			<button type="submit" class="download-collection-summary">Download Report </button>
33067 shampa 49
 
30164 manish 50
		</div>
51
 
52
    <div class="col-lg-12">
53
        <table class="table table-border table-condensed table-bordered" id="collectionSummaryTable" style="width:100%">
54
 
55
            <thead class="row htable" style="background:#F5F5F5;">
56
 
57
            <tr style="color:black;">
32771 raveendra. 58
                <th>#springMessage("reportdailycollection.date")</th>
32779 shampa 59
                <th>#springMessage("reportdailycollection.referencetype")</th>
32771 raveendra. 60
                <th>#springMessage("reportdailycollection.cash")</th>
61
                <th>#springMessage("reportdailycollection.pinelabs")</th>
32779 shampa 62
                <th>#springMessage("reportdailycollection.bajajfinserv")</th>
63
                <th>#springMessage("reportdailycollection.homecredit")</th>
32771 raveendra. 64
                <th>#springMessage("reportdailycollection.paymt")</th>
65
                <th>#springMessage("reportdailycollection.capitalfirst")</th>
66
                <th>#springMessage("reportdailycollection.zestmoney")</th>
32779 shampa 67
                <th>#springMessage("reportdailycollection.samsungsure")</th>
32771 raveendra. 68
                <th>#springMessage("reportdailycollection.totalamount")</th>
30164 manish 69
 
70
 
71
            </tr>
72
            </thead>
73
            <tbody>
74
                #foreach($collectionSummary in $collectionSummaryList )
75
               <tr>
76
               <td>$collectionSummary.getDate().format($datehiphenFormatter)</td>
77
                <td>$collectionSummary.getReferenceType()</td>
78
                  <td>$collectionSummary.getCash()</td>
79
                   <td>$collectionSummary.getPinelabs()</td>
80
                    <td>$collectionSummary.getBajajFinserv()</td>
81
                     <td>$collectionSummary.getHomeCredit()</td>
82
                      <td>$collectionSummary.getPaytm()</td>
83
 
84
                     <td>$collectionSummary.getCapitalFirst()</td>
85
                      <td>$collectionSummary.getZestMoney()</td>
86
                       <td>$collectionSummary.getSamsungSure()</td>
87
                     <td>$collectionSummary.getTotalAmount()</td>
88
 
89
               </tr>
90
                #end
91
 
92
            </tbody>
93
 
94
        </table>
95
    </div>
96
 
97
</section>
98
 
99
 
100
 
101
<script>
102
 
103
        var dtable = $('#collectionSummaryTable').DataTable(
104
                {
105
 
106
                    "bPaginate": true,
107
                    "bLengthChange": true,
108
                    "bFilter": true,
109
                    "bInfo": false,
110
                    "bAutoWidth": false,
111
                   "pageLength": 20,
112
 
113
     });
114
 
115
 
116
 
117
    </script>
33092 tejus.loha 118
#if($isAdmin)
119
<script type="text/javascript">
120
    $(function () {
121
        getPartnerAheadOptions($("#typeaheadpartner"), function (selectedPartner) {
122
            partnerId = selectedPartner.partnerId;
123
 
124
            console.log(partnerId);
125
        });
126
    });
34066 aman.kumar 127
    $(function () {
128
        $('#fofo-users').on('change', function () {
129
            var selectedFofoId = $(this).val();
130
            if (selectedFofoId) {
131
                partnerId = selectedFofoId;
132
                console.log("Partner ID set to:", partnerId);
133
            } else {
134
                alert("Please select a valid Fofo ID.");
135
            }
136
        });
137
    });
33092 tejus.loha 138
</script>
139
+#end
30164 manish 140