Subversion Repositories SmartDukaan

Rev

Rev 35773 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35773 Rev 35775
Line 59... Line 59...
59
        margin-bottom: 15px;
59
        margin-bottom: 15px;
60
        padding: 10px;
60
        padding: 10px;
61
        background: #f8f9fa;
61
        background: #f8f9fa;
62
        border-radius: 5px;
62
        border-radius: 5px;
63
    }
63
    }
-
 
64
 
-
 
65
    .imei-modal-container .model-info {
-
 
66
        background: #e3f2fd;
-
 
67
        padding: 8px 12px;
-
 
68
        border-radius: 4px;
-
 
69
        margin-bottom: 10px;
-
 
70
        font-size: 13px;
-
 
71
    }
-
 
72
 
-
 
73
    .imei-modal-container .model-info .model-name-title {
-
 
74
        font-weight: 600;
-
 
75
        color: #1565c0;
-
 
76
    }
-
 
77
 
-
 
78
    .imei-modal-container .price-info {
-
 
79
        display: inline-block;
-
 
80
        margin-left: 15px;
-
 
81
        color: #333;
-
 
82
    }
-
 
83
 
-
 
84
    .imei-modal-container .alert-info {
-
 
85
        font-size: 11px;
-
 
86
        padding: 8px;
-
 
87
        margin-bottom: 10px;
-
 
88
    }
-
 
89
 
-
 
90
    .imei-modal-container .result-header {
-
 
91
        background: #e8f5e9;
-
 
92
        padding: 8px 12px;
-
 
93
        border-radius: 4px;
-
 
94
        margin-bottom: 10px;
-
 
95
        font-weight: 600;
-
 
96
        color: #2e7d32;
-
 
97
    }
64
</style>
98
</style>
65
 
99
 
66
<div class="imei-modal-container">
100
<div class="imei-modal-container">
67
    <div class="imei-search-box">
101
    <div class="imei-search-box">
-
 
102
        <div class="row">
-
 
103
            <div class="col-md-5">
68
        <div class="form-inline">
104
                <div class="form-inline">
69
            <div class="form-group">
105
                    <div class="form-group">
70
                <label style="margin-right: 10px; font-weight: 500;">Check IMEI Margin:</label>
106
                        <label style="margin-right: 10px; font-weight: 500;">IMEI Margin:</label><br>
71
                <div class="input-group">
107
                        <div class="input-group">
72
                    <input type="text" class="form-control input-sm"
108
                            <input type="text" class="form-control input-sm"
73
                           id="scheme-imei-wise-search-text" autocomplete="off"
109
                                   id="modal-imei-search-text" autocomplete="off"
-
 
110
                                   placeholder="Enter IMEI Number" style="width: 200px;"/>
-
 
111
                            <span class="input-group-btn">
-
 
112
                                <button class="btn btn-primary btn-sm"
-
 
113
                                        id="modal-imei-search-button" type="button">Search</button>
74
                        #if($searchImei)
114
                            </span>
-
 
115
                        </div>
-
 
116
                    </div>
-
 
117
                </div>
-
 
118
            </div>
-
 
119
            <div class="col-md-7">
-
 
120
                <div class="form-inline">
-
 
121
                    <div class="form-group">
-
 
122
                        <label style="margin-right: 10px; font-weight: 500;">Model Margin:</label><br>
75
                           value="$searchImei"
123
                        <div class="input-group">
-
 
124
                            <input type="date" class="form-control input-sm modal-schemes-date"
-
 
125
                                   value="${date}" style="width: 130px;"/>
76
                        #end
126
                        </div>
-
 
127
                        <div class="input-group" style="margin-left: 5px;">
-
 
128
                            <input type="text" class="form-control input-sm"
-
 
129
                                   id="modal-model-search-text" autocomplete="off"
77
                           placeholder="Enter IMEI Number" style="width: 250px;"/>
130
                                   placeholder="Search Model" style="width: 150px;"/>
78
                    <span class="input-group-btn">
131
                            <span class="input-group-btn">
79
                        <button class="btn btn-primary btn-sm"
132
                                <button class="btn btn-primary btn-sm"
80
                                id="scheme-imei-wise-search-button" type="button">Search</button>
133
                                        id="modal-model-search-button" type="button">Go</button>
-
 
134
                            </span>
-
 
135
                        </div>
81
                    </span>
136
                    </div>
82
                </div>
137
                </div>
83
            </div>
138
            </div>
84
        </div>
139
        </div>
85
    </div>
140
    </div>
86
 
141
 
87
    #if($customRetailer)
-
 
88
        <div style="margin-bottom: 10px;">
-
 
89
            <span class="retailer-name">$customRetailer.getBusinessName()</span>
-
 
90
            #if($schemeInOut && $item)
-
 
91
                <span class="model-name" style="margin-left: 15px;">Model: $item.getItemDescription()</span>
-
 
92
            #end
-
 
93
        </div>
-
 
94
    #end
-
 
95
 
-
 
96
    #if($searchImei && $searchImei.length() > 0)
-
 
97
        <div class="row">
-
 
98
            <div class="col-md-6">
-
 
99
                <div class="section-title">Purchase Summary</div>
-
 
100
                <table class="table table-bordered table-condensed">
-
 
101
                    <thead>
-
 
102
                    <tr>
-
 
103
                        <th>Item Id</th>
-
 
104
                        <th>Invoice No</th>
-
 
105
                        <th>Buy Price</th>
-
 
106
                        <th>Invoice Date</th>
142
    <!-- Container for Model-wise margin results -->
107
                    </tr>
-
 
108
                    </thead>
-
 
109
                    <tbody>
-
 
110
                        #if($itemPurchaseSummaryModels && !$itemPurchaseSummaryModels.isEmpty())
-
 
111
                            #foreach($itemPurchaseSummaryMode in $itemPurchaseSummaryModels)
-
 
112
                            <tr>
-
 
113
                                <td>$itemPurchaseSummaryMode.getItem().getId()</td>
-
 
114
                                <td>$itemPurchaseSummaryMode.getInvoiceNumber()</td>
-
 
115
                                <td>$itemPurchaseSummaryMode.getBuyPrice()</td>
-
 
116
                                <td>$itemPurchaseSummaryMode.getInvoiceDate().format($dateFormatter)</td>
-
 
117
                            </tr>
-
 
118
                            #end
-
 
119
                        #else
-
 
120
                        <tr>
-
 
121
                            <td colspan="4" class="text-center">No data</td>
-
 
122
                        </tr>
-
 
123
                        #end
-
 
124
                    </tbody>
-
 
125
                </table>
-
 
126
            </div>
-
 
127
            <div class="col-md-6">
-
 
128
                <div class="section-title">Sales Summary</div>
143
    <div class="modal-model-margin-container" style="display: none;"></div>
129
                <table class="table table-bordered table-condensed">
-
 
130
                    <thead>
-
 
131
                    <tr>
-
 
132
                        <th>Invoice No</th>
-
 
133
                        <th>Sale Price</th>
-
 
134
                        <th>Invoice Date</th>
-
 
135
                        <th>Activation</th>
-
 
136
                    </tr>
-
 
137
                    </thead>
-
 
138
                    <tbody>
-
 
139
                        #if($fofoOrders && !$fofoOrders.isEmpty())
-
 
140
                            #foreach($fo in $fofoOrders)
-
 
141
                            <tr>
-
 
142
                                <td>$fo.getInvoiceNumber()</td>
-
 
143
                                <td>$fo.getTotalAmount()</td>
-
 
144
                                <td>$fo.getCreateTimestamp().format($dateFormatter)</td>
-
 
145
                                #if($activatedImei && $activatedImei.getActivationTimestamp())
-
 
146
                                    <td>$activatedImei.getActivationTimestamp().format($dateFormatter)</td>
-
 
147
                                #else
-
 
148
                                    <td>--</td>
-
 
149
                                #end
-
 
150
                            </tr>
-
 
151
                            #end
-
 
152
                        #else
-
 
153
                        <tr>
-
 
154
                            <td colspan="4" class="text-center">No data</td>
-
 
155
                        </tr>
-
 
156
                        #end
-
 
157
                    </tbody>
-
 
158
                </table>
-
 
159
            </div>
-
 
160
        </div>
-
 
161
 
144
 
162
        #if($schemeInOut || $offerPayouts)
-
 
163
            <div class="net-margin">Net Margin: Rs. $nf.format($netEarnings)</div>
-
 
164
            <div class="section-title">Margin Status</div>
145
    <!-- Container for IMEI-wise margin results -->
165
            <table class="table table-bordered table-condensed">
-
 
166
                <thead>
-
 
167
                <tr>
-
 
168
                    <th>ID</th>
-
 
169
                    <th>Name</th>
-
 
170
                    <th>Type</th>
-
 
171
                    <th>Amount</th>
-
 
172
                    <th>Paid</th>
-
 
173
                    <th>Status</th>
-
 
174
                    <th>Credit Date</th>
-
 
175
                </tr>
-
 
176
                </thead>
-
 
177
                <tbody>
-
 
178
                    #if($schemeInOut && !$schemeInOut.isEmpty())
-
 
179
                        #foreach($sio in $schemeInOut)
-
 
180
                        <tr>
-
 
181
                            <td>$schemeMap.get($sio.getSchemeId()).getId()</td>
-
 
182
                            <td>$schemeMap.get($sio.getSchemeId()).getName()</td>
-
 
183
                            <td>$schemeMap.get($sio.getSchemeId()).getType()</td>
-
 
184
                            <td>$schemeMap.get($sio.getSchemeId()).getAmountModel()</td>
-
 
185
                            <td>$sio.getAmount()</td>
-
 
186
                            <td>$sio.getStatus()</td>
-
 
187
                            #if($sio.getCreditTimestamp())
-
 
188
                                <td>$sio.getCreditTimestamp().format($dateFormatter)</td>
-
 
189
                            #else
-
 
190
                                <td>-</td>
-
 
191
                            #end
-
 
192
                        </tr>
-
 
193
                        #end
-
 
194
                    #end
-
 
195
                    #if($offerPayouts && !$offerPayouts.isEmpty())
-
 
196
                        #foreach($offerPayout in $offerPayouts)
-
 
197
                        <tr>
-
 
198
                            <td colspan="2">$offerPayout.getDescription()</td>
-
 
199
                            <td>$offerRequestMap.get($offerPayout.getOfferId().intValue()).getSchemeType()</td>
-
 
200
                            <td>$nf.format($inventoryItem.getMarginPercentage($offerPayout.getAmount()))%</td>
-
 
201
                            <td>$offerPayout.getAmount()</td>
-
 
202
                            <td>$offerPayout.getStatus()</td>
-
 
203
                            <td>$offerPayout.getCreateTimestamp().format($dateFormatter)</td>
-
 
204
                        </tr>
-
 
205
                        #end
-
 
206
                    #end
-
 
207
                </tbody>
-
 
208
            </table>
-
 
209
        #end
-
 
210
 
-
 
211
        #if($priceDropImeis && !$priceDropImeis.isEmpty())
-
 
212
            <div class="section-title">Price Drop</div>
146
    <div class="modal-imei-margin-container">
213
            <table class="table table-bordered table-condensed">
-
 
214
                <thead>
-
 
215
                <tr>
-
 
216
                    <th>ID</th>
-
 
217
                    <th>Date</th>
-
 
218
                    <th>Status</th>
-
 
219
                    <th>Amount</th>
-
 
220
                    <th>Credited On</th>
-
 
221
                </tr>
-
 
222
                </thead>
-
 
223
                <tbody>
-
 
224
                    #foreach($pdi in $priceDropImeis)
-
 
225
                    <tr>
-
 
226
                        <td>$pdi.getPriceDrop().getId()</td>
-
 
227
                        <td>$pdi.getPriceDrop().getAffectedOn().format($dateFormatter)</td>
-
 
228
                        <td>$pdi.getStatus()</td>
-
 
229
                        <td>$pdi.getPriceDrop().getAmount()</td>
-
 
230
                        #if($pdi.getCreditTimestamp())
-
 
231
                            <td>$pdi.getCreditTimestamp().format($dateFormatter)</td>
-
 
232
                        #else
-
 
233
                            <td>-</td>
-
 
234
                        #end
-
 
235
                    </tr>
-
 
236
                    #end
-
 
237
                </tbody>
-
 
238
            </table>
-
 
239
        #end
-
 
240
    #else
-
 
241
        <div class="text-center" style="padding: 30px; color: #666;">
147
        <div class="text-center" style="padding: 30px; color: #666;">
242
            <i class="fa fa-search fa-2x" style="margin-bottom: 10px;"></i>
148
            <i class="fa fa-search fa-2x" style="margin-bottom: 10px;"></i>
243
            <p>Enter IMEI number above to check margin details</p>
149
            <p>Search by IMEI number or select Model & Date to check margin details</p>
244
        </div>
150
        </div>
245
    #end
151
    </div>
246
</div>
152
</div>