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.purap.businessobject; 018 019 020 /** 021 * Accounting line Business Object for a credit memo item line. 022 */ 023 public class CreditMemoAccount extends PurApAccountingLineBase { 024 025 /** 026 * Default constructor. 027 */ 028 public CreditMemoAccount() { 029 030 } 031 032 /** 033 * Constructs a Credit Memo Account object from an existing PurAp Accounting Line object. 034 * 035 * @param accountingLine the accounting line to copy from. 036 */ 037 public CreditMemoAccount(PurApAccountingLineBase accountingLine) { 038 super(); 039 040 setChartOfAccountsCode(accountingLine.getChartOfAccountsCode()); 041 setAccountNumber(accountingLine.getAccountNumber()); 042 setSubAccountNumber(accountingLine.getSubAccountNumber()); 043 setFinancialObjectCode(accountingLine.getFinancialObjectCode()); 044 setFinancialSubObjectCode(accountingLine.getFinancialSubObjectCode()); 045 setProjectCode(accountingLine.getProjectCode()); 046 setOrganizationReferenceId(accountingLine.getOrganizationReferenceId()); 047 setAmount(accountingLine.getAmount()); 048 setAccountLinePercent(accountingLine.getAccountLinePercent()); 049 } 050 051 public CreditMemoItem getCreditMemoItem() { 052 return super.getPurapItem(); 053 } 054 055 /** 056 * @deprecated 057 */ 058 public void setCreditMemoItem(CreditMemoItem creditMemoItem) { 059 super.setPurapItem(creditMemoItem); 060 } 061 }