001: /*
002: * Copyright 2006-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: package org.kuali.test.fixtures;
017:
018: import org.kuali.kfs.bo.GeneralLedgerPendingEntry;
019:
020: public enum GeneralLedgerPendingEntryFixture {
021: EXPECTED_EXPLICIT_SOURCE_PENDING_ENTRY_FOR_EXPENSE("UA", "1912201",
022: "BEER", "D", "AC", "TF", "TE", "9900", false, "KUL"), EXPECTED_EXPLICIT_TARGET_PENDING_ENTRY_FOR_EXPENSE(
023: null, null, "BEER", "C", "AC", "TF", "TE", "9900", false,
024: "KUL"), EXPECTED_GEC_EXPLICIT_SOURCE_PENDING_ENTRY_FOR_EXPENSE(
025: null, null, null, "C", "AC", "GEC", "EX", "1940", false,
026: "KUL"), EXPECTED_GEC_EXPLICIT_TARGET_PENDING_ENTRY_FOR_EXPENSE(
027: null, null, null, "D", "AC", "GEC", "EX", "1940", false,
028: "KUL"), EXPECTED_GEC_EXPLICIT_SOURCE_PENDING_ENTRY(null,
029: null, null, "C", "AC", "GEC", "AS", "8111", false, "KUL"), EXPECTED_GEC_EXPLICIT_TARGET_PENDING_ENTRY(
030: null, null, null, "D", "AC", "GEC", "AS", "8111", false,
031: "KUL"), EXPECTED_GEC_OFFSET_SOURCE_PENDING_ENTRY("BA",
032: "6044900", null, "D", "AC", "GEC", "AS", "8000", true,
033: "KUL"), EXPECTED_GEC_OFFSET_TARGET_PENDING_ENTRY(null,
034: null, null, "C", "AC", "GEC", "AS", "8000", true, "KUL"), EXPECTED_JV_EXPLICIT_SOURCE_PENDING_ENTRY_FOR_EXPENSE(
035: null, null, "BEER", "D", "AC", "JV", "EX", "9900", false,
036: "KUL"), EXPECTED_JV_EXPLICIT_TARGET_PENDING_ENTRY_FOR_EXPENSE(
037: null, null, null, "D", "AC", "JV", "EX", "9900", false,
038: null), EXPECTED_JV_EXPLICIT_SOURCE_PENDING_ENTRY(null,
039: null, null, "D", "AC", "JV", "AS", "9980", false, "KUL"), EXPECTED_JV_EXPLICIT_TARGET_PENDING_ENTRY(
040: null, null, null, "D", "AC", "JV", "TI", "9980", false,
041: null), EXPECTED_OFFSET_SOURCE_PENDING_ENTRY("UA",
042: "1912201", "BEER", "C", "AC", "TF", "AS", "8000", true,
043: "KUL"), EXPECTED_OFFSET_TARGET_PENDING_ENTRY(null, null,
044: "BEER", "D", "AC", "TF", "AS", "8000", true, "KUL"), EXPECTED_EXPLICIT_SOURCE_PENDING_ENTRY(
045: null, null, null, "D", "AC", "TF", "AS", "9980", false,
046: null), EXPECTED_EXPLICIT_TARGET_PENDING_ENTRY(null, null,
047: null, "C", "AC", "TF", "AS", "9980", false, null), EXPECTED_FLEXIBLE_EXPLICIT_SOURCE_PENDING_ENTRY_FOR_EXPENSE2(
048: "BL", "2231401", null, "C", "AC", "TF", "TE", "9900",
049: false, "KUL"), EXPECTED_FLEXIBLE_EXPLICIT_SOURCE_PENDING_ENTRY_FOR_EXPENSE(
050: "BL", "2231401", null, "D", "AC", "TF", "TE", "9900",
051: false, "KUL"), EXPECTED_FLEXIBLE_OFFSET_SOURCE_PENDING_ENTRY(
052: "UA", "1912201", null, "D", "AC", "TF", "AS", "8000", true,
053: "KUL"), EXPECTED_FLEXIBLE_OFFSET_SOURCE_PENDING_ENTRY_MISSING_OFFSET_DEFINITION(
054: "BL", "2231401", null, "C", "AC", "TF", "--", "----", true,
055: "KUL"), EXPECTED_AV_EXPLICIT_TARGET_PENDING_ENTRY_FOR_EXPENSE(
056: null, null, "BEER", "D", null, "AVAD", "ES", "9900", false,
057: "KUL"), EXPECTED_AV_EXPLICIT_SOURCE_PENDING_ENTRY_FOR_EXPENSE(
058: null, null, null, "D", "AC", "AVAD", "ES", "1940", false,
059: "KUL"), EXPECTED_AV_EXPLICIT_SOURCE_PENDING_ENTRY(null,
060: null, null, "D", "AC", "AVAD", "AS", "8111", false, "KUL"), EXPECTED_AV_EXPLICIT_TARGET_PENDING_ENTRY(
061: null, null, null, "D", "AC", "AVAD", "AS", "8111", false,
062: "KUL"), ;
063:
064: public final String chartOfAccountsCode;
065: public final String accountNumber;
066: public final String subAccountNumber;
067: public final String transactionDebitCreditCode;
068: public final String financialBalanceTypeCode;
069: public final String financialDocumentTypeCode;
070: public final String financialObjectTypeCode;
071: public final String financialObjectCode;
072: public final boolean transactionEntryOffsetIndicator;
073: public final String projectCode;
074:
075: private GeneralLedgerPendingEntryFixture(
076: String chartOfAccountsCode, String accountNumber,
077: String subAccountNumber, String transactionDebitCreditCode,
078: String financialBalanceTypeCode,
079: String financialDocumentTypeCode,
080: String financialObjectTypeCode, String financialObjectCode,
081: boolean transactionEntryOffsetIndicator, String projectCode) {
082: this .chartOfAccountsCode = chartOfAccountsCode;
083: this .accountNumber = accountNumber;
084: this .subAccountNumber = subAccountNumber;
085: this .transactionDebitCreditCode = transactionDebitCreditCode;
086: this .financialBalanceTypeCode = financialBalanceTypeCode;
087: this .financialDocumentTypeCode = financialDocumentTypeCode;
088: this .financialObjectTypeCode = financialObjectTypeCode;
089: this .financialObjectCode = financialObjectCode;
090: this .transactionEntryOffsetIndicator = transactionEntryOffsetIndicator;
091: this .projectCode = projectCode;
092: }
093:
094: public GeneralLedgerPendingEntry createGeneralLedgerPendingEntry() {
095: GeneralLedgerPendingEntry glpe = new GeneralLedgerPendingEntry();
096: glpe.setChartOfAccountsCode(this.chartOfAccountsCode);
097: glpe.setAccountNumber(this.accountNumber);
098: glpe.setSubAccountNumber(this.subAccountNumber);
099: glpe
100: .setTransactionDebitCreditCode(this.transactionDebitCreditCode);
101: glpe.setFinancialBalanceTypeCode(this.financialBalanceTypeCode);
102: glpe
103: .setFinancialDocumentTypeCode(this.financialDocumentTypeCode);
104: glpe.setFinancialObjectTypeCode(this.financialObjectTypeCode);
105: glpe.setFinancialObjectCode(this.financialObjectCode);
106: glpe
107: .setTransactionEntryOffsetIndicator(transactionEntryOffsetIndicator);
108: glpe.setProjectCode(this.projectCode);
109:
110: return glpe;
111: }
112:
113: }
|