Subversion Repositories SmartDukaan

Rev

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

Rev 7358 Rev 7386
Line 57... Line 57...
57
			<input type="button" value="CANCEL" id="cancelRefundRequest" style="cursor:pointer;width: 75px;height: 25px;color: white;background-color: red;border: 1px solid blue;border-radius: 5px;margin: 10px 30px;"></input>
57
			<input type="button" value="CANCEL" id="cancelRefundRequest" style="cursor:pointer;width: 75px;height: 25px;color: white;background-color: red;border: 1px solid blue;border-radius: 5px;margin: 10px 30px;"></input>
58
    	</form>
58
    	</form>
59
	</div>
59
	</div>
60
	
60
	
61
	<div style="line-height:37px;height:37px;background-color:#333;color:white;">
61
	<div style="line-height:37px;height:37px;background-color:#333;color:white;">
62
    	<span style="margin-left:20px;font-weight:bold;font-size:15px">Store : </span><span style="font-size:20px">ANC</span>
62
    	<span style="margin-left:20px;font-weight:bold;font-size:15px">Store : </span><span style="font-size:20px">$action.getStoreCode()</span>
63
    	<a style="margin:0px 25px 0px 25px;color:white" href="/storewebsite/home">HOME</a>
63
    	<a style="margin:0px 25px 0px 25px;color:white" href="/storewebsite/home">HOME</a>
64
    	<a style="color:white;" href="/storewebsite/!doLogout">Logout</a>	
64
    	<a style="color:white;" href="/storewebsite/!doLogout">Logout</a>	
65
    </div>
65
    </div>
66
 
66
 
67
    <div style="line-height:60px;height: 60px;background-color:#DBEEFF;color: #333333;margin: 0px;border-bottom:1px solid #67ABD3">
67
    <div style="line-height:60px;height: 60px;background-color:#DBEEFF;color: #333333;margin: 0px;border-bottom:1px solid #67ABD3">
68
    	<img style="float:left;" src="/storewebsite/images/Hotspot-Logo.jpg">
68
    	<img style="float:left;" src="/storewebsite/images/Hotspot-Logo.jpg">
69
		<span style="font-size: 35px;font-family:'Verdana', Verdana, sans-serif;float:left">Online Catalog</span>
69
		<span style="font-size: 35px;font-family:'Verdana', Verdana, sans-serif;float:left">Online Catalog</span>
70
        <img style="float:right;margin-right:20px;" src="/storewebsite/images/Saholic-Logo.jpg">
-
 
-
 
70
        
71
    </div>
71
    </div>
72
	<h3>Search Orders</h3>
72
	<h3>Search Orders</h3>
73
	#if($action.getSearchError() != "")
73
	#if($action.getSearchError() != "")
74
    	<div class="padding-row" style="font-size: 16px;color: red;text-align: center;border: 1px solid red;margin: 5px;padding: 5px;">
74
    	<div class="padding-row" style="font-size: 16px;color: red;text-align: center;border: 1px solid red;margin: 5px;padding: 5px;">
75
    		$action.getSearchError()
75
    		$action.getSearchError()
Line 100... Line 100...
100
        			<th>Order Date</th>
100
        			<th>Order Date</th>
101
        			<th>Product</th>
101
        			<th>Product</th>
102
        			<th>Status</th>
102
        			<th>Status</th>
103
        			<th>Advance</th>
103
        			<th>Advance</th>
104
        			<th>Amount</th>
104
        			<th>Amount</th>
105
					<th>Cancellation</th>
105
					<th></th>
106
					<th></th>
106
					<th></th>
107
                  </tr>
107
                  </tr>
108
                </thead>
108
                </thead>
109
                <tbody>
109
                <tbody>
110
        		#foreach ($order in $action.getSearchResult() )
110
        		#foreach ($order in $action.getSearchResult() )
Line 113... Line 113...
113
        			<td>$action.getDateTime($order.getCreated_timestamp())</td>
113
        			<td>$action.getDateTime($order.getCreated_timestamp())</td>
114
        			<td>$action.getProductName($order.getLineitems().get(0))</td>
114
        			<td>$action.getProductName($order.getLineitems().get(0))</td>
115
        			<td>$order.getStatusDescription()</td>
115
        			<td>$order.getStatusDescription()</td>
116
        			<td>$order.getAdvanceAmount()</td>
116
        			<td>$order.getAdvanceAmount()</td>
117
					<td>$order.getTotal_amount()</td>
117
					<td>$order.getTotal_amount()</td>
-
 
118
					<td>
-
 
119
    					#if($order.getStatus().getValue() > 2)
-
 
120
								<a href='/storewebsite/report!downloadInvoice?number=$order.getId()' target='_blank' style='color:black;padding:3px;background-color:orange;pointer:cursor;font-size:15px;text-decoration:none'>Receipt</a>
-
 
121
            			#elseif($order.getStatus().getValue() == 2)
-
 
122
            				Approval pending
-
 
123
    					#else
-
 
124
    						N/A
-
 
125
    					#end
-
 
126
					</td>
118
					
127
					
119
					##--------------------------CANCEL THE ORDER---------------------------------------##
128
					##--------------------------CANCEL THE ORDER---------------------------------------##
120
					
129
					
121
					#if($order.getStatus().getValue() < 7)
130
					#if($order.getStatus().getValue() > 2 && $order.getStatus().getValue() < 7 && $action.isOrderPlacedOnSameDay($order.getCreated_timestamp()))
122
						<td><input id='$order.getId()' class='cancelButton' order='$order.getId()' type='button' name='cancel' value='Reuest Cancellation'></input></td>
131
						<td><input class='cancelButton' order='$order.getId()' type='button' name='cancel' value='Cancel'></input></td>
123
					
132
					
124
					##CANCELLATION FLOW
133
					##CANCELLATION FLOW
125
						
134
						
126
					#elseif($order.getStatus().getValue() == 13)
135
					#elseif($order.getStatus().getValue() == 13)
127
						<td>Cancellation Approval Pending</td>
136
						<td>Cancellation Approval Pending</td>
128
					#elseif($order.getStatus().getValue() == 14)
137
					#elseif($order.getStatus().getValue() == 14)
129
						<td><input id='$order.getId()' class='refundButton' order='$order.getId()' type='button' name='cancel' value='REFUND' ></input></td>	
138
						<td><input id='$order.getId()' class='refundButton' order='$order.getId()' type='button' name='cancel' value='REFUND' ></input></td>	
130
					#elseif($order.getStatus().getValue() == 15)
139
					#elseif($order.getStatus().getValue() == 15 || $order.getStatus().getValue() == 34)
131
						<td>Order Cancelled</td>	
140
						<td>Order Cancelled</td>	
132
					
141
					
133
					##--------------------------RETURN THE ORDER----------------------------------------##
142
					##--------------------------RETURN THE ORDER----------------------------------------##
134
					
143
					
135
					#elseif($order.getStatus().getValue() == 12)
144
					#elseif($order.getStatus().getValue() == 12)
Line 156... Line 165...
156
						<td>New Order Created</td>	
165
						<td>New Order Created</td>	
157
					#elseif($order.getStatus().getValue() == 70)
166
					#elseif($order.getStatus().getValue() == 70)
158
						<td>ORDER REFUNDED</td>	
167
						<td>ORDER REFUNDED</td>	
159
						
168
						
160
					#end
169
					#end
161
					<td>
-
 
162
    					#if($order.getStatus().getValue() > 2)
-
 
163
            				<a href='/storewebsite/report!downloadInvoice?number=$order.getId()' target='_blank' style='color:black;padding:3px;background-color:orange;pointer:cursor;font-size:15px;text-decoration:none'>Invoice</a>
-
 
164
            			#elseif($order.getStatus().getValue() == 2)
-
 
165
            				Approval pending
-
 
166
    					#else
-
 
167
    						N/A
-
 
168
    					#end
-
 
169
					</td>
-
 
170
                  </tr>
170
                  </tr>
171
        		#end
171
        		#end
172
                </tbody>
172
                </tbody>
173
    		</table>
173
    		</table>
174
		#end
174
		#end
Line 191... Line 191...
191
            <th>Order ID</th>
191
            <th>Order ID</th>
192
			<th>Product</th>
192
			<th>Product</th>
193
			<th>Status</th>
193
			<th>Status</th>
194
			<th>Collection</th>
194
			<th>Collection</th>
195
			<th>Total Price</th>
195
			<th>Total Price</th>
196
			<th>Invoice</th>
196
			<th></th>
197
			<th>Cancel</th>
197
			<th></th>
198
          </tr>
198
          </tr>
199
        </thead>
199
        </thead>
200
        <tbody>
200
        <tbody>
201
		#foreach ( $order in $orders )
201
		#foreach ( $order in $orders )
202
		  <tr>
202
		  <tr>
Line 205... Line 205...
205
			<td>$order.getStatusDescription()</td>
205
			<td>$order.getStatusDescription()</td>
206
			<td>$order.getAdvanceAmount()</td>
206
			<td>$order.getAdvanceAmount()</td>
207
			<td>$order.getTotal_amount()</td>
207
			<td>$order.getTotal_amount()</td>
208
			<td>
208
			<td>
209
			#if($order.getStatus().getValue() > 2)
209
			#if($order.getStatus().getValue() > 2)
-
 
210
				#if($order.getStatus().getValue() == 15 || $order.getStatus().getValue() == 34)
210
				<a href='/storewebsite/report!downloadInvoice?number=$order.getId()' target='_blank' style='color:black;padding:3px;background-color:orange;pointer:cursor;font-size:15px;text-decoration:none'>Invoice</a>
211
					<a href='/storewebsite/report!downloadInvoice?number=$order.getId()' target='_blank' style='color:black;padding:3px;background-color:orange;pointer:cursor;font-size:15px;text-decoration:none'>Receipt</a>
211
			#else
212
				#else
-
 
213
					<a href='/storewebsite/report!downloadCancellationInvoice?number=$order.getId()' target='_blank' style='color:black;padding:3px;background-color:orange;pointer:cursor;font-size:15px;text-decoration:none'>Receipt</a>
-
 
214
				#end
-
 
215
			#elseif($order.getStatus().getValue() == 2)
212
				Approval pending
216
				Approval pending
-
 
217
			#else
-
 
218
				N/A
213
			#end
219
			#end
214
			</td>
220
			</td>
215
			
221
			
216
		##--------------------------CANCEL THE ORDER---------------------------------------##
222
		##--------------------------CANCEL THE ORDER---------------------------------------##
217
				
223
				
218
				#if($order.getStatus().getValue() < 7)
224
				#if($order.getStatus().getValue() > 2 && $order.getStatus().getValue() < 7 && $action.isOrderPlacedOnSameDay($order.getCreated_timestamp()))
219
					<td><input id='$order.getId()' class='cancelButton' order='$order.getId()' type='button' name='cancel' value='Reuest Cancellation'></input></td>
225
					<td><input id='cancel_$order.getId()' class='cancelButton' order='$order.getId()' type='button' name='cancel' value='Cancel'></input></td>
220
				
226
				
221
				##CANCELLATION FLOW
227
				##CANCELLATION FLOW
222
					
228
					
223
				#elseif($order.getStatus().getValue() == 13)
229
				#elseif($order.getStatus().getValue() == 13)
224
					<td>Cancellation Approval Pending</td>
230
					<td>Cancellation Approval Pending</td>