Subversion Repositories SmartDukaan

Rev

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

Rev 9924 Rev 10114
Line 957... Line 957...
957
				double maxNLC = inventoryClient.getNlcForWarehouse(warehouseId, item.getId());
957
				double maxNLC = inventoryClient.getNlcForWarehouse(warehouseId, item.getId());
958
				if (maxNLC==0){
958
				if (maxNLC==0){
959
					sb.append(sku + "Max Nlc can't be 0"+"\n");
959
					sb.append(sku + "Max Nlc can't be 0"+"\n");
960
					continue;
960
					continue;
961
				}
961
				}
962
				warehouse = inventoryClient.getWarehouse(warehouseId);
-
 
963
 
-
 
964
				snapdealItem.setWarehouseId(warehouseId);
962
				snapdealItem.setWarehouseId(warehouseId);
965
				snapdealItem.setMaxNlc(maxNLC);
963
				snapdealItem.setMaxNlc(maxNLC);
966
			}
964
			}
967
 
965
 
968
			if (!checkEmptyString(sheet.getRow(iterator).getCell(2))){
966
			if (!checkEmptyString(sheet.getRow(iterator).getCell(2))){
Line 1060... Line 1058...
1060
 
1058
 
1061
				for(int i=0;i<slabs;i++){
1059
				for(int i=0;i<slabs;i++){
1062
					courierCost = courierCost + 35;
1060
					courierCost = courierCost + 35;
1063
				}
1061
				}
1064
			}
1062
			}
1065
 
1063
			
-
 
1064
			warehouse = inventoryClient.getWarehouse(snapdealItem.getWarehouseId());
1066
			snapdealItem.setCourierCost(courierCost);
1065
			snapdealItem.setCourierCost(courierCost);
1067
			marketplaceItem.setCourierCost(courierCost);
1066
			marketplaceItem.setCourierCost(courierCost);
1068
			transferPrice = roundTwoDecimals(snapdealItem.getSellingPrice()- snapdealItem.getSellingPrice()*(marketplaceItem.getCommission()/100+marketplaceItem.getEmiFee()/100)*(1+(marketplaceItem.getServiceTax()/100))-(snapdealItem.getCourierCost()+marketplaceItem.getClosingFee())*(1+(marketplaceItem.getServiceTax()/100)));
1067
			transferPrice = roundTwoDecimals(snapdealItem.getSellingPrice()- snapdealItem.getSellingPrice()*(marketplaceItem.getCommission()/100+marketplaceItem.getEmiFee()/100)*(1+(marketplaceItem.getServiceTax()/100))-(snapdealItem.getCourierCost()+marketplaceItem.getClosingFee())*(1+(marketplaceItem.getServiceTax()/100)));
1069
			snapdealItem.setTransferPrice(transferPrice);
1068
			snapdealItem.setTransferPrice(transferPrice);
1070
			marketplaceItem.setCurrentTp(transferPrice);
1069
			marketplaceItem.setCurrentTp(transferPrice);
Line 1120... Line 1119...
1120
			System.out.println("Unable to stream the manifest file");
1119
			System.out.println("Unable to stream the manifest file");
1121
		}   
1120
		}   
1122
	}
1121
	}
1123
 
1122
 
1124
	public boolean checkEmptyString(Cell cell){
1123
	public boolean checkEmptyString(Cell cell){
1125
		if (cell==null){
1124
		if (cell==null || cell.getCellType() == Cell.CELL_TYPE_BLANK){
1126
			return true;
1125
			return true;
1127
		}
1126
		}
1128
		return false;
1127
		return false;
1129
	}
1128
	}
1130
 
1129