Subversion Repositories SmartDukaan

Rev

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

Rev 20666 Rev 20938
Line 48... Line 48...
48
		details.setPaymentType("P");
48
		details.setPaymentType("P");
49
		details.setChargeableWeight(new Weight("KG", shipmentInfo.getTotalWeightInKg()));
49
		details.setChargeableWeight(new Weight("KG", shipmentInfo.getTotalWeightInKg()));
50
		details.setActualWeight(new Weight("KG", shipmentInfo.getTotalWeightInKg()));
50
		details.setActualWeight(new Weight("KG", shipmentInfo.getTotalWeightInKg()));
51
		details.setDescriptionOfGoods("Electronics");
51
		details.setDescriptionOfGoods("Electronics");
52
		details.setGoodsOriginCountry("IN");
52
		details.setGoodsOriginCountry("IN");
53
		if(shipmentInfo.getOrder().isLogisticsCod()){
53
		if(shipmentInfo.getNetPayable()==0){
54
			details.setServices("CODS");
54
			details.setServices("CODS");
55
			details.setCashOnDeliveryAmount(new Money("INR", shipmentInfo.getTotalAmount() + shipmentInfo.getTotalShippingAmount()));
55
			details.setCashOnDeliveryAmount(new Money("INR", shipmentInfo.getNetPayable()));
56
		}
56
		}
57
		details.setCustomsValueAmount(new Money("INR", shipmentInfo.getTotalAmount()));
57
		details.setCustomsValueAmount(new Money("INR", shipmentInfo.getTotalAmount()));
58
		details.setNumberOfPieces(shipmentInfo.getTotalPcs());
58
		details.setNumberOfPieces(shipmentInfo.getTotalPcs());
59
		
59
		
60
		shp.setDetails(details);
60
		shp.setDetails(details);