001: /*
002: * Copyright 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.kfs.bo;
018:
019: import java.io.Serializable;
020: import java.sql.Date;
021: import java.util.LinkedHashMap;
022:
023: import org.kuali.core.bo.DocumentHeader;
024: import org.kuali.core.bo.DocumentType;
025: import org.kuali.core.bo.PersistableBusinessObjectBase;
026: import org.kuali.core.util.KualiDecimal;
027: import org.kuali.kfs.KFSPropertyConstants;
028: import org.kuali.kfs.rules.AccountingDocumentRuleBaseConstants.GENERAL_LEDGER_PENDING_ENTRY_CODE;
029: import org.kuali.module.chart.bo.A21SubAccount;
030: import org.kuali.module.chart.bo.Account;
031: import org.kuali.module.chart.bo.AccountingPeriod;
032: import org.kuali.module.chart.bo.Chart;
033: import org.kuali.module.chart.bo.ObjectCode;
034: import org.kuali.module.chart.bo.ObjectType;
035: import org.kuali.module.chart.bo.ProjectCode;
036: import org.kuali.module.chart.bo.SubAccount;
037: import org.kuali.module.chart.bo.SubObjCd;
038: import org.kuali.module.chart.bo.codes.BalanceTyp;
039: import org.kuali.module.gl.bo.Transaction;
040: import org.kuali.module.gl.bo.TransientBalanceInquiryAttributes;
041:
042: /**
043: * The general ledger pending entry structure holds financial transaction info that will post to the general ledger as an entry.
044: */
045: public class GeneralLedgerPendingEntry extends
046: PersistableBusinessObjectBase implements Transaction,
047: Serializable, Cloneable {
048: private static final long serialVersionUID = 4041748389323105932L;
049: private String financialSystemOriginationCode;
050: private String documentNumber;
051: private Integer transactionLedgerEntrySequenceNumber;
052: private String chartOfAccountsCode;
053: private String accountNumber;
054: private String subAccountNumber;
055: private String financialObjectCode;
056: private String financialSubObjectCode;
057: private String financialBalanceTypeCode;
058: private String financialObjectTypeCode;
059: private Integer universityFiscalYear;
060: private String universityFiscalPeriodCode;
061: private String transactionLedgerEntryDescription;
062: private KualiDecimal transactionLedgerEntryAmount;
063: private String transactionDebitCreditCode;
064: private Date transactionDate;
065: private String financialDocumentTypeCode;
066: private String organizationDocumentNumber;
067: private String projectCode;
068: private String organizationReferenceId;
069: private String referenceFinancialDocumentTypeCode;
070: private String referenceFinancialSystemOriginationCode;
071: private String referenceFinancialDocumentNumber;
072: private Date financialDocumentReversalDate;
073: private String transactionEncumbranceUpdateCode;
074: private String financialDocumentApprovedCode;
075: private String acctSufficientFundsFinObjCd;
076: private boolean transactionEntryOffsetIndicator;
077: private Date transactionEntryProcessedTs;
078:
079: private DocumentType documentType;
080: private DocumentHeader documentHeader;
081:
082: private Options option;
083: private Chart chart;
084: private Account account;
085: private SubAccount subAccount;
086: private ObjectCode financialObject;
087: private SubObjCd financialSubObject;
088: private BalanceTyp balanceType;
089: private ObjectType objectType;
090: private A21SubAccount a21SubAccount;
091: private TransientBalanceInquiryAttributes dummyBusinessObject;
092: private OriginationCode originationCode;
093: private ProjectCode project;
094: private OriginationCode referenceOriginationCode;
095: private DocumentType referenceDocumentType;
096: private AccountingPeriod accountingPeriod;
097:
098: /**
099: * Default no-arg constructor.
100: */
101: public GeneralLedgerPendingEntry() {
102: this .objectType = new ObjectType();
103: this .balanceType = new BalanceTyp();
104: this .dummyBusinessObject = new TransientBalanceInquiryAttributes();
105: this .financialObject = new ObjectCode();
106: }
107:
108: /**
109: * Copy constructor Constructs a GeneralLedgerPendingEntry.java.
110: *
111: * @param original entry to copy
112: */
113: public GeneralLedgerPendingEntry(GeneralLedgerPendingEntry original) {
114: financialSystemOriginationCode = original
115: .getFinancialSystemOriginationCode();
116: documentNumber = original.getDocumentNumber();
117: transactionLedgerEntrySequenceNumber = original
118: .getTransactionLedgerEntrySequenceNumber();
119: chartOfAccountsCode = original.getChartOfAccountsCode();
120: accountNumber = original.getAccountNumber();
121: subAccountNumber = original.getSubAccountNumber();
122: financialObjectCode = original.getFinancialObjectCode();
123: financialSubObjectCode = original.getFinancialSubObjectCode();
124: financialBalanceTypeCode = original
125: .getFinancialBalanceTypeCode();
126: financialObjectTypeCode = original.getFinancialObjectTypeCode();
127: universityFiscalYear = original.getUniversityFiscalYear();
128: universityFiscalPeriodCode = original
129: .getUniversityFiscalPeriodCode();
130: transactionLedgerEntryDescription = original
131: .getTransactionLedgerEntryDescription();
132: transactionLedgerEntryAmount = original
133: .getTransactionLedgerEntryAmount();
134: transactionDebitCreditCode = original
135: .getTransactionDebitCreditCode();
136: transactionDate = original.getTransactionDate();
137: financialDocumentTypeCode = original
138: .getFinancialDocumentTypeCode();
139: organizationDocumentNumber = original
140: .getOrganizationDocumentNumber();
141: projectCode = original.getProjectCode();
142: organizationReferenceId = original.getOrganizationReferenceId();
143: referenceFinancialDocumentTypeCode = original
144: .getReferenceFinancialDocumentTypeCode();
145: referenceFinancialSystemOriginationCode = original
146: .getReferenceFinancialSystemOriginationCode();
147: referenceFinancialDocumentNumber = original
148: .getReferenceFinancialDocumentNumber();
149: financialDocumentReversalDate = original
150: .getFinancialDocumentReversalDate();
151: transactionEncumbranceUpdateCode = original
152: .getTransactionEncumbranceUpdateCode();
153: financialDocumentApprovedCode = original
154: .getFinancialDocumentApprovedCode();
155: acctSufficientFundsFinObjCd = original
156: .getAcctSufficientFundsFinObjCd();
157: transactionEntryOffsetIndicator = original
158: .isTransactionEntryOffsetIndicator();
159: transactionEntryProcessedTs = original
160: .getTransactionEntryProcessedTs();
161: }
162:
163: public DocumentType getReferenceDocumentType() {
164: return referenceDocumentType;
165: }
166:
167: public void setReferenceDocumentType(
168: DocumentType referenceDocumentType) {
169: this .referenceDocumentType = referenceDocumentType;
170: }
171:
172: public OriginationCode getReferenceOriginationCode() {
173: return referenceOriginationCode;
174: }
175:
176: public void setReferenceOriginationCode(
177: OriginationCode referenceOriginationCode) {
178: this .referenceOriginationCode = referenceOriginationCode;
179: }
180:
181: public ProjectCode getProject() {
182: return project;
183: }
184:
185: public void setProject(ProjectCode project) {
186: this .project = project;
187: }
188:
189: public OriginationCode getOriginationCode() {
190: return originationCode;
191: }
192:
193: public void setOriginationCode(OriginationCode originationCode) {
194: this .originationCode = originationCode;
195: }
196:
197: public void setOption(Options option) {
198: this .option = option;
199: }
200:
201: public Options getOption() {
202: return option;
203: }
204:
205: /**
206: * Gets the documentNumber attribute.
207: *
208: * @return Returns the documentNumber
209: */
210: public String getDocumentNumber() {
211: return documentNumber;
212: }
213:
214: /**
215: * Sets the documentNumber attribute.
216: *
217: * @param documentNumber The documentNumber to set.
218: */
219: public void setDocumentNumber(String documentNumber) {
220: this .documentNumber = documentNumber;
221: }
222:
223: /**
224: * Gets the transactionLedgerEntrySequenceNumber attribute.
225: *
226: * @return Returns the transactionLedgerEntrySequenceNumber
227: */
228: public Integer getTransactionLedgerEntrySequenceNumber() {
229: return transactionLedgerEntrySequenceNumber;
230: }
231:
232: /**
233: * Sets the transactionLedgerEntrySequenceNumber attribute.
234: *
235: * @param transactionLedgerEntrySequenceNumber The transactionLedgerEntrySequenceNumber to set.
236: */
237: public void setTransactionLedgerEntrySequenceNumber(
238: Integer transactionLedgerEntrySequenceNumber) {
239: this .transactionLedgerEntrySequenceNumber = transactionLedgerEntrySequenceNumber;
240: }
241:
242: /**
243: * Gets the chartOfAccountsCode attribute.
244: *
245: * @return Returns the chartOfAccountsCode
246: */
247: public String getChartOfAccountsCode() {
248: return chartOfAccountsCode;
249: }
250:
251: /**
252: * Sets the chartOfAccountsCode attribute.
253: *
254: * @param chartOfAccountsCode The chartOfAccountsCode to set.
255: */
256: public void setChartOfAccountsCode(String chartOfAccountsCode) {
257: this .chartOfAccountsCode = chartOfAccountsCode;
258: }
259:
260: /**
261: * Gets the accountNumber attribute.
262: *
263: * @return Returns the accountNumber
264: */
265: public String getAccountNumber() {
266: return accountNumber;
267: }
268:
269: /**
270: * Sets the accountNumber attribute.
271: *
272: * @param accountNumber The accountNumber to set.
273: */
274: public void setAccountNumber(String accountNumber) {
275: this .accountNumber = accountNumber;
276: }
277:
278: /**
279: * Gets the subAccountNumber attribute.
280: *
281: * @return Returns the subAccountNumber
282: */
283: public String getSubAccountNumber() {
284: return subAccountNumber;
285: }
286:
287: /**
288: * Sets the subAccountNumber attribute.
289: *
290: * @param subAccountNumber The subAccountNumber to set.
291: */
292: public void setSubAccountNumber(String subAccountNumber) {
293: this .subAccountNumber = subAccountNumber;
294: }
295:
296: /**
297: * Gets the financialObjectCode attribute.
298: *
299: * @return Returns the financialObjectCode
300: */
301: public String getFinancialObjectCode() {
302: return financialObjectCode;
303: }
304:
305: /**
306: * Sets the financialObjectCode attribute.
307: *
308: * @param financialObjectCode The financialObjectCode to set.
309: */
310: public void setFinancialObjectCode(String financialObjectCode) {
311: this .financialObjectCode = financialObjectCode;
312: }
313:
314: /**
315: * Gets the financialSubObjectCode attribute.
316: *
317: * @return Returns the financialSubObjectCode
318: */
319: public String getFinancialSubObjectCode() {
320: return financialSubObjectCode;
321: }
322:
323: /**
324: * Sets the financialSubObjectCode attribute.
325: *
326: * @param financialSubObjectCode The financialSubObjectCode to set.
327: */
328: public void setFinancialSubObjectCode(String financialSubObjectCode) {
329: this .financialSubObjectCode = financialSubObjectCode;
330: }
331:
332: /**
333: * Gets the financialBalanceTypeCode attribute.
334: *
335: * @return Returns the financialBalanceTypeCode
336: */
337: public String getFinancialBalanceTypeCode() {
338: return financialBalanceTypeCode;
339: }
340:
341: /**
342: * Sets the financialBalanceTypeCode attribute.
343: *
344: * @param financialBalanceTypeCode The financialBalanceTypeCode to set.
345: */
346: public void setFinancialBalanceTypeCode(
347: String financialBalanceTypeCode) {
348: this .financialBalanceTypeCode = financialBalanceTypeCode;
349: }
350:
351: /**
352: * Gets the financialObjectTypeCode attribute.
353: *
354: * @return Returns the financialObjectTypeCode
355: */
356: public String getFinancialObjectTypeCode() {
357: return financialObjectTypeCode;
358: }
359:
360: /**
361: * Sets the financialObjectTypeCode attribute.
362: *
363: * @param financialObjectTypeCode The financialObjectTypeCode to set.
364: */
365: public void setFinancialObjectTypeCode(
366: String financialObjectTypeCode) {
367: this .financialObjectTypeCode = financialObjectTypeCode;
368: }
369:
370: /**
371: * Gets the universityFiscalYear attribute.
372: *
373: * @return Returns the universityFiscalYear
374: */
375: public Integer getUniversityFiscalYear() {
376: return universityFiscalYear;
377: }
378:
379: /**
380: * Sets the universityFiscalYear attribute.
381: *
382: * @param universityFiscalYear The universityFiscalYear to set.
383: */
384: public void setUniversityFiscalYear(Integer universityFiscalYear) {
385: this .universityFiscalYear = universityFiscalYear;
386: }
387:
388: /**
389: * Gets the universityFiscalPeriodCode attribute.
390: *
391: * @return Returns the universityFiscalPeriodCode
392: */
393: public String getUniversityFiscalPeriodCode() {
394: return universityFiscalPeriodCode;
395: }
396:
397: /**
398: * Sets the universityFiscalPeriodCode attribute.
399: *
400: * @param universityFiscalPeriodCode The universityFiscalPeriodCode to set.
401: */
402: public void setUniversityFiscalPeriodCode(
403: String universityFiscalPeriodCode) {
404: this .universityFiscalPeriodCode = universityFiscalPeriodCode;
405: }
406:
407: /**
408: * Gets the transactionLedgerEntryDescription attribute.
409: *
410: * @return Returns the transactionLedgerEntryDescription
411: */
412: public String getTransactionLedgerEntryDescription() {
413: return transactionLedgerEntryDescription;
414: }
415:
416: /**
417: * Sets the transactionLedgerEntryDescription attribute.
418: *
419: * @param transactionLedgerEntryDescription The transactionLedgerEntryDescription to set.
420: */
421: public void setTransactionLedgerEntryDescription(
422: String transactionLedgerEntryDescription) {
423: this .transactionLedgerEntryDescription = transactionLedgerEntryDescription;
424: }
425:
426: /**
427: * Gets the transactionLedgerEntryAmount attribute.
428: *
429: * @return Returns the transactionLedgerEntryAmount
430: */
431: public KualiDecimal getTransactionLedgerEntryAmount() {
432: return transactionLedgerEntryAmount;
433: }
434:
435: /**
436: * Sets the transactionLedgerEntryAmount attribute.
437: *
438: * @param transactionLedgerEntryAmount The transactionLedgerEntryAmount to set.
439: */
440: public void setTransactionLedgerEntryAmount(
441: KualiDecimal transactionLedgerEntryAmount) {
442: this .transactionLedgerEntryAmount = transactionLedgerEntryAmount;
443: }
444:
445: /**
446: * Gets the transactionDebitCreditCode attribute.
447: *
448: * @return Returns the transactionDebitCreditCode
449: */
450: public String getTransactionDebitCreditCode() {
451: return transactionDebitCreditCode;
452: }
453:
454: /**
455: * Sets the transactionDebitCreditCode attribute.
456: *
457: * @param transactionDebitCreditCode The transactionDebitCreditCode to set.
458: */
459: public void setTransactionDebitCreditCode(
460: String transactionDebitCreditCode) {
461: this .transactionDebitCreditCode = transactionDebitCreditCode;
462: }
463:
464: /**
465: * Gets the transactionDate attribute.
466: *
467: * @return Returns the transactionDate
468: */
469: public Date getTransactionDate() {
470: return transactionDate;
471: }
472:
473: /**
474: * Sets the transactionDate attribute.
475: *
476: * @param transactionDate The transactionDate to set.
477: */
478: public void setTransactionDate(Date transactionDate) {
479: this .transactionDate = transactionDate;
480: }
481:
482: /**
483: * Gets the financialDocumentTypeCode attribute.
484: *
485: * @return Returns the financialDocumentTypeCode
486: */
487: public String getFinancialDocumentTypeCode() {
488: return financialDocumentTypeCode;
489: }
490:
491: /**
492: * Sets the financialDocumentTypeCode attribute.
493: *
494: * @param financialDocumentTypeCode The financialDocumentTypeCode to set.
495: */
496: public void setFinancialDocumentTypeCode(
497: String financialDocumentTypeCode) {
498: this .financialDocumentTypeCode = financialDocumentTypeCode;
499: }
500:
501: /**
502: * Gets the organizationDocumentNumber attribute.
503: *
504: * @return Returns the organizationDocumentNumber
505: */
506: public String getOrganizationDocumentNumber() {
507: return organizationDocumentNumber;
508: }
509:
510: /**
511: * Sets the organizationDocumentNumber attribute.
512: *
513: * @param organizationDocumentNumber The organizationDocumentNumber to set.
514: */
515: public void setOrganizationDocumentNumber(
516: String organizationDocumentNumber) {
517: this .organizationDocumentNumber = organizationDocumentNumber;
518: }
519:
520: /**
521: * Gets the projectCode attribute.
522: *
523: * @return Returns the projectCode
524: */
525: public String getProjectCode() {
526: return projectCode;
527: }
528:
529: /**
530: * Sets the projectCode attribute.
531: *
532: * @param projectCode The projectCode to set.
533: */
534: public void setProjectCode(String projectCode) {
535: this .projectCode = projectCode;
536: }
537:
538: /**
539: * Gets the organizationReferenceId attribute.
540: *
541: * @return Returns the organizationReferenceId
542: */
543: public String getOrganizationReferenceId() {
544: return organizationReferenceId;
545: }
546:
547: /**
548: * Sets the organizationReferenceId attribute.
549: *
550: * @param organizationReferenceId The organizationReferenceId to set.
551: */
552: public void setOrganizationReferenceId(
553: String organizationReferenceId) {
554: this .organizationReferenceId = organizationReferenceId;
555: }
556:
557: /**
558: * Gets the referenceFinancialDocumentTypeCode attribute.
559: *
560: * @return Returns the referenceFinancialDocumentTypeCode
561: */
562: public String getReferenceFinancialDocumentTypeCode() {
563: return referenceFinancialDocumentTypeCode;
564: }
565:
566: /**
567: * Sets the referenceFinancialDocumentTypeCode attribute.
568: *
569: * @param referenceFinancialDocumentTypeCode The referenceFinancialDocumentTypeCode to set.
570: */
571: public void setReferenceFinancialDocumentTypeCode(
572: String referenceFinancialDocumentTypeCode) {
573: this .referenceFinancialDocumentTypeCode = referenceFinancialDocumentTypeCode;
574: }
575:
576: /**
577: * Gets the referenceFinancialSystemOriginationCode attribute.
578: *
579: * @return Returns the referenceFinancialSystemOriginationCode
580: */
581: public String getReferenceFinancialSystemOriginationCode() {
582: return referenceFinancialSystemOriginationCode;
583: }
584:
585: /**
586: * Sets the referenceFinancialSystemOriginationCode attribute.
587: *
588: * @param referenceFinancialSystemOriginationCode The referenceFinancialSystemOriginationCode to set.
589: */
590: public void setReferenceFinancialSystemOriginationCode(
591: String referenceFinancialSystemOriginationCode) {
592: this .referenceFinancialSystemOriginationCode = referenceFinancialSystemOriginationCode;
593: }
594:
595: /**
596: * Gets the referenceFinancialDocumentNumber attribute.
597: *
598: * @return Returns the referenceFinancialDocumentNumber
599: */
600: public String getReferenceFinancialDocumentNumber() {
601: return referenceFinancialDocumentNumber;
602: }
603:
604: /**
605: * Sets the referenceFinancialDocumentNumber attribute.
606: *
607: * @param referenceFinancialDocumentNumber The referenceFinancialDocumentNumber to set.
608: */
609: public void setReferenceFinancialDocumentNumber(
610: String referenceFinancialDocumentNumber) {
611: this .referenceFinancialDocumentNumber = referenceFinancialDocumentNumber;
612: }
613:
614: /**
615: * Gets the financialDocumentReversalDate attribute.
616: *
617: * @return Returns the financialDocumentReversalDate
618: */
619: public Date getFinancialDocumentReversalDate() {
620: return financialDocumentReversalDate;
621: }
622:
623: /**
624: * Sets the financialDocumentReversalDate attribute.
625: *
626: * @param financialDocumentReversalDate The financialDocumentReversalDate to set.
627: */
628: public void setFinancialDocumentReversalDate(
629: Date financialDocumentReversalDate) {
630: this .financialDocumentReversalDate = financialDocumentReversalDate;
631: }
632:
633: /**
634: * Gets the transactionEncumbranceUpdateCode attribute.
635: *
636: * @return Returns the transactionEncumbranceUpdateCode
637: */
638: public String getTransactionEncumbranceUpdateCode() {
639: return transactionEncumbranceUpdateCode;
640: }
641:
642: /**
643: * Sets the transactionEncumbranceUpdateCode attribute.
644: *
645: * @param transactionEncumbranceUpdateCode The transactionEncumbranceUpdateCode to set.
646: */
647: public void setTransactionEncumbranceUpdateCode(
648: String transactionEncumbranceUpdateCode) {
649: this .transactionEncumbranceUpdateCode = transactionEncumbranceUpdateCode;
650: }
651:
652: /**
653: * Gets the financialDocumentApprovedCode attribute.
654: *
655: * @return Returns the financialDocumentApprovedCode
656: */
657: public String getFinancialDocumentApprovedCode() {
658: return financialDocumentApprovedCode;
659: }
660:
661: /**
662: * Sets the financialDocumentApprovedCode attribute.
663: *
664: * @param financialDocumentApprovedCode The financialDocumentApprovedCode to set.
665: */
666: public void setFinancialDocumentApprovedCode(
667: String financialDocumentApprovedCode) {
668: this .financialDocumentApprovedCode = financialDocumentApprovedCode;
669: }
670:
671: /**
672: * Gets the acctSufficientFundsFinObjCd attribute.
673: *
674: * @return Returns the acctSufficientFundsFinObjCd
675: */
676: public String getAcctSufficientFundsFinObjCd() {
677: return acctSufficientFundsFinObjCd;
678: }
679:
680: /**
681: * Sets the acctSufficientFundsFinObjCd attribute.
682: *
683: * @param acctSufficientFundsFinObjCd The acctSufficientFundsFinObjCd to set.
684: */
685: public void setAcctSufficientFundsFinObjCd(
686: String acctSufficientFundsFinObjCd) {
687: this .acctSufficientFundsFinObjCd = acctSufficientFundsFinObjCd;
688: }
689:
690: /**
691: * Gets the transactionEntryOffsetIndicator attribute.
692: *
693: * @return Returns the transactionEntryOffsetIndicator
694: */
695: public boolean isTransactionEntryOffsetIndicator() {
696: return transactionEntryOffsetIndicator;
697: }
698:
699: /**
700: * Sets the transactionEntryOffsetIndicator attribute.
701: *
702: * @param transactionEntryOffsetIndicator The transactionEntryOffsetIndicator to set.
703: */
704: public void setTransactionEntryOffsetIndicator(
705: boolean transactionEntryOffsetIndicator) {
706: this .transactionEntryOffsetIndicator = transactionEntryOffsetIndicator;
707: }
708:
709: /**
710: * Gets the transactionEntryProcessedTs attribute.
711: *
712: * @return Returns the transactionEntryProcessedTs
713: */
714: public Date getTransactionEntryProcessedTs() {
715: return transactionEntryProcessedTs;
716: }
717:
718: /**
719: * Sets the transactionEntryProcessedTs attribute.
720: *
721: * @param transactionEntryProcessedTs The transactionEntryProcessedTs to set.
722: */
723: public void setTransactionEntryProcessedTs(
724: Date transactionEntryProcessedTs) {
725: this .transactionEntryProcessedTs = transactionEntryProcessedTs;
726: }
727:
728: /**
729: * @return Returns the financialSystemOriginationCode.
730: */
731: public String getFinancialSystemOriginationCode() {
732: return financialSystemOriginationCode;
733: }
734:
735: /**
736: * @param financialSystemOriginationCode The financialSystemOriginationCode to set.
737: */
738: public void setFinancialSystemOriginationCode(
739: String financialSystemOriginationCode) {
740: this .financialSystemOriginationCode = financialSystemOriginationCode;
741: }
742:
743: /**
744: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
745: */
746: protected LinkedHashMap toStringMapper() {
747: LinkedHashMap m = new LinkedHashMap();
748: m.put("financialSystemOriginationCode",
749: this .financialSystemOriginationCode);
750: m
751: .put(KFSPropertyConstants.DOCUMENT_NUMBER,
752: this .documentNumber);
753: if (transactionLedgerEntrySequenceNumber == null) {
754: m.put("transactionLedgerEntrySequenceNumber", null);
755: } else {
756: m.put("transactionLedgerEntrySequenceNumber",
757: this .transactionLedgerEntrySequenceNumber
758: .toString());
759: }
760: return m;
761: }
762:
763: /**
764: * Gets the documentType attribute.
765: *
766: * @return Returns the documentType.
767: */
768: public DocumentType getDocumentType() {
769: return documentType;
770: }
771:
772: /**
773: * Sets the documentType attribute value.
774: *
775: * @param documentType The documentType to set.
776: */
777: public void setDocumentType(DocumentType documentType) {
778: this .documentType = documentType;
779: }
780:
781: /**
782: * Gets the documentHeader attribute.
783: *
784: * @return Returns the documentHeader.
785: */
786: public DocumentHeader getDocumentHeader() {
787: return documentHeader;
788: }
789:
790: /**
791: * Sets the documentHeader attribute value.
792: *
793: * @param documentHeader The documentHeader to set.
794: */
795: public void setDocumentHeader(DocumentHeader documentHeader) {
796: this .documentHeader = documentHeader;
797: }
798:
799: /**
800: * Gets the account attribute.
801: *
802: * @return Returns the account.
803: */
804: public Account getAccount() {
805: return account;
806: }
807:
808: /**
809: * Sets the account attribute value.
810: *
811: * @param account The account to set.
812: */
813: public void setAccount(Account account) {
814: this .account = account;
815: }
816:
817: /**
818: * Gets the balanceType attribute.
819: *
820: * @return Returns the balanceType.
821: */
822: public BalanceTyp getBalanceType() {
823: return balanceType;
824: }
825:
826: /**
827: * Sets the balanceType attribute value.
828: *
829: * @param balanceType The balanceType to set.
830: */
831: public void setBalanceType(BalanceTyp balanceType) {
832: this .balanceType = balanceType;
833: }
834:
835: /**
836: * Gets the chart attribute.
837: *
838: * @return Returns the chart.
839: */
840: public Chart getChart() {
841: return chart;
842: }
843:
844: /**
845: * Sets the chart attribute value.
846: *
847: * @param chart The chart to set.
848: */
849: public void setChart(Chart chart) {
850: this .chart = chart;
851: }
852:
853: /**
854: * Gets the financialObject attribute.
855: *
856: * @return Returns the financialObject.
857: */
858: public ObjectCode getFinancialObject() {
859: return financialObject;
860: }
861:
862: /**
863: * Sets the financialObject attribute value.
864: *
865: * @param financialObject The financialObject to set.
866: */
867: public void setFinancialObject(ObjectCode financialObject) {
868: this .financialObject = financialObject;
869: }
870:
871: /**
872: * Gets the objectType attribute.
873: *
874: * @return Returns the objectType.
875: */
876: public ObjectType getObjectType() {
877: return objectType;
878: }
879:
880: /**
881: * Sets the objectType attribute value.
882: *
883: * @param objectType The objectType to set.
884: */
885: public void setObjectType(ObjectType objectType) {
886: this .objectType = objectType;
887: }
888:
889: /**
890: * Gets the a21SubAccount attribute.
891: *
892: * @return Returns the a21SubAccount.
893: */
894: public A21SubAccount getA21SubAccount() {
895: return this .a21SubAccount;
896: }
897:
898: /**
899: * Sets the a21SubAccount attribute value.
900: *
901: * @param a21SubAccount The a21SubAccount to set.
902: */
903: public void setA21SubAccount(A21SubAccount a21SubAccount) {
904: this .a21SubAccount = a21SubAccount;
905: }
906:
907: /**
908: * Gets the dummyBusinessObject attribute.
909: *
910: * @return Returns the dummyBusinessObject.
911: */
912: public TransientBalanceInquiryAttributes getDummyBusinessObject() {
913: return this .dummyBusinessObject;
914: }
915:
916: /**
917: * Sets the dummyBusinessObject attribute value.
918: *
919: * @param dummyBusinessObject The dummyBusinessObject to set.
920: */
921: public void setDummyBusinessObject(
922: TransientBalanceInquiryAttributes dummyBusinessObject) {
923: this .dummyBusinessObject = dummyBusinessObject;
924: }
925:
926: public SubAccount getSubAccount() {
927: return subAccount;
928: }
929:
930: public void setSubAccount(SubAccount subAccount) {
931: this .subAccount = subAccount;
932: }
933:
934: public SubObjCd getFinancialSubObject() {
935: return financialSubObject;
936: }
937:
938: public void setFinancialSubObject(SubObjCd financialSubObject) {
939: this .financialSubObject = financialSubObject;
940: }
941:
942: public void setAccountingPeriod(AccountingPeriod accountingPeriod) {
943: this .accountingPeriod = accountingPeriod;
944: }
945:
946: public boolean isSubAccountNumberBlank() {
947: return subAccountNumber == null
948: || GENERAL_LEDGER_PENDING_ENTRY_CODE
949: .getBlankSubAccountNumber().equals(
950: subAccountNumber);
951: }
952:
953: public boolean isFinancialObjectCodeBlank() {
954: return financialObjectCode == null
955: || GENERAL_LEDGER_PENDING_ENTRY_CODE
956: .getBlankFinancialObjectCode().equals(
957: financialObjectCode);
958: }
959:
960: public boolean isFinancialSubObjectCodeBlank() {
961: return financialSubObjectCode == null
962: || GENERAL_LEDGER_PENDING_ENTRY_CODE
963: .getBlankFinancialSubObjectCode().equals(
964: financialSubObjectCode);
965: }
966:
967: public boolean isProjectCodeBlank() {
968: return projectCode == null
969: || GENERAL_LEDGER_PENDING_ENTRY_CODE
970: .getBlankProjectCode().equals(projectCode);
971: }
972:
973: public boolean isFinancialObjectTypeCodeBlank() {
974: return financialObjectTypeCode == null
975: || GENERAL_LEDGER_PENDING_ENTRY_CODE
976: .getBlankFinancialObjectType().equals(
977: financialObjectTypeCode);
978: }
979: }
|