Subversion Repositories SmartDukaan

Rev

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

Rev 10449 Rev 10481
Line 131... Line 131...
131
			}
131
			}
132
		}
132
		}
133
		return pp;
133
		return pp;
134
	}
134
	}
135
	
135
	
136
	public static CartPojo getCartPojo(Cart cart, String errorMsg, String pincode) {
136
	public static CartPojo getCartPojo(Cart cart, String errorMsg, String pincode, Boolean needInsuranceInfo) {
137
	    CartPojo cartPojo = new CartPojo();
137
	    CartPojo cartPojo = new CartPojo();
138
	    cartPojo.setCouponCode(cart.getCouponCode());
138
	    cartPojo.setCouponCode(cart.getCouponCode());
139
	    cartPojo.setDiscountedPrice(cart.getDiscountedPrice());
139
	    cartPojo.setDiscountedPrice(cart.getDiscountedPrice());
140
	    cartPojo.setId(cart.getId());
140
	    cartPojo.setId(cart.getId());
141
	    cartPojo.setMessage(errorMsg);
141
	    cartPojo.setMessage(errorMsg);
142
	    cartPojo.setPickupStoreId(cart.getPickupStoreId());
142
	    cartPojo.setPickupStoreId(cart.getPickupStoreId());
143
	    cartPojo.setTotalPrice(cart.getTotalPrice());
143
	    cartPojo.setTotalPrice(cart.getTotalPrice());
-
 
144
	    cartPojo.setNeedInsuranceInfo(needInsuranceInfo);
144
	    
145
	    
145
	    List<CartLinePojo> linepojos = new ArrayList<CartLinePojo>();
146
	    List<CartLinePojo> linepojos = new ArrayList<CartLinePojo>();
146
	    
147
	    
147
	    for(Line line : cart.getLines()) {
148
	    for(Line line : cart.getLines()) {
148
	        CartLinePojo linepojo = new CartLinePojo();
149
	        CartLinePojo linepojo = new CartLinePojo();