Subversion Repositories SmartDukaan

Rev

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

Rev 10527 Rev 10528
Line 92... Line 92...
92
                for(Line line : cart.getLines()) {
92
                for(Line line : cart.getLines()) {
93
                	log.info("Insurer is set: " + line.isSetInsurer());
93
                	log.info("Insurer is set: " + line.isSetInsurer());
94
                	if(line.isSetInsurer()){
94
                	if(line.isSetInsurer()){
95
                		long defaultAddressId = usc.getClient().getDefaultAddressId(userinfo.getUserId());
95
                		long defaultAddressId = usc.getClient().getDefaultAddressId(userinfo.getUserId());
96
                		needInuranceInfo = !userClient.isInsuranceDetailPresent(defaultAddressId);
96
                		needInuranceInfo = !userClient.isInsuranceDetailPresent(defaultAddressId);
97
                		log.info("Need insurance");
97
                		log.info("Need insurance: " + needInuranceInfo);
98
                		break;
98
                		break;
99
                	}
99
                	}
100
                }
100
                }
101
                
101
                
102
                cartPojoJson = new Gson().toJson(PojoPopulator.getCartPojo(cart, errorMsg, pincode, needInuranceInfo));
102
                cartPojoJson = new Gson().toJson(PojoPopulator.getCartPojo(cart, errorMsg, pincode, needInuranceInfo));