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:
17: package org.kuali.module.purap.bo;
18:
19: /**
20: * Accounting line Business Object for a credit memo item line.
21: */
22: public class CreditMemoAccount extends PurApAccountingLineBase {
23:
24: private CreditMemoItem creditMemoItem;
25:
26: /**
27: * Default constructor.
28: */
29: public CreditMemoAccount() {
30:
31: }
32:
33: /**
34: * Constructs a Credit Memo Account object from an existing PurAp Accounting Line object.
35: *
36: * @param accountingLine the accounting line to copy from.
37: */
38: public CreditMemoAccount(PurApAccountingLineBase accountingLine) {
39: super ();
40:
41: setChartOfAccountsCode(accountingLine.getChartOfAccountsCode());
42: setAccountNumber(accountingLine.getAccountNumber());
43: setSubAccountNumber(accountingLine.getSubAccountNumber());
44: setFinancialObjectCode(accountingLine.getFinancialObjectCode());
45: setFinancialSubObjectCode(accountingLine
46: .getFinancialSubObjectCode());
47: setProjectCode(accountingLine.getProjectCode());
48: setOrganizationReferenceId(accountingLine
49: .getOrganizationReferenceId());
50: setAmount(accountingLine.getAmount());
51: setAccountLinePercent(accountingLine.getAccountLinePercent());
52: }
53:
54: public CreditMemoItem getCreditMemoItem() {
55: return creditMemoItem;
56: }
57:
58: /**
59: * @deprecated
60: */
61: public void setCreditMemoItem(CreditMemoItem creditMemoItem) {
62: this.creditMemoItem = creditMemoItem;
63: }
64: }
|