View Javadoc
1   /*
2    * Copyright 2008 The Kuali Foundation
3    * 
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    * http://www.opensource.org/licenses/ecl2.php
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.ole.sys.businessobject;
17  
18  import java.math.BigDecimal;
19  import java.util.LinkedHashMap;
20  
21  import org.kuali.rice.core.api.util.type.KualiDecimal;
22  import org.kuali.rice.krad.bo.TransientBusinessObjectBase;
23  
24  public class TaxDetail extends TransientBusinessObjectBase {
25  
26      private String rateCode; //(e.g., state code or district code)
27      private String rateName; //(e.g., state name or tax district name)
28      private BigDecimal taxRate; //(a rate between 0 and 1)
29      private String typeCode; //type code based on tax region type code (POST, ST, CNTY)
30      private KualiDecimal taxAmount;
31      private String chartOfAccountsCode;
32      private String accountNumber;
33      private String financialObjectCode;
34  
35      public TaxDetail() {
36          taxRate = BigDecimal.ZERO;
37          taxAmount = KualiDecimal.ZERO;
38      }
39      
40      public String getAccountNumber() {
41          return accountNumber;
42      }
43  
44      public void setAccountNumber(String accountNumber) {
45          this.accountNumber = accountNumber;
46      }
47  
48      public String getChartOfAccountsCode() {
49          return chartOfAccountsCode;
50      }
51  
52      public void setChartOfAccountsCode(String chartOfAccountsCode) {
53          this.chartOfAccountsCode = chartOfAccountsCode;
54      }
55  
56      public String getFinancialObjectCode() {
57          return financialObjectCode;
58      }
59  
60      public void setFinancialObjectCode(String financialObjectCode) {
61          this.financialObjectCode = financialObjectCode;
62      }
63  
64      public String getRateCode() {
65          return rateCode;
66      }
67  
68      public void setRateCode(String rateCode) {
69          this.rateCode = rateCode;
70      }
71  
72      public String getRateName() {
73          return rateName;
74      }
75  
76      public void setRateName(String rateName) {
77          this.rateName = rateName;
78      }
79  
80      public BigDecimal getTaxRate() {
81          return taxRate;
82      }
83  
84      public void setTaxRate(BigDecimal taxRate) {
85          this.taxRate = taxRate;
86      }
87  
88      public KualiDecimal getTaxAmount() {
89          return taxAmount;
90      }
91  
92      public void setTaxAmount(KualiDecimal taxAmount) {
93          this.taxAmount = taxAmount;
94      }
95      
96      public String getTypeCode() {
97          return typeCode;
98      }
99  
100     public void setTypeCode(String typeCode) {
101         this.typeCode = typeCode;
102     }    
103 
104     
105     protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
106         // TODO Auto-generated method stub
107         return null;
108     }
109 
110     public String toString() {
111         return typeCode + "-" + rateCode + "-" + rateName + " " + taxRate.toString() + ":" + taxAmount.toString();
112     }
113     
114 }