001: /*
002: * Copyright 2005-2007 The Kuali Foundation.
003: *
004: * Licensed under the Educational Community License, Version 1.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/ecl1.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:
017: package org.kuali.module.financial.bo;
018:
019: import java.util.LinkedHashMap;
020:
021: import org.kuali.core.bo.PersistableBusinessObjectBase;
022: import org.kuali.core.util.KualiDecimal;
023: import org.kuali.kfs.KFSPropertyConstants;
024: import org.kuali.module.financial.lookup.keyvalues.TaxIncomeClassValuesFinder;
025:
026: /**
027: * This class is used to represent a disbursement voucher non-resident alien tax.
028: */
029: public class DisbursementVoucherNonResidentAlienTax extends
030: PersistableBusinessObjectBase {
031:
032: private String documentNumber;
033: private KualiDecimal federalIncomeTaxPercent;
034: private KualiDecimal stateIncomeTaxPercent;
035: private String incomeClassCode;
036: private String postalCountryCode;
037: private boolean incomeTaxTreatyExemptCode;
038: private boolean foreignSourceIncomeCode;
039: private boolean incomeTaxGrossUpCode;
040: private String referenceFinancialSystemOriginationCode;
041: private String referenceFinancialDocumentNumber;
042: private String financialDocumentAccountingLineText;
043:
044: private TaxIncomeClassCode incomeClass;
045:
046: /**
047: * Default no-arg constructor.
048: */
049: public DisbursementVoucherNonResidentAlienTax() {
050:
051: }
052:
053: /**
054: * Gets the documentNumber attribute.
055: *
056: * @return Returns the documentNumber
057: */
058: public String getDocumentNumber() {
059: return documentNumber;
060: }
061:
062: /**
063: * Sets the documentNumber attribute.
064: *
065: * @param documentNumber The documentNumber to set.
066: */
067: public void setDocumentNumber(String documentNumber) {
068: this .documentNumber = documentNumber;
069: }
070:
071: /**
072: * Gets the federalIncomeTaxPercent attribute.
073: *
074: * @return Returns the federalIncomeTaxPercent
075: */
076: public KualiDecimal getFederalIncomeTaxPercent() {
077: return federalIncomeTaxPercent;
078: }
079:
080: /**
081: * Sets the federalIncomeTaxPercent attribute.
082: *
083: * @param federalIncomeTaxPercent The federalIncomeTaxPercent to set.
084: */
085: public void setFederalIncomeTaxPercent(
086: KualiDecimal federalIncomeTaxPercent) {
087: this .federalIncomeTaxPercent = federalIncomeTaxPercent;
088: }
089:
090: /**
091: * Gets the stateIncomeTaxPercent attribute.
092: *
093: * @return Returns the stateIncomeTaxPercent
094: */
095: public KualiDecimal getStateIncomeTaxPercent() {
096: return stateIncomeTaxPercent;
097: }
098:
099: /**
100: * Sets the stateIncomeTaxPercent attribute.
101: *
102: * @param stateIncomeTaxPercent The stateIncomeTaxPercent to set.
103: */
104: public void setStateIncomeTaxPercent(
105: KualiDecimal stateIncomeTaxPercent) {
106: this .stateIncomeTaxPercent = stateIncomeTaxPercent;
107: }
108:
109: /**
110: * Gets the incomeClassCode attribute.
111: *
112: * @return Returns the incomeClassCode
113: */
114: public String getIncomeClassCode() {
115: return incomeClassCode;
116: }
117:
118: /**
119: * Sets the incomeClassCode attribute.
120: *
121: * @param incomeClassCode The incomeClassCode to set.
122: */
123: public void setIncomeClassCode(String incomeClassCode) {
124: this .incomeClassCode = incomeClassCode;
125: }
126:
127: /**
128: * Gets the postalCountryCode attribute.
129: *
130: * @return Returns the postalCountryCode
131: */
132: public String getPostalCountryCode() {
133: return postalCountryCode;
134: }
135:
136: /**
137: * Sets the postalCountryCode attribute.
138: *
139: * @param postalCountryCode The postalCountryCode to set.
140: */
141: public void setPostalCountryCode(String postalCountryCode) {
142: this .postalCountryCode = postalCountryCode;
143: }
144:
145: /**
146: * Gets the incomeTaxTreatyExemptCode attribute.
147: *
148: * @return Returns the incomeTaxTreatyExemptCode
149: */
150: public boolean isIncomeTaxTreatyExemptCode() {
151: return incomeTaxTreatyExemptCode;
152: }
153:
154: /**
155: * Sets the incomeTaxTreatyExemptCode attribute.
156: *
157: * @param incomeTaxTreatyExemptCode The incomeTaxTreatyExemptCode to set.
158: */
159: public void setIncomeTaxTreatyExemptCode(
160: boolean incomeTaxTreatyExemptCode) {
161: this .incomeTaxTreatyExemptCode = incomeTaxTreatyExemptCode;
162: }
163:
164: /**
165: * Gets the foreignSourceIncomeCode attribute.
166: *
167: * @return Returns the foreignSourceIncomeCode
168: */
169: public boolean isForeignSourceIncomeCode() {
170: return foreignSourceIncomeCode;
171: }
172:
173: /**
174: * Sets the foreignSourceIncomeCode attribute.
175: *
176: * @param foreignSourceIncomeCode The foreignSourceIncomeCode to set.
177: */
178: public void setForeignSourceIncomeCode(
179: boolean foreignSourceIncomeCode) {
180: this .foreignSourceIncomeCode = foreignSourceIncomeCode;
181: }
182:
183: /**
184: * Gets the incomeTaxGrossUpCode attribute.
185: *
186: * @return Returns the incomeTaxGrossUpCode
187: */
188: public boolean isIncomeTaxGrossUpCode() {
189: return incomeTaxGrossUpCode;
190: }
191:
192: /**
193: * Sets the incomeTaxGrossUpCode attribute.
194: *
195: * @param incomeTaxGrossUpCode The incomeTaxGrossUpCode to set.
196: */
197: public void setIncomeTaxGrossUpCode(boolean incomeTaxGrossUpCode) {
198: this .incomeTaxGrossUpCode = incomeTaxGrossUpCode;
199: }
200:
201: /**
202: * Gets the referenceFinancialSystemOriginationCode attribute.
203: *
204: * @return Returns the referenceFinancialSystemOriginationCode
205: */
206: public String getReferenceFinancialSystemOriginationCode() {
207: return referenceFinancialSystemOriginationCode;
208: }
209:
210: /**
211: * Sets the referenceFinancialSystemOriginationCode attribute.
212: *
213: * @param referenceFinancialSystemOriginationCode The referenceFinancialSystemOriginationCode to set.
214: */
215: public void setReferenceFinancialSystemOriginationCode(
216: String referenceFinancialSystemOriginationCode) {
217: this .referenceFinancialSystemOriginationCode = referenceFinancialSystemOriginationCode;
218: }
219:
220: /**
221: * Gets the referenceFinancialDocumentNumber attribute.
222: *
223: * @return Returns the referenceFinancialDocumentNumber
224: */
225: public String getReferenceFinancialDocumentNumber() {
226: return referenceFinancialDocumentNumber;
227: }
228:
229: /**
230: * Sets the referenceFinancialDocumentNumber attribute.
231: *
232: * @param referenceFinancialDocumentNumber The referenceFinancialDocumentNumber to set.
233: */
234: public void setReferenceFinancialDocumentNumber(
235: String referenceFinancialDocumentNumber) {
236: this .referenceFinancialDocumentNumber = referenceFinancialDocumentNumber;
237: }
238:
239: /**
240: * @return Returns the financialDocumentAccountingLineText.
241: */
242: public String getFinancialDocumentAccountingLineText() {
243: return financialDocumentAccountingLineText;
244: }
245:
246: /**
247: * @param financialDocumentAccountingLineText The financialDocumentAccountingLineText to set.
248: */
249: public void setFinancialDocumentAccountingLineText(
250: String financialDocumentAccountingLineText) {
251: this .financialDocumentAccountingLineText = financialDocumentAccountingLineText;
252: }
253:
254: /**
255: * Gets the incomeClass attribute.
256: *
257: * @return Returns the incomeClass
258: */
259: public TaxIncomeClassCode getIncomeClass() {
260: return incomeClass;
261: }
262:
263: /**
264: * Sets the incomeClass attribute.
265: *
266: * @param incomeClass The incomeClass to set.
267: * @deprecated
268: */
269: public void setIncomeClass(TaxIncomeClassCode incomeClass) {
270: this .incomeClass = incomeClass;
271: }
272:
273: /**
274: * Return select read-only label for income class
275: *
276: * @return
277: */
278: public String getIncomeClassName() {
279: return new TaxIncomeClassValuesFinder()
280: .getKeyLabel(incomeClassCode);
281: }
282:
283: /**
284: * Sets the incomeClassName attribute.
285: *
286: * @param name The incomeClass name to set.
287: */
288: public void setincomeClassName(String name) {
289: }
290:
291: /**
292: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
293: */
294: protected LinkedHashMap toStringMapper() {
295: LinkedHashMap m = new LinkedHashMap();
296: m
297: .put(KFSPropertyConstants.DOCUMENT_NUMBER,
298: this.documentNumber);
299: return m;
300: }
301:
302: }
|