Subversion Repositories SmartDukaan

Rev

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

Rev 22893 Rev 22894
Line 115... Line 115...
115
	PolicyNumberGenerationSequenceRepository policyNumberGenerationSequenceRepository;
115
	PolicyNumberGenerationSequenceRepository policyNumberGenerationSequenceRepository;
116
 
116
 
117
	@RequestMapping(value = ProfitMandiConstants.URL_DAMAGE_INSURANCE, method = RequestMethod.POST)
117
	@RequestMapping(value = ProfitMandiConstants.URL_DAMAGE_INSURANCE, method = RequestMethod.POST)
118
	public ResponseEntity<?> createTheftProtection(HttpServletRequest request,
118
	public ResponseEntity<?> createTheftProtection(HttpServletRequest request,
119
			@RequestBody GadgetCopsDocumentInsuranceModel insuranceModel) throws Throwable {
119
			@RequestBody GadgetCopsDocumentInsuranceModel insuranceModel) throws Throwable {
-
 
120
		insuranceModel.setCustomerDateOfBirth(StringUtils.fromHypendatedDate(insuranceModel.getCustomerDateOfBirthString()));
-
 
121
		insuranceModel.setInvoiceCreationDate(StringUtils.fromHypendatedDate(insuranceModel.getInvoiceDateString()));
120
		insuranceModel.validate();
122
		insuranceModel.validate();
121
		int userId = (int) request.getAttribute("userId");
123
		int userId = (int) request.getAttribute("userId");
122
		UserCart uc = userAccountRepository.getUserCart(userId);
124
		UserCart uc = userAccountRepository.getUserCart(userId);
123
		PolicyNumberGenerationSequence policyNumberGenerationSequence = null;
125
		PolicyNumberGenerationSequence policyNumberGenerationSequence = null;
124
		try {
126
		try {