001    /*
002     * Copyright 2011 The Kuali Foundation.
003     * 
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     * 
008     * http://www.opensource.org/licenses/ecl2.php
009     * 
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.kuali.kfs.sys.businessobject;
017    
018    import java.math.BigDecimal;
019    import java.util.LinkedHashMap;
020    
021    import org.kuali.rice.kns.bo.TransientBusinessObjectBase;
022    import org.kuali.rice.kns.util.KualiDecimal;
023    
024    public class TaxDetail extends TransientBusinessObjectBase {
025    
026        private String rateCode; //(e.g., state code or district code)
027        private String rateName; //(e.g., state name or tax district name)
028        private BigDecimal taxRate; //(a rate between 0 and 1)
029        private String typeCode; //type code based on tax region type code (POST, ST, CNTY)
030        private KualiDecimal taxAmount;
031        private String chartOfAccountsCode;
032        private String accountNumber;
033        private String financialObjectCode;
034    
035        public TaxDetail() {
036            taxRate = BigDecimal.ZERO;
037            taxAmount = KualiDecimal.ZERO;
038        }
039        
040        public String getAccountNumber() {
041            return accountNumber;
042        }
043    
044        public void setAccountNumber(String accountNumber) {
045            this.accountNumber = accountNumber;
046        }
047    
048        public String getChartOfAccountsCode() {
049            return chartOfAccountsCode;
050        }
051    
052        public void setChartOfAccountsCode(String chartOfAccountsCode) {
053            this.chartOfAccountsCode = chartOfAccountsCode;
054        }
055    
056        public String getFinancialObjectCode() {
057            return financialObjectCode;
058        }
059    
060        public void setFinancialObjectCode(String financialObjectCode) {
061            this.financialObjectCode = financialObjectCode;
062        }
063    
064        public String getRateCode() {
065            return rateCode;
066        }
067    
068        public void setRateCode(String rateCode) {
069            this.rateCode = rateCode;
070        }
071    
072        public String getRateName() {
073            return rateName;
074        }
075    
076        public void setRateName(String rateName) {
077            this.rateName = rateName;
078        }
079    
080        public BigDecimal getTaxRate() {
081            return taxRate;
082        }
083    
084        public void setTaxRate(BigDecimal taxRate) {
085            this.taxRate = taxRate;
086        }
087    
088        public KualiDecimal getTaxAmount() {
089            return taxAmount;
090        }
091    
092        public void setTaxAmount(KualiDecimal taxAmount) {
093            this.taxAmount = taxAmount;
094        }
095        
096        public String getTypeCode() {
097            return typeCode;
098        }
099    
100        public void setTypeCode(String typeCode) {
101            this.typeCode = typeCode;
102        }    
103    
104        @Override
105        protected LinkedHashMap toStringMapper() {
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    }