Subversion Repositories SmartDukaan

Rev

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

Rev 9056 Rev 9068
Line 219... Line 219...
219
					logger.info(orderId+" "+subOrderId + " Unit Price not set " +"\n");
219
					logger.info(orderId+" "+subOrderId + " Unit Price not set " +"\n");
220
					continue;
220
					continue;
221
				}
221
				}
222
				if(nextLine[8].length()!=0){
222
				if(nextLine[8].length()!=0){
223
					shippingPrice  =  Double.parseDouble(nextLine[8]);
223
					shippingPrice  =  Double.parseDouble(nextLine[8]);
-
 
224
					sb.append(orderId+" "+subOrderId + " Shipping Fee :"+ shippingPrice +"\n");
-
 
225
					logger.info(orderId+" "+subOrderId + " Shipping Fee :"+ shippingPrice +"\n");
224
				}
226
				}
225
				else{
227
				else{
226
					shippingPrice=0;
228
					shippingPrice=0;
227
				}
229
				}
228
				if(nextLine[9].length()!=0){
230
				if(nextLine[9].length()!=0){
Line 647... Line 649...
647
					String emailSubjectTxt = "No new Flipkart orders created "+sdf.format(cal.getTime());
649
					String emailSubjectTxt = "No new Flipkart orders created "+sdf.format(cal.getTime());
648
					mailer.sendSSLMessage(sendTo, emailSubjectTxt,sb.toString(), emailFromAddress, password, new ArrayList<File>());
650
					mailer.sendSSLMessage(sendTo, emailSubjectTxt,sb.toString(), emailFromAddress, password, new ArrayList<File>());
649
					logger.info("Sending Email Flipkart Orders Created Successfully (Check Alerts)");
651
					logger.info("Sending Email Flipkart Orders Created Successfully (Check Alerts)");
650
				}
652
				}
651
			}
653
			}
652
 
-
 
653
		}
654
		}
654
		catch (Exception e) {
655
		catch (Exception e) {
655
			e.printStackTrace();
656
			e.printStackTrace();
656
			logger.error("Exception ",e);
657
			logger.error("Exception ",e);
657
		}
658
		}