org.kuali.kfs.module.ld.util
Class LaborPendingEntryGenerator

java.lang.Object
  extended by org.kuali.kfs.module.ld.util.LaborPendingEntryGenerator

public class LaborPendingEntryGenerator
extends Object

This class is used to help generating pending entries for the given labor documents


Constructor Summary
LaborPendingEntryGenerator()
           
 
Method Summary
static List<LaborLedgerPendingEntry> generateBenefitClearingPendingEntries(LaborLedgerPostingDocument document, GeneralLedgerPendingEntrySequenceHelper sequenceHelper, String accountNumber, String chartOfAccountsCode)
          generate the benefit clearing pending entries with the given benefit amount and fringe benefit object code based on the given document and accouting line
static List<LaborLedgerPendingEntry> generateBenefitPendingEntries(LaborLedgerPostingDocument document, ExpenseTransferAccountingLine accountingLine, GeneralLedgerPendingEntrySequenceHelper sequenceHelper)
          generate the benefit pending entries based on the given document and accounting line
static List<LaborLedgerPendingEntry> generateBenefitPendingEntries(LaborLedgerPostingDocument document, ExpenseTransferAccountingLine accountingLine, GeneralLedgerPendingEntrySequenceHelper sequenceHelper, org.kuali.rice.kns.util.KualiDecimal benefitAmount, String fringeBenefitObjectCode)
          generate the benefit pending entries with the given benefit amount and finge benefit object code based on the given document and accouting line
static List<LaborLedgerPendingEntry> generateExpensePendingEntries(LaborLedgerPostingDocument document, ExpenseTransferAccountingLine accountingLine, GeneralLedgerPendingEntrySequenceHelper sequenceHelper)
          generate the expense pending entries based on the given document and accouting line
protected static boolean isAccountingLinePayFYPeriodMatchesUniversityPayFYPeriod(LaborLedgerPostingDocument document, ExpenseTransferAccountingLine accountingLine)
          determine if the pay fiscal year and period from the accounting line match with its university fiscal year and period.
protected static void updateBenefitAmountSum(Map<String,org.kuali.rice.kns.util.KualiDecimal> benefitAmountSumByBenefitType, ExpenseTransferAccountingLine accountingLine)
          update the benefit amount summary map based on the given accounting line
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LaborPendingEntryGenerator

public LaborPendingEntryGenerator()
Method Detail

generateExpensePendingEntries

public static List<LaborLedgerPendingEntry> generateExpensePendingEntries(LaborLedgerPostingDocument document,
                                                                          ExpenseTransferAccountingLine accountingLine,
                                                                          GeneralLedgerPendingEntrySequenceHelper sequenceHelper)
generate the expense pending entries based on the given document and accouting line

Parameters:
document - the given accounting document
accountingLine - the given accounting line
sequenceHelper - the given squence helper
Returns:
a set of expense pending entries

generateBenefitPendingEntries

public static List<LaborLedgerPendingEntry> generateBenefitPendingEntries(LaborLedgerPostingDocument document,
                                                                          ExpenseTransferAccountingLine accountingLine,
                                                                          GeneralLedgerPendingEntrySequenceHelper sequenceHelper)
generate the benefit pending entries based on the given document and accounting line

Parameters:
document - the given accounting document
accountingLine - the given accounting line
sequenceHelper - the given squence helper
Returns:
a set of benefit pending entries

generateBenefitPendingEntries

public static List<LaborLedgerPendingEntry> generateBenefitPendingEntries(LaborLedgerPostingDocument document,
                                                                          ExpenseTransferAccountingLine accountingLine,
                                                                          GeneralLedgerPendingEntrySequenceHelper sequenceHelper,
                                                                          org.kuali.rice.kns.util.KualiDecimal benefitAmount,
                                                                          String fringeBenefitObjectCode)
generate the benefit pending entries with the given benefit amount and finge benefit object code based on the given document and accouting line

Parameters:
document - the given accounting document
accountingLine - the given accounting line
sequenceHelper - the given squence helper
benefitAmount - the given benefit amount
fringeBenefitObjectCode - the given finge benefit object code
Returns:
a set of benefit pending entries with the given benefit amount and finge benefit object code

generateBenefitClearingPendingEntries

public static List<LaborLedgerPendingEntry> generateBenefitClearingPendingEntries(LaborLedgerPostingDocument document,
                                                                                  GeneralLedgerPendingEntrySequenceHelper sequenceHelper,
                                                                                  String accountNumber,
                                                                                  String chartOfAccountsCode)
generate the benefit clearing pending entries with the given benefit amount and fringe benefit object code based on the given document and accouting line

Parameters:
document - the given accounting document
sequenceHelper - the given squence helper
accountNumber - the given clearing account number
chartOfAccountsCode - the given clearing chart of accounts code
Returns:
a set of benefit clearing pending entries

updateBenefitAmountSum

protected static void updateBenefitAmountSum(Map<String,org.kuali.rice.kns.util.KualiDecimal> benefitAmountSumByBenefitType,
                                             ExpenseTransferAccountingLine accountingLine)
update the benefit amount summary map based on the given accounting line

Parameters:
benefitAmountSumByBenefitType - the given benefit amount summary map
accountingLine - the given accounting line

isAccountingLinePayFYPeriodMatchesUniversityPayFYPeriod

protected static boolean isAccountingLinePayFYPeriodMatchesUniversityPayFYPeriod(LaborLedgerPostingDocument document,
                                                                                 ExpenseTransferAccountingLine accountingLine)
determine if the pay fiscal year and period from the accounting line match with its university fiscal year and period.

Parameters:
document - the given document
accountingLine - the given accounting line of the document
Returns:
true if the pay fiscal year and period from the accounting line match with its university fiscal year and period; otherwise, false


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.