View Javadoc
1   /*
2    * Copyright 2006 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  
17  package org.kuali.ole.fp.businessobject;
18  
19  import java.sql.Date;
20  import java.util.LinkedHashMap;
21  
22  import org.kuali.ole.coa.businessobject.Account;
23  import org.kuali.ole.coa.businessobject.Chart;
24  import org.kuali.ole.sys.OLEPropertyConstants;
25  import org.kuali.rice.core.api.util.type.KualiDecimal;
26  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
27  
28  /**
29   * This class is used to represent a sales tax business object.
30   */
31  public class SalesTax extends PersistableBusinessObjectBase {
32  
33      private String documentNumber;
34      private String financialDocumentLineTypeCode;
35      private Integer financialDocumentLineNumber;
36      private String chartOfAccountsCode;
37      private String accountNumber;
38      private KualiDecimal financialDocumentGrossSalesAmount;
39      private KualiDecimal financialDocumentTaxableSalesAmount;
40      private Date financialDocumentSaleDate;
41  
42      private Account account;
43      private Chart chartOfAccounts;
44  
45      /**
46       * Default constructor.
47       */
48      public SalesTax() {
49  
50      }
51  
52      /**
53       * Gets the documentNumber attribute.
54       * 
55       * @return Returns the documentNumber
56       */
57      public String getDocumentNumber() {
58          return documentNumber;
59      }
60  
61      /**
62       * Sets the documentNumber attribute.
63       * 
64       * @param documentNumber The documentNumber to set.
65       */
66      public void setDocumentNumber(String documentNumber) {
67          this.documentNumber = documentNumber;
68      }
69  
70  
71      /**
72       * Gets the financialDocumentLineTypeCode attribute.
73       * 
74       * @return Returns the financialDocumentLineTypeCode
75       */
76      public String getFinancialDocumentLineTypeCode() {
77          return financialDocumentLineTypeCode;
78      }
79  
80      /**
81       * Sets the financialDocumentLineTypeCode attribute.
82       * 
83       * @param financialDocumentLineTypeCode The financialDocumentLineTypeCode to set.
84       */
85      public void setFinancialDocumentLineTypeCode(String financialDocumentLineTypeCode) {
86          this.financialDocumentLineTypeCode = financialDocumentLineTypeCode;
87      }
88  
89  
90      /**
91       * Gets the financialDocumentLineNumber attribute.
92       * 
93       * @return Returns the financialDocumentLineNumber
94       */
95      public Integer getFinancialDocumentLineNumber() {
96          return financialDocumentLineNumber;
97      }
98  
99      /**
100      * Sets the financialDocumentLineNumber attribute.
101      * 
102      * @param financialDocumentLineNumber The financialDocumentLineNumber to set.
103      */
104     public void setFinancialDocumentLineNumber(Integer financialDocumentLineNumber) {
105         this.financialDocumentLineNumber = financialDocumentLineNumber;
106     }
107 
108 
109     /**
110      * Gets the chartOfAccountsCode attribute.
111      * 
112      * @return Returns the chartOfAccountsCode
113      */
114     public String getChartOfAccountsCode() {
115         return chartOfAccountsCode;
116     }
117 
118     /**
119      * Sets the chartOfAccountsCode attribute.
120      * 
121      * @param chartOfAccountsCode The chartOfAccountsCode to set.
122      */
123     public void setChartOfAccountsCode(String chartOfAccountsCode) {
124         this.chartOfAccountsCode = chartOfAccountsCode;
125     }
126 
127 
128     /**
129      * Gets the accountNumber attribute.
130      * 
131      * @return Returns the accountNumber
132      */
133     public String getAccountNumber() {
134         return accountNumber;
135     }
136 
137     /**
138      * Sets the accountNumber attribute.
139      * 
140      * @param accountNumber The accountNumber to set.
141      */
142     public void setAccountNumber(String accountNumber) {
143         this.accountNumber = accountNumber;
144     }
145 
146 
147     /**
148      * Gets the financialDocumentGrossSalesAmount attribute.
149      * 
150      * @return Returns the financialDocumentGrossSalesAmount
151      */
152     public KualiDecimal getFinancialDocumentGrossSalesAmount() {
153         return financialDocumentGrossSalesAmount;
154     }
155 
156     /**
157      * Sets the financialDocumentGrossSalesAmount attribute.
158      * 
159      * @param financialDocumentGrossSalesAmount The financialDocumentGrossSalesAmount to set.
160      */
161     public void setFinancialDocumentGrossSalesAmount(KualiDecimal financialDocumentGrossSalesAmount) {
162         this.financialDocumentGrossSalesAmount = financialDocumentGrossSalesAmount;
163     }
164 
165 
166     /**
167      * Gets the financialDocumentTaxableSalesAmount attribute.
168      * 
169      * @return Returns the financialDocumentTaxableSalesAmount
170      */
171     public KualiDecimal getFinancialDocumentTaxableSalesAmount() {
172         return financialDocumentTaxableSalesAmount;
173     }
174 
175     /**
176      * Sets the financialDocumentTaxableSalesAmount attribute.
177      * 
178      * @param financialDocumentTaxableSalesAmount The financialDocumentTaxableSalesAmount to set.
179      */
180     public void setFinancialDocumentTaxableSalesAmount(KualiDecimal financialDocumentTaxableSalesAmount) {
181         this.financialDocumentTaxableSalesAmount = financialDocumentTaxableSalesAmount;
182     }
183 
184 
185     /**
186      * Gets the financialDocumentSaleDate attribute.
187      * 
188      * @return Returns the financialDocumentSaleDate
189      */
190     public Date getFinancialDocumentSaleDate() {
191         return financialDocumentSaleDate;
192     }
193 
194     /**
195      * Sets the financialDocumentSaleDate attribute.
196      * 
197      * @param financialDocumentSaleDate The financialDocumentSaleDate to set.
198      */
199     public void setFinancialDocumentSaleDate(Date financialDocumentSaleDate) {
200         this.financialDocumentSaleDate = financialDocumentSaleDate;
201     }
202 
203 
204     /**
205      * Gets the account attribute.
206      * 
207      * @return Returns the account
208      */
209     public Account getAccount() {
210         return account;
211     }
212 
213     /**
214      * Sets the account attribute.
215      * 
216      * @param account The account to set.
217      * @deprecated
218      */
219     public void setAccount(Account account) {
220         this.account = account;
221     }
222 
223     /**
224      * Gets the chartOfAccounts attribute.
225      * 
226      * @return Returns the chartOfAccounts
227      */
228     public Chart getChartOfAccounts() {
229         return chartOfAccounts;
230     }
231 
232     /**
233      * Sets the chartOfAccounts attribute.
234      * 
235      * @param chartOfAccounts The chartOfAccounts to set.
236      * @deprecated
237      */
238     public void setChartOfAccounts(Chart chartOfAccounts) {
239         this.chartOfAccounts = chartOfAccounts;
240     }
241 
242     /**
243      * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
244      */
245     protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
246         LinkedHashMap m = new LinkedHashMap();
247         m.put(OLEPropertyConstants.DOCUMENT_NUMBER, this.documentNumber);
248         m.put("financialDocumentLineTypeCode", this.financialDocumentLineTypeCode);
249         if (this.financialDocumentLineNumber != null) {
250             m.put("financialDocumentLineNumber", this.financialDocumentLineNumber.toString());
251         }
252         return m;
253     }
254 }