01: /*
02: * Copyright 2006-2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.kuali.module.financial.util;
17:
18: import org.kuali.core.util.KualiDecimal;
19: import org.kuali.kfs.bo.SourceAccountingLine;
20: import org.kuali.test.ConfigureContext;
21:
22: @ConfigureContext
23: public class CashReceiptFamilyTestUtil {
24:
25: public static SourceAccountingLine buildSourceAccountingLine(
26: String documentNumber, Integer postingYear,
27: Integer sequenceNumber) {
28: SourceAccountingLine line = new SourceAccountingLine();
29: line.setChartOfAccountsCode("BA");
30: line.setAccountNumber("1031400");
31: line.setFinancialObjectCode("5000");
32: line.setAmount(new KualiDecimal("1.00"));
33: line.setPostingYear(postingYear);
34: line.setDocumentNumber(documentNumber);
35: line.setSequenceNumber(sequenceNumber);
36: line.refresh();
37:
38: return line;
39: }
40: }
|