コード例 #1
0
 public EffortCertificationDetail(EffortCertificationDetail effortCertificationDetail) {
   super();
   if (effortCertificationDetail != null) {
     this.chartOfAccountsCode = effortCertificationDetail.getChartOfAccountsCode();
     this.accountNumber = effortCertificationDetail.getAccountNumber();
     this.subAccountNumber = effortCertificationDetail.getSubAccountNumber();
     this.positionNumber = effortCertificationDetail.getPositionNumber();
     this.financialObjectCode = effortCertificationDetail.getFinancialObjectCode();
     this.sourceChartOfAccountsCode = effortCertificationDetail.getSourceChartOfAccountsCode();
     this.sourceAccountNumber = effortCertificationDetail.getSourceAccountNumber();
     this.effortCertificationPayrollAmount =
         effortCertificationDetail.getEffortCertificationPayrollAmount();
     this.effortCertificationCalculatedOverallPercent =
         effortCertificationDetail.getEffortCertificationCalculatedOverallPercent();
     this.effortCertificationUpdatedOverallPercent =
         effortCertificationDetail.getEffortCertificationUpdatedOverallPercent();
     this.universityFiscalYear = effortCertificationDetail.getUniversityFiscalYear();
     this.costShareSourceSubAccountNumber =
         effortCertificationDetail.getCostShareSourceSubAccountNumber();
     this.effortCertificationOriginalPayrollAmount =
         effortCertificationDetail.getEffortCertificationOriginalPayrollAmount();
     this.originalFringeBenefitAmount = effortCertificationDetail.getOriginalFringeBenefitAmount();
     this.effectiveDate = effortCertificationDetail.getEffectiveDate();
   }
 }
コード例 #2
0
  /**
   * Gets the totalOriginalFringeBenefit attribute.
   *
   * @return Returns the totalOriginalFringeBenefit.
   */
  public static KualiDecimal getTotalOriginalFringeBenefit(
      List<EffortCertificationDetail> effortCertificationDetailLines) {
    KualiDecimal totalOriginalFringeBenefit = KualiDecimal.ZERO;

    for (EffortCertificationDetail detailLine : effortCertificationDetailLines) {
      totalOriginalFringeBenefit =
          totalOriginalFringeBenefit.add(detailLine.getOriginalFringeBenefitAmount());
    }

    return totalOriginalFringeBenefit;
  }