Subversion Repositories SmartDukaan

Rev

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

Rev 10105 Rev 10108
Line 952... Line 952...
952
				double maxNLC = inventoryClient.getNlcForWarehouse(warehouseId, item.getId());
952
				double maxNLC = inventoryClient.getNlcForWarehouse(warehouseId, item.getId());
953
				if (maxNLC==0){
953
				if (maxNLC==0){
954
					sb.append(sku + "Max Nlc can't be 0"+"\n");
954
					sb.append(sku + "Max Nlc can't be 0"+"\n");
955
					continue;
955
					continue;
956
				}
956
				}
957
				warehouse = inventoryClient.getWarehouse(warehouseId);
-
 
958
 
-
 
959
				flipkartItem.setWarehouseId(warehouseId);
957
				flipkartItem.setWarehouseId(warehouseId);
960
				flipkartItem.setMaxNlc(maxNLC);
958
				flipkartItem.setMaxNlc(maxNLC);
961
			}
959
			}
962
 
960
 
963
			if (!checkEmptyString(sheet.getRow(iterator).getCell(2))){
961
			if (!checkEmptyString(sheet.getRow(iterator).getCell(2))){
Line 1055... Line 1053...
1055
 
1053
 
1056
				for(int i=0;i<slabs;i++){
1054
				for(int i=0;i<slabs;i++){
1057
					courierCost = courierCost + 40;
1055
					courierCost = courierCost + 40;
1058
				}
1056
				}
1059
			}
1057
			}
1060
 
-
 
-
 
1058
			warehouse = inventoryClient.getWarehouse(flipkartItem.getWarehouseId());
1061
			marketplaceItem.setCourierCost(courierCost);
1059
			marketplaceItem.setCourierCost(courierCost);
1062
			transferPrice = roundTwoDecimals(marketplaceItem.getCurrentSp()- marketplaceItem.getCurrentSp()*(marketplaceItem.getCommission()/100+marketplaceItem.getEmiFee()/100)*(1+(marketplaceItem.getServiceTax()/100))-(marketplaceItem.getCourierCost()+marketplaceItem.getClosingFee())*(1+(marketplaceItem.getServiceTax()/100)));
1060
			transferPrice = roundTwoDecimals(marketplaceItem.getCurrentSp()- marketplaceItem.getCurrentSp()*(marketplaceItem.getCommission()/100+marketplaceItem.getEmiFee()/100)*(1+(marketplaceItem.getServiceTax()/100))-(marketplaceItem.getCourierCost()+marketplaceItem.getClosingFee())*(1+(marketplaceItem.getServiceTax()/100)));
1063
			marketplaceItem.setCurrentTp(transferPrice);
1061
			marketplaceItem.setCurrentTp(transferPrice);
1064
			commission = roundTwoDecimals(((marketplaceItem.getCommission()/100)*marketplaceItem.getCurrentSp()));
1062
			commission = roundTwoDecimals(((marketplaceItem.getCommission()/100)*marketplaceItem.getCurrentSp()));
1065
			flipkartItem.setCommissionValue(commission);
1063
			flipkartItem.setCommissionValue(commission);