Subversion Repositories SmartDukaan

Rev

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

Rev 22999 Rev 23000
Line 210... Line 210...
210
		float taxableInsuranceMargin = (insurancePolicy.getSaleAmount() - insurancePolicy.getPurchaseAmount()) / (1 + ProfitMandiConstants.INSURANCE_TAX_RATE / 100);
210
		float taxableInsuranceMargin = (insurancePolicy.getSaleAmount() - insurancePolicy.getPurchaseAmount()) / (1 + ProfitMandiConstants.INSURANCE_TAX_RATE / 100);
211
		walletService.addAmountToWallet(uc.getUserId(), insurancePolicy.getId(), WalletReferenceType.CASHBACK, "Cashback against insurance policy", 
211
		walletService.addAmountToWallet(uc.getUserId(), insurancePolicy.getId(), WalletReferenceType.CASHBACK, "Cashback against insurance policy", 
212
				taxableInsuranceMargin);
212
				taxableInsuranceMargin);
213
		LOGGER.info("requested url : " + request.getRequestURL().toString());
213
		LOGGER.info("requested url : " + request.getRequestURL().toString());
214
		JSONObject jsonObject = new JSONObject();
214
		JSONObject jsonObject = new JSONObject();
215
		jsonObject.append("policyNumber", insurancePolicy.getPolicyNumber());
215
		jsonObject.put("policyNumber", insurancePolicy.getPolicyNumber());
-
 
216
		jsonObject.put("premiumCharged", insurancePolicy.getSaleAmount());
216
		return responseSender.ok(jsonObject.toString());
217
		return responseSender.ok(jsonObject.toString());
217
	}
218
	}
218
	
219
	
219
	private void sendMailWithAttachments(String email, String subject, String body, List<File> attachments) throws Exception {
220
	private void sendMailWithAttachments(String email, String subject, String body, List<File> attachments) throws Exception {
220
 
221