Subversion Repositories SmartDukaan

Rev

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

Rev 7874 Rev 7875
Line 94... Line 94...
94
    
94
    
95
    
95
    
96
    public static String getDeliveryDateString(int days, DeliveryType type) throws TException {
96
    public static String getDeliveryDateString(int days, DeliveryType type) throws TException {
97
    	Calendar now = new GregorianCalendar();
97
    	Calendar now = new GregorianCalendar();
98
    	int hour = now.get(Calendar.HOUR_OF_DAY);
98
    	int hour = now.get(Calendar.HOUR_OF_DAY);
99
    	if(type == DeliveryType.COD && hour < 21){
99
    	if(type == DeliveryType.COD && hour < 15){
100
			days = days + 1;
100
			days = days + 1;
101
		}
101
		}
102
    	if(businessDayToActualDateMap.containsKey(days)){
102
    	if(businessDayToActualDateMap.containsKey(days)){
103
    		if(hour != 0){	
103
    		if(hour != 0){	
104
    			return businessDayToActualDateMap.get(days);
104
    			return businessDayToActualDateMap.get(days);