Subversion Repositories SmartDukaan

Rev

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

Rev 7839 Rev 7840
Line 75... Line 75...
75
		}
75
		}
76
		response.put("delivery_estimate", days);
76
		response.put("delivery_estimate", days);
77
		response.put("cod_delivery_estimate", codDays);
77
		response.put("cod_delivery_estimate", codDays);
78
		response.put("is_cod_available_for_location", Boolean.toString(isCODAvailable));
78
		response.put("is_cod_available_for_location", Boolean.toString(isCODAvailable));
79
		response.put("on_time_guarantee", Boolean.toString(isOTGAvailable));
79
		response.put("on_time_guarantee", Boolean.toString(isOTGAvailable));
80
		SimpleDateFormat dateformat = new SimpleDateFormat("EEE dd-MMM-yyyy");
80
		SimpleDateFormat dateformat = new SimpleDateFormat("EEE dd-MMM-yy");
81
		response.put("system_date", dateformat.format(cal.getTime()));
81
		response.put("system_date", dateformat.format(cal.getTime()));
82
		
82
		
83
		try{
83
		try{
84
			if(pincode.length() == 6 && !pincode.equals("110001")){
84
			if(pincode.length() == 6 && !pincode.equals("110001")){
85
				String requestOrigin = request.getHeader("referer").contains("cart")?"Cart":"Product";
85
				String requestOrigin = request.getHeader("referer").contains("cart")?"Cart":"Product";
Line 133... Line 133...
133
    				check = true;
133
    				check = true;
134
    				continue outer;
134
    				continue outer;
135
    			}
135
    			}
136
    		}
136
    		}
137
    		check= false;
137
    		check= false;
138
    		SimpleDateFormat dateformat = new SimpleDateFormat("EEE dd-MMM-yyyy");
138
    		SimpleDateFormat dateformat = new SimpleDateFormat("EEE dd-MMM-yy");
139
			businessDayToActualDateMap.put(days, dateformat.format(now.getTime()));
139
			businessDayToActualDateMap.put(days, dateformat.format(now.getTime()));
140
    	}
140
    	}
141
    	return businessDayToActualDateMap.get(days);
141
    	return businessDayToActualDateMap.get(days);
142
	}
142
	}
143
    
143