Subversion Repositories SmartDukaan

Rev

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

Rev 19025 Rev 19172
Line 173... Line 173...
173
			this.alert = OrderAlert.SHIPPING_TIME_EXCEEDED;
173
			this.alert = OrderAlert.SHIPPING_TIME_EXCEEDED;
174
			return;
174
			return;
175
		}
175
		}
176
	    	
176
	    	
177
	    
177
	    
178
	    if(this.createdOn <= currentTime - 2 * MS_IN_HOUR && this.status == 3 && !this.cod){
178
	    /*if(this.createdOn <= currentTime - 2 * MS_IN_HOUR && this.status == 3 && !this.cod){
179
            //A prepaid order has neither been accepted nor marked out of stock after 2 hours of order creation
179
            //A prepaid order has neither been accepted nor marked out of stock after 2 hours of order creation
180
            this.alert = OrderAlert.ACCEPTANCE_DELAYED_TOO_MUCH;
180
            this.alert = OrderAlert.ACCEPTANCE_DELAYED_TOO_MUCH;
181
            return;
181
            return;
182
        }
182
        }
183
	    
183
	    
184
	    if(this.verifiedAt <= currentTime - 2 * MS_IN_HOUR && this.status == 3 && this.cod){
184
	    if(this.verifiedAt <= currentTime - 2 * MS_IN_HOUR && this.status == 3 && this.cod){
185
	        //A COD order has neither been accepted nor marked out of stock after 2 hours of order verification
185
	        //A COD order has neither been accepted nor marked out of stock after 2 hours of order verification
186
            this.alert = OrderAlert.ACCEPTANCE_DELAYED_TOO_MUCH;
186
            this.alert = OrderAlert.ACCEPTANCE_DELAYED_TOO_MUCH;
187
            return;
187
            return;
188
	    }
188
	    }*/
189
	    
189
	    
190
	    if(this.shippedAt <= currentTime - 27 * MS_IN_HOUR && this.status == 9){
190
	    if(this.shippedAt <= currentTime - 27 * MS_IN_HOUR && this.status == 9){
191
            //A shipped order has not been picked up even after 6 hours of pickup mismatch being reported
191
            //A shipped order has not been picked up even after 6 hours of pickup mismatch being reported
192
            this.alert = OrderAlert.ORDER_NOT_CONNECTED_FOR_TOO_LONG;
192
            this.alert = OrderAlert.ORDER_NOT_CONNECTED_FOR_TOO_LONG;
193
            return;
193
            return;
194
        }
194
        }
195
	    
195
	    
196
	    if(this.cod && this.status == 2 && this.createdOn <= currentTime - MS_IN_HOUR){
196
	    /*if(this.cod && this.status == 2 && this.createdOn <= currentTime - MS_IN_HOUR){
197
	        //A COD order has not been verified for an hour
197
	        //A COD order has not been verified for an hour
198
	        this.alert = OrderAlert.VERIFICATION_DELAYED;
198
	        this.alert = OrderAlert.VERIFICATION_DELAYED;
199
            return;
199
            return;
200
	    }
200
	    }
201
	    
201
	    
Line 207... Line 207...
207
	    
207
	    
208
        if(this.verifiedAt <= currentTime - MS_IN_HOUR && this.status == 3 && this.cod){
208
        if(this.verifiedAt <= currentTime - MS_IN_HOUR && this.status == 3 && this.cod){
209
            //A COD order has neither been accepted nor marked out of stock after an hour of order verification
209
            //A COD order has neither been accepted nor marked out of stock after an hour of order verification
210
            this.alert = OrderAlert.ACCEPTANCE_DELAYED;
210
            this.alert = OrderAlert.ACCEPTANCE_DELAYED;
211
            return;
211
            return;
212
        }
212
        }*/
213
        
213
        
214
	    if(this.status == 9 && this.shippedAt <= currentTime - 20 * MS_IN_HOUR){
214
	    if(this.status == 9 && this.shippedAt <= currentTime - 20 * MS_IN_HOUR){
215
            //A shipped order has not been picked up
215
            //A shipped order has not been picked up
216
            this.alert = OrderAlert.ORDER_NOT_CONNECTED;
216
            this.alert = OrderAlert.ORDER_NOT_CONNECTED;
217
            return;
217
            return;