| 11015 |
kshitij.so |
1 |
#set ($analysisData = $action.getAnalysisData())
|
|
|
2 |
<table id="snapdeal-competition-table" style="width: 100%;font-size:12px;">
|
|
|
3 |
<thead>
|
|
|
4 |
<tr>
|
|
|
5 |
<th></th>
|
|
|
6 |
<th>TimeStamp</th>
|
|
|
7 |
<th>Competitive Category</th>
|
|
|
8 |
<th>Our SP</th>
|
|
|
9 |
<th>Our Offer Price</th>
|
|
|
10 |
<th>Our TP</th>
|
|
|
11 |
<th>Rank</th>
|
|
|
12 |
<th>Competitor</th>
|
|
|
13 |
<th>Competitor SP</th>
|
|
|
14 |
<th>Competitor Offer Price</th>
|
|
|
15 |
<th>Competitor TP</th>
|
|
|
16 |
<th>Competitor Inventory</th>
|
|
|
17 |
<th>Our Snapdeal Inventory</th>
|
|
|
18 |
<th>Avg Sale</th>
|
|
|
19 |
<th>Our NLC</th>
|
|
|
20 |
<th>Lowest Possible SP</th>
|
|
|
21 |
<th>Lowest Possible TP</th>
|
|
|
22 |
<th>Subsidy Diff</th>
|
|
|
23 |
<th>Target SP</th>
|
|
|
24 |
<th>Target TP</th>
|
|
|
25 |
<th>Sales Potential</th>
|
| 11076 |
kshitij.so |
26 |
<th>Decision</th>
|
|
|
27 |
<th>Reason</th>
|
| 11015 |
kshitij.so |
28 |
</tr>
|
|
|
29 |
</thead>
|
|
|
30 |
<tbody>
|
|
|
31 |
#foreach ( $item in $analysisData )
|
|
|
32 |
#if($velocityCount<11)
|
|
|
33 |
<tr style="border: 1px" class="$item.getTimestamp()">
|
|
|
34 |
#if ($item.isToGroup())
|
|
|
35 |
#set( $temp = $velocityCount)
|
| 11046 |
kshitij.so |
36 |
#if ($analysisData.size()==$velocityCount && $analysisData.size()<11)
|
|
|
37 |
<td indexPos="$velocityCount" dateVal="$item.getTimestamp()" dateValNext="13996523" expanded="0" oneTime="0">
|
|
|
38 |
#else
|
|
|
39 |
<td indexPos="$velocityCount" dateVal="$item.getTimestamp()" dateValNext="$analysisData.get($temp).getTimestamp()" expanded="0" oneTime="0">
|
|
|
40 |
#end
|
| 11015 |
kshitij.so |
41 |
<a href="javascript:void(0)" class="expandRow" title="Click to expand">
|
|
|
42 |
<img style="width: 15px; padding-top: 1px;" src="/Support/images/add_green_button.png">
|
|
|
43 |
</a>
|
|
|
44 |
</td>
|
|
|
45 |
#else
|
|
|
46 |
<td indexPos="$velocityCount" dateVal="$item.getTimestamp()" dateValNext="$analysisData.get($temp).getTimestamp()"></td>
|
|
|
47 |
#end
|
|
|
48 |
<td style="text-align:center;">$action.getDate($item.getTimestamp())</td>
|
|
|
49 |
<td style="text-align:center;">$item.getCompetitiveCategory()</td>
|
|
|
50 |
<td style="text-align:center;">$item.getOurSellingPrice()</td>
|
|
|
51 |
<td style="text-align:center;">$item.getOurOfferPrice()</td>
|
|
|
52 |
<td style="text-align:center;">$item.getOurTp()</td>
|
|
|
53 |
<td style="text-align:center;">$item.getOurRank()</td>
|
|
|
54 |
#if ($item.getCompetitiveCategory()=='BUY_BOX')
|
|
|
55 |
<td style="text-align:center;">$item.getSecondLowestSellerName()</td>
|
|
|
56 |
#else
|
|
|
57 |
<td style="text-align:center;">$item.getLowestSellerName()</td>
|
|
|
58 |
#end
|
|
|
59 |
#if ($item.getCompetitiveCategory()=='BUY_BOX')
|
|
|
60 |
<td style="text-align:center;">$item.getSecondLowestSellingPrice()</td>
|
|
|
61 |
#else
|
|
|
62 |
<td style="text-align:center;">$item.getLowestSellingPrice()</td>
|
|
|
63 |
#end
|
|
|
64 |
#if ($item.getCompetitiveCategory()=='BUY_BOX')
|
| 11018 |
kshitij.so |
65 |
<td style="text-align:center;">$item.getSecondLowestOfferPrice()</td>
|
| 11015 |
kshitij.so |
66 |
#else
|
|
|
67 |
<td style="text-align:center;">$item.getLowestOfferPrice()</td>
|
|
|
68 |
#end
|
|
|
69 |
#if ($item.getCompetitiveCategory()=='BUY_BOX')
|
| 11018 |
kshitij.so |
70 |
<td style="text-align:center;">$item.getSecondLowestTp()</td>
|
| 11015 |
kshitij.so |
71 |
#else
|
|
|
72 |
<td style="text-align:center;">$item.getLowestTp()</td>
|
|
|
73 |
#end
|
|
|
74 |
#if ($item.getCompetitiveCategory()=='BUY_BOX')
|
|
|
75 |
<td style="text-align:center;">$item.getSecondLowestInventory()</td>
|
|
|
76 |
#else
|
|
|
77 |
<td style="text-align:center;">$item.getOtherInventory()</td>
|
|
|
78 |
#end
|
|
|
79 |
<td style="text-align:center;">$item.getOurInventory()</td>
|
|
|
80 |
<td style="text-align:center;">$item.getAverageSale()</td>
|
|
|
81 |
<td style="text-align:center;">$item.getOurNlc()</td>
|
|
|
82 |
<td style="text-align:center;">$item.getLowest_possible_sp()</td>
|
|
|
83 |
<td style="text-align:center;">$item.getLowest_possible_tp()</td>
|
| 11076 |
kshitij.so |
84 |
#set ($ourSubsidy = $item.getOurSellingPrice() - $item.getOurOfferPrice())
|
| 11015 |
kshitij.so |
85 |
#if ($item.getCompetitiveCategory()=='BUY_BOX')
|
| 11076 |
kshitij.so |
86 |
#set ($competitionSubsidy = $item.getSecondLowestSellingPrice() - $item.getSecondLowestOfferPrice())
|
|
|
87 |
#set ($subsidyDiff = $competitionSubsidy - $ourSubsidy)
|
|
|
88 |
<td style="text-align:center;">$subsidyDiff</td>
|
| 11015 |
kshitij.so |
89 |
#else
|
| 11076 |
kshitij.so |
90 |
#set ($competitionSubsidy = $item.getLowestSellingPrice() - $item.getLowestOfferPrice())
|
|
|
91 |
#set ($subsidyDiff = $competitionSubsidy - $ourSubsidy)
|
|
|
92 |
<td style="text-align:center;">$subsidyDiff</td>
|
| 11015 |
kshitij.so |
93 |
#end
|
|
|
94 |
<td style="text-align:center;">$item.getProposedSellingPrice()</td>
|
|
|
95 |
<td style="text-align:center;">$item.getProposedTp()</td>
|
|
|
96 |
#if ($item.getSalesPotential())
|
|
|
97 |
<td style="text-align:center;">$item.getSalesPotential()</td>
|
|
|
98 |
#else
|
|
|
99 |
<td style="text-align:center;"></td>
|
|
|
100 |
#end
|
| 11076 |
kshitij.so |
101 |
#if ($item.getDecision())
|
|
|
102 |
<td style="text-align:center;font-size:8px;">$item.getDecision()</td>
|
|
|
103 |
#else
|
|
|
104 |
<td style="text-align:center;"></td>
|
|
|
105 |
#end
|
|
|
106 |
#if ($item.getReason())
|
|
|
107 |
<td style="text-align:center;font-size:8px;">$item.getReason()</td>
|
|
|
108 |
#else
|
|
|
109 |
<td style="text-align:center;"></td>
|
|
|
110 |
#end
|
| 11015 |
kshitij.so |
111 |
</tr>
|
|
|
112 |
#end
|
|
|
113 |
#end
|
|
|
114 |
</tbody>
|
|
|
115 |
</table>
|