Subversion Repositories SmartDukaan

Rev

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

Rev 8846 Rev 8849
Line 147... Line 147...
147
				else{
147
				else{
148
					SellingPrice = order.getSellingPricePerItem();
148
					SellingPrice = order.getSellingPricePerItem();
149
				}
149
				}
150
				lineItem = createLineItem(order.getSKUCode(),SellingPrice);
150
				lineItem = createLineItem(order.getSKUCode(),SellingPrice);
151
				if(lineItem == null){
151
				if(lineItem == null){
152
					sb.append(order.getSuborderId() +" "+"SKU not found" + "\n");
152
					sb.append(order.getSuborderId() +" "+"SKU not found "+order.getSKUCode()+ "\n");
153
					continue;
153
					continue;
154
				}
154
				}
155
				lineItem.setExtra_info("SubOrderId = " + order.getSuborderId() + " ReferenceCode = " + order.getReferenceCode());
155
				lineItem.setExtra_info("SubOrderId = " + order.getSuborderId() + " ReferenceCode = " + order.getReferenceCode());
156
			} catch (CatalogServiceException e) {
156
			} catch (CatalogServiceException e) {
157
				logger.error("Unable to create order for suborderid  " + order.getSuborderId() , e);
157
				logger.error("Unable to create order for suborderid  " + order.getSuborderId() , e);
Line 426... Line 426...
426
		String password = "cafe@nes";
426
		String password = "cafe@nes";
427
		GmailUtils mailer = new GmailUtils();
427
		GmailUtils mailer = new GmailUtils();
428
		//String sendTo[] = new String[]{"vikram.raghav@shop2020.in"};
428
		//String sendTo[] = new String[]{"vikram.raghav@shop2020.in"};
429
		String sendTo[] = new String[]{ "sandeep.sachdeva@shop2020.in", "vikram.raghav@shop2020.in", "rajneesh.arora@shop2020.in",
429
		String sendTo[] = new String[]{ "sandeep.sachdeva@shop2020.in", "vikram.raghav@shop2020.in", "rajneesh.arora@shop2020.in",
430
				"khushal.bhatia@shop2020.in","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com",
430
				"khushal.bhatia@shop2020.in","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com",
431
				"yukti.jain@shop2020.in","manisha.sharma@shop2020.in","chandan.kumar@shop2020.in","ankush.dhingra@shop2020.in"};
431
				"yukti.jain@shop2020.in","manisha.sharma@shop2020.in","chandan.kumar@shop2020.in","ankush.dhingra@shop2020.in","amar.kumar@shop2020.in"};
432
 
432
 
433
		try {
433
		try {
434
			if(new_orders==processed_orders && new_orders > 0){
434
			if(new_orders==processed_orders && new_orders > 0){
435
				String emailSubjectTxt = "Snapdeal Orders Created Successfully "+sdf.format(cal.getTime());
435
				String emailSubjectTxt = "Snapdeal Orders Created Successfully "+sdf.format(cal.getTime());
436
				String text = "Total Orders Received : " + ( new_orders + duplicate_orders ) + "\n" + 
436
				String text = "Total Orders Received : " + ( new_orders + duplicate_orders ) + "\n" +