Subversion Repositories SmartDukaan

Rev

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

Rev 35668 Rev 35675
Line 41... Line 41...
41
                                #else
41
                                #else
42
                                    <th rowspan="2">Billed</th>
42
                                    <th rowspan="2">Billed</th>
43
                                #end
43
                                #end
44
                            #end
44
                            #end
45
 
45
 
46
                            <th rowspan="2">Payout On</th>
-
 
47
 
-
 
48
                            ## Model Sale columns - only for retailers when baseCriteria=true
46
                            ## Model Sale columns - only for retailers when baseCriteria=true
49
                            #if(!$isAdmin && $offer.isBaseCriteria())
47
                            #if(!$isAdmin && $offer.isBaseCriteria())
50
                                #if($offer.isActivation())
48
                                #if($offer.isActivation())
51
                                    <th colspan="2">Model Sale</th>
49
                                    <th colspan="2">Model Sale</th>
52
                                #else
50
                                #else
53
                                    <th rowspan="2">Billed</th>
51
                                    <th rowspan="2">Billed</th>
54
                                #end
52
                                #end
55
                            #end
53
                            #end
56
 
54
 
-
 
55
                            <th rowspan="2">Payout Rate</th>
-
 
56
 
57
                            ## Est. Payout column - only for retailers
57
                            ## Est. Payout column - only for retailers
58
                            #if(!$isAdmin)
58
                            #if(!$isAdmin)
59
                                <th rowspan="2">Est. Payout</th>
59
                                <th rowspan="2">Est. Payout</th>
60
                            #end
60
                            #end
61
                        </tr>
61
                        </tr>
Line 141... Line 141...
141
                                        #end
141
                                        #end
142
                                    #end
142
                                    #end
143
                                #end
143
                                #end
144
                            #end
144
                            #end
145
 
145
 
146
                            ## Column 5: Payout On
-
 
147
                            #if($isPercentage)
-
 
148
                                <td style="$selectedStyle">$payoutSlab.getPayoutAmount()%</td>
-
 
149
                            #elseif($isFixed)
-
 
150
                                <td style="$selectedStyle">Rs.<span class="currency">$payoutSlab.getPayoutAmount()</span> per pc</td>
-
 
151
                            #else
-
 
152
                                <td style="$selectedStyle">Rs.<span class="currency">$payoutSlab.getPayoutAmount()</span></td>
-
 
153
                            #end
-
 
154
 
-
 
155
                            ## Column 6-7: Model Sale (Billed/Activated) - ONLY FOR RETAILERS when baseCriteria=true
146
                            ## Column 5-6: Model Sale (Billed/Activated) - ONLY FOR RETAILERS when baseCriteria=true
156
                            #if(!$isAdmin && $offer.isBaseCriteria() && $isFirstRow)
147
                            #if(!$isAdmin && $offer.isBaseCriteria() && $isFirstRow)
157
                                #if($isPercentage)
148
                                #if($isPercentage)
158
                                    #if($isSellinOrSellout)
149
                                    #if($isSellinOrSellout)
159
                                        <td><span class="currency">$criteriaItemQtyModel.getAmount()</span></td>
150
                                        <td><span class="currency">$criteriaItemQtyModel.getAmount()</span></td>
160
                                    #else
151
                                    #else
Line 176... Line 167...
176
                                        <td rowspan="$rowspan">$criteriaItemQtyModel.getActivationQty()</td>
167
                                        <td rowspan="$rowspan">$criteriaItemQtyModel.getActivationQty()</td>
177
                                    #end
168
                                    #end
178
                                #end
169
                                #end
179
                            #end
170
                            #end
180
 
171
 
-
 
172
                            ## Column 7: Payout On
-
 
173
                            #if($isPercentage)
-
 
174
                                <td style="$selectedStyle">$payoutSlab.getPayoutAmount()%</td>
-
 
175
                            #elseif($isFixed)
-
 
176
                                <td style="$selectedStyle">Rs.<span class="currency">$payoutSlab.getPayoutAmount()</span> per pc</td>
-
 
177
                            #else
-
 
178
                                <td style="$selectedStyle">Rs.<span class="currency">$payoutSlab.getPayoutAmount()</span></td>
-
 
179
                            #end
-
 
180
 
181
                            ## Column 8: Est. Payout - ONLY FOR RETAILERS on first row
181
                            ## Column 8: Est. Payout - ONLY FOR RETAILERS on first row
182
                            #if(!$isAdmin && $isFirstRow && $criteriaItemQtyModel)
182
                            #if(!$isAdmin && $isFirstRow && $criteriaItemQtyModel)
183
                                <td rowspan="$rowspan">Rs.<span class="currency">$criteriaItemQtyModel.getFinalPayout()</span></td>
183
                                <td rowspan="$rowspan">Rs.<span class="currency">$criteriaItemQtyModel.getFinalPayout()</span></td>
184
                            #end
184
                            #end
185
                        </tr>
185
                        </tr>
186
                        #end
186
                        #end
187
                    #end
187
                    #end
188
                    </tbody>
188
                    </tbody>
189
                </table>
189
                </table>
-
 
190
                #if(!$isAdmin)
-
 
191
                <div style="margin-top:5px;">
-
 
192
                    #foreach($itemCriteriaPayout in $offer.getTargetSlabs().get(0).getItemCriteriaPayouts())
-
 
193
                        #if($itemCriteriaPayout.getNextSlab())
-
 
194
                            #set($isQtyTarget = $offer.getPayoutType().name().equals("QUANTITY"))
-
 
195
                            <p style="color:#e67e22; font-size:13px; margin:2px 0;">
-
 
196
                                #if($isQtyTarget)
-
 
197
                                    Just <strong>$itemCriteriaPayout.getShortValue() pcs</strong> away from next slab
-
 
198
                                    (<strong>$itemCriteriaPayout.getNextSlab().getOnwardsAmount() pcs</strong>)!
-
 
199
                                #else
-
 
200
                                    Just <strong>Rs.<span class="currency">$itemCriteriaPayout.getShortValue()</span></strong> away from next slab
-
 
201
                                    (<strong>Rs.<span class="currency">$itemCriteriaPayout.getNextSlab().getOnwardsAmount()</span></strong>)!
-
 
202
                                #end
-
 
203
                            </p>
-
 
204
                        #elseif($itemCriteriaPayout.getCurrentSlab())
-
 
205
                            <p style="color:#27ae60; font-size:13px; margin:2px 0;">
-
 
206
                                <strong>Max slab achieved!</strong> Earning highest payout rate.
-
 
207
                            </p>
-
 
208
                        #end
-
 
209
                    #end
-
 
210
                </div>
-
 
211
                #end
190
                <br>
212
                <br>
191
            </div>
213
            </div>
192
        </div>
214
        </div>
193
    </div>
215
    </div>
194
 
216