View Javadoc
1   /*
2    * Copyright 2007 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.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/ecl2.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.sys.businessobject;
17  
18  import org.kuali.rice.core.api.util.type.KualiDecimal;
19  
20  import java.math.BigDecimal;
21  
22  import javax.persistence.Transient;
23  
24  
25  /**
26   * This class represents the "source" grouping of accounting lines in a given document. Its counterpart is the TargetAccountingLine
27   * class. Both objects' data is stored in the DB in a single table named "FP_ACCT_LINES_T." Most documents follow the "source" and
28   * "target" patterns. Source Accounting Line Business Object
29   */
30  public class SourceAccountingLine extends AccountingLineBase {
31  
32      private static final long serialVersionUID = -2699347311790831686L;
33      /**
34       * This Non Persistable field is used to calculate charges in account summary based on proration.
35       */
36      @Transient
37      private KualiDecimal sourceAccountQty;
38  
39      public KualiDecimal getSourceAccountQty() {
40          return sourceAccountQty;
41      }
42  
43      public void setSourceAccountQty(KualiDecimal sourceAccountQty) {
44          this.sourceAccountQty = sourceAccountQty;
45      }
46  
47      /**
48       * This constructor needs to initialize the financialDocumentLineTypeCode attribute to the value for this class.
49       */
50      public SourceAccountingLine() {
51          super();
52          super.financialDocumentLineTypeCode = "F";
53      }
54  
55  
56  
57  
58  }