Subversion Repositories SmartDukaan

Rev

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

Rev 28641 Rev 28644
Line 25... Line 25...
25
						 <th> <input type="hidden" value="$ym.format($dateMonthYearFormatter)"/> $ym.format($dateYearMonthFormatter)</th>
25
						 <th> <input type="hidden" value="$ym.format($dateMonthYearFormatter)"/> $ym.format($dateYearMonthFormatter)</th>
26
						 #end
26
						 #end
27
						 <th>Total</th> 
27
						 <th>Total</th> 
28
					</tr>
28
					</tr>
29
			</thead>
29
			</thead>
-
 
30
			#if(!$sortedBrandValue.isEmpty() || !$priceDropBrandSixMonthMap.isEmpty())
30
							    
31
			 				    
31
			<tbody>
32
			<tbody>
32
			
33
			
33
			#if(!$sortedBrandValue.isEmpty())
-
 
34
			 
34
			
35
			 
35
			 
36
			 #foreach($brand in $brands)
36
			 #foreach($brand in $brands)
37
			 
37
			 
38
                    <tr> 
38
                <tr> 
39
                    
-
 
40
			       <td class="brand_name"><b>$brand</b></td>
39
			       <td class="brand_name"><b>$brand</b></td>
41
			        #set($total = 0.0)  
40
			         #set($total = 0.0)  
42
			       #if($priceDropBrandSixMonthMap.get($brand))
41
			      #if($priceDropBrandSixMonthMap.get($brand))
43
			        <td><button type="button" class="btn btn-primary price-drop-six-month" data-id="$fofoId" data-toggle="modal" data-target="#priceDropDetailsContainer">$priceDropBrandSixMonthMap.get($brand)</button></td>
42
			        <td><button type="button" class="btn btn-primary price-drop-six-month" data-id="$fofoId" data-toggle="modal" data-target="#priceDropDetailsContainer">$priceDropBrandSixMonthMap.get($brand)</button></td>
44
			       
-
 
45
			       #set($total = $total + $priceDropBrandSixMonthMap.get($brand))
43
			          #set($total = $total + $priceDropBrandSixMonthMap.get($brand))
46
			       #else
44
			      #else
47
			       <td>-</td>
45
			       <td>-</td>
48
			       #end
46
			      #end
49
		         #if($sortedBrandValue.get($brand))
47
		         #if($sortedBrandValue.get($brand))
50
		        
48
		        
51
		        #foreach($sortedBrandValue in $sortedBrandValue.get($brand))
49
		        #foreach($sortedBrandValue in $sortedBrandValue.get($brand))
52
		            #set($total = $total + $sortedBrandValue)
50
		            #set($total = $total + $sortedBrandValue)
53
		           #if($sortedBrandValue != 0.0)				 
51
		           #if($sortedBrandValue != 0.0)				 
54
                   <td><button type="button" class="btn btn-primary my-price-drop" data-id="$fofoId" data-toggle="modal" data-target="#priceDropDetailsContainer">$sortedBrandValue</button></td>
52
                     <td><button type="button" class="btn btn-primary my-price-drop" data-id="$fofoId" data-toggle="modal" data-target="#priceDropDetailsContainer">$sortedBrandValue</button></td>
55
 				   #else
53
 				   #else
56
				<td><b>-</b></td>
54
				     <td><b>-</b></td>
57
			      #end
55
			       #end
58
		       #end
56
		        #end
59
		       #else
57
		       #else
60
		       #foreach($ym in $ym )
58
		       #foreach($ym in $ym )
61
		       <td>-</td>
59
		       <td>-</td>
62
		       #end
60
		       #end
63
		       #end
61
		       #end
Line 66... Line 64...
66
			   #else
64
			   #else
67
			   <td><b>0</b></td>
65
			   <td><b>0</b></td>
68
			   #end
66
			   #end
69
			 </tr>
67
			 </tr>
70
				  #end
68
				  #end
-
 
69
			</tbody>
71
				  #else
70
         #else
-
 
71
			<tbody>
-
 
72
			
72
                <tr>
73
                <tr>
73
                <td><h3>You do not have any Pending price drop</h3></td>
74
                <td><h3>You do not have any Pending price drop</h3></td>
74
                 </tr>
75
                 </tr>
75
                 #end
76
             </tbody>
76
			</tbody>
77
          #end
77
<div class="price-drop-details-container">
78
<div class="price-drop-details-container">
78
	<div id="priceDropDetailsContainer" class="modal" role="dialog">
79
	<div id="priceDropDetailsContainer" class="modal" role="dialog">
79
		  <div class="modal-dialog modal-md">
80
		  <div class="modal-dialog modal-md">
80
			<!-- Modal content-->
81
			<!-- Modal content-->
81
			<div class="modal-content"  style="width: 300px;"></div>
82
			<div class="modal-content"  style="width: 300px;"></div>