Subversion Repositories SmartDukaan

Rev

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

Rev 26655 Rev 28307
Line 208... Line 208...
208
 
208
 
209
		List<File> attachments = this.savePolicyDocs(insurancePolicy.getPolicyNumber(), byteArrayOutputStream, deviceImg, deviceInvoiceImg);
209
		List<File> attachments = this.savePolicyDocs(insurancePolicy.getPolicyNumber(), byteArrayOutputStream, deviceImg, deviceInvoiceImg);
210
		String messageText = MessageFormat.format(
210
		String messageText = MessageFormat.format(
211
				"Dear {0}, Thank you for purchasing Damage Protection Plan. Your Policy number is {1}",
211
				"Dear {0}, Thank you for purchasing Damage Protection Plan. Your Policy number is {1}",
212
				insurancePolicy.getCustomerFirstName(), insurancePolicy.getPolicyNumber());
212
				insurancePolicy.getCustomerFirstName(), insurancePolicy.getPolicyNumber());
213
		otpProcessor.sendSms(messageText, insurancePolicy.getCustomerMobileNumber());
213
		otpProcessor.sendSms("", messageText, insurancePolicy.getCustomerMobileNumber());
214
		messageText += "\n Please find your Invoice and Documents submitted by you.";
214
		messageText += "\n Please find your Invoice and Documents submitted by you.";
215
		String subject = "Your Gadget Cop damage Protection purchase is successful";
215
		String subject = "Your Gadget Cop damage Protection purchase is successful";
216
		this.sendMailWithAttachments(insuranceModel.getCustomerEmailId() , subject, messageText, attachments);
216
		this.sendMailWithAttachments(insuranceModel.getCustomerEmailId() , subject, messageText, attachments);
217
 
217
 
218
		float taxableInsuranceMargin = (insurancePolicy.getSaleAmount() - insurancePolicy.getPurchaseAmount()) / (1 + ProfitMandiConstants.INSURANCE_TAX_RATE / 100);
218
		float taxableInsuranceMargin = (insurancePolicy.getSaleAmount() - insurancePolicy.getPurchaseAmount()) / (1 + ProfitMandiConstants.INSURANCE_TAX_RATE / 100);