Subversion Repositories SmartDukaan

Rev

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

Rev 13691 Rev 13694
Line 411... Line 411...
411
		lineItem.setExtra_info(item.getFeatureDescription());
411
		lineItem.setExtra_info(item.getFeatureDescription());
412
		lineItem.setQuantity(quantity);
412
		lineItem.setQuantity(quantity);
413
		lineItem.setItem_id(item.getId());
413
		lineItem.setItem_id(item.getId());
414
		lineItem.setUnit_weight(item.getWeight());
414
		lineItem.setUnit_weight(item.getWeight());
415
		lineItem.setTotal_weight(item.getWeight()*quantity);
415
		lineItem.setTotal_weight(item.getWeight()*quantity);
416
		lineItem.setUnit_price(amount);
416
		lineItem.setUnit_price(amount/quantity);
417
		lineItem.setTotal_price(amount*quantity);
417
		lineItem.setTotal_price(amount);
418
 
418
 
419
		if (item.getColor() == null || "NA".equals(item.getColor())) {
419
		if (item.getColor() == null || "NA".equals(item.getColor())) {
420
			lineItem.setColor("");
420
			lineItem.setColor("");
421
		} else {
421
		} else {
422
			lineItem.setColor(item.getColor());
422
			lineItem.setColor(item.getColor());