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.bo;
17:
18: import org.kuali.core.util.KualiDecimal;
19:
20: /**
21: * This helper class works in conjunction with the SourceAccountingLine bo to help build the UI for the Voucher. On the business
22: * object side, there is a single attribute that keeps track of this and the amount field is used to keep track of the amount. This
23: * helper class sits alongside the typical SourceAccountingLine bo... the synchronization between the two is the guaranteed order.
24: */
25: public class VoucherAccountingLineHelperBase implements
26: VoucherAccountingLineHelper {
27: private KualiDecimal debit;
28: private KualiDecimal credit;
29:
30: /**
31: * Constructs a <code>{@link VoucherAccountingLineHelperBase}</code> instance.
32: */
33: public VoucherAccountingLineHelperBase() {
34: this .credit = new KualiDecimal(0);
35: this .debit = new KualiDecimal(0);
36: }
37:
38: /**
39: * This method retrieves the credit amount.
40: *
41: * @return
42: */
43: public KualiDecimal getCredit() {
44: return credit;
45: }
46:
47: /**
48: * This method sets the credit amount.
49: *
50: * @param credit
51: */
52: public void setCredit(KualiDecimal credit) {
53: this .credit = credit;
54: }
55:
56: /**
57: * This method retrieves the debit amount.
58: *
59: * @return
60: */
61: public KualiDecimal getDebit() {
62: return debit;
63: }
64:
65: /**
66: * This method sets the debit amount.
67: *
68: * @param debit
69: */
70: public void setDebit(KualiDecimal debit) {
71: this.debit = debit;
72: }
73: }
|