1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.ole.gl.businessobject;
17
18 import java.util.LinkedHashMap;
19
20 import org.kuali.ole.coa.businessobject.Account;
21 import org.kuali.ole.sys.businessobject.SystemOptions;
22 import org.kuali.rice.core.api.util.type.KualiDecimal;
23 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
24
25
26
27
28
29
30 public class ExpenditureTransaction extends PersistableBusinessObjectBase {
31 static final long serialVersionUID = 5296540728313789670L;
32
33 private final static String UNIVERISITY_FISCAL_YEAR = "universityFiscalYear";
34 private final static String CHART_OF_ACCOUNTS_CODE = "chartOfAccountsCode";
35 private final static String ACCOUNT_NUMBER = "accountNumber";
36 private final static String SUB_ACCOUNT_NUMBER = "subAccountNumber";
37 private final static String OBJECT_CODE = "objectCode";
38 private final static String BALANCE_TYPE_CODE = "balanceTypeCode";
39 private final static String OBJECT_TYPE_CODE = "objectTypeCode";
40 private final static String UNIVERSITY_FISCAL_ACCOUNTING_PERIOD = "universityFiscalAccountingPeriod";
41 private final static String SUB_OBJECT_CODE = "subObjectCode";
42 private final static String PROJECT_CODE = "projectCode";
43 private final static String ORGANIZATION_REFERENCE_ID = "organizationReferenceId";
44
45 private Integer universityFiscalYear;
46 private String chartOfAccountsCode;
47 private String accountNumber;
48 private String subAccountNumber;
49 private String objectCode;
50 private String subObjectCode;
51 private String balanceTypeCode;
52 private String objectTypeCode;
53 private String universityFiscalAccountingPeriod;
54 private String projectCode;
55 private String organizationReferenceId;
56 private KualiDecimal accountObjectDirectCostAmount;
57
58 private Account account;
59 private SystemOptions option;
60
61
62
63
64 public ExpenditureTransaction() {
65 super();
66 }
67
68 public ExpenditureTransaction(Transaction t) {
69 universityFiscalYear = t.getUniversityFiscalYear();
70 chartOfAccountsCode = t.getChartOfAccountsCode();
71 accountNumber = t.getAccountNumber();
72 subAccountNumber = t.getSubAccountNumber();
73 objectCode = t.getFinancialObjectCode();
74 subObjectCode = t.getFinancialSubObjectCode();
75 balanceTypeCode = t.getFinancialBalanceTypeCode();
76 objectTypeCode = t.getFinancialObjectTypeCode();
77 universityFiscalAccountingPeriod = t.getUniversityFiscalPeriodCode();
78 projectCode = t.getProjectCode();
79 organizationReferenceId = t.getOrganizationReferenceId();
80 accountObjectDirectCostAmount = new KualiDecimal(KualiDecimal.ZERO.toString());
81 }
82
83 protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
84 LinkedHashMap map = new LinkedHashMap();
85 map.put(UNIVERISITY_FISCAL_YEAR, getUniversityFiscalYear());
86 map.put(CHART_OF_ACCOUNTS_CODE, getChartOfAccountsCode());
87 map.put(ACCOUNT_NUMBER, getAccountNumber());
88 map.put(SUB_ACCOUNT_NUMBER, getSubAccountNumber());
89 map.put(OBJECT_CODE, getObjectCode());
90 map.put(SUB_OBJECT_CODE, getSubObjectCode());
91 map.put(BALANCE_TYPE_CODE, getBalanceTypeCode());
92 map.put(OBJECT_TYPE_CODE, getObjectTypeCode());
93 map.put(UNIVERSITY_FISCAL_ACCOUNTING_PERIOD, getUniversityFiscalAccountingPeriod());
94 map.put(PROJECT_CODE, getProjectCode());
95 map.put(ORGANIZATION_REFERENCE_ID, getOrganizationReferenceId());
96 return map;
97 }
98
99 public SystemOptions getOption() {
100 return option;
101 }
102
103 public void setOption(SystemOptions option) {
104 this.option = option;
105 }
106
107 public Account getAccount() {
108 return account;
109 }
110
111 public void setAccount(Account a) {
112 account = a;
113 }
114
115 public String getAccountNumber() {
116 return accountNumber;
117 }
118
119 public void setAccountNumber(String accountNumber) {
120 this.accountNumber = accountNumber;
121 }
122
123 public KualiDecimal getAccountObjectDirectCostAmount() {
124 return accountObjectDirectCostAmount;
125 }
126
127 public void setAccountObjectDirectCostAmount(KualiDecimal accountObjectDirectCostAmount) {
128 this.accountObjectDirectCostAmount = accountObjectDirectCostAmount;
129 }
130
131 public String getBalanceTypeCode() {
132 return balanceTypeCode;
133 }
134
135 public void setBalanceTypeCode(String balanceTypeCode) {
136 this.balanceTypeCode = balanceTypeCode;
137 }
138
139 public String getChartOfAccountsCode() {
140 return chartOfAccountsCode;
141 }
142
143 public void setChartOfAccountsCode(String chartOfAccountsCode) {
144 this.chartOfAccountsCode = chartOfAccountsCode;
145 }
146
147 public String getObjectCode() {
148 return objectCode;
149 }
150
151 public void setObjectCode(String objectCode) {
152 this.objectCode = objectCode;
153 }
154
155 public String getObjectTypeCode() {
156 return objectTypeCode;
157 }
158
159 public void setObjectTypeCode(String objectTypeCode) {
160 this.objectTypeCode = objectTypeCode;
161 }
162
163 public String getOrganizationReferenceId() {
164 return organizationReferenceId;
165 }
166
167 public void setOrganizationReferenceId(String organizationReferenceId) {
168 this.organizationReferenceId = organizationReferenceId;
169 }
170
171 public String getProjectCode() {
172 return projectCode;
173 }
174
175 public void setProjectCode(String projectCode) {
176 this.projectCode = projectCode;
177 }
178
179 public String getSubAccountNumber() {
180 return subAccountNumber;
181 }
182
183 public void setSubAccountNumber(String subAccountNumber) {
184 this.subAccountNumber = subAccountNumber;
185 }
186
187 public String getSubObjectCode() {
188 return subObjectCode;
189 }
190
191 public void setSubObjectCode(String subObjectCode) {
192 this.subObjectCode = subObjectCode;
193 }
194
195 public String getUniversityFiscalAccountingPeriod() {
196 return universityFiscalAccountingPeriod;
197 }
198
199 public void setUniversityFiscalAccountingPeriod(String universityFiscalAccountingPeriod) {
200 this.universityFiscalAccountingPeriod = universityFiscalAccountingPeriod;
201 }
202
203 public Integer getUniversityFiscalYear() {
204 return universityFiscalYear;
205 }
206
207 public void setUniversityFiscalYear(Integer universityFiscalYear) {
208 this.universityFiscalYear = universityFiscalYear;
209 }
210 }