Subversion Repositories SmartDukaan

Rev

Rev 33091 | Rev 33650 | 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>
33645 amit.gupta 58
                <th>#springMessage("reportsschemepayout.amount")</th>
59
                <th>Amount Paid</th>
31433 amit.gupta 60
 
32771 raveendra. 61
                <th>#springMessage("reportsschemepayout.purchaseinvoice")</th>
31433 amit.gupta 62
 
63
 
32771 raveendra. 64
                <th>#springMessage("reportsschemepayout.saleinovoice")</th>
65
                <th>#springMessage("reportsschemepayout.status")</th>
31433 amit.gupta 66
 
32771 raveendra. 67
                <th>#springMessage("reportsschemepayout.description")</th>
68
                <th>#springMessage("reportsschemepayout.createtimestamp")</th>
69
                <th>#springMessage("reportsschemepayout.rolledbacktimestamp")</th>
31433 amit.gupta 70
 
71
            </tr>
30164 manish 72
            </thead>
73
            <tbody>
74
                #foreach($schemePayoutReport in $schemePayoutReports )
31433 amit.gupta 75
                <tr>
76
 
30164 manish 77
                    #if($schemePayoutReport.getSerialNumber())
31433 amit.gupta 78
                        <td> $schemePayoutReport.getSerialNumber()</td>
30164 manish 79
                    #else
31433 amit.gupta 80
 
81
                        <td>--</td>
30164 manish 82
                    #end
83
                    <td>$schemePayoutReport.getBrand()</td>
84
                    <td>$schemePayoutReport.getModelName()</td>
85
                    <td>$schemePayoutReport.getModelNumber()</td>
31433 amit.gupta 86
 
87
 
30164 manish 88
                    <td>$schemePayoutReport.getColor()</td>
89
                    <td>$schemePayoutReport.getSchemeInDp()</td>
90
                    <td>$schemePayoutReport.getSchemeOutDp()</td>
91
                    <td>$schemePayoutReport.getSchemeId()</td>
31433 amit.gupta 92
 
30164 manish 93
                    <td>$schemePayoutReport.getName()</td>
94
                    <td>$schemePayoutReport.getType()</td>
33645 amit.gupta 95
                    <td>$nf.format($schemePayoutReport.getAmount())</td>
96
                    <td>$nf.format($schemePayoutReport.getSioAmount())</td>
31433 amit.gupta 97
 
30164 manish 98
                    <td>$schemePayoutReport.getPurchaseReference()</td>
31433 amit.gupta 99
 
100
                    <td>
101
                        #if($schemePayoutReport.getInvoiceNumber())
102
                            $schemePayoutReport.getInvoiceNumber()
103
                        #else
104
                            -
105
                        #end
106
 
107
                    </td>
108
 
30164 manish 109
                    <td>$schemePayoutReport.getStatus()</td>
31433 amit.gupta 110
 
30189 manish 111
                    #if($schemePayoutReport.getStatusDescription())
31433 amit.gupta 112
                        <td>$schemePayoutReport.getStatusDescription()</td>
113
 
30189 manish 114
                    #else
31433 amit.gupta 115
                        <td>--</td>
30189 manish 116
                    #end
30183 manish 117
                    <td>$schemePayoutReport.getCreateTimestamp().format($datehiphenFormatter)</td>
31433 amit.gupta 118
 
30164 manish 119
                    #if($schemePayoutReport.getRolledBackTimestamp())
31433 amit.gupta 120
 
121
                        <td>$schemePayoutReport.getRolledBackTimestamp().format($datehiphenFormatter)</td>
30164 manish 122
                    #else
31433 amit.gupta 123
                        <td> --</td>
30164 manish 124
                    #end
31433 amit.gupta 125
 
126
 
127
                </tr>
30164 manish 128
                #end
129
 
130
            </tbody>
131
 
132
        </table>
133
    </div>
31433 amit.gupta 134
 
30164 manish 135
</section>
136
 
137
 
138
<script>
139
 
31433 amit.gupta 140
    var dtable = $('#schemePayoutReportDtable').DataTable(
141
            {
142
                "scrollX": true,
143
                "bPaginate": true,
144
                "bLengthChange": true,
145
                "bFilter": true,
146
                "bInfo": false,
147
                "bAutoWidth": false,
148
 
149
 
150
            });
151
 
152
 
153
</script>
33091 shampa 154
 
155
 
156
#if($isAdmin)
157
<script type="text/javascript">
158
       $(function () {
159
                getPartnerAheadOptions($("#typeaheadpartner"), function (selectedPartner) {
160
                        partnerId = selectedPartner.partnerId;
161
 
162
                               console.log(partnerId);
163
                   });
164
            });
165
    </script>
166
#end
30164 manish 167