Subversion Repositories SmartDukaan

Rev

Rev 34066 | 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">
33650 amit.gupta 4
            <h3 class="page-header"><i class="icon_document_alt"></i>#springMessage(
5
                "reportsschemepayout.schemepayoutreport")</h3>
31433 amit.gupta 6
            <ol class="breadcrumb">
33650 amit.gupta 7
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">#springMessage(
8
                    "reportsschemepayout.home")</a></li>
32771 raveendra. 9
                <li><i class="icon_document_alt"></i>#springMessage("reportsschemepayout.schemepayoutreport")</li>
31433 amit.gupta 10
            </ol>
11
        </div>
12
    </div>
33091 shampa 13
 
14
    #if($isAdmin)
34066 aman.kumar 15
        #if($isRBM)
16
            <div style="padding: 5px 10px; margin-top: 2px"
17
                 class="col-lg-2 form-group">
18
                <select class="form-control input-sm" id="fofo-users" name="Item" placeholder="Partners">
19
                    <option value="" disabled selected>Partners</option>
20
                    #foreach($fofoId in $customRetailersMap.keySet())
21
                        <option value="$fofoId"
22
                                data-email="$customRetailersMap.get($fofoId).getEmail()">$customRetailersMap.get($fofoId).getBusinessName()</option>
23
                    #end
24
                </select>
25
            </div>
26
        #else
33650 amit.gupta 27
        <div class="row col-lg-12" style="float: right;">
28
            <div class="col-lg-2">
29
                <div class="input-group">
30
                    <input placeholder="Partner Name" type="text" class="typeahead form-control" id="typeaheadpartner"
31
                           name="Item" data-provide="typeahead" autocomplete="off"
32
                           style="margin-bottom:10px;margin-left:22px;"> <input id="partnerId" type="hidden">
33091 shampa 33
 
34
 
33650 amit.gupta 35
                    <span class="input-group-btn">
33091 shampa 36
						##<button class="btn btn-primary submit" id="retailer-details-search-button"
37
                                                                ## type="button">Go!</button>
38
					</span>
33650 amit.gupta 39
                </div>
40
            </div>
41
        </div>
42
    #end
34066 aman.kumar 43
    #end
33091 shampa 44
 
31433 amit.gupta 45
    <div class="row col-lg-12" style="float: right;">
46
 
34507 ranu 47
        #if(!$isAnalysis)
48
            #springMessage("reportsschemepayout.from") <input type="date" id="startDate-scheme-payout" placeholder=""
49
                                                              name="" value="$startDate">
31433 amit.gupta 50
 
34507 ranu 51
            #springMessage("reportsschemepayout.to") <input type="date" id="endDate-scheme-payout" placeholder=""
52
                                                            value="$endDate">
53
            <button type="submit" class="scheme-payout-fetch-report">#springMessage(
54
            "reportsschemepayout.fetchreport")</button>
55
            <button type="submit" class="download-scheme-payout-report">#springMessage(
56
            "reportsschemepayout.downloadreport")</button>
57
        #else
58
            #springMessage("reportsschemepayout.from") <input type="date" id="analysis-startDate-scheme-payout"
59
                                                              placeholder=""
60
                                                              name="" value="$startDate">
31433 amit.gupta 61
 
34507 ranu 62
            #springMessage("reportsschemepayout.to") <input type="date" id="analysis-endDate-scheme-payout"
63
                                                            placeholder=""
64
                                                            value="$endDate">
65
            <button type="submit" class="analysis-scheme-payout-fetch-report" data-fofoid="$fofoId"> #springMessage(
33650 amit.gupta 66
            "reportsschemepayout.fetchreport")</button>
34507 ranu 67
            <button type="submit" class="analysis-download-scheme-payout-report" data-fofoid="$fofoId">#springMessage(
33650 amit.gupta 68
            "reportsschemepayout.downloadreport")</button>
34507 ranu 69
        #end
31433 amit.gupta 70
 
34507 ranu 71
 
31433 amit.gupta 72
    </div>
73
 
30164 manish 74
    <div class="col-lg-12">
31433 amit.gupta 75
        <table class="table table-border table-condensed table-bordered" id="schemePayoutReportDtable"
76
               style="width:100%">
30164 manish 77
 
78
            <thead class="row htable" style="background:#F5F5F5;">
79
            <tr style="color:black;">
31433 amit.gupta 80
 
32771 raveendra. 81
                <th>#springMessage("reportsschemepayout.serialnumber")</th>
82
                <th>#springMessage("reportsschemepayout.brand")</th>
83
                <th>#springMessage("reportsschemepayout.modelname") </th>
84
                <th>#springMessage("reportsschemepayout.modelnumber")</th>
31433 amit.gupta 85
 
32771 raveendra. 86
                <th>#springMessage("reportsschemepayout.color")</th>
33650 amit.gupta 87
                <th>In DP</th>
33652 amit.gupta 88
                <th>Out DP</th>
32771 raveendra. 89
                <th>#springMessage("reportsschemepayout.schemeid")</th>
31433 amit.gupta 90
 
32771 raveendra. 91
                <th>#springMessage("reportsschemepayout.name")</th>
33652 amit.gupta 92
                <th>Scheme Type</th>
93
                <th>Amount Type</th>
33645 amit.gupta 94
                <th>#springMessage("reportsschemepayout.amount")</th>
95
                <th>Amount Paid</th>
31433 amit.gupta 96
 
32771 raveendra. 97
                <th>#springMessage("reportsschemepayout.purchaseinvoice")</th>
31433 amit.gupta 98
 
99
 
32771 raveendra. 100
                <th>#springMessage("reportsschemepayout.saleinovoice")</th>
101
                <th>#springMessage("reportsschemepayout.status")</th>
31433 amit.gupta 102
 
32771 raveendra. 103
                <th>#springMessage("reportsschemepayout.description")</th>
104
                <th>#springMessage("reportsschemepayout.createtimestamp")</th>
105
                <th>#springMessage("reportsschemepayout.rolledbacktimestamp")</th>
31433 amit.gupta 106
 
107
            </tr>
30164 manish 108
            </thead>
109
            <tbody>
110
                #foreach($schemePayoutReport in $schemePayoutReports )
31433 amit.gupta 111
                <tr>
112
 
30164 manish 113
                    #if($schemePayoutReport.getSerialNumber())
31433 amit.gupta 114
                        <td> $schemePayoutReport.getSerialNumber()</td>
30164 manish 115
                    #else
31433 amit.gupta 116
 
117
                        <td>--</td>
30164 manish 118
                    #end
119
                    <td>$schemePayoutReport.getBrand()</td>
120
                    <td>$schemePayoutReport.getModelName()</td>
121
                    <td>$schemePayoutReport.getModelNumber()</td>
31433 amit.gupta 122
 
123
 
30164 manish 124
                    <td>$schemePayoutReport.getColor()</td>
125
                    <td>$schemePayoutReport.getSchemeInDp()</td>
126
                    <td>$schemePayoutReport.getSchemeOutDp()</td>
127
                    <td>$schemePayoutReport.getSchemeId()</td>
31433 amit.gupta 128
 
30164 manish 129
                    <td>$schemePayoutReport.getName()</td>
130
                    <td>$schemePayoutReport.getType()</td>
33650 amit.gupta 131
                    <td>$schemePayoutReport.getAmountType()</td>
33645 amit.gupta 132
                    <td>$nf.format($schemePayoutReport.getAmount())</td>
133
                    <td>$nf.format($schemePayoutReport.getSioAmount())</td>
31433 amit.gupta 134
 
30164 manish 135
                    <td>$schemePayoutReport.getPurchaseReference()</td>
31433 amit.gupta 136
 
137
                    <td>
138
                        #if($schemePayoutReport.getInvoiceNumber())
139
                            $schemePayoutReport.getInvoiceNumber()
140
                        #else
141
                            -
142
                        #end
143
 
144
                    </td>
145
 
30164 manish 146
                    <td>$schemePayoutReport.getStatus()</td>
31433 amit.gupta 147
 
30189 manish 148
                    #if($schemePayoutReport.getStatusDescription())
31433 amit.gupta 149
                        <td>$schemePayoutReport.getStatusDescription()</td>
150
 
30189 manish 151
                    #else
31433 amit.gupta 152
                        <td>--</td>
30189 manish 153
                    #end
30183 manish 154
                    <td>$schemePayoutReport.getCreateTimestamp().format($datehiphenFormatter)</td>
31433 amit.gupta 155
 
30164 manish 156
                    #if($schemePayoutReport.getRolledBackTimestamp())
31433 amit.gupta 157
 
158
                        <td>$schemePayoutReport.getRolledBackTimestamp().format($datehiphenFormatter)</td>
30164 manish 159
                    #else
31433 amit.gupta 160
                        <td> --</td>
30164 manish 161
                    #end
31433 amit.gupta 162
 
163
 
164
                </tr>
30164 manish 165
                #end
166
 
167
            </tbody>
168
 
169
        </table>
170
    </div>
31433 amit.gupta 171
 
30164 manish 172
</section>
173
 
174
 
175
<script>
176
 
31433 amit.gupta 177
    var dtable = $('#schemePayoutReportDtable').DataTable(
178
            {
179
                "scrollX": true,
180
                "bPaginate": true,
181
                "bLengthChange": true,
182
                "bFilter": true,
183
                "bInfo": false,
184
                "bAutoWidth": false,
185
 
186
 
187
            });
188
 
189
 
190
</script>
33091 shampa 191
 
192
 
193
#if($isAdmin)
194
<script type="text/javascript">
33650 amit.gupta 195
    $(function () {
196
        getPartnerAheadOptions($("#typeaheadpartner"), function (selectedPartner) {
197
            partnerId = selectedPartner.partnerId;
33091 shampa 198
 
33650 amit.gupta 199
            console.log(partnerId);
200
        });
201
    });
34066 aman.kumar 202
    $(function () {
203
        $('#fofo-users').on('change', function () {
204
            var selectedFofoId = $(this).val();
205
            if (selectedFofoId) {
206
                partnerId = selectedFofoId;
207
                console.log("Partner ID set to:", partnerId);
208
            } else {
209
                alert("Please select a valid Fofo ID.");
210
            }
211
        });
212
    });
33650 amit.gupta 213
</script>
33091 shampa 214
#end
30164 manish 215