Subversion Repositories SmartDukaan

Rev

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

Rev 31232 Rev 31233
Line 44... Line 44...
44
 
44
 
45
<div class="col-lg-12">
45
<div class="col-lg-12">
46
    <table class="table table-border table-condensed table-bordered"
46
    <table class="table table-border table-condensed table-bordered"
47
           id="circular-table">
47
           id="circular-table">
48
 
48
 
49
        <tbody>
-
 
50
            #foreach($pc in $priceCircular )
-
 
51
            <tr>
-
 
52
                <td>$pc.getModelName() $pc.getModelNumber()</td>
-
 
53
                <td>$pc.getType()</td>
-
 
54
                <td class="currency">$pc.getMrp()</td>
-
 
55
                <td class="currency">$pc.getMop()</td>
-
 
56
                <td class="currency dp" data-value="$pc.getSellingPrice()">$pc.getSellingPrice()</td>
-
 
57
                #foreach($marginName in $allMargins)
-
 
58
                    <td class="currency">$pc.getByPayoutType($marginName)</td>
-
 
59
                #end
-
 
60
                #if($upgradeOffer)
-
 
61
                    <td class="currency">$pc.getUpgradeOffer()</td>
-
 
62
                #end
-
 
63
                #foreach($slabPayouts in $pc.getSlabPayouts())
-
 
64
                    #if($slabPayouts && $slabPayouts.size()>0)
-
 
65
                        <td>
-
 
66
                            <select class="mk_criteria_slab"
-
 
67
                                    data-value="$slabPayouts.entrySet().iterator().next().getValue()">
-
 
68
                                #foreach($payout in $slabPayouts.entrySet())
-
 
69
                                    <option data-value="$payout.getValue()"
-
 
70
                                            value="$payout.getKey()">$payout.getKey()
-
 
71
                                        onwards
-
 
72
                                    </option>
-
 
73
                                #end
-
 
74
                            </select>
-
 
75
                        </td>
-
 
76
                        <td class="currency">$slabPayouts.values().iterator().next()</td>
-
 
77
                    #else
-
 
78
                        <td> -</td>
-
 
79
                        <td> -</td>
-
 
80
                    #end
-
 
81
                #end
-
 
82
                <td class="currency totalmargin" data-value="$pc.getTotalScheme()">$pc.getTotalScheme()</td>
-
 
83
                <td class="currency netprice" data-value="$pc.getNetPrice()">$pc.getNetPrice()</td>
-
 
84
                <td class="currency">$pc.getMopdp()</td>
-
 
85
                <td class="currency totalprofit" data-value="$pc.getTotalProfit()">$pc.getTotalProfit()</td>
-
 
86
                <td class="netmargin">$pc.getNetMargin()</td>
-
 
87
 
-
 
88
            </tr>
-
 
89
            #end
-
 
90
        </tbody>
-
 
91
        <thead>
49
        <thead>
92
            #set($rowspan = 2)
50
            #set($rowspan = 2)
93
            #if($allMargins.size() > 0 && $offers.size() > 0)
51
            #if($allMargins.size() > 0 && $offers.size() > 0)
94
                #set($rowspan=1)
52
                #set($rowspan=1)
95
            #end
53
            #end
Line 124... Line 82...
124
            <th rowspan=$rowspan>MOP-DP</th>
82
            <th rowspan=$rowspan>MOP-DP</th>
125
            <th rowspan=$rowspan>Total Profit</th>
83
            <th rowspan=$rowspan>Total Profit</th>
126
            <th rowspan=$rowspan>Net % Margin</th>
84
            <th rowspan=$rowspan>Net % Margin</th>
127
 
85
 
128
        </tr>
86
        </tr>
129
            #if($rowspan==1)
87
            #if($rowspan==2)
130
            <tr>
88
            <tr>
131
                #foreach($marginName in $allMargins)
89
                #foreach($marginName in $allMargins)
132
                    <th>$marginName</th>
90
                    <th>$marginName</th>
133
                #end
91
                #end
134
                #foreach($offer in $offers)
92
                #foreach($offer in $offers)
Line 136... Line 94...
136
                    <th>Margin</th>
94
                    <th>Margin</th>
137
                #end
95
                #end
138
            </tr>
96
            </tr>
139
            #end
97
            #end
140
        </thead>
98
        </thead>
-
 
99
        <tbody>
-
 
100
            #foreach($pc in $priceCircular )
-
 
101
            <tr>
-
 
102
                <td>$pc.getModelName() $pc.getModelNumber()</td>
-
 
103
                <td>$pc.getType()</td>
-
 
104
                <td class="currency">$pc.getMrp()</td>
-
 
105
                <td class="currency">$pc.getMop()</td>
-
 
106
                <td class="currency dp" data-value="$pc.getSellingPrice()">$pc.getSellingPrice()</td>
-
 
107
                #foreach($marginName in $allMargins)
-
 
108
                    <td class="currency">$pc.getByPayoutType($marginName)</td>
-
 
109
                #end
-
 
110
                #if($upgradeOffer)
-
 
111
                    <td class="currency">$pc.getUpgradeOffer()</td>
-
 
112
                #end
-
 
113
                #foreach($slabPayouts in $pc.getSlabPayouts())
-
 
114
                    #if($slabPayouts && $slabPayouts.size()>0)
-
 
115
                        <td>
-
 
116
                            <select class="mk_criteria_slab"
-
 
117
                                    data-value="$slabPayouts.entrySet().iterator().next().getValue()">
-
 
118
                                #foreach($payout in $slabPayouts.entrySet())
-
 
119
                                    <option data-value="$payout.getValue()"
-
 
120
                                            value="$payout.getKey()">$payout.getKey()
-
 
121
                                        onwards
-
 
122
                                    </option>
-
 
123
                                #end
-
 
124
                            </select>
-
 
125
                        </td>
-
 
126
                        <td class="currency">$slabPayouts.values().iterator().next()</td>
-
 
127
                    #else
-
 
128
                        <td> -</td>
-
 
129
                        <td> -</td>
-
 
130
                    #end
-
 
131
                #end
-
 
132
                <td class="currency totalmargin" data-value="$pc.getTotalScheme()">$pc.getTotalScheme()</td>
-
 
133
                <td class="currency netprice" data-value="$pc.getNetPrice()">$pc.getNetPrice()</td>
-
 
134
                <td class="currency">$pc.getMopdp()</td>
-
 
135
                <td class="currency totalprofit" data-value="$pc.getTotalProfit()">$pc.getTotalProfit()</td>
-
 
136
                <td class="netmargin">$pc.getNetMargin()</td>
-
 
137
 
-
 
138
            </tr>
-
 
139
            #end
-
 
140
        </tbody>
141
    </table>
141
    </table>
142
</div>
142
</div>
143
 
143
 
144
<div class="offer-margin-container">
144
<div class="offer-margin-container">
145
    <div class="modal  text-center" id="offerDescription">
145
    <div class="modal  text-center" id="offerDescription">