01: /*
02: * Copyright 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.purap.bo;
17:
18: import org.kuali.kfs.bo.SourceAccountingLine;
19: import org.kuali.module.purap.document.PaymentRequestDocument;
20:
21: /**
22: * Payment Request Summary Account Business Object.
23: */
24: public class PaymentRequestSummaryAccount extends PaymentRequestAccount {
25:
26: private Integer purapDocumentIdentifier;
27:
28: private PaymentRequestDocument paymentRequest;
29:
30: /**
31: * Default constructor.
32: */
33: public PaymentRequestSummaryAccount() {
34:
35: }
36:
37: public PaymentRequestSummaryAccount(SourceAccountingLine account,
38: Integer purapDocumentIdentifier) {
39: this .setPurapDocumentIdentifier(purapDocumentIdentifier);
40: this .setChartOfAccountsCode(account.getChartOfAccountsCode());
41: this .setAccountNumber(account.getAccountNumber());
42: this .setSubAccountNumber(account.getSubAccountNumber());
43: this .setFinancialObjectCode(account.getFinancialObjectCode());
44: this .setFinancialSubObjectCode(account
45: .getFinancialSubObjectCode());
46: this .setProjectCode(account.getProjectCode());
47: this .setOrganizationReferenceId(account
48: .getOrganizationReferenceId());
49: this .setAmount(account.getAmount());
50: }
51:
52: public PaymentRequestDocument getPaymentRequest() {
53: return paymentRequest;
54: }
55:
56: public void setPaymentRequest(PaymentRequestDocument paymentRequest) {
57: this .paymentRequest = paymentRequest;
58: }
59:
60: /**
61: * ItemIdentifier is not a valid field in this table because it is the summary of accounts for the document, not per item
62: *
63: * @deprecated
64: */
65: @Override
66: public Integer getItemIdentifier() {
67: return super .getItemIdentifier();
68: }
69:
70: /**
71: * ItemIdentifier is not a valid field in this table because it is the summary of accounts for the document, not per item
72: *
73: * @deprecated
74: */
75: @Override
76: public void setItemIdentifier(Integer itemIdentifier) {
77: super .setItemIdentifier(itemIdentifier);
78: }
79:
80: public Integer getPurapDocumentIdentifier() {
81: return purapDocumentIdentifier;
82: }
83:
84: public void setPurapDocumentIdentifier(
85: Integer purapDocumentIdentifier) {
86: this.purapDocumentIdentifier = purapDocumentIdentifier;
87: }
88:
89: }
|