001 /*
002 * Copyright 2011 The Kuali Foundation.
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016 package org.kuali.kfs.module.endow.businessobject;
017
018 import java.util.LinkedHashMap;
019
020 import org.kuali.rice.kns.bo.TransientBusinessObjectBase;
021 import org.kuali.rice.kns.util.KualiDecimal;
022
023 public class RecurringCashTransferTransactionDocumentTotalReportLine extends TransactionDocumentForReportLineBase {
024
025 private String transferNumber;
026 private String sourceKemid;
027 private Integer targetLinesGenerated;
028 private KualiDecimal totalTransferAmount;
029
030 public RecurringCashTransferTransactionDocumentTotalReportLine() {
031 this("", "", "", "", 0, KualiDecimal.ZERO);
032 }
033
034 public RecurringCashTransferTransactionDocumentTotalReportLine(String documentType, String documentId, String transferNumber, String sourcekemid, Integer targetLinesGenerated, KualiDecimal totalTransferAmount) {
035 this.documentType = documentType;
036 this.documentId = documentId;
037 this.transferNumber = transferNumber;
038 this.sourceKemid = sourcekemid;
039 this.targetLinesGenerated = targetLinesGenerated;
040 this.totalTransferAmount = totalTransferAmount;
041 }
042
043 public String getTransferNumber() {
044 return transferNumber;
045 }
046
047 public void setTransferNumber(String transferNumber) {
048 this.transferNumber = transferNumber;
049 }
050
051 public String getSourceKemid() {
052 return sourceKemid;
053 }
054
055 public void setSourceKemid(String sourceKemid) {
056 this.sourceKemid = sourceKemid;
057 }
058
059 public Integer getTargetLinesGenerated() {
060 return targetLinesGenerated;
061 }
062
063 public void setTargetLinesGenerated(Integer targetLinesGenerated) {
064 this.targetLinesGenerated = targetLinesGenerated;
065 }
066
067 public KualiDecimal getTotalTransferAmount() {
068 return totalTransferAmount;
069 }
070
071 public void setTotalTransferAmount(KualiDecimal totalTransferAmount) {
072 this.totalTransferAmount = totalTransferAmount;
073 }
074
075 public void incrementTargetLinesGenerated(Integer targetLines){
076 this.targetLinesGenerated += targetLines;
077 }
078
079 public void incrementTotalTransferAmount(KualiDecimal transferAmount){
080 this.totalTransferAmount = this.totalTransferAmount.add(transferAmount);
081 }
082 }