Subversion Repositories SmartDukaan

Rev

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

Rev 9741 Rev 9742
Line 60... Line 60...
60
						istFormatter.setTimeZone(zone);
60
						istFormatter.setTimeZone(zone);
61
						Date date = istFormatter.parse(nextLine[2]);
61
						Date date = istFormatter.parse(nextLine[2]);
62
						SimpleDateFormat dateFormat = new SimpleDateFormat("MM/dd/yyyy");
62
						SimpleDateFormat dateFormat = new SimpleDateFormat("MM/dd/yyyy");
63
						Date date_key = dateFormat.parse(dateFormat.format(date));
63
						Date date_key = dateFormat.parse(dateFormat.format(date));
64
						if(date_key.equals(dateFormat.parse("02/01/2014"))){
64
						if(date_key.equals(dateFormat.parse("02/01/2014"))){
65
							System.out.println("Order Details " + nextLine[0]+" "+date_key+" "+ nextLine[11] +" " + nextLine[13] + " " + nextLine[14] + " " + nextLine[4] + " " + nextLine[13] );
65
							System.out.println("Order Details " + nextLine[0]+" "+date_key+" "+ nextLine[11] +" " + nextLine[14] + " " + nextLine[4] + " " + nextLine[13] );
66
						}
66
						}
67
						Long itemid = Long.parseLong(nextLine[11].replaceAll("FBA",""));
67
						Long itemid = Long.parseLong(nextLine[11].replaceAll("FBA",""));
68
						Integer qty=0;
68
						Integer qty=0;
69
						if(nextLine[14].length()!=0){
69
						if(nextLine[14].length()!=0){
70
							qty = new Integer(nextLine[14]);
70
							qty = new Integer(nextLine[14]);
Line 72... Line 72...
72
						Float itemSale = null;
72
						Float itemSale = null;
73
						if(nextLine[16].length()!=0){
73
						if(nextLine[16].length()!=0){
74
							itemSale = new Float(nextLine[16]);
74
							itemSale = new Float(nextLine[16]);
75
						}
75
						}
76
						else{
76
						else{
77
							continue;
77
							itemSale = (float) 0;
78
						}
78
						}
79
						Float itemDiscount; 
79
						Float itemDiscount; 
80
						if(nextLine[22].length()!=0){
80
						if(nextLine[22].length()!=0){
81
							itemDiscount = new Float(nextLine[22]);
81
							itemDiscount = new Float(nextLine[22]);
82
						}
82
						}