| Line 251... |
Line 251... |
| 251 |
|
251 |
|
| 252 |
Integer qty = new Integer(nextLine[14]);
|
252 |
Integer qty = new Integer(nextLine[14]);
|
| 253 |
Float itemSale = null;
|
253 |
Float itemSale = null;
|
| 254 |
if(nextLine[16].length()!=0){
|
254 |
if(nextLine[16].length()!=0){
|
| 255 |
itemSale = new Float(nextLine[16]);
|
255 |
itemSale = new Float(nextLine[16]);
|
| - |
|
256 |
}
|
| - |
|
257 |
else{
|
| 256 |
continue;
|
258 |
continue;
|
| 257 |
}
|
259 |
}
|
| 258 |
Float itemDiscount;
|
260 |
Float itemDiscount;
|
| 259 |
if(nextLine[22].length()!=0){
|
261 |
if(nextLine[22].length()!=0){
|
| 260 |
itemDiscount = new Float(nextLine[22]);
|
262 |
itemDiscount = new Float(nextLine[22]);
|
| Line 264... |
Line 266... |
| 264 |
}
|
266 |
}
|
| 265 |
if(orderDateItemIdFbaSaleSnapshotMap.containsKey(date_key)){
|
267 |
if(orderDateItemIdFbaSaleSnapshotMap.containsKey(date_key)){
|
| 266 |
if(orderDateItemIdFbaSaleSnapshotMap.get(date_key).containsKey(itemid)){
|
268 |
if(orderDateItemIdFbaSaleSnapshotMap.get(date_key).containsKey(itemid)){
|
| 267 |
FbaSalesSnapshot fbaSalesSnapshot = orderDateItemIdFbaSaleSnapshotMap.get(date_key).get(itemid);
|
269 |
FbaSalesSnapshot fbaSalesSnapshot = orderDateItemIdFbaSaleSnapshotMap.get(date_key).get(itemid);
|
| 268 |
if(itemDiscount!=0){
|
270 |
if(itemDiscount!=0){
|
| 269 |
fbaSalesSnapshot.setPromotionOrderCount(qty);
|
271 |
fbaSalesSnapshot.setPromotionOrderCount(fbaSalesSnapshot.getPromotionOrderCount()+qty);
|
| 270 |
fbaSalesSnapshot.setTotalPromotionSale(fbaSalesSnapshot.totalPromotionSale + (itemSale - itemDiscount));
|
272 |
fbaSalesSnapshot.setTotalPromotionSale(fbaSalesSnapshot.getTotalPromotionSale() + (itemSale - itemDiscount));
|
| 271 |
}
|
- |
|
| 272 |
else{
|
- |
|
| 273 |
fbaSalesSnapshot.setPromotionOrderCount(0);
|
- |
|
| 274 |
fbaSalesSnapshot.setTotalPromotionSale((float) 0);
|
- |
|
| 275 |
}
|
273 |
}
|
| 276 |
fbaSalesSnapshot.setTotalOrderCount(fbaSalesSnapshot.getTotalOrderCount() + qty);
|
274 |
fbaSalesSnapshot.setTotalOrderCount(fbaSalesSnapshot.getTotalOrderCount() + qty);
|
| 277 |
fbaSalesSnapshot.setTotalSale(fbaSalesSnapshot.getTotalSale() + itemSale);
|
275 |
fbaSalesSnapshot.setTotalSale(fbaSalesSnapshot.getTotalSale() + itemSale);
|
| 278 |
orderDateItemIdFbaSaleSnapshotMap.get(date_key).put(itemid,fbaSalesSnapshot);
|
276 |
orderDateItemIdFbaSaleSnapshotMap.get(date_key).put(itemid,fbaSalesSnapshot);
|
| 279 |
}
|
277 |
}
|