View Javadoc
1   /*
2    * Copyright 2013 The Kuali Foundation.
3    * 
4    * Licensed under the Educational Community License, Version 1.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    * http://www.opensource.org/licenses/ecl1.php
9    * 
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.ole.select.businessobject;
17  
18  import org.kuali.ole.sys.businessobject.SourceAccountingLine;
19  
20  import java.math.BigDecimal;
21  
22  public class OleDisbursementVoucherAccountingLine extends SourceAccountingLine {
23  
24      /**
25       * Constructs a OleDisbursementVoucherAccountingLine.java.
26       */
27      public OleDisbursementVoucherAccountingLine() {
28          super();
29          accountLinePercent = new BigDecimal(100);
30      }
31  
32      private BigDecimal accountLinePercent;
33  
34      /**
35       * Gets the value of the accountLinePercent property
36       *
37       * @return accountLinePercent
38       */
39      public BigDecimal getAccountLinePercent() {
40          if (accountLinePercent != null) {
41              accountLinePercent = accountLinePercent.setScale(2, BigDecimal.ROUND_HALF_UP);
42              return accountLinePercent;
43          } else {
44              return new BigDecimal(100).setScale(2, BigDecimal.ROUND_HALF_UP);
45          }
46      }
47  
48      /**
49       * Sets the accountLinePercent value
50       *
51       * @param accountLinePercent
52       */
53      public void setAccountLinePercent(BigDecimal accountLinePercent) {
54          this.accountLinePercent = accountLinePercent;
55      }
56  }
57      
58  
59