Subversion Repositories SmartDukaan

Rev

Rev 33652 | Rev 34507 | 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
 
47
 
33650 amit.gupta 48
        #springMessage("reportsschemepayout.from") <input type="date" id="startDate-scheme-payout" placeholder=""
49
                                                          name="" value="$startDate">
31433 amit.gupta 50
 
33650 amit.gupta 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>
31433 amit.gupta 57
 
58
    </div>
59
 
30164 manish 60
    <div class="col-lg-12">
31433 amit.gupta 61
        <table class="table table-border table-condensed table-bordered" id="schemePayoutReportDtable"
62
               style="width:100%">
30164 manish 63
 
64
            <thead class="row htable" style="background:#F5F5F5;">
65
            <tr style="color:black;">
31433 amit.gupta 66
 
32771 raveendra. 67
                <th>#springMessage("reportsschemepayout.serialnumber")</th>
68
                <th>#springMessage("reportsschemepayout.brand")</th>
69
                <th>#springMessage("reportsschemepayout.modelname") </th>
70
                <th>#springMessage("reportsschemepayout.modelnumber")</th>
31433 amit.gupta 71
 
32771 raveendra. 72
                <th>#springMessage("reportsschemepayout.color")</th>
33650 amit.gupta 73
                <th>In DP</th>
33652 amit.gupta 74
                <th>Out DP</th>
32771 raveendra. 75
                <th>#springMessage("reportsschemepayout.schemeid")</th>
31433 amit.gupta 76
 
32771 raveendra. 77
                <th>#springMessage("reportsschemepayout.name")</th>
33652 amit.gupta 78
                <th>Scheme Type</th>
79
                <th>Amount Type</th>
33645 amit.gupta 80
                <th>#springMessage("reportsschemepayout.amount")</th>
81
                <th>Amount Paid</th>
31433 amit.gupta 82
 
32771 raveendra. 83
                <th>#springMessage("reportsschemepayout.purchaseinvoice")</th>
31433 amit.gupta 84
 
85
 
32771 raveendra. 86
                <th>#springMessage("reportsschemepayout.saleinovoice")</th>
87
                <th>#springMessage("reportsschemepayout.status")</th>
31433 amit.gupta 88
 
32771 raveendra. 89
                <th>#springMessage("reportsschemepayout.description")</th>
90
                <th>#springMessage("reportsschemepayout.createtimestamp")</th>
91
                <th>#springMessage("reportsschemepayout.rolledbacktimestamp")</th>
31433 amit.gupta 92
 
93
            </tr>
30164 manish 94
            </thead>
95
            <tbody>
96
                #foreach($schemePayoutReport in $schemePayoutReports )
31433 amit.gupta 97
                <tr>
98
 
30164 manish 99
                    #if($schemePayoutReport.getSerialNumber())
31433 amit.gupta 100
                        <td> $schemePayoutReport.getSerialNumber()</td>
30164 manish 101
                    #else
31433 amit.gupta 102
 
103
                        <td>--</td>
30164 manish 104
                    #end
105
                    <td>$schemePayoutReport.getBrand()</td>
106
                    <td>$schemePayoutReport.getModelName()</td>
107
                    <td>$schemePayoutReport.getModelNumber()</td>
31433 amit.gupta 108
 
109
 
30164 manish 110
                    <td>$schemePayoutReport.getColor()</td>
111
                    <td>$schemePayoutReport.getSchemeInDp()</td>
112
                    <td>$schemePayoutReport.getSchemeOutDp()</td>
113
                    <td>$schemePayoutReport.getSchemeId()</td>
31433 amit.gupta 114
 
30164 manish 115
                    <td>$schemePayoutReport.getName()</td>
116
                    <td>$schemePayoutReport.getType()</td>
33650 amit.gupta 117
                    <td>$schemePayoutReport.getAmountType()</td>
33645 amit.gupta 118
                    <td>$nf.format($schemePayoutReport.getAmount())</td>
119
                    <td>$nf.format($schemePayoutReport.getSioAmount())</td>
31433 amit.gupta 120
 
30164 manish 121
                    <td>$schemePayoutReport.getPurchaseReference()</td>
31433 amit.gupta 122
 
123
                    <td>
124
                        #if($schemePayoutReport.getInvoiceNumber())
125
                            $schemePayoutReport.getInvoiceNumber()
126
                        #else
127
                            -
128
                        #end
129
 
130
                    </td>
131
 
30164 manish 132
                    <td>$schemePayoutReport.getStatus()</td>
31433 amit.gupta 133
 
30189 manish 134
                    #if($schemePayoutReport.getStatusDescription())
31433 amit.gupta 135
                        <td>$schemePayoutReport.getStatusDescription()</td>
136
 
30189 manish 137
                    #else
31433 amit.gupta 138
                        <td>--</td>
30189 manish 139
                    #end
30183 manish 140
                    <td>$schemePayoutReport.getCreateTimestamp().format($datehiphenFormatter)</td>
31433 amit.gupta 141
 
30164 manish 142
                    #if($schemePayoutReport.getRolledBackTimestamp())
31433 amit.gupta 143
 
144
                        <td>$schemePayoutReport.getRolledBackTimestamp().format($datehiphenFormatter)</td>
30164 manish 145
                    #else
31433 amit.gupta 146
                        <td> --</td>
30164 manish 147
                    #end
31433 amit.gupta 148
 
149
 
150
                </tr>
30164 manish 151
                #end
152
 
153
            </tbody>
154
 
155
        </table>
156
    </div>
31433 amit.gupta 157
 
30164 manish 158
</section>
159
 
160
 
161
<script>
162
 
31433 amit.gupta 163
    var dtable = $('#schemePayoutReportDtable').DataTable(
164
            {
165
                "scrollX": true,
166
                "bPaginate": true,
167
                "bLengthChange": true,
168
                "bFilter": true,
169
                "bInfo": false,
170
                "bAutoWidth": false,
171
 
172
 
173
            });
174
 
175
 
176
</script>
33091 shampa 177
 
178
 
179
#if($isAdmin)
180
<script type="text/javascript">
33650 amit.gupta 181
    $(function () {
182
        getPartnerAheadOptions($("#typeaheadpartner"), function (selectedPartner) {
183
            partnerId = selectedPartner.partnerId;
33091 shampa 184
 
33650 amit.gupta 185
            console.log(partnerId);
186
        });
187
    });
34066 aman.kumar 188
    $(function () {
189
        $('#fofo-users').on('change', function () {
190
            var selectedFofoId = $(this).val();
191
            if (selectedFofoId) {
192
                partnerId = selectedFofoId;
193
                console.log("Partner ID set to:", partnerId);
194
            } else {
195
                alert("Please select a valid Fofo ID.");
196
            }
197
        });
198
    });
33650 amit.gupta 199
</script>
33091 shampa 200
#end
30164 manish 201