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 017 package org.kuali.kfs.module.ld.businessobject; 018 019 import java.sql.Date; 020 import java.util.LinkedHashMap; 021 022 import org.kuali.kfs.gl.businessobject.OriginEntryFull; 023 import org.kuali.kfs.sys.KFSPropertyConstants; 024 import org.kuali.rice.kns.util.KualiDecimal; 025 026 /** 027 * Labor business object for Labor General ledger Entry 028 */ 029 030 // Temporarily changed to be extended from OriginEntryInformation. 031 public class LaborGeneralLedgerEntry extends OriginEntryFull { 032 033 private Integer universityFiscalYear; 034 private String chartOfAccountsCode; 035 private String accountNumber; 036 private String subAccountNumber; 037 private String financialObjectCode; 038 private String financialSubObjectCode; 039 private String financialBalanceTypeCode; 040 private String financialObjectTypeCode; 041 private String universityFiscalPeriodCode; 042 private String financialDocumentTypeCode; 043 private String financialSystemOriginationCode; 044 private String documentNumber; 045 private Integer transactionLedgerEntrySequenceNumber; 046 private String transactionLedgerEntryDescription; 047 private KualiDecimal transactionLedgerEntryAmount; 048 private String transactionDebitCreditCode; 049 private Date transactionDate; 050 private String organizationDocumentNumber; 051 private String projectCode; 052 private String organizationReferenceId; 053 private String referenceFinancialDocumentTypeCode; 054 private String referenceFinancialSystemOriginationCode; 055 private String referenceFinancialDocumentNumber; 056 private Date financialDocumentReversalDate; 057 private String transactionEncumbranceUpdateCode; 058 059 /** 060 * Default constructor. 061 */ 062 public LaborGeneralLedgerEntry() { 063 064 } 065 066 /** 067 * Gets the universityFiscalYear. 068 * 069 * @return Returns the universityFiscalYear 070 */ 071 public Integer getUniversityFiscalYear() { 072 return universityFiscalYear; 073 } 074 075 /** 076 * Sets the universityFiscalYear. 077 * 078 * @param universityFiscalYear The universityFiscalYear to set. 079 */ 080 public void setUniversityFiscalYear(Integer universityFiscalYear) { 081 this.universityFiscalYear = universityFiscalYear; 082 } 083 084 /** 085 * Gets the chartOfAccountsCode. 086 * 087 * @return Returns the chartOfAccountsCode 088 */ 089 public String getChartOfAccountsCode() { 090 return chartOfAccountsCode; 091 } 092 093 /** 094 * Sets the chartOfAccountsCode. 095 * 096 * @param chartOfAccountsCode The chartOfAccountsCode to set. 097 */ 098 public void setChartOfAccountsCode(String chartOfAccountsCode) { 099 this.chartOfAccountsCode = chartOfAccountsCode; 100 } 101 102 /** 103 * Gets the accountNumber. 104 * 105 * @return Returns the accountNumber 106 */ 107 public String getAccountNumber() { 108 return accountNumber; 109 } 110 111 /** 112 * Sets the accountNumber. 113 * 114 * @param accountNumber The accountNumber to set. 115 */ 116 public void setAccountNumber(String accountNumber) { 117 this.accountNumber = accountNumber; 118 } 119 120 /** 121 * Gets the subAccountNumber. 122 * 123 * @return Returns the subAccountNumber 124 */ 125 public String getSubAccountNumber() { 126 return subAccountNumber; 127 } 128 129 /** 130 * Sets the subAccountNumber. 131 * 132 * @param subAccountNumber The subAccountNumber to set. 133 */ 134 public void setSubAccountNumber(String subAccountNumber) { 135 this.subAccountNumber = subAccountNumber; 136 } 137 138 /** 139 * Gets the financialObjectCode. 140 * 141 * @return Returns the financialObjectCode 142 */ 143 public String getFinancialObjectCode() { 144 return financialObjectCode; 145 } 146 147 /** 148 * Sets the financialObjectCode. 149 * 150 * @param financialObjectCode The financialObjectCode to set. 151 */ 152 public void setFinancialObjectCode(String financialObjectCode) { 153 this.financialObjectCode = financialObjectCode; 154 } 155 156 /** 157 * Gets the financialSubObjectCode. 158 * 159 * @return Returns the financialSubObjectCode 160 */ 161 public String getFinancialSubObjectCode() { 162 return financialSubObjectCode; 163 } 164 165 /** 166 * Sets the financialSubObjectCode. 167 * 168 * @param financialSubObjectCode The financialSubObjectCode to set. 169 */ 170 public void setFinancialSubObjectCode(String financialSubObjectCode) { 171 this.financialSubObjectCode = financialSubObjectCode; 172 } 173 174 /** 175 * Gets the financialBalanceTypeCode. 176 * 177 * @return Returns the financialBalanceTypeCode 178 */ 179 public String getFinancialBalanceTypeCode() { 180 return financialBalanceTypeCode; 181 } 182 183 /** 184 * Sets the financialBalanceTypeCode. 185 * 186 * @param financialBalanceTypeCode The financialBalanceTypeCode to set. 187 */ 188 public void setFinancialBalanceTypeCode(String financialBalanceTypeCode) { 189 this.financialBalanceTypeCode = financialBalanceTypeCode; 190 } 191 192 /** 193 * Gets the financialObjectTypeCode. 194 * 195 * @return Returns the financialObjectTypeCode 196 */ 197 public String getFinancialObjectTypeCode() { 198 return financialObjectTypeCode; 199 } 200 201 /** 202 * Sets the financialObjectTypeCode. 203 * 204 * @param financialObjectTypeCode The financialObjectTypeCode to set. 205 */ 206 public void setFinancialObjectTypeCode(String financialObjectTypeCode) { 207 this.financialObjectTypeCode = financialObjectTypeCode; 208 } 209 210 /** 211 * Gets the universityFiscalPeriodCode. 212 * 213 * @return Returns the universityFiscalPeriodCode 214 */ 215 public String getUniversityFiscalPeriodCode() { 216 return universityFiscalPeriodCode; 217 } 218 219 /** 220 * Sets the universityFiscalPeriodCode. 221 * 222 * @param universityFiscalPeriodCode The universityFiscalPeriodCode to set. 223 */ 224 public void setUniversityFiscalPeriodCode(String universityFiscalPeriodCode) { 225 this.universityFiscalPeriodCode = universityFiscalPeriodCode; 226 } 227 228 /** 229 * Gets the financialDocumentTypeCode. 230 * 231 * @return Returns the financialDocumentTypeCode 232 */ 233 public String getFinancialDocumentTypeCode() { 234 return financialDocumentTypeCode; 235 } 236 237 /** 238 * Sets the financialDocumentTypeCode. 239 * 240 * @param financialDocumentTypeCode The financialDocumentTypeCode to set. 241 */ 242 public void setFinancialDocumentTypeCode(String financialDocumentTypeCode) { 243 this.financialDocumentTypeCode = financialDocumentTypeCode; 244 } 245 246 /** 247 * Gets the financialSystemOriginationCode. 248 * 249 * @return Returns the financialSystemOriginationCode. 250 */ 251 public String getFinancialSystemOriginationCode() { 252 return financialSystemOriginationCode; 253 } 254 255 /** 256 * Sets the financialSystemOriginationCode. 257 * 258 * @param financialSystemOriginationCode The financialSystemOriginationCode to set. 259 */ 260 public void setFinancialSystemOriginationCode(String financialSystemOriginationCode) { 261 this.financialSystemOriginationCode = financialSystemOriginationCode; 262 } 263 264 /** 265 * Gets the documentNumber. 266 * 267 * @return Returns the documentNumber 268 */ 269 public String getDocumentNumber() { 270 return documentNumber; 271 } 272 273 /** 274 * Sets the documentNumber. 275 * 276 * @param documentNumber The documentNumber to set. 277 */ 278 public void setDocumentNumber(String documentNumber) { 279 this.documentNumber = documentNumber; 280 } 281 282 /** 283 * Gets the transactionLedgerEntrySequenceNumber. 284 * 285 * @return Returns the transactionLedgerEntrySequenceNumber 286 */ 287 public Integer getTransactionLedgerEntrySequenceNumber() { 288 return transactionLedgerEntrySequenceNumber; 289 } 290 291 /** 292 * Sets the transactionLedgerEntrySequenceNumber. 293 * 294 * @param transactionLedgerEntrySequenceNumber The transactionLedgerEntrySequenceNumber to set. 295 */ 296 public void setTransactionLedgerEntrySequenceNumber(Integer transactionLedgerEntrySequenceNumber) { 297 this.transactionLedgerEntrySequenceNumber = transactionLedgerEntrySequenceNumber; 298 } 299 300 /** 301 * Gets the transactionLedgerEntryDescription. 302 * 303 * @return Returns the transactionLedgerEntryDescription 304 */ 305 public String getTransactionLedgerEntryDescription() { 306 return transactionLedgerEntryDescription; 307 } 308 309 /** 310 * Sets the transactionLedgerEntryDescription. 311 * 312 * @param transactionLedgerEntryDescription The transactionLedgerEntryDescription to set. 313 */ 314 public void setTransactionLedgerEntryDescription(String transactionLedgerEntryDescription) { 315 this.transactionLedgerEntryDescription = transactionLedgerEntryDescription; 316 } 317 318 /** 319 * Gets the transactionLedgerEntryAmount. 320 * 321 * @return Returns the transactionLedgerEntryAmount 322 */ 323 public KualiDecimal getTransactionLedgerEntryAmount() { 324 return transactionLedgerEntryAmount; 325 } 326 327 /** 328 * Sets the transactionLedgerEntryAmount. 329 * 330 * @param transactionLedgerEntryAmount The transactionLedgerEntryAmount to set. 331 */ 332 public void setTransactionLedgerEntryAmount(KualiDecimal transactionLedgerEntryAmount) { 333 this.transactionLedgerEntryAmount = transactionLedgerEntryAmount; 334 } 335 336 /** 337 * Gets the transactionDebitCreditCode. 338 * 339 * @return Returns the transactionDebitCreditCode 340 */ 341 public String getTransactionDebitCreditCode() { 342 return transactionDebitCreditCode; 343 } 344 345 /** 346 * Sets the transactionDebitCreditCode. 347 * 348 * @param transactionDebitCreditCode The transactionDebitCreditCode to set. 349 */ 350 public void setTransactionDebitCreditCode(String transactionDebitCreditCode) { 351 this.transactionDebitCreditCode = transactionDebitCreditCode; 352 } 353 354 /** 355 * Gets the transactionDate. 356 * 357 * @return Returns the transactionDate 358 */ 359 public Date getTransactionDate() { 360 return transactionDate; 361 } 362 363 /** 364 * Sets the transactionDate. 365 * 366 * @param transactionDate The transactionDate to set. 367 */ 368 public void setTransactionDate(Date transactionDate) { 369 this.transactionDate = transactionDate; 370 } 371 372 /** 373 * Gets the organizationDocumentNumber. 374 * 375 * @return Returns the organizationDocumentNumber 376 */ 377 public String getOrganizationDocumentNumber() { 378 return organizationDocumentNumber; 379 } 380 381 /** 382 * Sets the organizationDocumentNumber. 383 * 384 * @param organizationDocumentNumber The organizationDocumentNumber to set. 385 */ 386 public void setOrganizationDocumentNumber(String organizationDocumentNumber) { 387 this.organizationDocumentNumber = organizationDocumentNumber; 388 } 389 390 /** 391 * Gets the projectCode. 392 * 393 * @return Returns the projectCode 394 */ 395 public String getProjectCode() { 396 return projectCode; 397 } 398 399 /** 400 * Sets the projectCode. 401 * 402 * @param projectCode The projectCode to set. 403 */ 404 public void setProjectCode(String projectCode) { 405 this.projectCode = projectCode; 406 } 407 408 /** 409 * Gets the organizationReferenceId. 410 * 411 * @return Returns the organizationReferenceId 412 */ 413 public String getOrganizationReferenceId() { 414 return organizationReferenceId; 415 } 416 417 /** 418 * Sets the organizationReferenceId. 419 * 420 * @param organizationReferenceId The organizationReferenceId to set. 421 */ 422 public void setOrganizationReferenceId(String organizationReferenceId) { 423 this.organizationReferenceId = organizationReferenceId; 424 } 425 426 /** 427 * Gets the referenceFinancialDocumentTypeCode. 428 * 429 * @return Returns the referenceFinancialDocumentTypeCode 430 */ 431 public String getReferenceFinancialDocumentTypeCode() { 432 return referenceFinancialDocumentTypeCode; 433 } 434 435 /** 436 * Sets the referenceFinancialDocumentTypeCode. 437 * 438 * @param referenceFinancialDocumentTypeCode The referenceFinancialDocumentTypeCode to set. 439 */ 440 public void setReferenceFinancialDocumentTypeCode(String referenceFinancialDocumentTypeCode) { 441 this.referenceFinancialDocumentTypeCode = referenceFinancialDocumentTypeCode; 442 } 443 444 /** 445 * Gets the referenceFinancialSystemOriginationCode. 446 * 447 * @return Returns the referenceFinancialSystemOriginationCode 448 */ 449 public String getReferenceFinancialSystemOriginationCode() { 450 return referenceFinancialSystemOriginationCode; 451 } 452 453 /** 454 * Sets the referenceFinancialSystemOriginationCode. 455 * 456 * @param referenceFinancialSystemOriginationCode The referenceFinancialSystemOriginationCode to set. 457 */ 458 public void setReferenceFinancialSystemOriginationCode(String referenceFinancialSystemOriginationCode) { 459 this.referenceFinancialSystemOriginationCode = referenceFinancialSystemOriginationCode; 460 } 461 462 /** 463 * Gets the referenceFinancialDocumentNumber. 464 * 465 * @return Returns the referenceFinancialDocumentNumber 466 */ 467 public String getReferenceFinancialDocumentNumber() { 468 return referenceFinancialDocumentNumber; 469 } 470 471 /** 472 * Sets the referenceFinancialDocumentNumber. 473 * 474 * @param referenceFinancialDocumentNumber The referenceFinancialDocumentNumber to set. 475 */ 476 public void setReferenceFinancialDocumentNumber(String referenceFinancialDocumentNumber) { 477 this.referenceFinancialDocumentNumber = referenceFinancialDocumentNumber; 478 } 479 480 /** 481 * Gets the financialDocumentReversalDate. 482 * 483 * @return Returns the financialDocumentReversalDate 484 */ 485 public Date getFinancialDocumentReversalDate() { 486 return financialDocumentReversalDate; 487 } 488 489 /** 490 * Sets the financialDocumentReversalDate. 491 * 492 * @param financialDocumentReversalDate The financialDocumentReversalDate to set. 493 */ 494 public void setFinancialDocumentReversalDate(Date financialDocumentReversalDate) { 495 this.financialDocumentReversalDate = financialDocumentReversalDate; 496 } 497 498 /** 499 * Gets the transactionEncumbranceUpdateCode. 500 * 501 * @return Returns the transactionEncumbranceUpdateCode 502 */ 503 public String getTransactionEncumbranceUpdateCode() { 504 return transactionEncumbranceUpdateCode; 505 } 506 507 /** 508 * Sets the transactionEncumbranceUpdateCode. 509 * 510 * @param transactionEncumbranceUpdateCode The transactionEncumbranceUpdateCode to set. 511 */ 512 public void setTransactionEncumbranceUpdateCode(String transactionEncumbranceUpdateCode) { 513 this.transactionEncumbranceUpdateCode = transactionEncumbranceUpdateCode; 514 } 515 516 /** 517 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper() 518 */ 519 protected LinkedHashMap toStringMapper() { 520 LinkedHashMap m = new LinkedHashMap(); 521 if (this.universityFiscalYear != null) { 522 m.put("universityFiscalYear", this.universityFiscalYear.toString()); 523 } 524 m.put("chartOfAccountsCode", this.chartOfAccountsCode); 525 m.put("accountNumber", this.accountNumber); 526 m.put("subAccountNumber", this.subAccountNumber); 527 m.put("financialObjectCode", this.financialObjectCode); 528 m.put("financialSubObjectCode", this.financialSubObjectCode); 529 m.put("financialBalanceTypeCode", this.financialBalanceTypeCode); 530 m.put("financialObjectTypeCode", this.financialObjectTypeCode); 531 m.put("universityFiscalPeriodCode", this.universityFiscalPeriodCode); 532 m.put("financialDocumentTypeCode", this.financialDocumentTypeCode); 533 m.put(KFSPropertyConstants.DOCUMENT_NUMBER, this.documentNumber); 534 if (this.transactionLedgerEntrySequenceNumber != null) { 535 m.put("transactionLedgerEntrySequenceNumber", this.transactionLedgerEntrySequenceNumber.toString()); 536 } 537 538 return m; 539 } 540 }