1 package org.kuali.ole.deliver.service;
2
3 import org.kuali.ole.OLEConstants;
4 import org.kuali.ole.deliver.bo.*;
5 import org.kuali.rice.core.api.util.type.KualiDecimal;
6 import org.kuali.rice.core.web.format.CurrencyFormatter;
7
8 import java.math.BigDecimal;
9 import java.sql.Date;
10 import java.util.*;
11
12
13
14
15 public class ReplacementBillNoticeEmailContentFormattter extends NoticeMailContentFormatter {
16 @Override
17 protected String generateCustomHTML(OleLoanDocument oleLoanDocument) {
18 StringBuffer customHTMLForReplacementBill=new StringBuffer();
19
20 customHTMLForReplacementBill.append("<HTML>");
21 customHTMLForReplacementBill.append("<TITLE><CENTER><h2>" + OLEConstants.REPLACEMENT_FEE + " Bill </h2></CENTER></TITLE>");
22 customHTMLForReplacementBill.append("<HEAD><TR><TD><CENTER><h2>" + OLEConstants.REPLACEMENT_FEE + "<h2></CENTER></TD></TR></HEAD>");
23 customHTMLForReplacementBill.append("<BODY>");
24 customHTMLForReplacementBill.append("<TABLE width=\"100%\">");
25
26 customHTMLForReplacementBill.append("<TR><TD>Bill Number</TD><TD>:</TD><TD>" + oleLoanDocument.getRepaymentFeePatronBillId() + "</TD></TR>");
27 customHTMLForReplacementBill.append("<TR><TD>Fee Type</TD><TD>:</TD><TD>" + OLEConstants.REPLACEMENT_FEE + "</TD></TR>");
28 customHTMLForReplacementBill.append("<TR><TD>Fee Amount</TD><TD>:</TD><TD>" + CurrencyFormatter
29 .getSymbolForCurrencyPattern() + oleLoanDocument.getReplacementBill() + "</TD></TR>");
30
31 customHTMLForReplacementBill.append("</TABLE>");
32 customHTMLForReplacementBill.append("</BODY>");
33 customHTMLForReplacementBill.append("</HTML>");
34
35 return customHTMLForReplacementBill.toString();
36 }
37
38 }