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();
   }
 }
  /**
   * calculate the total payroll amount of the given detail lines
   *
   * @param the given detail lines
   * @return Returns the total original payroll amount
   */
  public static KualiDecimal getTotalPayrollAmount(
      List<EffortCertificationDetail> effortCertificationDetailLines) {
    KualiDecimal totalPayrollAmount = KualiDecimal.ZERO;

    for (EffortCertificationDetail detailLine : effortCertificationDetailLines) {
      totalPayrollAmount = totalPayrollAmount.add(detailLine.getEffortCertificationPayrollAmount());
    }

    return totalPayrollAmount;
  }