Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
31433 amit.gupta 1
<section class="wrapper">
2
    <div class="row">
3
        <div class="col-lg-12">
32771 raveendra. 4
            <h3 class="page-header"><i class="icon_document_alt"></i>#springMessage("reportsschemepayout.schemepayoutreport")</h3>
31433 amit.gupta 5
            <ol class="breadcrumb">
32771 raveendra. 6
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">#springMessage("reportsschemepayout.home")</a></li>
7
                <li><i class="icon_document_alt"></i>#springMessage("reportsschemepayout.schemepayoutreport")</li>
31433 amit.gupta 8
            </ol>
9
        </div>
10
    </div>
33091 shampa 11
 
12
    #if($isAdmin)
13
               <div class="row col-lg-12" style="float: right;">
14
                    <div class="col-lg-2">
15
                        <div class="input-group">
16
                            <input placeholder="Partner Name" type="text" class="typeahead form-control" id="typeaheadpartner" name="Item" data-provide="typeahead" autocomplete="off" style="margin-bottom:10px;margin-left:22px;"> <input id="partnerId" type="hidden" >
17
 
18
 
19
                            <span class="input-group-btn">
20
						##<button class="btn btn-primary submit" id="retailer-details-search-button"
21
                                                                ## type="button">Go!</button>
22
					</span>
23
                        </div>
24
                    </div>
25
               </div>
26
           #end
27
 
31433 amit.gupta 28
    <div class="row col-lg-12" style="float: right;">
29
 
30
 
32771 raveendra. 31
        #springMessage("reportsschemepayout.from") <input type="date" id="startDate-scheme-payout" placeholder="" name="" value="$startDate">
31433 amit.gupta 32
 
32771 raveendra. 33
        #springMessage("reportsschemepayout.to") <input type="date" id="endDate-scheme-payout" placeholder="" value="$endDate">
33091 shampa 34
        <button type="submit" class="scheme-payout-fetch-report">#springMessage("reportsschemepayout.fetchreport")</button>
35
        <button type="submit" class="download-scheme-payout-report">#springMessage("reportsschemepayout.downloadreport")</button>
31433 amit.gupta 36
 
37
    </div>
38
 
30164 manish 39
    <div class="col-lg-12">
31433 amit.gupta 40
        <table class="table table-border table-condensed table-bordered" id="schemePayoutReportDtable"
41
               style="width:100%">
30164 manish 42
 
43
            <thead class="row htable" style="background:#F5F5F5;">
44
            <tr style="color:black;">
31433 amit.gupta 45
 
32771 raveendra. 46
                <th>#springMessage("reportsschemepayout.serialnumber")</th>
47
                <th>#springMessage("reportsschemepayout.brand")</th>
48
                <th>#springMessage("reportsschemepayout.modelname") </th>
49
                <th>#springMessage("reportsschemepayout.modelnumber")</th>
31433 amit.gupta 50
 
32771 raveendra. 51
                <th>#springMessage("reportsschemepayout.color")</th>
52
                <th> #springMessage("reportsschemepayout.schemeindp")</th>
53
                <th>#springMessage("reportsschemepayout.schemeoutdp")</th>
54
                <th>#springMessage("reportsschemepayout.schemeid")</th>
31433 amit.gupta 55
 
32771 raveendra. 56
                <th>#springMessage("reportsschemepayout.name")</th>
57
                <th>#springMessage("reportsschemepayout.type")</th>
31433 amit.gupta 58
 
32771 raveendra. 59
                <th>#springMessage("reportsschemepayout.purchaseinvoice")</th>
31433 amit.gupta 60
 
61
 
32771 raveendra. 62
                <th>#springMessage("reportsschemepayout.saleinovoice")</th>
63
                <th>#springMessage("reportsschemepayout.amount")</th>
64
                <th>#springMessage("reportsschemepayout.status")</th>
31433 amit.gupta 65
 
32771 raveendra. 66
                <th>#springMessage("reportsschemepayout.description")</th>
67
                <th>#springMessage("reportsschemepayout.createtimestamp")</th>
68
                <th>#springMessage("reportsschemepayout.rolledbacktimestamp")</th>
31433 amit.gupta 69
 
70
            </tr>
30164 manish 71
            </thead>
72
            <tbody>
73
                #foreach($schemePayoutReport in $schemePayoutReports )
31433 amit.gupta 74
                <tr>
75
 
30164 manish 76
                    #if($schemePayoutReport.getSerialNumber())
31433 amit.gupta 77
                        <td> $schemePayoutReport.getSerialNumber()</td>
30164 manish 78
                    #else
31433 amit.gupta 79
 
80
                        <td>--</td>
30164 manish 81
                    #end
82
                    <td>$schemePayoutReport.getBrand()</td>
83
                    <td>$schemePayoutReport.getModelName()</td>
84
                    <td>$schemePayoutReport.getModelNumber()</td>
31433 amit.gupta 85
 
86
 
30164 manish 87
                    <td>$schemePayoutReport.getColor()</td>
88
                    <td>$schemePayoutReport.getSchemeInDp()</td>
89
                    <td>$schemePayoutReport.getSchemeOutDp()</td>
90
                    <td>$schemePayoutReport.getSchemeId()</td>
31433 amit.gupta 91
 
30164 manish 92
                    <td>$schemePayoutReport.getName()</td>
93
                    <td>$schemePayoutReport.getType()</td>
31433 amit.gupta 94
 
30164 manish 95
                    <td>$schemePayoutReport.getPurchaseReference()</td>
31433 amit.gupta 96
 
97
                    <td>
98
                        #if($schemePayoutReport.getInvoiceNumber())
99
                            $schemePayoutReport.getInvoiceNumber()
100
                        #else
101
                            -
102
                        #end
103
 
104
                    </td>
105
 
30189 manish 106
                    <td>$nf.format($schemePayoutReport.getSioAmount())</td>
30164 manish 107
                    <td>$schemePayoutReport.getStatus()</td>
31433 amit.gupta 108
 
30189 manish 109
                    #if($schemePayoutReport.getStatusDescription())
31433 amit.gupta 110
                        <td>$schemePayoutReport.getStatusDescription()</td>
111
 
30189 manish 112
                    #else
31433 amit.gupta 113
                        <td>--</td>
30189 manish 114
                    #end
30183 manish 115
                    <td>$schemePayoutReport.getCreateTimestamp().format($datehiphenFormatter)</td>
31433 amit.gupta 116
 
30164 manish 117
                    #if($schemePayoutReport.getRolledBackTimestamp())
31433 amit.gupta 118
 
119
                        <td>$schemePayoutReport.getRolledBackTimestamp().format($datehiphenFormatter)</td>
30164 manish 120
                    #else
31433 amit.gupta 121
                        <td> --</td>
30164 manish 122
                    #end
31433 amit.gupta 123
 
124
 
125
                </tr>
30164 manish 126
                #end
127
 
128
            </tbody>
129
 
130
        </table>
131
    </div>
31433 amit.gupta 132
 
30164 manish 133
</section>
134
 
135
 
136
<script>
137
 
31433 amit.gupta 138
    var dtable = $('#schemePayoutReportDtable').DataTable(
139
            {
140
                "scrollX": true,
141
                "bPaginate": true,
142
                "bLengthChange": true,
143
                "bFilter": true,
144
                "bInfo": false,
145
                "bAutoWidth": false,
146
 
147
 
148
            });
149
 
150
 
151
</script>
33091 shampa 152
 
153
 
154
#if($isAdmin)
155
<script type="text/javascript">
156
       $(function () {
157
                getPartnerAheadOptions($("#typeaheadpartner"), function (selectedPartner) {
158
                        partnerId = selectedPartner.partnerId;
159
 
160
                               console.log(partnerId);
161
                   });
162
            });
163
    </script>
164
#end
30164 manish 165