Subversion Repositories SmartDukaan

Rev

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

Rev 10482 Rev 10527
Line 88... Line 88...
88
                        log.error("Unable to get address for addressId : " + cart.getAddressId(), e);
88
                        log.error("Unable to get address for addressId : " + cart.getAddressId(), e);
89
                    }   
89
                    }   
90
                }
90
                }
91
                Boolean needInuranceInfo = false;
91
                Boolean needInuranceInfo = false;
92
                for(Line line : cart.getLines()) {
92
                for(Line line : cart.getLines()) {
-
 
93
                	log.info("Insurer is set: " + line.isSetInsurer());
93
                	if(line.isSetInsurer()){
94
                	if(line.isSetInsurer()){
94
                		long defaultAddressId = usc.getClient().getDefaultAddressId(userinfo.getUserId());
95
                		long defaultAddressId = usc.getClient().getDefaultAddressId(userinfo.getUserId());
95
                		needInuranceInfo = !userClient.isInsuranceDetailPresent(defaultAddressId);
96
                		needInuranceInfo = !userClient.isInsuranceDetailPresent(defaultAddressId);
-
 
97
                		log.info("Need insurance");
96
                		break;
98
                		break;
97
                	}
99
                	}
98
                }
100
                }
99
                
101
                
100
                cartPojoJson = new Gson().toJson(PojoPopulator.getCartPojo(cart, errorMsg, pincode, needInuranceInfo));
102
                cartPojoJson = new Gson().toJson(PojoPopulator.getCartPojo(cart, errorMsg, pincode, needInuranceInfo));