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: import org.kuali.core.util.KualiDecimal;
20: import org.kuali.kfs.bo.AccountingLineBase;
21: import org.kuali.module.purap.util.PurApObjectUtils;
22:
23: /**
24: * Payment Request Account Business Object.
25: */
26: public class PaymentRequestAccount extends PurApAccountingLineBase {
27:
28: private KualiDecimal disencumberedAmount = KualiDecimal.ZERO;
29: private PaymentRequestItem paymentRequestItem;
30:
31: /**
32: * Default constructor.
33: */
34: public PaymentRequestAccount() {
35:
36: }
37:
38: /**
39: * Constructor.
40: *
41: * @param item - payment request item
42: * @param poa - purchase order account
43: */
44: public PaymentRequestAccount(PaymentRequestItem item,
45: PurchaseOrderAccount poa) {
46: // copy base attributes
47: PurApObjectUtils.populateFromBaseClass(
48: AccountingLineBase.class, poa, this );
49: // copy percent
50: this .setAccountLinePercent(poa.getAccountLinePercent());
51: setItemIdentifier(item.getItemIdentifier());
52: setPaymentRequestItem(item);
53: }
54:
55: public KualiDecimal getDisencumberedAmount() {
56: return disencumberedAmount;
57: }
58:
59: public void setDisencumberedAmount(KualiDecimal disencumberedAmount) {
60: this .disencumberedAmount = disencumberedAmount;
61: }
62:
63: public PaymentRequestItem getPaymentRequestItem() {
64: return paymentRequestItem;
65: }
66:
67: public void setPaymentRequestItem(
68: PaymentRequestItem paymentRequestItem) {
69: this.paymentRequestItem = paymentRequestItem;
70: }
71:
72: }
|