Subversion Repositories SmartDukaan

Rev

Rev 33795 | Rev 34798 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 33795 Rev 34788
Line 153... Line 153...
153
                                                    <div class="input-group">
153
                                                    <div class="input-group">
154
                                                        <input type="number" itemId="$cartItem.getItemId()" value="0"
154
                                                        <input type="number" itemId="$cartItem.getItemId()" value="0"
155
                                                               name="insuranceamount"
155
                                                               name="insuranceamount"
156
                                                               class="insuranceamount form-control input-sm" readonly>
156
                                                               class="insuranceamount form-control input-sm" readonly>
157
                                                        <input type="hidden" itemId="$cartItem.getItemId()" value="0"
157
                                                        <input type="hidden" itemId="$cartItem.getItemId()" value="0"
158
                                                               name="insuranceid" class="insuranceid"> <input
158
                                                               name="insuranceid" class="insuranceid">
-
 
159
                                                        ##                                                        <input type="hidden" itemId="$cartItem.getItemId()" value="0"
-
 
160
                                                        ##                                                               name="correlationid" class="correlationid">
-
 
161
                                                        <input
159
                                                            type="hidden" itemId="$cartItem.getItemId()" name="ram"
162
                                                            type="hidden" itemId="$cartItem.getItemId()" name="ram"
160
                                                            class="ram"> <input type="hidden"
163
                                                            class="ram"> <input type="hidden"
161
                                                                                itemId="$cartItem.getItemId()"
164
                                                                                itemId="$cartItem.getItemId()"
162
                                                                                name="memory"
165
                                                                                name="memory"
163
                                                                                class="memory">
166
                                                                                class="memory">
Line 177... Line 180...
177
                                                                                      itemId="$cartItem.getItemId()"
180
                                                                                      itemId="$cartItem.getItemId()"
178
                                                                                      type="number" value="0" readonly>
181
                                                                                      type="number" value="0" readonly>
179
                                                </td>
182
                                                </td>
180
 
183
 
181
                                                <!--                                                upgrade offer td only in case of when offer is avaialable-->
184
                                                <!--                                                upgrade offer td only in case of when offer is avaialable-->
182
                                                <td style="width:14%;align-content:center;text-align: center;">
-
 
183
 
185
 
-
 
186
                                                <td style="width:14%; text-align: center;">
184
                                                    #if($offerItemMap.get($cartItem.getItemId()).size() > 0)
187
                                                    #set($summary = $offerItemSummaryMap.get($cartItem.getItemId()))
-
 
188
                                                    #if($summary && $summary.offerTypeMap.size() > 0)
185
                                                        <div style="display: flex;">
189
                                                        <div style="display: flex;">
186
                                                            <select name="offerSelect"
190
                                                            <select name="offerSelect"
187
                                                                    class="form-control offerSelect input-sm"
191
                                                                    class="form-control offerSelect input-sm"
188
                                                                    itemId="$cartItem.getItemId()">
192
                                                                    itemId="$cartItem.getItemId()">
189
                                                                <option value="">Select</option>
193
                                                                <option value="">Select</option>
190
                                                                #set($offers = $offerItemMap.get($cartItem.getItemId()))
194
                                                                #foreach($entry in $summary.offerTypeMap.entrySet())
191
                                                                #foreach($offerItem in $offers)
195
                                                                    #set($key = $entry.key)
-
 
196
                                                                    #set($data = $entry.value)
-
 
197
                                                                    <option
192
                                                                    <option value="$offerItem.getId()"
198
                                                                            value="$key"
193
                                                                            data-scheme-payout="$offerItem.getSchemePayout()"
199
                                                                            data-scheme-payout="$!data.totalSchemePayout"
194
                                                                            data-partner-payout="$offerItem.getDealerPayout()">
200
                                                                            data-partner-payout="$!data.totalDealerPayout"
-
 
201
                                                                            data-offer-ids="$!data.offerItemIds"
-
 
202
                                                                    >
195
                                                                        Offer Type : $offerItem.getOfferType() - Upgrade
203
                                                                        Offer Type: $!data.offerType.name() | Scheme:
196
                                                                        Payout : $offerItem.getSchemePayout() - Partner
204
                                                                        &#8377; $!data.totalSchemePayout | Dealer:
197
                                                                        Payout : $offerItem.getDealerPayout()</option>
205
                                                                        &#8377; $!data.totalDealerPayout
-
 
206
                                                                    </option>
198
                                                                #end
207
                                                                #end
199
                                                            </select>
208
                                                            </select>
200
                                                        </div>
209
                                                        </div>
201
                                                    #else
210
                                                    #else
202
                                                        -
211
                                                        -
203
                                                    #end
212
                                                    #end
204
 
-
 
205
 
-
 
206
 
-
 
207
                                                </td>
213
                                                </td>
-
 
214
 
208
                                            </tr>
215
                                            </tr>
209
                                        #end
216
                                        #end
210
                                    #else
217
                                    #else
211
                                        <tr>
218
                                        <tr>
212
                                            <td>$cartItem.getDisplayName()</td>
219
                                            <td>$cartItem.getDisplayName()</td>