Exemplo n.º 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();
   }
 }
Exemplo n.º 2
0
  /** recalculate the original fringe benefit of the current detail line */
  public static KualiDecimal calculateFringeBenefit(
      EffortCertificationDetail detailLine, KualiDecimal payrollAmount) {
    LaborModuleService laborModuleService = SpringContext.getBean(LaborModuleService.class);
    Integer fiscalYear = EffortCertificationParameterFinder.getCreateReportFiscalYear();
    String chartOfAccountsCode = detailLine.getChartOfAccountsCode();
    String objectCode = detailLine.getFinancialObjectCode();
    String accountNumber = detailLine.getAccountNumber();
    String subAccountNumber = detailLine.getSubAccountNumber();

    return laborModuleService.calculateFringeBenefit(
        fiscalYear,
        chartOfAccountsCode,
        objectCode,
        payrollAmount,
        accountNumber,
        subAccountNumber);
  }