Subversion Repositories SmartDukaan

Rev

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

Rev 24798 Rev 24917
Line 73... Line 73...
73
	    					</tr>
73
	    					</tr>
74
	    						
74
	    						
75
				        </thead>
75
				        </thead>
76
	    				<tbody>
76
	    				<tbody>
77
	    					
77
	    					
78
	    				#if(!$order.isEmpty())
78
	    				#if(!$pendingPaymentorder.isEmpty())
79
		    					 #foreach($pendingorderDetail in $pendingPaymentorder )
79
		    					 #foreach($pendingorderDetail in $pendingPaymentorder )
80
		    					 #if(!($pendingorderDetail.getRefundTimestamp()) && $pendingorderDetail.getWalletAmount()>0)
80
		    					 #if(!($pendingorderDetail.getRefundTimestamp()) && $pendingorderDetail.getWalletAmount()>0)
81
		    					 	<tr>
81
		    					 	<tr>
82
		    					 		
82
		    					 		
83
	    							     <td>$pendingorderDetail.getLineItem().getItemId()</td>
83
	    							     <td>$pendingorderDetail.getLineItem().getItemId()</td>
Line 108... Line 108...
108
	    		<div class="col-lg-12" id="catalog-container">
108
	    		<div class="col-lg-12" id="catalog-container">
109
	    			<table class="table table-border table-condensed table-bordered" id="pending-order-table">
109
	    			<table class="table table-border table-condensed table-bordered" id="pending-order-table">
110
		    		
110
		    		
111
		    			<thead>
111
		    			<thead>
112
				            <tr>
112
				            <tr>
113
				            
113
				               
114
								<th>Item Id</th>
114
								<th>Item Id</th>
115
	    						<th>OrderId</th>
115
	    						<th>OrderId</th>
116
	    						<th>Description</th>
116
	    						<th>Description</th>
-
 
117
	    						<th>Notify Status</th>
117
	    						<th>Customer Name </th>
118
	    						<th>Customer Name </th>
118
	    						<th>Mobile</th>
119
	    						<th>Mobile</th>
-
 
120
	    						<th>Qty</th>
119
	    						<th>Quantity</th>
121
	    						<th>City</th>
-
 
122
	    						<th>State</th>
-
 
123
	    						<th>Store Code</th>
120
	    						<th>Created Timestamp</th>
124
	    						<th>Created</th>
121
	    						<th>Cancel Order</th>
125
	    						<th>Cancel Order</th>
122
	    						<th>Keep a Tab </th>
126
	    						<th>Notify</th>
123
	    						
127
	    						
124
	    					</tr>	
128
	    					</tr>	
125
	    						
129
	    						
126
				        </thead>
130
				        </thead>
127
	    				<tbody>
131
	    				<tbody>
128
	    					
132
	    					
129
	    				#if(!$order.isEmpty())
133
	    				#if(!$inProcessorder.isEmpty())
130
		    					 #foreach($orderDetail in $inProcessorder )
134
		    					 #foreach($orderDetail in $inProcessorder )
131
		    					 	<tr>
135
		    					 	<tr>
132
		    					 	   
136
		    					 	   
133
		    					       	<td>$orderDetail.getLineItem().getItemId()</td>
137
		    					       	<td>$orderDetail.getLineItem().getItemId()</td>
134
		    					       	<td>$orderDetail.getId()</td>
138
		    					       	<td>$orderDetail.getId()</td>
135
		    					 		<td>$orderDetail.getLineItem().getItem().getItemDescription()</td>
139
		    					 		<td>$orderDetail.getLineItem().getItem().getItemDescription()</td>
-
 
140
		    					 		#if($latestNotifyOrders.get($orderDetail.getId()))
-
 
141
			    					    <td> <button type="button" class="btn btn-link mk_button">$latestNotifyOrders.get($orderDetail.getId()).get().getStatus()</button></td>
-
 
142
			    					    #else
-
 
143
			    					    <td> </td>
-
 
144
			    					    #end
136
		    					 		<td>$orderDetail.getRetailerName()</td>
145
		    					 		<td>$orderDetail.getRetailerName()</td>
137
                                        <td>$orderDetail.getRetailerMobileNumber()</td>
146
                                        <td>$orderDetail.getRetailerMobileNumber()</td>
138
                                        <td>$orderDetail.getLineItem().getQuantity()</td>	
147
                                        <td>$orderDetail.getLineItem().getQuantity()</td>	
-
 
148
                                        <td>$orderDetail.getRetailerCity()</td>
-
 
149
                                        <td>$orderDetail.getRetailerState()</td>
-
 
150
                                        <td>$storeIdAndFofoIdMap.get($orderDetail.getRetailerId())</td>
139
                                        <td>$orderDetail.getCreateTimestamp().format($dateTimeFormatter)</td>
151
                                        <td>$orderDetail.getCreateTimestamp().format($dateTimeFormatter)</td>
140
                                        <td><button class="btn btn-primary cancellation"  data-orderid="$orderDetail.getId()" type="button" >Cancel</button>
152
                                        <td><button class="btn btn-primary cancellation"  data-orderid="$orderDetail.getId()"  data-toggle="modal" data-target="#orderCancelModal" type="button" >Cancel</button>
141
								     </td>
153
								     </td>
142
								
154
								     
143
								     <td><button class="btn btn-primary keepatab" data-orderid="$orderDetail.getId()"  type="button" >Keep A Tab</button>
155
								     <td><button class="btn btn-primary notify"  onclick="getItemColor($orderDetail.getLineItem().getItem().getCatalogItemId(),$orderDetail.getLineItem().getItem().getId())" data-toggle="modal" data-target="#notifyOrder" type="button" >Notify</button>
144
								     </td>
156
								     </td>
145
                                     		    					        
157
                                     		    					        
146
	    							    					 
158
	    							    					 
147
	    					</tr>
159
	    					</tr>
148
	    					#end
160
	    					#end
Line 150... Line 162...
150
	    				</tbody>
162
	    				</tbody>
151
	    			</table>
163
	    			</table>
152
	    		</div>
164
	    		</div>
153
	    		</div>
165
	    		</div>
154
	    		
166
	    		
-
 
167
	    		
-
 
168
	 <div id="orderCancelModal" class="modal fade" role="dialog">
-
 
169
	  <div class="modal-dialog">
155
	
170
	
-
 
171
	    <!-- Modal content-->
-
 
172
	    <div class="modal-content">
-
 
173
	      <div class="modal-header">
-
 
174
	        <button type="button" class="close" data-dismiss="modal">&times;</button>
-
 
175
	        <h4 class="modal-title">Are you sure want to cancel the order</h4>
-
 
176
	      </div>
-
 
177
	   <div class="modal-body">
-
 
178
	   <div class ="orderCancel">
-
 
179
	   <div class=form-inline'>
-
 
180
       <label for='reason'>Reason:</label>
-
 
181
	   <select class='form-control input-sm' id='selectreason' onchange="myFunction()" >
-
 
182
	   <option selected disabled>Reasons</option>
-
 
183
	   <option value='The model is currently not in stock with Brand/ND'>The model is currently not in stock with Brand/ND</option>
-
 
184
	   <option value='The model is currently not available in the specific color with Brand/ND'>The model is currently not available in the specific color with Brand/ND</option>
-
 
185
	   <option value='The model/color is discontinued.'>The model/color is discontinued.</option>
-
 
186
	   <option value='other'>other</option>
-
 
187
	   </select>
-
 
188
	   <br>
-
 
189
	  <textarea class='form-control' rows='1' id='textreason'></textarea>
-
 
190
      </div>
-
 
191
	   
-
 
192
		
-
 
193
         </div>
-
 
194
      </div>
-
 
195
       <div class="modal-footer">
-
 
196
		        <button type="button" data-dismiss="modal" class="btn btn-default request-cancel">Cancel</button>
-
 
197
		        <button type="button" data-dismiss="modal"  class="btn btn-default order-request-submit">Submit</button>
-
 
198
		   
-
 
199
	   </div>
-
 
200
    </div>
-
 
201
   </div>
-
 
202
 </div>
156
 
203
 
-
 
204
	  
-
 
205
	  
-
 
206
	<div class="notify-container">
-
 
207
   <div  class="modal fade text-center" id="notifyOrder">
-
 
208
	<div class="modal-dialog">
-
 
209
    <div class="modal-content" style="width:900px;">
-
 
210
    </div>
-
 
211
    </div>
-
 
212
    </div>
-
 
213
    </div>
-
 
214
    
157
	    		
215
    
-
 
216
 
-
 
217
 
-
 
218
 
-
 
219
		
158
	    		</section>
220
</section>
159
	    		
221
	    		
160
 <script type="text/javascript">
222
 <script type="text/javascript">
161
 var editor;
223
 var editor;
162
 	
224
 	
-
 
225
 
163
 	$(document).ready(function() {
226
 $(document).ready(function() {
164
 	
227
 	
165
 
228
 
166
  
229
  
167
 
230
 
168
 var dtable =  $('#pending-order-table').DataTable(
231
 var dtable =  $('#pending-order-table').DataTable(
169
  {
232
  {
170
 
233